减少sql硬、软解析
通过session_cached_cursors 参数来减少软解析次数。--装备测试的脚本1.sql.sqlset echo off;set feedback off;set termout off;select /*+session_cursor_test_11*/count(*)  ...
oracle优化相关SQL语句集锦
当前系统存在的解析数:select a.name, value from v$sysstat a, v$statname b where a.STAT_ID = b.STAT_ID and a.STATISTIC# = b.STATISTIC# and b.NAME ...
rman删掉过期文件
rman备份后物理删掉了备份的文件,会导致备份过期,必须使用rman命令删除:rman>crosscheck backup; 执行备份的交叉检查。rman>delete expired backup; 删除过期的备份rman>list backup;发现什么都没...
sql where 1=1 0=1
where 1=1有什么用?在SQL语言中,写这么一句话就跟没写一样。 select * from table1 where 1=1与select * from table1完全没有区别,甚至还有其他许多写法,1<>2,'a'='a','a'<>'b',其目的就只...
转载:概要设计与详细设计
概要设计与详细设计的区别 概要设计就是设计软件的结构,包括组成模块,模块的层次结构,模块的调用关系,每个模块的功能等等。同时,还要设计该项目的应用系统的总体数据结构和数据库结构,即应...
hash join / nest loop join / sort merge join
hash join : 用在两个表数据量差别比较大的时候nest loop join : 一般用在连接的表中有索引,并且索引选择性较好的时候merge join: 用在没有索引,而且数据已经排好序的时候Hash join步骤:将两...
/*+ append */ ORA-12838错误
sql> create table t as select * from all_objects;sql> insert /*+ append */ into t select * from t;这类语句不能连续执行。ORA-12838: cannot read/modify an object after modifying it i...