oraup11g_12c.docx

23
Steps to follow:- 1) Backup Oracle database and profile 2) Take full offline or online backup 3) Stop the database 3) Stop listener 4) Change ORACLE_HOME environment variable in the bash profile of “oracle” user 5) Check the version SQ> Select instance_name,host_name,version,status from V$INSTANCE; 6) Check the components version SQL> Select from comp_name, version, status from dba_registry ORDER BY status; 7) Run the installer 12c 8) Pre-upgrade 9) Upgrade the 11G to 12C 10) Post upgrade Introduction:- The oracle release and years Oracle Release 2 1. 11.2.0.1.0 (August 2009 -GA) 2. 11.2.0.2.0 (November 2010) 3. 11.2.0.3.0 (September 2011) 4. 11.2.0.4.0 (August 2013) Oracle 12c Release 1 1. 12.1.0.1.0 (June 2013 - GA) 2. 12.1.0.1.1 (October 2013) (PSU) 3. 12.1.0.1.2 (January 2014) (PSU) Oracle Database Direct upgrade 10.2.0.5.0/11.1.0.7.0/11.2.0.2.0 upgrade to 12.1.0.1.0

Transcript of oraup11g_12c.docx

Page 1: oraup11g_12c.docx

Steps to follow:-

 

1) Backup Oracle database and profile

2) Take full offline or online backup

3) Stop the database

3) Stop listener

4) Change ORACLE_HOME environment variable in the bash profile of “oracle” user

5) Check the version SQ> Select instance_name,host_name,version,status from  V$INSTANCE;

6) Check the components version SQL> Select from comp_name, version, status from dba_registry ORDER BY status;

7)  Run the installer 12c

8)  Pre-upgrade

9) Upgrade the 11G to 12C

10) Post upgrade

Introduction:-

 

The oracle release and years

 

Oracle Release 2

 

1. 11.2.0.1.0 (August 2009 -GA)

2. 11.2.0.2.0 (November 2010)

3. 11.2.0.3.0 (September 2011)

4. 11.2.0.4.0 (August 2013)

 

Oracle 12c Release 1

 

1. 12.1.0.1.0 (June 2013 - GA)

2. 12.1.0.1.1 (October 2013) (PSU)

3. 12.1.0.1.2 (January 2014) (PSU)

 

Oracle Database

 

 

Direct upgrade 10.2.0.5.0/11.1.0.7.0/11.2.0.2.0 upgrade to 12.1.0.1.0

 

. In -Place Upgrade  -> Install Binaries in same ORACLE_HOME

Page 2: oraup11g_12c.docx

. Out-of-Place Upgrade --> Install binaries in new ORACLE_HOME

Upgrade suing DBUA or Manual

 

 

Indirect Upgrade

 

. Migrate using Data pump utility

. Transportable Table-space

. Golden Gate Replication

 

There are different ways of oracle upgrading

 

1) Database Upgrade Assistant (DBUA)

2) Manual Upgrade

3) Transportable Tablespaces

4) Datapump export/import

5) Oracle Streams

6) Oracle GoldenGate

Here we are going to use

Oracle Database Version:            Oracle Database 11gR2 (11.2.0.2.0) (64-bit)

Operating System:                        Oracle Enterprise SUSE Linux

 

1) Check the release and version

 

2) check the oratab

Page 3: oraup11g_12c.docx

 

3) check the oraInventory

 

 

4) stop the database & stop the listener

 

oracle&hostname > sys /as sysdba

 

SQL> shutdown immediate;

 

oracle& hostanme> lsnrctl

LSNRCTL> stop

Page 4: oraup11g_12c.docx

 

5) Check the version

 

 

6) Check the components

 

 

 

7) set the new ORACLE_HOME

 

hostname> export ORACLE_HOME=oracle/SID/12.1.0

 

8) Go to the 12c media directory and run the command

 

Page 5: oraup11g_12c.docx

oracle&hostname> ./runInstaller

 

 

Click Next

 

Click "Next" and chose "Skip software updates".

 

Page 7: oraup11g_12c.docx

Click "Next" and select "Upgrade an existing database". It automatically launch DBUA to upgrade the databases.

 

Select the Language eg " English"

 

Page 8: oraup11g_12c.docx

 

