MERCADOS FINANCIEROS

sábado, 23 de febrero de 2019

SIN ARCHIVO DE CONTROL

Una opción es recuperar el archivo de control desde el archivo de log de RMAN. Cada copia de seguridad que se ejecuta genera un archivo de log el cual contiene los nombres y números de cada archivo de datos. Extrayendo esta información puede crearse un archivo de control nuevo sobre el cual se puede realizar catalogación de piezas y recuperación de la base de datos hasta un punto en el tiempo.

 El archivo de log muestra en qué pieza se encuentra cada uno de los archivos de datos a restaurar como lo muestra el texto en colores


...
RMAN> 2> 3> 4> 5> 6> 7>
starting full resync of recovery catalog
full resync complete
allocated channel: ch1
channel ch1: SID=409 device type=DISK
allocated channel: ch2
channel ch2: SID=600 device type=DISK
Starting backup at 08/05/2014 21:10:14
channel ch1: starting compressed full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00014 name=+DG_DATA/fonpetp/datafile/ts_fonpet_movim.dbf
input datafile file number=00012 name=+DG_DATA/fonpetp/datafile/ts_fonpet_movim_02.dbf
input datafile file number=00002 name=+DG_DATA/fonpetp/datafile/sysaux01.dbf
input datafile file number=00006 name=+DG_DATA/fonpetp/datafile/indic_fonpet_param.dbf
input datafile file number=00009 name=+DG_DATA/fonpetp/datafile/ts_fonpet_param.dbf
input datafile file number=00001 name=+DG_DATA/fonpetp/datafile/system01.dbf
input datafile file number=00004 name=+DG_DATA/fonpetp/datafile/users01.dbf
channel ch1: starting piece 1 at 08/05/2014 21:10:16
channel ch2: starting compressed full datafile backup set
channel ch2: specifying datafile(s) in backup set
input datafile file number=00010 name=+DG_DATA/fonpetp/datafile/ts_fonpet_movim_01.dbf
input datafile file number=00005 name=+DG_DATA/fonpetp/datafile/indic_fonpet_movim_01.dbf
input datafile file number=00013 name=+DG_DATA/fonpetp/datafile/ts_fonpet_rep.dbf
input datafile file number=00015 name=+DG_DATA/fonpetp/datafile/ts_fonpet_movim_2.dbf
input datafile file number=00011 name=+DG_DATA/fonpetp/datafile/indic_fonpet_movim_02.dbf
input datafile file number=00007 name=+DG_DATA/fonpetp/datafile/indic_fonpet_movim.dbf
input datafile file number=00003 name=+DG_DATA/fonpetp/datafile/undotbs101.dbf
input datafile file number=00008 name=+DG_DATA/fonpetp/datafile/indic_fonpet_movim_reorg0.dbf
channel ch2: starting piece 1 at 08/05/2014 21:10:18
channel ch2: finished piece 1 at 08/05/2014 21:23:13
piece handle=/u03/backups/rman/fonpetp/full_FONPETP_v5p7q2ho_1_1_20140508.bak tag=TAG20140508T211014 comment=NONE
channel ch2: backup set complete, elapsed time: 00:12:55
channel ch1: finished piece 1 at 08/05/2014 21:31:23
piece handle=/u03/backups/rman/fonpetp/full_FONPETP_v4p7q2hn_1_1_20140508.bak tag=TAG20140508T211014 comment=NONE
channel ch1: backup set complete, elapsed time: 00:21:07
Finished backup at 08/05/2014 21:31:23
...


Se prepara el bloque de comandos PLSQL que restaura los archivos usando el paquete DBMS_BACKUP_RESTORE y la información obtenida del archivo de log. Aunque se puede hacer para todos los archivos en un solo bloque, se recomienda hacerlo por cada archivo. Nótese que en el archivo de log aparece el nombre de la pieza en donde se encuentra cada archivo de datos para construir el bloque.


[oracle@bdprod logs]$ sqlplus dba_fonpet as sysdba
Password:
Connected.
SYS@fonpetp> startup nomount;
ORACLE instance started.
Total System Global Area 1.0422E+10 bytes
Fixed Size    2237448 bytes
Variable Size 5670702072 bytes
Database Buffers 4731174912 bytes
Redo Buffers   18120704 bytes
SQL> DECLARE
  v_dev varchar2(50);
  v_done boolean;
  type t_fileTable is table of varchar2(255) index by binary_integer;
  v_fileTable t_fileTable;
  v_maxPieces number:=2;
