Oracle Upgrade -- Pre-Upgrade 10.2.0.4 to 11.2.0.1
Hello,
I want to do an Oracle Upgrade to version 11.2g!
At this point I did some things (in Windows Server 2003 X64):
1-) Install Oracle 10.2.0.1 (DVD Media);
2-) Installation of Oracle patchset 10.2.0.4 (note 871735);
3-) Installation of interim / last generics patch (note 1137346);
4-) Installation of SAP ECC 6.0 SR3 by SAPInst
5-) After SAP installation I did all the corrections in Oracle parameters as it mentioned in note 830576.
As you see above, all the SAP system was well installed!
But now I want to do the Oracle Upgrade process to the last version, Oracle DB 11.2g (11.2.0.1)... and so I´m following the Upgrade guide "Upgrade to Oracle Database 11g Release 2 (11.2) Windows.pdf" with some SAP notes for Upgrade process.
So I´m at this point in planning chapter where is recommended to check so things in actual database, one of this checks are running some SQL-scripts to perform an Oracle database upgrade with DBUA to release 11.2 (as mentioned in note 1431793 - Oracle 11.2.0: Upgrade Scripts)
I ran two Pre-Scripts, the @pre_upgrade_status.sql and @pre_upgrade_tasks.sql but both outputs showed some warnings and they are worrying me... so what I ask to you is some kind of help in analyse of them and tell me if this issues are relevant for the upgrading process and if so, what you recommend me to do to correct their!
Next I will post here this two log scripts... they are long!!!
PRE_UPGRADE_TASKS.log:
SQL> @pre_upgrade_tasks.sql
PRE-UPGRADE Tasks: === START ===
2010-08-05 18:24:13
Recompiling invalid objects
This reduces the number of invalid objects as much as possible.
COMP_TIMESTAMP UTLRP_BGN 2010-08-05 18:24:13
DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC> objects in the database. Recompilation time is proportional to the
DOC> number of invalid objects in the database, so this command may take
DOC> a long time to execute on a database with a large number of invalid
DOC> objects.
DOC>
DOC> Use the following queries to track recompilation progress:
DOC>
DOC> 1. Query returning the number of invalid objects remaining. This
DOC> number should decrease with time.
DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC> 2. Query returning the number of objects compiled so far. This number
DOC> should increase with time.
DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC> This script automatically chooses serial or parallel recompilation
DOC> based on the number of CPUs available (parameter cpu_count) multiplied
DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC> On RAC, this number is added across all RAC nodes.
DOC>
DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC> recompilation. Jobs are created without instance affinity so that they
DOC> can migrate across RAC nodes. Use the following queries to verify
DOC> whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC> 1. Query showing jobs created by UTL_RECOMP
DOC> SELECT job_name FROM dba_scheduler_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC> SELECT job_name FROM dba_scheduler_running_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#
COMP_TIMESTAMP UTLRP_END 2010-08-05 18:24:15
DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#
0
DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#
0
Purging Recyclebin
This reduces the time needed for upgrading the database.
Truncating SYS.AUD$
This reduces the time needed for upgrading the database.
Gathering Oracle Dictionary Statistics
This reduces the time needed for upgrading the database.
Running Pre-Upgrade-Information Tool utlu112i.sql
This is a mandatory task for manual database upgrades.
This tool is also run in pre_upgrade_status.sql.
Oracle Database 11.2 Pre-Upgrade Information Tool 08-05-2010 18:24:45
Script Version: 11.2.0.1.0 Build: 003
Database:
--> name: PRD
--> version: 10.2.0.4.0
--> compatible: 10.2.0
--> blocksize: 8192
--> platform: Microsoft Windows x86 64-bit
--> timezone file: V4
Tablespaces: [make adjustments in the current environment]
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 905 MB
--> PSAPUNDO tablespace is adequate for the upgrade.
.... minimum required size: 84 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 210 MB
--> PSAPTEMP tablespace is adequate for the upgrade.
.... minimum required size: 61 MB
Flashback: OFF
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit database.
--> If Target Oracle is 32-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
--> If Target Oracle is 64-Bit, refer here for Update Parameters:
WARNING: --> "shared_pool_size" needs to be increased to at least 472 MB
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
-- No renamed parameters found. No changes are required.
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
--> remote_os_authent 11.1 DEPRECATED
--> background_dump_dest 11.1 DEPRECATED replaced by "diagnostic_dest"
--> user_dump_dest 11.1 DEPRECATED replaced by "diagnostic_dest"
Components: [The following database components will be upgraded or installed]
--> Oracle Catalog Views [upgrade] VALID
--> Oracle Packages and Types [upgrade] VALID
Miscellaneous Warnings
WARNING: --> Database is using a timezone file older than version 11.
.... After the release migration, it is recommended that DBMS_DST package
.... be used to upgrade the 10.2.0.4.0 database timezone version
.... to the latest version which comes with the new release.
Recommendations
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
EXECUTE dbms_stats.gather_dictionary_stats;
Oracle recommends removing all hidden parameters prior to upgrading.
To view existing hidden parameters execute the following command
while connected AS SYSDBA:
SELECT name,description from SYS.V$PARAMETER WHERE name
LIKE '\_%' ESCAPE '\'
Changes will need to be made in the init.ora or spfile.
Oracle recommends reviewing any defined events prior to upgrading.
To view existing non-default events execute the following commands
while connected AS SYSDBA:
Events:
SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'
Trace Events:
SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'
Changes will need to be made in the init.ora or spfile.
PRE-UPGRADE Tasks: === FINISHED ===
SQL> spool off
Similar Messages
-
Oracle Upgrade from 10g to 11g [BRANCHED BY MODERATOR]
Hi Deepak/Folks,
Another question that I have is that while doing the Oracle Upgrade on an EP server, the patches were not installed properly and I had to shut down the Patches installation after it did not do anything for a while.
Now when I try to install the patches it fails telling me that the Installed patches cannot be verified, I had written to SAP and they told me to follow the
SAP note 1862446 - Inventory
load failed... OPatch cannot load inventory for the given Oracle Home
and re-create the oracle inventory.
This has also not helped in anyway.
Is there a solution to this problem.
Following is the error that I am getting when I try to Install the patches
Getting pre-run patch inventory...
Getting pre-run patch inventory...failed.
Cannot get pre-run patch inventory.
Refer to log file
$ORACLE_HOME/cfgtoollogs/mopatch/mopatch-2014_08_06-14-52-51.log
when I open the log file specified here I get the following
more mopatch-2014_08_06-14-52-51.log
more /oracle/<SID>/11203/cfgtoollogs/mopatch/mopatch-2014_08_06-15-01-51.log
MOPatch - Install Multiple Oracle Patches in One Run - 2.1.15.
Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
Version: 2.1.15
Revision: 5.1.2.26
Command-line: /oracle/<SID>/11203/MOPatch/mopatch.sh -v -s SAP11203P_1312-20009978.zip
Oracle Home: /oracle/<SID>/11203
RDBMS version: 11.2.0.3.0
OPatch version:11.2.0.3.3
Clean-up: supported
PSUs: supported
Log file: $ORACLE_HOME/cfgtoollogs/mopatch/mopatch-2014_08_06-15-01-51.log
Patch base: .
Patch source: SAP11203P_1312-20009978.zip
Link script: ./link.mts<SID>ua.sh
Readmes: <none>
Strpd. Readmes:<none>
make utility: /usr/ccs/bin/make
unzip utility: /oracle/<SID>/11203/bin/unzip
User name: ora<SID>
Working dir: /oracle/stage
System: HP-UX mts<SID>ua B.11.31 U ia64 2468369872 unlimited-user license
Disk free: 11734549 KBytes on /oracle/<SID>
Disk required: 886496 KBytes on /oracle/<SID>
Getting pre-run patch inventory...
executing: "/oracle/<SID>/11203/OPatch/opatch" lsinventory -retry 0 -xml "./mopatch-187-21696-tmpdir/preinv.xml"
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
Oracle Interim Patch Installer version 11.2.0.3.3
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/<SID>/11203
Central Inventory : /oracle/<SID>/oraInventory
from : /oracle/<SID>/11203/oraInst.loc
OPatch version : 11.2.0.3.3
OUI version : 11.2.0.3.0
Log file location : /oracle/<SID>/11203/cfgtoollogs/opatch/opatch2014-08-06_15-01-56PM_1.log
List of Homes on this system:
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
Oracle Home dir. path does not exist in Central Inventory
Oracle Home is a symbolic link
Oracle Home inventory is corrupted
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo
OPatch failed with error code 73
Getting pre-run patch inventory...failed.
Cannot get pre-run patch inventory. Exiting.
I would appreciate if you folks can help me out on this
Thanks
APSFOLLOW UP QUESTION BRANCHED:
Oracle Upgrade from 10g to 11g [BRANCHED BY MODERATOR] -
Checkout list for Post oracle upgrade
Hi Experts,
Please share the checkout list for post oracle upgrade.
Thanks,
ChandanaHi.
for all pre-requisites, please go through oracle upgrade guide (https://websmp110.sap-ag.de/instguides)
Thanks
sunny -
Oracle Upgrade to 9i for BO 5i
I'm preparing for an Oracle upgrade from 8.1.6 to 9.2 and a unix server migration via Oracle Export / Import. Potentially going on to 10g at a later point.
Will importing the BO user and re-pointing users to the new database be sufficient to upgrade the BO elements or are there other steps? I believe some overnight jobs are kicked off externally by what sounds like the "SDK" so I don't believe there are any server related BO elements in BO 5i.
All help appreciated. Information on the ground here is quite sketchy and I'm not a BO person.
Regardsyou can always upgrade to new versions from lower versions.
(upgradation to 9i from 7.x is also possible) -
Oracle Upgrade 8.1.7.4 to 10g in Red hat linux
Dear All,
We are planning to upgrade our oracle database from 8i to 10g along with the Redhat linux upgrade from 2.4.9-e 27 ent to Red Hat Linux 5. In my study and also from Installation guides and oracle upgrade guides I made sure that its possible to upgrade our database from 8.1.7.4.
So I have planned the below options to do the same and not sure about the possibilities. If anyone have thoughts and idea on the same please suggest me.
We dont have plan to migrate the development hardware and the sap version is 4.7E
Option 1: Upgrade the Linux to 5 and then upgrading the database to 10g usign upgrade assistant tool
Option 2: Export the database using sapinst tool and then crashing the server. Installing linux5 and importing the database using sapinst tool.(I am aware this is not a good idea since there is no migration in hardware but it will be helpful in production since we are migrating the production system).
Option 3: Performing DBUA assistant in development and sapinst method in production.(helpful in disaster recovery)
Could you please suggest on the same?
My query is that.
If i am performing oracle export from 8.1.7.4 and if i am import the same in oracle 10g using the sapinst tool. Will this work? or it will create a problem in table level. I am looking for answers for this Question. Kindly explain me on this.
Regards
VijayRe: Restoring data from 9i to 10g
The above link was useful to me
Regards
Vijay -
Oracle Upgrade from 8.1.7.4 to 9.2
Hi ALL,
I am having a problem when i am trying to upgrade oracle from 8.1.7 to 9.2.
I have installed Oracle 9i in seperate oracle home directory than the original 8.1.7 home directory. After that i have removed oracle_home = sid from <SID>adm user environment as described in sap upgrade manual.i have logged in again to activate the variables. When i am trying to start database upgrade assistant in new oracle 9i. it is showing me the old oracle home and asking me to upgrade. when i press enter..it is erroring out saying ora 12560 error.
Guys, could you please let us know why these error occured. Did i miss something as i followed sap document on oracle upgrade.
Thanks in advance..Hello vales,
Even i dont know how it worked .. upgrade assistant started working when i logged in with administrator account with which i installed oracle installations...
Thanks -
Hi
I did an oracle Upgrade from Oracle Upgrade 9.2.06 to 10.2 as per SAP Documentation.
and after the upgrade was successful i changed the password of SAPABT (sapowner)
and now it is giving an error in work folder <b>dev_wo</b>
while connecting can any one help please ?
Tue Feb 06 18:55:20 2007
C Client NLS settings: AMERICAN_AMERICA.WE8DEC
C Logon as OPS$-user to get SAPABT's password
C Connecting as /@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 044FAB58 045000D4 044FF95C
C Attaching to DB Server ABT (con_hdl=0,svchp=044FF8A8,svrhp=04503F14)
C Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
C Now '/@ABT' is connected (con_hdl 0, nls_hdl 0).
C Got SAPABT's password from OPS$-user
C Disconnecting from connection 0 ...
C Close user session (con_hdl=0,svchp=044FF8A8,usrhp=08C48D68)
C Now I'm disconnected from ORACLE
C Connecting as SAPABT/<pwd>@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 044FAB58 045000D4 044FF95C
C Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
[dboci.c 4473]
C *** ERROR => CONNECT failed with sql error '1017'
[dbsloci.c 11297]
B ***LOG BY2=> sql error 1017 performing CON [dbsh#3 @ 1204] [dbsh 1204 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#3 @ 1204] [dbsh 1204 ]
B ***LOG BY2=> sql error 1017 performing CON [dblink#2 @ 419] [dblink 0419 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#2 @ 419] [dblink 0419 ]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1284]SQL> connect / as sysdba
Connected.
SQL> SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
OWNER
OPS$CTSINTCOSNW5\ABTADM
SQL> SELECT OWNER, TABLE_OWNER, TABLE_NAME FROM DBA_SYNONYMS WHERE SYNONYM_NAME
= 'SAPUSER';
OWNER TABLE_OWNER
TABLE_NAME
OPS$CTSINTCOSNW5\SAPSERVICEABT OPS$CTSINTCOSNW5\ABTADM
SAPUSER
SQL>
Followed the note 400241 Problems with ops$ or sapr3 connect to Oracle
Problem got solved via the
Updating BR * Tools
brconnect -u / -c -f stats -t all -f collect -p 4 in Oracle Database Guide 4.3.6 BRCONNECT
Call BRTOOLS, Select Additional Functions --> Change password for database user.
in my case it is sapabt user
Thanks for the quick reply -
Oracle upgrade 9.2.0.7.0 to 10.2.0.4
Hello All,
We have to do oracle upgrade from 9.2.0.7.0 to 10.2.0.4.
OS : AIX 5.3
Sap Version :- SAP R/3 Enterprise ;Release 620
Kernel relaese :- 640 patch level 221
Looking for Compatibility Document or notes.
Regards,
Rupal kankaneyHi,
A number of note available for oracle upgrade from 9i to 10g :
Note 1151509 ORA-600[Kcbz_check_objd_typ_1] Upgrading from 9i to 10g
Note 830577 Oracle Database 10g: ORA-21700 when upgrading to 10.1/10.2
Note 819830 - Oracle Database 10g: Additional Information on upgrade:UNIX
Note 830576- Oracle Parameter Recommendation for Oracle 10g. And a lot of other notes on SMP.
Thanks
Sunny -
Oracle Upgrade 9.2.0.5.0 to 10.2.0,2
Hi!
Please help!, We are doing an oracle upgrade from 9.2.0.5.0 to 10.2.0.2 in HP-UX but the DBUA stops with the following in the logs:
In the user trace I see this:
ORA-942 on service$ trapped and ignored during OPEN for migrate
unexpected exception err=604, err2=942
In the oracle_server.log
CREATE OR REPLACE TYPE sys.streams$transformation_info
ERROR at line 1:
ORA-03113: end-of-file on communication channel
About 20 minutes later in the oracle alert log a core dump:
ORA-07445: exception encountered: core dump [koputilassert()+12] [SIGBUS] [unkno
wn code] [0x000000000] [] []
Please any advice would be greatly appreciated.
Thanks in advance
Erika
Edited by: ERIKA BORREGO on May 21, 2008 6:36 PMLooks like metalink 435400.1
I suggest you open a call @ SAP and let them look on the system.
Markus -
Oracle Upgrade 10.2.0.2 to 11g
Hello,
We have planed to upgrade the database Oracle from 10.2.0.2 to 11g.
We are wondering wether there is a risk to upgrade directely to 11g from our current version.
Also, what are the important points to observe and what are the tests to do in SAP before upgrading ?
Many thanks in advance
Regards
BenJust follow the Oracle upgrade guides at
http://service.sap.com/instguides
--> Database Upgrades
--> Oracle
- read all the notes mentioned in the guide
- make sure you use a proper kernel and a proper instantclient
- make sure you apply not only the upgrade itself but also all PSU patches
- take a full backup of the system
I suggest to first upgrade a test and/or qa system and then do the production.
Markus -
Oracle upgrade exam from oracle 9i to oracle 11g
Hi,
I want to give oracle upgrade exam from oracle 9i to oracle 11g release2.
But i do not have material for preparation of this exam. Oracle Database 11g: New Features for 9i OCPs", also known as 1z0-055 exam.
Please any one give me PPT or PDF or link from where i can get it? . which can help me to read for exam.
Thanks in advance.
Edited by: user647572 on Dec 26, 2011 5:10 AMuser647572 wrote:
Hi,
I want to give oracle upgrade exam from oracle 9i to oracle 11g release2.
But i do not have material for preparation of this exam. Oracle Database 11g: New Features for 9i OCPs", also known as 1z0-055 exam.
Please any one give me PPT or PDF or link from where i can get it? . which can help me to read for exam.
Thanks in advance.
Edited by: user647572 on Dec 26, 2011 5:10 AMI dispair when an Oracle Certified Professional says he does not have 'preapartion material' and asks for a PDF link.
.... The most likely response is from someone training to sell unauthorised learning materials.
..... The OCP should understand the exams topics and online manuals for 11g should be sufficient. Oracle Press Books and Sybex Books for 11g DBA OCP should also cover number of the required topics if that helps. Not to mention Oracle University Training.
...... But an OCP asking for a 'PDF' or 'PPT' for the 1z0-055 exam ??????? .... what form of content are you thinking? -
Comparision of Oracle upgrade(9i to 10g) and export/import process
Hi Friends,
I have a schema in Oracle 9i Database and i would like to have it in Oracle 10g.
I ned to know what will be the advantages and disavantages between the Oracle upgrade(9i and 10g) and export/import (9i export and 10g import)process?
Please suggest.
RegardsPlease go this link for new features of 10g:
[http://www.oracle.com/technology/pub/articles/10gdba/index.html]
For export and import go to this link:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm
Regards
Asif Kabir -
Hello Experts,
We have to upgrade oracle db from 10.2.0.2 to 11g.
While upgrading to PRD system there is DR system also, which uses DataGuard for archive update on DR system.
I would like to know that we need to take special care for DataGuard or DBUA will take care of DataGuard mechanism?
Thanks in advance.
Regards,
YogeshHi Yogesh,
in a SAP environment it is even more specific than the standard oracle upgrade guide (because of the compatible parameter and SAP scripts).
We discussed this already in this thread: Upgrade to Oracle 11G in standby environment
Regards
Stefan -
/oracle/oraInventory for oracle upgrade
Hello,
I am going to update oracle9.2.0.6 to 10.2.0.4 for SAP system. But the old /oracle/oraInventory (of oracle 9.2.0.6) is lost. Does it really matter?
What kinds of information will be read from /oracle/oraInventory during upgrade? Is it possible to upgrade without it?
Thank you very much.Hi Rongfeng,
Yes it is possible to upgrade to Oracle 10g without it.
For more details check oracle Upgrade doc at service.sap.com/instguides>Other Documentation> Database Upgrades
Thanks,
Sushil -
Oracle Upgrade interrupted inbetween, How to start the database?
Hi All,
Oracle upgrade is interrupted in between during the migration.
could you please provide me with the detail steps to start the database again with the 9i.
Thanks,
Anu.Where is "in the middle"? Using dbua? During filesystem copy? Without specifying where it broke the only thing one can suggest is to restore everything from before the upgrade (Oracle binaries and database).
Markus
Maybe you are looking for
-
Personal hotspot missing in my ipad4 after ios7 update
Hi iam dhanasekaran iam having ipad4 last week i updated to ios7 after that the personal hotspot is missing in settings menu. Iam using BSNL carrier. Pls help me how to get back the personal hotspot.
-
Today for the first time ever my MBP lost internet connection. I thought it was the modem or the router so I restarted both. I've had to do this before no big deal. After everything restarted I checked the network settings and it won't connect. Diggi
-
I cannot get Elements 12 to recognise and load NEF files from my Nikon D5300. I have downloaded and installed the latest DNG coverter software 8.7.1 but Elements still refuses to load any NEF files. regards Ian.
-
Why can't I seem to turn on the genius function using iPod classic?
I have never been able to use the genius function on my ipod classic, does anyone know why?
-
Activate WF for incoming post item Records Management
Hi. Could anyone tell me the steps to activate Workflow for incoming post item (Records Managemet). I'm traying with this Standard Task TS78800015 TS78800013 Regards