【索引】反向索引
1,Creating dataReversed key indexes use b-tree structures, but preprocess key values before inserting them. Simplifying, b-trees place similar values on a single index block, e.g., storing 24538 on t...
【ASM学习】在windows 环境下创建ASM实例
SQL> startupASM 实例已启动Total System Global Area 535662592 bytes &n...
找热点对象的sql:
select e.owner, e.segment_name, e.segment_type from dba_extents e, (selec...
oracle的巡检
一般oracle的官方巡检包括如下的内容1) 主机负载情况检查,关键参数检查,比如异步IO啊,系统核心参数啊之类的,以及oracle要求的主机补丁有没有安装2) 网络检查,包括一些网络方面的参数(用于RAC的数据库)3) ...
LOG_CHECKPOINT_INTERVAL
LOG_CHECKPOINT_INTERVAL specifies the frequency of checkpoints in terms of the number of redo log file blocks that can exist between an incremental checkpoint and the last block written to the redo lo...
创建ASM 实例,失败!
先不发文章了,忙碌了一个晚上,总是报错说控制文件不适合ASM实例。我的帖子如下:http://www.itpub.net/thread-1334613-1-1.html有哪位朋友遇到这个问题,帮忙解决一下。先说声谢谢了!太晚了,要。...
LOG_ARCHIVE_FORMAT
LOG_ARCHIVE_FORMAT is applicable only if you are using the redo log in ARCHIVELOG mode. Use a text string and variables to specify the default filename format when archiving redo log files. The string...
增大sort_area_size 后 排序时间增长
SQL> conn system/yang as sysdba已连接。SQL> show parameter workarea_size_policy;NAME &...
shutdown immediate
使用shutdown immediate后:1. 没有提交的事务会被回滚掉(所以如果有长事务没有提交,可能要花费比较长的时间)2. 并不会等到用户主动断开到系统的连接,而是回滚掉相应的事务,然后自动断开所有的连接shutdown db...
【一致性读的计算】
SQL> conn system/yang as sysdba已连接。SQL> deac tSP2-0042: 未知命令 "deac t" - 其余行忽略。SQL> desc t 名称 &nb...
oracle 序列
序列(SEQUENCE)是序列号生成器,可以为表中的行自动生成序列号,产生一组等间隔的数值(类型为数字)。其主要的用途是生成表的主键值,可以在插入语句中引用,也可以通过查询检查当前值,或使序列增至下一个值。创建序...
系统关闭时候,oracle数据库执行动作
系统关闭时候,oracle数据库执行动作先尝试shutdown immediate如果超时,则 shutdown abort
监控index 的使用情况
一个系统,经过长期的运行、维护和版本更新后,可能会产生大量的索引,甚至索引所占空间远远大于数据所占的空间。很多索引,在初期设计时,对于系统来说是有用的。但是,经过系统的升级、数据表结构的...
从一个用户expdp导出再impdp导入到另一个用户
C:\Documents and Settings\yang>expdp scott/yang dumpfile=scott.dmp schemas=scottExport: Release 11.1.0.6.0 - Production on 星期四, 22 7月, 2010 22:47:27Copyright (c) 2003, 2007, Oracle. Al...
使用rman恢复控制文件
没有使用catalog的情况:控制文件自动备份将控制文件和spfile放在一个文件里进行备份,默认位置为?/dbs(windows在?/database)。这个位置可以使用如下语句进行更改:CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEV...
创建统计表
CREATE STATISTICS statistics_name ON { table | view } ( column [ ,...n ] ) [ WITH [ [ FULLSCAN &nbs...
永远的11
SQL> with a as 2 (select rownum p from dual connect by level <=21) 3 select 4 7+ ceil ( 5 ( 7+ ceil ( 6 ( 7+ c...
用户下有同名对象引起的问题
A用户有一个存储过程test(此过程就是在A用户下建的)A用户执行过程:begin test; end;一切正常然后还是在A用户下过程前面加ownerbegin a.test; end;ERROR at line...
ORA-01861 【文字与格式字符串不匹配 】
插入日期时往往遇到文字与格式字符串不匹配 的问题。做一个测试。SQL> create table book (id number,createdate date);表已创建。SQL> insert into book values (1,'2010-07-13 12:12:02');insert into book...
nologging 不起作用!【解决】
SQL> conn system/yang as sysdba已连接。SQL> create or replace view redo_size 2 as 3 select value 4 from v$mystat...