Bo's Oracle Station

查看: 2393|回复: 0

课程第70次(2017-11-10星期五)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-11-10 20:28:43 | 显示全部楼层 |阅读模式
md_backup和md_restore:

  1. [root@station90 ~]# ssh station17
  2. The authenticity of host 'station17 (192.168.0.17)' can't be established.
  3. RSA key fingerprint is af:11:b6:40:30:80:bf:7b:89:65:c3:c1:00:d0:88:cc.
  4. Are you sure you want to continue connecting (yes/no)? yes
  5. Warning: Permanently added 'station17,192.168.0.17' (RSA) to the list of known hosts.
  6. Last login: Fri Nov  3 19:57:51 2017 from station90.example.com
  7. [root@station17 ~]# mount.acfs -o all
  8. [root@station17 ~]# crs_stat -t
  9. -bash: crs_stat: command not found
  10. [root@station17 ~]# su - oracle
  11. [oracle@station17 ~]$ crs_stat -t
  12. Name           Type           Target    State     Host        
  13. ------------------------------------------------------------
  14. ora.ACFS.dg    ora....up.type ONLINE    ONLINE    station17   
  15. ora.DATA.dg    ora....up.type ONLINE    ONLINE    station17   
  16. ora.FRA.dg     ora....up.type ONLINE    ONLINE    station17   
  17. ora....ER.lsnr ora....er.type ONLINE    ONLINE    station17   
  18. ora.asm        ora.asm.type   ONLINE    ONLINE    station17   
  19. ora.cssd       ora.cssd.type  ONLINE    ONLINE    station17   
  20. ora.diskmon    ora....on.type ONLINE    ONLINE    station17   
  21. ora.orcl.db    ora....se.type ONLINE    OFFLINE               
  22. [oracle@station17 ~]$ crsctl start res ora.orcl.db
  23. CRS-2672: Attempting to start 'ora.orcl.db' on 'station17'
  24. CRS-2676: Start of 'ora.orcl.db' on 'station17' succeeded
  25. [oracle@station17 ~]$ ls
  26. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  27. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  28. [oracle@station17 ~]$ vim data.txt
  29. [oracle@station17 ~]$ ls
  30. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  31. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  32. [oracle@station17 ~]$ rm -rf data.txt  
  33. [oracle@station17 ~]$ . oraenv
  34. ORACLE_SID = [orcl] ? +ASM
  35. The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
  36. [oracle@station17 ~]$ sqlplus /nolog

  37. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:47:30 2017

  38. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  39. SQL> conn / as sysasm
  40. Connected.
  41. SQL> drop diskgroup data ;
  42. drop diskgroup data
  43. *
  44. ERROR at line 1:
  45. ORA-15039: diskgroup not dropped
  46. ORA-15053: diskgroup "DATA" contains existing files


  47. SQL> drop diskgroup data  including contents;
  48. drop diskgroup data  including contents
  49. *
  50. ERROR at line 1:
  51. ORA-15039: diskgroup not dropped
  52. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  53. SQL> drop diskgroup data  force  including contents;
  54. drop diskgroup data  force  including contents
  55. *
  56. ERROR at line 1:
  57. ORA-15039: diskgroup not dropped
  58. ORA-15230: diskgroup 'DATA' does not require the FORCE option


  59. SQL> drop diskgroup data   including contents  force ;
  60. drop diskgroup data   including contents  force
  61.                                           *
  62. ERROR at line 1:
  63. ORA-00933: SQL command not properly ended


  64. SQL> drop diskgroup data    force ;
  65. drop diskgroup data    force
  66.                             *
  67. ERROR at line 1:
  68. ORA-02000: missing INCLUDING keyword


  69. SQL> drop diskgroup data    force    including contents ;
  70. drop diskgroup data    force        including contents
  71. *
  72. ERROR at line 1:
  73. ORA-15039: diskgroup not dropped
  74. ORA-15230: diskgroup 'DATA' does not require the FORCE option


  75. SQL> drop diskgroup data    force    including contents ;
  76. drop diskgroup data    force        including contents
  77. *
  78. ERROR at line 1:
  79. ORA-15039: diskgroup not dropped
  80. ORA-15230: diskgroup 'DATA' does not require the FORCE option


  81. SQL>  drop diskgroup data  including contents ;
  82. drop diskgroup data  including contents
  83. *
  84. ERROR at line 1:
  85. ORA-15039: diskgroup not dropped
  86. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  87. SQL>  drop diskgroup data  including contents ;
  88. drop diskgroup data  including contents
  89. *
  90. ERROR at line 1:
  91. ORA-15039: diskgroup not dropped
  92. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  93. SQL> drop diskgroup data  force including contents ;
  94. drop diskgroup data  force including contents
  95. *
  96. ERROR at line 1:
  97. ORA-15039: diskgroup not dropped
  98. ORA-15230: diskgroup 'DATA' does not require the FORCE option


  99. SQL> shutdown abort
  100. ASM instance shutdown
  101. SQL> startup nomount
  102. ASM instance started

  103. Total System Global Area  284565504 bytes
  104. Fixed Size                    1336036 bytes
  105. Variable Size                  258063644 bytes
  106. ASM Cache                   25165824 bytes
  107. SQL> drop diskgroup data  force including contents ;
  108. drop diskgroup data  force including contents
  109. *
  110. ERROR at line 1:
  111. ORA-15039: diskgroup not dropped
  112. ORA-15230: diskgroup 'DATA' does not require the FORCE option


  113. SQL> drop diskgroup data  including contents ;
  114. drop diskgroup data  including contents
  115. *
  116. ERROR at line 1:
  117. ORA-15039: diskgroup not dropped
  118. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  119. SQL> shutdown abort
  120. ASM instance shutdown
  121. SQL> startup nomount
  122. ASM instance started

  123. Total System Global Area  284565504 bytes
  124. Fixed Size                    1336036 bytes
  125. Variable Size                  258063644 bytes
  126. ASM Cache                   25165824 bytes
  127. SQL> drop diskgroup data including contents;
  128. drop diskgroup data including contents
  129. *
  130. ERROR at line 1:
  131. ORA-15039: diskgroup not dropped
  132. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  133. SQL> alter diskgroup data dismount;
  134. alter diskgroup data dismount
  135. *
  136. ERROR at line 1:
  137. ORA-15032: not all alterations performed
  138. ORA-15027: active use of diskgroup "DATA" precludes its dismount


  139. SQL> shutdown abort
  140. ASM instance shutdown
  141. SQL> drop diskgroup data;
  142. drop diskgroup data
  143. *
  144. ERROR at line 1:
  145. ORA-01034: ORACLE not available
  146. Process ID: 5917
  147. Session ID: 47 Serial number: 1


  148. SQL> startup nomount
  149. ASM instance started

  150. Total System Global Area  284565504 bytes
  151. Fixed Size                    1336036 bytes
  152. Variable Size                  258063644 bytes
  153. ASM Cache                   25165824 bytes
  154. SQL> shutdown abort
  155. ASM instance shutdown
  156. SQL> exit
  157. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  158. With the Automatic Storage Management option
  159. [oracle@station17 ~]$ exit
  160. logout

  161. [root@station17 ~]# oracleasm-scandisks
  162. -bash: oracleasm-scandisks: command not found
  163. [root@station17 ~]# oracleasm scandisks
  164. Reloading disk partitions: done
  165. Cleaning any stale ASM disks...
  166. Scanning system for ASM disks...
  167. [root@station17 ~]# oracleasm lsdisk
  168. oracleasm: 'lsdisk' is not an oracleasm command
  169. Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
  170.        oracleasm --exec-path
  171.        oracleasm -h
  172.        oracleasm -V

  173. The basic oracleasm commands are:
  174.     configure        Configure the Oracle Linux ASMLib driver
  175.     init             Load and initialize the ASMLib driver
  176.     exit             Stop the ASMLib driver
  177.     scandisks        Scan the system for Oracle ASMLib disks
  178.     status           Display the status of the Oracle ASMLib driver
  179.     listdisks        List known Oracle ASMLib disks
  180.     querydisk        Determine if a disk belongs to Oracle ASMlib
  181.     createdisk       Allocate a device for Oracle ASMLib use
  182.     deletedisk       Return a device to the operating system
  183.     renamedisk       Change the label of an Oracle ASMlib disk
  184.     update-driver    Download the latest ASMLib driver
  185. [root@station17 ~]# oracleasm lsdisks
  186. oracleasm: 'lsdisks' is not an oracleasm command
  187. Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
  188.        oracleasm --exec-path
  189.        oracleasm -h
  190.        oracleasm -V

  191. The basic oracleasm commands are:
  192.     configure        Configure the Oracle Linux ASMLib driver
  193.     init             Load and initialize the ASMLib driver
  194.     exit             Stop the ASMLib driver
  195.     scandisks        Scan the system for Oracle ASMLib disks
  196.     status           Display the status of the Oracle ASMLib driver
  197.     listdisks        List known Oracle ASMLib disks
  198.     querydisk        Determine if a disk belongs to Oracle ASMlib
  199.     createdisk       Allocate a device for Oracle ASMLib use
  200.     deletedisk       Return a device to the operating system
  201.     renamedisk       Change the label of an Oracle ASMlib disk
  202.     update-driver    Download the latest ASMLib driver
  203. [root@station17 ~]# oracleasm listdisks
  204. ASMDISK01
  205. ASMDISK02
  206. ASMDISK03
  207. ASMDISK04
  208. ASMDISK05
  209. ASMDISK06
  210. ASMDISK07
  211. ASMDISK08
  212. ASMDISK09
  213. ASMDISK10
  214. ASMDISK11
  215. ASMDISK12
  216. ASMDISK13
  217. [root@station17 ~]# oracleasm listdisks -v
  218. ASMDISK01
  219. ASMDISK02
  220. ASMDISK03
  221. ASMDISK04
  222. ASMDISK05
  223. ASMDISK06
  224. ASMDISK07
  225. ASMDISK08
  226. ASMDISK09
  227. ASMDISK10
  228. ASMDISK11
  229. ASMDISK12
  230. ASMDISK13
  231. [root@station17 ~]# oracleasm listdisks -l
  232. Usage: oracleasm-listdisks [-l <manager>] [-v]
  233. [root@station17 ~]# cd /dev/oracleasm/disks/
  234. [root@station17 disks]# ls -l
  235. total 0
  236. brw-rw---- 1 oracle dba   7, 0 Nov 10 19:24 ASMDISK01
  237. brw-rw---- 1 oracle dba   7, 1 Nov 10 19:24 ASMDISK02
  238. brw-rw---- 1 oracle dba   7, 2 Nov 10 19:24 ASMDISK03
  239. brw-rw---- 1 oracle dba   7, 3 Nov 10 19:24 ASMDISK04
  240. brw-rw---- 1 oracle dba   7, 4 Nov 10 19:24 ASMDISK05
  241. brw-rw---- 1 oracle dba   7, 5 Nov 10 19:24 ASMDISK06
  242. brw-rw---- 1 oracle dba   7, 6 Nov 10 19:24 ASMDISK07
  243. brw-rw---- 1 oracle dba   7, 7 Nov 10 19:24 ASMDISK08
  244. brw-rw---- 1 oracle dba 253, 3 Nov 10 19:23 ASMDISK09
  245. brw-rw---- 1 oracle dba 253, 5 Nov 10 19:23 ASMDISK10
  246. brw-rw---- 1 oracle dba 253, 6 Nov 10 19:23 ASMDISK11
  247. brw-rw---- 1 oracle dba   7, 8 Nov 10 19:24 ASMDISK12
  248. brw-rw---- 1 oracle dba   7, 9 Nov 10 19:24 ASMDISK13
  249. [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
  250. 1+0 records in
  251. 1+0 records out
  252. 104857600 bytes (105 MB) copied, 0.247874 seconds, 423 MB/s
  253. 1+0 records in
  254. 1+0 records out
  255. 104857600 bytes (105 MB) copied, 0.167989 seconds, 624 MB/s
  256. 1+0 records in
  257. 1+0 records out
  258. 104857600 bytes (105 MB) copied, 7.87958 seconds, 13.3 MB/s
  259. 1+0 records in
  260. 1+0 records out
  261. 104857600 bytes (105 MB) copied, 84.9321 seconds, 1.2 MB/s



  262. 1+0 records in
  263. 1+0 records out
  264. 104857600 bytes (105 MB) copied, 95.069 seconds, 1.1 MB/s
  265. 1+0 records in
  266. 1+0 records out
  267. 104857600 bytes (105 MB) copied, 64.4759 seconds, 1.6 MB/s
  268. [root@station17 disks]#
  269. [root@station17 disks]#
  270. [root@station17 disks]#
  271. [root@station17 disks]#  oracleasm createdisk ASMDISK12 /dev/loop8
  272. Writing disk header: done
  273. Instantiating disk: done
  274. [root@station17 disks]# oracleasm createdisk ASMDISK13 /dev/loop9
  275. Writing disk header: done
  276. Instantiating disk: done
  277. [root@station17 disks]# oracleasm-discover
  278. Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
  279. [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
  280. Discovered disk: ORCL:ASMDISK01 [5324800 blocks (2726297600 bytes), maxio 128]
  281. Discovered disk: ORCL:ASMDISK02 [5324800 blocks (2726297600 bytes), maxio 128]
  282. Discovered disk: ORCL:ASMDISK03 [5324800 blocks (2726297600 bytes), maxio 128]
  283. Discovered disk: ORCL:ASMDISK04 [5324800 blocks (2726297600 bytes), maxio 128]
  284. Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
  285. Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
  286. Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
  287. Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
  288. Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
  289. Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
  290. Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
  291. Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
  292. Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
  293. [root@station17 disks]# su - oracle
  294. [oracle@station17 ~]$ . oraenv
  295. ORACLE_SID = [orcl] ? +ASM
  296. The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
  297. [oracle@station17 ~]$ sqlplus /nolog

  298. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:02:27 2017

  299. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  300. SQL> conn / as sysdba
  301. Connected to an idle instance.
  302. SQL> conn / as sysasm
  303. Connected to an idle instance.
  304. SQL> startup nomount
  305. ORA-00099: warning: no parameter file specified for ASM instance
  306. ASM instance started

  307. Total System Global Area  284565504 bytes
  308. Fixed Size                    1336036 bytes
  309. Variable Size                  258063644 bytes
  310. ASM Cache                   25165824 bytes
  311. SQL> exitr
  312. SP2-0042: unknown command "exitr" - rest of line ignored.
  313. SQL> exit
  314. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  315. With the Automatic Storage Management option
  316. [oracle@station17 ~]$ asmcmd
  317. ASMCMD> lsdg
  318. State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
  319. MOUNTED  EXTERN  N         512   4096  1048576      7788      561                0             561              0             N  ACFS/
  320. MOUNTED  EXTERN  N         512   4096  1048576     10400     8755                0            8755              0             N  FRA/
  321. ASMCMD> help
  322.         asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]

  323.         The environment variables ORACLE_HOME and ORACLE_SID determine the
  324.         instance to which the program connects, and ASMCMD establishes a
  325.         bequeath connection to it, in the same manner as a SQLPLUS / AS
  326.         SYSASM.  The user must be a member of the OSASM group.

  327.         Specifying the -V option prints the asmcmd version number and
  328.         exits immediately.

  329.         Specifying the -v option prints extra information that can help
  330.         advanced users diagnose problems.

  331.         Specify the -a option to choose the type of connection. There are
  332.         only two possibilities: connecting as SYSASM or as SYSDBA.
  333.         The default value if this option is unspecified is SYSASM.

  334.         Specifying the -p option allows the current directory to be displayed
  335.         in the command prompt, like so:

  336.         ASMCMD [+DATA/ORCL/CONTROLFILE] >

  337.         [command] specifies one of the following commands, along with its
  338.         parameters.

  339.         Type "help [command]" to get help on a specific ASMCMD command.

  340.         commands:
  341.         --------

  342.         md_backup, md_restore

  343.         lsattr, setattr

  344.         cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
  345.         mkdir, pwd, rm, rmalias

  346.         chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
  347.         offline, online, rebal, remap, umount

  348.         dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
  349.         spmove, spset, startup

  350.         chtmpl, lstmpl, mktmpl, rmtmpl

  351.         chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
  352.         mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr

  353.         volcreate, voldelete, voldisable, volenable, volinfo
  354.         volresize, volset, volstat

  355. ASMCMD> help md_restore
  356.         md_restore  <backup_file> [--silent]
  357.                    [--full|--nodg|--newdg] [-S <sql_script_file>]
  358.                    [-G '<diskgroup_name>,<diskgroup_name>,...']
  359.                    [-o '<old_diskgroup_name>:<new_diskgroup_name>,...']

  360.         Perform ASM Metadata restore for disk groups.
  361.         Read metadata information from <backup_file>.
  362.         --silent Ignore errors. Normally if md_restore encounters an error, it
  363.                  will stop. Specifying this flag ignores that.
  364.         --full  create disk group and restore metadata.
  365.         --nodg  restore metadata only.
  366.         --newdg create disk group with a different name and restore
  367.                    metadata; -o is required.
  368.         -S Write SQL commands to <sql_script_file> instead of executing them.
  369.         -G Select the disk groups to be restored. If no disk groups defined,
  370.            all of them will be restored.
  371.         -o Rename disk group <old_diskgroup_name> to <new_diskgroup_name>.
  372. ASMCMD> md_restore  /home/oracle/data.txt  --full -G data
  373. Current Diskgroup metadata being restored: DATA
  374. Diskgroup DATA created!
  375. ASMCMD-09360: ADD or ALTER ATTRIBUTE failed
  376. ORA-15032: not all alterations performed
  377. ORA-15242: could not set attribute TEMPLATE.TEMP1.STRIPE
  378. ORA-15240: attribute name TEMPLATE.TEMP1.STRIPE is invalid (DBD ERROR: OCIStmtExecute)
  379. ASMCMD> lsdg
  380. State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
  381. MOUNTED  EXTERN  N         512   4096  1048576      7788      561                0             561              0             N  ACFS/
  382. MOUNTED  NORMAL  N         512   4096  1048576     15600    15435               31            7702              0             N  DATA/
  383. MOUNTED  EXTERN  N         512   4096  1048576     10400     8755                0            8755              0             N  FRA/
  384. ASMCMD> ls
  385. ACFS/
  386. DATA/
  387. FRA/
  388. ASMCMD> cd data
  389. ASMCMD> ls
  390. ASMCMD> ls
  391. ASMCMD> cd ..
  392. ASMCMD> ls
  393. ACFS/
  394. DATA/
  395. FRA/
  396. ASMCMD> cd fra
  397. ASMCMD> ls
  398. ORCL/
  399. ASMCMD> cd orcl        
  400. ASMCMD> ls
  401. BACKUPSET/
  402. CONTROLFILE/
  403. ONLINELOG/
  404. ASMCMD> exit
  405. [oracle@station17 ~]$ sqlplus /nolog

  406. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:07:41 2017

  407. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  408. SQL> conn / as sysasm
  409. Connected.
  410. SQL> alter diskgroup acfs mount;
  411. alter diskgroup acfs mount
  412. *
  413. ERROR at line 1:
  414. ORA-15032: not all alterations performed
  415. ORA-15017: diskgroup "ACFS" cannot be mounted
  416. ORA-15013: diskgroup "ACFS" is already mounted


  417. SQL> exit
  418. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  419. With the Automatic Storage Management option
  420. [oracle@station17 ~]$ asmcmd
  421. ASMCMD> help
  422.         asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]

  423.         The environment variables ORACLE_HOME and ORACLE_SID determine the
  424.         instance to which the program connects, and ASMCMD establishes a
  425.         bequeath connection to it, in the same manner as a SQLPLUS / AS
  426.         SYSASM.  The user must be a member of the OSASM group.

  427.         Specifying the -V option prints the asmcmd version number and
  428.         exits immediately.

  429.         Specifying the -v option prints extra information that can help
  430.         advanced users diagnose problems.

  431.         Specify the -a option to choose the type of connection. There are
  432.         only two possibilities: connecting as SYSASM or as SYSDBA.
  433.         The default value if this option is unspecified is SYSASM.

  434.         Specifying the -p option allows the current directory to be displayed
  435.         in the command prompt, like so:

  436.         ASMCMD [+DATA/ORCL/CONTROLFILE] >

  437.         [command] specifies one of the following commands, along with its
  438.         parameters.

  439.         Type "help [command]" to get help on a specific ASMCMD command.

  440.         commands:
  441.         --------

  442.         md_backup, md_restore

  443.         lsattr, setattr

  444.         cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
  445.         mkdir, pwd, rm, rmalias

  446.         chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
  447.         offline, online, rebal, remap, umount

  448.         dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
  449.         spmove, spset, startup

  450.         chtmpl, lstmpl, mktmpl, rmtmpl

  451.         chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
  452.         mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr

  453.         volcreate, voldelete, voldisable, volenable, volinfo
  454.         volresize, volset, volstat

  455. ASMCMD> help volenable
  456.         volenable [-G <dgname> <volname> | -G <dgname> -a | -a]

  457.         Enable one or more volumes.
  458.           * If the '-a' and '-G dgname' options are specified, all volumes in
  459.             the specified diskgroup will be enabled.
  460.           * If the '-a' option is specified and no diskgroup name is specified
  461.             then all volumes in all diskgroups will be enabled.
  462.          If specified, the diskgroup must be mounted
  463. ASMCMD> volenable -G acfs
  464. usage: volenable [-G <dgname> <volname> | -G <dgname> -a | -a]
  465. help:  help volenable
  466. ASMCMD> volinfo -G acfs
  467. usage: volinfo [-G <dgname> <volname> | -G <dgname> -a | -a] | [--show_diskgroup | --show_volume] <volume_device_name>
  468. help:  help volinfo
  469. ASMCMD> volinfo -G acfs -a
  470. Diskgroup Name: ACFS

  471.          Volume Name: ACFS_DB1
  472.          Volume Device: /dev/asm/acfs_db1-426
  473.          State: DISABLED
  474.          Size (MB): 6144
  475.          Resize Unit (MB): 256
  476.          Redundancy: UNPROT
  477.          Stripe Columns: 4
  478.          Stripe Width (K): 128
  479.          Usage: ACFS
  480.          Mountpath: /u01/app/oracle/acfsmounts/acfs_db1

  481.          Volume Name: DATAVOL
  482.          Volume Device: /dev/asm/datavol-426
  483.          State: DISABLED
  484.          Size (MB): 1024
  485.          Resize Unit (MB): 256
  486.          Redundancy: UNPROT
  487.          Stripe Columns: 4
  488.          Stripe Width (K): 128
  489.          Usage:
  490.          Mountpath:

  491. ASMCMD> help
  492.         asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]

  493.         The environment variables ORACLE_HOME and ORACLE_SID determine the
  494.         instance to which the program connects, and ASMCMD establishes a
  495.         bequeath connection to it, in the same manner as a SQLPLUS / AS
  496.         SYSASM.  The user must be a member of the OSASM group.

  497.         Specifying the -V option prints the asmcmd version number and
  498.         exits immediately.

  499.         Specifying the -v option prints extra information that can help
  500.         advanced users diagnose problems.

  501.         Specify the -a option to choose the type of connection. There are
  502.         only two possibilities: connecting as SYSASM or as SYSDBA.
  503.         The default value if this option is unspecified is SYSASM.

  504.         Specifying the -p option allows the current directory to be displayed
  505.         in the command prompt, like so:

  506.         ASMCMD [+DATA/ORCL/CONTROLFILE] >

  507.         [command] specifies one of the following commands, along with its
  508.         parameters.

  509.         Type "help [command]" to get help on a specific ASMCMD command.

  510.         commands:
  511.         --------

  512.         md_backup, md_restore

  513.         lsattr, setattr

  514.         cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
  515.         mkdir, pwd, rm, rmalias

  516.         chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
  517.         offline, online, rebal, remap, umount

  518.         dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
  519.         spmove, spset, startup

  520.         chtmpl, lstmpl, mktmpl, rmtmpl

  521.         chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
  522.         mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr

  523.         volcreate, voldelete, voldisable, volenable, volinfo
  524.         volresize, volset, volstat

  525. ASMCMD> volenable -G acfs ACFS_DB1
  526. ASMCMD>
