Professional Documents
Culture Documents
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
les pannes de fichier de controle
fichier d'alerte
C:\app\user\diag\rdbms\orcl\orcl\alert\log.xml
++++++++++++++++++++++++++++++++++++++++++++++++
SQL>
SQL>
***********************************************************************************
********************************
SQL> select instance_name , status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
orcl STARTED
INSTANCE_NAME STATUS
---------------- ------------
orcl OPEN
SQL>
2 type de problemes
SystÞme modifiÚ.
NAME
--------------------------------------------------------------------------------
C:\APP\USER\ORADATA\ORCL\CONTROL01.CTL
C:\APP\USER\ORADATA\ORCL\CONTROL02.CTL
************************************************************
***********************************************************************************
*
demarrage avec control file 2
SQL>
***********************************************************************************
******************
SQL> alter system set control_files="C:\APP\USER\ORADATA\ORCL\CONTROL02.CTL","C:\
APP\USER\ORADATA\ORCL\CONTROL01.CTL" scope=spfile;
SystÞme modifiÚ.
NAME
--------------------------------------------------------------------------------
C:\APP\USER\ORADATA\ORCL\CONTROL02.CTL
***********************************************************************************
***********************
SUPPRIMER L'ANCIEN VERSION DE FICHIER DE CONTROLE CONTROL01.CTL
***********************************************************************************
*****************************
MULTIPLIXAGE
avoir plusieurs copy pour en cas de panne en lui renomer et l'utiliser
SystÞme modifiÚ.
SQL>
C:\Windows\system32>set oracle_sid=rafiq
C:\Windows\system32>sqlplus / as sysdba
ConnectÚ Ó :
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
NAME
--------------------------------------------------------------------------------
C:\APP\USER\ORADATA\RAFIQ\CONTROL01.CTL
C:\APP\USER\FLASH_RECOVERY_AREA\RAFIQ\CONTROL02.CTL
VALUE
--------------------------------------------------------------------------------
C:\APP\USER\ORADATA\RAFIQ\CONTROL01.CTL, C:\APP\USER\FLASH_RECOVERY_AREA\RAFIQ\C
ONTROL02.CTL
SQL> startup
Instance ORACLE lancÚe.
SQL> shutdown
ORA-01507: base de donnees non montee
SQL> startup
Instance ORACLE lancÚe.
SystÞme modifiÚ.
SQL> SHUTDOWN IMMEDIATE;
Base de donnÚes fermÚe.
Base de donnÚes dÚmontÚe.
Instance ORACLE arrÛtÚe.
SQL> host copy C:\app\user\oradata\Rafiq\control01.ctl C:\app\user\oradata\Rafiq\
control02.ctl
1 fichier(s) copié(s).
SQL> STARTUP
Instance ORACLE lancÚe.
NAME
--------------------------------------------------------------------------------
C:\APP\USER\ORADATA\RAFIQ\CONTROL01.CTL
C:\APP\USER\ORADATA\RAFIQ\CONTROL02.CTL
RECORDS_TOTAL
-------------
32
SQL>