Oracle数据库的升级(10gR2至11gR2)(四)

2015-02-02 13:34:55 · 作者: · 浏览: 60
******************
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.


**********************************************************************
Oracle recommends examining audit tables AUD$ and FGA_LOG$ before
upgrading the database.


This database has 0 rows in AUD$ and 23 rows in FGA_LOG$ that
will be updated during the database upgrade from 10.2.0.5.0.


During this upgrade, null DBIDs in AUD$ and FGA_LOG$ will be updated
with non-null values.


The upgrade downtime could be affected if there are many rows to update.
If downtime is a concern, the audit update could be done manually prior
to upgrading the database.


Please refer to My Oracle Support Note 1329590.1 titled "How to
Pre-Process SYS.AUD$ Records Pre-Upgrade From 10.1 or Later to 11.2".


**********************************************************************


<<<<<<<<<根据输出结果,做相对就的调整...此处省略


?


三、upgrading
[oracle@tivoli02 ~]$ env | grep ORA
ORACLE_SID=ora10g
ORACLE_BASE=/u01/app/oracle
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
[oracle@tivoli02 ~]$ lsnrctl start


LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 26-JAN-2015 20:41:52


Copyright (c) 1991, 2011, Oracle.? All rights reserved.


Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...


TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/tivoli02/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tivoli02)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=tivoli02)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias? ? ? ? ? ? ? ? ? ? LISTENER
Version? ? ? ? ? ? ? ? ? TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date? ? ? ? ? ? ? ? 26-JAN-2015 20:41:52
Uptime? ? ? ? ? ? ? ? ? ? 0 days 0 hr. 0 min. 0 sec
Trace Level? ? ? ? ? ? ? off
Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication
SNMP? ? ? ? ? ? ? ? ? ? ? OFF
Listener Parameter File? /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File? ? ? ? /u01/app/oracle/diag/tnslsnr/tivoli02/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tivoli02)(PORT=1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@tivoli02 ~]$ which lsnrctl
/u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl


sqlpus / as sysdba
startup upgrade
SQL> SPOOL upgrade.log
SQL