ORA-06512 问题解决
在执行存储过程时,有动态执行SQL时,有时报错ORA-06512。SQL> select * from dba_role_privs where grantee='dev'; GRANTEE GRANTED_ROLE ADMIN_OPTION DEFAULT_ROLE ------------ ------------ -------...
在Linux 64位系统下使用hugepage
首先,为什么要介绍/使用HugePage?在步入正题之前,先讲一个非常普遍的数据库性能问题。众所周知,Oracle数据库使用共享内存(SGA)来管理可以共享的一些资源;比如shared pool中存储了共享的SQL语句及执行计划,buffer pool中存储了数据块。对这些资源的访问,其实就是Oracle使用OS的API来访问内存资源的过程。内存操作...
10046 trace信息的收集
每逢与遇到SQL相关性能,我们总是需要收集10046的,来查看和诊断问题。因为10046真实的反应的SQL语句执行的时候的真实信息,解析,执行,获取的时间消耗,row source operation的具体情况。具体等待事件,每个时间具体的时间消耗等等。希望下面的Case有一种就能帮助到您。EVENT: 10046 "enable SQL statement tracing...
MySQL表的四种分区类型
一、什么是表分区通俗地讲表分区是将一大表,根据条件分割成若干个小表。mysql5.1开始支持数据表分区了。 如:某用户表的记录超过了600万条,那么就可以根据入库日期将表分区,也可以根据所在地将表分区。当然也可根据其他的条件分区。二、为什么要对表进行分区为了改善大型表以及具有各种访问模式的表的可伸...
crsctl query crs releaseversion, activeversion, softwareversion 代表的含义
- Use the crsctl query crs releaseversion command to display the version of the Oracle Clusterware software stored in the binaries on the local node. --> Setting the PATH variable will change the results of this command - Use the crsctl query crs activeversion command to display the activ...
sqlplus: error while loading shared libraries的解决方案
昨天在给学员培训时,安装完毕数据库后,执行sqlplus出现了如下错误。建好oracle库后,执行sqlplus命令:[oracle@localhost database]$ sqlplus /nologsqlplus: error while loading shared libraries: /oracle/app/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denie...
10046 事件 与 10053 事件
有同学一直向Maclean反应希望做一期10046 SQL trace的教程, 正好这几天有空 我们就理一理。 为什么我们要使用10046 trace? 10046 trace帮助我们解析 一条/多条SQL、PL/SQL语句的运行状态 ,这些状态包括 ...
使用rman执行recover database 的时候出现RMAN-06054的错误提示
RMAN> recover database;Starting recover at 14-FEB-17using channel ORA_DISK_1starting media recoverychannel ORA_DISK_1: starting archived log restore to default destinationchannel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=4120channel ORA_DISK_1: reading from b...