打Oracle 10.2.0.3.0補丁前安裝了資料庫,需要執行以下步驟Upgrade資料庫
如果在打Oracle 10.2.0.3.0補丁前安裝了資料庫,資料庫開啟時會報錯,需要執行以下步驟Upgrade資料庫。
7.2.2.2 Upgrading a Release 10.2 Database
After you install the patch set, you must perform. the following steps on every database associated with the upgraded Oracle home:
Note:
If you do not run the catupgrd.sql script. as described in this section and you start up a database for normal operation, then ORA-01092:ORACLE instance terminated. Disconnection forced errors will occur and the error ORA-39700:database must be opened with UPGRADE option will be in the alert log.
1.
Log in as the Oracle software owner user.
2.
For Oracle RAC installations, start listener on each node of the cluster as follows:
$ srvctl start listener -n node
3.
If you are using Automatic Storage Management, start the Automatic Storage Management instance.
4.
For single-instance installations, start the listener as follows:
$ lsnrctl start
5.
For single-instance installations, use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:
$ sqlplus /nolog
SQL> CONNECT SYS/SYS_password AS SYSDBA
6.
For Oracle RAC installations:
1.
Use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:
$ sqlplus /nolog
SQL> CONNECT SYS/SYS_password AS SYSDBA
SQL> STARTUP NOMOUNT
2.
Set the CLUSTER_DATABASE initialization parameter to FALSE:
SQL> ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=spfile;
3.
Shut down the database:
SQL> SHUTDOWN
7.
Enter the following SQL*Plus commands:
SQL> STARTUP UPGRADE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
8.
Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.
This list provides the version and status of each SERVER component in the database.
9.
If necessary, rerun the catupgrd.sql script. after correcting any problems.
10.
Restart the database:
SQL> SHUTDOWN
SQL> STARTUP
11.
Run the utlrp.sql script. to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.
SQL> @?/rdbms/admin/utlrp.sql
Note:
When the 10.2.0.3 patch set is applied to an Oracle Database 10g Standard Edition database, there may be 42 invalid objects after the utlrp.sql script. runs. These objects belong to the unsupported components and do not affect the database operation.
Ignore any messages indicating that the database contains invalid recycle bin objects similar to the following:
BIN$4lzljWIt9gfgMFeM2hVSoA==$0
12.
If you are using the Oracle Recovery Manager catalog, enter the following command:
$ rman catalog username/password@alias
RMAN> UPGRADE CATALOG;
13.
For Oracle RAC installations:
1.
Set the CLUSTER_DATABASE initialization parameter to TRUE:
SQL> ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=spfile;
2.
Restart the database:
SQL> SHUTDOWN
SQL> STARTUP
3.
Start any processes that you want to use:
$ srvctl start service -d db_name -s service_name
7.2.2.2 Upgrading a Release 10.2 Database
After you install the patch set, you must perform. the following steps on every database associated with the upgraded Oracle home:
Note:
If you do not run the catupgrd.sql script. as described in this section and you start up a database for normal operation, then ORA-01092:ORACLE instance terminated. Disconnection forced errors will occur and the error ORA-39700:database must be opened with UPGRADE option will be in the alert log.
1.
Log in as the Oracle software owner user.
2.
For Oracle RAC installations, start listener on each node of the cluster as follows:
$ srvctl start listener -n node
3.
If you are using Automatic Storage Management, start the Automatic Storage Management instance.
4.
For single-instance installations, start the listener as follows:
$ lsnrctl start
5.
For single-instance installations, use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:
$ sqlplus /nolog
SQL> CONNECT SYS/SYS_password AS SYSDBA
6.
For Oracle RAC installations:
1.
Use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:
$ sqlplus /nolog
SQL> CONNECT SYS/SYS_password AS SYSDBA
SQL> STARTUP NOMOUNT
2.
Set the CLUSTER_DATABASE initialization parameter to FALSE:
SQL> ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=spfile;
3.
Shut down the database:
SQL> SHUTDOWN
7.
Enter the following SQL*Plus commands:
SQL> STARTUP UPGRADE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
8.
Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.
This list provides the version and status of each SERVER component in the database.
9.
If necessary, rerun the catupgrd.sql script. after correcting any problems.
10.
Restart the database:
SQL> SHUTDOWN
SQL> STARTUP
11.
Run the utlrp.sql script. to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.
SQL> @?/rdbms/admin/utlrp.sql
Note:
When the 10.2.0.3 patch set is applied to an Oracle Database 10g Standard Edition database, there may be 42 invalid objects after the utlrp.sql script. runs. These objects belong to the unsupported components and do not affect the database operation.
Ignore any messages indicating that the database contains invalid recycle bin objects similar to the following:
BIN$4lzljWIt9gfgMFeM2hVSoA==$0
12.
If you are using the Oracle Recovery Manager catalog, enter the following command:
$ rman catalog username/password@alias
RMAN> UPGRADE CATALOG;
13.
For Oracle RAC installations:
1.
Set the CLUSTER_DATABASE initialization parameter to TRUE:
SQL> ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=spfile;
2.
Restart the database:
SQL> SHUTDOWN
SQL> STARTUP
3.
Start any processes that you want to use:
$ srvctl start service -d db_name -s service_name
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11411056/viewspace-733376/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫打補丁方法Oracle資料庫
- 給Oracle資料庫打補丁(轉)Oracle資料庫
- Oracle資料庫PSU補丁安裝Oracle資料庫
- 【UP_ORACLE】如何給Oracle DG打補丁(二)備庫安裝補丁步驟Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(三)主庫安裝補丁步驟Oracle
- oracle資料庫高危漏洞補丁集安裝Oracle資料庫
- 摘:Oracle資料庫補丁分類、安裝及管理Oracle資料庫
- 資料庫補丁索引資料庫索引
- Oracle資料庫升級與補丁Oracle資料庫
- 資料庫的升級和打補丁的研究資料庫
- Oracle 檢查當前資料庫CPU和PSU補丁資訊Oracle資料庫
- Oracle將釋出新的資料庫補丁程式Oracle資料庫
- oracle資料庫安裝Oracle資料庫
- 「Oracle」Oracle 資料庫安裝Oracle資料庫
- Oracle 資料庫 PSU 的補丁號變化Oracle資料庫
- 資料庫Oracle 11g RAC手動打GI PSU補丁(11.2.0.4.8)資料庫Oracle
- MySQL資料庫安裝步驟-WindowsMySql資料庫Windows
- Oracle 資料庫打包安裝Oracle資料庫
- 解除安裝oracle資料庫Oracle資料庫
- 資料庫打完11.1.0.7.12補丁後資料庫啟動失敗資料庫
- RAC資料庫中用opatch應用補丁資料庫
- oracle rac資料庫的安裝Oracle資料庫
- vgant 安裝oracle資料庫racOracle資料庫
- 給oracle 10.2.0.4.0 打em補丁8350262執行步驟Oracle
- 資料庫Patchsets 補丁號碼快速參考資料庫
- 在RAC資料庫上滾動(Rolling)安裝或回退小補丁的方法及步驟資料庫
- EBS:Oracle 資料庫執行慢SQLOracle資料庫SQL
- oracle 資料庫版本對應的psu和補丁號碼Oracle資料庫
- Oracle 12c資料庫安裝Oracle資料庫
- RPM方式安裝oracle資料庫Oracle資料庫
- oracle11.2.0.4.0 資料庫安裝Oracle資料庫
- oracle 資料庫安裝思路總結Oracle資料庫
- Oracle 安裝補丁Oracle
- 2 Day DBA-安裝Oracle資料庫並建立一個資料庫-安裝選項Oracle資料庫
- Oracle資料庫啟動步驟Oracle資料庫
- oracle 資料庫安裝前環境檢查和準備工作Oracle資料庫
- 檢視資料庫版本與補丁的版本資訊資料庫
- 檢查資料庫CPU和PSU補丁資訊資料庫