Ejercicio Backup en Caliente

Click here to load reader

description

backup en caliente

Transcript of Ejercicio Backup en Caliente

Ejercicio Backup en caliente

SQL> conn sys as sysdba;Enter password:Connected.SQL> ARCHIVE LOG LISTDatabase log mode Archive ModeAutomatic archival EnabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 2Next log sequence to archive 3Current log sequence 3SQL> alter system checkpoint 2 ;

System altered.

SQL> alter tablespace users begin backup;

Tablespace altered.

SQL> alter tablespace users end backup;

Tablespace altered.

SQL> conn estudiante_belenEnter password:Connected.SQL> grant all privileges to usuarioRespaldo;

Grant succeeded.

SQL> create table PROGRAMA ( 2 Idprogama varchar(5) primary key, 3 nombreprograma varchar(50)) tablespace tablespacenuevo ;

Table created.

SQL> create table despacho ( 2 iddespacho numeric(5) primary key, 3 nombredespacho varchar(20)) tablespace tablespacenuevo ;

Table created.

SQL> alter tablespace tablespacenuevo begin backup;

Tablespace altered.