SQL> conn / as sysdba
Conectado.
SQL> shutdown immediate;
Banco de dados fechado.
Banco de dados desmontado.
InstΓncia ORACLE desativada.
SQL> startup mount;
InstΓncia ORACLE iniciada.

Total System Global Area 494927872 bytes
Fixed Size 1288240 bytes
Variable Size 180357072 bytes
Database Buffers 310378496 bytes
Redo Buffers 2904064 bytes
Banco de dados montado.
SQL> alter database archivelog;

Banco de dados alterado.

SQL> alter database open;

Banco de dados alterado.

SQL> archive log list;
Modo log de banco de dados Modo de Arquivamento
Arquivamento automßtico Ativado
Destino de arquivamento USE_DB_RECOVERY_FILE_DEST
A seqⁿΩncia de log on-line mais antiga 2179
Pr≤xima seqⁿΩncia de log a arquivar 2180
SeqⁿΩncia de log atual 2180
SQL> show parameter DB_RECOVERY_FILE_DEST

NAME TYPE VALUE
———————————— ———– ——————————
db_recovery_file_dest string C:oraclexeapporacleflash_r
ecovery_area
db_recovery_file_dest_size big integer 10G
SQL>

Conteudo do arquivo bkdiariorman.rc
run {
backup database plus archivelog delete all input;
delete noprompt obsolete;
crosscheck archivelog all;
delete noprompt expired archivelog all;
delete noprompt expired backup;
}

Conteudo do arquivo BAT
rman target / @C:bkpORACLEbkdiariorman.rc

Configurar o RMAN

C:Documents and SettingsAdministrator>rman target /

Gerenciador de Recuperaτπo: Release 10.2.0.1.0 – Production on Sßb Mar 15 16:07:
45 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

conectado ao banco de dados de destino: XE (DBID=2477763744)

RMAN> quit

C:Documents and SettingsAdministrator>rman target /

Gerenciador de Recuperaτπo: Release 10.2.0.1.0 – Production on Sßb Mar 15 16:11:
43 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

conectado ao banco de dados de destino: XE (DBID=2477763744)

RMAN> show all;

usar o arquivo de controle do banco de dados de destino em vez do catßlogo de re
cuperaτπo
os parΓmetros de configuraτπo RMAN sπo:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F’; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM ‘AES128’; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘C:ORACLEXEAPPORACLEPRODUCT10.2.0SE
RVERDATABASESNCFXE.ORA’; # default

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

novos parΓmetros de configuraτπo RMAN:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
os novos parΓmetros de configuraτπo RMAN foram armazenados com sucesso

RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 2;

novos parΓmetros de configuraτπo RMAN:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
os novos parΓmetros de configuraτπo RMAN foram armazenados com sucesso

RMAN>