Block Change Tracking
10G中ORACLE提供了一个新的特性:块修改跟踪(Block Change Tracking),该特性主要服务于RMAN的增量备份。 众所周知在之前的版本中,RMAN中创建增量备份并不能显明缩短备份时间,这主要就是因为RMAN没有简便的方式判断哪些块是被修改过的,因此仍然是只能读取所有数据文件中的所有数据块,分别检查数据块...
Oracle trunc()函数的用法
--Oracle trunc()函数的用法/**************日期********************/1.select trunc(sysdate) from dual --2011-3-18 今天的日期为2011-3-182.select trunc(sysdate, 'mm') from dual --2011-3-1 返回当月第一天.3.select trunc(sysdate,'yy') from dual --201...
启动数据库报某个数据文件不存在
SQL> startupORACLE 例程已经启动。Total System Global Area 1071333376 bytesFixed Size 1375792 bytesVariable Size 587203024 bytesDatabase Buffers 478150656 b...
alter database和alter system和alter session的区别
Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is mounted. Modifies a database, or the files and filegroups associated with the database. Adds or removes files and filegroups from a database, changes the a...
insert all用法讲解与实例
1、建测试表 CREATE TABLE EDW_INT ( AGMT_NO VARCHAR2(40 BYTE)  ...
invisible index
invisible indexAn index that is maintained by DML operations, but is not used by default by the optimizer. Making an index invisible is an alternative to making it unusable or dropping it.
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.
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 ...
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释放空闲数据...
Oracle的重做日志
重做日志分为在线重做日志和归档重做日志。online Redo log files--在线重做日志,又称联机重做日志,指Oracle以SQL脚本的形式实时记录数据库的数据更新,换句话说,实时保存已执行的SQL脚本到在线日志文件中(按特定的格式)。Archive Redo log files--归档重做日志,简称归档日志,指当条件满足时,Oracle将在线重做日...
oracle 输出中文乱码问题解决方案
oracle DBMS_OUTPUT.PUT_LINE 中文乱码 解决方案
TO_DSINTERVAL用法:进行天,小时,分秒的计算
TO_DSINTERVAL的用法:有了这个函数,可以进行时间的计算,包括天,时,分,秒的计算。oracle reference:In the SQL format, days is an integer between 0 and 999999999, hours is an integer between 0 and 23, and minutes and seconds are integers between 0 and 59. frac_secs is the fractional part of second...
pls_integer 用法简析
使用场景:简单点说就是在不需要考虑溢出与空的情况下使用,速度会更快,比如计数。oracle reference :You can use SIMPLE_INTEGER when the value is never null and overflow checking is unnecessary. Without the overhead of checking for null values and overflow, SIMPLE_INTEGER provides better performance th...
判断oracle是否启动
判断oracle是否启动:方法一. 通过linux命令判断ps -ef|grep ora如果查看得到oracle相关进程,一般认定为已经启动了。[root@gl ~]# ps -ef|grep oraroot 3630 3587 0 05:10 ? 00:00:14 hald-addon-storage: polling /dev/hdcoracle 4038 &n...