補丁集PSU、Bundle Patch大致安裝步驟
PSU是linux下的說法
Bundle Patch是windows下的說法
dataguard 備機的話只需要下面1、4和5中opatch apply這一個步驟
1.升級OPatch軟體
cd $ORACLE_HOME;
mv OPatch OPatch.old;
unzip p6880880_112000_Linux-x86-64.zip
$ORACLE_HOME/OPatch/opatch version
2.整庫備份
3.備份失效物件
cd $ORACLE_HOME/rdbms/admin
sqlplus>@utlrp.sql
sqlplus>create table invalid_20170101 as select * from dba_objects where status<>'VALID'
4.關閉監聽和資料庫(如果有standby庫,把standby庫也關閉,打完補丁啟動成功後再去打standby庫)
lsnrctl stop listenername
sqlplus>shutdown immediate
5.打補丁
cd 24006111
$ORACLE_HOME/OPatch/opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
sqlplus>startup
sqlplus>@catbundle.sql psu apply
sqlplus>@utlrp.sql
官方文件提供的windows的步驟
Perform a clean shutdown of all (databases, Oracle listeners, Oracle agents, and so on.) that run from the Oracle Home where you install this patch.
Stop all Oracle services, Recovery catalog, ODBC applications, and other applications that use Oracle Client. This may include Web servers that load the Oracle client in the mid-tier environment
net stop msdtc
set PATH=%ORACLE_HOME%\perl\bin;%PATH%
Shut down all instances and listeners associated with the Oracle home that you are updating
unzip p24922870_112040_.zip
cd 24922870
opatch apply
cd %ORACLE_HOME%\rdbms\admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql PSU apply
SQL> QUIT
官方文件提供的linux的步驟
If you are using a Data Guard Physical Standby database, you must install this patch on both the primary database and the physical standby database
If this is not a Oracle RAC environment, shut down all instances and listeners associated with the Oracle home that you are updating
unzip p24006111_112040_.zip
cd 24006111
opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
6.啟動監聽和檢查
lsnrctl start listenername
$ORACLE_HOME/OPatch/opatch version
$ORACLE_HOME/OPatch/opatch lsinventory
打補丁過程不報錯
打完補丁後再檢視失效物件,看是否和之前備份的表中記錄一致
Bundle Patch是windows下的說法
dataguard 備機的話只需要下面1、4和5中opatch apply這一個步驟
1.升級OPatch軟體
cd $ORACLE_HOME;
mv OPatch OPatch.old;
unzip p6880880_112000_Linux-x86-64.zip
$ORACLE_HOME/OPatch/opatch version
2.整庫備份
3.備份失效物件
cd $ORACLE_HOME/rdbms/admin
sqlplus>@utlrp.sql
sqlplus>create table invalid_20170101 as select * from dba_objects where status<>'VALID'
4.關閉監聽和資料庫(如果有standby庫,把standby庫也關閉,打完補丁啟動成功後再去打standby庫)
lsnrctl stop listenername
sqlplus>shutdown immediate
5.打補丁
cd 24006111
$ORACLE_HOME/OPatch/opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
sqlplus>startup
sqlplus>@catbundle.sql psu apply
sqlplus>@utlrp.sql
官方文件提供的windows的步驟
Perform a clean shutdown of all (databases, Oracle listeners, Oracle agents, and so on.) that run from the Oracle Home where you install this patch.
Stop all Oracle services, Recovery catalog, ODBC applications, and other applications that use Oracle Client. This may include Web servers that load the Oracle client in the mid-tier environment
net stop msdtc
set PATH=%ORACLE_HOME%\perl\bin;%PATH%
Shut down all instances and listeners associated with the Oracle home that you are updating
unzip p24922870_112040_.zip
cd 24922870
opatch apply
cd %ORACLE_HOME%\rdbms\admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql PSU apply
SQL> QUIT
官方文件提供的linux的步驟
If you are using a Data Guard Physical Standby database, you must install this patch on both the primary database and the physical standby database
If this is not a Oracle RAC environment, shut down all instances and listeners associated with the Oracle home that you are updating
unzip p24006111_112040_.zip
cd 24006111
opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
6.啟動監聽和檢查
lsnrctl start listenername
$ORACLE_HOME/OPatch/opatch version
$ORACLE_HOME/OPatch/opatch lsinventory
打補丁過程不報錯
打完補丁後再檢視失效物件,看是否和之前備份的表中記錄一致
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2133752/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【UP_ORACLE】如何給Oracle DG打補丁(二)備庫安裝補丁步驟Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(三)主庫安裝補丁步驟Oracle
- win10更新補丁解除安裝怎麼操作_解除安裝win10更新補丁詳細步驟Win10
- 【PSU】怎麼給RAC打PSU補丁
- 補丁psu、spu、cpu的意思
- win10安裝KB4565483補丁失敗怎麼回事_win10 KB4565483補丁安裝失敗解決步驟Win10
- OJVM+GI PSU補丁升級JVM
- weblogic 12 補丁安裝Web
- 19c rac自動打補丁步驟
- vnc安裝步驟,vnc安裝步驟詳解VNC
- [ 安裝 ] Zeppelin安裝步驟!
- win10怎麼解除安裝補丁_解除安裝win10已安裝更新補丁的方法Win10
- xftp安裝步驟,xftp安裝的2大步驟FTP
- anaconda安裝步驟
- Linux 安裝步驟Linux
- STF 安裝步驟
- Nagios安裝步驟iOS
- Git 打補丁– patch 和 diff 的使用(詳細)Git
- Git 打補丁-- patch 和 diff 的使用(詳細)Git
- Oracle 補丁那些事兒(PS、PSU、CPU、SPU、BP、DBBP…)Oracle
- Oracle 11g RAC自動打GI PSU補丁Oracle
- 12. Oracle版本、補丁及升級——12.2. 補丁及補丁集Oracle
- vnc安裝步驟,如何在Linux(CentOS 7)下vnc安裝步驟VNCLinuxCentOS
- 【PSU】Oracle打PSU及解除安裝PSU(單例項)Oracle單例
- aws安裝jenkins步驟Jenkins
- Maya 2023安裝步驟
- Iris 框架安裝步驟框架
- zookeeper安裝部署步驟
- windows安裝cnpm步驟WindowsNPM
- charles的安裝步驟
- Linux安裝Nginx步驟LinuxNginx
- 安裝jdk的步驟JDK
- Sublime Text安裝步驟
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- windows10補丁安裝失敗如何處理_win10無法安裝補丁修復方法WindowsWin10
- 差異檔案(diff)和補丁檔案(patch)簡介
- 國內Kubernetes安裝步驟
- linux下安裝docker步驟LinuxDocker
- CDH6.2.0安裝步驟