Thursday, March 16, 2023

Recovery Manager (RMAN)






An application used for backing up, restoring, and recovering Oracle databases is called Oracle Recovery Manager (RMAN). For Oracle databases, RMAN offers a complete backup and recovery solution, including full backups, incremental backups, and backups of particular database components.

You must connect to the target database and set aside a channel before you can run an RMAN backup. The channel can be assigned manually or automatically by RMAN, and it can be a disc or tape device. Once the channel has been assigned, you can start the backup procedure using the backup command.


You can specify different parameters with the backup command, including the backup type, backupset size, and compression level. For instance, you can use the following command to backup the database completely:

shell
RMAN>  backup database;
You can use the following command to carry out an incremental backup:

 
 
RMAN> backup incremental level 1 database;

  The backup is examined for consistency and restoreability using the validate command.

You must connect to the target database and set aside a channel before you can restore a backup. The database can then be restored using the restore command. You can specify other options with the restore command, including the restoration type and backupset location. For instance, you may use the following command to restore a database backup in its entirety:

shell
 
RMAN> restore database; 
After a restore, you can use the recover command to restore the database. To bring the database up to date, the recover command applies any necessary redo logs to the restored backup. For instance, you can use the following command to restore the database after a restoration:

 
 
RMAN> recover database;
For Oracle databases, RMAN offers a strong backup and recovery solution that enables you to execute full backups, incremental backups, and backups of particular database components. The validate and recover commands make sure that the backup is valid and the database is current while the backup and restore commands let you personalise the backup and restore procedure.


Looking forward for your suggestions.. please feel free to write to me.. Your help would definitely help to improve our blog. Chetan Yadav

Monday, March 6, 2023

Migration Oracle Database 11g to 19c (CDB)


    Moving from Oracle Database 11g to 19c (CDB) might be challenging, but with the appropriate knowledge and direction, it can be a straightforward procedure. This article offers a thorough tutorial to assist you in upgrading your Oracle Database 11g to 19c (CDB).

Are you considering upgrading from Oracle Database 11g to 19c (CDB)? If so, a thorough understanding of the procedure is required to guarantee a smooth upgrading. This article offers a thorough tutorial on how to smoothly upgrade your Oracle Database 11g to 19c (CDB).


 


  A Complete Guide on Upgrading from Oracle Database 11g to 19c

                                                Are you still using Oracle Database 11g for your database? It's time to update it to Oracle Database 19c (CDB), the most recent version, in order to benefit from new features, improved security, and improved speed. The transition from Oracle Database 11g to Oracle Database 19c (CDB) might be challenging, but with the correct information and direction, it can be a straightforward procedure. This article offers a thorough tutorial to assist you in upgrading your Oracle Database 11g to 19c (CDB).

There are a few things you should take into account before you start the update process:

Make sure your system and software fit Oracle Database 19c's hardware and software requirements (CDB).

Verify your existing Oracle Database 11g's compatibility with Oracle Database 19c (CDB). Verify that the new version is compatible with all the applications that use the database.

Backup: Create a copy of your current database before you start the upgrade procedure. In the event that the upgrade procedure fails, this will assist you in restoring the database.

Testing: Prior to upgrading the production system, it is generally desirable to carry out a test upgrade on a test system. This will assist you in locating any problems that might occur throughout the update procedure.

After giving these things some thought, let's go on to the upgrade procedure.

Upgrade Oracle Database 11g to 12c as the first step

Upgrade your Oracle Database from 11g to 12c is the first step in moving to Oracle Database 19c (CDB). Because Oracle Database 19c (CDB) requires Oracle Database 12c Release 2 (12.2.0.1) or later versions, this step is crucial. The following stages are involved in upgrading Oracle Database 11g to Oracle Database 12c:

Install Oracle Database 12c Release 2 (12.2.0.1) or a later version by downloading it.

Make a backup of the database.

Using the command-line interface or the Database Upgrade Assistant (DBUA), upgrade the database (CLI).

Do post-upgrade duties, such as recompiling broken objects using the utlrp.sql script.

Upgrade Oracle Database 12c to 19c in step two (CDB)

The next stage is to upgrade to Oracle Database 19c after you have upgraded your Oracle Database 11g to 12c (CDB). The following steps are part of the upgrade process:

Install Oracle Database 19c by downloading it (CDB).

Make an Oracle Database 12c backup.

Use the DBUA or CLI to upgrade the database.

run the utlrp.sql script and other post-upgrade actions.



Looking forward to your suggestions.. please feel free to write to me.. Your help would definitely help to improve our blog. Chetan Yadav

Wednesday, March 1, 2023

Upgrade from Oracle Database 11g to 19c (Non-CDB)

                     Upgrading your Oracle database is a crucial task that ensures your system is up-to-date and functioning properly. Oracle Database 19c is the latest version of the database software that offers many new features and improvements over its predecessors. In this blog, we will discuss how to upgrade from Oracle Database 11g to 19c (Non-CDB).
Before starting the upgrade process, it is essential to perform a thorough backup of your existing database. This will help you recover your data in case of any issues during the upgrade process. Once you have backed up your data, you can proceed with the following steps:


Step 1: Pre-Upgrade Tasks
Before upgrading to 19c, you need to perform some pre-upgrade tasks. These tasks include:

Checking the minimum requirements for the Oracle Database 19c installation.
Gathering information about the existing database, such as the version, patch level, and configuration details.
Ensuring that the existing database is compatible with 19c. You can use the pre-upgrade information tool to check for compatibility issues.
Resolving any compatibility issues that may be identified by the pre-upgrade information tool.

Step 2: Install Oracle Database 19c Software
Download and install the Oracle Database 19c software on your server. Ensure that you install the software for the same platform as the existing database.

Step 3: Upgrade the Database
To upgrade the database, follow these steps:

Connect to the existing database as a privileged user.
Start the Database Upgrade Assistant (DBUA) utility.
The DBUA will guide you through the upgrade process, including the upgrade options and parameters.
Once the upgrade process is complete, verify the upgraded database's functionality.

Step 4: Post-Upgrade Tasks
After upgrading to 19c, perform the following post-upgrade tasks:

Run the post-upgrade status tool to verify the upgraded database's status.
Ensure that all the required database parameters are correctly set.
Run the time zone script to update the database's time zone data.

If you are using Oracle Enterprise Manager, ensure that the agent and plug-ins are upgraded to 19c.
In conclusion, upgrading to Oracle Database 19c (Non-CDB) from 11g is a straightforward process that requires careful planning and execution. By following the steps outlined above, you can ensure a successful upgrade and take advantage of the new features and improvements offered by Oracle Database 19c. Remember always to back up your database before making any changes to your system to ensure that your data is secure.

Looking forward to your suggestions.. please feel free to write to me.. Your help would definitely help to improve our blog. Chetan Yadav