gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · web viewselect the...

22
From the Provisioning menu select the Upgrade Database option

Upload: phamlien

Post on 12-Mar-2018

219 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

From the Provisioning menu select the Upgrade Database option

Page 2: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Select the target Oracle 12c home and enter the named credentials for the database set up earlier.

Validation of prerequisites is done automatically.

Page 3: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 4: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 5: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 6: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Note the options selected for the database upgrade.

We need to provide the degree of parallelism which will be used by the catctl.pl upgrade utility which is internally run to upgrade the database.

Also provide a location for the diagnostic destination and audit dump file destination.

We have chosen the option to disable archive logging for the duration of the upgrade as well as selected a number of post upgrade tasks which need to be run like upgrading the timezone data and gathering optimizer statistics.

An RMAN backup can be taken before the database upgrade commences or we can use an existing backup. If the database is running with flashback logging enabled we can specify a guaranteed restore point which the database can be flashed back to.

Page 7: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 8: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

In this case we have got a warning about insufficient disk space available because although the mount point /u01 has adequate disk space, the value of the DB_RECOVERY_FILE_DEST_SIZE is not sufficient. It is set to 4 GB while the recommended value is 7.4 GB. We can connect to the database from another session and increase the DB_RECOVERY_FILE_DEST_SIZE to the recommended value.

Page 9: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

We can create a new listener or register the database with an existing Oracle 12c listener

Page 10: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 11: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Review the database upgrade and options chosen

Page 12: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 13: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

If we click the Running link we can monitor the progress of the upgrade job.

Page 14: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Click on the Oracle_Server.log link

Page 15: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 16: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Click on Results tab

Page 17: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

While the database upgrade is in progress we can see that the archive logging has been turned off for the database.

SQL> archive log listDatabase log mode No Archive ModeAutomatic archival DisabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 28Current log sequence 30

In this case the database upgrade and post-upgrade tasks has taken around 55 minutes and the status of all tasks shows Succeeded.

We can click on the Status link and get further details.

Page 18: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

For example click on Succeeded link in the step Post Configuration ….

No custom scripts to execute.Successfully deleted the temporary staging location(s).[/u01/app/oracle/dbupgrade_job_temp/0d9bd323bccf6407e0538a58f00a6e95]Oracle Home property for database target db11g updated to /u01/app/oracle/product/12.1.0/dbhome_1.Port property for database target db11g updated to 1521.Verifying connection to database target db11g using sysdba credentials.Connection to database target db11g using sysdba credentials successfully verified.Verifying connection to database target db11g using credentials of monitoring user.Connection to database target db11g using credentials of monitoring user dbsnmp successfully verified.

Page 19: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Stopping blackout of target db11g.Blackout of target stopped.Successfully evaluated the Response metric for the database target db11g.Post configuration complete.

Page 20: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier
Page 21: gavinsoorma.comgavinsoorma.com/.../02/upgrade_database_cloud_control_2.docx · Web viewSelect the target Oracle 12c home and enter the named credentials for the database set up earlier

Verify that the database has been upgraded to 12.1.0.2 and is up and running