> 文章列表 / Page 325

2009-06-18

如何设计分区索引

通过下图定义的规则,可确定分区索引类型: Hash Global分区索引介绍 HASH-Partitioned Global索引是Oracle 10g开始提供的新特性。而在以前的版本中 ,Oracle只支持Range-Partitioned Global索引。HASH-Partitioned Global索引的好处如下: 比Range-Partitioned Global索引易于实施。HASH-Partitioned Global索引是根据 索引字段值,通过Oracle内部的HASH算法自动均匀散列到定义的分区中。而 Range-Partitioned Global索引需要根据索引字段值的范围进行分区,因此实施和 维护的难度都大。 HASH-Partitioned Global索引适合于在并发量、吞吐量很大的交易系统(OLTP) 中,对某些字段的访问冲突。尤其是sequence字段值。 HASH-Partitioned…
#POST 1 MIN READ
2009-06-17

Script:List Buffer Cache Details

以下脚本用于列出Oracle Buffer Cache的详细信息: REM List Buffer Cache Details SET LINESIZE 200 PAGESIZE 1400 SELECT /*+ ORDERED USE_HASH(o u) MERGE */…
#POST 3 MIN READ
2009-06-17

Script:List NLS Parameters and Timezone

以下脚本用以列出Database-instance-session的NLS参数和所在时区: REM List NLS Parameters set linesize 90 pagesize 1400 col Parameter for a40 col Value for a40 SELECT Parameter,…
#POST 1 MIN READ
2009-06-17

Script:List SORT ACTIVITY监控临时空间的使用

以下脚本可以用于列出数据库内的排序活跃性能信息并监控临时空间的使用: REM SORT ACTIVITY set linesize 150 pagesize 1400; SELECT d.tablespace_name "Name", TO_CHAR(NVL(a.bytes / 1024 / 1024, 0),'99,999,990.900') "Size (M)",…
#POST 8 MIN READ
2009-06-17

Script:List OBJECT DEPENDENT

以下脚本用以列出数据库中对象的依赖性: REM OBJECT DEPENDENT select D_OBJ#,        do.object_name,        do.object_type dtyp,        do.status      dsta,        D_TIMESTAMP,        ORDER#,        P_OBJ#,…
#POST 4 MIN READ
2009-06-16

List Oracle SQL Hints

Below lists Oracle SQL hints: Sql hints View more documents from Maclean Liu
#POST 1 MIN READ
2009-06-16

Oracle SQL Function Detail

Below lists Oracle SQL Function , and which version introduce this: SQL> SELECT NAME,VERSION,DATATYPE,DESCR FROM v$sqlfn_metadata order by 2; NAME…
#POST 29 MIN READ
2009-06-14

Script:Logfile Switch Frequency Map

该脚本可以用于列出Oracle日志文件切换的频率图: REM Log Switch Frequency Map col Day for a10 col Date for a10 set linesize 80 SELECT trunc(first_time) "Date",…
#POST 2 MIN READ
2009-06-14

Script:Tablespace Report

该脚本用以汇总表空间使用情况报告: REM tablespace report set linesize 200 select a.tablespace_name, round(a.bytes_alloc / 1024 / 1024) megs_alloc, round(nvl(b.bytes_free, 0) / 1024 /…
#POST 4 MIN READ