复制代码
  1. Disk group metadata to be backed up: DATA
  2. Current alias directory path: ORCL/PARAMETERFILE
  3. Current alias directory path: ORCL/CONTROLFILE
  4. Current alias directory path: ASM/ASMPARAMETERFILE
  5. Current alias directory path: ORCL/DATAFILE
  6. Current alias directory path: ASM
  7. Current alias directory path: ORCL/TEMPFILE
  8. Current alias directory path: ORCL
  9. Current alias directory path: ORCL/ONLINELOG
  10. ASMCMD>  md_backup  /home/oracle/data.txt -G data
  11. Disk group metadata to be backed up: DATA
  12. Current alias directory path: ORCL/PARAMETERFILE
  13. Current alias directory path: ORCL/CONTROLFILE
  14. Current alias directory path: ASM/ASMPARAMETERFILE
  15. Current alias directory path: ORCL/DATAFILE
  16. Current alias directory path: ASM
  17. Current alias directory path: ORCL/TEMPFILE
  18. Current alias directory path: ORCL
  19. Current alias directory path: ORCL/ONLINELOG
  20. ASMCMD> exit
  21. [oracle@station17 ~]$ cd /u01/app/oracle/  
  22. acfsmounts/          cfgtoollogs/         diag/                oradata/             product/            
  23. admin/               checkpoints/         flash_recovery_area/ oradiag_oracle/      
  24. [oracle@station17 ~]$ cd /u01/app/oracle/acfsmounts/acfs_db1/
  25. .ACFS/                      dv/                         lost+found/                 precomp/
  26. apex/                       emcli/                      md/                         racg/
  27. assistants/                 EMStagePatches_orcl/        mesg/                       rdbms/
  28. bin/                        has/                        mgw/                        relnotes/
  29. ccr/                        hs/                         network/                    root.sh
  30. cdata/                      ide/                        nls/                        scheduler/
  31. cfgtoollogs/                install/                    oc4j/                       slax/
  32. clone/                      install.platform            odbc/                       sqldeveloper/
  33. config/                     instantclient/              olap/                       sqlj/
  34. crs/                        inventory/                  ons/                        sqlplus/
  35. csmig/                      j2ee/                       OPatch/                     srvm/
  36. css/                        javavm/                     opmn/                       station17.example.com_orcl/
  37. ctx/                        jdbc/                       oracore/                    sysman/
  38. cv/                         jdev/                       ord/                        timingframework/
  39. dbs/                        jdk/                        oui/                        ucp/
  40. dc_ocm/                     jlib/                       owb/                        uix/
  41. deinstall/                  ldap/                       owm/                        utl/
  42. demo/                       lib/                        perl/                       wwg/
  43. diagnostics/                log/                        plsql/                      xdk/
  44. [oracle@station17 ~]$ cd /u01/app/oracle/acfsmounts/acfs_db1/network/admin/
  45. [oracle@station17 admin]$ vim tnsnames.ora
  46. [oracle@station17 admin]$ rman target /  catalog u90/oracle_4U@rcat

  47. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:10 2017

  48. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  49. RMAN-00571: ===========================================================
  50. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  51. RMAN-00571: ===========================================================
  52. RMAN-00554: initialization of internal recovery manager package failed
  53. RMAN-12001: could not open channel default
  54. RMAN-10008: could not create channel context
  55. RMAN-10002: ORACLE error: ORA-15021: parameter "remote_dependencies_mode" is not valid in asm instance
  56. RMAN-10006: error running SQL statement: alter session set remote_dependencies_mode = signature
  57. [oracle@station17 admin]$ exit
  58. logout

  59. [root@station17 ~]# su - oracle
  60. [oracle@station17 ~]$ . oraenv
  61. ORACLE_SID = [orcl] ?
  62. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  63. [oracle@station17 ~]$ rman target /  catalog u90/oracle_4U@rcat

  64. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:24 2017

  65. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  66. connected to target database: ORCL (DBID=1474621900)
  67. RMAN-00571: ===========================================================
  68. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  69. RMAN-00571: ===========================================================
  70. RMAN-00554: initialization of internal recovery manager package failed
  71. RMAN-04004: error from recovery catalog database: ORA-12541: TNS:no listener
  72. [oracle@station17 ~][        DISCUZ_CODE_10        ]nbsp; rman target /  catalog u90/oracle_4U@rcat

  73. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:43:47 2017

  74. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  75. connected to target database: ORCL (DBID=1474621900)
  76. RMAN-00571: ===========================================================
  77. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  78. RMAN-00571: ===========================================================
  79. RMAN-00554: initialization of internal recovery manager package failed
  80. RMAN-04004: error from recovery catalog database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
  81. [oracle@station17 ~][        DISCUZ_CODE_10        ]nbsp; rman target /  catalog u90/oracle_4U@rcat

  82. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:44:02 2017

  83. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  84. connected to target database: ORCL (DBID=1474621900)
  85. RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days

  86. connected to recovery catalog database

  87. RMAN> create catalogl

  88. RMAN-00571: ===========================================================
  89. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  90. RMAN-00571: ===========================================================
  91. RMAN-00558: error encountered while parsing input commands
  92. RMAN-01009: syntax error: found "identifier": expecting one of: "catalog, global, restore, script, virtual"
  93. RMAN-01008: the bad identifier was: catalogl
  94. RMAN-01007: at line 1 column 8 file: standard input

  95. RMAN> create catalog ;

  96. recovery catalog created

  97. RMAN> register database;

  98. database registered in recovery catalog
  99. starting full resync of recovery catalog
  100. full resync complete

  101. RMAN> backup database;

  102. Starting backup at 10-NOV-17
  103. allocated channel: ORA_DISK_1
  104. channel ORA_DISK_1: SID=8 device type=DISK
  105. channel ORA_DISK_1: starting full datafile backup set
  106. channel ORA_DISK_1: specifying datafile(s) in backup set
  107. RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/10/2017 19:44:40
  108. ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
  109. continuing other job steps, job failed will not be re-run
  110. channel ORA_DISK_1: starting full datafile backup set
  111. channel ORA_DISK_1: specifying datafile(s) in backup set
  112. RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/10/2017 19:44:40
  113. ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
  114. continuing other job steps, job failed will not be re-run
  115. channel ORA_DISK_1: starting full datafile backup set
  116. channel ORA_DISK_1: specifying datafile(s) in backup set
  117. including current control file in backup set
  118. including current SPFILE in backup set
  119. channel ORA_DISK_1: starting piece 1 at 10-NOV-17

  120. user interrupt received
  121. Finished backup at 10-NOV-17
  122. RMAN-00571: ===========================================================
  123. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  124. RMAN-00571: ===========================================================
  125. RMAN-03099: job cancelled at user request

  126. RMAN> exit


  127. Recovery Manager complete.



  128. [oracle@station17 ~]$ sqlplus /nolog

  129. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:44:56 2017

  130. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  131. SQL> conn / as sysdba
  132. Connected.
  133. SQL> shutdown immediate
  134. Database closed.
  135. Database dismounted.
  136. ORACLE instance shut down.
  137. SQL> startup mount
  138. ORACLE instance started.

  139. Total System Global Area  422670336 bytes
  140. Fixed Size                    1336960 bytes
  141. Variable Size                  260049280 bytes
  142. Database Buffers          155189248 bytes
  143. Redo Buffers                    6094848 bytes
  144. Database mounted.
  145. SQL> alter database archivelog ;

  146. Database altered.

  147. SQL> alter database open ;

  148. Database altered.

  149. SQL> exit
  150. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  151. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  152. and Real Application Testing options
  153. [oracle@station17 ~][        DISCUZ_CODE_10        ]nbsp; rman target /  catalog u90/oracle_4U@rcat

  154. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 19:45:51 2017

  155. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  156. connected to target database: ORCL (DBID=1474621900)
  157. RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days

  158. connected to recovery catalog database

  159. RMAN> backup database;

  160. Starting backup at 10-NOV-17
  161. allocated channel: ORA_DISK_1
  162. channel ORA_DISK_1: SID=194 device type=DISK
  163. channel ORA_DISK_1: starting full datafile backup set
  164. channel ORA_DISK_1: specifying datafile(s) in backup set
  165. input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/users02.dbf
  166. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.946841083
  167. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.946841083
  168. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.946841085
  169. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.946841281
  170. input datafile file number=00007 name=+DATA/orcl/datafile/tbsjfv.267.959112927
  171. input datafile file number=00008 name=+DATA/orcl/mytbs.dbf
  172. channel ORA_DISK_1: starting piece 1 at 10-NOV-17
  173. channel ORA_DISK_1: finished piece 1 at 10-NOV-17
  174. piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957 tag=TAG20171110T194556 comment=NONE
  175. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
  176. channel ORA_DISK_1: starting full datafile backup set
  177. channel ORA_DISK_1: specifying datafile(s) in backup set
  178. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.946841085
  179. channel ORA_DISK_1: starting piece 1 at 10-NOV-17
  180. channel ORA_DISK_1: finished piece 1 at 10-NOV-17
  181. piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001 tag=TAG20171110T194556 comment=NONE
  182. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
  183. channel ORA_DISK_1: starting full datafile backup set
  184. channel ORA_DISK_1: specifying datafile(s) in backup set
  185. including current control file in backup set
  186. including current SPFILE in backup set
  187. channel ORA_DISK_1: starting piece 1 at 10-NOV-17
  188. channel ORA_DISK_1: finished piece 1 at 10-NOV-17
  189. piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556 comment=NONE
  190. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
  191. Finished backup at 10-NOV-17

  192. RMAN> exit


  193. Recovery Manager complete.
  194. [oracle@station17 ~]$ sqlplus /nolog

  195. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:49:22 2017

  196. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  197. SQL> conn / as sysdba
  198. Connected.
  199. SQL> shutdown abort
  200. ORACLE instance shut down.
  201. SQL> exit
  202. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  203. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  204. and Real Application Testing options
  205. [oracle@station17 ~]$ . oraenv
  206. ORACLE_SID = [orcl] ? +ASM
  207. The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
  208. [oracle@station17 ~]$ asmcmd
  209. ASMCMD> ls
  210. ACFS/
  211. DATA/
  212. FRA/
  213. ASMCMD> cd data
  214. ASMCMD> ls
  215. ASM/
  216. ORCL/
  217. ASMCMD> cd ASM
  218. ASMCMD> exit
  219. [oracle@station17 ~]$ sqlplus /nolog

  220. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 19:50:46 2017

  221. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  222. SQL> exit   
  223. [oracle@station17 ~]$ asmcmd
  224. ASMCMD> ls
  225. ACFS/
  226. DATA/
  227. FRA/
  228. ASMCMD> ls
  229. ACFS/
  230. DATA/
  231. FRA/
  232. ASMCMD> ls
  233. ORA-03135: connection lost contact
  234. Process ID: 5941
  235. Session ID: 91 Serial number: 11 (DBD ERROR: OCIStmtExecute/Describe)
  236. [oracle@station17 ~]$ asmcmd
  237. ASMCMD> ls
  238. ACFS/
  239. FRA/
  240. ASMCMD> cd FRA/
  241. ASMCMD> ls
  242. ORCL/
  243. ASMCMD> cd ..
  244. ASMCMD> ls
  245. ACFS/
  246. DATA/
  247. FRA/
  248. ASMCMD> ls
  249. ACFS/
  250. DATA/
  251. FRA/
  252. ASMCMD> lsdsk
  253. Path
  254. ORCL:ASMDISK01
  255. ORCL:ASMDISK02
  256. ORCL:ASMDISK03
  257. ORCL:ASMDISK04
  258. ORCL:ASMDISK05
  259. ORCL:ASMDISK06
  260. ORCL:ASMDISK07
  261. ORCL:ASMDISK08
  262. ORCL:ASMDISK09
  263. ORCL:ASMDISK10
  264. ORCL:ASMDISK11
  265. ORCL:ASMDISK12
  266. ORCL:ASMDISK13
  267. ASMCMD> lsdg
  268. State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
  269. MOUNTED  EXTERN  N         512   4096  1048576      7788      561                0             561              0             N  ACFS/
  270. MOUNTED  NORMAL  N         512   4096  1048576     15600     5042             1764            1639              0             N  DATA/
  271. MOUNTED  EXTERN  N         512   4096  1048576     10400     8755                0            8755              0             N  FRA/
  272. ASMCMD> lsdsk -l
  273. Unknown option: l
  274. usage: lsdsk [-kptgMHI] [-G <diskgroup_name>] [--member | --candidate] [pattern][--discovery] [--statistics]
  275. help:  help lsdsk
  276. ASMCMD> lsdsk -G  data
  277. Path
  278. ORCL:ASMDISK01
  279. ORCL:ASMDISK02
  280. ORCL:ASMDISK03
  281. ORCL:ASMDISK04
  282. ORCL:ASMDISK12
  283. ORCL:ASMDISK13
  284. ASMCMD> lsdsk -G data
  285. ORA-03135: connection lost contact
  286. Process ID: 6079
  287. Session ID: 91 Serial number: 7 (DBD ERROR: OCIStmtExecute/Describe)
  288. [oracle@station17 ~]$ exit
  289. logout

  290. [root@station17 ~]# ps aux | grep +ASM
  291. root      6457  0.0  0.0   3920   676 pts/3    S+   19:56   0:00 grep +ASM
  292. [root@station17 ~]# oracleasm-discover
  293. Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
  294. [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
  295. Discovered disk: ORCL:ASMDISK01 [5324800 blocks (2726297600 bytes), maxio 128]
  296. Discovered disk: ORCL:ASMDISK02 [5324800 blocks (2726297600 bytes), maxio 128]
  297. Discovered disk: ORCL:ASMDISK03 [5324800 blocks (2726297600 bytes), maxio 128]
  298. Discovered disk: ORCL:ASMDISK04 [5324800 blocks (2726297600 bytes), maxio 128]
  299. Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
  300. Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
  301. Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
  302. Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
  303. Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
  304. Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
  305. Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
  306. Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
  307. Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
  308. [root@station17 ~]# oracleasm scandisks
  309. Reloading disk partitions: done
  310. Cleaning any stale ASM disks...
  311. Cleaning disk "ASMDISK01"
  312. Cleaning disk "ASMDISK02"
  313. Cleaning disk "ASMDISK03"
  314. Cleaning disk "ASMDISK04"
  315. Scanning system for ASM disks...
  316. [root@station17 ~]# oracleasm-discover
  317. Using ASMLib from /opt/oracle/extapi/32/asm/orcl/1/libasm.so
  318. [ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
  319. Discovered disk: ORCL:ASMDISK05 [5324800 blocks (2726297600 bytes), maxio 128]
  320. Discovered disk: ORCL:ASMDISK06 [5324800 blocks (2726297600 bytes), maxio 128]
  321. Discovered disk: ORCL:ASMDISK07 [5324800 blocks (2726297600 bytes), maxio 128]
  322. Discovered disk: ORCL:ASMDISK08 [5324800 blocks (2726297600 bytes), maxio 128]
  323. Discovered disk: ORCL:ASMDISK09 [5317515 blocks (2722567680 bytes), maxio 128]
  324. Discovered disk: ORCL:ASMDISK10 [5317452 blocks (2722535424 bytes), maxio 128]
  325. Discovered disk: ORCL:ASMDISK11 [5317452 blocks (2722535424 bytes), maxio 128]
  326. Discovered disk: ORCL:ASMDISK12 [5324800 blocks (2726297600 bytes), maxio 128]
  327. Discovered disk: ORCL:ASMDISK13 [5324800 blocks (2726297600 bytes), maxio 128]
  328. [root@station17 ~]# fdisk -l

  329. Disk /dev/vda: 67.6 GB, 67645734912 bytes
  330. 255 heads, 63 sectors/track, 8224 cylinders
  331. Units = cylinders of 16065 * 512 = 8225280 bytes

  332.    Device Boot      Start         End      Blocks   Id  System
  333. /dev/vda1   *           1          13      104391   83  Linux
  334. /dev/vda2              14        6538    52412062+  8e  Linux LVM
  335. /dev/vda3            6539        6869     2658757+  8e  Linux LVM
  336. /dev/vda4            6870        7832     7735297+   5  Extended
  337. /dev/vda5            6870        7200     2658726   8e  Linux LVM
  338. /dev/vda6            7201        7531     2658726   8e  Linux LVM
  339. /dev/vda7            7532        7662     1052226   82  Linux swap / Solaris
  340. [root@station17 ~]# oracleasm createdisk ASMDISK01 /dev/loop0
  341. Writing disk header: done
  342. Instantiating disk: done
  343. [root@station17 ~]# oracleasm createdisk ASMDISK02 /dev/loop1
  344. Writing disk header: done
  345. Instantiating disk: done
  346. [root@station17 ~]# oracleasm createdisk ASMDISK03 /dev/loop2
  347. Writing disk header: done
  348. Instantiating disk: done
  349. [root@station17 ~]# oracleasm createdisk ASMDISK04 /dev/loop3
  350. Writing disk header: done
  351. Instantiating disk: done
  352. [root@station17 ~]# oracleasm createdisk ASMDISK12 /dev/loop8
  353. Writing disk header: done
  354. Instantiating disk: failed
  355. Clearing disk header: done
  356. [root@station17 ~]# oracleasm createdisk ASMDISK12 /dev/loop8
  357. Writing disk header: done
  358. Instantiating disk: failed
  359. Clearing disk header: done
  360. [root@station17 ~]# oracleasm createdisk ASMDISK13 /dev/loop9
  361. Writing disk header: done
  362. Instantiating disk: failed
  363. Clearing disk header: done
  364. [root@station17 ~]# losetup  /dev/loop9
  365. /dev/loop9: [fc01]:6475395 (/u01/loop/device/loop9.img)
  366. [root@station17 ~]# ls -l  /dev/loop9
  367. brw-r----- 1 root disk 7, 9 Nov 10 20:00 /dev/loop9
  368. [root@station17 ~]# ls -l  /dev/loop8
  369. brw-r----- 1 root disk 7, 8 Nov 10 20:00 /dev/loop8
  370. [root@station17 ~]# oracleasm scandisks
  371. Reloading disk partitions: done
  372. Cleaning any stale ASM disks...
  373. Cleaning disk "ASMDISK12"
  374. Cleaning disk "ASMDISK13"
  375. Scanning system for ASM disks...
  376. [root@station17 ~]# oracleasm scandisks
  377. Reloading disk partitions: done
  378. Cleaning any stale ASM disks...
  379. Scanning system for ASM disks...
  380. [root@station17 ~]# su - oracle
  381. [oracle@station17 ~]$ ls
  382. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  383. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  384. [oracle@station17 ~]$ . oraenv
  385. ORACLE_SID = [orcl] ?
  386. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  387. [oracle@station17 ~]$ sqlplus /nolog
  388. rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
  389. [oracle@station17 ~]$ . oraenv
  390. ORACLE_SID = [orcl] ?
  391. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  392. [oracle@station17 ~]$ sqlplus /nolog
  393. rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
  394. [oracle@station17 ~]$ exit
  395. logout

  396. [root@station17 ~]# su - oracle
  397. [oracle@station17 ~]$ . oraenv
  398. ORACLE_SID = [orcl] ?  
  399. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  400. [oracle@station17 ~]$ sqlplus /nolog
  401. rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
  402. [oracle@station17 ~]$ l
  403. -bash: l: command not found
  404. [oracle@station17 ~]$ ls
  405. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  406. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  407. [oracle@station17 ~]$ ls
  408. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  409. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  410. [oracle@station17 ~]$ ls
  411. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  412. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  413. [oracle@station17 ~]$ ls
  414. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  415. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  416. [oracle@station17 ~]$ touch Desktop
  417. touch: setting times of `Desktop': Permission denied
  418. [oracle@station17 ~]$ exit
  419. logout






  420. [root@station17 ~]# touch 1
  421. [root@station17 ~]# ls
  422. 1  anaconda-ks.cfg  Desktop  install.log.syslog
  423. [root@station17 ~]# su - oracle
  424. [oracle@station17 ~]$ . oraenv
  425. ORACLE_SID = [orcl] ? +ASM
  426. The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
  427. [oracle@station17 ~]$ crs_stat -t
  428. Name           Type           Target    State     Host        
  429. ------------------------------------------------------------
  430. ora.ACFS.dg    ora....up.type ONLINE    ONLINE    station17   
  431. ora.DATA.dg    ora....up.type ONLINE    ONLINE    station17   
  432. ora.FRA.dg     ora....up.type ONLINE    ONLINE    station17   
  433. ora....ER.lsnr ora....er.type ONLINE    ONLINE    station17   
  434. ora.asm        ora.asm.type   ONLINE    ONLINE    station17   
  435. ora.cssd       ora.cssd.type  ONLINE    ONLINE    station17   
  436. ora.diskmon    ora....on.type ONLINE    ONLINE    station17   
  437. ora.orcl.db    ora....se.type OFFLINE   OFFLINE               
  438. [oracle@station17 ~]$ . oraenv
  439. ORACLE_SID = [+ASM] ? orcl
  440. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  441. [oracle@station17 ~]$ sqlplus /nolog
  442. rlwrap-0.30: error: Cannot execute sqlplus: Input/output error
  443. [oracle@station17 ~]$ exit
  444. logout





  445. [root@station17 ~]# su - oracle
  446. [oracle@station17 ~]$ unalias sqlplus
  447. [oracle@station17 ~]$ sqlplus /nolog
  448. Error 6 initializing SQL*Plus
  449. SP2-0667: Message file sp1<lang>.msb not found
  450. SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
  451. [oracle@station17 ~]$ . oraenv
  452. ORACLE_SID = [orcl] ?
  453. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  454. [oracle@station17 ~]$ sqlplus /nolog
  455. Error 6 initializing SQL*Plus
  456. SP2-0667: Message file sp1<lang>.msb not found
  457. SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
  458. [oracle@station17 ~]$ /u01/app/oracle/product/1
  459. 10.2.0/ 11.2.0/
  460. [oracle@station17 ~]$ /u01/app/oracle/product/1
  461. 10.2.0/ 11.2.0/
  462. [oracle@station17 ~]$ exit                                
  463. logout











  464. [root@station17 ~]# df -h
  465. Filesystem            Size  Used Avail Use% Mounted on
  466. /dev/mapper/NEW11grhel5-root
  467.                        11G  7.0G  2.9G  71% /
  468. /dev/mapper/NEW11grhel5-u01
  469.                        38G   35G  1.1G  97% /u01
  470. /dev/vda1              99M   26M   69M  28% /boot
  471. tmpfs                1014M  154M  860M  16% /dev/shm
  472. df: `/u01/app/oracle/acfsmounts/acfs_db1': Input/output error
  473. [root@station17 ~]# umount  /u01/app/oracle/acfsmounts/acfs_db1
  474. [root@station17 ~]# mount.acfs -o all
  475. [root@station17 ~]# su -  oracle
  476. [oracle@station17 ~]$ sqlplus /nolog
  477. Error 6 initializing SQL*Plus
  478. SP2-0667: Message file sp1<lang>.msb not found
  479. SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
  480. [oracle@station17 ~]$ . oraenv
  481. ORACLE_SID = [orcl] ?
  482. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  483. [oracle@station17 ~]$ sqlplus /nolog
  484. Error 6 initializing SQL*Plus
  485. SP2-0667: Message file sp1<lang>.msb not found
  486. SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
  487. [oracle@station17 ~]$ df -h                                 
  488. Filesystem            Size  Used Avail Use% Mounted on
  489. /dev/mapper/NEW11grhel5-root
  490.                        11G  7.0G  2.9G  71% /
  491. /dev/mapper/NEW11grhel5-u01
  492.                        38G   35G  1.1G  97% /u01
  493. /dev/vda1              99M   26M   69M  28% /boot
  494. tmpfs                1014M  154M  860M  16% /dev/shm
  495. [oracle@station17 ~]$ exit
  496. logout

  497. [root@station17 ~]# cd /u01/app/oracle/
  498. [root@station17 oracle]# ls
  499. acfsmounts  admin  cfgtoollogs  checkpoints  diag  flash_recovery_area  oradata  oradiag_oracle  product
  500. [root@station17 oracle]# cd acfsmounts/
  501. [root@station17 acfsmounts]# ls
  502. acfs_db1
  503. [root@station17 acfsmounts]# cd acfs_db1/
  504. [root@station17 acfs_db1]# ls
  505. [root@station17 acfs_db1]# ls -l
  506. total 0
  507. [root@station17 acfs_db1]# mount.acfs -o all
  508. [root@station17 acfs_db1]# su - oracle
  509. [oracle@station17 ~]$ sqlplus /nolog

  510. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:10:46 2017

  511. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  512. SQL> conn / as sysdba
  513. Connected to an idle instance.
  514. SQL> startup
  515. ORA-01078: failure in processing system parameters
  516. ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
  517. ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
  518. ORA-15056: additional error message
  519. ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
  520. ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
  521. ORA-15173: entry 'orcl' does not exist in directory '/'
  522. ORA-06512: at line 4
  523. SQL> exit
  524. Disconnected
  525. [oracle@station17 ~]$ ls
  526. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  527. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  528. [oracle@station17 ~]$ ls         
  529. create_t04209_uname.sql  Desktop         select_t04209_uname.sql  solutions.tgz             update_t04209_uname.sql
  530. data.txt                 oradiag_oracle  solutions                update2_t04209_uname.sql
  531. [oracle@station17 ~]$ vim pfile.ora
  532. [oracle@station17 ~]$ sqlplus /nolog

  533. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:11:45 2017

  534. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  535. SQL> conn / as sysdba
  536. Connected to an idle instance.
  537. SQL> startup pfile='/home/oracle/pfile.ora'  
  538. ORACLE instance started.

  539. Total System Global Area  150667264 bytes
  540. Fixed Size                    1335080 bytes
  541. Variable Size                   92274904 bytes
  542. Database Buffers           50331648 bytes
  543. Redo Buffers                    6725632 bytes
  544. ORA-00205: error in identifying control file, check alert log for more info


  545. SQL> exit
  546. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  547. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  548. [oracle@station17 ~]$ rman target  /   catalog u90/oracle_4U@rcat   

  549. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:12:21 2017

  550. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  551. connected to target database: ORCL (not mounted)
  552. RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days

  553. connected to recovery catalog database

  554. RMAN> restore spfile ;

  555. Starting restore at 10-NOV-17
  556. allocated channel: ORA_DISK_1
  557. channel ORA_DISK_1: SID=135 device type=DISK

  558. channel ORA_DISK_1: starting datafile backup set restore
  559. channel ORA_DISK_1: restoring SPFILE
  560. output file name=+DATA/orcl/spfileorcl.ora
  561. channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017
  562. channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556
  563. channel ORA_DISK_1: restored backup piece 1
  564. channel ORA_DISK_1: restore complete, elapsed time: 00:00:06
  565. Finished restore at 10-NOV-17

  566. RMAN> shutdown abort

  567. Oracle instance shut down

  568. RMAN> exit


  569. Recovery Manager complete.
  570. [oracle@station17 ~]$ sqlplus /nolog

  571. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:12:49 2017

  572. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  573. SQL> conn / as sysdba
  574. Connected to an idle instance.
  575. SQL> startup
  576. ORACLE instance started.

  577. Total System Global Area  422670336 bytes
  578. Fixed Size                    1336960 bytes
  579. Variable Size                  260049280 bytes
  580. Database Buffers          155189248 bytes
  581. Redo Buffers                    6094848 bytes
  582. ORA-00205: error in identifying control file, check alert log for more info


  583. SQL> exit
  584. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  585. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  586. [oracle@station17 ~]$ rman target  /   catalog u90/oracle_4U@rcat   

  587. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:13:02 2017

  588. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  589. connected to target database: ORCL (not mounted)
  590. RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days

  591. connected to recovery catalog database

  592. RMAN> restore controlfile;

  593. Starting restore at 10-NOV-17
  594. allocated channel: ORA_DISK_1
  595. channel ORA_DISK_1: SID=131 device type=DISK

  596. channel ORA_DISK_1: starting datafile backup set restore
  597. channel ORA_DISK_1: restoring control file
  598. channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017
  599. channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/ncsnf0_tag20171110t194556_0.263.959716017 tag=TAG20171110T194556
  600. channel ORA_DISK_1: restored backup piece 1
  601. channel ORA_DISK_1: restore complete, elapsed time: 00:00:04
  602. output file name=+DATA/orcl/controlfile/current.257.959717599
  603. output file name=+FRA/orcl/controlfile/current.256.946841165
  604. Finished restore at 10-NOV-17

  605. RMAN> restore database;

  606. Starting restore at 10-NOV-17
  607. using channel ORA_DISK_1

  608. skipping datafile 6; already restored to file /u01/app/oracle/oradata/orcl/users02.dbf
  609. channel ORA_DISK_1: starting datafile backup set restore
  610. channel ORA_DISK_1: specifying datafile(s) to restore from backup set
  611. channel ORA_DISK_1: restoring datafile 00001 to +DATA/orcl/datafile/system.256.946841083
  612. channel ORA_DISK_1: restoring datafile 00002 to +DATA/orcl/datafile/sysaux.257.946841083
  613. channel ORA_DISK_1: restoring datafile 00004 to +DATA/orcl/datafile/users.259.946841085
  614. channel ORA_DISK_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.946841281
  615. channel ORA_DISK_1: restoring datafile 00007 to +DATA/orcl/datafile/tbsjfv.267.959112927
  616. channel ORA_DISK_1: restoring datafile 00008 to +DATA/orcl/mytbs.dbf
  617. channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957
  618. channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.261.959715957 tag=TAG20171110T194556
  619. channel ORA_DISK_1: restored backup piece 1
  620. channel ORA_DISK_1: restore complete, elapsed time: 00:01:16
  621. channel ORA_DISK_1: starting datafile backup set restore
  622. channel ORA_DISK_1: specifying datafile(s) to restore from backup set
  623. channel ORA_DISK_1: restoring datafile 00003 to +DATA/orcl/datafile/undotbs1.258.946841085
  624. channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001
  625. channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2017_11_10/nnndf0_tag20171110t194556_0.262.959716001 tag=TAG20171110T194556
  626. channel ORA_DISK_1: restored backup piece 1
  627. channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
  628. Finished restore at 10-NOV-17

  629. RMAN> recover database;

  630. Starting recover at 10-NOV-17
  631. RMAN-00571: ===========================================================
  632. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  633. RMAN-00571: ===========================================================
  634. RMAN-03002: failure of recover command at 11/10/2017 20:18:13
  635. ORA-00210: cannot open the specified control file

  636. RMAN> alter database mount;

  637. database mounted
  638. released channel: ORA_DISK_1

  639. RMAN> recover database;

  640. Starting recover at 10-NOV-17
  641. Starting implicit crosscheck backup at 10-NOV-17
  642. allocated channel: ORA_DISK_1
  643. channel ORA_DISK_1: SID=131 device type=DISK
  644. Crosschecked 3 objects
  645. Finished implicit crosscheck backup at 10-NOV-17

  646. Starting implicit crosscheck copy at 10-NOV-17
  647. using channel ORA_DISK_1
  648. Finished implicit crosscheck copy at 10-NOV-17

  649. searching for all files in the recovery area
  650. cataloging files...
  651. cataloging done

  652. List of Cataloged Files
  653. =======================
  654. File Name: +fra/ORCL/BACKUPSET/2017_11_10/ncsnf0_TAG20171110T194556_0.263.959716017

  655. using channel ORA_DISK_1
  656. RMAN-00571: ===========================================================
  657. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  658. RMAN-00571: ===========================================================
  659. RMAN-03002: failure of recover command at 11/10/2017 20:18:52
  660. RMAN-06094: datafile 1 must be restored

  661. RMAN> exit


  662. Recovery Manager complete.
  663. [oracle@station17 ~]$ sqlplus /nolog

  664. SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 10 20:19:03 2017

  665. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  666. SQL> conn / as sysdba
  667. Connected.
  668. SQL> select  open_mode from v$database;

  669. OPEN_MODE
  670. --------------------
  671. MOUNTED

  672. SQL> recover database until cancel ;
  673. ORA-00283: recovery session canceled due to errors
  674. ORA-01610: recovery using the BACKUP CONTROLFILE option must be done


  675. SQL> recover database until cancel  using backup controlfile;
  676. ORA-00283: recovery session canceled due to errors
  677. ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.946841083'
  678. ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
  679. ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.946841083'


  680. SQL> exit
  681. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
  682. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  683. and Real Application Testing options
  684. [oracle@station17 ~]$ . oraenv
  685. ORACLE_SID = [orcl] ? +ASM
  686. The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
  687. [oracle@station17 ~]$ asmcmd
  688. ASMCMD> ls
  689. ACFS/
  690. DATA/
  691. FRA/
  692. ASMCMD> cd data
  693. ASMCMD> ls
  694. ORCL/
  695. ASMCMD> cd orcl        
  696. ASMCMD> ls
  697. CONTROLFILE/
  698. DATAFILE/
  699. PARAMETERFILE/
  700. mytbs.dbf
  701. spfileorcl.ora
  702. ASMCMD> cd datafile
  703. ASMCMD> ls
  704. EXAMPLE.261.959717609
  705. SYSAUX.260.959717607
  706. SYSTEM.258.959717607
  707. TBS1.263.959717609
  708. TBSJFV.262.959717609
  709. UNDOTBS1.264.959717683
  710. USERS.259.959717607
  711. ASMCMD> exit
  712. [oracle@station17 ~]$ . oraenv
  713. ORACLE_SID = [+ASM] ? orcl
  714. The Oracle base for ORACLE_HOME=/u01/app/oracle/acfsmounts/acfs_db1 is /u01/app/oracle
  715. [oracle@station17 ~]$ rman target /  

  716. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Nov 10 20:20:44 2017

  717. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  718. connected to target database: ORCL (DBID=1474621900, not open)

  719. RMAN> report schema;

  720. using target database control file instead of recovery catalog
  721. RMAN-06139: WARNING: control file is not current for REPORT SCHEMA
  722. Report of database schema for database with db_unique_name ORCL

  723. List of Permanent Datafiles
  724. ===========================
  725. File Size(MB) Tablespace           RB segs Datafile Name
  726. ---- -------- -------------------- ------- ------------------------
  727. 1    0        SYSTEM               ***     +DATA/orcl/datafile/system.256.946841083
  728. 2    0        SYSAUX               ***     +DATA/orcl/datafile/sysaux.257.946841083
  729. 3    0        UNDOTBS1             ***     +DATA/orcl/datafile/undotbs1.258.946841085
  730. 4    0        USERS                ***     +DATA/orcl/datafile/users.259.946841085
  731. 5    0        EXAMPLE              ***     +DATA/orcl/datafile/example.265.946841281
  732. 6    4096     USERS                ***     /u01/app/oracle/oradata/orcl/users02.dbf
  733. 7    0        TBSJFV               ***     +DATA/orcl/datafile/tbsjfv.267.959112927
  734. 8    5        TBS1                 ***     +DATA/orcl/mytbs.dbf

  735. List of Temporary Files
  736. =======================
  737. File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
  738. ---- -------- -------------------- ----------- --------------------
  739. 1    0        TEMP                 32767       +DATA/orcl/tempfile/temp.264.946841279

  740. RMAN> list copy;

  741. specification does not match any datafile copy in the repository
  742. specification does not match any control file copy in the repository
  743. specification does not match any archived log in the repository

  744. RMAN> pwd

  745. RMAN-00571: ===========================================================
  746. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  747. RMAN-00571: ===========================================================
  748. RMAN-00558: error encountered while parsing input commands
  749. 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, {, "
  750. RMAN-01008: the bad identifier was: pwd
  751. RMAN-01007: at line 1 column 1 file: standard input

  752. RMAN> catalog start with  '+data/orcl/datafile';

  753. searching for all files that match the pattern +data/orcl/datafile

  754. List of Files Unknown to the Database
  755. =====================================
  756. File Name: +data/orcl/DATAFILE/SYSTEM.258.959717607
  757. File Name: +data/orcl/DATAFILE/USERS.259.959717607
  758. File Name: +data/orcl/DATAFILE/SYSAUX.260.959717607
  759. File Name: +data/orcl/DATAFILE/EXAMPLE.261.959717609
  760. File Name: +data/orcl/DATAFILE/TBSJFV.262.959717609
  761. File Name: +data/orcl/DATAFILE/UNDOTBS1.264.959717683

  762. Do you really want to catalog the above files (enter YES or NO)? YES
  763. cataloging files...
  764. cataloging done

  765. List of Cataloged Files
  766. =======================
  767. File Name: +data/orcl/DATAFILE/SYSTEM.258.959717607
  768. File Name: +data/orcl/DATAFILE/USERS.259.959717607
  769. File Name: +data/orcl/DATAFILE/SYSAUX.260.959717607
  770. File Name: +data/orcl/DATAFILE/EXAMPLE.261.959717609
  771. File Name: +data/orcl/DATAFILE/TBSJFV.262.959717609
  772. File Name: +data/orcl/DATAFILE/UNDOTBS1.264.959717683

  773. RMAN> list copy;

  774. specification does not match any control file copy in the repository
  775. specification does not match any archived log in the repository
  776. List of Datafile Copies
  777. =======================

  778. Key     File S Completion Time Ckp SCN    Ckp Time      
  779. ------- ---- - --------------- ---------- ---------------
  780. 2       1    A 10-NOV-17       2718724    10-NOV-17      
  781.         Name: +DATA/orcl/datafile/system.258.959717607

  782. 4       2    A 10-NOV-17       2718724    10-NOV-17      
  783.         Name: +DATA/orcl/datafile/sysaux.260.959717607

  784. 7       3    A 10-NOV-17       2718740    10-NOV-17      
  785.         Name: +DATA/orcl/datafile/undotbs1.264.959717683

  786. 3       4    A 10-NOV-17       2718724    10-NOV-17      
  787.         Name: +DATA/orcl/datafile/users.259.959717607

  788. 5       5    A 10-NOV-17       2718724    10-NOV-17      
  789.         Name: +DATA/orcl/datafile/example.261.959717609

  790. 6       7    A 10-NOV-17       2718724    10-NOV-17      
  791.         Name: +DATA/orcl/datafile/tbsjfv.262.959717609


  792. RMAN> switch database to copy ;

  793. RMAN-00571: ===========================================================
  794. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  795. RMAN-00571: ===========================================================
  796. RMAN-03002: failure of switch to copy command at 11/10/2017 20:21:57
  797. RMAN-06571: datafile 6 does not have recoverable copy

  798. RMAN> catalog  datafilecopy '/u01/app/oracle/oradata/orcl/users02.dbf';

  799. cataloged datafile copy
  800. datafile copy file name=/u01/app/oracle/oradata/orcl/users02.dbf RECID=8 STAMP=959718214

  801. RMAN> switch database to copy ;

  802. RMAN-00571: ===========================================================
  803. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  804. RMAN-00571: ===========================================================
  805. RMAN-03002: failure of switch to copy command at 11/10/2017 20:23:41
  806. RMAN-06571: datafile 8 does not have recoverable copy

  807. RMAN> catalog datafilecopy '+DATA/orcl/mytbs.dbf';

  808. cataloged datafile copy
  809. datafile copy file name=+DATA/orcl/mytbs.dbf RECID=9 STAMP=959718249

  810. RMAN>  switch database to copy ;

  811. datafile 1 switched to datafile copy "+DATA/orcl/datafile/system.258.959717607"
  812. datafile 2 switched to datafile copy "+DATA/orcl/datafile/sysaux.260.959717607"
  813. datafile 3 switched to datafile copy "+DATA/orcl/datafile/undotbs1.264.959717683"
  814. datafile 4 switched to datafile copy "+DATA/orcl/datafile/users.259.959717607"
  815. datafile 5 switched to datafile copy "+DATA/orcl/datafile/example.261.959717609"
  816. datafile 6 switched to datafile copy "/u01/app/oracle/oradata/orcl/users02.dbf"
  817. datafile 7 switched to datafile copy "+DATA/orcl/datafile/tbsjfv.262.959717609"
  818. datafile 8 switched to datafile copy "+DATA/orcl/mytbs.dbf"

  819. RMAN> recover database;

  820. Starting recover at 10-NOV-17
  821. allocated channel: ORA_DISK_1
  822. channel ORA_DISK_1: SID=131 device type=DISK

  823. starting media recovery

  824. archived log for thread 1 with sequence 291 is already on disk as file +FRA/orcl/onlinelog/group_3.259.946841219
  825. archived log file name=+FRA/orcl/onlinelog/group_3.259.946841219 thread=1 sequence=291
  826. media recovery complete, elapsed time: 00:00:01
  827. Finished recover at 10-NOV-17

  828. RMAN> alter database open ;

  829. RMAN-00571: ===========================================================
  830. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  831. RMAN-00571: ===========================================================
  832. RMAN-03002: failure of alter db command at 11/10/2017 20:24:31
  833. ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

  834. RMAN> alter database open  resetlogs;

  835. database opened

  836. RMAN>
复制代码

磁盘组备份出来的元数据文件(md_backup的产出物):

  1. @diskgroup_set = (
  2.                    {
  3.                      'ATTRINFO' => {
  4.                                      'TEMPLATE.PARAMETERFILE.MIRROR_REGION' => '0',
  5.                                      'TEMPLATE.TEMPFILE.REDUNDANCY' => '18',
  6.                                      'TEMPLATE.OCRBACKUP.REDUNDANCY' => '18',
  7.                                      'TEMPLATE.TEMPFILE.MIRROR_REGION' => '0',
  8.                                      'TEMPLATE.PARAMETERFILE.REDUNDANCY' => '18',
  9.                                      'SECTOR_SIZE' => '512',
  10.                                      'TEMPLATE.DATAGUARDCONFIG.REDUNDANCY' => '18',
  11.                                      'ACCESS_CONTROL.UMASK' => '066',
  12.                                      'TEMPLATE.ASM_STALE.STRIPE' => '0',
  13.                                      'TEMPLATE.ARCHIVELOG.STRIPE' => '0',
  14.                                      'TEMPLATE.DATAGUARDCONFIG.PRIMARY_REGION' => '0',
  15.                                      'TEMPLATE.OCRBACKUP.STRIPE' => '0',
  16.                                      'TEMPLATE.DATAFILE.STRIPE' => '0',
  17.                                      'AU_SIZE' => '1048576',
  18.                                      'TEMPLATE.ASMPARAMETERFILE.STRIPE' => '0',
  19.                                      'TEMPLATE.CHANGETRACKING.PRIMARY_REGION' => '0',
  20.                                      'TEMPLATE.CONTROLFILE.REDUNDANCY' => '19',
  21.                                      'TEMPLATE.FLASHFILE.STRIPE' => '0',
  22.                                      'TEMPLATE.BACKUPSET.PRIMARY_REGION' => '0',
  23.                                      'TEMPLATE.ARCHIVELOG.PRIMARY_REGION' => '0',
  24.                                      'TEMPLATE.CHANGETRACKING.STRIPE' => '0',
  25.                                      'TEMPLATE.ONLINELOG.PRIMARY_REGION' => '0',
  26.                                      'TEMPLATE.CHANGETRACKING.REDUNDANCY' => '18',
  27.                                      'TEMPLATE.BACKUPSET.STRIPE' => '0',
  28.                                      'TEMPLATE.OCRFILE.MIRROR_REGION' => '0',
  29.                                      'DISK_REPAIR_TIME' => '3.6h',
  30.                                      'TEMPLATE.FLASHBACK.MIRROR_REGION' => '0',
  31.                                      'TEMPLATE.AUTOBACKUP.REDUNDANCY' => '18',
  32.                                      'TEMPLATE.DUMPSET.REDUNDANCY' => '18',
  33.                                      'TEMPLATE.ASM_STALE.REDUNDANCY' => '19',
  34.                                      'TEMPLATE.DUMPSET.MIRROR_REGION' => '0',
  35.                                      'TEMPLATE.DUMPSET.PRIMARY_REGION' => '0',
  36.                                      'TEMPLATE.FLASHBACK.PRIMARY_REGION' => '0',
  37.                                      'TEMPLATE.CONTROLFILE.STRIPE' => '1',
  38.                                      'TEMPLATE.DATAFILE.REDUNDANCY' => '18',
  39.                                      'TEMPLATE.XTRANSPORT.REDUNDANCY' => '18',
  40.                                      'TEMPLATE.AUTOBACKUP.PRIMARY_REGION' => '0',
  41.                                      'TEMPLATE.CONTROLFILE.MIRROR_REGION' => '0',
  42.                                      'TEMPLATE.DATAFILE.PRIMARY_REGION' => '0',
  43.                                      'TEMPLATE.ASMPARAMETERFILE.REDUNDANCY' => '18',
  44.                                      'TEMPLATE.FLASHFILE.MIRROR_REGION' => '0',
  45.                                      'TEMPLATE.TEMP1.STRIPE' => '1',
  46.                                      'TEMPLATE.ASM_STALE.MIRROR_REGION' => '0',
  47.                                      'TEMPLATE.FLASHBACK.REDUNDANCY' => '18',
  48.                                      'TEMPLATE.TEMP1.REDUNDANCY' => '19',
  49.                                      'TEMPLATE.DATAGUARDCONFIG.STRIPE' => '0',
  50.                                      'CELL.SMART_SCAN_CAPABLE' => 'FALSE',
  51.                                      'TEMPLATE_VERSION' => '186646528',
  52.                                      'TEMPLATE.TEMP1.PRIMARY_REGION' => '0',
  53.                                      'TEMPLATE.PARAMETERFILE.STRIPE' => '0',
  54.                                      'TEMPLATE.DATAFILE.MIRROR_REGION' => '0',
  55.                                      'TEMPLATE.PARAMETERFILE.PRIMARY_REGION' => '0',
  56.                                      'TEMPLATE.BACKUPSET.MIRROR_REGION' => '0',
  57.                                      'TEMPLATE.OCRBACKUP.MIRROR_REGION' => '0',
  58.                                      'TEMPLATE.ONLINELOG.REDUNDANCY' => '18',
  59.                                      'TEMPLATE.ASMPARAMETERBAKFILE.STRIPE' => '0',
  60.                                      'ACCESS_CONTROL.ENABLED' => 'FALSE',
  61.                                      'TEMPLATE.TEMP1.MIRROR_REGION' => '0',
  62.                                      'TEMPLATE.DATAGUARDCONFIG.MIRROR_REGION' => '0',
  63.                                      'TEMPLATE.TEMPFILE.PRIMARY_REGION' => '0',
  64.                                      'TEMPLATE.FLASHFILE.PRIMARY_REGION' => '0',
  65.                                      'COMPATIBLE.RDBMS' => '11.2.0.0.0',
  66.                                      'TEMPLATE.ONLINELOG.MIRROR_REGION' => '0',
  67.                                      'TEMPLATE.FLASHFILE.REDUNDANCY' => '18',
  68.                                      'TEMPLATE.OCRBACKUP.PRIMARY_REGION' => '0',
  69.                                      'TEMPLATE.OCRFILE.STRIPE' => '0',
  70.                                      'TEMPLATE.AUTOBACKUP.MIRROR_REGION' => '0',
  71.                                      'TEMPLATE.ASM_STALE.PRIMARY_REGION' => '0',
  72.                                      'TEMPLATE.ASMPARAMETERBAKFILE.PRIMARY_REGION' => '0',
  73.                                      'TEMPLATE.XTRANSPORT.PRIMARY_REGION' => '0',
  74.                                      'TEMPLATE.DUMPSET.STRIPE' => '0',
  75.                                      'TEMPLATE.TEMPFILE.STRIPE' => '0',
  76.                                      'TEMPLATE.OCRFILE.PRIMARY_REGION' => '0',
  77.                                      'TEMPLATE.ARCHIVELOG.REDUNDANCY' => '18',
  78.                                      'TEMPLATE.ONLINELOG.STRIPE' => '0',
  79.                                      'TEMPLATE.OCRFILE.REDUNDANCY' => '18',
  80.                                      'TEMPLATE.ARCHIVELOG.MIRROR_REGION' => '0',
  81.                                      'TEMPLATE.ASMPARAMETERFILE.MIRROR_REGION' => '0',
  82.                                      'TEMPLATE.FLASHBACK.STRIPE' => '0',
  83.                                      'TEMPLATE.CONTROLFILE.PRIMARY_REGION' => '0',
  84.                                      'TEMPLATE.XTRANSPORT.MIRROR_REGION' => '0',
  85.                                      'TEMPLATE.BACKUPSET.REDUNDANCY' => '18',
  86.                                      'TEMPLATE.ASMPARAMETERBAKFILE.REDUNDANCY' => '18',
  87.                                      'TEMPLATE.XTRANSPORT.STRIPE' => '0',
  88.                                      'TEMPLATE.CHANGETRACKING.MIRROR_REGION' => '0',
  89.                                      'COMPATIBLE.ASM' => '11.2.0.0.0',
  90.                                      'TEMPLATE.ASMPARAMETERFILE.PRIMARY_REGION' => '0',
  91.                                      'TEMPLATE.ASMPARAMETERBAKFILE.MIRROR_REGION' => '0',
  92.                                      'TEMPLATE.AUTOBACKUP.STRIPE' => '0'
  93.                                    },
  94.                      'DISKSINFO' => {
  95.                                       'ASMDISK02' => {
  96.                                                      'ASMDISK02' => {
  97.                                                                     'TOTAL_MB' => '2600',
  98.                                                                     'FAILGROUP' => 'ASMDISK02',
  99.                                                                     'NAME' => 'ASMDISK02',
  100.                                                                     'DGNAME' => 'DATA',
  101.                                                                     'PATH' => 'ORCL:ASMDISK02'
  102.                                                                   }
  103.                                                    },
  104.                                       'ASMDISK13' => {
  105.                                                      'ASMDISK13' => {
  106.                                                                     'TOTAL_MB' => '2600',
  107.                                                                     'FAILGROUP' => 'ASMDISK13',
  108.                                                                     'NAME' => 'ASMDISK13',
  109.                                                                     'DGNAME' => 'DATA',
  110.                                                                     'PATH' => 'ORCL:ASMDISK13'
  111.                                                                   }
  112.                                                    },
  113.                                       'ASMDISK01' => {
  114.                                                      'ASMDISK01' => {
  115.                                                                     'TOTAL_MB' => '2600',
  116.                                                                     'FAILGROUP' => 'ASMDISK01',
  117.                                                                     'NAME' => 'ASMDISK01',
  118.                                                                     'DGNAME' => 'DATA',
  119.                                                                     'PATH' => 'ORCL:ASMDISK01'
  120.                                                                   }
  121.                                                    },
  122.                                       'ASMDISK04' => {
  123.                                                      'ASMDISK04' => {
  124.                                                                     'TOTAL_MB' => '2600',
  125.                                                                     'FAILGROUP' => 'ASMDISK04',
  126.                                                                     'NAME' => 'ASMDISK04',
  127.                                                                     'DGNAME' => 'DATA',
  128.                                                                     'PATH' => 'ORCL:ASMDISK04'
  129.                                                                   }
  130.                                                    },
  131.                                       'ASMDISK12' => {
  132.                                                      'ASMDISK12' => {
  133.                                                                     'TOTAL_MB' => '2600',
  134.                                                                     'FAILGROUP' => 'ASMDISK12',
  135.                                                                     'NAME' => 'ASMDISK12',
  136.                                                                     'DGNAME' => 'DATA',
  137.                                                                     'PATH' => 'ORCL:ASMDISK12'
  138.                                                                   }
  139.                                                    },
  140.                                       'ASMDISK03' => {
  141.                                                      'ASMDISK03' => {
  142.                                                                     'TOTAL_MB' => '2600',
  143.                                                                     'FAILGROUP' => 'ASMDISK03',
  144.                                                                     'NAME' => 'ASMDISK03',
  145.                                                                     'DGNAME' => 'DATA',
  146.                                                                     'PATH' => 'ORCL:ASMDISK03'
  147.                                                                   }
  148.                                                    }
  149.                                     },
  150.                      'DGINFO' => {
  151.                                    'DGTORESTORE' => 0,
  152.                                    'DGCOMPAT' => '11.2.0.0.0',
  153.                                    'DGNAME' => 'DATA',
  154.                                    'DGDBCOMPAT' => '11.2.0.0.0',
  155.                                    'DGTYPE' => 'NORMAL',
  156.                                    'DGAUSZ' => '1048576'
  157.                                  },
  158.                      'ALIASINFO' => {
  159.                                       '6' => {
  160.                                                'DGNAME' => 'DATA',
  161.                                                'LEVEL' => 1,
  162.                                                'ALIASNAME' => 'ORCL/PARAMETERFILE',
  163.                                                'REFERENCE_INDEX' => '33554856'
  164.                                              },
  165.                                       '1' => {
  166.                                                'DGNAME' => 'DATA',
  167.                                                'LEVEL' => 0,
  168.                                                'ALIASNAME' => 'ORCL',
  169.                                                'REFERENCE_INDEX' => '33554591'
  170.                                              },
  171.                                       '4' => {
  172.                                                'DGNAME' => 'DATA',
  173.                                                'LEVEL' => 1,
  174.                                                'ALIASNAME' => 'ORCL/CONTROLFILE',
  175.                                                'REFERENCE_INDEX' => '33554697'
  176.                                              },
  177.                                       '0' => {
  178.                                                'DGNAME' => 'DATA',
  179.                                                'LEVEL' => 0,
  180.                                                'ALIASNAME' => 'ASM',
  181.                                                'REFERENCE_INDEX' => '33554485'
  182.                                              },
  183.                                       '3' => {
  184.                                                'DGNAME' => 'DATA',
  185.                                                'LEVEL' => 1,
  186.                                                'ALIASNAME' => 'ORCL/DATAFILE',
  187.                                                'REFERENCE_INDEX' => '33554644'
  188.                                              },
  189.                                       '7' => {
  190.                                                'DGNAME' => 'DATA',
  191.                                                'LEVEL' => 1,
  192.                                                'ALIASNAME' => 'ORCL/TEMPFILE',
  193.                                                'REFERENCE_INDEX' => '33554803'
  194.                                              },
  195.                                       '2' => {
  196.                                                'DGNAME' => 'DATA',
  197.                                                'LEVEL' => 1,
  198.                                                'ALIASNAME' => 'ASM/ASMPARAMETERFILE',
  199.                                                'REFERENCE_INDEX' => '33554538'
  200.                                              },
  201.                                       '5' => {
  202.                                                'DGNAME' => 'DATA',
  203.                                                'LEVEL' => 1,
  204.                                                'ALIASNAME' => 'ORCL/ONLINELOG',
  205.                                                'REFERENCE_INDEX' => '33554750'
  206.                                              }
  207.                                     },
  208.                      'TEMPLATEINFO' => {
  209.                                          '11' => {
  210.                                                    'DGNAME' => 'DATA',
  211.                                                    'STRIPE' => 'COARSE',
  212.                                                    'TEMPNAME' => 'ASM_STALE',
  213.                                                    'REDUNDANCY' => 'HIGH',
  214.                                                    'SYSTEM' => 'Y'
  215.                                                  },
  216.                                          '7' => {
  217.                                                   'DGNAME' => 'DATA',
  218.                                                   'STRIPE' => 'COARSE',
  219.                                                   'TEMPNAME' => 'ASMPARAMETERFILE',
  220.                                                   'REDUNDANCY' => 'MIRROR',
  221.                                                   'SYSTEM' => 'Y'
  222.                                                 },
  223.                                          '2' => {
  224.                                                   'DGNAME' => 'DATA',
  225.                                                   'STRIPE' => 'COARSE',
  226.                                                   'TEMPNAME' => 'ARCHIVELOG',
  227.                                                   'REDUNDANCY' => 'MIRROR',
  228.                                                   'SYSTEM' => 'Y'
  229.                                                 },
  230.                                          '17' => {
  231.                                                    'DGNAME' => 'DATA',
  232.                                                    'STRIPE' => 'COARSE',
  233.                                                    'TEMPNAME' => 'XTRANSPORT',
  234.                                                    'REDUNDANCY' => 'MIRROR',
  235.                                                    'SYSTEM' => 'Y'
  236.                                                  },
  237.                                          '1' => {
  238.                                                   'DGNAME' => 'DATA',
  239.                                                   'STRIPE' => 'COARSE',
  240.                                                   'TEMPNAME' => 'ONLINELOG',
  241.                                                   'REDUNDANCY' => 'MIRROR',
  242.                                                   'SYSTEM' => 'Y'
  243.                                                 },
  244.                                          '18' => {
  245.                                                    'DGNAME' => 'DATA',
  246.                                                    'STRIPE' => 'COARSE',
  247.                                                    'TEMPNAME' => 'AUTOBACKUP',
  248.                                                    'REDUNDANCY' => 'MIRROR',
  249.                                                    'SYSTEM' => 'Y'
  250.                                                  },
  251.                                          '0' => {
  252.                                                   'DGNAME' => 'DATA',
  253.                                                   'STRIPE' => 'COARSE',
  254.                                                   'TEMPNAME' => 'DATAFILE',
  255.                                                   'REDUNDANCY' => 'MIRROR',
  256.                                                   'SYSTEM' => 'Y'
  257.                                                 },
  258.                                          '16' => {
  259.                                                    'DGNAME' => 'DATA',
  260.                                                    'STRIPE' => 'COARSE',
  261.                                                    'TEMPNAME' => 'CHANGETRACKING',
  262.                                                    'REDUNDANCY' => 'MIRROR',
  263.                                                    'SYSTEM' => 'Y'
  264.                                                  },
  265.                                          '13' => {
  266.                                                    'DGNAME' => 'DATA',
  267.                                                    'STRIPE' => 'COARSE',
  268.                                                    'TEMPNAME' => 'OCRFILE',
  269.                                                    'REDUNDANCY' => 'MIRROR',
  270.                                                    'SYSTEM' => 'Y'
  271.                                                  },
  272.                                          '6' => {
  273.                                                   'DGNAME' => 'DATA',
  274.                                                   'STRIPE' => 'COARSE',
  275.                                                   'TEMPNAME' => 'ASMPARAMETERBAKFILE',
  276.                                                   'REDUNDANCY' => 'MIRROR',
  277.                                                   'SYSTEM' => 'Y'
  278.                                                 },
  279.                                          '3' => {
  280.                                                   'DGNAME' => 'DATA',
  281.                                                   'STRIPE' => 'COARSE',
  282.                                                   'TEMPNAME' => 'FLASHFILE',
  283.                                                   'REDUNDANCY' => 'MIRROR',
  284.                                                   'SYSTEM' => 'Y'
  285.                                                 },
  286.                                          '9' => {
  287.                                                   'DGNAME' => 'DATA',
  288.                                                   'STRIPE' => 'COARSE',
  289.                                                   'TEMPNAME' => 'TEMPFILE',
  290.                                                   'REDUNDANCY' => 'MIRROR',
  291.                                                   'SYSTEM' => 'Y'
  292.                                                 },
  293.                                          '12' => {
  294.                                                    'DGNAME' => 'DATA',
  295.                                                    'STRIPE' => 'COARSE',
  296.                                                    'TEMPNAME' => 'OCRBACKUP',
  297.                                                    'REDUNDANCY' => 'MIRROR',
  298.                                                    'SYSTEM' => 'Y'
  299.                                                  },
  300.                                          '15' => {
  301.                                                    'DGNAME' => 'DATA',
  302.                                                    'STRIPE' => 'COARSE',
  303.                                                    'TEMPNAME' => 'FLASHBACK',
  304.                                                    'REDUNDANCY' => 'MIRROR',
  305.                                                    'SYSTEM' => 'Y'
  306.                                                  },
  307.                                          '14' => {
  308.                                                    'DGNAME' => 'DATA',
  309.                                                    'STRIPE' => 'COARSE',
  310.                                                    'TEMPNAME' => 'DATAGUARDCONFIG',
  311.                                                    'REDUNDANCY' => 'MIRROR',
  312.                                                    'SYSTEM' => 'Y'
  313.                                                  },
  314.                                          '8' => {
  315.                                                   'DGNAME' => 'DATA',
  316.                                                   'STRIPE' => 'COARSE',
  317.                                                   'TEMPNAME' => 'PARAMETERFILE',
  318.                                                   'REDUNDANCY' => 'MIRROR',
  319.                                                   'SYSTEM' => 'Y'
  320.                                                 },
  321.                                          '4' => {
  322.                                                   'DGNAME' => 'DATA',
  323.                                                   'STRIPE' => 'FINE',
  324.                                                   'TEMPNAME' => 'CONTROLFILE',
  325.                                                   'REDUNDANCY' => 'HIGH',
  326.                                                   'SYSTEM' => 'Y'
  327.                                                 },
  328.                                          '10' => {
  329.                                                    'DGNAME' => 'DATA',
  330.                                                    'STRIPE' => 'FINE',
  331.                                                    'TEMPNAME' => 'TEMP1',
  332.                                                    'REDUNDANCY' => 'HIGH',
  333.                                                    'SYSTEM' => 'N'
  334.                                                  },
  335.                                          '19' => {
  336.                                                    'DGNAME' => 'DATA',
  337.                                                    'STRIPE' => 'COARSE',
  338.                                                    'TEMPNAME' => 'BACKUPSET',
  339.                                                    'REDUNDANCY' => 'MIRROR',
  340.                                                    'SYSTEM' => 'Y'
  341.                                                  },
  342.                                          '5' => {
  343.                                                   'DGNAME' => 'DATA',
  344.                                                   'STRIPE' => 'COARSE',
  345.                                                   'TEMPNAME' => 'DUMPSET',
  346.                                                   'REDUNDANCY' => 'MIRROR',
  347.                                                   'SYSTEM' => 'Y'
  348.                                                 }
  349.                                        }
  350.                    }
  351.                  );
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 17:18 , Processed in 0.095594 second(s), 24 queries .

快速回复 返回顶部 返回列表