SlideShare une entreprise Scribd logo
1  sur  24
K.Ravi Kanth
K.Ravi Kanth


   1 . Introduction

Purpose
                     This document is a Migration Procedure document for upgrade of Oracle Applications
                     11.5.10.1 to 11.5.10.2 and database 9.2.0.5 to 10.2.03 with 32 bit to 64 bit And Rup1
                     patch for HRMS Family Pack K.




Scope
                                    Source                     Target
          Operating System          Sun Solaris                Sun Solaris (SPARC)
                                    (SPARC) V5.9               V5.9
          Database version          9.2.0.5                    10.2.0.3
          Oracle Application        11.5.10.1, Multi           11.5.10.2 Multi Node
          Version                   Node
K.Ravi Kanth

4 Data Base Upgrade From 9.2.0.5 to 10.2.0.3


4.1 Pre upgrade Task
    Interpretability patch for 10.2.0 compatibility (4653225 Application patches language)

 Take the inventory backup

       Location /var/opt/oracle

 Take the backup of database links with scripts.
      Select * from dba_db_links;

 Take the information of invalid objects.
     Select object_name, owner, object_type, status from dba_objects where
     status='INVALID';

 Check dba_registry for Invalid Products

         SELECT comp_name, status, substr(version,1,10) as version from dba_registry;


         COMP_NAME                          VERSION               STATUS
         ------------------------------    ----------             -----------
         Oracle9i Catalog Views             9.2.0.5.0             VALID
         Oracle9i Packages and Types        9.2.0.5.0             VALID
         Oracle9i Real Application Clus     9.2.0.5.0             INVALID
         ters
         Oracle XML Database                9.2.0.5.0             VALID
         JServer JAVA Virtual Machine       9.2.0.5.0             VALID
         Oracle XDK for Java                9.2.0.7.0             VALID
         Oracle9i Java Packages             9.2.0.5.0             VALID
         Oracle interMedia                  9.2.0.1.0             LOADED
         Spatial                            9.2.0.5.0             VALID
         Oracle Text                        9.2.0.5.0             VALID
         OLAP Analytic Workspace            9.2.0.5.0             LOADED
         Oracle OLAP API                    9.2.0.5.0             LOADED
         OLAP Catalog                      9.2.0.5.0              VALID
         Oracle Data Mining                 9.2.0.5.0             VALID
      If XML DB is invalid, stop the upgrade. INVALID Product needs to be fixed prior to
      migration. “Real Application Cluster” can be ignored.
K.Ravi Kanth

 System Table space requirements
      Add 2GB file to system table space

 Check if product “ZPB” is installed

       Refer the following doc for finding the ZPB 404397.1


 Install the base 10.2.0 software.

       Before installing Set ORACLE_HOME=NEW oracle home
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth




 Install Oracle Database 10g Products from the 10g Companion CD
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth




 Perform 10.2.0.3 patch set installation tasks
  The ORACLE_HOME environment variable points to the new 10.2.0 Oracle home.

     Example: ORACLE_HOME=10.2.0.3 oracle_home

     The PATH environment variable includes $ORACLE_HOME/bin and the directory where
     the new perl executable is located (usually $ORACLE_HOME/perl/bin).

     Example: PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin

     The LD_LIBRARY_PATH environment variable includes $ORACLE_HOME/lib.

     Example: Export LD_LIBRARY_PATH =$ORACLE_HOME/lib

     The PERL5LIB environment variable points to the directories where the new perl libraries

     are located (usually $ORACLE_HOME/perl/lib/<perl version> and

     $ORACLE_HOME/perl/lib/site_perl/<perl version>)
K.Ravi Kanth

