分类: LINUX
2009-03-23 11:21:59
$unzip p5601428_10201_GENERIC.zip 5601428
$cd 5601428
$opatch apply
$sqlplus ‘/as sysdba’
SQL>@?/rdbms/admin/utltzuv2.sql
SQL>host
$cd $ORACLE_HOME /oracore/zoneinfo
$more tzuv2ext_*.log
$more tzuv2ext_*.bad
$srvctl start listener -n jktz1
$sqlplus “/as sysdba”
Startup nomount
ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=spfile;
Shutdown immediate
Startup upgrade
Spool update.log
@?/rdbms/admin/catupgrd.sql
Spool off
ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=spfile;
cd $ORACLE_HOME/install
./changePerm.sh
#su – oracle
-- Checking the Status of the Oracle Clusterware Installation
$crsctl query crs softwareversion – lists
--chech crs status
ocrcheck
./app/oracle/product/10.2.0/crs/bin/olsnodes
crsctl query crs votedisk
crsctl query crs activeversion
$ crsctl check crs
$crs_stat –t
.回退方案
CLUSTER_DATABASE
为
false
.
关闭数据库和ORACLE所有进程ORACLE_HOME/rdbms/admin/catrelod.sql
$ cd $ORACLE_HOME
$ sqlplus /NOLOG
SQL> CONNECT SYS/SYS_password AS SYSDBA
SQL> STARTUP DOWNGRADE
SQL> SPOOL downgrade.out
SQL> @?/rdbms/admin/catdwgrd.sql
SQL> SPOOL OFF
SQL> SHUTDOWN IMMEDIATE
SQL> EXIT
$ sqlplus /NOLOG
SQL> CONNECT SYS/SYS_password AS SYSDBA
SQL> STARTUP DOWNGRADE
SQL> SPOOL catrelod.out
SQL> @?/rdbms/admin/catrelod.sql
SQL> SPOOL OFF
SQL> SHUTDOWN IMMEDIATE
(5)还原数据库文件,编译无效对象,并把CLUSTER_DATABASE
参数设置为true.