Oracle OCP 1Z0-053 Q513(how to perform tablespace point-in-time recovery)
513.What RMAN command is used to execute a tablespace point-in-time recovery?
A. recover
B. duplicate
C. restore
D. copy
E. None of the above
Answer: A
RMAN> recover tablespace users until time "TO_DATE('2016-03-23 14:30:00','yyyy-mm-dd hh24:mi:ss')" auxiliary destination '/home/oracle';
Starting recover at 23-MAR-16
using channel ORA_DISK_1
using channel ORA_DISK_2
RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
List of tablespaces expected to have UNDO segments
Tablespace SYSTEM
Tablespace UNDOTBS1
Creating automatic instance, with SID='ggiD'
initialization parameters used for automatic instance:
db_name=INST1
db_unique_name=ggiD_tspitr_INST1
compatible=11.2.0.4.0
db_block_size=8192
db_files=200
sga_target=1G
processes=80
db_create_file_dest=/home/oracle
log_archive_dest_1='location=/home/oracle'
#No auxiliary parameter file used
starting up automatic instance INST1
Oracle instance started
Total System Global Area 1068937216 bytes
Fixed Size 2260088 bytes
Variable Size 281019272 bytes
Database Buffers 780140544 bytes
Redo Buffers 5517312 bytes
Automatic instance created
Running TRANSPORT_SET_CHECK on recovery set tablespaces
TRANSPORT_SET_CHECK completed successfully
contents of Memory Script:
{
# set requested point in time
set until time "TO_DATE('2016-03-23 14:30:00','yyyy-mm-dd hh24:mi:ss')";
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
}
executing Memory Script
executing command: SET until clause
Starting restore at 23-MAR-16
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=80 device type=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: SID=10 device type=DISK
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-193461069-20160323-00
channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-193461069-20160323-00 tag=TAG20160323T113313
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/home/oracle/INST1/controlfile/o1_mf_ch4gn3tq_.ctl
Finished restore at 23-MAR-16
sql statement: alter database mount clone database
sql statement: alter system archive log current
sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
A. recover
B. duplicate
C. restore
D. copy
E. None of the above
Answer: A
RMAN> recover tablespace users until time "TO_DATE('2016-03-23 14:30:00','yyyy-mm-dd hh24:mi:ss')" auxiliary destination '/home/oracle';
Starting recover at 23-MAR-16
using channel ORA_DISK_1
using channel ORA_DISK_2
RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
List of tablespaces expected to have UNDO segments
Tablespace SYSTEM
Tablespace UNDOTBS1
Creating automatic instance, with SID='ggiD'
initialization parameters used for automatic instance:
db_name=INST1
db_unique_name=ggiD_tspitr_INST1
compatible=11.2.0.4.0
db_block_size=8192
db_files=200
sga_target=1G
processes=80
db_create_file_dest=/home/oracle
log_archive_dest_1='location=/home/oracle'
#No auxiliary parameter file used
starting up automatic instance INST1
Oracle instance started
Total System Global Area 1068937216 bytes
Fixed Size 2260088 bytes
Variable Size 281019272 bytes
Database Buffers 780140544 bytes
Redo Buffers 5517312 bytes
Automatic instance created
Running TRANSPORT_SET_CHECK on recovery set tablespaces
TRANSPORT_SET_CHECK completed successfully
contents of Memory Script:
{
# set requested point in time
set until time "TO_DATE('2016-03-23 14:30:00','yyyy-mm-dd hh24:mi:ss')";
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
}
executing Memory Script
executing command: SET until clause
Starting restore at 23-MAR-16
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=80 device type=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: SID=10 device type=DISK
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-193461069-20160323-00
channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-193461069-20160323-00 tag=TAG20160323T113313
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/home/oracle/INST1/controlfile/o1_mf_ch4gn3tq_.ctl
Finished restore at 23-MAR-16
sql statement: alter database mount clone database
sql statement: alter system archive log current
sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2062517/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP IZ0-053 Q365(tablespace point-in-time recovery)Oracle
- Oracle OCP 1Z0 053 Q359(Point-in-time tablespace recovery)Oracle
- Performing Tablespace Point-in-Time Recovery with Recovery Manager(轉)ORM
- Enhanced Tablespace Point-In-Time Recovery (TSPITR)
- Oracle OCP 1Z0-053 Q566(Rman Recovery System Tablespace)Oracle
- Oracle OCP 1Z0 053 Q570( point-in-time recovery)Oracle
- Oracle OCP 1Z0-053 Q698(RMAN Recovery)Oracle
- Oracle OCP 1Z0-053 Q571(Full Recovery)Oracle
- How to Perform a Healthcheck on the DatabaseORMDatabase
- Oracle OCP 1Z0-053 Q385(Flashback Table Recovery)Oracle
- Oracle OCP 1Z0-053 Q360(RMAN Disaster Recovery)OracleAST
- Oracle OCP(48):UNDO TABLESPACEOracle
- How to Perform a Health Check on the DatabaseORMDatabase
- Oracle OCP 1Z0-053 Q568(noarchivelog full recovery)OracleHive
- How to Rename Tablespace In Oracle10gOracle
- How to perform FULL System Export/ImportsORMExportImport
- Oracle OCP 1Z0-053 Q291(encrypted tablespace&redo logs)Oracle
- How to Perform SQL Server Log ShippingORMSQLServer
- How to move Oracle Spatial objects from SYSAUX tablespace to a user defined tablespace [ID 1119758.1OracleObjectUX
- Oracle OCP 1Z0-053 (ASM)OracleASM
- RMAN: Tablespace Point In Time Recovery (TSPITR)
- Oracle OCP IZ0-053 Q694(Transportable Tablespace)Oracle
- [ISSUE]how to perform unit testing in J2EE enviornment?ORM
- How To Move The DB Audit Trails To A New TablespaceAI
- How to Move or Copy a Tablespace to Another Database (61)Database
- Oracle OCP 1Z0 053 Q427(Transportable Tablespace)Oracle
- Oracle OCP IZ0-053 710(Recyclebin&Tablespace Quato)Oracle
- Oracle OCP IZ0-053 Q425( transportable tablespace set)Oracle
- Oracle OCP 1Z0-053 (System Partitioning)Oracle
- Oracle OCP 1Z0-053 Q445Oracle
- Oracle OCP 1Z0 053 Q426(transportable tablespace)Oracle
- Oracle OCP 1Z0 053 Q633(Transportable Tablespace)Oracle
- Oracle 11G OCP 1Z0-053 600Oracle
- Oracle 11G OCP 1Z0-053 581Oracle
- Oracle 11G OCP 1Z0-053 582Oracle
- Oracle 11G OCP 1Z0-053 583Oracle
- Oracle 11G OCP 1Z0-053 584Oracle
- Oracle 11G OCP 1Z0-053 585Oracle