cript sql statement: alterdatabase mount standby database
contents of MemoryScript:
{
set newname for tempfile 1 to
"/export/11g/oradata/orcl/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/export/11g/oradata/orcl/system01.dbf";
set newname for datafile 2 to
"/export/11g/oradata/orcl/sysaux01.dbf";
set newname for datafile 3 to
"/export/11g/oradata/orcl/undotbs01.dbf";
set newname for datafile 4 to
"/export/11g/oradata/orcl/users01.dbf";
set newname for datafile 5 to
"/export/11g/oradata/orcl/example01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"/export/11g/oradata/orcl/system01.dbf" datafile
2 auxiliary format
"/export/11g/oradata/orcl/sysaux01.dbf" datafile
3 auxiliary format
"/export/11g/oradata/orcl/undotbs01.dbf" datafile
4 auxiliary format
"/export/11g/oradata/orcl/users01.dbf" datafile
5 auxiliary format
"/export/11g/oradata/orcl/example01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script
executing command: SETNEWNAME
renamed tempfile 1 to/export/11g/oradata/orcl/temp01.dbf in control file
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
Starting backup at 10-NOV-14
using channel ORA_DISK_1
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00001 name=/export/11g/oradata/orcl/system01.dbf
output filename=/export/11g/oradata/orcl/system01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:56
channel ORA_DISK_1: startingdatafile copy
input datafile filenumber=00002 name=/export/11g/oradata/orcl/sysaux01.dbf
output filename=/export/11g/oradata/orcl/sysaux01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00005 name=/export/11g/oradata/orcl/example01.dbf
output filename=/export/11g/oradata/orcl/example01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:16
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00003 name=/export/11g/oradata/orcl/undotbs01.dbf
output filename=/export/11g/oradata/orcl/undotbs01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00004 name=/export/11g/oradata/orcl/users01.dbf
output filename=/export/11g/oradata/orcl/users01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:07
Finished backup at10-NOV-14
sql statement: altersystem archive log current
contents of MemoryScript:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched todatafile copy
input datafile copyRECID=5 STAMP=863257693 file name=/export/11g/oradata/orcl/system01.dbf
datafile 2 switched todatafile copy
input datafile copyRECID=6 STAMP=863257694 file name=/export/11g/oradata/orcl/sysaux01.dbf
datafile 3 switched todatafile copy
input datafile copyRECID=7 STAMP=863257694 file name=/export/11g/oradata/orcl/undotbs01.dbf
datafile 4 switched todatafile copy
input datafile copyRECID=8 STAMP=863257694 file name=/export/11g/oradata/orcl/users01.dbf
datafile 5 switched todatafile copy
input dat