|
md_backup和md_restore:
- [root@station90 ~]# ssh station17
- The authenticity of host 'station17 (192.168.0.17)' can't be established.
- RSA key fingerprint is af:11:b6:40:30:80:bf:7b:89:65:c3:c1:00:d0:88:cc.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added 'station17,192.168.0.17' (RSA) to the list of known hosts.
- Last login: Fri Nov 3 19:57:51 2017 from station90.example.com
- [root@station17 ~]# mount.acfs -o all
- [root@station17 ~]# crs_stat -t
- -bash: crs_stat: command not found
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.ACFS.dg ora....up.type ONLINE ONLINE station17
- ora.DATA.dg ora....up.type ONLINE ONLINE station17
- ora.FRA.dg ora....up.type ONLINE ONLINE station17
- ora....ER.lsnr ora....er.type ONLINE ONLINE station17
- ora.asm ora.asm.type ONLINE ONLINE station17
- ora.cssd ora.cssd.type ONLINE ONLINE station17
- ora.diskmon ora....on.type ONLINE ONLINE station17
- ora.orcl.db ora....se.type ONLINE OFFLINE
- [oracle@station17 ~]$ crsctl start res ora.orcl.db
- CRS-2672: Attempting to start 'ora.orcl.db' on 'station17'
- CRS-2676: Start of 'ora.orcl.db' on 'station17' succeeded
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ vim data.txt
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ rm -rf data.txt
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:47:30 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysasm
- Connected.
- SQL> drop diskgroup data ;
- drop diskgroup data
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15053: diskgroup "DATA" contains existing files
- SQL> drop diskgroup data including contents;
- drop diskgroup data including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> drop diskgroup data force including contents;
- drop diskgroup data force including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15230: diskgroup 'DATA' does not require the FORCE option
- SQL> drop diskgroup data including contents force ;
- drop diskgroup data including contents force
- *
- ERROR at line 1:
- ORA-00933: SQL command not properly ended
- SQL> drop diskgroup data force ;
- drop diskgroup data force
- *
- ERROR at line 1:
- ORA-02000: missing INCLUDING keyword
- SQL> drop diskgroup data force including contents ;
- drop diskgroup data force including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15230: diskgroup 'DATA' does not require the FORCE option
- SQL> drop diskgroup data force including contents ;
- drop diskgroup data force including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15230: diskgroup 'DATA' does not require the FORCE option
- SQL> drop diskgroup data including contents ;
- drop diskgroup data including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> drop diskgroup data including contents ;
- drop diskgroup data including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> drop diskgroup data force including contents ;
- drop diskgroup data force including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15230: diskgroup 'DATA' does not require the FORCE option
- SQL> shutdown abort
- ASM instance shutdown
- SQL> startup nomount
- ASM instance started
- Total System Global Area 284565504 bytes
- Fixed Size 1336036 bytes
- Variable Size 258063644 bytes
- ASM Cache 25165824 bytes
- SQL> drop diskgroup data force including contents ;
- drop diskgroup data force including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15230: diskgroup 'DATA' does not require the FORCE option
- SQL> drop diskgroup data including contents ;
- drop diskgroup data including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> shutdown abort
- ASM instance shutdown
- SQL> startup nomount
- ASM instance started
- Total System Global Area 284565504 bytes
- Fixed Size 1336036 bytes
- Variable Size 258063644 bytes
- ASM Cache 25165824 bytes
- SQL> drop diskgroup data including contents;
- drop diskgroup data including contents
- *
- ERROR at line 1:
- ORA-15039: diskgroup not dropped
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> alter diskgroup data dismount;
- alter diskgroup data dismount
- *
- ERROR at line 1:
- ORA-15032: not all alterations performed
- ORA-15027: active use of diskgroup "DATA" precludes its dismount
- SQL> shutdown abort
- ASM instance shutdown
- SQL> drop diskgroup data;
- drop diskgroup data
- *
- ERROR at line 1:
- ORA-01034: ORACLE not available
- Process ID: 5917
- Session ID: 47 Serial number: 1
- SQL> startup nomount
- ASM instance started
- Total System Global Area 284565504 bytes
- Fixed Size 1336036 bytes
- Variable Size 258063644 bytes
- ASM Cache 25165824 bytes
- SQL> shutdown abort
- ASM instance shutdown
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Automatic Storage Management option
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# oracleasm-scandisks
- -bash: oracleasm-scandisks: command not found
- [root@station17 ~]# oracleasm scandisks
- Reloading disk partitions: done
- Cleaning any stale ASM disks...
- Scanning system for ASM disks...
- [root@station17 ~]# oracleasm lsdisk
- oracleasm: 'lsdisk' is not an oracleasm command
- Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
- oracleasm --exec-path
- oracleasm -h
- oracleasm -V
- The basic oracleasm commands are:
- configure Configure the Oracle Linux ASMLib driver
- init Load and initialize the ASMLib driver
- exit Stop the ASMLib driver
- scandisks Scan the system for Oracle ASMLib disks
- status Display the status of the Oracle ASMLib driver
- listdisks List known Oracle ASMLib disks
- querydisk Determine if a disk belongs to Oracle ASMlib
- createdisk Allocate a device for Oracle ASMLib use
- deletedisk Return a device to the operating system
- renamedisk Change the label of an Oracle ASMlib disk
- update-driver Download the latest ASMLib driver
- [root@station17 ~]# oracleasm lsdisks
- oracleasm: 'lsdisks' is not an oracleasm command
- Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
- oracleasm --exec-path
- oracleasm -h
- oracleasm -V
- The basic oracleasm commands are:
- configure Configure the Oracle Linux ASMLib driver
- init Load and initialize the ASMLib driver
- exit Stop the ASMLib driver
- scandisks Scan the system for Oracle ASMLib disks
- status Display the status of the Oracle ASMLib driver
- listdisks List known Oracle ASMLib disks
- querydisk Determine if a disk belongs to Oracle ASMlib
- createdisk Allocate a device for Oracle ASMLib use
- deletedisk Return a device to the operating system
- renamedisk Change the label of an Oracle ASMlib disk
- update-driver Download the latest ASMLib driver
- [root@station17 ~]# oracleasm listdisks
- ASMDISK01
- ASMDISK02
- ASMDISK03
- ASMDISK04
- ASMDISK05
- ASMDISK06
- ASMDISK07
- ASMDISK08
- ASMDISK09
- ASMDISK10
- ASMDISK11
- ASMDISK12
- ASMDISK13
- [root@station17 ~]# oracleasm listdisks -v
- ASMDISK01
- ASMDISK02
- ASMDISK03
- ASMDISK04
- ASMDISK05
- ASMDISK06
- ASMDISK07
- ASMDISK08
- ASMDISK09
- ASMDISK10
- ASMDISK11
- ASMDISK12
- ASMDISK13
- [root@station17 ~]# oracleasm listdisks -l
- Usage: oracleasm-listdisks [-l <manager>] [-v]
- [root@station17 ~]# cd /dev/oracleasm/disks/
- [root@station17 disks]# ls -l
- total 0
- brw-rw---- 1 oracle dba 7, 0 Nov 10 19:24 ASMDISK01
- brw-rw---- 1 oracle dba 7, 1 Nov 10 19:24 ASMDISK02
- brw-rw---- 1 oracle dba 7, 2 Nov 10 19:24 ASMDISK03
- brw-rw---- 1 oracle dba 7, 3 Nov 10 19:24 ASMDISK04
- brw-rw---- 1 oracle dba 7, 4 Nov 10 19:24 ASMDISK05
- brw-rw---- 1 oracle dba 7, 5 Nov 10 19:24 ASMDISK06
- brw-rw---- 1 oracle dba 7, 6 Nov 10 19:24 ASMDISK07
- brw-rw---- 1 oracle dba 7, 7 Nov 10 19:24 ASMDISK08
- brw-rw---- 1 oracle dba 253, 3 Nov 10 19:23 ASMDISK09
- brw-rw---- 1 oracle dba 253, 5 Nov 10 19:23 ASMDISK10
- brw-rw---- 1 oracle dba 253, 6 Nov 10 19:23 ASMDISK11
- brw-rw---- 1 oracle dba 7, 8 Nov 10 19:24 ASMDISK12
- brw-rw---- 1 oracle dba 7, 9 Nov 10 19:24 ASMDISK13
- [root@station17 disks]# for i in 01 02 03 04 12 13 ; do dd if=/dev/zero of=/dev/oracleasm/disks/ASMDISK$i bs=100M count=1 ;done
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 0.247874 seconds, 423 MB/s
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 0.167989 seconds, 624 MB/s
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 7.87958 seconds, 13.3 MB/s
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 84.9321 seconds, 1.2 MB/s
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 95.069 seconds, 1.1 MB/s
- 1+0 records in
- 1+0 records out
- 104857600 bytes (105 MB) copied, 64.4759 seconds, 1.6 MB/s
- [root@station17 disks]#
- [root@station17 disks]#
- [root@station17 disks]#
- [root@station17 disks]# oracleasm createdisk ASMDISK12 /dev/loop8
- Writing disk header: done
- Instantiating disk: done
- [root@station17 disks]# oracleasm createdisk ASMDISK13 /dev/loop9
- Writing disk header: done
- Instantiating disk: done
- [root@station17 disks]# oracleasm-discover
- Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
- [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
- Discovered disk: ORCL:ASMDISK01 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK02 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK03 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK04 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
- [root@station17 disks]# su - oracle
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:02:27 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> conn / as sysasm
- Connected to an idle instance.
- SQL> startup nomount
- ORA-00099: warning: no parameter file specified for ASM instance
- ASM instance started
- Total System Global Area 284565504 bytes
- Fixed Size 1336036 bytes
- Variable Size 258063644 bytes
- ASM Cache 25165824 bytes
- SQL> exitr
- SP2-0042: unknown command "exitr" - rest of line ignored.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Automatic Storage Management option
- [oracle@station17 ~]$ asmcmd
- ASMCMD> lsdg
- State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
- MOUNTED EXTERN N 512 4096 1048576 7788 561 0 561 0 N ACFS/
- MOUNTED EXTERN N 512 4096 1048576 10400 8755 0 8755 0 N FRA/
- ASMCMD> help
- asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]
- The environment variables ORACLE_HOME and ORACLE_SID determine the
- instance to which the program connects, and ASMCMD establishes a
- bequeath connection to it, in the same manner as a SQLPLUS / AS
- SYSASM. The user must be a member of the OSASM group.
- Specifying the -V option prints the asmcmd version number and
- exits immediately.
- Specifying the -v option prints extra information that can help
- advanced users diagnose problems.
- Specify the -a option to choose the type of connection. There are
- only two possibilities: connecting as SYSASM or as SYSDBA.
- The default value if this option is unspecified is SYSASM.
- Specifying the -p option allows the current directory to be displayed
- in the command prompt, like so:
- ASMCMD [+DATA/ORCL/CONTROLFILE] >
- [command] specifies one of the following commands, along with its
- parameters.
- Type "help [command]" to get help on a specific ASMCMD command.
- commands:
- --------
- md_backup, md_restore
- lsattr, setattr
- cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
- mkdir, pwd, rm, rmalias
- chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
- offline, online, rebal, remap, umount
- dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
- spmove, spset, startup
- chtmpl, lstmpl, mktmpl, rmtmpl
- chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
- mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr
- volcreate, voldelete, voldisable, volenable, volinfo
- volresize, volset, volstat
- ASMCMD> help md_restore
- md_restore <backup_file> [--silent]
- [--full|--nodg|--newdg] [-S <sql_script_file>]
- [-G '<diskgroup_name>,<diskgroup_name>,...']
- [-o '<old_diskgroup_name>:<new_diskgroup_name>,...']
- Perform ASM Metadata restore for disk groups.
- Read metadata information from <backup_file>.
- --silent Ignore errors. Normally if md_restore encounters an error, it
- will stop. Specifying this flag ignores that.
- --full create disk group and restore metadata.
- --nodg restore metadata only.
- --newdg create disk group with a different name and restore
- metadata; -o is required.
- -S Write SQL commands to <sql_script_file> instead of executing them.
- -G Select the disk groups to be restored. If no disk groups defined,
- all of them will be restored.
- -o Rename disk group <old_diskgroup_name> to <new_diskgroup_name>.
- ASMCMD> md_restore /home/oracle/data.txt --full -G data
- Current Diskgroup metadata being restored: DATA
- Diskgroup DATA created!
- ASMCMD-09360: ADD or ALTER ATTRIBUTE failed
- ORA-15032: not all alterations performed
- ORA-15242: could not set attribute TEMPLATE.TEMP1.STRIPE
- ORA-15240: attribute name TEMPLATE.TEMP1.STRIPE is invalid (DBD ERROR: OCIStmtExecute)
- ASMCMD> lsdg
- State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
- MOUNTED EXTERN N 512 4096 1048576 7788 561 0 561 0 N ACFS/
- MOUNTED NORMAL N 512 4096 1048576 15600 15435 31 7702 0 N DATA/
- MOUNTED EXTERN N 512 4096 1048576 10400 8755 0 8755 0 N FRA/
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> cd data
- ASMCMD> ls
- ASMCMD> ls
- ASMCMD> cd ..
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> cd fra
- ASMCMD> ls
- ORCL/
- ASMCMD> cd orcl
- ASMCMD> ls
- BACKUPSET/
- CONTROLFILE/
- ONLINELOG/
- ASMCMD> exit
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:07:41 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysasm
- Connected.
- SQL> alter diskgroup acfs mount;
- alter diskgroup acfs mount
- *
- ERROR at line 1:
- ORA-15032: not all alterations performed
- ORA-15017: diskgroup "ACFS" cannot be mounted
- ORA-15013: diskgroup "ACFS" is already mounted
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Automatic Storage Management option
- [oracle@station17 ~]$ asmcmd
- ASMCMD> help
- asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]
- The environment variables ORACLE_HOME and ORACLE_SID determine the
- instance to which the program connects, and ASMCMD establishes a
- bequeath connection to it, in the same manner as a SQLPLUS / AS
- SYSASM. The user must be a member of the OSASM group.
- Specifying the -V option prints the asmcmd version number and
- exits immediately.
- Specifying the -v option prints extra information that can help
- advanced users diagnose problems.
- Specify the -a option to choose the type of connection. There are
- only two possibilities: connecting as SYSASM or as SYSDBA.
- The default value if this option is unspecified is SYSASM.
- Specifying the -p option allows the current directory to be displayed
- in the command prompt, like so:
- ASMCMD [+DATA/ORCL/CONTROLFILE] >
- [command] specifies one of the following commands, along with its
- parameters.
- Type "help [command]" to get help on a specific ASMCMD command.
- commands:
- --------
- md_backup, md_restore
- lsattr, setattr
- cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
- mkdir, pwd, rm, rmalias
- chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
- offline, online, rebal, remap, umount
- dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
- spmove, spset, startup
- chtmpl, lstmpl, mktmpl, rmtmpl
- chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
- mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr
- volcreate, voldelete, voldisable, volenable, volinfo
- volresize, volset, volstat
- ASMCMD> help volenable
- volenable [-G <dgname> <volname> | -G <dgname> -a | -a]
- Enable one or more volumes.
- * If the '-a' and '-G dgname' options are specified, all volumes in
- the specified diskgroup will be enabled.
- * If the '-a' option is specified and no diskgroup name is specified
- then all volumes in all diskgroups will be enabled.
- If specified, the diskgroup must be mounted
- ASMCMD> volenable -G acfs
- usage: volenable [-G <dgname> <volname> | -G <dgname> -a | -a]
- help: help volenable
- ASMCMD> volinfo -G acfs
- usage: volinfo [-G <dgname> <volname> | -G <dgname> -a | -a] | [--show_diskgroup | --show_volume] <volume_device_name>
- help: help volinfo
- ASMCMD> volinfo -G acfs -a
- Diskgroup Name: ACFS
- Volume Name: ACFS_DB1
- Volume Device: /dev/asm/acfs_db1-426
- State: DISABLED
- Size (MB): 6144
- Resize Unit (MB): 256
- Redundancy: UNPROT
- Stripe Columns: 4
- Stripe Width (K): 128
- Usage: ACFS
- Mountpath: /u01/app/oracle/acfsmounts/acfs_db1
- Volume Name: DATAVOL
- Volume Device: /dev/asm/datavol-426
- State: DISABLED
- Size (MB): 1024
- Resize Unit (MB): 256
- Redundancy: UNPROT
- Stripe Columns: 4
- Stripe Width (K): 128
- Usage:
- Mountpath:
- ASMCMD> help
- asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]
- The environment variables ORACLE_HOME and ORACLE_SID determine the
- instance to which the program connects, and ASMCMD establishes a
- bequeath connection to it, in the same manner as a SQLPLUS / AS
- SYSASM. The user must be a member of the OSASM group.
- Specifying the -V option prints the asmcmd version number and
- exits immediately.
- Specifying the -v option prints extra information that can help
- advanced users diagnose problems.
- Specify the -a option to choose the type of connection. There are
- only two possibilities: connecting as SYSASM or as SYSDBA.
- The default value if this option is unspecified is SYSASM.
- Specifying the -p option allows the current directory to be displayed
- in the command prompt, like so:
- ASMCMD [+DATA/ORCL/CONTROLFILE] >
- [command] specifies one of the following commands, along with its
- parameters.
- Type "help [command]" to get help on a specific ASMCMD command.
- commands:
- --------
- md_backup, md_restore
- lsattr, setattr
- cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
- mkdir, pwd, rm, rmalias
- chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
- offline, online, rebal, remap, umount
- dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
- spmove, spset, startup
- chtmpl, lstmpl, mktmpl, rmtmpl
- chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
- mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr
- volcreate, voldelete, voldisable, volenable, volinfo
- volresize, volset, volstat
- ASMCMD> volenable -G acfs ACFS_DB1
- ASMCMD>
复制代码- Disk group metadata to be backed up: DATA
- Current alias directory path: ORCL/PARAMETERFILE
- Current alias directory path: ORCL/CONTROLFILE
- Current alias directory path: ASM/ASMPARAMETERFILE
- Current alias directory path: ORCL/DATAFILE
- Current alias directory path: ASM
- Current alias directory path: ORCL/TEMPFILE
- Current alias directory path: ORCL
- Current alias directory path: ORCL/ONLINELOG
- ASMCMD> md_backup /home/oracle/data.txt -G data
- Disk group metadata to be backed up: DATA
- Current alias directory path: ORCL/PARAMETERFILE
- Current alias directory path: ORCL/CONTROLFILE
- Current alias directory path: ASM/ASMPARAMETERFILE
- Current alias directory path: ORCL/DATAFILE
- Current alias directory path: ASM
- Current alias directory path: ORCL/TEMPFILE
- Current alias directory path: ORCL
- Current alias directory path: ORCL/ONLINELOG
- ASMCMD> exit
- [oracle@station17 ~]$ cd /u01/app/oracle/
- acfsmounts/ cfgtoollogs/ diag/ oradata/ product/
- admin/ checkpoints/ flash_recovery_area/ oradiag_oracle/
- [oracle@station17 ~]$ cd /u01/app/oracle/acfsmounts/acfs_db1/
- .ACFS/ dv/ lost+found/ precomp/
- apex/ emcli/ md/ racg/
- assistants/ EMStagePatches_orcl/ mesg/ rdbms/
- bin/ has/ mgw/ relnotes/
- ccr/ hs/ network/ root.sh
- cdata/ ide/ nls/ scheduler/
- cfgtoollogs/ install/ oc4j/ slax/
- clone/ install.platform odbc/ sqldeveloper/
- config/ instantclient/ olap/ sqlj/
- crs/ inventory/ ons/ sqlplus/
- csmig/ j2ee/ OPatch/ srvm/
- css/ javavm/ opmn/ station17.example.com_orcl/
- ctx/ jdbc/ oracore/ sysman/
- cv/ jdev/ ord/ timingframework/
- dbs/ jdk/ oui/ ucp/
- dc_ocm/ jlib/ owb/ uix/
- deinstall/ ldap/ owm/ utl/
- demo/ lib/ perl/ wwg/
- diagnostics/ log/ plsql/ xdk/
- [oracle@station17 ~]$ cd /u01/app/oracle/acfsmounts/acfs_db1/network/admin/
- [oracle@station17 admin]$ vim tnsnames.ora
- [oracle@station17 admin]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:10 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00554: initialization of internal recovery manager package failed
- RMAN-12001: could not open channel default
- RMAN-10008: could not create channel context
- RMAN-10002: ORACLE error: ORA-15021: parameter "remote_dependencies_mode" is not valid in asm instance
- RMAN-10006: error running SQL statement: alter session set remote_dependencies_mode = signature
- [oracle@station17 admin]$ exit
- logout
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:24 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1474621900)
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00554: initialization of internal recovery manager package failed
- RMAN-04004: error from recovery catalog database: ORA-12541: TNS:no listener
- [oracle@station17 ~][ DISCUZ_CODE_10 ]nbsp; rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:47 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1474621900)
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00554: initialization of internal recovery manager package failed
- RMAN-04004: error from recovery catalog database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
- [oracle@station17 ~][ DISCUZ_CODE_10 ]nbsp; rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:44:02 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1474621900)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days
- connected to recovery catalog database
- RMAN> create catalogl
- 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: catalogl
- RMAN-01007: at line 1 column 8 file: standard input
- RMAN> create catalog ;
- recovery catalog created
- RMAN> register database;
- database registered in recovery catalog
- starting full resync of recovery catalog
- full resync complete
- RMAN> backup database;
- Starting backup at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=8 device type=DISK
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/10/2017 19:44:40
- ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
- continuing other job steps, job failed will not be re-run
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/10/2017 19:44:40
- ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
- continuing other job steps, job failed will not be re-run
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- including current control file in backup set
- including current SPFILE in backup set
- channel ORA_DISK_1: starting piece 1 at 10-NOV-17
- user interrupt received
- Finished backup at 10-NOV-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03099: job cancelled at user request
- RMAN> exit
- Recovery Manager complete.
-
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:44:56 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup mount
- ORACLE instance started.
- Total System Global Area 422670336 bytes
- Fixed Size 1336960 bytes
- Variable Size 260049280 bytes
- Database Buffers 155189248 bytes
- Redo Buffers 6094848 bytes
- Database mounted.
- SQL> alter database archivelog ;
- Database altered.
- SQL> alter database open ;
- Database altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station17 ~][ DISCUZ_CODE_10 ]nbsp; rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:45:51 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1474621900)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days
- connected to recovery catalog database
- RMAN> backup database;
- Starting backup at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=194 device type=DISK
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/users02.dbf
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.946841083
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.946841083
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.946841085
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.946841281
- input datafile file number=00007 name=+DATA/orcl/datafile/tbsjfv.267.959112927
- input datafile file number=00008 name=+DATA/orcl/mytbs.dbf
- channel ORA_DISK_1: starting piece 1 at 10-NOV-17
- channel ORA_DISK_1: finished piece 1 at 10-NOV-17
- piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957 tag=TAG20171110T194556 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.946841085
- channel ORA_DISK_1: starting piece 1 at 10-NOV-17
- channel ORA_DISK_1: finished piece 1 at 10-NOV-17
- piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001 tag=TAG20171110T194556 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- including current control file in backup set
- including current SPFILE in backup set
- channel ORA_DISK_1: starting piece 1 at 10-NOV-17
- channel ORA_DISK_1: finished piece 1 at 10-NOV-17
- piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
- Finished backup at 10-NOV-17
- RMAN> exit
- Recovery Manager complete.
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:49:22 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown abort
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ asmcmd
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> cd data
- ASMCMD> ls
- ASM/
- ORCL/
- ASMCMD> cd ASM
- ASMCMD> exit
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:50:46 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> exit
- [oracle@station17 ~]$ asmcmd
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> ls
- ORA-03135: connection lost contact
- Process ID: 5941
- Session ID: 91 Serial number: 11 (DBD ERROR: OCIStmtExecute/Describe)
- [oracle@station17 ~]$ asmcmd
- ASMCMD> ls
- ACFS/
- FRA/
- ASMCMD> cd FRA/
- ASMCMD> ls
- ORCL/
- ASMCMD> cd ..
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> lsdsk
- Path
- ORCL:ASMDISK01
- ORCL:ASMDISK02
- ORCL:ASMDISK03
- ORCL:ASMDISK04
- ORCL:ASMDISK05
- ORCL:ASMDISK06
- ORCL:ASMDISK07
- ORCL:ASMDISK08
- ORCL:ASMDISK09
- ORCL:ASMDISK10
- ORCL:ASMDISK11
- ORCL:ASMDISK12
- ORCL:ASMDISK13
- ASMCMD> lsdg
- State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
- MOUNTED EXTERN N 512 4096 1048576 7788 561 0 561 0 N ACFS/
- MOUNTED NORMAL N 512 4096 1048576 15600 5042 1764 1639 0 N DATA/
- MOUNTED EXTERN N 512 4096 1048576 10400 8755 0 8755 0 N FRA/
- ASMCMD> lsdsk -l
- Unknown option: l
- usage: lsdsk [-kptgMHI] [-G <diskgroup_name>] [--member | --candidate] [pattern][--discovery] [--statistics]
- help: help lsdsk
- ASMCMD> lsdsk -G data
- Path
- ORCL:ASMDISK01
- ORCL:ASMDISK02
- ORCL:ASMDISK03
- ORCL:ASMDISK04
- ORCL:ASMDISK12
- ORCL:ASMDISK13
- ASMCMD> lsdsk -G data
- ORA-03135: connection lost contact
- Process ID: 6079
- Session ID: 91 Serial number: 7 (DBD ERROR: OCIStmtExecute/Describe)
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# ps aux | grep +ASM
- root 6457 0.0 0.0 3920 676 pts/3 S+ 19:56 0:00 grep +ASM
- [root@station17 ~]# oracleasm-discover
- Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
- [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
- Discovered disk: ORCL:ASMDISK01 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK02 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK03 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK04 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
- [root@station17 ~]# oracleasm scandisks
- Reloading disk partitions: done
- Cleaning any stale ASM disks...
- Cleaning disk "ASMDISK01"
- Cleaning disk "ASMDISK02"
- Cleaning disk "ASMDISK03"
- Cleaning disk "ASMDISK04"
- Scanning system for ASM disks...
- [root@station17 ~]# oracleasm-discover
- Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
- [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
- Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
- Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
- [root@station17 ~]# fdisk -l
- Disk /dev/vda: 67.6 GB, 67645734912 bytes
- 255 heads, 63 sectors/track, 8224 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/vda1 * 1 13 104391 83 Linux
- /dev/vda2 14 6538 52412062+ 8e Linux LVM
- /dev/vda3 6539 6869 2658757+ 8e Linux LVM
- /dev/vda4 6870 7832 7735297+ 5 Extended
- /dev/vda5 6870 7200 2658726 8e Linux LVM
- /dev/vda6 7201 7531 2658726 8e Linux LVM
- /dev/vda7 7532 7662 1052226 82 Linux swap / Solaris
- [root@station17 ~]# oracleasm createdisk ASMDISK01 /dev/loop0
- Writing disk header: done
- Instantiating disk: done
- [root@station17 ~]# oracleasm createdisk ASMDISK02 /dev/loop1
- Writing disk header: done
- Instantiating disk: done
- [root@station17 ~]# oracleasm createdisk ASMDISK03 /dev/loop2
- Writing disk header: done
- Instantiating disk: done
- [root@station17 ~]# oracleasm createdisk ASMDISK04 /dev/loop3
- Writing disk header: done
- Instantiating disk: done
- [root@station17 ~]# oracleasm createdisk ASMDISK12 /dev/loop8
- Writing disk header: done
- Instantiating disk: failed
- Clearing disk header: done
- [root@station17 ~]# oracleasm createdisk ASMDISK12 /dev/loop8
- Writing disk header: done
- Instantiating disk: failed
- Clearing disk header: done
- [root@station17 ~]# oracleasm createdisk ASMDISK13 /dev/loop9
- Writing disk header: done
- Instantiating disk: failed
- Clearing disk header: done
- [root@station17 ~]# losetup /dev/loop9
- /dev/loop9: [fc01]:6475395 (/u01/loop/device/loop9.img)
- [root@station17 ~]# ls -l /dev/loop9
- brw-r----- 1 root disk 7, 9 Nov 10 20:00 /dev/loop9
- [root@station17 ~]# ls -l /dev/loop8
- brw-r----- 1 root disk 7, 8 Nov 10 20:00 /dev/loop8
- [root@station17 ~]# oracleasm scandisks
- Reloading disk partitions: done
- Cleaning any stale ASM disks...
- Cleaning disk "ASMDISK12"
- Cleaning disk "ASMDISK13"
- Scanning system for ASM disks...
- [root@station17 ~]# oracleasm scandisks
- Reloading disk partitions: done
- Cleaning any stale ASM disks...
- Scanning system for ASM disks...
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
- [oracle@station17 ~]$ l
- -bash: l: command not found
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ touch Desktop
- touch: setting times of `Desktop': Permission denied
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# touch 1
- [root@station17 ~]# ls
- 1 anaconda-ks.cfg Desktop install.log.syslog
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.ACFS.dg ora....up.type ONLINE ONLINE station17
- ora.DATA.dg ora....up.type ONLINE ONLINE station17
- ora.FRA.dg ora....up.type ONLINE ONLINE station17
- ora....ER.lsnr ora....er.type ONLINE ONLINE station17
- ora.asm ora.asm.type ONLINE ONLINE station17
- ora.cssd ora.cssd.type ONLINE ONLINE station17
- ora.diskmon ora....on.type ONLINE ONLINE station17
- ora.orcl.db ora....se.type OFFLINE OFFLINE
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [+ASM] ? orcl
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ unalias sqlplus
- [oracle@station17 ~]$ sqlplus /nolog
- Error 6 initializing SQL*Plus
- SP2-0667: Message file sp1<lang>.msb not found
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- Error 6 initializing SQL*Plus
- SP2-0667: Message file sp1<lang>.msb not found
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- [oracle@station17 ~]$ /u01/app/oracle/product/1
- 10.2.0/ 11.2.0/
- [oracle@station17 ~]$ /u01/app/oracle/product/1
- 10.2.0/ 11.2.0/
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/NEW11grhel5-root
- 11G 7.0G 2.9G 71% /
- /dev/mapper/NEW11grhel5-u01
- 38G 35G 1.1G 97% /u01
- /dev/vda1 99M 26M 69M 28% /boot
- tmpfs 1014M 154M 860M 16% /dev/shm
- df: `/u01/app/oracle/acfsmounts/acfs_db1': Input/output error
- [root@station17 ~]# umount /u01/app/oracle/acfsmounts/acfs_db1
- [root@station17 ~]# mount.acfs -o all
- [root@station17 ~]# su - oracle
- [oracle@station17 ~]$ sqlplus /nolog
- Error 6 initializing SQL*Plus
- SP2-0667: Message file sp1<lang>.msb not found
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- Error 6 initializing SQL*Plus
- SP2-0667: Message file sp1<lang>.msb not found
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- [oracle@station17 ~]$ df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/NEW11grhel5-root
- 11G 7.0G 2.9G 71% /
- /dev/mapper/NEW11grhel5-u01
- 38G 35G 1.1G 97% /u01
- /dev/vda1 99M 26M 69M 28% /boot
- tmpfs 1014M 154M 860M 16% /dev/shm
- [oracle@station17 ~]$ exit
- logout
- [root@station17 ~]# cd /u01/app/oracle/
- [root@station17 oracle]# ls
- acfsmounts admin cfgtoollogs checkpoints diag flash_recovery_area oradata oradiag_oracle product
- [root@station17 oracle]# cd acfsmounts/
- [root@station17 acfsmounts]# ls
- acfs_db1
- [root@station17 acfsmounts]# cd acfs_db1/
- [root@station17 acfs_db1]# ls
- [root@station17 acfs_db1]# ls -l
- total 0
- [root@station17 acfs_db1]# mount.acfs -o all
- [root@station17 acfs_db1]# su - oracle
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:10:46 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORA-01078: failure in processing system parameters
- ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15056: additional error message
- ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15173: entry 'orcl' does not exist in directory '/'
- ORA-06512: at line 4
- SQL> exit
- Disconnected
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ ls
- create_t04209_uname.sql Desktop select_t04209_uname.sql solutions.tgz update_t04209_uname.sql
- data.txt oradiag_oracle solutions update2_t04209_uname.sql
- [oracle@station17 ~]$ vim pfile.ora
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:11:45 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup pfile='/home/oracle/pfile.ora'
- ORACLE instance started.
- Total System Global Area 150667264 bytes
- Fixed Size 1335080 bytes
- Variable Size 92274904 bytes
- Database Buffers 50331648 bytes
- Redo Buffers 6725632 bytes
- ORA-00205: error in identifying control file, check alert log for more info
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station17 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:12:21 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (not mounted)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days
- connected to recovery catalog database
- RMAN> restore spfile ;
- Starting restore at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=135 device type=DISK
- channel ORA_DISK_1: starting datafile backup set restore
- channel ORA_DISK_1: restoring SPFILE
- output file name=+DATA/orcl/spfileorcl.ora
- channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017
- channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556
- channel ORA_DISK_1: restored backup piece 1
- channel ORA_DISK_1: restore complete, elapsed time: 00:00:06
- Finished restore at 10-NOV-17
- RMAN> shutdown abort
- Oracle instance shut down
- RMAN> exit
- Recovery Manager complete.
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:12:49 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 422670336 bytes
- Fixed Size 1336960 bytes
- Variable Size 260049280 bytes
- Database Buffers 155189248 bytes
- Redo Buffers 6094848 bytes
- ORA-00205: error in identifying control file, check alert log for more info
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station17 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:13:02 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (not mounted)
- RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days
- connected to recovery catalog database
- RMAN> restore controlfile;
- Starting restore at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=131 device type=DISK
- channel ORA_DISK_1: starting datafile backup set restore
- channel ORA_DISK_1: restoring control file
- channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017
- channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556
- channel ORA_DISK_1: restored backup piece 1
- channel ORA_DISK_1: restore complete, elapsed time: 00:00:04
- output file name=+DATA/orcl/controlfile/current.257.959717599
- output file name=+FRA/orcl/controlfile/current.256.946841165
- Finished restore at 10-NOV-17
- RMAN> restore database;
- Starting restore at 10-NOV-17
- using channel ORA_DISK_1
- skipping datafile 6; already restored to file /u01/app/oracle/oradata/orcl/users02.dbf
- channel ORA_DISK_1: starting datafile backup set restore
- channel ORA_DISK_1: specifying datafile(s) to restore from backup set
- channel ORA_DISK_1: restoring datafile 00001 to +DATA/orcl/datafile/system.256.946841083
- channel ORA_DISK_1: restoring datafile 00002 to +DATA/orcl/datafile/sysaux.257.946841083
- channel ORA_DISK_1: restoring datafile 00004 to +DATA/orcl/datafile/users.259.946841085
- channel ORA_DISK_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.946841281
- channel ORA_DISK_1: restoring datafile 00007 to +DATA/orcl/datafile/tbsjfv.267.959112927
- channel ORA_DISK_1: restoring datafile 00008 to +DATA/orcl/mytbs.dbf
- channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957
- channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957 tag=TAG20171110T194556
- channel ORA_DISK_1: restored backup piece 1
- channel ORA_DISK_1: restore complete, elapsed time: 00:01:16
- channel ORA_DISK_1: starting datafile backup set restore
- channel ORA_DISK_1: specifying datafile(s) to restore from backup set
- channel ORA_DISK_1: restoring datafile 00003 to +DATA/orcl/datafile/undotbs1.258.946841085
- channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001
- channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001 tag=TAG20171110T194556
- channel ORA_DISK_1: restored backup piece 1
- channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
- Finished restore at 10-NOV-17
- RMAN> recover database;
- Starting recover at 10-NOV-17
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of recover command at 11/10/2017 20:18:13
- ORA-00210: cannot open the specified control file
- RMAN> alter database mount;
- database mounted
- released channel: ORA_DISK_1
- RMAN> recover database;
- Starting recover at 10-NOV-17
- Starting implicit crosscheck backup at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=131 device type=DISK
- Crosschecked 3 objects
- Finished implicit crosscheck backup at 10-NOV-17
- Starting implicit crosscheck copy at 10-NOV-17
- using channel ORA_DISK_1
- Finished implicit crosscheck copy at 10-NOV-17
- searching for all files in the recovery area
- cataloging files...
- cataloging done
- List of Cataloged Files
- =======================
- File Name: +fra/ORCL/BACKUPSET/2017_11_10/ncsnf0_TAG20171110T194556_0.263.959716017
- using channel ORA_DISK_1
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of recover command at 11/10/2017 20:18:52
- RMAN-06094: datafile 1 must be restored
- RMAN> exit
- Recovery Manager complete.
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:19:03 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> select open_mode from v$database;
- OPEN_MODE
- --------------------
- MOUNTED
- SQL> recover database until cancel ;
- ORA-00283: recovery session canceled due to errors
- ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
- SQL> recover database until cancel using backup controlfile;
- ORA-00283: recovery session canceled due to errors
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.946841083'
- ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.946841083'
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ asmcmd
- ASMCMD> ls
- ACFS/
- DATA/
- FRA/
- ASMCMD> cd data
- ASMCMD> ls
- ORCL/
- ASMCMD> cd orcl
- ASMCMD> ls
- CONTROLFILE/
- DATAFILE/
- PARAMETERFILE/
- mytbs.dbf
- spfileorcl.ora
- ASMCMD> cd datafile
- ASMCMD> ls
- EXAMPLE.261.959717609
- SYSAUX.260.959717607
- SYSTEM.258.959717607
- TBS1.263.959717609
- TBSJFV.262.959717609
- UNDOTBS1.264.959717683
- USERS.259.959717607
- ASMCMD> exit
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [+ASM] ? orcl
- The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
- [oracle@station17 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:20:44 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1474621900, not open)
- RMAN> report schema;
- using target database control file instead of recovery catalog
- RMAN-06139: WARNING: control file is not current for 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 0 SYSTEM *** +DATA/orcl/datafile/system.256.946841083
- 2 0 SYSAUX *** +DATA/orcl/datafile/sysaux.257.946841083
- 3 0 UNDOTBS1 *** +DATA/orcl/datafile/undotbs1.258.946841085
- 4 0 USERS *** +DATA/orcl/datafile/users.259.946841085
- 5 0 EXAMPLE *** +DATA/orcl/datafile/example.265.946841281
- 6 4096 USERS *** /u01/app/oracle/oradata/orcl/users02.dbf
- 7 0 TBSJFV *** +DATA/orcl/datafile/tbsjfv.267.959112927
- 8 5 TBS1 *** +DATA/orcl/mytbs.dbf
- List of Temporary Files
- =======================
- File Size(MB) Tablespace Maxsize(MB) Tempfile Name
- ---- -------- -------------------- ----------- --------------------
- 1 0 TEMP 32767 +DATA/orcl/tempfile/temp.264.946841279
- RMAN> list copy;
- specification does not match any datafile copy in the repository
- specification does not match any control file copy in the repository
- specification does not match any archived log in the repository
- RMAN> pwd
- 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: pwd
- RMAN-01007: at line 1 column 1 file: standard input
- RMAN> catalog start with '+data/orcl/datafile';
- searching for all files that match the pattern +data/orcl/datafile
- List of Files Unknown to the Database
- =====================================
- File Name: +data/orcl/DATAFILE/SYSTEM.258.959717607
- File Name: +data/orcl/DATAFILE/USERS.259.959717607
- File Name: +data/orcl/DATAFILE/SYSAUX.260.959717607
- File Name: +data/orcl/DATAFILE/EXAMPLE.261.959717609
- File Name: +data/orcl/DATAFILE/TBSJFV.262.959717609
- File Name: +data/orcl/DATAFILE/UNDOTBS1.264.959717683
- Do you really want to catalog the above files (enter YES or NO)? YES
- cataloging files...
- cataloging done
- List of Cataloged Files
- =======================
- File Name: +data/orcl/DATAFILE/SYSTEM.258.959717607
- File Name: +data/orcl/DATAFILE/USERS.259.959717607
- File Name: +data/orcl/DATAFILE/SYSAUX.260.959717607
- File Name: +data/orcl/DATAFILE/EXAMPLE.261.959717609
- File Name: +data/orcl/DATAFILE/TBSJFV.262.959717609
- File Name: +data/orcl/DATAFILE/UNDOTBS1.264.959717683
- RMAN> list copy;
- specification does not match any control file copy in the repository
- specification does not match any archived log in the repository
- List of Datafile Copies
- =======================
- Key File S Completion Time Ckp SCN Ckp Time
- ------- ---- - --------------- ---------- ---------------
- 2 1 A 10-NOV-17 2718724 10-NOV-17
- Name: +DATA/orcl/datafile/system.258.959717607
- 4 2 A 10-NOV-17 2718724 10-NOV-17
- Name: +DATA/orcl/datafile/sysaux.260.959717607
- 7 3 A 10-NOV-17 2718740 10-NOV-17
- Name: +DATA/orcl/datafile/undotbs1.264.959717683
- 3 4 A 10-NOV-17 2718724 10-NOV-17
- Name: +DATA/orcl/datafile/users.259.959717607
- 5 5 A 10-NOV-17 2718724 10-NOV-17
- Name: +DATA/orcl/datafile/example.261.959717609
- 6 7 A 10-NOV-17 2718724 10-NOV-17
- Name: +DATA/orcl/datafile/tbsjfv.262.959717609
- RMAN> switch database to copy ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of switch to copy command at 11/10/2017 20:21:57
- RMAN-06571: datafile 6 does not have recoverable copy
- RMAN> catalog datafilecopy '/u01/app/oracle/oradata/orcl/users02.dbf';
- cataloged datafile copy
- datafile copy file name=/u01/app/oracle/oradata/orcl/users02.dbf RECID=8 STAMP=959718214
- RMAN> switch database to copy ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of switch to copy command at 11/10/2017 20:23:41
- RMAN-06571: datafile 8 does not have recoverable copy
- RMAN> catalog datafilecopy '+DATA/orcl/mytbs.dbf';
- cataloged datafile copy
- datafile copy file name=+DATA/orcl/mytbs.dbf RECID=9 STAMP=959718249
- RMAN> switch database to copy ;
- datafile 1 switched to datafile copy "+DATA/orcl/datafile/system.258.959717607"
- datafile 2 switched to datafile copy "+DATA/orcl/datafile/sysaux.260.959717607"
- datafile 3 switched to datafile copy "+DATA/orcl/datafile/undotbs1.264.959717683"
- datafile 4 switched to datafile copy "+DATA/orcl/datafile/users.259.959717607"
- datafile 5 switched to datafile copy "+DATA/orcl/datafile/example.261.959717609"
- datafile 6 switched to datafile copy "/u01/app/oracle/oradata/orcl/users02.dbf"
- datafile 7 switched to datafile copy "+DATA/orcl/datafile/tbsjfv.262.959717609"
- datafile 8 switched to datafile copy "+DATA/orcl/mytbs.dbf"
- RMAN> recover database;
- Starting recover at 10-NOV-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=131 device type=DISK
- starting media recovery
- archived log for thread 1 with sequence 291 is already on disk as file +FRA/orcl/onlinelog/group_3.259.946841219
- archived log file name=+FRA/orcl/onlinelog/group_3.259.946841219 thread=1 sequence=291
- media recovery complete, elapsed time: 00:00:01
- Finished recover at 10-NOV-17
- RMAN> alter database open ;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of alter db command at 11/10/2017 20:24:31
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- RMAN> alter database open resetlogs;
- database opened
- RMAN>
复制代码
磁盘组备份出来的元数据文件(md_backup的产出物):
- @diskgroup_set = (
- {
- 'ATTRINFO' => {
- 'TEMPLATE.PARAMETERFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.TEMPFILE.REDUNDANCY' => '18',
- 'TEMPLATE.OCRBACKUP.REDUNDANCY' => '18',
- 'TEMPLATE.TEMPFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.PARAMETERFILE.REDUNDANCY' => '18',
- 'SECTOR_SIZE' => '512',
- 'TEMPLATE.DATAGUARDCONFIG.REDUNDANCY' => '18',
- 'ACCESS_CONTROL.UMASK' => '066',
- 'TEMPLATE.ASM_STALE.STRIPE' => '0',
- 'TEMPLATE.ARCHIVELOG.STRIPE' => '0',
- 'TEMPLATE.DATAGUARDCONFIG.PRIMARY_REGION' => '0',
- 'TEMPLATE.OCRBACKUP.STRIPE' => '0',
- 'TEMPLATE.DATAFILE.STRIPE' => '0',
- 'AU_SIZE' => '1048576',
- 'TEMPLATE.ASMPARAMETERFILE.STRIPE' => '0',
- 'TEMPLATE.CHANGETRACKING.PRIMARY_REGION' => '0',
- 'TEMPLATE.CONTROLFILE.REDUNDANCY' => '19',
- 'TEMPLATE.FLASHFILE.STRIPE' => '0',
- 'TEMPLATE.BACKUPSET.PRIMARY_REGION' => '0',
- 'TEMPLATE.ARCHIVELOG.PRIMARY_REGION' => '0',
- 'TEMPLATE.CHANGETRACKING.STRIPE' => '0',
- 'TEMPLATE.ONLINELOG.PRIMARY_REGION' => '0',
- 'TEMPLATE.CHANGETRACKING.REDUNDANCY' => '18',
- 'TEMPLATE.BACKUPSET.STRIPE' => '0',
- 'TEMPLATE.OCRFILE.MIRROR_REGION' => '0',
- 'DISK_REPAIR_TIME' => '3.6h',
- 'TEMPLATE.FLASHBACK.MIRROR_REGION' => '0',
- 'TEMPLATE.AUTOBACKUP.REDUNDANCY' => '18',
- 'TEMPLATE.DUMPSET.REDUNDANCY' => '18',
- 'TEMPLATE.ASM_STALE.REDUNDANCY' => '19',
- 'TEMPLATE.DUMPSET.MIRROR_REGION' => '0',
- 'TEMPLATE.DUMPSET.PRIMARY_REGION' => '0',
- 'TEMPLATE.FLASHBACK.PRIMARY_REGION' => '0',
- 'TEMPLATE.CONTROLFILE.STRIPE' => '1',
- 'TEMPLATE.DATAFILE.REDUNDANCY' => '18',
- 'TEMPLATE.XTRANSPORT.REDUNDANCY' => '18',
- 'TEMPLATE.AUTOBACKUP.PRIMARY_REGION' => '0',
- 'TEMPLATE.CONTROLFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.DATAFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.ASMPARAMETERFILE.REDUNDANCY' => '18',
- 'TEMPLATE.FLASHFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.TEMP1.STRIPE' => '1',
- 'TEMPLATE.ASM_STALE.MIRROR_REGION' => '0',
- 'TEMPLATE.FLASHBACK.REDUNDANCY' => '18',
- 'TEMPLATE.TEMP1.REDUNDANCY' => '19',
- 'TEMPLATE.DATAGUARDCONFIG.STRIPE' => '0',
- 'CELL.SMART_SCAN_CAPABLE' => 'FALSE',
- 'TEMPLATE_VERSION' => '186646528',
- 'TEMPLATE.TEMP1.PRIMARY_REGION' => '0',
- 'TEMPLATE.PARAMETERFILE.STRIPE' => '0',
- 'TEMPLATE.DATAFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.PARAMETERFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.BACKUPSET.MIRROR_REGION' => '0',
- 'TEMPLATE.OCRBACKUP.MIRROR_REGION' => '0',
- 'TEMPLATE.ONLINELOG.REDUNDANCY' => '18',
- 'TEMPLATE.ASMPARAMETERBAKFILE.STRIPE' => '0',
- 'ACCESS_CONTROL.ENABLED' => 'FALSE',
- 'TEMPLATE.TEMP1.MIRROR_REGION' => '0',
- 'TEMPLATE.DATAGUARDCONFIG.MIRROR_REGION' => '0',
- 'TEMPLATE.TEMPFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.FLASHFILE.PRIMARY_REGION' => '0',
- 'COMPATIBLE.RDBMS' => '11.2.0.0.0',
- 'TEMPLATE.ONLINELOG.MIRROR_REGION' => '0',
- 'TEMPLATE.FLASHFILE.REDUNDANCY' => '18',
- 'TEMPLATE.OCRBACKUP.PRIMARY_REGION' => '0',
- 'TEMPLATE.OCRFILE.STRIPE' => '0',
- 'TEMPLATE.AUTOBACKUP.MIRROR_REGION' => '0',
- 'TEMPLATE.ASM_STALE.PRIMARY_REGION' => '0',
- 'TEMPLATE.ASMPARAMETERBAKFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.XTRANSPORT.PRIMARY_REGION' => '0',
- 'TEMPLATE.DUMPSET.STRIPE' => '0',
- 'TEMPLATE.TEMPFILE.STRIPE' => '0',
- 'TEMPLATE.OCRFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.ARCHIVELOG.REDUNDANCY' => '18',
- 'TEMPLATE.ONLINELOG.STRIPE' => '0',
- 'TEMPLATE.OCRFILE.REDUNDANCY' => '18',
- 'TEMPLATE.ARCHIVELOG.MIRROR_REGION' => '0',
- 'TEMPLATE.ASMPARAMETERFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.FLASHBACK.STRIPE' => '0',
- 'TEMPLATE.CONTROLFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.XTRANSPORT.MIRROR_REGION' => '0',
- 'TEMPLATE.BACKUPSET.REDUNDANCY' => '18',
- 'TEMPLATE.ASMPARAMETERBAKFILE.REDUNDANCY' => '18',
- 'TEMPLATE.XTRANSPORT.STRIPE' => '0',
- 'TEMPLATE.CHANGETRACKING.MIRROR_REGION' => '0',
- 'COMPATIBLE.ASM' => '11.2.0.0.0',
- 'TEMPLATE.ASMPARAMETERFILE.PRIMARY_REGION' => '0',
- 'TEMPLATE.ASMPARAMETERBAKFILE.MIRROR_REGION' => '0',
- 'TEMPLATE.AUTOBACKUP.STRIPE' => '0'
- },
- 'DISKSINFO' => {
- 'ASMDISK02' => {
- 'ASMDISK02' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK02',
- 'NAME' => 'ASMDISK02',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK02'
- }
- },
- 'ASMDISK13' => {
- 'ASMDISK13' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK13',
- 'NAME' => 'ASMDISK13',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK13'
- }
- },
- 'ASMDISK01' => {
- 'ASMDISK01' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK01',
- 'NAME' => 'ASMDISK01',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK01'
- }
- },
- 'ASMDISK04' => {
- 'ASMDISK04' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK04',
- 'NAME' => 'ASMDISK04',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK04'
- }
- },
- 'ASMDISK12' => {
- 'ASMDISK12' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK12',
- 'NAME' => 'ASMDISK12',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK12'
- }
- },
- 'ASMDISK03' => {
- 'ASMDISK03' => {
- 'TOTAL_MB' => '2600',
- 'FAILGROUP' => 'ASMDISK03',
- 'NAME' => 'ASMDISK03',
- 'DGNAME' => 'DATA',
- 'PATH' => 'ORCL:ASMDISK03'
- }
- }
- },
- 'DGINFO' => {
- 'DGTORESTORE' => 0,
- 'DGCOMPAT' => '11.2.0.0.0',
- 'DGNAME' => 'DATA',
- 'DGDBCOMPAT' => '11.2.0.0.0',
- 'DGTYPE' => 'NORMAL',
- 'DGAUSZ' => '1048576'
- },
- 'ALIASINFO' => {
- '6' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ORCL/PARAMETERFILE',
- 'REFERENCE_INDEX' => '33554856'
- },
- '1' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 0,
- 'ALIASNAME' => 'ORCL',
- 'REFERENCE_INDEX' => '33554591'
- },
- '4' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ORCL/CONTROLFILE',
- 'REFERENCE_INDEX' => '33554697'
- },
- '0' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 0,
- 'ALIASNAME' => 'ASM',
- 'REFERENCE_INDEX' => '33554485'
- },
- '3' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ORCL/DATAFILE',
- 'REFERENCE_INDEX' => '33554644'
- },
- '7' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ORCL/TEMPFILE',
- 'REFERENCE_INDEX' => '33554803'
- },
- '2' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ASM/ASMPARAMETERFILE',
- 'REFERENCE_INDEX' => '33554538'
- },
- '5' => {
- 'DGNAME' => 'DATA',
- 'LEVEL' => 1,
- 'ALIASNAME' => 'ORCL/ONLINELOG',
- 'REFERENCE_INDEX' => '33554750'
- }
- },
- 'TEMPLATEINFO' => {
- '11' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'ASM_STALE',
- 'REDUNDANCY' => 'HIGH',
- 'SYSTEM' => 'Y'
- },
- '7' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'ASMPARAMETERFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '2' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'ARCHIVELOG',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '17' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'XTRANSPORT',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '1' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'ONLINELOG',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '18' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'AUTOBACKUP',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '0' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'DATAFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '16' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'CHANGETRACKING',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '13' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'OCRFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '6' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'ASMPARAMETERBAKFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '3' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'FLASHFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '9' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'TEMPFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '12' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'OCRBACKUP',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '15' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'FLASHBACK',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '14' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'DATAGUARDCONFIG',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '8' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'PARAMETERFILE',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '4' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'FINE',
- 'TEMPNAME' => 'CONTROLFILE',
- 'REDUNDANCY' => 'HIGH',
- 'SYSTEM' => 'Y'
- },
- '10' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'FINE',
- 'TEMPNAME' => 'TEMP1',
- 'REDUNDANCY' => 'HIGH',
- 'SYSTEM' => 'N'
- },
- '19' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'BACKUPSET',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- },
- '5' => {
- 'DGNAME' => 'DATA',
- 'STRIPE' => 'COARSE',
- 'TEMPNAME' => 'DUMPSET',
- 'REDUNDANCY' => 'MIRROR',
- 'SYSTEM' => 'Y'
- }
- }
- }
- );
复制代码
|
|