Example: Export PERL5LIB =$ORACLE_HOME/perl/lib/5.6.1
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth
K.Ravi Kanth




 Create nls/data/9idata directory

     Go to 10.2.0.3 ORCALE_HOME
     cd $ORACLE_HOME/nls/data/old/
     Perl cr9idata.pl

      ORA_NLS10=10.2.0.3 ORCALE_HOME /nls/data/9idata

 Apply additional 10.2.0.3 RDBMS patches (5892355)
     Problem in connecting sqlplus
     When we are connecting 10.2.0.3 ORACLE_HOME, we are getting insufficient privileges problem.

     Solution: we modified $ORACLE_HOME/rdbms/lib/config.s file .

     The group name was incorrect.we change dba group to correct group (dbahr).

     Then we relink using $ make -f ins_rdbms.mk config.o ioracle

 Apply Additional patches for bug fixes
K.Ravi Kanth

    For the following error in up gradation task we need to apply these patches
    (ORA-06512: at "SYS.UPGRADE_SYSTEM_TYPES_FROM_920", line 1)
    5755471, Patch 5871314 and Patch 5892355



4.2 Upgrade Task

       Cd $ORACLE_HOME/bin/
       Run dbua using ./dbua
K.Ravi Kanth
K.Ravi Kanth




We are getting below errors.
K.Ravi Kanth


ORA-06512: at "SYS.UPGRADE_SYSTEM_TYPES_FROM_920", line 1

Apply database patches on 10.2.0.3 for the bug: ORA-00600: internal error code, arguments:
[22635], [], [], [], [], [], [], []


Patches: 5755471, Patch 5871314 and Patch 5892355

ERROR at line 1:
ORA-14501: object is not partitioned
ORA-06512: at "SYS.DBMS_LOGMNR_D", line 232
ORA-06512: at line 32


Bug 4651168 - DBMS_LOGMNR_D.SET_TABLESPACE('SYSAUX') FAILS DURING UPGRADE
TO 10.2.0.1 ORA-1450

Usually Primary Key (PK) are created as disabled and they can be altered from SYSTEM to
SYSAUX tablespace without problems but it seems like some PK were enabled and they remain
enabled during upgradation to 10.2.x.

   If you use LogMiner feature, all of primary key in LogMiner tables should be disabled:

 List the enabled primary key in LogMiner tables with

   SQL> select owner, constraint_name, constraint_type, status, table_name from
   dba_constraints
   where constraint_type = 'P' and table_name in (select table_name from
   dba_tables where table_name like '%LOGMNR%' and partitioned = 'YES')
   order by 5,2;

 Disable each primary key by
  SQL> alter table system.<table name> disable primary key;

 Execute procedure manually
  SQL> dbms_logmnr_d.set_tablespace('SYSAUX')

 Enable Primary key that were disabled in Step 2.

 If you have not ignored the error and upgrade has been cancelled, retry upgrade.
K.Ravi Kanth

4.3 Post Upgrade Task


    Check the status of components at DBA_REGISTRY



COMP_NAME                           VERSION              STATUS
-----------------------------------  ----------          ----------
Oracle Data Mining                    10.2.0.3.0         VALID
Oracle XML Database                  10.2.0.3.0          VALID
OLAP Catalog                         10.2.0.3.0           VALID
Oracle Text                          10.2.0.3.0          VALID
Spatial                             10.2.0.3.0           VALID
Oracle interMedia                    10.2.0.3.0          VALID
Oracle Database Catalog Views        10.2.0.3.0           VALID
Oracle Database Packages and Types 10.2.0.3.0            UPGRADED
Oracle Real Application Clusters     10.2.0.3.0          INVALID
JServer JAVA Virtual Machine         10.2.0.3.0          VALID
Oracle XDK                           10.2.0.3.0          VALID
Oracle Database Java Packages        10.2.0.3.0          VALID
OLAP Analytic Workspace              10.2.0.3.0          VALID
Oracle OLAP API                     10.2.0.3.0           VALID




    Configuring 10.2.0 ORACLE_HOME


      Create APPSUTIL ( Part of DB Tier adconfig)

      Log in to the Mid Tier as appsuser
      Create appsutil.zip file
      Log in to the APPL_TOP environment (source the environment file)
         Create appsutil.zip file
         $ perl $AD_TOP/bin/admkappsutil.pl
         This will create appsutil.zip in $APPL_TOP/admin/out
      Copy this new file to our staging area for this customer:
         $ cp $APPL_TOP/admin/out/appsutil.zip to NEW_ORACLE_HOME
         As or#LOWER_SID# on all DB tiers , copy(or SCP or FTP) the appsutil.zip created
         above under
         Unzip appsutil.zip under ORACLE_HOME
