这些日期是如何输入的?
前几天检查一个问题,发现执行结果有一些奇怪。select max(aae036),min(aae036) from ZK06 where aae036 is not null 发现在toad下min有结果,而max为空。链接在这里:http://www.itpub.net/449549.html主要的问题...
8i下sort*排序大小以及执行计划的问题?
最近看8i下sort设置对执行计划的影响,发现一些奇特的现象,特此写下来: 最近看8i下sort设置对执行计划的影响,发现一些奇特的现象,特此写下来: a.sql:SELECT a.name, b.value FROM v$statname ...
另类SQL优化
http://www.itpub.net/428148.html我最近遇到一个sql的优化问题,由于受到许多限制,想了许久终于找到解决方法: sql语句如下: SELECT COUNT (*) FROM kc24 WHERE aae040 >= :b1 AND aae...
转载: 总结:oracle穿过防火墙的问题
http://www.itpub.net/424770.html环境:win2000,oracle 9.2.0.1方法一:在windows2000的注册表中,hkey_local_machinesoftwareoraclehome0下加入字符串值: USE_SHARED_SOCKET=TRUE,即可方法二:1、首...
执行长查询时,怎样获取进度?
摘自:http://www.itpub.net/220165.html通过v$session_longops 中SOFAR TOTALWORK 等字段可以获得This view displaysthe status of various operations that run for longer than 6 seconds (inabsolute time). ...
请教关于ANALYZE 命令的一些疑惑
摘自:http://www.itpub.net/410314.htmlFOR TABLE Specify FOR TABLE to restrict the statistics collected to only tablestatistics rather than table and column statistics.FOR COLUMNS Specify FOR COLUMNS...
如何把字典管理表空间方式变成本地管理表空间
摘自:http://www.itpub.net/40477.htmldbms_space_Admin.tablespace_migrate_to_local(tablespace_name=>'DMT_DROP')
简单看ora错误的方法。
例子:bash-2.03$ oerr ora 6400064, 00000, "object is too large to allocate on this O/S (%s,%s)"// *Cause: An initialization parameter was set to a value that required// allocating more conti...
关于select count(*) from table的讨论
摘自:http://www.itpub.net/381892,2.html下面是我测试的结果:scott@ORCL> set autotrace traceonlyscott@ORCL> CREATE INDEX I_DEPT_NAME ON DEPT (DNAME) ;Index created.scott@ORCL> analyze table dept c...
转载:ASSM内部存储研究大揭密
摘自:http://epub.itpub.net/9/7.htm倾力大奉献——ASSM内部存储研究大揭密作者:Piner 一、 ASSM的基本情况 在920以前,表的剩余空间的管理与分配都是由连接列表freelist来完成的,因为fre...
sqlplus 能生产xls的excel文件
摘自:http://www.itpub.net/361288.htmlSET NEWPAGE 0SET SPACE 0SET LINESIZE 80SET PAGESIZE 0SET ECHO OFFSET FEEDBACK OFFSET VERIFY OFFSET HEADING OFFSET MARKUP HTML OFF SPOOL OFFset markup h...
如何写这个sql语句?
摘自:http://www.itpub.net/96851.html表dept, emp要得到如下结果deptno, dname, employees---------------------------------10, accounting, clark;king;miller20, research, smith;adams;ford;scott;jone...
使用别的分割符号
摘自:http://www.itpub.net/356687.htmlscott@ORCL> set colsep ','scott@ORCL> select * from dept ; DEPTNO,DNAME ,LOC----------,---------...
怎样把只需要的表从dmp.Z里面解压出来?
摘自:http://www.itpub.net/356228.htmlhttp://www.oracle-books.com/oracle/tips.htmlExport / Import using named pipe with compressTo export to a compressed file:/etc/mknod pipename pcompress < pipen...
转载:请教关于dual表的问题
出自:http://www.itpub.net/351775,2.htmlThe table DUAL is deleted in migrate.bsq when running the MigrationUtility. Solution: --------- You need to manually create table DUAL byrunning the fol...
补充:小心设置cursor_sharing=force参数
转载自:http://www.itpub.net/351520,2.html摘自:expert one-on-one oracle (P554)設置cussor_sharing=force之後,會有以下的情況:• Optimizer related issues – CURSOR_SHARING will remove all ...
oracle的一个隐含参数
_allow_resetlogs_corruption=true这个是隐含参数,一般用于当前日志丢失而又无任何备份的情况。可以忽略掉redolog的scn强行打开数据库。recover以后会报600的内部错误,不过没事,只要能打开数据库就可以了,...
数据文件丢失如何恢复
摘要: 数据文件丢失如何恢复,内容来自以下讨论:http://www.itpub.net/348275.html数据库归档模式,新建表空间testtbs, 数据文件testtbs.dbf关闭数据库删除数据文件testtbs.dbf启动数据库提示:ORA-01157: 无法标...
一条sql语句的优化
今天跟踪程序,无意中发现一条不良的SQL语句今天跟踪程序,无意中发现一条不良的SQL语句分析如下:SELECT fee_stat_name, NVL (t1.b, 0) FROM (SELECT fee_code, NVL (...
索引压缩
星期天看《expert one-on-one oracle》,发现以前建立的一个索引可能不合理,sql语句如下:SELECT NVL (MAX (seeno), 0) + 1 FROM r_register WHERE dept_code = :1 AND noon_code = :2&...