专著oracle 技术
记录维护生产数据库的点点滴滴....
-
2011-03-29 13:18:13
/ Oracle数据库管理
oracle document 更新不及时,当子表的上的Foreign Key 么有index 时,修改主表会阻止字表的DML , 这是是在8i上存在的问题,在10g后就已经调整了。现在11g 的文档上记录不能修改子表http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/consist.htm#i5704Locks and Unindexed Foreign KeysIn Figure 9-3, the database acquires a full table lock on employees during the primary key modification of department 60. This lock enables other sessions to query but not update the employees table. For ex
查看(387)
评论(3)
-
2010-11-19 10:57:46
/ Oracle专题深入讨论
os:linux 5.4db: 10.2.0.4 RACprocess 500其中一个 node process 异常增长达到500, 而 session 数量正常在200多,持续了大概20分钟,不知道为什么突出产出这么多的process。oradebug dump systemstate 3[oracle@c2db12 ~]$ grep KJP_FROZEN t2.trc | wc -l283竟然有283 个frozen process , 其中一个:PROCESS 200:----------------------------------------SO: 0x25e3d8f28, type: 2, owner: (nil), flag: INIT/-/-/0x00(process) Oracle pid=200, calls cur/top: (nil)/0x2150570f8, flag: (0)
查看(738)
评论(8)
-
2010-11-09 17:06:50
/ Oracle专题深入讨论
est@emrep> select * from t1;IDSEX---------- ----------11213142526371829210110 rows selected.sex 字段上存在 bitmap indexindex dumprow#0[8009] flag: ------, lock: 0, len=23col 0; len 2; (2):c1 02col 1; len 6; (6):01 00 00 0e 00 00col 2; len 6; (
查看(503)
评论(1)
-
2010-11-05 13:06:04
/ Oracle专题深入讨论
1. oracle10g 使用RAMN 备份, controlfile 记录备份集。2. 首先通过rman 进行 level 0 database backup 备份在 local disk. 然后我需要把这些备份集 传到 FTP 上或者NFS 。 在删除本地的备份。(local disk 空间不足)3. 这个时候如果 crosschek backup , 则备份集 为 expird 的。意思就是 说这个备份已经丢失了。4. 那如何我进行 level 1 的备份呢 , 就不能进行 增量 备份了。解决办法:1 . 不进行 corsscheck backup , 欺骗 oracle 备份集 还存在。2. 备份完成后,mount nfs 到备份的目录,下次备份时首先 umount, 在备
查看(736)
评论(4)
-
2010-11-05 09:58:43
/ Oracle数据库管理
1. oracle10g 使用RAMN 备份, controlfile 记录备份集。2. 首先通过rman 进行 level 0 database backup 备份在 local disk. 然后我需要把这些备份集 传到 FTP 上或者NFS 。 在删除本地的备份。(local disk 空间不足)3. 这个时候如果 crosschek backup , 则备份集 为 expird 的。意思就是 说这个备份已经丢失了。4. 那如何我进行 level 1 的备份呢 , 就不能进行 增量 备份了。解决办法:1 . 不进行 corsscheck backup , 欺骗 oracle 备份集 还存在。2. 备份完成后,mount nfs 到备份的目录,下次备份时首先 umount, 在
查看(399)
评论(0)
-
2010-10-14 11:40:25
/ Oracle专题深入讨论
Generic Alert Log Errors 的告警默认的Alert Log Filter Expression: .*ORA-0*(54|1142|1146)\D.*Critical Threshold for Generic Alert Log Errors : ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]修改后的Alert Log Filtering Expression: .*ORA-[0-9]*\D.*Warning Threshold for Generic Alert Log Errors : ORA-[0-9]*[^0-9]我的目的是想所有的ORA- 错误全部告警, 现在的问题的是不能过滤ALERT.log 文件。Filter Expression必须是 PERL RE , TIPThis expression must be a Perl-style regular express
查看(8262)
评论(12)
-
2010-08-18 20:34:06
/ Oracle专题深入讨论
业务用户app1保存业务数据等, 只有应用程序连接这个用户, 不希望 维护人员 直接连接这个用户.现在有2个方案实现.1. 建立一个维护 人员 用户user1 , 但是需要把 app1 的所有表的权限 授权 给 user1 , 但还需要 procedure 的 alter 权限. 这个时候就需要 alter any procedure ,然后对 user1 开启 audit .这样user1 的权限相对就比较大 . 但可以实现功能.2. 建立一个 app1 用户的代理用户user2 , 这样就不需要授权 等操作, 直接 对 user2 开启audit .但是 这样的话 审计 只记录了 登录日志. 不能记录 其它的修改
查看(887)
评论(7)
-
2010-06-08 11:45:56
/ Oracle数据库管理
1. 检查active sql , active event[oracle@db ~]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.5.0 - Production on Tue Jun 8 09:01:19 2010Copyright (c) 1982, 2010, Oracle.All Rights Reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing optionssys@racdb> @sqlUSERNAMEsid||serial#EVENT
查看(2259)
评论(30)
-
2010-05-26 11:55:04
/ Oracle专题深入讨论
ORA-02068: following severe error from REMOTEDBORA-03135: connection lost contact是使用 trigger通过 dblink远程insert 数据, 偶尔出现 ORA-02068 错误, 是在使用 jdbc 的时候发生, 也不是所有的都出现这种情况。 sqlplus 测试正常。大家 有遇到这个问题的吗?[ 本帖最后由 oradbHome 于 2010-5-26 11:57 编辑 ]
查看(2003)
评论(13)
-
2010-05-24 09:22:58
/ Oracle专题深入讨论
ora_o001_是什么进程, 有什么作用。在文档中没有找到。[ 本帖最后由 oradbHome 于 2010-5-24 12:46 编辑 ]
查看(893)
评论(6)