TSPITR with Your Own Auxiliary Instance

简介: TSPITR with Your Own Auxiliary Instance

基于时间点的恢复:

1,编辑配置文件

DB_NAME=PROD
DB_UNIQUE_NAME=tspitr_PROD
CONTROL_FILES=/bigtmp/tspitr_cntrl.dbf'
DB_CREATE_FILE_DEST=/bigtmp
COMPATIBLE=11.0.0
BLOCK_SIZE=8192
REMOTE_LOGIN_PASSWORD=exclusive

2,启动到nomount

STARTUP NOMOUNT PFILE=/bigtmp/init_tspitr_prod.ora

4,

rman target / auxiliary sys/syspwd@pitprod

RUN
{

Specify NEWNAME for recovery set datafiles

SET NEWNAME FOR TABLESPACE clients

                    TO '?/oradata/prod/rec/%b';

Specify NEWNAMES for some of the auxiliary set

datafiles that have a valid image copy to avoid restores:

SET NEWNAME FOR DATAFILE '?/oradata/prod/system01.dbf'

                    TO '/backups/prod/system01_monday_noon.dbf';

SET NEWNAME FOR DATAFILE '?/oradata/prod/system02.dbf'

                    TO '/backups/prod/system02_monday_noon.dbf';

SET NEWNAME FOR DATAFILE '?/oradata/prod/sysaux01.dbf'

                    TO '/backups/prod/sysaux01_monday_noon.dbf';

SET NEWNAME FOR DATAFILE '?/oradata/prod/undo01.dbf'

                    TO '/backups/prod/undo01_monday_noon.dbf';

Specify the types of channels to use

ALLOCATE AUXILIARY CHANNEL c1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL t1 DEVICE TYPE sbt;

Recover the clients tablespace to 24 hours ago:

RECOVER TABLESPACE clients UNTIL TIME 'sysdate-1';
}

相关文章
|
21天前
|
JavaScript
【报错】onMounted is called when there is no active component instance too be associated with.
【报错】onMounted is called when there is no active component instance too be associated with.
|
数据库
This scheduler instance is still active but was recovered by another instance in the cluster
This scheduler instance is still active but was recovered by another instance in the cluster
389 0
|
fastjson
No enclosing instance of type TestGson is accessible. Must qualify the allocation with an enclosing instance of type TestGson (e.g. x.new A() where x
main方法中实例化内部类报错: public class TestGson { public static void main(String[] args) { Gson gson=new Gson();TestGson testgson=new TestGson(); Student student = testgson.
1324 0
|
SQL Oracle 关系型数据库
Oracle实例囚笼(Instance Caging)
Oracle实例囚笼(Instance Caging) 当多个实例运行在同一台服务器上时,为了避免实例间的相互影响,从oracle 11gr2开始推出了实例囚笼的概念。
1783 0