statspack安装使用 和 report 分析
一. Statspack 安装 statspack 是Oracle 9i 之前使用的一个数据库收集工具。 通过该工具的分析可以清楚的看到数据库的信息。 statspack 的安装过程如下: 1. 安装statspack. &nb...
Version Count数目过多诊断的方法
Oracle SQL调优是我们进行应用系统调优的一个重要方面。一个SQL的书写方式、执行计划和执行时间会显著的影响到系统的投产性能。本篇我们主要聊一下SQL version count数目过多,子游标过多的问题诊断。 ...
Oracle 高 Version counts 问题说明
一. version count 说明 MOS上有文档说明此问题,参考:[ID296377.1] Oracle里的所有SQL 语句都是implicitly sharable的。 当用户提交了一个SQL语句,RD...
Resetlogs和Noresetlogs
一.创建控制文件时:Resetlogs和Noresetlogs当我们将控制文件备份到trace 文件时,可以看到里面包含了2部分的重建语句,一个是使用resetlogs,另一个是使用noresetlogs。 备份控制文件的SQL 如下:SQL>alterdatabase backup controlfile to trace 有关控制文件的详细说明,参考:...
全面学习ORACLE Scheduler特性(9)创建Chains
五、使用Chains 今天要来认识一位新同学:CHAIN(注意不要敲成CHINA)。CHAIN可以被视做一组Programs的复合,举个简单的例子:运行PROGRAM:A以及PROGRAM:B,如果成功的话继续运行PROGRAM:C,否则的话运行PROGRAM:...
全面学习ORACLE Scheduler特性(7)Scheduler抛出的Events
四、使用Events Event直译对应的中文解释是指事件,不过单纯讲事件毕竟太抽象了,举个示例来形容吧。A(对应某个应用程序,或者是ORACLE中的进程)在干活时突然眉头一皱说道,不好,前方有情况,这可怎么办!这时...
全面学习ORACLE Scheduler特性(6)设置Repeat Interval参数
3.3 设置Repeat Interval Job 和Schedule中REPEAT_INTERVAL参数都是用来控制执行的频率或周期,虽然说周期是一个时间性概念,不过REPEAT_INTERVAL指定的时候并不是一个时间值,而是由一组关键字描述的时间...
全面学习ORACLE Scheduler特性(2)管理jobs
1.2 管理Jobs 1.2.1 启用Jobs 前面创建JOB时,由于未显式的指定ENABLED参数,因此即使指定了START_DATE,不过默认情况下JOB不会自动执行。对于这种情况,DBMS_SCHEDULER包中提供了一个过程ENABLE...
全面学习ORACLE Scheduler特性(1)创建jobs
所谓出于job而胜于job,说的就是Oracle 10g后的新特性Scheduler啦。在10g环境中,ORACLE建议使用Scheduler替换普通的job,来管理任务的执行。其实,将Scheduler描述成管理job的工具已经太过片面了,10G版本...
Oracle Resource Manager
官网的链接说明About Oracle Database Resource Managerhttp://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm001.htm#i1007556 一. Solutions Does the Resource ManagerProvide for Workload Management?When databaseresource allocation decisions are left to the ...
DBMS_REPAIR处理坏块
DBMS_REPAIR 1> OracleDB出现块坏情况下,假如DB没有备份,可以使用Oracle包dbms_repair, 对受损的数据块进行标识.在DB进行查询备份等时, 不在对其标识的数据块进行访问. 如受损的数据块为索引index,删除索引,重新建立即可. 如果受损数据块上有数据,易引起数据丢失. Ora...
HASHKEYS和SIZE参数对HASH SORT CLUSTER表的影响
对于HASH CLUSTER表而言,HASHKEYS和SIZE是最重要的存储参数设置,而对于HASH SORT CLUSTER表也是一样的。 对于一个正常设置参数的HASH SORT CLUSTER表:SQL> CREATE CLUSTER C_HASH_SORT 2&nb...
简述Oracle IOT(Index Organized Table)(中)
上篇中我们简单介绍了一下IOT的基本知识和概念。本篇继续来介绍IOT相关的内容。 4、IOT日常维护 相对于堆表heap结构,索引组织表最大的特点在于将数据行全部内容作为叶子节点保存在索引结构中...
oracle优化常用经典参考
oracle优化常用脚本
Oracle Direct-Path Insert学习笔记
(1)、Oracle插入数据有两种方式:a、常规插入:重新使用table中的自由空间,在已有数据中插入新数据;维护引用完整性约束。b、Direct-Path插入:在表中已有数据之后插入新数据;数据直接插入数据文件,绕过buffer cache;已有数据中的自由空间没有被重新利用;忽略了引用完整性约束。 ...
Shrinking Database Segments Online
Shrinking Database Segments Online You use online segment shrink to reclaim fragmented free space below the high water mark in an Oracle Database segment. The benefits of segment shrink are these:1.Compaction of data leads to better cache utilization, which in turn lea...
Oracle Resumable Space Allocation 特性 说明
一.Resumable Space Allocation 说明 从9i开始,Oracle提供了一种避免因为space Error而导致事务异常的操作: resumable spaceallocation. 在Oracle 10g的OCP 考试中有考resumable session 的这个知识点。官网对Resumable的解释: Advantage is forDBAs who are running yearly reports and do not know how ...
Analyzing Tables, Indexes, and Clusters
1.Analyzing Tables, Indexes, and ClustersYou analyze a schema object (table, index, or cluster) to:1.Collect and manage statistics for it2.Verify the validity of its storage format3.Identify migrated and chained rows of a table or clusterNote:...
Managing Datafile
1.Creating Datafiles and Adding Datafiles to a TablespaceYou can create datafiles and associate them with a tablespace using any of the statements listed in the following table. In all cases, you can either specify the file specifications for the datafiles being created, or you...
Altering and Maintaining Tablespaces
1.Increasing the Size of a TablespaceYou can increase the size of a tablespace by either increasing the size of a datafile in the tablespace or adding one. See "Creating Datafiles and Adding Datafiles to a Tablespace" for more information.Additionally, you can enable automatic fi...