SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 5 18:29:58 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL1/control02.ctl
SQL> !cp /u01/app/oracle/oradata/ORCL1/control02.ctl /u01/app/oracle/backups
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL1/system01.dbf
/u01/app/oracle/oradata/ORCL1/sysaux01.dbf
/u01/app/oracle/oradata/ORCL1/undotbs01.dbf
/u01/app/oracle/oradata/ORCL1/users01.dbf
SQL> alter database begin backup;
Database altered.
SQL> !cp /u01/app/oracle/oradata/ORCL1/sys* /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/oradata/ORCL1/undo* /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/oradata/ORCL1/users* /u01/app/oracle/backups
SQL> alter database end backup;
Database altered.
SQL> alter system switch logfile;
System altered.
Take the archives to backup folder
SQL> !cp /u01/app/oracle/flash_recovery_area/ORCL1/archivelog/2014_12_05/*.arc /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/flash_recovery_area/ORCL1/archivelog/2014_12_04/*.arc /u01/app/oracle/backups
SQL> alter database backup controlfile to '/u01/app/oracle/backups/control.bkp';
Database altered.
SQL>
Hot (online) backup steps completed
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL1/control02.ctl
SQL> !cp /u01/app/oracle/oradata/ORCL1/control02.ctl /u01/app/oracle/backups
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL1/system01.dbf
/u01/app/oracle/oradata/ORCL1/sysaux01.dbf
/u01/app/oracle/oradata/ORCL1/undotbs01.dbf
/u01/app/oracle/oradata/ORCL1/users01.dbf
SQL> alter database begin backup;
Database altered.
SQL> !cp /u01/app/oracle/oradata/ORCL1/sys* /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/oradata/ORCL1/undo* /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/oradata/ORCL1/users* /u01/app/oracle/backups
SQL> alter database end backup;
Database altered.
SQL> alter system switch logfile;
System altered.
Take the archives to backup folder
SQL> !cp /u01/app/oracle/flash_recovery_area/ORCL1/archivelog/2014_12_05/*.arc /u01/app/oracle/backups
SQL> !cp /u01/app/oracle/flash_recovery_area/ORCL1/archivelog/2014_12_04/*.arc /u01/app/oracle/backups
SQL> alter database backup controlfile to '/u01/app/oracle/backups/control.bkp';
Database altered.
SQL>
Hot (online) backup steps completed
No comments:
Post a Comment