Blog

Blog

NID-00135 et ORA-01092

Oui, je sais on ne doit pas utiliser nid dans la vie normale d'une base de données, mais bon si l'outil existe c'est pour qu'on l'utilise, non ?

De plus, C'était vraiment nécessaire. Je ne vais pas détailler ici le pourquoi du comment, mais j'avais besoin de cloner une base à partir d'une standby et le rman duplicate ne fonctionne pas à partir d'une standby... J'expliquerai dans un prochain poste comment nous nous en sommes sorti (un projet de cette ampleur, ça ne peut être qu'un travail d'équipe!!)

A la pêche aux infos

Dans la doc Oracle, je trouve ça :
NID-00135: There are number active threads
Cause: is that the database crashed the last time it was shut down.
Action: Ensure that all threads are closed before retrying the operation. Start and open the database to perform crash recovery, then shut down with the NORMAL or IMMEDIATE options to close it cleanly. Finally, try running the utility again.

C'est parti!

Bon, ben allons-y gaiement, ma base était bien dans l'état mount, je tente donc ça :
SHUTDOWN IMMEDIATE.
STARTUP;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
Et ce petit coquin d'Oracle me sort :
startup

ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
Là, ça sent pas bon du tout...

Re-pêche aux infos

Cette fois-ci, la doc Oracle ne me rassure pas trop :
ORA-01092: ORACLE instance terminated. Disconnection forced
Cause: The instance this process was connected to was terminated abnormally, probably via a shutdown abort. This process was forced to disconnect from the instance.
Action: Examine the alert log for more details. When the instance has been restarted, retry action.
Et c'est pire dans l'alert log :
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
Pfff, on dirait que j'ai mis un sacré b***el sur ma base! Que dit la doc ?
ORA-39700: database must be opened with UPGRADE option
Cause: A normal database open was attempted, but the database has not been upgraded to the current server version.
Action: Use the UPGRADE option when opening the database to run catupgrd.sql (for database upgrade), or to run catalog.sql and catproc.sql (after initial database creation).

Résolution ?

Bon, ben c'est reparti :
SHUTDOWN IMMEDIATE.
STARTUP UPGRADE;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ouf c'est passé!

Un petit nid ?

Cette fois-ci nid s'est rédoulé sans problème... Nid me prévient gentiment de ce qu'il me reste à faire
Database name changed to ISI0RCT.
Modify parameter file and generate a new password file before restarting.
Database ID for database ISI0RCT changed to 3511798175.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.

Et on repart!

Après modification du dbname dans le pfile, j'ai pu redémarrer ma base correctement!