2012-12-05 generate sequence
--1. by japanselect level n from dual connect by level <=10;--2. by tomkyteselect rownum n from all_objects where rownum<=10;--3. select to_number(column_value) n from xmltable('1 to 10');...
2012-11-30 IGNORE_ROW_ON_DUPKEY_INDEX
http://yangtingkun.itpub.net/post/468/492003在11.2中,Oracle新增了一个HINT,使得INSERT INTO SELECT操作可以避免插入重复的记录。首先创建一个包含主键的表:SQL> CREATE TABLE T 2 (ID NUMBER, 3 NA...
2012-09-26 PLAN HASH VALUE ISSUE ABOUT SUBQUERY FACTORING
with subq as ( select /*+ materialize */ outer.* from &...
2012-09-26 APPEND_VALUES Hint
APPEND_VALUES Hint in Oracle Database 11g Release 2http://www.oracle-base.com/articles/11g/append-values-hint-11gr2.phpWe have been able take advantage of the performance benefits of direct-pat...
2012-08-28 ROWDEPENDENCIES
http://www.itpub.net/thread-982860-1-1.html默认表中修改块中的记录会影响本块其他记录的 ora_rowscn如果加上ROWDEPENDENCIES ,那么修改记录只影响本记录的ora_rowscn,不会引起其他记录的改变加上这个功能,会...
2012-08-17 New Implementation for Nested Loop Joins
http://docs.oracle.com/cd/E11882 ... optimops.htm#i49732Oracle Database 11g introduces a new implementation for nested loop joins to reduce overall latency for physical I/O. When an index or a table...
2012-07-19 issue: drop materialized view log
http://www.itpub.net/thread-1637386-1-1.html在表AAA上创建了物化试图,但用户通过drop table MLOG$_AAA的方式把mview log直接干掉了,而不是通过 drop materialized view log on AAA的方式。此时再对这个表进行...
2012-07-19 Using Multicolumn Partitioning Keys
http://www.itpub.net/thread-1637063-1-1.htmlSQL> create table test 2 ( 3 a number, 4 b number, 5 c nu...
2012-07-19 ORA-1652: unable to extend temp segment
http://www.itpub.net/thread-1144914-1-1.htmlQ:数据表空间报ORA-1652: unable to extend temp segment by 8 in tablespace ...报的表空间不是临时表空间,是数据表空间用户也没有把此数据表空间用做临时表空间...
2012-03-07 递归wih
今天用递归with搞定一个sql,用connect by 弄了半天都没弄出来ref: http://www.itpub.net/thread-1225621-2-2.htmlWITH子查询也称为CTE (Common Table Expression),是ANSI SQL-99标准的一部分。ORACLE从9i开始...
2012-03-05 ArraySize
arraysize定义了一次返回到客户端的行数,当扫描了arraysize 行后,停止扫描,返回数据,然后继续扫描。 这个过程就是...
2012-02-22 Deferred Statistics Publishing
http://space.itpub.net/12020513/viewspace-62658411g的一个新特性,表示收集完统计信息不是立即发布(默认立即发布),让所有用户可用,而是可以先保存成待定统计信息,供测试用,当觉得测试结果满意,可靠后...
2012-02-14 dbms_shared_pool.purge
前阵子被问到有没有办法把某句特定SQL的execution plan flush出shared pool,或者强制生成新的执行计划。当时上了Metalink和Google一顿狂搜,毫无所获。后来从一个朋友那里得到这篇文章,正是我想要的,赶快记...
2012-02-14 level,connect_by_isleaf,connect_by_iscycle
nat@ORCL-10.1.16.14>select lpad(' ',4*(level-1))||e.empno empno,e.mgr,connect_by_isleaf,connect_by_iscycle,level from emp e start with e.mgr is null connect by nocycle prior e.empno=e.mgr;EMPNO &...
2012-01-17 口令文件
1.win和unxi下口令文件不同:grant sysdba to scottORA-01994: GRANT failed: password file missing or disabled参数:remote_login_passwordfile EXCLUSIVE重建口令文件:orapwd file=$oracle_hom...
2012-01-09 log errors into clause
新知识点1: log errors into clausescott@ORCL-10.1.16.14>exec dbms_errlog.create_error_log('emp','emp_log');PL/SQL procedure successfully completed.Elapsed: 00:00:00.00scott@ORCL-10....
2012-01-06 10gR2 HASH GROUP BY BUG
新知识点1:10GR2 HASH GROUP BY BUGBUG 描述:This problem is introduced in the 10.2.0.1 base release.Wrong results possible from the result of a non-distinct aggregation with a group by (such as sum(co...
2012-01-05 Redo Parallelism && In Memory Undo
新知识点1:Redo Parallelismhttp://www.hellodba.com/reader.php?ID=28&lang=cn Redo log 是用于恢复和一个高级特性的重要数据,一个redo条目包含了相应操作导致的数据库变化的所有信息,所有redo...