ORACLE 10G中闪回汇总
1、查看当前SCN并且转换为时间select scn_to_timestamp(dbms_flashback.get_system_change_number) from dual;select timestamp_to_scn(to_date('2013-08-2 10:01:00','yyyy-mm-dd hh24:mi:ss')) from dual;2、开启和使用flashback database--必须开启归档--必须设置参数 db_flashback_retention_target&...
Possible fixes for the TNS-12560 include:
Possible fixes for the TNS-12560 include:
转载 MELTAINK 一篇HANGANALZE文章
Interpreting HANGANALYZE trace files to diagnose hanging and performance problems for 9i and 10g. (文档 ID 215858.1)WHY USING HANGANALYZEA “true” hang in the Oracle database can be defined as an internal deadlock or a cyclical dependency between two or more processes. When dealing with ...
ORACLE 受限RESTRICT模式,只读READ ONLY模式,静默QUIESCE模式,延迟SUSPEND模式解释
一、受限RESTRICT模式关于ORACLE RESTRICT模式,以及START OPEN RECOVER 说明如下:Restricting Access to an Instance at StartupYou can start an instance, and optionally mount and open a database, in restricted mode so that the instance is available onlyto administrative personnel (not ...
关于ORACLE RESTRICT模式,以及START OPEN RECOVER
关于ORACLE RESTRICT模式,以及START OPEN RECOVER 说明如下:Restricting Access to an Instance at StartupYou can start an instance, and optionally mount and open a database, in restricted mode so that the instance is available onlyto administrative personnel (not general databas...
关于UPDATE中关联查询的执行时间考虑
update testj3 set object_id = (select USER_ID from testj2 where testj3.owner = testj2.username)考虑如上的语句,如何估算其时间...
EXP COMPRESS以及EXP/IMP EXPDP/IMPDP导入表结构注意
关于EXP COMPRESS参数一直对这个参数有些疑惑。当然此参数一定不是所谓的压缩备份文件的空间,而它的解释为COMPRESS import into one extent字面意思为把所有的EXTENT压缩到INIT 分区中。但是这个实际上这个只在数据字典管理的中生效。但是在本地管理表空间中实际initial 也是有用的但是他不会分配到一个EXTENT...
REMOTE_LOGIN_PASSWORDFILE参数和ORAPW密码文件
俗话说 万丈高楼从地起,从业ORACLE 7年多后,我重新开始看基础类容,将列出一些DBA容易忽视的类容,并且做一些笔记和实验和大家共享。关于REMOTE_LOGIN_PASSWORDFILE参数文件:REMOTE_LOGIN_PASSWORDFILEare:■ NONE: Setting this parameter to NONE causes Oracle Database to behave as if the password file does ...
关于ORACLE操作系统认证和ORAPWD密码文件认证SYSDBA权限
首先注意如下文档说明: Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication. ...
我这三十年,与各位共勉
转眼间已经是接近30岁的年龄,大家都30而立,我不确定我是否立起来了,虽说成家了但是说立业视乎还有点过早。和很多从事IT行业的朋友一样,从进入大学开始就广泛的和电脑打交道,当然大学使用电脑过多的只是玩游戏,没有太多的心机和圆滑,有的只是直率和仅有一些技术而已。 ...
11gR2关于延时段建立,和初始化分区段8M的说明
11.2.0.1Deferred segment creationWhen creating a nonpartitioned heap-organized table in a locally managed tablespace, table segment creation is deferred until the first row is inserted11.2.0.3New default first extent size for partitioned tables improves performanceThe default size of the first...
OGG OGG-01496 OGG-01028
今天由于没有正常的先关闭源端的PUMP进程而直接关闭了备库的replicat和MGR进程。导致PUMP进程启动不了报错如下:OGG-01496 Oracle GoldenGate Capture for Oracle, py169.prm: Failed to open target trail file ./dirdat/tb000183, at RBA 4434691.我对PUMP提示使用下一个trail文件alter extract py169, ...
FAL[server, ARCN]: FAL archive failed ORA-16401
今天数据库日志报警,然后查看日志报错如下:Sat Jun 07 17:35:19 2014Archived Log entry 3272 added for thread 1 sequence 3224 ID 0xaad09f63 dest 1:Sat Jun 07 17:35:36 2014LNS: Standby redo logfile selected for thread 1 sequence 3225 for destination LOG_ARCHIVE_DEST_2Sat Jun 07 17:35:39 2014ARC0: ...
9i 10g 各个版本抛弃和不赞成使用的参数
Initialization Parameters Deprecated in Release 10.2The following initialization parameters were deprecated in release 10.2:LOGMNR_MAX_PERSISTENT_SESSIONSMAX_COMMIT_PROPAGATION_DELAYREMOTE_ARCHIVE_ENABLESERIAL_REUSESQL_TRACEInitialization Parameters Deprecated in Release 10.1The following in...
HASH分区表的好处和注意点
一、好处 1、对于分区本生不需要定期的进行分区加入(范围分区和LIST分区需要定期的对新加入的值新建分区) 2、可以消除访问热点块及索引热点块,由于索引是排序后的结构,对于一列自增的列加入范围分区,可能对索引的高位块进行频繁的数据插入,导致频繁的写入和分裂 对于这样的索引如...
ORACLE 半连接与反连接
概念:所谓半连接,就是在进行连接查询的时候,内层如果有相应的记录及返回一个TRUE,而不需要访问余下的行,如果内层表特别巨大的时候将会大大节省时间。列子: select /* using in */ department_name from hr.departments dept where department_id in (select depart...
RAC 11.2.0.3 LISTENER异常终止
今天同事遇到一个RAC监听异常终止的问题,版本11.2.0.3操作系统AIX6.1,如下:10-MAY-2014 11:44:16 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVER=DEDICATED)(SERVICE_NAME=zhdw)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.195.160.162)(PORT=59755)) * establish * zhdw * 0Sat May 10 11:44:27 201410-...
Thread 1 cannot allocate new log Private strand flush not complete 警告
官方解释如下:CHANGES切换日志时,所有 private strand 都必须刷新到当前日志,然后才允许继续切换。CAUSE此信息表示我们在尝试切换时,尚未完全将所有 redo 信息写入到日志中。它本质上类似于“checkpoint not complete”,不同的是,它仅涉及到正在被写入日志的redo。在写入所有 redo 前,无法切换日志。...
AVG_LEAF_BLOCKS_PER_key 和 AVG_DATA_BLOCKS_PER_KEY 说明
按照官方文档的说明AVG_LEAF_BLOCKS_PER_KEY:Average number of leaf blocks in which each distinct value in the index appears, rounded to the nearest integer. For indexes that enforce UNIQUEand PRIMARY KEYconstraints, this value is always 1每一个不同的键值平均页块的数量,如果是唯一和...
DATAGUARD实际的应用场景
本文主要讨论以下几个问题1、在线建立DATAGUARD备库2、使用日RMAN异机恢复来保护DATAGUARD切换可能出现的问题。3、切换和失败切换1、首先查看DATAGUARD中参数哪些是静态,哪些是动态的,动态的可以再不停机的情况下直接修改先看一下主库需要设置的参数,然后我们在数据库中查一下DB_UNIQUE_NAME=testdg1LOG_AR...