K.Ravi Kanth

      $ cd $ORACLE_HOME
      $ unzip -o
      $ cd $ORACLE_HOME
       $ mkdir ORACLE_HOME/outbound
      Copy $TNS_ADMIN from 9.2.0 to 10.2.0 oracle home
      Copy context file from 9.2.0 to 10.2.0 oracle home
      Create new pfile from spfile and change the required parameters


 AutoConfig on DB Tier

   Create XML file in db tier .Appsutil has already been unzipped in earlier step.
   Be sure to source the 10.2.0 environment file
      cd $ORACLE_HOME/appsutil/bin
      perl adbldxml.pl tier=db appsuser=APPS appspasswd=<APPSpwd>
 Start 10.2.0.3 listener
     $ lsnrctl start $ORACLE_SID
 Check for oracle 64 bit
  login on DB Tier
      cd $ORACLE_HOME/bin
       $file oracle

 Count the invalids after the upgrade

      select owner, object_type, object_name
      from dba_objects
      where status='INVALID'

      SQL>@?/rdbms/admin/utlrp


 Gather statistics for SYS schema
  Gather the statistics for apps and sys level
  On 10g, it is mandatory to collect stats for sys.

   Run the script $APPL_TOP/admin/adstats.sql
   adstats.sql
K.Ravi Kanth

 Re-create custom database links
 Re-create grants and synonyms
adadmin  Maintain Applications Database Entities  Re-create grants and synonyms for
APPS schema
 Compile the Apps schema
     adadmin  Compile/Reload Applications Database Entities  Compile APPS schema

Contenu connexe

Tendances

Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksCloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksScott Jenner
 
Oracle 11G SCAN: Concepts and Implementation Experience Sharing
Oracle 11G SCAN: Concepts and Implementation Experience SharingOracle 11G SCAN: Concepts and Implementation Experience Sharing
Oracle 11G SCAN: Concepts and Implementation Experience SharingYury Velikanov
 
Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2Yury Velikanov
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Biju Thomas
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commandsPiyush Kumar
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1Chien Chung Shen
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareNikhil Kumar
 
Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Ludovico Caldara
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaperYury Velikanov
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 

Tendances (20)

61 Rac
61 Rac61 Rac
61 Rac
 
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksCloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
 
161 Rac
161 Rac161 Rac
161 Rac
 
Oracle 11G SCAN: Concepts and Implementation Experience Sharing
Oracle 11G SCAN: Concepts and Implementation Experience SharingOracle 11G SCAN: Concepts and Implementation Experience Sharing
Oracle 11G SCAN: Concepts and Implementation Experience Sharing
 
41 Pdfsam
41 Pdfsam41 Pdfsam
41 Pdfsam
 
Oracle-11g-upgrade
Oracle-11g-upgradeOracle-11g-upgrade
Oracle-11g-upgrade
 
241 Pdfsam
241 Pdfsam241 Pdfsam
241 Pdfsam
 
Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commands
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
 
181 Rac
181 Rac181 Rac
181 Rac
 
Long live to CMAN!
Long live to CMAN!Long live to CMAN!
Long live to CMAN!
 
81 Pdfsam
81 Pdfsam81 Pdfsam
81 Pdfsam
 
Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Let your DBAs get some REST(api)
Let your DBAs get some REST(api)
 
381 Rac
381 Rac381 Rac
381 Rac
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 

En vedette

eMok - Wirelessly heat your coffee
eMok - Wirelessly heat your coffeeeMok - Wirelessly heat your coffee
eMok - Wirelessly heat your coffeeRob Hasselo
 
Amazon Rainforest
Amazon RainforestAmazon Rainforest
Amazon Rainforestneta97
 
