|
上完1Z0-052第14章(Oracle数据库的热备份,表空间级的检查点)
(052共19章,053共21章,063多租户共9章,49-8)
2016-11-27.sql:
rcat换控制文件:
- [oracle@station90 oracle]$ . oraenv
- ORACLE_SID = [orcl] ? rcat
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 oracle]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:41:27 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> show parameter db_recovery
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- db_recovery_file_dest string /u01/app/oracle/flash_recovery
- _area
- db_recovery_file_dest_size big integer 3882M
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 oracle]$ cd /u01/app/oracle/flash_recovery_area/
- [oracle@station90 flash_recovery_area]$ LS
- -bash: LS: command not found
- [oracle@station90 flash_recovery_area]$ ls
- rcat RCAT
- [oracle@station90 flash_recovery_area]$ cd RCAT
- [oracle@station90 RCAT]$ ls
- onlinelog
- [oracle@station90 RCAT]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:47:38 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> show parameter db_create_file_dest
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- db_create_file_dest string /u01/app/oracle/oradata
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 RCAT]$ cd /u01/app/oracle/oradata/
- [oracle@station90 oradata]$ ls
- rcat RCAT
- [oracle@station90 oradata]$ cd RCAT
- [oracle@station90 RCAT]$ ls
- datafile
- [oracle@station90 RCAT]$ cd datafile/
- [oracle@station90 datafile]$ ls
- o1_mf_botangtb_d2y1ddb3_.dbf o1_mf_botangtb_d2y1dgbs_.dbf
- [oracle@station90 datafile]$ cd
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:50:20 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> create tablespace tbs1 ;
- Tablespace created.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ ls
- afiedt.buf oradiag_oracle reset_JSON shrink.sh 公共的
- apex oraInventory reset_rest shrink_undo.sql 模板
- app ords reset_soup sqldeveloper 视频
- copytape-root.sh ords.sh reset_soup_apex_only s_rest.zip 图片
- create_t04209_uname.sql osb.txt reset_sqldev sysaux01.dbf 文档
- derby.log pdb_open_says_me.sql reset_xmldb tnsnames.ora 下载
- mail p.sql restclient-ui-3.1-jar-with-dependencies.jar ttio.rcv 音乐
- one_time_setup.sql rac_tns revertape-root.sh update2_t04209_uname.sql 桌面
- oracle reset_apex select_t04209_uname.sql update_t04209_uname.sql
- [oracle@station90 ~]$ cd /u01/app/oracle/oradata/
- [oracle@station90 oradata]$ ls
- rcat RCAT
- [oracle@station90 oradata]$ cd RCAT/
- [oracle@station90 RCAT]$ ls
- datafile
- [oracle@station90 RCAT]$ cd datafile/
- [oracle@station90 datafile]$ ls
- o1_mf_botangtb_d2y1ddb3_.dbf o1_mf_botangtb_d2y1dgbs_.dbf o1_mf_tbs1_d3o7ln9p_.dbf
- [oracle@station90 datafile]$ du -sh o1_mf_tbs1_d3o7ln9p_.dbf
- 101M o1_mf_tbs1_d3o7ln9p_.dbf
- [oracle@station90 datafile]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:51:41 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> show parameter db_create
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- db_create_file_dest string /u01/app/oracle/oradata
- db_create_online_log_dest_1 string
- db_create_online_log_dest_2 string
- db_create_online_log_dest_3 string
- db_create_online_log_dest_4 string
- db_create_online_log_dest_5 string
- SQL> alter system set db_create_file_dest='';
- System altered.
- SQL> create tablespace tbs2 ;
- create tablespace tbs2
- *
- ERROR at line 1:
- ORA-02199: missing DATAFILE/TEMPFILE clause
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 datafile]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Sun Nov 27 16:52:23 2016
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: RCAT (DBID=590260915)
- RMAN> backup tablespace sysaux ;
- Starting backup at 27-NOV-16
- using target database control file instead of recovery catalog
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=623 device type=DISK
- channel ORA_DISK_1: starting full datafile backup set
- channel ORA_DISK_1: specifying datafile(s) in backup set
- input datafile file number=00002 name=/u01/app/oracle/oradata/rcat/sysaux01.dbf
- channel ORA_DISK_1: starting piece 1 at 27-NOV-16
- channel ORA_DISK_1: finished piece 1 at 27-NOV-16
- piece handle=/u01/app/oracle/flash_recovery_area/RCAT/backupset/2016_11_27/o1_mf_nnndf_TAG20161127T165231_d3o7phr4_.bkp tag=TAG20161127T165231 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
- Finished backup at 27-NOV-16
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 datafile]$ cd /u01/app/
- [oracle@station90 app]$ ls
- oracle oraInventory
- [oracle@station90 app]$ cd oracle/
- [oracle@station90 oracle]$ ls
- admin cfgtoollogs diag man_recovery_area oradata redo01c.log temp02.dbf
- botangdir01 checkpoints flash_recovery_area man_recovery_area.11g product redo02c.log wallet
- [oracle@station90 oracle]$ cd flash_recovery_area/
- [oracle@station90 flash_recovery_area]$ ls
- rcat RCAT
- [oracle@station90 flash_recovery_area]$ cd RCAT/
- [oracle@station90 RCAT]$ ls
- backupset onlinelog
- [oracle@station90 RCAT]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:53:15 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> alter system switch logfile;
- System altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 RCAT]$ ls
- archivelog backupset onlinelog
- [oracle@station90 RCAT]$ cd archivelog
- [oracle@station90 archivelog]$ ls
- 2016_11_27
- [oracle@station90 archivelog]$ cd 2016_11_27
- [oracle@station90 2016_11_27]$ ls
- o1_mf_1_18_d3o7r6cn_.arc
- [oracle@station90 2016_11_27]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:55:15 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> set linesize 1000
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------ ------------ ------------------
- 1 1 19 52428800 512 1 NO CURRENT 1391912 27-NOV-16 2.8147E+14
- 2 1 17 52428800 512 1 YES INACTIVE 1365146 26-NOV-16 1379922 27-NOV-16
- 3 1 18 52428800 512 1 YES ACTIVE 1379922 27-NOV-16 1391912 27-NOV-16
- SQL> select member from v$logfile;
- MEMBER
- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- /u01/app/oracle/oradata/rcat/redo03.log
- /u01/app/oracle/oradata/rcat/redo02.log
- /u01/app/oracle/oradata/rcat/redo01.log
- SQL> alter database add logfile group 4 size 52428800;
- Database altered.
- SQL> select member from v$logfile;
- MEMBER
- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- /u01/app/oracle/oradata/rcat/redo03.log
- /u01/app/oracle/oradata/rcat/redo02.log
- /u01/app/oracle/oradata/rcat/redo01.log
- /u01/app/oracle/flash_recovery_area/RCAT/onlinelog/o1_mf_4_d3o7xbf6_.log
- SQL> show parameter db_create
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- db_create_file_dest string
- db_create_online_log_dest_1 string
- db_create_online_log_dest_2 string
- db_create_online_log_dest_3 string
- db_create_online_log_dest_4 string
- db_create_online_log_dest_5 string
- SQL> alter database add logfile group 5 ('/u01/app/oracle/redo05a.log','/u01/app/oracle/redo05b.log') size 52428800;
- Database altered.
- SQL> select member from v$logfile;
- MEMBER
- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- /u01/app/oracle/oradata/rcat/redo03.log
- /u01/app/oracle/oradata/rcat/redo02.log
- /u01/app/oracle/oradata/rcat/redo01.log
- /u01/app/oracle/flash_recovery_area/RCAT/onlinelog/o1_mf_4_d3o7xbf6_.log
- /u01/app/oracle/redo05a.log
- /u01/app/oracle/redo05b.log
- 6 rows selected.
- SQL> show parameter control
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- control_file_record_keep_time integer 7
- control_files string /u01/app/oracle/oradata/rcat/c
- ontrol01.ctl, /u01/app/oracle/
- flash_recovery_area/rcat/contr
- ol02.ctl
- control_management_pack_access string DIAGNOSTIC+TUNING
- SQL> alter system set control_files='/u01/app/oracle/oradata/rcat/control01.ctl','/u01/app/oracle/flash_recovery_area/rcat/control02.ctl','/u01/app/oracle/control03.ctl' ;
- alter system set control_files='/u01/app/oracle/oradata/rcat/control01.ctl','/u01/app/oracle/flash_recovery_area/rcat/control02.ctl','/u01/app/oracle/control03.ctl'
- *
- ERROR at line 1:
- ORA-02095: specified initialization parameter cannot be modified
- SQL> alter system set control_files='/u01/app/oracle/oradata/rcat/control01.ctl','/u01/app/oracle/flash_recovery_area/rcat/control02.ctl','/u01/app/oracle/control03.ctl' scope=spfile;
- System altered.
- SQL> shutdown abort
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 2016_11_27]$ cp /u01/app/oracle/oradata/rcat/control01.ctl /u01/app/oracle/control03.ctl
- [oracle@station90 2016_11_27]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 17:04:02 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 1603411968 bytes
- Fixed Size 2213776 bytes
- Variable Size 503318640 bytes
- Database Buffers 1090519040 bytes
- Redo Buffers 7360512 bytes
- Database mounted.
- Database opened.
- SQL> show paramter control
- SP2-0158: unknown SHOW option "paramter"
- SP2-0158: unknown SHOW option "control"
- SQL> show parameter control
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- control_file_record_keep_time integer 7
- control_files string /u01/app/oracle/oradata/rcat/c
- ontrol01.ctl, /u01/app/oracle/
- flash_recovery_area/rcat/contr
- ol02.ctl, /u01/app/oracle/cont
- rol03.ctl
- control_management_pack_access string DIAGNOSTIC+TUNING
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 2016_11_27]$ rm /u01/app/oracle/control03.ctl
- [oracle@station90 2016_11_27]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 17:04:59 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 1603411968 bytes
- Fixed Size 2213776 bytes
- Variable Size 503318640 bytes
- Database Buffers 1090519040 bytes
- Redo Buffers 7360512 bytes
- ORA-00205: error in identifying control file, check alert log for more info
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 2016_11_27]$ cp /u01/app/oracle/oradata/rcat/control01.ctl /u01/app/oracle/control03.ctl
- [oracle@station90 2016_11_27]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 17:05:54 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> alter database mount;
- Database altered.
- SQL> alter database open ;
- Database altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 2016_11_27]$ cd /u01/app/oracle/
- [oracle@station90 oracle]$ ls
- admin cfgtoollogs control_orcl.ctl man_recovery_area product redo04a.log redo05b.log
- archived_log checkpoints diag man_recovery_area.11g redo01c.log redo04b.log temp02.dbf
- botangdir01 control03.ctl flash_recovery_area oradata redo02c.log redo05a.log wallet
- [oracle@station90 oracle]$ cd archived_log/
- [oracle@station90 archived_log]$ ls
- 1_149_816169635.dbf
- [oracle@station90 archived_log]$
复制代码
ASM命令:
- [root@station90 桌面]# su - oracle
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 27 16:43:27 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> desc v$asm_diskgroup
- Name Null? Type
- ----------------------------------------- -------- ----------------------------
- GROUP_NUMBER NUMBER
- NAME VARCHAR2(30)
- SECTOR_SIZE NUMBER
- BLOCK_SIZE NUMBER
- ALLOCATION_UNIT_SIZE NUMBER
- STATE VARCHAR2(11)
- TYPE VARCHAR2(6)
- TOTAL_MB NUMBER
- FREE_MB NUMBER
- HOT_USED_MB NUMBER
- COLD_USED_MB NUMBER
- REQUIRED_MIRROR_FREE_MB NUMBER
- USABLE_FILE_MB NUMBER
- OFFLINE_DISKS NUMBER
- COMPATIBILITY VARCHAR2(60)
- DATABASE_COMPATIBILITY VARCHAR2(60)
- VOTING_FILES VARCHAR2(1)
- SQL> select USABLE_FILE_MB , GROUP_NUMBER , NAME from v$asm_diskgroup;
- USABLE_FILE_MB GROUP_NUMBER
- -------------- ------------
- NAME
- --------------------------------------------------------------------------------
- 426 1
- DATA
- 441 2
- FRA
- SQL> select USABLE_FILE_MB , TOTAL_MB, GROUP_NUMBER , NAME from v$asm_diskgroup;
- USABLE_FILE_MB TOTAL_MB GROUP_NUMBER
- -------------- ---------- ------------
- NAME
- --------------------------------------------------------------------------------
- 426 5784 1
- DATA
- 441 2892 2
- FRA
- SQL> select USABLE_FILE_MB , TOTAL_MB, FREE_MB, GROUP_NUMBER , NAME from v$asm_diskgroup;
- USABLE_FILE_MB TOTAL_MB FREE_MB GROUP_NUMBER
- -------------- ---------- ---------- ------------
- NAME
- --------------------------------------------------------------------------------
- 426 5784 1566 1
- DATA
- 441 2892 441 2
- FRA
- SQL> select USABLE_FILE_MB , TOTAL_MB, FREE_MB, GROUP_NUMBER , NAME , TYPE from v$asm_diskgroup;
- USABLE_FILE_MB TOTAL_MB FREE_MB GROUP_NUMBER
- -------------- ---------- ---------- ------------
- NAME
- --------------------------------------------------------------------------------
- TYPE
- ------------------
- 426 5784 1566 1
- DATA
- NORMAL
- 441 2892 441 2
- FRA
- EXTERN
- USABLE_FILE_MB TOTAL_MB FREE_MB GROUP_NUMBER
- -------------- ---------- ---------- ------------
- NAME
- --------------------------------------------------------------------------------
- TYPE
- ------------------
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Automatic Storage Management option
- [oracle@station90 ~]$ asmcmd
- ASMCMD> ls
- DATA/
- FRA/
- ASMCMD> cd FRA/
- ASMCMD> ls
- ORCL/
- ASMCMD> cd ORCL/
- ASMCMD> ls
- ARCHIVELOG/
- AUTOBACKUP/
- CHANGETRACKING/
- CONTROLFILE/
- ONLINELOG/
- ASMCMD> cd CONTROLFILE/
- ASMCMD> ls
- Current.256.816169633
- ASMCMD> cp Current.256.816169633 /u01/app/oracle/control_orcl.ctl
- copying +FRA/ORCL/CONTROLFILE/Current.256.816169633 -> /u01/app/oracle/control_orcl.ctl
- ASMCMD> cd +DATA
- ASMCMD> ls
- ASM/
- ORCL/
- ASMCMD> help
- asmcmd [-vV] [-a <sysasm|sysdba>] [-p] [command]
- The environment variables ORACLE_HOME and ORACLE_SID determine the
- instance to which the program connects, and ASMCMD establishes a
- bequeath connection to it, in the same manner as a SQLPLUS / AS
- SYSASM. The user must be a member of the OSASM group.
- Specifying the -V option prints the asmcmd version number and
- exits immediately.
- Specifying the -v option prints extra information that can help
- advanced users diagnose problems.
- Specify the -a option to choose the type of connection. There are
- only two possibilities: connecting as SYSASM or as SYSDBA.
- The default value if this option is unspecified is SYSASM.
- Specifying the -p option allows the current directory to be displayed
- in the command prompt, like so:
- ASMCMD [+DATA/ORCL/CONTROLFILE] >
- [command] specifies one of the following commands, along with its
- parameters.
- Type "help [command]" to get help on a specific ASMCMD command.
- commands:
- --------
- md_backup, md_restore
- lsattr, setattr
- cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
- mkdir, pwd, rm, rmalias
- chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
- offline, online, rebal, remap, umount
- dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
- spmove, spset, startup
- chtmpl, lstmpl, mktmpl, rmtmpl
- chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
- mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr
- volcreate, voldelete, voldisable, volenable, volinfo
- volresize, volset, volstat
- ASMCMD> ls
- ASM/
- ORCL/
- ASMCMD> cd orcl
- ASMCMD> ls
- CONTROLFILE/
- DATAFILE/
- ONLINELOG/
- PARAMETERFILE/
- TEMPFILE/
- spfileorcl.ora
- ASMCMD> cd ONLINELOG/
- ASMCMD> ls
- group_1.261.929017499
- group_2.262.929017663
- group_3.263.929017431
- ASMCMD> rm group_3.263.929017431
- ORA-15032: not all alterations performed
- ORA-15028: ASM file '+DATA/orcl/ONLINELOG/group_3.263.929017431' not dropped; currently being accessed (DBD ERROR: OCIStmtExecute)
- ASMCMD>
- ASMCMD> ls
- group_1.261.929017499
- group_2.262.929017663
- group_3.263.929017431
- ASMCMD> cd ..
- ASMCMD> ls
- CONTROLFILE/
- DATAFILE/
- ONLINELOG/
- PARAMETERFILE/
- TEMPFILE/
- spfileorcl.ora
- ASMCMD> cd ..
- ASMCMD> ls
- ASM/
- ORCL/
- ASMCMD> cd ..
- ASMCMD> ls
- DATA/
- FRA/
- ASMCMD> cd FRA
- ASMCMD> ls
- ORCL/
- ASMCMD> cd orcl
- ASMCMD> ls
- ARCHIVELOG/
- AUTOBACKUP/
- CHANGETRACKING/
- CONTROLFILE/
- ONLINELOG/
- ASMCMD> cd ARCHIVELOG/
- ASMCMD> ls
- 2013_12_11/
- 2016_11_14/
- 2016_11_15/
- 2016_11_16/
- 2016_11_17/
- 2016_11_18/
- 2016_11_19/
- 2016_11_20/
- 2016_11_21/
- 2016_11_22/
- 2016_11_23/
- 2016_11_24/
- 2016_11_25/
- 2016_11_26/
- 2016_11_27/
- ASMCMD> ls
- 2016_11_26/
- 2016_11_27/
- ASMCMD> ls
- 2016_11_26/
- 2016_11_27/
- ASMCMD> ls
- 2016_11_26/
- 2016_11_27/
- ASMCMD> ls
- 2016_11_27/
- ASMCMD> ls
- 2016_11_27/
- ASMCMD> ls
- 2016_11_27/
- ASMCMD> l;s
- commands:
- --------
- md_backup, md_restore
- lsattr, setattr
- cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
- mkdir, pwd, rm, rmalias
- chdg, chkdg, dropdg, iostat, lsdsk, lsod, mkdg, mount
- offline, online, rebal, remap, umount
- dsget, dsset, lsop, shutdown, spbackup, spcopy, spget
- spmove, spset, startup
- chtmpl, lstmpl, mktmpl, rmtmpl
- chgrp, chmod, chown, groups, grpmod, lsgrp, lspwusr, lsusr
- mkgrp, mkusr, orapwusr, passwd, rmgrp, rmusr
- volcreate, voldelete, voldisable, volenable, volinfo
- volresize, volset, volstat
- ASMCMD> ls
- ASMCMD-08002: entry 'ARCHIVELOG' does not exist in directory '+FRA/orcl/'
- ASMCMD> ls
- ASMCMD-08002: entry 'ARCHIVELOG' does not exist in directory '+FRA/orcl/'
- ASMCMD> ls
- 2016_11_27/
- ASMCMD> cd ..
- ASMCMD> ls
- ARCHIVELOG/
- AUTOBACKUP/
- CHANGETRACKING/
- CONTROLFILE/
- ONLINELOG/
- ASMCMD> pwd
- +FRA/orcl
- ASMCMD> ls
- ARCHIVELOG/
- AUTOBACKUP/
- CHANGETRACKING/
- CONTROLFILE/
- ONLINELOG/
- ASMCMD> cd ARCHIVELOG/
- ASMCMD> ls
- 2016_11_27/
- ASMCMD> cd 2016_11_27/
- ASMCMD> ls
- thread_1_seq_141.392.929035007
- thread_1_seq_142.390.929035009
- thread_1_seq_143.389.929035009
- thread_1_seq_144.388.929035009
- thread_1_seq_145.387.929035065
- thread_1_seq_146.386.929035073
- thread_1_seq_147.385.929035077
- thread_1_seq_148.384.929035193
- ASMCMD> ls
- thread_1_seq_141.392.929035007
- thread_1_seq_142.390.929035009
- thread_1_seq_143.389.929035009
- thread_1_seq_144.388.929035009
- thread_1_seq_145.387.929035065
- thread_1_seq_146.386.929035073
- thread_1_seq_147.385.929035077
- thread_1_seq_148.384.929035193
- thread_1_seq_149.382.929037395
- ASMCMD>
复制代码
第二路归档:
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_archive_duplex_dest string
- SQL> alter system set log_archive_dest_1='location=use_db_recovery_file_dest';
- System altered.
- SQL> alter system set log_archive_dest_2='location=/u01/app/oracle/archived_log';
- System altered.
- SQL> alter system archive log current ;
- System altered.
- SQL>
复制代码
|
|