|
上完1Z0-053第3/4章
进行1Z0-053第5章(已经上完块跟踪/上完单个文件Section Size并行分片/进行Archival Backup)
1Z0-052共19章(上完12章),1Z0-053共21章(上完8章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的20章
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ? rcat
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sat May 13 09:15:52 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 1603411968 bytes
- Fixed Size 2213776 bytes
- Variable Size 469764208 bytes
- Database Buffers 1124073472 bytes
- Redo Buffers 7360512 bytes
- Database mounted.
- Database opened.
- SQL> select dbid from v$database;
- DBID
- ----------
- 590260915
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [rcat] ? orcl
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sat May 13 09:26:02 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> select dbid from v$database;
- DBID
- ----------
- 1343950367
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ rman catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:30:19 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> import catalog u90/oracle_4U@utforcl199
- 2> ;
- Starting import catalog at 13-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of import catalog command at 05/13/2017 09:30:40
- RMAN-04035: error from source recovery catalog database: ORA-12154: TNS:could not resolve the connect identifier specified
- RMAN> import catalog u90/oracle_4U@utforcl199
- 2> ;
- Starting import catalog at 13-MAY-17
- connected to source recovery catalog database
- import validation complete
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of import catalog command at 05/13/2017 09:31:46
- RMAN-06004: ORACLE error from recovery catalog database: RMAN-20512: source database already registered in recovery catalog
- RMAN> import catalog u90/oracle_4U@utforcl199 dbid=1347195613 no unregister;
- Starting import catalog at 13-MAY-17
- connected to source recovery catalog database
- import validation complete
- Finished import catalog at 13-MAY-17
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ? rcat
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sat May 13 09:45:33 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn u90/oracle_4U
- Connected.
- SQL> select dbid from v$database;
- select dbid from v$database
- *
- ERROR at line 1:
- ORA-00942: table or view does not exist
- SQL> select dbid from db;
- select dbid from db
- *
- ERROR at line 1:
- ORA-00904: "DBID": invalid identifier
- SQL> select * from db;
- DB_KEY DB_ID CURR_DBINC_KEY
- ---------- ---------- --------------
- 2 1343950367 4
- 3002 1359978017 3003
- 6127 1347195613 6128
- SQL> select * from db;
- DB_KEY DB_ID CURR_DBINC_KEY
- ---------- ---------- --------------
- 2 1343950367 4
- 3002 1359978017 3003
- 6127 1347195613 6128
- SQL> /
- DB_KEY DB_ID CURR_DBINC_KEY
- ---------- ---------- --------------
- 2 1343950367 4
- 3002 1359978017 3003
- 6127 1347195613 6128
- SQL> /
- DB_KEY DB_ID CURR_DBINC_KEY
- ---------- ---------- --------------
- 2 1343950367 4
- 3002 1359978017 3003
- 8474 454057935 8475
- 6127 1347195613 6128
- SQL>
- ----------------------------------------------------------------
- create user v91 identified by oracle_4U ;
- create user v92 identified by oracle_4U ;
- create user v93 identified by oracle_4U ;
- grant recovery_catalog_owner to v91;
- grant recovery_catalog_owner to v92;
- grant recovery_catalog_owner to v93;
- create user v94 identified by oracle_4U ;
- grant recovery_catalog_owner to v94;
- ------------------------------------------------------
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ rman catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:47:02 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> grant catalog for database 1343950367 to v91;
- Grant succeeded.
- RMAN> grant catalog for database 1347195613 to v92;
- Grant succeeded.
- RMAN> grant catalog for database 1359978017 to v93 ;
- Grant succeeded.
- RMAN> connect v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "auxiliary, catalog, target"
- RMAN-01008: the bad identifier was: v91
- RMAN-01007: at line 1 column 9 file: standard input
- RMAN> connect catalog v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-06167: already connected
- RMAN> connect catalog v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-06167: already connected
- RMAN> create virtual catalog;
- recovery catalog already exists
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v91/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:50:11 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virtual catalog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v92/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:50:40 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virual catalog;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "catalog, global, restore, script, virtual"
- RMAN-01008: the bad identifier was: virual
- RMAN-01007: at line 1 column 8 file: standard input
- create virtual catalog;talog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN>
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v93/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:51:08 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virtual catalog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN>
- --------------------------------------------
- v91:
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ rman catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:47:02 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> grant catalog for database 1343950367 to v91;
- Grant succeeded.
- RMAN> grant catalog for database 1347195613 to v92;
- Grant succeeded.
- RMAN> grant catalog for database 1359978017 to v93 ;
- Grant succeeded.
- RMAN> connect v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "auxiliary, catalog, target"
- RMAN-01008: the bad identifier was: v91
- RMAN-01007: at line 1 column 9 file: standard input
- RMAN> connect catalog v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-06167: already connected
- RMAN> connect catalog v91/oracle_4U@rcat
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-06167: already connected
- RMAN> create virtual catalog;
- recovery catalog already exists
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v91/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:50:11 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virtual catalog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v92/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:50:40 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virual catalog;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "catalog, global, restore, script, virtual"
- RMAN-01008: the bad identifier was: virual
- RMAN-01007: at line 1 column 8 file: standard input
- create virtual catalog;talog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN>
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman catalog v93/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:51:08 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to recovery catalog database
- RMAN> create virtual catalog;
- found ineligible base catalog owned by U4
- found ineligible base catalog owned by U26
- found ineligible base catalog owned by U77
- found eligible base catalog owned by U90
- created virtual catalog against base catalog owned by U90
- RMAN>
- --------------------------------------------
- V93:
- [root@station90 ~]# ssh station26
- The authenticity of host 'station26 (192.168.0.26)' can't be established.
- RSA key fingerprint is df:20:f7:84:94:66:b7:46:f5:2e:f8:2e:0c:4c:32:ac.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added 'station26,192.168.0.26' (RSA) to the list of known hosts.
- Last login: Sat May 13 09:28:10 2017 from station90.example.com
- [root@station26 ~]# su - oracle
- [oracle@station26 ~]$ rman target / catalog v93/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:53:56 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- connected to recovery catalog database
- RMAN> report schema;
- Report of database schema for database with db_unique_name ORCL
- List of Permanent Datafiles
- ===========================
- File Size(MB) Tablespace RB segs Datafile Name
- ---- -------- -------------------- ------- ------------------------
- 1 690 SYSTEM YES +DATA/orcl/datafile/system.256.943294517
- 2 580 SYSAUX NO +DATA/orcl/datafile/sysaux.258.941388173
- 3 100 UNDOTBS1 YES +DATA/orcl/datafile/undotbs1.259.941388169
- 4 7 USERS NO +DATA/orcl/datafile/users.265.943357169
- 5 100 EXAMPLE NO +DATA/orcl/datafile/example.257.941388169
- List of Temporary Files
- =======================
- File Size(MB) Tablespace Maxsize(MB) Tempfile Name
- ---- -------- -------------------- ----------- --------------------
- 1 29 TEMP 32767 +DATA/orcl/tempfile/temp.264.832197335
- 3 6144 TEMP 6144 /u01/app/oracle/oradata/orcl/temp03.dbf
- RMAN> exit
- Recovery Manager complete.
- [oracle@station26 ~]$ rman target / catalog v91/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:54:10 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- connected to recovery catalog database
- RMAN> report schema;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of report command at 05/13/2017 09:54:15
- RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
- RMAN> exit
- Recovery Manager complete.
- [oracle@station26 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 09:54:20 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- connected to recovery catalog database
- RMAN> report schema;
- Report of database schema for database with db_unique_name ORCL
- List of Permanent Datafiles
- ===========================
- File Size(MB) Tablespace RB segs Datafile Name
- ---- -------- -------------------- ------- ------------------------
- 1 690 SYSTEM YES +DATA/orcl/datafile/system.256.943294517
- 2 580 SYSAUX NO +DATA/orcl/datafile/sysaux.258.941388173
- 3 100 UNDOTBS1 YES +DATA/orcl/datafile/undotbs1.259.941388169
- 4 7 USERS NO +DATA/orcl/datafile/users.265.943357169
- 5 100 EXAMPLE NO +DATA/orcl/datafile/example.257.941388169
- List of Temporary Files
- =======================
- File Size(MB) Tablespace Maxsize(MB) Tempfile Name
- ---- -------- -------------------- ----------- --------------------
- 1 29 TEMP 32767 +DATA/orcl/tempfile/temp.264.832197335
- 3 6144 TEMP 6144 /u01/app/oracle/oradata/orcl/temp03.dbf
- RMAN>
- ------------------------------------
- V94:
- Microsoft Windows [版本 6.1.7600]
- 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
- C:\Users\Administrator>sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on 星期六 5月 13 10:00:41 2017
- Copyright (c) 1982, 2010, Oracle. All rights reserved.
- SQL> conn / as sysdba
- 已连接。
- SQL> select dbid from v$database;
- DBID
- ----------
- 454057935
- SQL> exit
- 从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
- 开
- C:\Users\Administrator>tnsping rcat
- TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 13-5月 -
- 2017 10:01:08
- Copyright (c) 1997, 2010, Oracle. All rights reserved.
- 已使用的参数文件:
- C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
- 已使用 TNSNAMES 适配器来解析别名
- 尝试连接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.90)(PORT =
- 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = rcat.example.com)))
- OK (10 毫秒)
- C:\Users\Administrator>rman target / catalog v94/oracle_4U@rcat
- 恢复管理器: Release 11.2.0.1.0 - Production on 星期六 5月 13 10:01:25 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- 连接到目标数据库: UTFORCL (DBID=454057935)
- 连接到恢复目录数据库
- RMAN> register database;
- 注册在恢复目录中的数据库
- 正在启动全部恢复目录的 resync
- 完成全部 resync
- RMAN> exit
- 恢复管理器完成。
- C:\Users\Administrator>rman target / catalog u90/oracle_4U@rcat
- 恢复管理器: Release 11.2.0.1.0 - Production on 星期六 5月 13 10:02:07 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- 连接到目标数据库: UTFORCL (DBID=454057935)
- 连接到恢复目录数据库
- RMAN> report schema;
- db_unique_name 为 UTFORCL 的数据库的数据库方案报表
- 永久数据文件列表
- ===========================
- 文件大小 (MB) 表空间 回退段数据文件名称
- ---- -------- -------------------- ------- ------------------------
- 1 700 SYSTEM YES C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- SYSTEM01.DBF
- 2 510 SYSAUX NO C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- SYSAUX01.DBF
- 3 100 UNDOTBS1 YES C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- UNDOTBS01.DBF
- 4 5 USERS NO C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- USERS01.DBF
- 5 100 EXAMPLE NO C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- EXAMPLE01.DBF
- 6 5 TBSUTF8_11G NO C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- TBSUTF8_11G01.DBF
- 7 30 RCATTBS NO C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\
- RCATTBS.DBF
- 临时文件列表
- =======================
- 文件大小 (MB) 表空间 最大大小 (MB) 临时文件名称
- ---- -------- -------------------- ----------- --------------------
- 1 29 TEMP 32767 C:\APP\ADMINISTRATOR\ORADATA\UTFO
- RCL\TEMP01.DBF
- RMAN>
复制代码- [root@station90 桌面]# obtool
- ob> exit
- [root@station90 桌面]# obtool
- ob> lspiece
- ob> exit
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat May 13 11:18:09 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN> show all;
- using target database control file instead of recovery catalog
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE EXCLUDE FOR TABLESPACE 'SYSAUX';
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> list backup;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 16 Full 9.38M SBT_TAPE 00:00:15 20-OCT-13
- BP Key: 16 Status: EXPIRED Compressed: NO Tag: TAG20131020T172458
- Handle: c-1343950367-20131020-01 Media: station90-000009
- SPFILE Included: Modification time: 20-OCT-13
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1042551 Ckp time: 20-OCT-13
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ ---------------
- 17 64.00K SBT_TAPE 00:00:15 20-OCT-13
- BP Key: 17 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0homt4ha_1_1 Media: station90-000009
- List of Archived Logs in backup set 17
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- --------- ---------- ---------
- 1 13 1042532 20-OCT-13 1042606 20-OCT-13
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 18 Incr 1 128.00K SBT_TAPE 00:00:15 20-OCT-13
- BP Key: 18 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0iomt4hq_1_1 Media: station90-000009
- List of Datafiles in backup set 18
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 1 Incr 1042619 20-OCT-13 +DATA/orcl/datafile/system.256.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 19 Incr 1 7.44M SBT_TAPE 00:00:24 20-OCT-13
- BP Key: 19 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0jomt4hq_1_1 Media: station90-000010
- List of Datafiles in backup set 19
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 2 1 Incr 1042622 20-OCT-13 +DATA/orcl/datafile/sysaux.257.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 20 Incr 1 1.50M SBT_TAPE 00:00:39 20-OCT-13
- BP Key: 20 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0komt4hq_1_1 Media: station90-000010
- List of Datafiles in backup set 20
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 3 1 Incr 1042625 20-OCT-13 +DATA/orcl/datafile/undotbs1.258.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 21 Incr 1 64.00K SBT_TAPE 00:00:40 20-OCT-13
- BP Key: 21 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0lomt4hq_1_1 Media: station90-000009
- List of Datafiles in backup set 21
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 5 1 Incr 1042629 20-OCT-13 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 22 Incr 1 64.00K SBT_TAPE 00:00:53 20-OCT-13
- BP Key: 22 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0momt4hr_1_1 Media: station90-000010
- List of Datafiles in backup set 22
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 4 1 Incr 1042632 20-OCT-13 +DATA/orcl/datafile/users.259.816169553
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ ---------------
- 23 640.00K SBT_TAPE 00:00:15 20-OCT-13
- BP Key: 23 Status: EXPIRED Compressed: NO Tag: 3TCUMU_WHOLE_INCR1
- Handle: 0nomt4ji_1_1 Media: station90-000009
- List of Archived Logs in backup set 23
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- --------- ---------- ---------
- 1 14 1042606 20-OCT-13 1043204 20-OCT-13
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 24 Full 9.38M SBT_TAPE 00:00:16 20-OCT-13
- BP Key: 24 Status: EXPIRED Compressed: NO Tag: TAG20131020T172739
- Handle: c-1343950367-20131020-02 Media: station90-000009
- SPFILE Included: Modification time: 20-OCT-13
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1043235 Ckp time: 20-OCT-13
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ ---------------
- 25 16.00M SBT_TAPE 00:00:25 12-DEC-16
- BP Key: 25 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0prn9uun_1_1 Media: station90-000009
- List of Archived Logs in backup set 25
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- --------- ---------- ---------
- 1 15 1043204 20-OCT-13 1047404 11-DEC-13
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ ---------------
- 26 15.50M SBT_TAPE 00:00:25 12-DEC-16
- BP Key: 26 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0qrn9uun_1_1 Media: station90-000010
- List of Archived Logs in backup set 26
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- --------- ---------- ---------
- 1 16 1047404 11-DEC-13 1049898 11-DEC-13
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 27 Full 3.50M SBT_TAPE 00:00:24 12-DEC-16
- BP Key: 27 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0vrn9uvi_1_1 Media: station90-000010
- List of Datafiles in backup set 27
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 4 Full 1051009 12-DEC-16 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 28 Full 588.75M SBT_TAPE 00:01:04 12-DEC-16
- BP Key: 28 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0rrn9uvh_1_1 Media: station90-000009
- List of Datafiles in backup set 28
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 Full 1051009 12-DEC-16 +DATA/orcl/datafile/system.256.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 29 Full 98.25M SBT_TAPE 00:01:23 12-DEC-16
- BP Key: 29 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0trn9uvh_1_1 Media: station90-000009
- List of Datafiles in backup set 29
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 3 Full 1051009 12-DEC-16 +DATA/orcl/datafile/undotbs1.258.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 30 Full 393.00M SBT_TAPE 00:01:40 12-DEC-16
- BP Key: 30 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0srn9uvh_1_1 Media: station90-000010
- List of Datafiles in backup set 30
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 2 Full 1051009 12-DEC-16 +DATA/orcl/datafile/sysaux.257.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 31 Full 69.25M SBT_TAPE 00:01:59 12-DEC-16
- BP Key: 31 Status: EXPIRED Compressed: NO Tag: 4T_WHOLE_INCR0
- Handle: 0urn9uvi_1_1 Media: station90-000009
- List of Datafiles in backup set 31
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 5 Full 1051009 12-DEC-16 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 32 Full 9.50M SBT_TAPE 00:00:16 12-DEC-16
- BP Key: 32 Status: EXPIRED Compressed: NO Tag: TAG20161212T161439
- Handle: c-1343950367-20161212-00 Media: station90-000009
- SPFILE Included: Modification time: 12-DEC-16
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1051009 Ckp time: 12-DEC-16
- RMAN> list copy;
- specification does not match any datafile copy in the repository
- specification does not match any control file copy in the repository
- List of Archived Log Copies for database with db_unique_name ORCL
- =====================================================================
- Key Thrd Seq S Low Time
- ------- ---- ------- - ---------
- 9 1 17 A 11-DEC-13
- Name: +FRA/orcl/archivelog/2017_05_13/thread_1_seq_17.262.943874229
- RMAN> list backup;
- specification does not match any backup in the repository
- RMAN> show exclude;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE EXCLUDE FOR TABLESPACE 'SYSAUX';
- RMAN> backup database ;
- Starting backup at 13-MAY-17
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=15 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=80 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- file 2 is excluded from whole database backup
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_2: starting full datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_2: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_2: finished piece 1 at 13-MAY-17
- piece handle=14s44oaj_1_1 tag=TAG20170513T111946 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_1: finished piece 1 at 13-MAY-17
- piece handle=13s44oai_1_1 tag=TAG20170513T111946 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:36
- Finished backup at 13-MAY-17
- Starting Control File and SPFILE Autobackup at 13-MAY-17
- piece handle=c-1343950367-20170513-00 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 13-MAY-17
- RMAN> show exclude;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE EXCLUDE FOR TABLESPACE 'SYSAUX';
- RMAN> CONFIGURE EXCLUDE FOR TABLESPACE 'SYSAUX' clear;
- Tablespace SYSAUX will be included in future whole database backups
- old RMAN configuration parameters are successfully deleted
- RMAN> show exclude;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- RMAN configuration has no stored or default parameters
- RMAN> backup database ;
- Starting backup at 13-MAY-17
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_2: starting full datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 13-MAY-17
- piece handle=16s44odp_1_1 tag=TAG20170513T112129 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_2: finished piece 1 at 13-MAY-17
- piece handle=17s44odp_1_1 tag=TAG20170513T112129 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
- Finished backup at 13-MAY-17
- Starting Control File and SPFILE Autobackup at 13-MAY-17
- piece handle=c-1343950367-20170513-01 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 13-MAY-17
- RMAN> list backup;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 33 Full 167.50M SBT_TAPE 00:00:17 13-MAY-17
- BP Key: 33 Status: AVAILABLE Compressed: NO Tag: TAG20170513T111946
- Handle: 14s44oaj_1_1 Media: station90-000010
- List of Datafiles in backup set 33
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 3 Full 1056529 13-MAY-17 +DATA/orcl/datafile/undotbs1.258.816169553
- 5 Full 1056529 13-MAY-17 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 34 Full 592.25M SBT_TAPE 00:00:26 13-MAY-17
- BP Key: 34 Status: AVAILABLE Compressed: NO Tag: TAG20170513T111946
- Handle: 13s44oai_1_1 Media: station90-000009
- List of Datafiles in backup set 34
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 Full 1056527 13-MAY-17 +DATA/orcl/datafile/system.256.816169553
- 4 Full 1056527 13-MAY-17 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 35 Full 9.50M SBT_TAPE 00:00:16 13-MAY-17
- BP Key: 35 Status: AVAILABLE Compressed: NO Tag: TAG20170513T112022
- Handle: c-1343950367-20170513-00 Media: station90-000009
- SPFILE Included: Modification time: 13-MAY-17
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1056606 Ckp time: 13-MAY-17
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 36 Full 658.00M SBT_TAPE 00:00:20 13-MAY-17
- BP Key: 36 Status: AVAILABLE Compressed: NO Tag: TAG20170513T112129
- Handle: 16s44odp_1_1 Media: station90-000009
- List of Datafiles in backup set 36
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 Full 1056703 13-MAY-17 +DATA/orcl/datafile/system.256.816169553
- 5 Full 1056703 13-MAY-17 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 37 Full 495.25M SBT_TAPE 00:00:25 13-MAY-17
- BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20170513T112129
- Handle: 17s44odp_1_1 Media: station90-000010
- List of Datafiles in backup set 37
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 2 Full 1056705 13-MAY-17 +DATA/orcl/datafile/sysaux.257.816169553
- 3 Full 1056705 13-MAY-17 +DATA/orcl/datafile/undotbs1.258.816169553
- 4 Full 1056705 13-MAY-17 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 38 Full 9.50M SBT_TAPE 00:00:16 13-MAY-17
- BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20170513T112154
- Handle: c-1343950367-20170513-01 Media: station90-000009
- SPFILE Included: Modification time: 13-MAY-17
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1056735 Ckp time: 13-MAY-17
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE COMPRESSION ALGORITHM low AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "low": expecting one of: "clear, double-quoted-string, single-quoted-string"
- RMAN-01007: at line 1 column 33 file: standard input
- RMAN>
- RMAN> ONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "advise, allocate, alter, backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open, print, quit, recover, register, release, repair, replace, report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch, transport, unregister, upgrade, validate, {, "
- RMAN-01008: the bad identifier was: ONFIGURE
- RMAN-01007: at line 2 column 1 file: standard input
- RMAN> CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ;
- new RMAN configuration parameters:
- CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
- new RMAN configuration parameters are successfully stored
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO compressed BACKUPSET;
- old RMAN configuration parameters:
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- new RMAN configuration parameters:
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
- new RMAN configuration parameters are successfully stored
- released channel: ORA_SBT_TAPE_1
- released channel: ORA_SBT_TAPE_2
- RMAN> backup database ;
- Starting backup at 13-MAY-17
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=15 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=80 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting compressed full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_2: starting compressed full datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 13-MAY-17
- piece handle=19s44op7_1_1 tag=TAG20170513T112735 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:26
- channel ORA_SBT_TAPE_2: finished piece 1 at 13-MAY-17
- piece handle=1as44op7_1_1 tag=TAG20170513T112735 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:35
- Finished backup at 13-MAY-17
- Starting Control File and SPFILE Autobackup at 13-MAY-17
- piece handle=c-1343950367-20170513-02 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 13-MAY-17
- RMAN> show all
- 2> ;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE clear;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "clear": expecting one of: "as, for, optimize, ;"
- RMAN-01007: at line 1 column 86 file: standard input
- RMAN> CONFIGURE COMPRESSION ALGORITHM clear;
- old RMAN configuration parameters:
- CONFIGURE COMPRESSION ALGORITHM 'LOW' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
- RMAN configuration parameters are successfully reset to default value
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- old RMAN configuration parameters:
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
- new RMAN configuration parameters:
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- new RMAN configuration parameters are successfully stored
- released channel: ORA_SBT_TAPE_1
- released channel: ORA_SBT_TAPE_2
- RMAN> run {
- 2> set COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
- 3> backup as compressed backupset tablespace system ;
- 4> }
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03032: this option of set command needs to be used outside of a run block
- RMAN> run {
- 2> set COMPRESSION ALGORITHM 'HIGH';
- 3> backup as compressed backupset tablespace system ;
- 4> }
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03032: this option of set command needs to be used outside of a run block
- RMAN> run {
- 2> SET COMPRESSION ALGORITHM 'HIGH';
- 3> backup as compressed backupset tablespace system ;
- 4> }
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03032: this option of set command needs to be used outside of a run block
- RMAN> backup as compressed backupset tablespace system ;
- Starting backup at 13-MAY-17
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=15 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=80 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting compressed full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 13-MAY-17
- piece handle=1cs44p3n_1_1 tag=TAG20170513T113311 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- Finished backup at 13-MAY-17
- Starting Control File and SPFILE Autobackup at 13-MAY-17
- piece handle=c-1343950367-20170513-03 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 13-MAY-17
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station90)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE ENCRYPTION FOR DATABASE on;
- new RMAN configuration parameters:
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- new RMAN configuration parameters are successfully stored
- RMAN> backup tablespace users;
- Starting backup at 13-MAY-17
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/13/2017 12:01:13
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN> set encrypt on identified by oracle123;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog, autobackup, auxiliary, auxname, backup, command, compression, controlfile, database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point, until"
- RMAN-01008: the bad identifier was: encrypt
- RMAN-01007: at line 1 column 5 file: standard input
- RMAN> set encryption on identified by oracle123;
- executing command: SET encryption
- RMAN> set encryption on identified by oracle123 only;
- executing command: SET encryption
- RMAN> backup tablespace users;
- Starting backup at 13-MAY-17
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 13-MAY-17
- piece handle=1fs44qps_1_1 tag=TAG20170513T120204 comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- Finished backup at 13-MAY-17
- Starting Control File and SPFILE Autobackup at 13-MAY-17
- piece handle=c-1343950367-20170513-04 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 13-MAY-17
- RMAN> set encryption on identified by oracle123 ;
- executing command: SET encryption
- RMAN> backup tablespace users;
- Starting backup at 13-MAY-17
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 13-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/13/2017 12:03:05
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ cd
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sat May 13 12:04:22 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> select * from v$encryption_wallet;
- WRL_TYPE
- --------------------
- WRL_PARAMETER
- --------------------------------------------------------------------------------
- STATUS
- ------------------
- file
- /u01/app/oracle/admin/orcl/wallet
- CLOSED
- SQL> alter system set encryption key identified by oracle456;
- System altered.
- SQL> select * from v$encryption_wallet;
- WRL_TYPE
- --------------------
- WRL_PARAMETER
- --------------------------------------------------------------------------------
- STATUS
- ------------------
- file
- /u01/app/oracle/admin/orcl/wallet
- OPEN
- SQL>
复制代码- SELECT filename, status, bytes
- FROM v$block_change_tracking;
- SELECT file#, avg(datafile_blocks),
- avg(blocks_read),
- avg(blocks_read/datafile_blocks)
- * 100 AS PCT_READ_FOR_BACKUP,
- avg(blocks)
- FROM v$backup_datafile
- WHERE used_change_tracking = 'YES'
- AND incremental_level > 0
- and file#=4
- GROUP BY file#;
-
- select s.segment_name,s.bytes/1024/1024
- from dba_segments s
- where s.owner='HR' and s.segment_name='T_BIG';
复制代码
|
|