"Overview of Innovation and Product / Technology Implications Related to Eco ...
"Overview of Innovation and Product / Technology Implications Related to Eco ..."Overview of Innovation and Product / Technology Implications Related to Eco ...
"Overview of Innovation and Product / Technology Implications Related to Eco ...Sustainable Business Partnership
 
Paperless Education 2010v2
Paperless Education 2010v2Paperless Education 2010v2
Paperless Education 2010v2Blanca Herrera
 
Amazon rainforest
Amazon rainforestAmazon rainforest
Amazon rainforestneta97
 
Women entrepreneurship, the Nigerian police officers wives context.
Women entrepreneurship,  the Nigerian police officers wives context.Women entrepreneurship,  the Nigerian police officers wives context.
Women entrepreneurship, the Nigerian police officers wives context.iyke ezeugo
 
Computer problems
Computer problemsComputer problems
Computer problemsneta97
 
Paperless Education 2010
Paperless Education 2010Paperless Education 2010
Paperless Education 2010Blanca Herrera
 
KLM Groundcontrol
KLM GroundcontrolKLM Groundcontrol
KLM GroundcontrolRob Hasselo
 
Kode etik guru di indonesia
Kode etik guru di indonesiaKode etik guru di indonesia
Kode etik guru di indonesiaAby Na Ersan
 
A taste of Italy foods
A taste of Italy foodsA taste of Italy foods
A taste of Italy foodsDolceterra
 
Business intelligence and data analytic for value realization
Business intelligence and data analytic for value realization Business intelligence and data analytic for value realization
Business intelligence and data analytic for value realization iyke ezeugo
 
プログラミング.NET Framework出版記念座談会
プログラミング.NET Framework出版記念座談会プログラミング.NET Framework出版記念座談会
プログラミング.NET Framework出版記念座談会Kazushi Kamegawa
 
Ss8 The Ready Guide 2 0
Ss8 The Ready Guide 2 0Ss8 The Ready Guide 2 0
Ss8 The Ready Guide 2 0guest21f2fb
 

En vedette (16)

eMok - Wirelessly heat your coffee
eMok - Wirelessly heat your coffeeeMok - Wirelessly heat your coffee
eMok - Wirelessly heat your coffee
 
Amazon Rainforest
Amazon RainforestAmazon Rainforest
Amazon Rainforest
 
"Overview of Innovation and Product / Technology Implications Related to Eco ...
"Overview of Innovation and Product / Technology Implications Related to Eco ..."Overview of Innovation and Product / Technology Implications Related to Eco ...
"Overview of Innovation and Product / Technology Implications Related to Eco ...
 
Paperless Education 2010v2
Paperless Education 2010v2Paperless Education 2010v2
Paperless Education 2010v2
 
Amazon rainforest
Amazon rainforestAmazon rainforest
Amazon rainforest
 
Codestorm presentation
Codestorm presentation Codestorm presentation
Codestorm presentation
 
Women entrepreneurship, the Nigerian police officers wives context.
Women entrepreneurship,  the Nigerian police officers wives context.Women entrepreneurship,  the Nigerian police officers wives context.
Women entrepreneurship, the Nigerian police officers wives context.
 
Computer problems
Computer problemsComputer problems
Computer problems
 
Paperless Education 2010
Paperless Education 2010Paperless Education 2010
Paperless Education 2010
 
KLM Groundcontrol
KLM GroundcontrolKLM Groundcontrol
KLM Groundcontrol
 
Kode etik guru di indonesia
Kode etik guru di indonesiaKode etik guru di indonesia
Kode etik guru di indonesia
 
A taste of Italy foods
A taste of Italy foodsA taste of Italy foods
A taste of Italy foods
 
Business intelligence and data analytic for value realization
Business intelligence and data analytic for value realization Business intelligence and data analytic for value realization
Business intelligence and data analytic for value realization
 
6th. Grade-2 integers
6th. Grade-2 integers6th. Grade-2 integers
6th. Grade-2 integers
 
