On windows, patching an Oracle database can be tricky.
Very often for example, the dll file will be used by some process which is a bit… Undefined. So to make sure everything run smoothly, the following process must be used.
It should in fact be used as a best practice on windows.
Stopping Oracle services might not be enough.
———
- the instances,
- the Intelligent Agent,
- the OLAP agent,
- the Oracle Management Server,
- the TNSListener,
- HTTP server.
- SNMP service,
- MSDTC (Microsoft Distributed Transaction Coordinator) service,
- Microsoft IIS (admin) service,
- Microsoft COM+ Event System,
- MTSrecovery service,
- BackupExec agent,
- ArcServe Agent,
- IBM Director Support Program.
————-
The list above comes from oracle support.
- Stop OracleService, Listener, DBConsole and anything else related to Oracle + additional services as stated above.
-
- Change the services start mode to manual
- Go to system>Environment variable.
- Backup PATH environment variable to notepad
- Remove all Oracle path from PATH (I had c:\oracle\product\102\bin)
- Reboot the server
- Install the patch:
- Make sure to select the correct oracle_home. By default, it will install the patch in a new home.
- Put the oracle path back in PATH environment variable.
- start the oracle service using the following command: C:\>oradim -startup -sid [SID] starttype srvc
- Start the listener via windows service manager
- In SqlPlus, log in as sysdba:
- C:\>set oracle_sid=[SID]
- C:\>sqlplus / as sysdba
- SQL>startup upgrade
- spool d:\somewhere\upgde.log
- @[oracle_home]\RDBMS\admin\catupgrd.sql (depending on the machine it can take up to 40 minutes)
- spool off
- Check if there is any ORA- error (this is long because there are a lot in the comments)
- shutdown
- startup
- @[oracle_home]\RDBMS\admin\utlrp.sql (takes up to 10 minutes)
- @[oracle_home]\RDBMS\admin\utlrp.sql (takes about 1 minute)
Recent Comments