How to restore Oracle after reinstalling Windows Server [message #684604] |
Mon, 05 July 2021 15:17 |
|
marcinsgdz
Messages: 14 Registered: December 2017
|
Junior Member |
|
|
If Windows Server will not start and reinstall the operating system on the same machine and I keep the files, what should I do to make Oracle work?
1. Install new Oracle o SID new = SID old?
2. Stop services Oracle
3. I'm replacing USERx.DBF files
4. What about database files that were left on this machine after the previous installation? I also replace them (if I don't have the export files) and then do:
- start services Oracle
- connect / as sysdba
- alter database open;
Anything else?
|
|
|
|
|
Re: How to restore Oracle after reinstalling Windows Server [message #684609 is a reply to message #684608] |
Wed, 07 July 2021 00:06 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:replace files with user settings USERS01.DBF from the previous Oracle SID and pfile and spfile. And what's next?
That won't work.
Quote:What about the system, sysaux, and undo tablespaces? And the redo? How to use them with instance streams to new instance?
After reinstalling Oracle software, if you have ALL the previous database files at the same place, you just have to:
1/ Use ORADIM to create the service without the option to start the instance.
2/ Start the instance using SQL*Plus with or without RESETLOGS option depending on what happens (try first without)
3/ RECOVER or not the database depending on what happens on previous step
4/ Shutdown the database and instance
5/ Stop the service
7/ Modify the service start parameters using ORADIM
8/ Restart the service
[Updated on: Wed, 07 July 2021 00:08] Report message to a moderator
|
|
|
|
Re: How to restore Oracle after reinstalling Windows Server [message #684611 is a reply to message #684610] |
Wed, 07 July 2021 01:25 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
No I can't it depends on your environment.
For ORADIM, type ORADIM at DOS prompt and have a look at Administrator's Reference Guide for Microsoft Windows for your version.
For startup/shutdown/recover commands, have a look at SQL*Plus User's Guide and Reference.
|
|
|