プログラミング.NET Framework出版記念座談会
プログラミング.NET Framework出版記念座談会プログラミング.NET Framework出版記念座談会
プログラミング.NET Framework出版記念座談会
 
Ss8 The Ready Guide 2 0
Ss8 The Ready Guide 2 0Ss8 The Ready Guide 2 0
Ss8 The Ready Guide 2 0
 

Similaire à Data Base Upgrade

Manual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLManual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLErick Vidbaz
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021Frederic Descamps
 
Kubernetes for Java developers
Kubernetes for Java developersKubernetes for Java developers
Kubernetes for Java developersRobert Barr
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseMonowar Mukul
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Ajith Narayanan
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
Tackle Containerization Advisor (TCA) for Legacy Applications
Tackle Containerization Advisor (TCA) for Legacy ApplicationsTackle Containerization Advisor (TCA) for Legacy Applications
Tackle Containerization Advisor (TCA) for Legacy ApplicationsKonveyor Community
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响maclean liu
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorialKlausePaulino
 
Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Mohamed Sadek
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradationinfluxbob
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Raheel Syed
 
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...Maris Elsins
 
Oracle Database 12c "New features"
Oracle Database 12c "New features" Oracle Database 12c "New features"
Oracle Database 12c "New features" Anar Godjaev
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesLudovico Caldara
 

Similaire à Data Base Upgrade (20)

Manual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQLManual Tecnico OGG Oracle to MySQL
Manual Tecnico OGG Oracle to MySQL
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 
Kubernetes for Java developers
Kubernetes for Java developersKubernetes for Java developers
Kubernetes for Java developers
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
MySQL on Docker and Kubernetes
MySQL on Docker and KubernetesMySQL on Docker and Kubernetes
MySQL on Docker and Kubernetes
 
Tackle Containerization Advisor (TCA) for Legacy Applications
Tackle Containerization Advisor (TCA) for Legacy ApplicationsTackle Containerization Advisor (TCA) for Legacy Applications
Tackle Containerization Advisor (TCA) for Legacy Applications
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
 
Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9Presentation Template - NCOAUG Conference Presentation - 16 9
Presentation Template - NCOAUG Conference Presentation - 16 9
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
Refreshing mule cache using oracle database change notification
Refreshing mule cache using oracle database change notificationRefreshing mule cache using oracle database change notification
Refreshing mule cache using oracle database change notification
 
MySQL Shell for DBAs
MySQL Shell for DBAsMySQL Shell for DBAs
MySQL Shell for DBAs
 
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
 
Oracle Database 12c "New features"
Oracle Database 12c "New features" Oracle Database 12c "New features"
Oracle Database 12c "New features"
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 

