全面学习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...
Creating Tablespaces
1.Locally Managed TablespacesLocally managed tablespaces track all extent information in the tablespace itself by using bitmaps, resulting in the following benefits:1.Fast, concurrent space operations. Space allocations and deallocations modify locally managed resources...
Migrating the SYSTEM Tablespace to a Locally Managed Tablespace
Use the DBMS_SPACE_ADMIN package to migrate the SYSTEM tablespace from dictionary-managed to locally managed. The following statement performs the migration:SQL> EXECUTE DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL('SYSTEM');Before performing the migration the following conditions must be me...
Oracle Wallet
一.官网对Wallet的说明http://docs.oracle.com/cd/E11882_01/network.112/e10746/asowalet.htm Security administratorsuse Oracle Wallet Manager to manage public key security credentials on Oracleclients and servers. The wallets it creates can be read by Oracle Database,Oracle Applic...
Managing Archive redo log
1. Archive redo logOracle Database lets you save filled groups of redo log files to one or more offline destinations, known collectively as the archived redo log. The process of turning redo log files into archived redo log files is called archiving. This process is only possible if the database i...
ORA-16019 和 ORA-16018 错误的处理方法
一. ORA-16019 和 ORA-16018 错误产生描述同事在修改归档目录,一不小心把参数设置错误了, 他设置的是log_archive_dest参数。 这个参数和默认log_archive_dest_n 和 DB_RECOVERY_FILE_DEST是冲突的。也就是说, 只能用一个。 先看相关的代码来说明这个问题...
Managing Redo File
1、How Oracle Database Writes to the Redo LogThe redo log of a database consists of two or more redo log files. The database requires a minimum of two files to guarantee that one is always available for writing while the other is being archived (if the database is in ARCHIVELOG mode).LG...