Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Tema 4 ABD

Rosca Cvintilian

SQL> startup
ORACLE instance started.

Total System Global Area 629145600 bytes


Fixed Size 2927528 bytes
Variable Size 432014424 bytes
Database Buffers 188743680 bytes
Redo Buffers 5459968 bytes

Database mounted.
Database opened.

SQL> create table cptest as select * from all_users;


Table created.

SQL> select recovery_estimated_ios, actual_redo_blks, estimated_mttr from


v$instance_recovery;

RECOVERY_ESTIMATED_IOS ACTUAL_REDO_BLKS ESTIMATED_MTTR


---------------------- ---------------- --------------
92 1386 17

SQL> insert into cptest select * from cptest;


84 rows created.

SQL> insert into cptest select * from cptest;


168 rows created.

SQL> insert into cptest select * from cptest;


336 rows created.

SQL> insert into cptest select * from cptest;


672 rows created.

SQL> insert into cptest select * from cptest;


1344 rows created.

SQL> insert into cptest select * from cptest;


2688 rows created.

SQL> insert into cptest select * from cptest;


5376 rows created.

SQL> insert into cptest select * from cptest;


10752 rows created.

SQL> insert into cptest select * from cptest;


21504 rows created.

SQL> insert into cptest select * from cptest;


43008 rows created.

SQL> insert into cptest select * from cptest;


86016 rows created.

SQL> select recovery_estimated_ios, actual_redo_blks, estimated_mttr from


v$instance_recovery;

RECOVERY_ESTIMATED_IOS ACTUAL_REDO_BLKS ESTIMATED_MTTR


---------------------- ---------------- --------------
891 14866 18

SQL> COMMIT;

Commit complete.

SQL> select recovery_estimated_ios, actual_redo_blks, estimated_mttr from


v$instance_recovery;

RECOVERY_ESTIMATED_IOS ACTUAL_REDO_BLKS ESTIMATED_MTTR


---------------------- ---------------- --------------
891 14867 18

SQL> alter system checkpoint;


System altered.

SQL> select recovery_estimated_ios, actual_redo_blks, estimated_mttr from


v$instance_recovery;

RECOVERY_ESTIMATED_IOS ACTUAL_REDO_BLKS ESTIMATED_MTTR


---------------------- ---------------- --------------
0 0 18

SQL> drop table cptest;


Table dropped.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup mount;


ORACLE instance started.

Total System Global Area 629145600 bytes


Fixed Size 2927528 bytes
Variable Size 432014424 bytes
Database Buffers 188743680 bytes
Redo Buffers 5459968 bytes

Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> archive log list;


Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 273
Next log sequence to archive 275
Current log sequence 275

SQL>

You might also like