Oracle 聚合函数详解
Oracle 聚合函数详解 一 聚合函数的定义 聚合函数也叫组函数,有的地方也叫集合函数,它的数据源一般来自多组数据,但返回的时候一般是一组数据,聚合函数对一组行中的某个列执行计算并返回单一的值。聚合函数经常与 SELECT 语句的 GROUP BY 子句一同使用,所以有的时候也把其称之为分组函数。...
为什么索引的PCTUSED被设置为0
为什么索引的PCTUSED被设置为0这是一个困扰我很长时间的问题了。在Oracle的文档中就没有设置PCTUSED这个参数,或者,Oracle已经将这个参数默认为0,但是为什么Oracle要这样做?[@more@]为什么索引的PCTUSED被设置为0这是一个困扰我很长时间的问题了。在Oracle的文档中就没有设置PCTUSED这个参数,或者,Oracle已经将这个参数默认为0,但是为什么Oracle要这样做?这个问题是一个国外的一个DBA试题,这个问题应该从以下来说起,先说一个B*Tree上删除一行记录的原理来说:在索引上删除一行记录,其实并不是真的将这行记录从这个索引块中删除,
Oracle SCN及其作用
A system change number (SCN) is alogical, internal timestamp used by Oracle Database. SCNs order events thatoccur within the database, which is necessary to satisfy the ACID properties ofa transaction. Oracle Database uses SCNs to mark the SCN before which allchanges are known to be on disk so tha...
/tmp文件系统无权限导致监听listener启动失败
启动监听失败:cli19-hx8uat<*tpi3hx8*/orahome/app/oracle/network/admin>$lsnrctl start TPI3HX8 LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Produ...
一次临时表空间大量占用问题的处理
<p style="margin-top:0px;margin-bottom:0px;max-width:100%;box-sizing:border-box !important;clear:both;min-height:1em;white-space:pre-wrap;color:#3E3E3E;font-family:'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;line-height:28px;background-color:#FFFFFF;"><spa...
利用nid工具修改db_name时hang住
问题描述:在发出nid命令后,执行到最后,等待了很长时间都没有执行完毕,如下:[oracle@HQ-CICUTESTDB-01 bin]$ nid target=sys/oracle dbname=tpuktestDBNEWID: Release 10.2.0.4.0 - Production on Mon Jun 30 08:09:43 2014Copyright (c) 1982, 2007, Oracle. All rights reserved.Connected to databa...
利用nid工具修改db_name和instance_name
环境:OS version: RHEL5.5DB version: ORACLE10.2.0.4一、利用oracle自带工具nid修改db_name在本例中,原db_name为CICUKNEW,需要更改到TPUKTESTnid(New Database ID)工具为oracle自带的工具,在$oracle_home/bin目录下。转换步骤如下:1.先停库然后sta...
truncate表后impdp导入该表时加exclude=index参数并不能排除索引数据的导入
SQL> truncate table GCADJUSTMENTMAIN;Table truncated.SQL> SELECT segment_name, SUM (bytes) / 1024 / 1024 2 FROM dba_segments 3 WHERE owner = 'XIEZQ' AND segment_name LIKE 'PK%' or segment_name like 'IDX%' group by segment_name;SEGMENT_NAME &n...
UDI-00010: multiple job modes requested, schema and tables
今天使用network_link参数导入数据,发现报错:[oracle@node1 impdp_net_test]$ impdp xiezq network_link=imp_zb parfile=par_imp_sImport: Release 11.2.0.4.0 - Production on Mon May 5 15:10:24 2014Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.Password: Co...