/****install oracle patch 9169457 for windows****/
/************************************************/
/****install oracle patch 9169457 for windows****/
/************************************************/
alter user sys account unlock;
alter user system account unlock;
alter user sys identified by XXXXXX;
alter user system identified by XXXXXX;
grant select on v_$session to svs
select * from v$instance;
select * from v$database;
alter database stop logical standby apply;
exec dbms_logstdby.apply_set('_MAX_LUBA_STACK', 4000000);
/*Clean shutdown oracle*/
sql>shutdown immediate
exit
/*make sure no other process use oracle and spora32.dll*/
services.msc
close OracleDBConsoleCenter
close OracleMTRRecoveryService
close OracleTNSListener
close ORacleServiceXXXX
tasklist /m ora*
tasklist /m spora32.dll
Back up the current database that is installed, the %ORACLE_HOME% directory
and Oracle inventory under c:Program filesoracle directory.
alter system set "_fifth_spare_parameter"=1 scope=spfile sid='*';
alter system set "_fourth_spare_parameter"="clientid_overwrite_on"
alter system set event="10411 trace name context forever, level 1" scope=spfile sid='*';
alter system set DG_BROKER_START = TRUE
SQL> alter database stop logical standby apply;
SQL> exec dbms_logstdby.apply_set('_MAX_LUBA_STACK', 4000000);
Go to %ORACLE_HOME%bin and run->regsvr32 oip10.dll to register the latest oip10.dll
/* In a Data Vault installation, please run the following*/
> cd %ORACLE_HOME%rdbmsadmin
> sqlplus /nolog
Create DV_PATCH_ADMIN role (one-time task)
SQL> CONNECT DVSYS
SQL> CREATE ROLE DV_PATCH_ADMIN;
SQL> GRANT DV_PATCH_ADMIN TO DV_OWNER WITH ADMIN OPTION;
SQL> GRANT DV_PATCH_ADMIN TO SYS;
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> insert into dvsys.rule_set_t$ (id#, name, description,fail_message, language)
values(8, 'Allow Datapump Operation','Rule set that controls the objects that can be exported '||'or imported by the datapump user.',NULL, 'us');
SQL> @catmac.sql SYSTEM TEMP SYS_password DVSYS_password
SQL> @catols.sql
SQL> STARTUP
SQL> @catmacpatch.sql
SQL> QUIT
/**If catcpu.sql reports any Invalid Objects, compile the invalid objects as follows.
(For large numbers of objects, this compilation step can take some time.
If you are applying this patch through the Oracle Enterprise Manager console,
you will be prompted to run this compilation script.) **/
> cd %ORACLE_HOME%rdbmsadmin
> sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlprp.sql 0
/*Run the pre-check script,
which reports the maximum number of views and objects
that may be recompiled:
(check whether view recompilation has already been performed for the database,
execute the following statement.
SELECT * FROM registry$history where ID = '6452863'; )*/
cd %ORACLE_HOME%BUNDLEview_recompile
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @recompile_precheck_jan2008cpu.sql
SQL> QUIT
grant select on v_$session to svs;
grant delete,insert,update on svs_acct_sign_hist to system;
grant select on svs_acct_hist_seq to system;
grant execute on fn_concat_baseattach to system ;
grant execute on split to system ;
grant insert,update on svs_sign to system;
grant insert on svs_aud_trail to system;
grant insert on svs_pip_audit to system;
grant insert,update,delete on svs_cust_sign to system;
alter user sys account lock;
alter user system account lock;
alter user system password expire;
alter user sys password expire;
alter user sys identified by values '!NOTVALID!'
alter user system identified by values '!NOTVALID!'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8337095/viewspace-1033120/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Critical Patch Update for October 2022Oracle
- 【mos 1265700.1】Oracle Patch Assurance - Data Guard Standby-First Patch ApplyOracleAPP
- Mysql 5.7.22 install for windowsMySqlWindows
- ORACLE ONLINE PATCH & ORA-00600[kcbgtcr_13]Oracle
- Centos7.2_Oracle12.1.0.2_RAC_installCentOSOracle
- How to Install EMC PowerPath on Oracle VM 3.4Oracle
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle Linux 7.1 silent install 19cOracleLinux
- centos7 install idea and x-windowsCentOSIdeaWindows
- NPM INSTALL常見錯誤(windows篇)NPMWindows
- Oracle Linux 7.1 silent install 19C RACOracleLinux
- 打 patch 報錯:corrupt patch at line 36
- 如何使用git 生成patch 和打入patchGit
- LINUX 的patch 製作,及打patchLinux
- Diff and Patch
- windows下pip install xx 遇到的 ConnectionResetError問題WindowsError
- oracle 19c dataguard silent install (oracle 19c dataguard 靜默安裝)Oracle
- 2.3.3.4 Application PatchAPP
- SQLServer 2017 install for Windows server 2012_問題彙總SQLServerWindows
- AIX 5.3 Install Oracle 10g RAC 錯誤集錦AIOracle 10g
- windows下oracle安裝WindowsOracle
- Oracle RAC 第二節點打補丁報錯 oui-patch.xml (Permission denied)OracleUIXML
- windows cmd 提示 No JVM installation found.Please install a 32-bit JDKWindowsJVMJDK
- windows終端輸入pip install requests報錯:Fatal error in launcherWindowsError
- openGauss 支援SQL-PATCHSQL
- Some notes about patch workflows
- 如何編寫 iOS PatchiOS
- 【Oracle】Windows安裝oracle11gR1 database 11.1.0.6OracleWindowsDatabase
- semantic-ui@2.4.2 install: `gulp install`UI
- go install: no install location for directory outside GOPATHGoIDE
- Windows 安裝Oracle19CWindowsOracle
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- 使用 git add -p 整理 patchGit
- [20210621]Driving site patch.txt
- [20190221]sql patch 問題.txtSQL
- Install clickhouse
- habitat install
- install qdrant
- Oracle 11.2.0.4.0 install for Win10(專業版) 常見問題和解決方法OracleWin10