BEGIN
  v_fileTable(1):='/u02/backup/rman/full_FONPETP_v5p7q2ho_1_1_20140508.bak';
  v_maxPieces:=2;
  v_dev:=sys.dbms_backup_restore.deviceAllocate(type=>null, ident=>'d1');
  sys.dbms_backup_restore.restoreSetDatafile;
  --dbms_backup_restore.RestoreDatafileTo(dfnumber => 1);
  dbms_backup_restore.RestoreDatafileTo( 1,'+DG_DATA/fonpetd/datafile/system01.dbf',0,'SYSTEM');
  FOR i IN 1..v_maxPieces LOOP
        sys.dbms_backup_restore.restoreBackupPiece(done=>v_done, handle=>v_fileTable(i), params=>null);
        IF v_done THEN
                GOTO all_done;
        END IF;
  END LOOP;
  <>
  sys.dbms_backup_restore.deviceDeallocate;
END;
/


Puede realizarse seguimiento de la restauración de cada archivo de datos usando la vista v$session_longops;


SYS@fonpetd>  select opname, time_remaining/60 mins
  2  from v$session_longops
  3  where time_remaining > 0;
OPNAME                                                                 MINS
---------------------------------------------------------------- ----------
RMAN: full datafile restore                                      4.31666667


En caso que sea necesario crear los directorios faltantes se procede desde asmcmd


[oracle@bddesarrollo rman]$ asmcmd mkdir +DG_FRA/fonpetp/
[oracle@bddesarrollo rman]$ asmcmd mkdir +DG_FRA/fonpetp/onlinelog/


Si la restauración se realiza con un nuevo nombre será necesario cambiar el parámetro db_name y las rutas respectivas, validar su existencia igualmente. En caso contrario que se desee conservar en nombre de la base de datos este paso no es necesario este paso.


SYS@fonpett> create pfile='/tmp/init.ora' from spfile='+DG_DATA/fonpett/spfilefonpett.ora';
File created.
SYS@fonpett> startup force nomount;
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size    2232640 bytes
Variable Size 1493176000 bytes
Database Buffers 1694498816 bytes
Redo Buffers   16928768 bytes
SYS@fonpett> show parameter db_name
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name      string FONPETP
SYS@fonpett> exit
Disconnected from Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
[oracle@bdpruebas ~]$ vi /tmp/init.ora
"/tmp/init.ora" 28L, 976C
*.audit_file_dest='/u01/app/oracle/admin/fonpett/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='+DG_DATA/fonpett/control01.ctl','+DG_FRA/fonpett/control02.ctl'
*.db_block_size=8192
*.db_create_file_dest='+DG_DATA'
*.db_domain=''
*.db_name='FONPETT'
*.db_unique_name='FONPETT'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=fonpettXDB)'
*.open_cursors=300
*.pga_aggregate_target=1073741824
*.processes=400
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=445
*.sga_target=3221225472
*.standby_file_management='MANUAL'
*.undo_tablespace='UNDOTBS1'
17,1All892019879 65432
:q!
[oracle@bdpruebas ~]$ . oraenv
ORACLE_SID = [fonpett] ? fonpett
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@bdpruebas ~]$ sqlplus dba_fonpet as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Jun 16 14:35:33 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Enter password: *********
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
With the Automatic Storage Management option
SYS@fonpett> startup force nomount pfile='/tmp/init.ora';
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size    2232640 bytes
Variable Size 1493176000 bytes
Database Buffers 1694498816 bytes
Redo Buffers   16928768 bytes
SYS@fonpett> show parameter db_name
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name      string FONPETT
SYS@fonpett> create spfile from pfile='/tmp/init.ora';
File created.
SYS@fonpett> startup force nomount;
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size    2232640 bytes
Variable Size 1493176000 bytes
Database Buffers 1694498816 bytes
Redo Buffers   16928768 bytes
SYS@fonpett> show parameter db_name
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name      string FONPETP
SYS@fonpett> exit
Disconnected from Oracle Database 11g Release 11.2.0.3.0 - 64bit Production


