Creating updatable views using INSTEAD OF triggers[akadia]
INSTEAD OF triggers provide a transparent way of modifying views that cannot be modified directly through UPDATE, INSERT, and DELETE statements. These triggers are called INSTEAD OF triggers because, ...
用index and no_index优化了两个 sql 语句
环境:aix 433 oracle9204 rac.唯一需要注意的是,在indexname前一定要加tablename,不加则效果不好,好像以前从来不用加的.
oracle与unix时间的转换 zt
http://www.itwenzhai.com/data/2006/0523/article_8484.htmCREATE OR REPLACE FUNCTION unix_to_oracle(in_number NUMBER) RETURN DATE IS BEGIN RETURN TO_DATE('19700101','yyyymmdd') + in_number/8...
根据lob segment找到所属对象
我们经常看到诸如: SYS_LOB0000135102C00022$的lob segment.如果找到它属于哪个表或者索引呢?其实,名称中的 135102 就是 object_id, 从 dba_objects 就可以查到对象的信息. ...
解决oracle9i数据库不能通过dblink直接访问oracle7数据库
其实也很简单,在中间建一个oracle8/oracle8i数据库,中间过渡一下即可.
ORA-01652: unable to extend temp segment by string in tablespace string
用户在sqlldr一个大文件的时报错,表空间还有很大的剩余空间,经检查,原因是表空间的DMT的,频繁的dml导致碎片过多.将表的存储参数改小即可.
测试
chr(92) ""
今天优化了一个110系统
环境: oracle9205 rac , p690 ,rbo数据量增长很快.在程序,主机等没有改变的情况,突然从2005.11.20开始,很多查询语句变慢了几时倍。经过检查,除了个别语句很烂以外,大部分语句只要加rbo hint就可以在1S内...
ORA-01410:Invalid ROWID
解决ORA-01410:Invalid ROWID的一般步骤===========================================================1.使用ANALYZE TABLE <table> VALIDATE STRUCTURE CASCADE验证表和索引中的rowid是否有效.2.设置event = "1410 ...
How to return an exit code from SQL*Plus to the Unix Shell ?[akadia]
If you want to return a code from SQL*Plus to the UNIX shell script, then the WHENEVER SQLERROR directive can help. We can return a status from 0...255 to the UNIX shell. This is usually in the $? env...
第一次见到这么长的SQL语句
来自一个ERP系统,运行时间越为5分钟,但用户希望是10秒以内.不过还是很佩服作者的,过几天才有时间考虑 .SELECT X.ORGANIZATION_CODE, X.compeq_lot_num real_lot_num, &n...
oracle8i的新特性
来自网友1Internet计算 Java 1.1 ● WebDB,用于建立、部署和监视Web应用1.2 ● iMedia1.3 ● OracleInternet文件系统 ● 数据库中的JavaVM1.4 ● Java存储过程、函数和触发器1.5 ● 在Java、SQL...
Logging using autonomous transactions[akadia]
At times, you may want to commit or roll back some changes to a table independently of a primary transaction's final outcome. For example, while running a transaction, you may want to log error messag...
Patch 4658188
用来解决oracle9207 for rac 关于ksu process alloc latch yield的一个bug.
拷贝lx5035c.nlb时出错
在windows2003上安装ora8i,oracle9i数据库代码时,报以上错误。后来又换了一个oracle9i安装盘,看来是安装文件有问题。
ora-24324 ora-24323 ora-28547
在建库时遇到这个错误:ORA-24324: service handle not initializedORA-24323: value not allowedORA-28547: connection to server failed, probable Oracle Net admin error解决方法:注销sqlnet.ora 文件里的以下行...
The mystery of Stored Outlines[akadia]
Where to use Stored Outlines ?The SQL statements in a hybrid system need to have an execution plan that is appropriately tailored for the type of system configuration you are using. When running the s...
Show Table and System Privileges[akadia]
It is normally difficult to list all privileges and roles assigned to a specific user in one select, since a privilege can be assigned to a role, which can be assigned to another role, which in turn c...
如何将xml格式的数据导入oracle里
1.在oracle建好表2.用excel打开xml文档,进行格式的修改3.用toad导入表中4.写过程将数据更新到相应的表中
一个和控制文件有关的问题
--一个开发数据库,启动报错:Mon Nov 27 15:10:02 2006Database mounted in Exclusive Mode.Completed: ALTER DATABASE MOUNTMon Nov 27 15:10:02 2006ALTER DATABASE OPENMon Nov 27 15:10:02 2006Rolling back ...