Oracle 资源管理(resource manager)
假如管理一下具有如下问题的产品数据库:后台批作业占用了大量的资源,将会阻碍了其他要同时运行的更重要的作业。如要调度大型作业,但不能预计它们何时才能完成。作业的优先次序没有得到区分,而致使重要的作业不能预先完成。某些用户使用过量的CPU时间,从而导致总体资源缺乏,这时,不得不结束其会话。...
TIMED_STATISTICS 作用
oracle对wait event的统计有两种: 1、只统计wait event的等待的次数(TIMED_STATISTICS为false) 2、统计wait event的等待的时间和次数(TIMED_STATISTICS为true) 为了尽可能能获得wait event的运行情况,是要将值设置为true的。 举例来说: 一个等待事件的等待次数很多,但是实际上他的等...
RMAN的list和report命令详解
一.List命令 RMAN的list命令是一种在数据库控制文件或恢复目录中查询备份的历史信息的方法。 1.列出对应物 命令:list incarnation 作用:为用户提供目标数据库的每个数据库对应物列表,可以将数据库恢复到执行最后一条resetlogs命令前的某个时间点。 示例: 该示例中,可...
sql tuning advisor和sql access advisor区别
tuning advisor 是对输入的sql set的执行计划进行优化accsee advisor 是对sql set当前如果引入索引、分区的话,性能有多大的提升,给出建议。
STATISTICS_LEVEL parameter
Automatic purging is enabled when STATISTICS_LEVEL parameter is set to TYPICAL or ALL. If automatic purging is disabled, the old versions of statistics need to be purged manually using the PURGE_STATS procedure.
SQL Repair Advisor
As a DBA or a developer of SQL code you probably know that SQL statements can be maddeningly frustrating to write. just getting the WHERE clause just right can be a time-consuming process requiring monumental effort. Frustration really comes when you encounter errors when running SQL that you know s...
oracle压缩表表空间
表压缩是如何工作的在Orcle9i第2版中,表压缩特性通过删除在数据库表中发现的重复数据值来节省空间。压缩是在数据库的数据块级别上进行的。当确定一个表要被压缩后,数据库便在每一个数据库数据块中保留空间,以便储存在该数据块中的多个位置上出现的数据的单一拷贝。这一被保留的空间被称作符号表(symbol table...
SQL management base
The SQL management base (SMB) is a part of the data dictionary that resides in the SYSAUX tablespace. It stores statement logs, plan histories, SQL plan baselines, and SQL profiles. To allow weekly purging of unused plans and logs, the SMB uses automatic space managem...
SMON 作用
SMON负责系统监视已经一些系统清理及恢复工作,这些工作主要包括:1.清理临时空间以及临时段SMON负责在数据库启动时清理临时表空间中的临时段,或者一些异常操作过程遗留下来的临时段,例如,当创建索引过程中,创建期间分配给索引的Segment被标志为TEMPORARY,如果Create Index (或rebuild Index等)会话因某些原因异常...
checkpoint 作用
checkpoint是一个数据库事件,它将已修改的数据从高速缓存刷新到磁盘,并更新控制文件和数据文件。 我们知道了checkpoint会刷新脏数据,但什么时候会发生checkpoint呢?以下几种情况会触发checkpoint。 1.当发生日志组切换的时候 2.当符合LOG_CHECKPOINT_TIMEOUT,LOG_CHECKPOINT_INTERVAL,fast_start_i...
PMON 作用
Process Monitor(PMON):performs process cleanup when a user process failsThe process monitor (PMON) monitors the other background processes and performs process recovery when a server or dispatcher process terminates abnormally. PMON is responsible for cleaning up the database buffer cache and fre...
数据库的备份与恢复分析及实例
归档模式:可以进行一致性备份(冷备)和非一致性备份(热备)。非归档模式:一致性备份(冷备) 一致性备份(冷备份):在数据库正常关闭情况下做备份,数据库处于一致性状态。(可以用于归档和非归档),所有SCN号一致。缺点:数据库需要关闭。非一致性备份(热备份):数据库在open状态下备份(用于归档模式...
Shared SQL Areas和Private SQL Areas
Shared SQL Areas和Private SQL AreasOracle 用Shared SQL Areas和Private SQL Areas描述每个SQL语句。当两个用户使用相同SQL语句时,Oracle可以在Shared SQL Areas中识别出来,并且重复利用。但是每个用户必须在Private SQL Areas拥有自己的一份SQL语句拷贝。Shared SQL area包含了用于执行SQL语句的计划,Shared SQL ...
基于值的审计(value-based auditing)
基于值的审计(value-based auditing)进行数据库审计时会记录审计对象中发生的插入、更新和删除操作,但是不会捕获更改的实际值。要扩展数据库审计,可使用基于值的审计,利用数据库触发器(事件驱动的PL/SQL 构造)来捕获更改的值。用户在连接了相应触发器的表中插入...
retention guarantee使用场景和作用
retention guarantee使用场景和作用undo_retention参数的作用:undo_retention用来控制当transaction被commit之后,undo信息的保留时间。这些undo信息可以用来构造consistent read以及用于一系列的闪回恢复,而且足够的undo信息还可以减少经典的ORA-01555错误的发生,在Oracle 9R1中呢,这个value的默认值是900秒,Ora...
Automatic SQL Tuning 原理
Automatic SQL Tuning 原理:基于自动工作负载信息库最高位sql标识的sql语句进行优化。1.如果是非dba用户,要赋予advisor权限2.创建tuning任务 使用在awr报表中发现有问题的sql进行tuning,还可以直接使用sql_id,cache cursor,sqlset(sql集)等方法 创建...
oracle 支持平台(support workbetch)的讲解及使用
http://blog.csdn.net/rlhua/article/details/14162515
Virtual Private Catalog 作用
11g RMAN Virtual Private CatalogIn Oracle 11g, we can grant restricted access to the RMAN catalog to some users so that they can only access a limited set of databases that are registered in the RMAN catalog.This is done by creating a Virtual Private Catalog which in turn will g...
SEC_MAX_FAILED_LOGIN_ATTEMPTS 用途
SEC_MAX_FAILED_LOGIN_ATTEMPTS 用途:SEC_MAX_FAILED_LOGIN_ATTEMPTS specifies the number of authentication attempts that can be made by a client on a connection to the server process. After the specified number of failure attempts, the connection will be automatically dropped by the server pr...
alter table table_name shrink space compact
alter table table_name shrink space compact 字面意思就是将表变得更加紧凑。如果经常在表上执行DML操作,会造成数据库块中数据分布稀疏,浪费大量空间。同时也会影响全表扫描的性能,因为全表扫描需要访问更多的数据块。从Oracle 10g开始,表可以通过shrink来重组数据使数据分布更紧密,同时降低HWM释放空闲数据...