SQL优化涉及到的基本概念(一)
转自http://blog.itpub.net/post/26/3256参考:http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#721Overview of SQL Processing1. parser 进行语意和语法分析2. Optimizer 利用RBO,CBO等方法决定产生查询结果的最有效路径3. Row Source Generator 从2中接受优化后的方案,并产生SQL的Execution Plan4. SQL Execution Engine运行该执行计划,并产生查询结果Features that Require the CBO1. Partitioned tables and indexes 2. Index-organized tables 3. Reverse key indexes 4. Function-based index
Windows编程启示录
工作之余也看看别的公司是怎么编程的Windows编程启示录[@more@]
dump
转自http://ningoo.itpub.net/post/2149/287794Oracle常用dump命令,记录一下备查。一.Memory Dumps1).Global AreaALTER SESSION SET EVENTS 'immediate trace name global_area level n';1 包含PGA2 包含SGA4 包含UGA8 包含indrect memory2).Library CacheALTER SESSION SET EVENTS 'immediate trace name library_cache level n';1 library cache统计信息2 包含hash table histogram3 包含object handle4 包含object结构(Heap 0)3).Row CacheALTER SESSION SET EVENTS 'immediate trace name row_cache level n';1 row cache统计信息2
货币战争
或许是戏说或许是实战,偶尔读点经济学的书还是不错的.[@more@]货币战争
地球是平的
英文名称The world is flat.[@more@]
常用网站
综合性网站新浪新闻 http://news.sina.com.cn 天涯社区 http://www.tianya.cn技术性网站ITPUB http://www.itpub.netJonathan Lewis http://www.jlcomp.demon.co.uk/asktom http://asktom.oracle.com/Yong Huang http://www.rootshell.be/~yong321/ d.c.b.a http://feed.feedsky.com/anysql http://www.anysql.net/ http://www.dbatools.net/[@more@]
SQL小小擂台------请用一个sql更新主键列
create table myobjectas select rownum as id, a.* from all_objects awhere rownum<=5000;alter table MYOBJECTadd constraint pk_myobject primary key (ID);create table mychange(id1 number,id2 number);declarei integer;beginfor i in 1..500loopif mod(i,7)=0 then--此处是模拟产生数据,ID1,ID2之间没有关联关系,是随机的insert into mychange(id1,id2) values(i,i+1000);end if;end loop;end;说明:请根据mychange表的数据来更新myobject表.更新方式为把myobject表的id根据mychange中的两个字段对调.比如 mychange 中的一条