如何处理Oracle数据库中的坏块问题(转)
本文主要介绍如何去处理在Oracle数据库中出现坏块的问题,对于坏块产生在不同的对象上,处理的方法会有所不同,本文将大致对这些方法做一些介绍。因为数据库运行时间长了,由于硬件设备的老化,出现坏块的几率会越来...
histogram与10053(zt)
histogram是oracle为cbo提供更精确的成本估计而设计的一种直方图数据。histogram能提供列的数据分布,每次分析表后列的分布信息将会被保存在统计表里面,分析时默认的histogram size是75,意思就是采用75个buckets来...
sybase复制(zt)
sybase复制步骤以前写过一篇基于表复制的,这次是基于整库复制的(warm standby) 复制服务器名字 : HRB_REP 主数据库服务器和主库HRB_HB.maindb to 备份数据库服务器和备份库HRB_HB_REP.maindb 1. 复制服务器和ASE数...
Oracle的全文检索技术(转)
Oracle一直致力于全文检索技术的研究,当Oracle9i Rlease2发布之时,Oracle数据库的全文检索技术已经非常完美,Oracle Text使Oracle9i具备了强大的文本检索能力和智能化的文本管理能力。Oracle Text是Oracle9i采用的...
sqlserver外键
A为主表B为子表 select t1.name,t2.rtableName,t2.namefrom(select col.name, f.constid as tempfrom syscolumns col,sysforeignkeys fwhere f.fkeyid=col.idand f.fkey=col.colidand f.constid in( select d...
如何处理Oracle数据库中的坏块问题(转)
本文主要介绍如何去处理在Oracle数据库中出现坏块的问题,对于坏块产生在不同的对象上,处理的方法会有所不同,本文将大致对这些方法做一些介绍。因为数据库运行时间长了,由于硬件设备的老化,出现坏块的几率会越来...
Oracle's V$ Views(转)
To be finished... The following views are part of the data dictionary. See also Oracle's x$ tables v$archive_destShows all archived redo log destinations. Use this view to find out to which place arch...
SYBASE学习笔记(zt)
简介: 对学习sybase和ms-sqlserver的体会,包括安装、初始化、sql学习,过程和触发子创建,db-library和ct-library以及同oracle的不同之处,和细节注意对比。 第一大块:Sybase安装 [redhat 7.2] Sybase rpm 包安装...
Oracle SQL optimization(zt)
Oracle SQL optimization(摘自SAP Note 766349) Symptom1. What is SQL optimization?2. How important is SQL optimization?3. Which criteria are used to determine the load of an SQL statement?4. Where can I...
2Gb - File limits in Oracle(转)
原文出处:http://metalink.oracle.comDoc ID: Note:62427.1 原文创建日期:1998-9-2 原文最后更新日期:2003-8-6介绍本文阐述了“2Gb”问题,解释了为什么2Gb会是一个这样充满魔力的数字,并且如果你想在Oracle的应...
9206下配置双向stream
一个客户要在9206上用双向stream,个人不推荐这么做(每天800G的日志有点恐怖),今天下午给搭建了测试环境,配置过程记录下。SQL> select * from v$version;BANNER---------------------------------------------...
Convert a Physical Standby Database into a Snapshot Standby Database
Convert a Physical Standby Database into a Snapshot Standby Database by Eric Jenkinson on June 21, 2010 Categories: Data GuardTagged: Data Guard, snapshot, standbyOracle Database 11g introduced...
Oracle计算时间函数(对时间的加减numtodsinterval、numtoyminterval)
11g interval分区,按天分区,需要用到函数numtodsinterval。 create table T_PAR(dt date)partition by range (dt)interval(numtodsinterval(1,'day'))(PARTITION SYS_001 VALUES LESS THAN (TO_DATE(...
delete/truncate删除数据索引空间问题
delete/truncate删除数据索引空间问题drop table dt_test_tab; create table dt_test_tab (i number); create index dt_test_idx on dt_test_tab(i); insert into dt_test_tab values (1); insert into dt_test_tab ...
GC Buffer Busy Waits in RAC: Finding Hot Blocks
Well I don’t have a lot of time to write anything up… sheesh - it’s like 10pm and I’m still messing with this. I should be in bed. But before I quit for the night I thought I’d just do a quick po...
如何在PL/SQL中读写文件(转)
在oracle9i,如何在PL/SQL中读写文件PL/SQL 3.3以上的版本中,UTL_FILE包允许用户通过PL/SQL读写操作系统文件。如下: declare file_handle UTL_FILE.FILE_TYPE;begin file_handle := UTL_FILE.FOPEN('TMP', '文件名...
dbms_stats
1.base 1) 为了让查询优化器(query optimizer)产生最优的执行计划,对象上的statistics一定是要有效的。oracle数据库收集statistics的功能在每个版本都在得到不断的提高 2) 8i中,引入了dbms_sta...
Automatic Diagnostic Repository (ADR) with Oracle Net for 11g
Using and Disabling the Automatic Diagnostic Repository (ADR) with Oracle Net for 11g [ID 454927.1] 修改时间 08-OCT-2010 类型 HOWTO 状态 PUBLISHED In this Document Goal...
分布式查询优化SERIAL_FROM_REMOTE
SQL> set autotrace onSQL> select * from zhouwf.temp1@cslndc,zhouwf.temp2 where temp1.id=temp2.id;ID MC---------- ------------------------------------------------------------ID MC---------- -----------...
EXCEPTION里捕捉行号(转)
Tracing Lines By Steven Feuerstein Find and report your errors—by line number—in Oracle Database 10g. PL/SQL offers a powerful and flexible exception architecture. Of course, there is always room fo...