Se procede con la preparación y ejecución del comando para crear el archivo de control desde SQL Plus


[oracle@bdprod restaurar]$ sqlplus dba_fonpet as sysdba
Connected.
SYS@fonpetp> startup force nomount;
ORACLE instance started.
Total System Global Area 1.0422E+10 bytes
Fixed Size    2237448 bytes
Variable Size 5670702072 bytes
Database Buffers 4731174912 bytes
Redo Buffers   18120704 bytes
SYSfonpetp> CREATE CONTROLFILE SET DATABASE "FONPETT" RESETLOGS ARCHIVELOG
MAXLOGFILES 32 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 2920
LOGFILE
       GROUP  1 ('+DG_DATA/fonpett/onlinelog/redo01a.rdo','+DG_FRA/fonpett/onlinelog/redo01b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  2 ('+DG_DATA/fonpett/onlinelog/redo02a.rdo','+DG_FRA/fonpett/onlinelog/redo02b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  3 ('+DG_DATA/fonpett/onlinelog/redo03a.rdo','+DG_FRA/fonpett/onlinelog/redo03b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  4 ('+DG_DATA/fonpett/onlinelog/redo04a.rdo','+DG_FRA/fonpett/onlinelog/redo04b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  5 ('+DG_DATA/fonpett/onlinelog/redo05a.rdo','+DG_FRA/fonpett/onlinelog/redo05b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  6 ('+DG_DATA/fonpett/onlinelog/redo06a.rdo','+DG_FRA/fonpett/onlinelog/redo06b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  7 ('+DG_DATA/fonpett/onlinelog/redo07a.rdo','+DG_FRA/fonpett/onlinelog/redo07b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  8 ('+DG_DATA/fonpett/onlinelog/redo08a.rdo','+DG_FRA/fonpett/onlinelog/redo08b.rdo') SIZE 50M BLOCKSIZE 512,
       GROUP  9 '+DG_DATA/fonpett/onlinelog/redolog1.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 10 '+DG_DATA/fonpett/onlinelog/redolog2.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 11 '+DG_DATA/fonpett/onlinelog/redolog3.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 13 '+DG_DATA/fonpett/onlinelog/redolog4.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 14 '+DG_DATA/fonpett/onlinelog/redolog5.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 15 '+DG_DATA/fonpett/onlinelog/redolog6.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 16 '+DG_DATA/fonpett/onlinelog/redolog7.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 17 '+DG_DATA/fonpett/onlinelog/redolog8.stb' SIZE 50M BLOCKSIZE 512,
       GROUP 18 '+DG_DATA/fonpett/onlinelog/redolog9.stb' SIZE 50M BLOCKSIZE 512
DATAFILE
       '+DG_DATA/fonpett/datafile/system01.dbf',
       '+DG_DATA/fonpett/datafile/systaux01.dbf',
       '+DG_DATA/fonpett/datafile/undotbs101.dbf',
       '+DG_DATA/fonpett/datafile/users01.dbf',
       '+DG_DATA/fonpett/datafile/indic_fonpet_movim_01.dbf',
       '+DG_DATA/fonpett/datafile/indic_fonpet_param.dbf',
       '+DG_DATA/fonpett/datafile/indic_fonpet_movim.dbf',
       '+DG_DATA/fonpett/datafile/indic_fonpet_movim_reorg0.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_param.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_movim_01.dbf',
       '+DG_DATA/fonpett/datafile/indic_fonpet_movim_02.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_movim_02.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_rep.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_movim.dbf',
       '+DG_DATA/fonpett/datafile/ts_fonpet_movim_2.dbf'
CHARACTER SET WE8ISO8859P1
;
Control file created.


Validar que todos los archivos de daros se encuentren matriculados en el archivo de control con tamaño y en estado ONLINE o RECOVER


SYS@fonpett> set lines 2000 pages 1000
SYS@fonpett> col name format a79
SYS@fonpett> select name, bytes, status from v$datafile;
NAME     BYTES STATUS
------------------------------------------------------------------------------- ---------- -------
+DG_DATA/fonpett/datafile/system01.dbf                  1126170624 SYSTEM
+DG_DATA/fonpett/datafile/systaux01.dbf                 1986002944 RECOVER
+DG_DATA/fonpett/datafile/undotbs101.dbf                3191865344 RECOVER
+DG_DATA/fonpett/datafile/users01.dbf                    187432960 RECOVER
+DG_DATA/fonpett/datafile/indic_fonpet_movim_01.dbf     5309988864 RECOVER
+DG_DATA/fonpett/datafile/indic_fonpet_param.dbf         594214912 RECOVER
+DG_DATA/fonpett/datafile/indic_fonpet_movim.dbf        3463774208 RECOVER
+DG_DATA/fonpett/datafile/indic_fonpet_movim_reorg0.dbf 2621440000 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_param.dbf            104857600 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_movim_01.dbf        8678146048 RECOVER
+DG_DATA/fonpett/datafile/indic_fonpet_movim_02.dbf     5146411008 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_movim_02.dbf        3145728000 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_rep.dbf             5242880000 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_movim.dbf           3.4318E+10 RECOVER
+DG_DATA/fonpett/datafile/ts_fonpet_movim_2.dbf         5242880000 RECOVER
15 rows selected.


Se procede con la catalogación de piezas para recover.


[oracle@bddesarrollo dbs]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 12 14:33:59 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
connected to target database: FONPETD (DBID=2150325182, not open)
RMAN> catalog start with '/u02/backup/rman';
using target database control file instead of recovery catalog
searching for all files that match the pattern /u02/backup/rman
List of Files Unknown to the Database
=====================================
File Name: /u02/backup/rman/full_FONPETP_v5p7q2ho_1_1_20140508.bak
File Name: /u02/backup/rman/full_FONPETP_v4p7q2hn_1_1_20140508.bak
File Name: /u02/backup/rman/archivelog_FONPETP_vcp7q44p_1_1_20140508.bak
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u02/backup/rman/full_FONPETP_v5p7q2ho_1_1_20140508.bak
File Name: /u02/backup/rman/full_FONPETP_v4p7q2hn_1_1_20140508.bak
File Name: /u02/backup/rman/archivelog_FONPETP_vcp7q44p_1_1_20140508.bak


Se define el punto de restauración, en este caso usando el último archivelog y se restauran los archive logs respectivos. Nótese que en la columna “Next SCN” aparece el número de SCN hasta el cual puede restaurarse la base de datos usando archive logs que equivale al punto de restauración de las 21:31:27


RMAN> list backup of archivelog all;
List of Backup Sets
===================
BS Key  Size       Device Type Elapsed Time Completion Time   
------- ---------- ----------- ------------ -------------------
2       262.36M    DISK        00:00:00     08/05/2014 21:37:29
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20140508T213135
        Piece Name: /u02/backup/rman/archivelog_FONPETP_vcp7q44p_1_1_20140508.bak
  List of Archived Logs in backup set 2
  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
  ---- ------- ---------- ------------------- ---------- ---------
  1    3580    68215578   08/05/2014 11:03:22 68218390   08/05/2014 11:17:05
  1    3581    68218390   08/05/2014 11:17:05 68219047   08/05/2014 11:17:11
  1    3582    68219047   08/05/2014 11:17:11 68220601   08/05/2014 11:25:59
  1    3583    68220601   08/05/2014 11:25:59 68221736   08/05/2014 11:32:42
  1    3584    68221736   08/05/2014 11:32:42 68225001   08/05/2014 11:56:51
  1    3585    68225001   08/05/2014 11:56:51 68228020   08/05/2014 12:17:07
  1    3586    68228020   08/05/2014 12:17:07 68233698   08/05/2014 12:59:44
  1    3587    68233698   08/05/2014 12:59:44 68234397   08/05/2014 12:59:50
  1    3588    68234397   08/05/2014 12:59:50 68235608   08/05/2014 13:05:11
  1    3589    68235608   08/05/2014 13:05:11 68245134   08/05/2014 14:26:51
  1    3590    68245134   08/05/2014 14:26:51 68255946   08/05/2014 16:01:05
  1    3591    68255946   08/05/2014 16:01:05 68257325   08/05/2014 16:08:14
  1    3592    68257325   08/05/2014 16:08:14 68260491   08/05/2014 16:31:42
  1    3593    68260491   08/05/2014 16:31:42 68264133   08/05/2014 17:00:07
  1    3594    68264133   08/05/2014 17:00:07 68277112   08/05/2014 18:44:19
  1    3595    68277112   08/05/2014 18:44:19 68287826   08/05/2014 20:17:55
  1    3596    68287826   08/05/2014 20:17:55 68295909   08/05/2014 21:31:27
RMAN> restore archivelog all;
Starting restore at 12-JUN-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=200 device type=DISK
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3580
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3581
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3582
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3583
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3584
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3585
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3586
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3587
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3588
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3589
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3590
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3591
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3592
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3593
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3594
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3595
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=3596
channel ORA_DISK_1: reading from backup piece /u02/backup/rman/archivelog_FONPETP_vcp7q44p_1_1_20140508.bak
channel ORA_DISK_1: piece handle=/u02/backup/rman/archivelog_FONPETP_vcp7q44p_1_1_20140508.bak tag=TAG20140508T213135
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 12-JUN-14
RMAN> exit;


A este punto los archive logs han quedado restaurados en el ASM (+DG_FRA/fonpetd/archivelog). Finalmente se realiza recover usando la metodología backup controlfile. Se debe especificar como punto de restauración SCN-1 para llegar al punto de consistencia que ofrece el backup.


SQL> alter database mount;
SQL> recover database using backup controlfile until change 68295908;
ORA-00279: change 68294119 generated at 05/08/2014 21:10:16 needed for thread 1
ORA-00289: suggestion :
+DG_FRA/fonpetd/archivelog/2014_06_12/thread_1_seq_3596.271.850055727
ORA-00280: change 68294119 for thread 1 is in sequence #3596
Specify log: {=suggested | filename | AUTO | CANCEL}
+DG_FRA/fonpetd/archivelog/2014_06_12/thread_1_seq_3596.271.850055727
Log applied.
Media recovery complete.


Se realiza apertura de la base de datos en modo solo lectura y se ejecuta una consulta al diccionario de datos para validar que está efectivamente accediendo a los archivos de datos sin problema. Se baja la instancia y se inicia de nuevo para dejar dando servicio.


SYS@fonpett> alter database open read only;
Database altered.
SYS@fonpetd> select name, bytes, status from v$datafile;
NAME                                                              BYTES STATUS
------------------------------------------------------------ ---------- -------
+DG_DATA/fonpetd/datafile/system01.dbf                       1168113664 SYSTEM
+DG_DATA/fonpetd/datafile/systaux01.dbf                      1986002944 ONLINE
+DG_DATA/fonpetd/datafile/undotbs101.dbf                     3191865344 ONLINE
+DG_DATA/fonpetd/datafile/users01.dbf                         187432960 ONLINE
+DG_DATA/fonpetd/datafile/indic_fonpet_movim_01.dbf          5309988864 ONLINE
+DG_DATA/fonpetd/datafile/indic_fonpet_param.dbf              594214912 ONLINE
+DG_DATA/fonpetd/datafile/indic_fonpet_movim.dbf             3463774208 ONLINE
+DG_DATA/fonpetd/datafile/indic_fonpet_movim_reorg0.dbf      2621440000 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_param.dbf                 104857600 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_movim_01.dbf             8678146048 ONLINE
+DG_DATA/fonpetd/datafile/indic_fonpet_movim_02.dbf          5146411008 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_movim_02.dbf             3145728000 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_rep.dbf                  5242880000 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_movim.dbf                3.4318E+10 ONLINE
+DG_DATA/fonpetd/datafile/ts_fonpet_movim_2.dbf              5242880000 ONLINE
SYS@fonpett> select count(*) from dba_segments;
  COUNT(*)
----------
      6046
SYS@fonpett> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@fonpett> startup mount;
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size                  2232640 bytes
Variable Size            1493176000 bytes
Database Buffers         1694498816 bytes
Redo Buffers               16928768 bytes
Database mounted.
SYS@fonpetd> alter database open resetlogs;
Database altered.
SYS@fonpetd> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@fonpetd> startup
ORACLE instance started.

No hay comentarios: