依据统计信息确定多块读被使用
大家都知道:Full table scan 和 Index fast full scan会用到多块读,下面就依据统计信息来确定这点;physical read total multi block requests:Total number of Oracle instance read requests which read in two o...
About storage parameter INITRANS and MAXTRANS
About storage parameter INITRANS and MAXTRANS INITRANS: The space you would like to reserve for transaction entries compared to the space you would reserve for database data ; the default value (1 fo...
Instance allocated memory (SGA+PGA)
Checking oracle usage memory is quite difficult on unix: when using 'ps aux' , RSS shows process memory + shared memory for each process. You need to use svmon or pmap to substract the shared part. Th...
关于object_id 和data_object_id
对于这两个子段,Oracle给出了定义:OBJECT_ID: Object number of the object DATA_OBJECT_ID: Dictionary object number of the segment that contains the object 也就是说,object_id是schema下唯一的对象的标识,...
查看隐含参数信息
结合 x$ksppi , x$ksppsv 系统视图查看系统隐含canshu......select name, value, decode(isdefault, 'TRUE', 'Y', 'N') as "Default", decode(ISEM, 'TRUE', 'Y', 'N') as SesMod, decode(I...
一些系统视图的介绍
一些系统视图的介绍--逐步整理select *from v$session_longops;对操作超过6秒的session作相应的记录;select *from v$controlfile_record_section ;控制文件各部分记录信息;
Virtual index
"Virtual" index 是Oracle undocumented的一个特性:创建后dba_segment/dba_indexes(9i)数据字典中没有记载,不会影响对应的sql,只是在系统隐含参数“_use_nosegment_indexes”设为true时发挥作用......SQL> create ta...
About ASCIISTR Function
Oracle 9i引入的一个字符函数功能:返回字符对应的ASCII码,对于非ASCII码转化为Unicode并前置符号'/';Oracle 9i引入的一个字符函数功能:返回字符对应的ASCII码,对于非ASCII码转化为Unicode并前置符号'/';select">test...
dbms_shared_pool
dbms_shared_pool提供以下功能:将object 或者 "sql statement" pin到shared pool......keep过程可以将对象pin入shared_pool,而不进入LRU 机制;unkeep过程将pinned对象unpin,从而进入LRU机制;SQL> alter system flus...
library cache lock &library cache pin
Oracle使用两种数据结构来进行shared pool的并发控制:lock 和 pin.Lock比pin具有更高的级别.Lock在handle上获得,在pin一个对象之前,必须首先获得该handle的锁定.锁定主要有三种模式: Null,share,Exclusive.在读取访...
windows下server process 和client process(Deciated mode)
SQL> select a.spid dedicated_server 2 ,b.process clintpid 3 from v$process a,v$session b 4&n...
ORA_NLS33
环境变量ora_nls33定义'locale data'所在的目录......Oracle对不同字符集的支持是通过nls运行库来实现的,nls运行库的运行需要'local data'的支持,而环境变量ora_nls33就是定义'local data'存放目录的变量;在不同的版...
用dbms_stats收集统计信息
CBO优化器基于三个方面评估SQL cost:selectivity,cardinality and cost(CPU&MEM&I/O),利用dbms_stats收集column柱状图信息,CBO依据柱状图可以得到column的数据分布情况: SQL> create table t1 as select 1 c...
重建临时表空间
建立新的临时表空间,再设定系统默认临时表空间为新建空间;SQL> create temporary tablespace tem tempfile 'D:oracleoradatabjmobiletem01.dbf' size 100m;Tablespace created.SQL> alter database default temporar...
parent cursor child cursor shared cursor
每个SQL语句在解析时,会在Library cache中查找同一是否存在同样的SQL,如果没有就创建parent cursor and child cursor,如果有那还要看相关变量类型、环境参数等是否一致,如果一致就重用该sql,如果不一致那就要创建chi...
system change number
system change number(scn)就好比oracle内部时钟,它以增加的方式变动着,DB所有的变动都以它为时间基准,它在整个系统中也是唯一的;Connected to Oracle8i Enterprise Edition Release 8.1.7.3.0 SQL> create table sc...
Deallocate unused
deallocate unused用于回收空间,这种回收限于HWM之上的,比如手工扩展的空闲部分......SQL> create table t1 as select * from dba_tables;Table created.SQL> exec show_space('T1');******************************...
Oracle10 g各版本差异
Oracle 10g各版本的差异;Key Feature SummaryExpress EditionStandard Edition OneStandard EditionEnterprise EditionMaximum CPUs124No LimitRAM1GBOS MaxOS MaxOS MaxDatabase Size4GBNo LimitNo LimitNo LimitWi...
Redo file
日志文件的重建、删除、清空..........1. alter database drop logfile group 1; alter database drop logfile member redofilename;2. alter database add logfile group 1 redofilename size 10m; alter datab...
Logminer
使用Logminer来分析重作日志......1. 设立UTL_FILE_DIR参数用来存放数据字典文件;2. 如果系统没有package:dbms_logmnr and dbms_logmnr_d,那么以sys用户来执行dbmslmd.sql文件;3. 执行procedure DBMS_LOGMNR_D.BUILD...