随笔分类 -  Oracle_Trouble_Shooting

摘要:1.建立环境create table t1 (id int,name varchar(10),age int);create table t2 (id int,name varchar(10),age int);insert into t1 values (1,’abc’,33);insert into t1 values (2,’’,31);insert into t2 values (1,’abc’,33);insert into t2 values (2,’’,31);insert into t1 values (3,’xyz’,34);2. Null的问题SQL> select 阅读全文
posted @ 2012-06-06 11:17 xxd 阅读(3642) 评论(3) 推荐(1) 编辑
摘要:曾经遇到过ORA-8103,01578的坏块错误记录下方法,以及一些方法的聚合。这里特别记录一下”神器BBED或者DD+UltraEdit“的使用方法: 大概说一下如果数据块的损坏应该是offset@18也就是seq_kcbh被标记成0xff。这时检查alert.log如果看到 computed block checksum那么使用BBED其实很容易,进入然后打开损坏的数据块,offset到16,sum apply后oracle会算出正确的checksum值并且写回去。具体算法就是 computed block checksum后边会有一个数值那么转换成二进制和现有的offset 16 17做异或运算就可以算出正确的值。我也是最近才弄明白这种算法,正好复习。 阅读全文
posted @ 2010-11-22 16:27 xxd 阅读(3085) 评论(0) 推荐(0) 编辑
摘要:--精彩解释 不知道是从哪里转的了, 假设有张表,叫table1,里面有5000万行数据,假设预计全表扫描1次需要1个小时,我们从过程来看: 1、在1点钟,有个用户A发出了select * from table1;此时不管将来table1怎么变化,正确的结果应该是用户A会看到在1点钟这个时刻的内容。这个是没有疑问的。 2、在1点30分,有个用户B执行了update命令,更新了table1表中的第4000万行的这条记录,这时,用户A的全表扫描还没有到达第4000万条。毫无疑问,这个时候,第4000万行的这条记录是被写到了回滚段里去了的,我假设是回滚段RBS1,如果用户A的全表扫描到达了第4000万行,是应该会正确的从回滚段RBS1中读取出1点钟时刻的内容的。 3、这时,用户B将他刚才做的操作commit了,但是这时,系统仍然可以给用户A提供正确的数据,因为那第4 阅读全文
posted @ 2010-03-02 17:32 xxd 阅读(1972) 评论(0) 推荐(1) 编辑
摘要:SQL> startupORACLE instance started.Total System Global Area 1224736768 bytesFixed Size2020384 bytesVariable Size 318770144 bytesDatabase Buffers889192448 bytesRedo Buffers 14753792 bytesORA-01102:... 阅读全文
posted @ 2010-02-09 13:57 xxd 阅读(936) 评论(0) 推荐(0) 编辑
摘要:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor--这个很明显是监听文件配置的问题,首先查看口令文件,如果没有先建立orapwd file='$ORACLE_HOME/dbs/orapw$ORACLE_SID' password=oracle entries=10 f... 阅读全文
posted @ 2010-02-05 11:39 xxd 阅读(1103) 评论(0) 推荐(0) 编辑
摘要:xxd@ETMCDB> alter tablespace ETMCDB offline;Tablespace alteredxxd@ETMCDB> drop tablespace ETMCDB including contents and datafiles;drop tablespace ETMCDB including contentsORA-23515: materialized... 阅读全文
posted @ 2010-01-22 09:54 xxd 阅读(1274) 评论(0) 推荐(0) 编辑
摘要:Redhat AS4 Update 4上安装10gR2 ASM,遭遇 Loading module "oracleasm": Unable to load module "oracleasm"[FAILED] 阅读全文
posted @ 2010-01-21 15:39 xxd 阅读(4134) 评论(0) 推荐(0) 编辑
摘要:巴士终于可以打开了,英明伟大的祖国,我谢谢您。--问题描述今早一来在一台准备今天安装测试ASM性能的服务器上出现找不到数据库文件日志文件的问题idle> alter database open;alter database open*ERROR at line 1:ORA-01157: cannot identify/lock data file 5 - see DBWR trace fil... 阅读全文
posted @ 2010-01-21 10:48 xxd 阅读(3592) 评论(0) 推荐(0) 编辑
摘要:--相关链接http://blog.csdn.net/perddy/archive/2009/08/10/4430823.aspx白鳝DBA日记中的由于ORA-04031 导致ORA-00600--状态描述这个错误一般来说都是因为shared_pool 不能分配足够的内存 满足不了事务 以至于导致0RA-04031 如"unable to allocate %s bytes of shared m... 阅读全文
posted @ 2009-12-28 10:00 xxd 阅读(3168) 评论(0) 推荐(0) 编辑
摘要:想做个AWR报告,结果提示SQL_ID但是我出的是普通报告没有针对某个SQL,就退出了。退出后不能连接Oracle,打开其他之前连接的session想重启,immediate不行错误如下SQL> shutdown immediateORA-24324: service handle not initializedORA-01041: internal error. hostdef exten... 阅读全文
posted @ 2009-12-25 15:56 xxd 阅读(1234) 评论(0) 推荐(0) 编辑
摘要:一个比较完整的资料我归纳的处理类似问题的方法--状态描述create table test as select * from MOB_TICKET_WH_20091215 where rownum <10000 ;ORA-01578: ORACLE 数据块损坏 (文件号 58, 块号 1209379)ORA-01110: 数据文件 58: ''/u01/oradata/xxd/test.dbf''该损坏的数据文件是属于test ,凡是在表空间test建大表就报错。oracle-> dbv file='/u01/oradata/xxd/test.dbf'Total Pages Fai 阅读全文
posted @ 2009-12-21 10:14 xxd 阅读(3868) 评论(0) 推荐(0) 编辑
摘要:错误提示sys@ETMCDB> alter database open read only;alter database open read only*ERROR at line 1:ORA-16006: audit_trail destination incompatible with database open mode解决方法sys@ETMCDB> show parameter ... 阅读全文
posted @ 2009-12-01 11:32 xxd 阅读(1425) 评论(0) 推荐(0) 编辑
摘要:--ref oracle占用的磁盘空间自动增长导致数据库当机源文档 <http://topic.csdn.net/u/20091013/12/01efb6a6-957e-495d-a7e8-1da5ec85e3af.html> 可能是日志文件或跟踪文件产生过多导到磁盘空间增长,可以到目录%ORACLE_BASE%\admin\%ORACLE_SID%下面找找,看看bdump,udump及cdump下面的文件--错误描述做一个大的update导致undo暴涨,具体:xxd@ETMCDB> update big_table set temporary = decode(tempo 阅读全文
posted @ 2009-11-16 10:06 xxd 阅读(4279) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示