Tuning RAC and using parallel features(3)
Global Cache Resources(GCS) and Global Enqueue Services(GES)The key role is played by GCS and GES (which are basically RAC processes). GCS ensures a single system image of the data even though the da...
Tuning RAC and using parallel features(2)
Internal Workings of the Oracle RAC System In 9i RAC, we no longer talk about DLM,PCM, non-PCM, Lock Monitor,etc.Most of the functionality is replaced in Oracle 10g or performed in the name of ...
Tuning RAC and Using Parallel Features(1)
Cluster interconnect If a block of data is on one node and the user asks for it on another node, oracle uses cache fusion to pass one block through the interconnect to the other n...
How can i extract data from flat file to oracle tablw with plsql?
Pl/sql cao do it SQL> create or replace function dump_csv( p_query in varchar2, 2 &n...
spfile在11G的一点改进
spfile在11G的一点改进在11G中,oracle为保护spfile也做了一些小小的改进,例如,在运行时,spfile无法中被删除时,可以从memory中直接读出所有参数的值模拟spfile被删除[oracle@rac2 dbs]$ rm spfileorcl.ora尝试修...
cursor_sharing_exact hints的使用
cursor_sharing_exact hints的使用主要当cursor_sharing=similar或者force的时候使用比较方便,以下就是为cursor_sharing=similar的时候的一个sqltrace.可以看到当使用hints cursor_sharing_exact后,Misses in li...
使用临时表来优化的存储过程
使用临时表来优化的存储过程对于海量数据作检索的时候,通常会由于巨大的数据量,造成大量的排序和过滤。SELECT TECHNOLOGY_RRN, TECHNOLOGY_ID, &nb...
EXPLAIN PLAN WHEN USING PARTITIONS
EXPLAIN PLAN WHEN USING PARTITIONSTable partitions yield different outputs for their EXPLAIN PLANs (as shown in the following listing).Here, we create a table with three partitions and a parti...
Using dbms_monitor
Using dbms_monitor SQL> select sid,serial# ,username from v$session; SID SERIAL# USERNAME---------- ---------- -------------------...
海量数据库被drop/truncate表的不完全恢复
d海量数据库被drop/truncate表的不完全恢复在实际情况中,数据库经常会由于工作人员的误操作造成一些表被删除或者截断,如果数据库的数据量小是很方便做时间点恢复的,但如果数据量非常大。或者10T的数据量,那是不...
做一个好的dba
d做一个合格的oracle工程师需要智慧和头脑,知识要过硬,交流要过硬, 其实专业知识仅仅是占你的工作的40%,但是你需要要100%的掌握基础知识, 很多人总觉得,"table"这样一个小的概念很简单, 觉得没什么的,其实,往往基础...
ORACLE PL/SQL 的异常处理
-在整理我收藏过的一些文章,放在这里,供所有需要的人一起学习,出自:http://www.itpub.net/371230.htmlORACLE PL/SQL 例外处理1) 基本结构 BEGIN ... --语句 EXCEPTION -- 例外处理 WHEN ... ... WHEN...
AIX上增加逻辑卷时报错误0516-787 extendlv: Maximum allocation for logical volume jdelv02 is 512.
AIX[@more@]AIX上增加逻辑卷时报错误0516-787 extendlv: Maximum allocation for logical volume jdelv02 is 512. 在往aix使用chfs -a size=xx /fs 命令增加逻辑卷的时候,有时候增加到一定大小的时候,会报出0516-787 extendlv: Maximum allocation for logical volume jdelv02 is 512.这样的一个错误原因主要是因为在默认情况下的逻辑卷允许的最大逻辑分区数为512,因此在逻辑卷大小超出了这个限制的时候,就会报0516这个错误了。当然你可以查看这个lv以确认是否为512:使用lslv来看:# lslv jdelv02LOGICAL VOLUME: jdelv02
AIX 5.3上升级oracle9206的注意事项
AIX 5.3上升级oracle9206的注意事项给AIX5.3版本上的oracle升级至9206时,有以下几点需要注意,特此纪录:1、在root用户下,执行以下命令清除内存中没有使用的库文件。# /usr/sbin/slibclean2、在执行./runInstaller...
DML Error Logging in Oracle 10g
DML Error Logging in Oracle 10g 主要在于使用DBMS_ERRLOG.create_error_log 这个包来跟踪dml错误信息SQL> CREATE TABLE source ( 2 id NUMBER(10) NOT NULL, 3 code VARCHAR2(10), ...
解决sql server 开发版2005的安装错误
主要是为了解一下这个产品.当然也为了一些个人事物上的需求而安装.安装过程中报"性能计数器要求安装错误" .这里主要记录一下解决方法定位到注册表:[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPer...
使用dbms_profiler包辅助pl/sql优化
d使用dbms_profiler包辅助pl/sql优化SQL> conn / as sysdbaConnected.首先就是创建以下对象:SQL> @$ORACLE_HOME/rdbms/admin/profload.sqlPackage created.Grant succeeded.Synonym created.Library created.Packag...
LOADS、INVALIDATIONS and PARSE_CALLS
dLOADS、INVALIDATIONS and PARSE_CALLSSQL> select * from v$version;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr...
Troubleshooting Guide to high version_counts
Greate jobAuthor: James Cremonini 1. Troubleshooting Summary 2. Introduction: What is shared SQL ? 3. Diagnostics: How do I see the versions and why they are not shared ? 4. Documentation: What do the...
Recover from Missing Datafile that is Never Backed Up (RMAN-06026)
from metalinkRecover from Missing Datafile that is Never Backed Up (RMAN-06026)Problem Description-------------------Full restore via RMAN of a database when a datafile is missing and neverbacked up r...