Professional Documents
Culture Documents
Upgradation From Oracle 9i To Oracle 10g
Upgradation From Oracle 9i To Oracle 10g
Preparing to Upgrade
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
==================================
Step 1
Copy utlu102i.sql , utltzuv2.sql 10g oracle home to /tmp folder. Then run both scripts.
This scripts will show the preupgrade steps.
cp $ORACLE_HOME/rdbms/admin/utlu102i.sql /tmp
cp $ORACLE_HOME/rdbms/admin/utltzuv2.sql /tmp
===================================
Step 2
Then login 9i oracle home and login sql prompt. Then run that above scripts.
===================================
spool Database_Info.log
=======================================
Step 3
Check the above output file and resolve the warning and failed messages
=======================================
TEMP
APPS_TS_QUEUES
APPS_TS_TX_DATA
ODM
OLAP
============================================
Step 4
SQL> @utltzuv2.sql
Table created.
Commit complete.
=============================================
Step 5
To gather statistics run this script, connect to the database AS SYSDBA using SQL*Plus.
.... SYS
.... ODM
.... OLAPSYS
.... MDSYS
==================================================
Step 6
GRANTEE
=======
CFD
DMS
HCC
DGRAY
EUL_US
SSOSDK
WEBSYS
PROJMFG
SERVICES
WIRELESS
EDWEUL_US
GRANTEE
------------------------------
MOBILEADMIN
12 rows selected.
============================================
===========================================
Copy init.ora file 9i to 10g oracle home, Then change the parameter file.
-->"optimizer_max_permutations"
--> "row_locking"
--> "undo_suppress_errors"
--> "max_enabled_roles"
--> "enqueue_resources"
--> "sql_trace"
===========================================
Check the spool log file to Add and Increase the below parameter size
shared_pool_size=181217280
streams_pool_size=50331648
large_pool_size=8388608
===========================================
===========================================
export ORACLE_SID=TEST
export ORACLE_BASE=/u01/app/
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
==========================================
After completing pre upgrade steps, you have to login 10g oracle home.
========================================
SQL>shutdown immediate
========================================
SQL>startup
============================
SQL> @utlrp.sql
========================================
SQL> shut immediate
Start listener
================================================
SQL>startup
================================================
SymptomsIn 10gR2, setting the environment variable ORA_NLS10 causes the following
error:ERROROra-12705: cannot access nls data files or invalid environment specified
ora-127
This is script cr9idata.pl located following path.
/u01/11i/uat/oracle/uatdb/10.2.0/nls/data/old
Update the RDBMS ORACLE_HOME file system with the AutoConfig files by
performing the following steps:
Steps:
* On the Application Tier (as the APPLMGR user):
perl $AD_TOP/bin/admkappsutil.pl
d) cd RDBMS ORACLE_HOME
f) unzip -o appsutil.zip
2. Generate your Database Context File. Execute the following commands to create your
Database Context File:
Steps:
a) cd RDBMS ORACLE_HOME
b) CONTEXT_NAME.env
c) cd <10.1.0>/appsutil/bin
Steps:
a) cd /appsutil/bin