上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 106 下一页
摘要: SQL tuning过程中离不开分析SQL语句的执行计划。在一次提取执行计划的时候碰到cannot fetch plan for SQL_ID的错误提示。根据错误提示来看需要检查SQL的子游标或该执行计划不在v$sql_plan表中,而这种情况一般不存在。因为刚刚执行过的SQL语句不可能这么快从v$sql_plan移除。下面给出错误描述及处理办法。1、故障现象-->使用display_cursor提取执行计划失败 admin@CADB> select * from table(dbms_xplan.display_cursor(null,null,'iostats last 阅读全文
posted @ 2012-01-05 15:42 生活不是用来挥霍的 阅读(318) 评论(0) 推荐(0)
摘要: 在一套DB服务器上运行DBCA 命令,报错:[oracle@game_db ~]$ dbcaException in thread "main" [oracle@game_db ~]$ [oracle@game_db ~]$ exportDISPLAY=1921.68.3.189:0.0[oracle@game_db ~]$ dbcaException in thread "main" 几年都没有遇到这种问题了,起初以为是DISPLAY变量的问题,设置以后也不行,查看了一个DBCA的log 日志:[oracle@game_db scripts]$ cd 阅读全文
posted @ 2012-01-04 13:54 生活不是用来挥霍的 阅读(289) 评论(0) 推荐(0)
摘要: 在64位RHEL5.5上安装Oracle10gR2的简易步骤1)安装所需rpm:# cd /media/RHEL_5.5 x86_64 DVD/Serverrpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpmrpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm rpm -ivh libstdc++-devel-4.1.2-48.el5.x86_64.rpm rpm -ivh glibc-headers-2.5-49.x86_64. 阅读全文
posted @ 2011-12-31 01:02 生活不是用来挥霍的 阅读(283) 评论(0) 推荐(0)
摘要: 一.Alerts 和 Metrics说明官方链接:Monitoring and Tuning the Databasehttp://docs.oracle.com/cd/E11882_01/server.112/e10897/montune.htm#CACCIHAB Alerts help you monitor your database. Most alerts notify youof when particularmetric thresholds are exceeded.For each alert, you can set critical and warning thresho 阅读全文
posted @ 2011-12-28 17:02 生活不是用来挥霍的 阅读(430) 评论(0) 推荐(0)
摘要: 官网的链接:Overview of PL/SQLhttp://docs.oracle.com/cd/E11882_01/appdev.112/e25519/overview.htmServer-Side Programming: PL/SQL and Javahttp://docs.oracle.com/cd/E11882_01/server.112/e25789/srvrside.htm一.PL/SQL 定义 PL/SQL is theOracle Database procedural extension to SQL. PL/SQL is integrated with thedatab 阅读全文
posted @ 2011-12-27 20:54 生活不是用来挥霍的 阅读(251) 评论(0) 推荐(0)
摘要: 在给用户授予sysdba权限时,收到ORA-01994错误,查看描述信息即是password file missing or disabled。也可以使用oerr ora <error_number>来查看错误号具体的细节。从描述来看应该是密码文件丢失或REMOTE_LOGIN_PASSWORDFILE参数设置的问题。下面给出具体过程。1、错误提示情况 sys@CNMMBO> grant sysdba to scott; grant sysdba to scott * ERROR at line 1: ORA-01994: GRANT failed: password fil 阅读全文
posted @ 2011-12-26 09:31 生活不是用来挥霍的 阅读(1069) 评论(0) 推荐(0)
摘要: 在之前的Blog里提到了VBox 的4中网络类型:NATBridged AdapterInternalHost-onlyAdapter具体参考:Oracle Virtual Box 安装使用 说明http://blog.csdn.net/tianlesoftware/article/details/6826389 今天升级了一个VBox 到4.1.8,在这个版本中对网络这块有加强,增加了UDP的支持,升级之后看了下Vbox,多了一种Generic Driver,因为之前没有留意是否有这种模式,所以这里也不能确定GenericDriver 是新版本里才有的。 不过查看了参考文档,确实有了增加的内 阅读全文
posted @ 2011-12-24 21:34 生活不是用来挥霍的 阅读(376) 评论(0) 推荐(0)
摘要: 一.相关概述在之前的Bulk的那篇blog里提到了Oracle 的2个引擎:PL/SQL 引擎和SQL 引擎。Oracle PL/SQL 优化与调整 -- Bulk 说明http://blog.csdn.net/tianlesoftware/article/details/6578351 Oracle使用2个引擎来执行SQL和代码块:SQL引擎和PL/SQL引擎,Oracle使用这2个引擎来执行PL/SQL blocks和subprograms。那么在执行的时候,PL/SQL引擎把DML语句发送给SQL引擎,然后由SQL引擎执行,执行完毕后,SQL引擎把结果集在发送给PL/SQL引擎。因此在不 阅读全文
posted @ 2011-12-23 22:05 生活不是用来挥霍的 阅读(265) 评论(0) 推荐(0)
摘要: 官网的链接:http://docs.oracle.com/cd/E11882_01/server.112/e16638/instance_tune.htm#PFGRF13015一.Instance Recovery Instance andcrash recovery are the automatic application of redo log records to Oracle datablocks after a crash or system failure. During normal operation, if an instanceis shut down cleanly ( 阅读全文
posted @ 2011-12-23 00:52 生活不是用来挥霍的 阅读(289) 评论(0) 推荐(0)
摘要: 1、对磁盘进行分区fdisk -l 查看磁盘情况fdisk /dev/sdb 进行分区操作2、配置裸设备(修改/etc/udev/rules.d/60-raw.rules文件)在redhat5中1)加载裸设备ACTION==”add”, KERNEL==”/dev/sdb1″,RUN+=”/bin/raw /dev/raw/raw1 %N”–多个一次累加2)设置raw设备的用户和权限信息ACTION==”add”, KERNEL==”raw[1-4]“, OWNER=”oracle”, GROUP=”dba”, MODE=”660″3)重启服务start_udev4)查看raw设备ls -lr 阅读全文
posted @ 2011-12-21 01:21 生活不是用来挥霍的 阅读(698) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 106 下一页