Oracle从非归档模式变成归档模式
http://www.cuijie.net.cn/?cat=6
更改数据库的归档模式需要重新启动数据库,在mount模式下修改,简要步骤
1 以shutdown immediate 方式关闭数据库
2 启动实例到mount状态
3 更改运行模式并打开数据库
操作步骤:
1 登录数据库查看数据库的归档状态
SQL> archive log list;
如果出现信息:
Database log mode No Archive Mode
Automatic archival Disabled
则为非归档模式
2 关闭数据库
SQL>shutdown immediate;
3 启动数据库到mount状态
SQL>startup mount;
4 启动归档模式
SQL>alter database archivelog; (非归档模式为:alter database noarchivelog)
5 打开数据库
SQL>alter database open;
查看归档模式状态
SQL>archive log list
如果出现信息:
Database log mode Archive Mode
Automatic archival Enabled
成功改成归档模式
http://uplinux.com/online/dodev/sjk/2009/1103/243.html
Oracle数据库可以运行在2种模式下:归档模式(archivelog)和非归档模式(noarchivelog)
归档模式可以提高Oracle数据库的可恢复性,生产数据库都应该运行在此模式下,归档模式应该和相应的备份策略相结合,只有归档模式没有相应的备份策略只会带来麻烦。
本文简单介绍如何启用和关闭数据库的归档模式。
1.shutdown normal或shutdown immediate关闭数据库
[oracle@jumper oracle]$ sqlplus "/ as sysdba"
相关文档:
1、查询两个日期之间的数据。
假设有表Table1,其创建表的sql语句为:
create table Table1(
StationID NUMBER(10) Primary key,
Year NUMBER(4) not null,
Month NUMBER(2) n ......
The DB File Scattered Read wait event generally indicates waits related to full table scans or fast
full index scans. As full table scans are pulled into memory, they are scattered throughout the
buffer cache, since it is usually unlikely that they fall into contiguous buffers. A large numb ......
The DB File Sequential Read wait event generally indicates a single block read (an index read,
for example). A large number could indicate poor joining orders of tables or unselective indexing.
This number will certainly be large (normally) for a high-transaction, well-tuned system. You ......
[root@vmfs sysconfig]# lvdisplay |grep db_d
LV Name /dev/db_v4/db_d_22
LV Name /dev/db_v4 ......
查看Oracle执行计划的几种方法
一、通过PL/SQL Dev工具
1、直接File->New->Explain Plan Window,在窗口中执行sql可以查看计划结果。其中,Cost表示cpu的消耗,单位为n%,Cardinality表示执行的行数,等价Rows。
2、先执行 EXPLAIN PLAN FOR select * from tab ......