ORACLE VPD ROW-LEVEL MARKING..
VPD Virtual Private Database
ORACLE安全方面的控制,例如VIEW ,但是比view控制更灵活。
CREATE VIEW VXX AS SELECT * FROM TXX WHERE XX
Optimizer_mode ALL_ROWS and FIRST_ROWS[_N]
all_rows是默认参数,first_rows只是为了向前兼容,ORACLE建议你平时用时使用first_rows_N,N的值越大就越像ALL_ROWS靠近。
…
how to disable/enable index?
DISABLE applies only to a function-based index. This clause lets you disable the use of a function-based index.
11g adrci全称(full name)
一个很无聊的问题
adrci = Oracle Automatic Diagnostic Repository Command Interpreter
与AMM ,ASMM相关的几个视图
其中V$SGA_RESIZE_OPS 、V$MEMORY_RESIZE_OPS两个可以看出内存设置的抖动情况,如果系统频繁的更改大小,看来资源比较紧张,就不适合A了。
sql performance truning ,hint,parallel,10053 trace
在两个表的JOIN 中,CBO总是会计算三种JOIN的连接方式的代价,分别为NL JOIN,SM JOIN,HA JOIN,三种JOIN对前后两表的我称呼还不一样,分别是NL JOIN :outer table,inner table,SM :firest table,second table,HA:build table ,probe table,Nested jOIN中的outer table又叫driver table…
oracle 11g dbca 找不到asm diskgroup的解决办法
昨天在家里的本本虚拟机里配置11G R2 RAC时,GI安装正常,db soft 安装正常,查看资源asm 磁盘也正常,GI是用的GRID 用户及用ASMLIB配置的ASM DISKGROUP.但到最后一步用ORACLE用户DBCA建库时,在储存选择ASM,无法找到ASMDISKGROUP?
impdp 与 imp区别
今天问到了这个问题:impdp 如果不导入权限?看了下impdp参数没有了grants选项,看了些文档发现还是除了data dump 必需要在服务端执行个参数上还是有一定区别的
crs 安装时The specified shared raw partition /dev/raw/raw1 may not have correct permission
今天网友问到在安装crs时,OUI出现了这个错误
“The specified shared raw partition /dev/raw/raw1 may not have correct permission”
SCN fast increase by database link(scn增长因DB_LINK)
为了保证分布式查询的一致性,通过dblink查询时会同步SCN,有时会撞见ORA-600错误。
alert日志中伴随着warning Rejected the attempt to advance SCN over limit
index block dump
b-tree indexes are an important access path structure in database and file systems
key property: each possible search path has the same length.
oracle index block splits
index是一个逻辑有顺序的结构并非物理存储block上排序,它总是可以把每个键值有顺序的逻辑排放,索引的高度总是平衡的,并且index leaf block就像一个双向链表,在index leaf block上会记录前一块的地址和后一块的地址,这样在index range scan 是就可以很方便的横向扫描..
oracle 消除块竞争(hot blocks)
SELECT p1 “file#”, p2 “block#”, p3 “class#”
FROM v$session_wait
WHERE event = ‘read by other session’;
oracle high load案例及AWR分析过程
Begin Snap: 18125 20-Apr-12 11:01:00 337 1.0
End Snap: 18126 20-Apr-12 12:00:28 490 1.0
Elapsed: 59.46 (mins)
DB Time: 12,979.44 (mins)
ssh 端口转发 助TOAD,PL/SQL DEV窗口程序连接不能直接访问的数据库
SecureCRT ssh 端口转发功能
toad—>127.0.0.1:3000—ssh –>web server—ssh—>db server:1521
in version 10.2 oracle does not support quota on temporary tablespaces,ora-30041
如果在10gr1及以前的版本,在temp tablespace设quota是可以的,但真正的不应该在temp 上设限额,本身就是一个bug,在10gr2中被修复,所以10gr2及以后的版本不在允许
Initializing the Oracle ASMLib driver: [FAILED] on RHEL5.1 asmlib安装详情
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
log:modprobe: FATAL: Module oracleasm not found.
sql script: 找出stale statistics的对象
Using the code below one can find the tables/indexes that have stale statistics in a schema, when options=>’GATHER AUTO’ is used oracle gathers statistics analyzes the tables/indexes that have stale statistics.