Data Base Upgrade

  • 2. K.Ravi Kanth 1 . Introduction Purpose This document is a Migration Procedure document for upgrade of Oracle Applications 11.5.10.1 to 11.5.10.2 and database 9.2.0.5 to 10.2.03 with 32 bit to 64 bit And Rup1 patch for HRMS Family Pack K. Scope Source Target Operating System Sun Solaris Sun Solaris (SPARC) (SPARC) V5.9 V5.9 Database version 9.2.0.5 10.2.0.3 Oracle Application 11.5.10.1, Multi 11.5.10.2 Multi Node Version Node
  • 3. K.Ravi Kanth 4 Data Base Upgrade From 9.2.0.5 to 10.2.0.3 4.1 Pre upgrade Task  Interpretability patch for 10.2.0 compatibility (4653225 Application patches language)  Take the inventory backup Location /var/opt/oracle  Take the backup of database links with scripts. Select * from dba_db_links;  Take the information of invalid objects. Select object_name, owner, object_type, status from dba_objects where status='INVALID';  Check dba_registry for Invalid Products SELECT comp_name, status, substr(version,1,10) as version from dba_registry; COMP_NAME VERSION STATUS ------------------------------ ---------- ----------- Oracle9i Catalog Views 9.2.0.5.0 VALID Oracle9i Packages and Types 9.2.0.5.0 VALID Oracle9i Real Application Clus 9.2.0.5.0 INVALID ters Oracle XML Database 9.2.0.5.0 VALID JServer JAVA Virtual Machine 9.2.0.5.0 VALID Oracle XDK for Java 9.2.0.7.0 VALID Oracle9i Java Packages 9.2.0.5.0 VALID Oracle interMedia 9.2.0.1.0 LOADED Spatial 9.2.0.5.0 VALID Oracle Text 9.2.0.5.0 VALID OLAP Analytic Workspace 9.2.0.5.0 LOADED Oracle OLAP API 9.2.0.5.0 LOADED OLAP Catalog 9.2.0.5.0 VALID Oracle Data Mining 9.2.0.5.0 VALID If XML DB is invalid, stop the upgrade. INVALID Product needs to be fixed prior to migration. “Real Application Cluster” can be ignored.
  • 4. K.Ravi Kanth  System Table space requirements Add 2GB file to system table space  Check if product “ZPB” is installed Refer the following doc for finding the ZPB 404397.1  Install the base 10.2.0 software. Before installing Set ORACLE_HOME=NEW oracle home
  • 8. K.Ravi Kanth  Install Oracle Database 10g Products from the 10g Companion CD
  • 12. K.Ravi Kanth  Perform 10.2.0.3 patch set installation tasks The ORACLE_HOME environment variable points to the new 10.2.0 Oracle home. Example: ORACLE_HOME=10.2.0.3 oracle_home The PATH environment variable includes $ORACLE_HOME/bin and the directory where the new perl executable is located (usually $ORACLE_HOME/perl/bin). Example: PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin The LD_LIBRARY_PATH environment variable includes $ORACLE_HOME/lib. Example: Export LD_LIBRARY_PATH =$ORACLE_HOME/lib The PERL5LIB environment variable points to the directories where the new perl libraries are located (usually $ORACLE_HOME/perl/lib/<perl version> and $ORACLE_HOME/perl/lib/site_perl/<perl version>)
  • 13. K.Ravi Kanth Example: Export PERL5LIB =$ORACLE_HOME/perl/lib/5.6.1
  • 17. K.Ravi Kanth  Create nls/data/9idata directory Go to 10.2.0.3 ORCALE_HOME cd $ORACLE_HOME/nls/data/old/ Perl cr9idata.pl ORA_NLS10=10.2.0.3 ORCALE_HOME /nls/data/9idata  Apply additional 10.2.0.3 RDBMS patches (5892355) Problem in connecting sqlplus When we are connecting 10.2.0.3 ORACLE_HOME, we are getting insufficient privileges problem. Solution: we modified $ORACLE_HOME/rdbms/lib/config.s file . The group name was incorrect.we change dba group to correct group (dbahr). Then we relink using $ make -f ins_rdbms.mk config.o ioracle  Apply Additional patches for bug fixes
  • 18. K.Ravi Kanth For the following error in up gradation task we need to apply these patches (ORA-06512: at "SYS.UPGRADE_SYSTEM_TYPES_FROM_920", line 1) 5755471, Patch 5871314 and Patch 5892355 4.2 Upgrade Task Cd $ORACLE_HOME/bin/ Run dbua using ./dbua
  • 20. K.Ravi Kanth We are getting below errors.
  • 21. K.Ravi Kanth ORA-06512: at "SYS.UPGRADE_SYSTEM_TYPES_FROM_920", line 1 Apply database patches on 10.2.0.3 for the bug: ORA-00600: internal error code, arguments: [22635], [], [], [], [], [], [], [] Patches: 5755471, Patch 5871314 and Patch 5892355 ERROR at line 1: ORA-14501: object is not partitioned ORA-06512: at "SYS.DBMS_LOGMNR_D", line 232 ORA-06512: at line 32 Bug 4651168 - DBMS_LOGMNR_D.SET_TABLESPACE('SYSAUX') FAILS DURING UPGRADE TO 10.2.0.1 ORA-1450 Usually Primary Key (PK) are created as disabled and they can be altered from SYSTEM to SYSAUX tablespace without problems but it seems like some PK were enabled and they remain enabled during upgradation to 10.2.x. If you use LogMiner feature, all of primary key in LogMiner tables should be disabled:  List the enabled primary key in LogMiner tables with SQL> select owner, constraint_name, constraint_type, status, table_name from dba_constraints where constraint_type = 'P' and table_name in (select table_name from dba_tables where table_name like '%LOGMNR%' and partitioned = 'YES') order by 5,2;  Disable each primary key by SQL> alter table system.<table name> disable primary key;  Execute procedure manually SQL> dbms_logmnr_d.set_tablespace('SYSAUX')  Enable Primary key that were disabled in Step 2.  If you have not ignored the error and upgrade has been cancelled, retry upgrade.
  • 22. K.Ravi Kanth 4.3 Post Upgrade Task  Check the status of components at DBA_REGISTRY COMP_NAME VERSION STATUS ----------------------------------- ---------- ---------- Oracle Data Mining 10.2.0.3.0 VALID Oracle XML Database 10.2.0.3.0 VALID OLAP Catalog 10.2.0.3.0 VALID Oracle Text 10.2.0.3.0 VALID Spatial 10.2.0.3.0 VALID Oracle interMedia 10.2.0.3.0 VALID Oracle Database Catalog Views 10.2.0.3.0 VALID Oracle Database Packages and Types 10.2.0.3.0 UPGRADED Oracle Real Application Clusters 10.2.0.3.0 INVALID JServer JAVA Virtual Machine 10.2.0.3.0 VALID Oracle XDK 10.2.0.3.0 VALID Oracle Database Java Packages 10.2.0.3.0 VALID OLAP Analytic Workspace 10.2.0.3.0 VALID Oracle OLAP API 10.2.0.3.0 VALID  Configuring 10.2.0 ORACLE_HOME Create APPSUTIL ( Part of DB Tier adconfig) Log in to the Mid Tier as appsuser Create appsutil.zip file Log in to the APPL_TOP environment (source the environment file) Create appsutil.zip file $ perl $AD_TOP/bin/admkappsutil.pl This will create appsutil.zip in $APPL_TOP/admin/out Copy this new file to our staging area for this customer: $ cp $APPL_TOP/admin/out/appsutil.zip to NEW_ORACLE_HOME As or#LOWER_SID# on all DB tiers , copy(or SCP or FTP) the appsutil.zip created above under Unzip appsutil.zip under ORACLE_HOME
  • 23. K.Ravi Kanth $ cd $ORACLE_HOME $ unzip -o $ cd $ORACLE_HOME $ mkdir ORACLE_HOME/outbound Copy $TNS_ADMIN from 9.2.0 to 10.2.0 oracle home Copy context file from 9.2.0 to 10.2.0 oracle home Create new pfile from spfile and change the required parameters  AutoConfig on DB Tier Create XML file in db tier .Appsutil has already been unzipped in earlier step. Be sure to source the 10.2.0 environment file cd $ORACLE_HOME/appsutil/bin perl adbldxml.pl tier=db appsuser=APPS appspasswd=<APPSpwd>  Start 10.2.0.3 listener $ lsnrctl start $ORACLE_SID  Check for oracle 64 bit login on DB Tier cd $ORACLE_HOME/bin $file oracle  Count the invalids after the upgrade select owner, object_type, object_name from dba_objects where status='INVALID' SQL>@?/rdbms/admin/utlrp  Gather statistics for SYS schema Gather the statistics for apps and sys level On 10g, it is mandatory to collect stats for sys. Run the script $APPL_TOP/admin/adstats.sql adstats.sql
  • 24. K.Ravi Kanth  Re-create custom database links  Re-create grants and synonyms adadmin  Maintain Applications Database Entities  Re-create grants and synonyms for APPS schema  Compile the Apps schema adadmin  Compile/Reload Applications Database Entities  Compile APPS schema