|
进行恢复重要章节第IZ0-053的第7章:
脚本实验做了8a/8b、9a/9b、10a/10b
学完课程必需搞清楚只读下线前后哪个控制文件适合用于恢复。知道MISSING000004和UNAME000004的成因和差异:
以station90的出题脚本场景8a/8b:
-
- ---------------------------------------------- LAB 8a ----------------------------------------------
- 8a_当前控制文件损坏_不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- ---------------------------------------------- LAB 8a ----------------------------------------------
-
-
- ******************
- 你的主机信息如下:
- ******************
-
- station90.example.com
-
- Linux station90.example.com 4.8.6-1.el6.elrepo.x86_64 #1 SMP Mon Oct 31 13:01:00 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
-
-
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE station90
- ora.FRA.dg ora....up.type ONLINE ONLINE station90
- ora....ER.lsnr ora....er.type ONLINE ONLINE station90
- ora.asm ora.asm.type ONLINE ONLINE station90
- ora.cssd ora.cssd.type ONLINE ONLINE station90
- ora.diskmon ora....on.type ONLINE ONLINE station90
- ora.orcl.db ora....se.type ONLINE ONLINE station90
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 19:47:30 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- ****************************
- The database open mode here:
- ****************************
- D
- -
- X
- OPEN_MODE
- --------------------
- READ WRITE
- **********************************
- The database archivelog mode here:
- **********************************
- Database log mode Archive Mode
- Automatic archival Enabled
- Archive destination USE_DB_RECOVERY_FILE_DEST
- Oldest online log sequence 20
- Next log sequence to archive 22
- Current log sequence 22
- ***************************
- The database datafile here:
- ***************************
- TABLESPACE_NAME STATUS
- ------------------------------ ---------------
- SYSTEM ONLINE
- SYSAUX ONLINE
- UNDOTBS1 ONLINE
- TEMP ONLINE
- USERS ONLINE
- EXAMPLE ONLINE
- NAME STATUS
- ----------------------------------------------------------------- ---------------
- +DATA/orcl/datafile/system.256.816169553 SYSTEM
- +DATA/orcl/datafile/sysaux.257.816169553 ONLINE
- +DATA/orcl/datafile/undotbs1.258.816169553 ONLINE
- +DATA/orcl/datafile/users.259.816169553 ONLINE
- +DATA/orcl/datafile/example.265.816169651 ONLINE
- ******************************
- The database controlfile here:
- ******************************
- NAME
- -----------------------------------------------------------------
- +DATA/orcl/controlfile/current.260.816169631
- +FRA/orcl/controlfile/current.256.816169633
- **************************
- The database logfile here:
- **************************
- MEMBER
- --------------------------------------------------------------------------------
- +DATA/orcl/onlinelog/group_3.263.816169641
- +FRA/orcl/onlinelog/group_3.259.816169641
- +DATA/orcl/onlinelog/group_2.262.816169639
- +FRA/orcl/onlinelog/group_2.258.816169639
- +DATA/orcl/onlinelog/group_1.261.816169635
- +FRA/orcl/onlinelog/group_1.257.816169637
- SQL> 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
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 19:47:31 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- **************************
- Table successfully created.
- **************************
- SQL> 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
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 19:47:41 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of backup command at 05/18/2017 19:47:49
- ORA-19554: error allocating device, device type: SBT_TAPE, device name:
- ORA-27023: skgfqsbi: media manager protocol error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_connect: Internal error - could not connect to obproxyd (Oracle Secure Backup error: 'Connection refused').
- RMAN>
- Recovery Manager complete.
- /home/oracle/bclcustom-subprogram: line 295: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 296: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 297: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 298: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 299: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 300: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 301: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 302: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 303: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 304: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- /home/oracle/bclcustom-subprogram: line 305: /u01/app/oracle/product/11.2.0.3/grid/network/admin/tnsnames.ora: 没有那个文件或目录
- ***Connecting Catalog***
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 19:47:49 2017
- 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 7 days
- connected to recovery catalog database
- RMAN>
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of resync command at 05/18/2017 19:47:50
- RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
- RMAN>
- Recovery Manager complete.
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 19:47:50 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL> ORACLE instance shut down.
- SQL> 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
- CRS-2500: Cannot stop resource 'ora.orcl.db' as it is not running
- CRS-4000: Command Stop failed, or completed with errors.
-
-
- ASMCMD> ASMCMD> ASMCMD> ASMCMD>
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 19:48:07 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected to an idle instance.
- SQL> SQL> SQL> select * from sys.tname
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- alter system flush buffer_cache
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('The destory take place here: '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- create table ttestbotang_8a (a number) tablespace users
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- SQL> Disconnected
-
-
- THE END
复制代码
以station90的出题脚本场景9a/9b:
-
- ---------------------------------------------- LAB 9a ----------------------------------------------
- 9a_当前控制文件损坏_下线user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- ---------------------------------------------- LAB 9a ----------------------------------------------
-
-
- ******************
- 你的主机信息如下:
- ******************
-
- station90.example.com
-
- Linux station90.example.com 4.8.6-1.el6.elrepo.x86_64 #1 SMP Mon Oct 31 13:01:00 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
-
-
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE station90
- ora.FRA.dg ora....up.type ONLINE ONLINE station90
- ora....ER.lsnr ora....er.type ONLINE ONLINE station90
- ora.asm ora.asm.type ONLINE ONLINE station90
- ora.cssd ora.cssd.type ONLINE ONLINE station90
- ora.diskmon ora....on.type ONLINE ONLINE station90
- ora.orcl.db ora....se.type ONLINE ONLINE station90
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 20:54:04 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- ****************************
- The database open mode here:
- ****************************
- D
- -
- X
- OPEN_MODE
- --------------------
- READ WRITE
- **********************************
- The database archivelog mode here:
- **********************************
- Database log mode Archive Mode
- Automatic archival Enabled
- Archive destination USE_DB_RECOVERY_FILE_DEST
- Oldest online log sequence 27
- Next log sequence to archive 29
- Current log sequence 29
- ***************************
- The database datafile here:
- ***************************
- TABLESPACE_NAME STATUS
- ------------------------------ ---------------
- SYSTEM ONLINE
- SYSAUX ONLINE
- UNDOTBS1 ONLINE
- TEMP ONLINE
- USERS ONLINE
- EXAMPLE ONLINE
- NAME STATUS
- ----------------------------------------------------------------- ---------------
- +DATA/orcl/datafile/system.256.816169553 SYSTEM
- +DATA/orcl/datafile/sysaux.257.816169553 ONLINE
- +DATA/orcl/datafile/undotbs1.258.816169553 ONLINE
- +DATA/orcl/datafile/users.259.816169553 ONLINE
- +DATA/orcl/datafile/example.265.816169651 ONLINE
- ******************************
- The database controlfile here:
- ******************************
- NAME
- -----------------------------------------------------------------
- +DATA/orcl/controlfile/current.260.944339369
- +FRA/orcl/controlfile/current.256.944339369
- **************************
- The database logfile here:
- **************************
- MEMBER
- --------------------------------------------------------------------------------
- +DATA/orcl/onlinelog/group_1.261.816169635
- +FRA/orcl/onlinelog/group_1.257.816169637
- +DATA/orcl/onlinelog/group_3.263.816169641
- +FRA/orcl/onlinelog/group_3.259.816169641
- +DATA/orcl/onlinelog/group_2.262.816169639
- +FRA/orcl/onlinelog/group_2.258.816169639
- SQL> 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
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 20:54:04 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- **************************
- Table successfully created.
- **************************
- SQL> 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
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 20:54:12 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=68 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=75 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-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/18/2017 20:54:26
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN>
- Recovery Manager complete.
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 20:54:27 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL>
- Tablespace altered.
- SQL> 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
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 20:54:27 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=76 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=75 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure 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=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-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/18/2017 20:54:40
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN>
- Recovery Manager complete.
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 20:54:40 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=68 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=75 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-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/18/2017 20:54:54
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN>
- Recovery Manager complete.
- #LABS ADD
- ***Connecting Catalog***
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 20:54:54 2017
- 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 7 days
- connected to recovery catalog database
- RMAN>
- starting full resync of recovery catalog
- full resync complete
- RMAN>
- Recovery Manager complete.
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 20:54:57 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL> ORACLE instance shut down.
- SQL> 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
- CRS-2500: Cannot stop resource 'ora.orcl.db' as it is not running
- CRS-4000: Command Stop failed, or completed with errors.
-
-
- ASMCMD> ASMCMD> ASMCMD> ASMCMD>
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 20:55:14 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected to an idle instance.
- SQL> SQL> SQL> select * from sys.tname
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- alter system flush buffer_cache
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('The destory take place here: '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- create table ttestbotang_9a (a number) tablespace users
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- SQL> Disconnected
-
-
- THE END
复制代码
以station90的出题脚本场景10a/10b:
-
- ---------------------------------------------- LAB 10a ----------------------------------------------
- 10a_当前控制文件损坏_备份时下线user表空间不完全恢复_用控制文件二进制备份_数据不丢_不需备份
- ---------------------------------------------- LAB 10a ----------------------------------------------
-
-
- ******************
- 你的主机信息如下:
- ******************
-
- station90.example.com
-
- Linux station90.example.com 4.8.6-1.el6.elrepo.x86_64 #1 SMP Mon Oct 31 13:01:00 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
-
-
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE station90
- ora.FRA.dg ora....up.type ONLINE ONLINE station90
- ora....ER.lsnr ora....er.type ONLINE ONLINE station90
- ora.asm ora.asm.type ONLINE ONLINE station90
- ora.cssd ora.cssd.type ONLINE ONLINE station90
- ora.diskmon ora....on.type ONLINE ONLINE station90
- ora.orcl.db ora....se.type ONLINE ONLINE station90
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:12:20 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- ****************************
- The database open mode here:
- ****************************
- D
- -
- X
- OPEN_MODE
- --------------------
- READ WRITE
- **********************************
- The database archivelog mode here:
- **********************************
- Database log mode Archive Mode
- Automatic archival Enabled
- Archive destination USE_DB_RECOVERY_FILE_DEST
- Oldest online log sequence 34
- Next log sequence to archive 36
- Current log sequence 36
- ***************************
- The database datafile here:
- ***************************
- TABLESPACE_NAME STATUS
- ------------------------------ ---------------
- SYSTEM ONLINE
- SYSAUX ONLINE
- UNDOTBS1 ONLINE
- TEMP ONLINE
- USERS ONLINE
- EXAMPLE ONLINE
- NAME STATUS
- ----------------------------------------------------------------- ---------------
- +DATA/orcl/datafile/system.256.816169553 SYSTEM
- +DATA/orcl/datafile/sysaux.257.816169553 ONLINE
- +DATA/orcl/datafile/undotbs1.258.816169553 ONLINE
- +DATA/orcl/datafile/users.259.816169553 ONLINE
- +DATA/orcl/datafile/example.265.816169651 ONLINE
- ******************************
- The database controlfile here:
- ******************************
- NAME
- -----------------------------------------------------------------
- +DATA/orcl/controlfile/current.260.944341449
- +FRA/orcl/controlfile/current.256.944341449
- **************************
- The database logfile here:
- **************************
- MEMBER
- --------------------------------------------------------------------------------
- +DATA/orcl/onlinelog/group_2.262.816169639
- +FRA/orcl/onlinelog/group_2.258.816169639
- +DATA/orcl/onlinelog/group_1.261.816169635
- +FRA/orcl/onlinelog/group_1.257.816169637
- +DATA/orcl/onlinelog/group_3.263.816169641
- +FRA/orcl/onlinelog/group_3.259.816169641
- SQL> 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
-
- ***DELETE THE EARLY ONLINE BACKUP OF USERS***
- ***DELETE THE EARLY READ WRITE BACKUP OF USERS***
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:12:20 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- using target database control file instead of recovery catalog
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=138 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=196 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=139 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=76 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=140 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=198 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=16 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=77 device type=DISK
- specification does not match any backup in the repository
- RMAN>
- released channel: ORA_DISK_1
- released channel: ORA_DISK_2
- released channel: ORA_DISK_3
- released channel: ORA_DISK_4
- released channel: ORA_DISK_5
- released channel: ORA_DISK_6
- released channel: ORA_DISK_7
- released channel: ORA_DISK_8
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=138 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=196 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=139 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=76 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=140 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=198 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=16 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=77 device type=DISK
- specification does not match any datafile copy in the repository
- RMAN>
- Recovery Manager complete.
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:12:24 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- using target database control file instead of recovery catalog
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=138 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=196 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=139 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=77 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=140 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=198 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=15 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=75 device type=DISK
- specification does not match any backup in the repository
- RMAN>
- released channel: ORA_DISK_1
- released channel: ORA_DISK_2
- released channel: ORA_DISK_3
- released channel: ORA_DISK_4
- released channel: ORA_DISK_5
- released channel: ORA_DISK_6
- released channel: ORA_DISK_7
- released channel: ORA_DISK_8
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=138 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=196 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=139 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=77 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=140 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=198 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=15 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=75 device type=DISK
- specification does not match any control file copy in the repository
- RMAN>
- Recovery Manager complete.
-
- ***LABS TOTALLY DIFFERENT BEGINS: TABLESPACE OFFLINE***
- ***BEFORE TABLESPACE ONLINE***
- ***BACKUP***
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:12:28 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL>
- Tablespace altered.
- SQL> 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
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:12:28 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=196 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=140 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure 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=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-MAY-17
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/18/2017 21:12:43
- ORA-19506: failed to create sequential file, name="01s4j0u8_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- channel ORA_SBT_TAPE_1 disabled, job failed on it will be run on another channel
- 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=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: starting piece 1 at 18-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_2 channel at 05/18/2017 21:12:46
- ORA-19506: failed to create sequential file, name="02s4j0ub_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- RMAN>
- Recovery Manager complete.
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:12:46 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=16 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=196 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-MAY-17
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/18/2017 21:13:02
- ORA-19506: failed to create sequential file, name="03s4j0uq_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- channel ORA_SBT_TAPE_1 disabled, job failed on it will be run on another channel
- channel ORA_SBT_TAPE_2: starting full datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_2: starting piece 1 at 18-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_2 channel at 05/18/2017 21:13:06
- ORA-19506: failed to create sequential file, name="04s4j0uu_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- RMAN>
- Recovery Manager complete.
- ***FROM THEN ON: ONLINE***
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:13:06 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL>
- Tablespace altered.
- SQL> 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
-
- ***AFTER TABLESPACE ONLINE***
- ***BACKUP AGAIN***
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:13:07 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=140 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=196 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure 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=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-MAY-17
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/18/2017 21:13:21
- ORA-19506: failed to create sequential file, name="05s4j0ve_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- channel ORA_SBT_TAPE_1 disabled, job failed on it will be run on another channel
- 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=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: starting piece 1 at 18-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_2 channel at 05/18/2017 21:13:25
- ORA-19506: failed to create sequential file, name="06s4j0vi_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- RMAN>
- Recovery Manager complete.
-
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:13:25 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN>
- Starting backup at 18-MAY-17
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=130 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=196 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting full datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 18-MAY-17
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 05/18/2017 21:13:41
- ORA-19506: failed to create sequential file, name="07s4j101_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- channel ORA_SBT_TAPE_1 disabled, job failed on it will be run on another channel
- channel ORA_SBT_TAPE_2: starting full datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_2: starting piece 1 at 18-MAY-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_2 channel at 05/18/2017 21:13:45
- ORA-19506: failed to create sequential file, name="08s4j105_1_1", parms=""
- ORA-27028: skgfqcre: sbtbackup returned error
- ORA-19511: Error received from media manager layer, error text:
- sbt__rpc_createjob: could not find media family 'station2'.
- RMAN>
- Recovery Manager complete.
- #LABS ADD
- ***Connecting Catalog***
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 18 21:13:45 2017
- 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 7 days
- connected to recovery catalog database
- RMAN>
- starting full resync of recovery catalog
- full resync complete
- RMAN>
- Recovery Manager complete.
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:13:48 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL>
- A
- --------------------
- Botang
- **************************
- Table successfully created.
- **************************
- SQL> 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
-
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:13:56 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected.
- SQL> SQL> SQL> ORACLE instance shut down.
- SQL> 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
- CRS-2500: Cannot stop resource 'ora.orcl.db' as it is not running
- CRS-4000: Command Stop failed, or completed with errors.
-
-
- ASMCMD> ASMCMD> ASMCMD> ASMCMD>
- SQL*Plus: Release 11.2.0.1.0 Production on Thu May 18 21:14:13 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> Connected to an idle instance.
- SQL> SQL> SQL> select * from sys.tname
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- alter system flush buffer_cache
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('The destory take place here: '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line('**************************** '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- BEGIN dbms_output.put_line(' '); END;
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- create table ttestbotang_10a (a number) tablespace users
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 0
- Session ID: 0 Serial number: 0
- SQL> Disconnected
-
-
- THE END
复制代码
|
|