Overview of Indexes
Oracle provides several indexing schemes, which provide complementary performance functionality:Overview of IndexesIndexes are optional structures associated with tables and clusters. You can create i...
Export/Import
转抄1、Export/Import的用处 Oracle Export/Import工具用于在数据库之间传递数据。 Export从数据库中导出数据到dump文件中 Import从dump文件中到入数据导数据库中 下面是一般使用他们的情况 (1)、两个数据库之间传...
script(3)
script(3)1. 监控事例的等待 select event,sum(decode(wait_Time,0,0,1)) "Prev", sum(decode(wait_Time,0,1,0)) "Curr",count(*) "Tot" from v$session_Wait group by event order by 4; 2. 回滚段的争用情况 selec...
Oracle 释放过度使用的Undo表空间
本文系转载与互联网,只是为了查看方便。如有不妥,可以随时删除。[@more@]Oracle 释放过度使用的Undo表空间Oracle 释放过度使用的Undo表空间故障现象:UNDO表空间越来越大,长此下去最终数据因为磁盘空间不足而崩溃;问题分析:产生问题的原因主要以下两点:1. 有较大的事务量让Oracle Undo自动扩展,产生过度占用磁盘空间的情况;2. 有较大事务没有收缩或者没有提交所导制;说 明:本问题在ORACLE系统管理中属于比较正常的一现象,日常维护多注意对磁盘空间的监控。备 份: (如果没有在线事务,可以不做,关闭监听) $>exp vas/v
如何得知生产系统高峰时期的最大连接数?
转抄pub帖子:可以参考v$license中的sessions_highwater测试了一下确实可以反映最大连接数SQL> select * from v$license2 ;SESSIONS_MAX SESSIONS_WARNING SESSIONS_CURRENT SESSIONS_HIGHWATER USERS_MAX----------...
关于itl引起的竞争:
Waits for TX in mode 4 can occur if the session is waiting for an ITL (interested transaction list) slot in a block. This happens when the session wants to lock a row in the block but one or more othe...
突破windows 2g限制
转pub帖子:改了个SGA_MAX_SIZE,估计超过了2G,WIN,然后不能启动了conn sys/manager as sysdba说是协议适配器错误,啥都没动啊,这该死的Oracle,就算我把SGA改过大了,windows下用户进程不能大于2G,可修改boot.ini...
常用的SQL语句
常用的SQL语句供大家参考,希望对大家有所帮助。(会陆续加入) 常用的SQL语句常用的SQL语句供大家参考,希望对大家有所帮助。 说明:复制表(只复制结构,源表名:a 新表名:b) SQL: select * into b from...
oracle cast function
cast函数In Oracle/PLSQL, the cast function converts one datatype to another.The syntax for the cast function is:cast ( { expr | ( subquery ) | MULTISET ( subquery ) } AS type_name )The following casts...
怎么知道一个表有多少块在cache中?
问:怎么知道一个表有多少块在cache中? 答:you can get the # of blocks in cache. (note that there are alway blocks not rows in cache)select count(*) from v$bh where objd='your_data_object_id';我的实验...
Redo Wastage
一般的,lgwr写到current log buffer block并且包括current log buffer block,(writes up to and including the current log buffer block),current log buffer block通常仅是部分满。包含redo generation的index...
create index 与alter index 执行计划分析
数据库版本:SQL> select * from v$version;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - ProdPL/SQL Release 10.2...
oracle标签安全测试
oracle标签安全测试:参考:http://www.oracle.com/technology/oramag/oracle/03-jul/o43security.htmlhttp://www.itpub.net/showthread.php?s=&threadid=704487&perpage=10&pagenumber=1oracle 文档其中牵涉到几个...
Primary Database Changes That Require Manual Intervention at a Physical Standby
Most structural changes made to a primary database are automatically propagated through redo data to a physical standby database. Table 9-1 lists primary database structural and configuration changes ...
表中重复记录
查找表中重复记录delete from test1 where rowid in (select rid from (select rowid rid,row_number() over(partition by id order by rowid) rnfrom test1)where rn <> 1 );create table test2 as select id,name ...
如何实现表转置
转摘pub:如何实现表转置?? 如何实现表转置?? SQL> select2 max(decode(rn, 1, field2)) a,3 max(decode(rn, 2, field2)) b,4 max(decode(rn, 3, field2)) c5 from(7 select field1, field2, row_number() over(p...
用rman创建duplicate数据库
一、手工创建辅助实例1。创建密码文件 orapwd file=F:oracleproduct10.1.0em_1databasePWDaux1.ora password=liang2. 创建参数文件initaux1.oraDB_NAME=test(注:与源数据库的db_name相同)DB_UNIQUE_NAME=aux1_test...
data_object_id and object_id
object_id和data_object_id同样是表示数据库对象的一个唯一标志,但是object_id表示的是逻辑id,data_object_id表示的是物理id。如果一些object没有物理属性的话那它就不存在data_object_id,例如procedure,function,...
sys_contex应用举例
Syntax:SYS_CONTEXT('namespace', 'parameter' [, length ])Purpose:SYS_CONTEXT returns the value of parameter associated with the context namespace. You can use this function in both SQL and PL/SQL sta...
Redo Write Size
redo writes的大小是变化的,与要写的the amount of redo有关。从8i开始,LGWR试图避免等待向log buffer的不完全拷贝(也就是不等待正向log buffer拷贝redo的完成)。因此,对于后台写(3秒或1/3满),lgwr写到redo ...