Oracle RAC 搴旂敤PSU

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle RAC 搴旂敤PSU相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e6%89%8b%e5%8a%a8' title='鎵嬪姩'>鎵嬪姩   history   base   娓呯悊   script   pre   oracl   this   cront   

1銆佸浠芥暟鎹簱
閲囩敤RMAN鎴杄xpdp閮藉彲浠ャ€?br/>2銆佸浠借蒋浠剁洰褰曪紙node1/2锛?/p>
tar -czvf /u01/grid.tar.gz  /u01/app/11.2.0/grid  --exclude=/u01/app/11.2.0/grid/rdbms/audit/*
tar -czvf /u01/database.tar.gz /u01/app/oracle/  --exclude=/u01/app/oracle/admin/orcl/adump/*

3銆佸浠絆CR锛坣ode1/2锛?/p>

[grid@vastdata01 ~]$ cd $ORACLE_HOME/bin
[grid@vastdata01 bin]$ pwd
/u01/app/11.2.0/grid/bin
./crsctl query css votedisk
./ocrcheck
./ocrconfig -manualbackup
./ocrconfig -export ocr.bak

4銆佸浠絆LR锛坣ode1/2锛?/p>

[grid@vastdata01 ~]$tar -cf /home/oracle/backup/ocr/olr.tar /u01/app/11.2.0/grid/cdata

5銆佸崌绾у墠鏁版嵁搴撳璞℃鏌?/p>

妫€鏌ュけ鏁堝璞?    select object_name,object_type from dba_objects where status=鈥業NVALID鈥?
妫€鏌ユ鍦ㄨ繍琛岀殑job
    select job,this_date,last_date,instance from dba_jobs_running;
鍋滄鍏充簬鏁版嵁搴撶殑crontab浠诲姟
    crontab 鈥搇
    crontab -e
妫€鏌ヨ鍒抝ob
    col job_name for a10;
    col owner for a10;
    col start_date for a20;
    col end_date for a20;
    col repeat_interval for a10;
    set linesize 2000
    set pagesize 2000
    select job_name,owner,start_date,end_date,repeat_interval from dba_scheduler_jobs;
鏌ョ湅璁″垝dba 璁″垝job
    col interval for a20
    col what for a30
    set linesize 2000 pagesize 2000
    select schema_user,job,interval,what from dba_jobs;
    show parameter job_queue
鏌ョ湅鑷姩鎵ц浠诲姟
    select client_name,job_name,task_name from dba_autotask_client_job;

6銆佸叧闂暟鎹簱涓庨泦缇?/p>

        鍋滄鐩戝惉 lsnrctl stop
        鍋滄鏁版嵁搴?shutdown immediate;
        鍋滄闆嗙兢 crsclt stop crs

7銆佸叧闂?EM 浠g悊杩涚▼锛坥racle锛屾瘡涓妭鐐癸級

cd $ORACLE_HOME/bin
./emctl stop dbconsole

8銆佸垱寤篛CM鏂囦欢锛坣ode1/2锛?/p>

[grid@vastdata01 ~]$  cd /u01/app/11.2.0/grid/OPatch/ocm/bin/
[grid@vastdata01 bin]$ ./emocmrsp

9銆佸缓绔嬭ˉ涓佸瓨鏀剧洰褰?/p>

10銆佸浠戒笌鏇挎崲OPatch

11銆佽ˉ涓佹洿鏀规潈闄?/p>

chown -R grid:oinstall psu
ps -ef|grep zjprd1|grep LOCAL=NO|grep -v grep|awk 鈥榹print $2鈥榺 xargs kill -9
/usr/sbin/slibclean-----AIX闇€瑕佹墜鍔ㄦ竻鐞?娉ㄦ剰锛?tmp鍜?鐩綍鑷冲皯鏈?0G鐨勭┖闂?/code>

12銆佸簲鐢ㄨˉ涓?/p>

root
/oracle/grid/crs/install/rootcrs.pl -unlock
GI
/oracle/grid/OPatch/opatch napply -oh /oracle/grid/  -local  /quest/psu/17592127   
/oracle/grid/OPatch/opatch apply -oh /oracle/grid/  -local  /quest/psu/20760997
DB
su - oracle
/quest/psu/17592127/custom/server/17592127/custom/scripts/prepatch.sh -dbhome  /oracle/app/oracle/product/11.2.0/db_1/
/oracle/app/oracle/product/11.2.0/db_1/OPatch/opatch napply -oh $ORACLE_HOME  -local  /quest/psu/17592127/custom/server/17592127
/oracle/app/oracle/product/11.2.0/db_1/OPatch/opatch apply -oh $ORACLE_HOME  -local  /quest/psu/20760997
/quest/psu/17592127/custom/server/17592127/custom/scripts/postpatch.sh -dbhome  /oracle/app/oracle/product/11.2.0/db_1/
root
/oracle/grid/rdbms/install/rootadd_rdbms.sh
/oracle/grid/crs/install/rootcrs.pl -patch
chown oracle:asmadmin $ORACLE_HOME/bin/oracle
chmod 6751 $ORACLE_HOME/bin/oracle

13銆佹鏌?/p>

su - grid
$ORACLE_HOME/OPatch/opatch lspatches
exit
su - oracle
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
@catbundle.sql psu apply
select * from registry$history;

以上是关于Oracle RAC 搴旂敤PSU的主要内容,如果未能解决你的问题,请参考以下文章

python鍓嶇jQuery缁煎悎搴旂敤

js鏁扮粍鐨勫0鏄庝笌搴旂敤

Docker閮ㄧ讲Egg.js搴旂敤

Spring+ Spring cloud + SSO鍗曠偣鐧诲綍搴旂敤璁よ瘉

瀹夊崜_鏋勫缓棣栦釜搴旂敤

闂寘鐨勭悊瑙e拰搴旂敤鍦烘櫙