optimizer_index_cost_adj和optimizer_index_caching对CBO的影响
DB:10205OS: HP UX B.11.11目的:测试optimizer_index_cost_adj和optimizer_index_caching对CBO生成执行计划的影响,前者的取值范围0-10000,默认为100;后者则为0-100,默认为0;关于这两个参数的资料比...
系统统计信息system statitics小结
什么是system statisticsSystem statistics describe the system's hardware characteristics, such as I/O and CPU performance and utilization, to the query optimizer. When choosing an execution plan, the ...
自动统计信息收集gather_stats_job
曾经有个非常牛的公司面试DBA,你们数据库如何收集统计信息?自动收集?那说一下自动收集的算法?不知道怎么敢用自动收集? 有点小尴尬….关于自动统计信息收集,以下是11gR2的官方解释http://docs.oracle.com/cd/...
重启listener解决的ora-4030问题
OS: AIX 6DB: RAC 2节点10205症状:普通的索引创建CREATE INDEX justin.aaa_index ON justin.aaa_table(X_PERSON_ID);通过os authentication进入数据库能够执行成功,但是通过listener连接的session却总是报告ora-40...
LD_LIBRARY_PATH设置不当导致无法登陆和启动oracle
OS: HP B.11.23DB: oracle 10205症状: 数据库无法登陆,sqlplus / as sysdba报告如下错误Thu Jul 05 21:41:59 EDT 2012Errors in file /d_db00/app/oracle/admin/justin/udump/justin_ora_7569.trc:ORA-07445:...
11R2 RAC新功能之HAIP
--11gR2起Grid infrastructure引入资源ora.cluster_interconnect.haip,不需要第三方技术便可实现redundant interconnect,最多支持4个private network,提供load balance & failover功能;--Gird会自动选取169.254...
How does ASM work with RAID where striping and mirroring are already built-in?
这篇文章并没有介绍太多实质性的东西,留待以后完善,详见ID 330398.1There is really no single answer to this question since it depends on business requirement and budget (cost, availability, performance...
ASM 11g新功能fast disk resync
背景:1) When we take a disk offline in case the disk is corrupted or database is not able to read or write from the disk. In case of Oracle database 10g, oracle engine use to balance the other disks...
linux下的syslog和/var/log
Syslog is the general standard (IETF) for logging system and program messages in the Linux environment. This service constitutes the system log daemon, where any program can do its logging (debug, sec...
dbms_stats 11g新功能 set_param的改进
Dbms_stats的gather_***_stats中有很多可选项,譬如cascade/estimate_percent,可以手工修改其默认值10g提供了set_param用于修改,但是只能用于全局修改; 而11g则细化了很多,包括table/schema级别下面来分别验证...
升级10205遭遇bug222316 之 ora-1031
OS: HPDB: 10204升级到10205症状:原本正常的操作升级后一直抱ora-1031错误,如insert into a as select * b; 对表b 的select权限赋予了角色r,然后r被grant给当前用户u,但是却报错没有操作权限,若直接grant s...
10205 bug之6980350, dbms_stats巨慢无比
OS: HPDB: 10204升级至10205症状:升级完成后,客户开始抱怨数据库跑的很慢,以前几个小时能跑完的job现在需要10几个小时,一天能搞定的现在则需要好几天。经过好几次沟通后,通过AWR确认了一个bad sql,...
unix/linux搜寻tnsnames.ora规则
Oracle Net Services configuration files are typically, but not always, located in the $ORACLE_HOME/network/admin directory. Depending on the type of file, Oracle Net uses a different search order to l...
ora-1555小结
Ora-01555错误会伴随如下一条信息rollback segment number string with name "string" too small而string一般有三种类型 1 _SYSSMU1$ 2 SYSTEM3 &n...
获取exp/expdp dumpfile的metadata信息
对于使用exp/expdp导出的dmp文件,可以使用以下几种方式取得其metadata或DDL。1 获取Expdp dumpfile中的DDL可以使用impdp的sqlfile选项,将其中的DDL尽数倒入该选项指定的文件中,此过程并不会真正执行impdp...
使用PASSWORD_VERIFY_FUNCTION设置用户密码复杂度
依据PASSWORD_VERIFY_FUNCTION可以设置oracle用户的密码复杂度,比如密码长度>=10,必须包含字母/数字等首先需要创建一个密码验证的function,然后设置profile的PASSWORD_VERIFY_FUNCTION即可SQL> select TEXT from...
关于dbconsole无法启动的解决办法
若是出了问题,最行之有效的方法就是将其重建emca -deconfig dbcontrol db -repos drop <==== This will remove the dbconsole application. OS files, SYSMAN and MGMT_VIEW schema's and the DBConsole ServiceWh...
_smu_debug_mode在AUM下的应用
OS: windows 2000DB: oracle 10105AUM/SMU是9i引入的一项新特性Automatic undo management is undo-tablespace based. You allocate space in the form. of an undo tablespace, instead of allocating many...
采用job定时运行recover datafile
某台windows服务器,由于杀毒软件设置问题,导致每天凌晨都会锁定controlfile/datafile,导致数据库crash或者某些文件处于recover状态;由于公司流程繁琐,通知系统管理员禁掉杀毒软件需要时间比较长,所以...
vi命令鸟哥详解
vi功能很强大,不过选项太多如不经常使用很难记忆,转贴鸟哥的一篇文章,作为日后使用参考http://vbird.dic.ksu.edu.tw/linux_basic/fedora_4/0310vi-fc4.php一般模式: 移动光标的方法h 或 向左箭头...