|
本帖最后由 botang 于 2016-5-31 09:27 编辑
做8a和14实验
select * from v$flashback_database_log;
--1092922
--5/28/2016 9:47:31 AM
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue May 31 09:22:44 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 6 days
- connected to recovery catalog database
- RMAN> backup tag '4TAPE-WHOLE-FULL' database plus archivelog delete all input;
复制代码
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue May 31 09:22:44 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 6 days
- connected to recovery catalog database
- RMAN> restore controlfile from tag 'LABS-14-CONTR-BEFORE-DROP';
复制代码- Recovery Manager complete.
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue May 31 09:22:44 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 6 days
- connected to recovery catalog database
- RMAN> run {
- 2> sql "alter session set nls_date_format=''YYYY-MM-DD:HH24:MI:SS''";
- 3> set until time '2016-05-30:21:49:01';
- 4> restore database;
- 5> recover database;
- 6> recover database;}
复制代码
|
|