Select Enterprise edition and click "Next"

 

Click "Next"

 

 

Page 10: oraup11g_12c.docx

 

Fix all the warnings are resolved before proceeding with the next step. In here we are ignored and click " Next"

Page 14: oraup11g_12c.docx

Click " Next" ignore and continue

Click " Next"

Page 19: oraup11g_12c.docx

If you would like to restore the database to be fall-back to previous version then click on restore to revert back.

 

Well the oracle database upgrade completed successfully.

 

SQL> select * from v$version;

---------------------------------------------------------------------------- ----------

Page 20: oraup11g_12c.docx

Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production 0PL/SQL Release 12.1.0.1.0 - Production 0CORE 12.1.0.1.0 Production 0TNS for Linux: Version 12.1.0.1.0 - Production 0NLSRTL Version 12.1.0.1.0 - Production 0

Prerequisites to upgrade to ORACLE 12c

 

1. Your DB should have minimum release Oracle Database 10.2.0.5 or higher to upgrade to Oracle Database  12c, any other release less than Oracle Database 10.2.0.5 cannot be directly upgraded to Oracle Database 12c

2. Only Oracle Database 12c Release 1 (12.1.0.2) is supported for SAP. Release 12.1.0.1 is not supported for SAP.

Page 21: oraup11g_12c.docx

3. Additional Restriction for SAP NetWeaver AS-JAVA , For SAP products based on SAP NetWeaver 7.2x, 7.3x for AS-JAVA and AS-ABAP+JAVA (Java Stack and Double Stack) only Oracle Instant Client version 11.2.0.4 is currently supported. If you upgrade your Oracle Database to 12c or if you install a new SAP system with Oracle Database 12c, you must not upgrade to or install Oracle Instant Client version 12.1.0.2.

4. In-Memory Option is currently not yet supported for SAP

5. Multitenant Option is currently not yet supported for SAP.

6. ILM/ADO Functionality is currently not yet supported for SAP

7. Free Extended Support for Instant Client version 11.2.0.4 will end in January 2016

8. Create a new OS group oinstall

9. Create a new user oracle at OS level with same groups as assigned to user ora and migrate the DB to oracle user. Reference SAP note:  1915317 - Migrating Software Owner to 'oracle'.

10. It is recommended to install the current version of SAP BR*Tools Release 7.40 before upgrading the database to 12c.

11. SAP LVM is currently not supported in an Oracle 12c based SAP NetWeaver environment. Certification pending. SAP note 2133079

12. SAP MDM is currently not supported in an Oracle 12c based SAP NetWeaver environment. Certification pending. SAP note 2133079

Upgrade checklist

Page 22: oraup11g_12c.docx

1. Migrate the Oracle software from user ora to user oracle.

2. Install the Oracle database software version 12.1.0.2, including the recommended patches. For more information, see Installation of Oracle Database Software

3. If your Oracle instant client is lower than 11.2.0.4, install the version of the Oracle instant client that is currently recommended for Oracle 12c, which you can find in SAP Note 819829. When upgrading from Oracle 11g to 12c, you can perform this step before starting the actual database upgrade.

4. Update BR*Tools to the version recommended for Oracle 12c, which is BR*Tools 7.40.When upgrading from Oracle 11g to 12c, you can perform this step before starting the actual database upgrade.

5. Make sure that you have installed the SAP kernel supported with Oracle 12.1.0.2 and that you have a supported version of your operating system. In addition, make sure that you have installed the required support packages for the SAP kernel supported for Oracle 12c. For AS Java or AS ABAP + Java based systems, see also SAP Note 1777021. For more information, check the SAP requirements for your application or product in the Product Availability Matrix (PAM) at support.sap.com/pam. 6. Oracle Database 12c Release 1 (12.1) is only released and certified for SAP products running with SAP BASIS 7.00 and above, and SAP kernel release 7.21 EXT and above. Oracle 12.1 is only released and certified for Oracle client software version 11.2.0.4 or higher. 7. Configure secure storage in file system (SSFS) for ABAP, otherwise the SAP System cannot start because it cannot connect to the database. In addition, consider the dependencies on the SAP kernel version. When upgrading from Oracle 11g to 12c, you can perform this step before starting the actual database upgrade.

1541 Views Tags: oracle12c