|
第21次-第24次:2015-07-11--2015-0712星期六和星期日
上完1Z0-053第7章 (52-15)
2015-07-12.sql
- select * from v$logfile;
- select * from v$log;
- alter database drop logfile group 1;
- alter database add logfile group 1 size 50M;
- alter database drop logfile group 2;
- alter database add logfile group 2 size 50M;
- alter system switch logfile;
- alter database drop logfile group 3;
- alter system checkpoint;
- alter database drop logfile group 3;
- alter database add logfile group 3 size 50M;
- select * from v$logfile;
- select * from v$datafile;
复制代码
2015-07-12-rman.txt:
- 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> alter system set db_recovery_file_dest='/u01/app/oracle/oradata';
- System altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.3.0 - Production on Sun Jul 12 17:30:36 2015
- Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367, not open)
- RMAN> backup as copy database ;
复制代码
|
|