Database Backup and Recovery (MOSC)

MOSC Banner

alter system archive log current

edited May 12, 2010 10:11AM in Database Backup and Recovery (MOSC) 5 commentsAnswered
 exactly what does this command do 'alter system archive log current' ??

I've got the following backup script:

rman target / <<EOF
  @/home/oracle/rmanbackup.config;
  backup incremental level=1 database format='%d_%U_dbf' tag='${bkup_tag}_dbf';
  sql 'alter system archive log current';
  backup archivelog all format='%d_%U_arc' tag='${bkup_tag}_arc';
  backup spfile format='%d_%U_spf' tag='${bkup_tag}_spf';
  backup current controlfile format='%d_%U_ctl' tag='${bkup_tag}_ctl';
  delete noprompt archivelog all completed before 'sysdate-8' backed up 5 times
    to device type disk; 
  exit

EOF

the rmanbackup.config appears to be running in that i get the messages:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center