Escolar Documentos
Profissional Documentos
Cultura Documentos
html
Database up gradation from 10g ( 10.2.0.4 ) to 11g ( 11.1.0.7) in Oracle Application 11i Metalink Note : 452783.1
Step 1 : Down Load the Database Software from (edelivery.oracle.com/ or. http://www.oracle.com/tehnology/software/products/database/index.html 1. 11g Database ( Base versions 11.1.0.6) --- V14215-01_1of2.zip 2. Oracle Database 11g Examples ( formerly Companion ) ---- aix.ppc64_11gR1_examples.zip 3. 11g Database (11.1.0.7) Patch set ---- p6890831_111070_AIX5L_1of2.zip
Step 2: Stop the Oracle Application services , and Shutdown the Database and Db Listener. Take Full Cold Backup. Step 3: Create a New 11g Database Home: /B01/oracle $ mkdir test11gdb Step 4 : Install the 11g Database only Software only. $ export Oracle Base = /B01/oracle/test11gdb . Export Oracle SID = TESTNW cd /t01/clone/others/patches/upgrd_db11g/database_11g/database$ $. /runInstaller -invPtrLoc /B01/oracle/test11gdb /oraInst.loc
Note: For oracle Inventory Location Create OraInst.loc file in the ( at New oracle Base /B01/oracle/test11gdb location) Create directory .. mkdir oraInventory $ Vi oraInst.loc Inventory_loc = /B01/oracle/test11gdb/oraInventory Inst_group = dba **** next next next. -----------------------------------------------------------
Oracle Base Location : /B01/oracle/test11gdb Oracle Home : /B01/oracle/test11gd/product/11.1.0/db_1 ----------- system will create.
Step 5: Install the Oracle Database 11g Examples ( formerly Companion ) In the Default New Oracle_home ( /B01/oracle/test11gdb/product/11.1.0/db_1 ). Source Oracle_home / Oracle Sid $ cd /t01/clone/others/patches/upgrd_db11g/11g_Example_cd_companion/examples
$ ./runInstaller **** next next some of the products like /ctx/sample directory will create. ---- finsh
------------------------------------------------------------------------------------------------------------------------------
Step 8 . Apply additional 11.1.0.7 RDBMS Patches. As per the 452783.1 Metalink ID 6530141 , 6815733 , 6972189 , 7111245 , 7253531 , 7295298 , 7486407 , 8940108 9743057. Opatch utility for apply Database patches. Create one environment file : bash-3.00$ cat s.env export ORACLE_HOME=/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1 export ORACLE_SID=TESTNW export TNS_ADMIN=/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/network/admin/ export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/bin/OPatch:$PATH export ORACLE_BASE=/B01/oracle/test11gdb/11.1.0 bash-3.00$
-bash-3.00$./opatch version
bash-3.00$./opatch apply < DB Patch Location / Patch Direcotry> $ opatch apply /B01/patches/DB_patches/6530141
opatch rollback -id <Patch Number> -- roll back the applied patch $ORACLE_HOME/OPatch/opatch /slot/ems2029/oracle/db/tech_st/11.1.0/oraInst.loc lsinventory -invPtrLoc
$./opatch lsinventory
detachHome.bat / detachHome.sh: Use this script if the Oracle home is corrupted or needs to be updated. attachHome.bat / attachHome.sh: Use this script if the Oracle home needs to be added to the inventory.
If Problem Not solved ** Move the /etc/Orainventory Directory for backup. Create New /etc/oraInventory directory
bash-3.00$ pwd at 11g New home. We can find *.sh files. $find . name detachHome.sh -print /B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/oui/bin -rwxrwxr-x 1 oradev dba -rwxrwxr-x 1 oradev dba 213 Jan 29 12:08 detachHome.sh 306 Jan 29 12:08 attachHome.sh
=================================================================================== Step 9 : For Database Upgradation Run Pre Upgrade tool Process. Run utlu111i.sql from Old _ Oracle Home (10g) a). Copy the utlu111i.sql (/B01/oracle/test11gdb/product/11.1.0/db_1/rdbms/admin) to /tmp Directory. b). Stop all the services/ Tns listener / any other in the Instance. c). Source the enviro nment at Old_Oracle _Home ( /B01/oracle/test10gdb/10.2.0). $ sqlplus /as sysdba Sql> startup ---------- startup the OLD DB from Old_oracle HOME
Sql> spool upgrade_info.log Sql> @/tmp/utilu11i.sql Sql> spool off Sql> shut immediate;
Step 10. Create new Database Listener $ source the 11g New Database Home
$./netca
Note : ** Give As per the OLD Listener Same Lisener name : TESTNW Same Port : 1571
$./dbua
chose Database Dont Move. Next next password : DBSNMP..SYSMAN -> pitti .. FINISH.
------------- OR ----------------
Modify initialization Parameters Metalink Note : 216205.1 for Oracle 11i ( 11.1.0.7 ) See the Page No: 10 ------------------------------------------------------------------------------------------------------------------------------------
ii). Run adgrants.sql copy $APPL_TOP/admin/agrants.sql to New_Oracle_home/rdbms/admin $sqlplus /as sysdba @ adgrants.sql APPLSYS III). Grant create procedure privilege on CTXSYS Copy $AD_TOP/patch115/adctxprv.sql to New_Oracle_home/rdbms/admin $ sqlplus apps/apps @adctxprv.sql MANAGER CTXSYS ================================================================================
b). source the environment bash-3.00$ cat s.env export ORACLE_HOME=/B01/oracle/test11gdb/product/11.1.0/db_1 export ORACLE_SID=TESTNW export TNS_ADMIN=/B01/oracle/test11gdb/product/11.1.0/db_1/network/admin/ export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/bin/OPatch:$PATH export ORACLE_BASE=/B01/oracle/test11gdb/11.1.0
d). ***
$cd /B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/bin
$ ./adconfig.sh
*** After complete the autoconfig the Environment file will automatically created in 11g oracle_home Cd /B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1 ash-3.00$ ls *.env TESTNW_erpprod.env
e). *
Note :
Solution :
take ,xml backup , and modified with perl verision 5.8.3 , and re-run autoconfig.
$ cp TESTNW_erpprod.xml TESTNW_erpprod.xml_bak07_feb_2011 $ vi TESTNW_erpprod.xml <ADPERLPRG oa_var="s_adperlprg" osd="unix">/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/perl/bin/perl</ADPERLPRG> <PERL5LIB oa_var="s_perl5lib" osd="unix">/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/perl/lib/5.8.3/aix-threadmulti:/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/perl/lib/5.8.3:/B01/oracle/test11gdb/11.1.0/product /11.1.0/db_1/perl/lib/site_perl/5.8.3/aix-threadmulti:/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/perl/lib/site_perl/5.8.3:/B01/oracle/test11gdb/11.1. 0/product/11.1.0/db_1/perl/lib/site_perl:.:/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/appsutil/perl:/B 01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/appsutil/perl</PERL5LIB>
- re run autoconfig
at db_tier.
==============================================================================
CREATE TEMPORARY TABLESPACE temp1 TEMPFILE '/p01/oracle/proddata/temp01.dbf' SIZE 5000M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE unlimited DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES; ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1 ALTER TABLESPACE temp1 ADD TEMPFILE '/p01/oracle/proddata/temp02.dbf' SIZE 5000M REUSE AUTOEXTEND ON NEXT 1m MAXSIZE UNLIMITED --- drop old one.
TESTNW.__db_cache_size=230686720 TESTNW.__java_pool_size=67108864 TESTNW.__large_pool_size=117440512 TESTNW.__oracle_base='/B01/oracle/test11gdb/11.1.0'#ORACLE_BASE set from environment TESTNW.__pga_aggregate_target=1073741824 TESTNW.__sga_target=1073741824 TESTNW.__shared_io_pool_size=0 TESTNW.__shared_pool_size=629145600 TESTNW.__streams_pool_size=4194304
*._b_tree_bitmap_plans=FALSE# adding as per metalink docu *._optimizer_autostats_job=false# adding as per metalink docu *.aq_tm_processes=1 *.audit_file_dest='/B01/oracle/test11gdb/11.1.0/TESTNW/admin/adump' *.compatible='11.1.0' *.control_files='/B01/oracle/testdata/cntrl01.dbf','/B01/oracle/testdb/cntrl02.dbf','/B01/oracle/test data/cntrl03.dbf' *.cursor_sharing='EXACT' *.db_block_checking='FALSE' *.db_block_checksum='TRUE' *.db_block_size=8192 *.db_files=512 *.db_name='TESTNW' *.diagnostic_dest='/B01/oracle/test11gdb/11.1.0' *.dml_locks=10000 *.java_pool_size=67108864 *.job_queue_processes=2 *.large_pool_size=117440512 *.local_listener='LISTENER_TESTNW' *.log_buffer=14238720 *.log_checkpoint_interval=100000 *.log_checkpoint_timeout=1200 *.log_checkpoints_to_alert=TRUE *.max_dump_file_size='20480' *.nls_comp='binary' *.nls_date_format='DD-MON-RR' *.nls_language='american' *.nls_length_semantics='BYTE' *.nls_numeric_characters='.,' *.nls_sort='binary' *.nls_territory='america' *.olap_page_pool_size=4194304 *.open_cursors=600 *.optimizer_secure_view_merging=FALSE *.parallel_max_servers=8 *.parallel_min_servers=0 *.pga_aggregate_target=1073741824 *.plsql_code_type='INTERPRETED' *.plsql_optimize_level=2 *.processes=400 *.query_rewrite_enabled='true' *.sec_case_sensitive_logon=FALSE# adding as per metalink docu *.session_cached_cursors=500 *.sessions=445
bash-3.00$