Beruflich Dokumente
Kultur Dokumente
Make sure there is no “If event=”30084 trace name context forever, level1” defined in
pfile of spfile.
export ORACLE_HOME=/u01/finprod/finproddb/10.2/db_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:/usr/sbin:/usr/bin/
export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3:$ORACLE_HOME/perl/lib/site_pearl/5.8.3
export LIBPATH=$ORACLE_HOME/lib:/usr/dt/lib:/usr/openwin/lib:
$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/dt/lib:/usr/openwin/lib:$ORACLE_HOME/ctx/lib
export ORA_NLS10=/u01/finprod/finproddb/10.2/db_1/nls/data/9idata
unset TNS_ADMIN
Make sure perl utility being used points to the 10g oracle environment.
Make sure there is no reference to the old 9i environment in the $PATH or this
command will fail as the old version of perl is picked up.
export PATH=$ORACLE_HOME/bin:
$ORACLE_HOME/perl/bin:/usr/sbin:/usr/bin/
$ which perl
/u01/finprod/finproddb/10.2/db_1/perl/bin/perl
$
oraprod(DATABASE)@nbrbwdev5:perl $ORACLE_HOME/nls/data/old/cr9idata.pl
Creating directory /u01/finprod/finproddb/10.2/db_1/nls/data/9idata ...
Copying files to /u01/finprod/finproddb/10.2/db_1/nls/data/9idata...
Copy finished.
export ORA_NLS10=/u01/finprod/finproddb/10.2/db_1/nls/data/9idata
oraprod(DATABASE)@nbrbwdev5:echo $ORA_NLS10
/u01/finprod/finproddb/10.2/db_1/nls/data/9idata
unset TNS_ADMIN
oraprod(DATABASE)@nbrbwdev5:export DISPLAY=10.254.101.25:0.0
oraprod(DATABASE)@nbrbwdev5:ls netca
netca
oraprod(DATABASE)@nbrbwdev5:./netca
SHUTDOWN LISTENER
Important : START THE DATABASE in the 9i environment and not from the new 10g
environment.
If you haven’t changed your .profile and are still using the 9i .profile , just log into a
new session so that the old 9i environment is picked up.
Enter password:
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Preparing to Upgrade
--------------------
Please note that the database must be running in normal mode in the
old release- i.e 9i environment.
Log in to the system as the owner of the new 10gR2 ORACLE_HOME and
copy the following files from the 10gR2 ORACLE_HOME/rdbms/admin
directory to a directory outside of the Oracle home, such as
the /tmp directory on your system:
cd /tmp
Then, check the spool file and examine the output of the upgrade
information tool. The sections which follow, describe the output of
the Upgrade Information Tool (utlu102i.sql).
Database:
Logfiles:
Tablespaces:
Update Parameters:
Deprecated Parameters:
Obsolete Parameters:
Components:
This section displays a list of database components in the new Oracle
Database 10g release that will be upgraded or installed when the
current database is upgraded.
Miscellaneous Warnings:
SYSAUX Tablespace:
This section displays the minimum required size for the SYSAUX
tablespace, which is required in Oracle Database 10g.
The SYSAUX tablespace must be created after the new Oracle Database
10g release is started and BEFORE the upgrade scripts are invoked.
However since we are using DBUA to upgrade, the assistant will prompt
you for the creation of the SYSAUX tablespace so there is no need to
create it manually.
The CONNECT role in 10g Release 2 has only create session privilege.
Therefore create a new role with the usual privileges which CONNECT role had in 9i and
grant it to the users who are not generic database users.
Grant all privs usually associated with the CONNECT role in previous versions.
spool grant_connect1.sql
spool off
Run @grant_connect1.sql and make sure any bb staff I’d are in quotes.
Spool db_links.txt
SELECT
'create '||DECODE(U.NAME,'PUBLIC','public ')||'database link '||
CHR(10)||DECODE(U.NAME,'PUBLIC',Null, U.NAME||'.')|| L.NAME||chr(10)
||'connect to ' || L.USERID || ' identified by '''
||L.PASSWORD||''' using ''' || L.host || ''''
||chr(10)||';' TEXT FROM sys.link$ L, sys.user$ U
WHERE L.OWNER# = U.USER# ;
Spool off
spool gdict
exec dbms_stats.gather_schema_stats('ORDPLUGINS',options=>'GATHER',
estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'FOR ALL
COLUMNS SIZE AUTO', cascade => TRUE);
exec dbms_stats.gather_schema_stats('SI_INFORMTN_SCHEMA',options=>'GATHER',
estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt => 'FOR ALL
COLUMNS SIZE AUTO', cascade => TRUE);
spool off
spool invalid_pre.lst
UPGRADE STEPS
export ORACLE_HOME=/u01/finprod/finproddb/10.2/db_1
$export
PERL5LIB=/u01/finprod/finproddb/10.2/db_1/perl/lib/5.8.3:/u01/finprod/finproddb/10.2/d
b_1/perl/lib/site_pearl/5.8.3
$export
LD_LIBRARY_PATH=/u01/finprod/finproddb/10.2/db_1/lib:/usr/dt/lib:/usr/openwin/lib:/u
01/finprod/finproddb/10.2/db_1/ctx/lib
$export
LIBPATH=/u01/finprod/finproddb/10.2/db_1/lib:/usr/dt/lib:/usr/openwin/lib:/u01/finprod/fi
nproddb/10.2/db_1/lib32:/u01/finprod/finproddb/10.2/db_1/ctx/lib
$export
PATH=/u01/finprod/finproddb/10.2/db_1/Apache/perl/bin:/u01/finprod/finproddb/10.2/db
_1/Apache/perl/bin:/usr/bin:/u01/finprod/finprodora/iAS/Apache/perl/bin:/u01/finprod/fin
proddb/10.2/db_1/bin:/usr/ccs/bin:/usr/sbin:/bin:/u01/finprod/finproddb/10.2/db_1/Apach
e/perl/bin:/usr/bin:/usr/bin:/u01/finprod/finproddb/10.2/db_1/bin:/usr/ccs/bin:/usr/sbin:/bi
n:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/x11:/sbin:/u01/oraprod:/u01/oraprod/bin:/bin:/u
01/oraprod/scripts:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/x11:/sbin:/u01/oraprod:/u01/or
aprod/bin:/bin:/usr/local/bin:/u01/oracle/prod/scripts:/u01/local/bwa/prod/scripts:/u01/loc
al/bwa/prod/c/bin:/u01/local/pvcs:/usr/ccs/bin:/usr/openwin/bin:.:/u01/local/bwa/prod/scri
pts:/u01/local/sas8:/u01/finprod/finproddb/10.2/db_1/OPatch
$export ORA_NLS10=/u01/finprod/finproddb/10.2/db_1/nls/data/9idata
export DISPLAY=10.254.101.25:0.0
unset TNS_ADMIN
unset ORACLE_BASE
Cause
Apparently if there are no sqlnet config files in the default location of the 9.2
ORACLE_HOME/network/admin directory then DBUA fails. The sqlnet config
files are:
listener.ora
tnsnames.ora
sqlnet.ora
Solution
1. Make sure that the sqlnet config files listener.ora, tnsnames.ora, sqlnet.ora
are in the default location of $ORACLE_HOME/network/admin.
4. Rerun DBUA
Steps below :
cd /u01/finprod/finproddb/92/network/admin/finprod_frmbwds03
cp listener.ora /u01/finprod/finproddb/92/network/admin
cp tnsnames.ora /u01/finprod/finproddb/92/network/admin
cp sqlnet_ifile.ora /u01/finprod/finproddb/92/network/admin
cd /u01/finprod/finproddb/92/network/admin
$ ls -lrt
-rw-r--r-- 1 oraprod dba 1315 Apr 24 11:26 listener.ora
-rw-r--r-- 1 oraprod dba 2292 Apr 24 11:26 tnsnames.ora
-rw-r--r-- 1 oraprod dba 627 Apr 24 11:26 sqlnet_ifile.ora
$
Before upgrading to 10.2.0.3 apply the following patches using opatch to avoid the
upgrade failing half way.
The upgrade will fail if the following PATCHES are not applied.
1. 5755471
2. 5892355
3. 5871314
4.
Download the patches and transfer to any directory.
Go to /5755471 directory
Make sure right inventory is picked up – the new 10g patched environment.
For two of the patches you will see a few relinking errors which can be ignored...
ld: 0711-783 WARNING: TOC overflow. TOC size: 67040 Maximum size: 65536
Extra instructions are being generated for each reference to a TOC
symbol if the symbol is in the TOC overflow area.
ld: 0711-783 WARNING: TOC overflow. TOC size: 67040 Maximum size: 65536
Extra instructions are being generated for each reference to a TOC
symbol if the symbol is in the TOC overflow area.
cd $ORACLE_HOME/bin
Takes about 7 hours at 82 percent -running the compilation job of all objects as part of the
POST UPGRADE…as screenshot above shows.
To find out how many objects remain to be compiled run this command: