【Troubleshooting】DBV-00102: File I/O error on FILE () during end read operation (-2) on the raw device

数据库平台:AIX 6.1 数据库版本:oracle 10.2.0.5.7 【问题描述】 新搭建了数据库平台并使用裸设备。 在新建表空间时,AIX主机中报错如下: [cce_bash] $ errpt|more E86653C3   0522104313 P H LVDD           I/O ERROR DETECTED BY LVM E86653C3   0522103313 P H LVDD           I/O ERROR DETECTED BY LVM [/cce_bash] 然后使用dbv命令进行检测,结果如下: [cce_bash] $ dbv file=/dev/rora_temp02 blocksize=8192 logfile=rora_temp02.txt DBVERIFY: Release 10.2.0.5.0 - Production on Wed May 22 10:48:54 2013 Copyright (c) 1982, 2007, Oracle.  All rights reserved. DBV-00102: File I/O error on FILE (/dev/rora_temp02) during end read operation (-2) [/cce_bash] 【分析过程】 情况1: 在创建表空间时,由于使用裸设备,会出现如下显示的空间不足的报错: [cce_oracle11] SQL> create tablespace test1 datafile '/dev/rora_temp02' size 4g; create tablespace … [Read more...]

【Best Practices】Creating a Materialized View Replication Environments

1    Introduction to the Materialized View Replication 物化视图复制包括三种类型: Read-Only Materialized Views Updatable Materialized Views Writeable Materialized Views 只读物化视图顾名思义就是应用只能读取物化视图的数据,一切DML操作只能在主站点的基表中进行进行。   图示1:只读物化视图复制 可更新的物化视图,是一种高级的配置,它允许用户插入,更新,删除基表和物化视图中的数据。可更新物化视图基于已建立的支持复制功能的表或其他物化视图。 可更新物化视图必须是物化视图组的成员。   图示2:可更新物化视图复制 可写的物化视图就是使用for … [Read more...]

【Quote】TOM-Where to Begin

Where to Begin I have been a SQL Server 2000 DBA for the past four years, and I am keen to learn Oracle. Please let me know where to start. I get this question a lot—so I've come up with a road map of where to start with the Oracle documentation. It can be quite daunting to figure out where to begin, but I recommend Oracle Database Concepts for everyone. Then I branch out into developer and DBA tracks, as shown in Figure 1. Figure 1: Road map to Oracle Database documentation   To quote:http://www.oracle.com/technetwork/issue-archive/2006/06-mar/o26asktom-097731.html … [Read more...]

【Troubleshooting】EXP-00091 Exporting questionable statistics

操作系统:soalris10 数据库版本:9i 日期:2013-2-19 问题: 使用exp导出时,出现EXP-00091 Exporting questionable statistics错误 分析: [cce] [oracle10g@ ~]$ oerr exp 00091 00091, 00000, "Exporting questionable statistics." // *Cause: Export was able export statistics, but the statistics may not be // usuable. The statistics are questionable because one or more of // the following happened during export: a row error occurred, client // character set or NCHARSET does not match with the server, a query // clause was specified on export, only certain partitions or // subpartitions were exported, or a fatal error occurred while // processing a table. // *Action: To export non-questionable statistics, change the client character // set or NCHARSET to match the server, export with no query clause, // export complete tables. If desired, import parameters can be // supplied so that only non-questionable statistics will be imported, // and all … [Read more...]

【Installation】Oracle9i在Oracle Linux 5 32bit上的成功安装

1    工作描述 9i由于版本过老,导致很难在Oracle Linux 5 64bit上安装成功。虽然有人说安装成功,但由于操作过于复杂,还需要找9.2.0.4以上的安装介质,因此我没有亲自尝试。幸运的是,9i可以在Oracle Linux 5 32bit上成功安装,尽管也历经了众多的报错,但最终还是安装上了,虽然不是64bit,至少也是一种搭建9i环境的方法。整个安装过程,请见下文。 注:此种方法同样适用于Redhat 5,由于本文主要描述9i如何成功部署在Oracle Linux 5 32bit上,因此创建组和用户,以及修改操作系统限制等操作(和10g没有区别)在本文中忽略。 2    开始安装 [cce_sql] [oracle@secdb1 Disk1]$ ./runInstaller [oracle@secdb1 Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2013-05-14_06-07-00PM/jre/bin/java. Please wait... /tmp/OraInstall2013-05-14_06-07-00PM/jre/bin/i386/native_threads/java: error while loading shared … [Read more...]

【Patch】CPU的查找及安装

1    CPU的介绍 Critical Patch Update(以下简称CPU),是Oracle在2005年开始引入的产品安全更新策略。一般来说CPU包含了Oracle产品安全漏洞的修复补丁集(set of security bug fix)。CPU最早的雏形出现在2005年,该项目致力于为客户周期性地提供累积性的补丁以修复安全漏洞。一个CPU内包含了对多个安全漏洞的修复,并且也包括相应必需的非安全漏洞的补丁。CPU是累积型的,只要安装最新发布的CPU即可,其中包括之前发布的所有CPU的内容。 2    … [Read more...]

【Best Practices】cursor: pin S wait on X等待事件模拟

1  Cursor: pin S 等待事件描述 Oracle10g中引用的mutexes机制一定程度的替代了library cache pin,其结构更简单,get&set的原子操作更快捷。 它相当于,每个child cursor下面都有一个mutexes这样的简单内存结构,当有session要执行该SQL而需要pin cursor操作的时候,session只需要以shared模式set这个内存位+1,表示session获得该mutex的shared mode lock.可以有很多session同时具有这个mutex的shared mode lock;但在同一时间,只能有一个session在操作这个mutext +1或者-1。+1 -1的操作是排它性的原子操作。如果因为session并行太多,而导致某个session在等待其他session的mutext +1/-1操作,则该session要等待cursor: pin S等待事件。 在10.2.0.1.0版本中,默认没有启用mutexes。因此不会产出cursor: pin s的等待,只会产生library cache pin的等待事件。 参考OTN的解释: cursor: pin SA session waits on this event when it wants to … [Read more...]

【Migration】使用Backup as copy进行数据文件迁移

有时可能会遇到磁盘空间满的情况,需要把部分表空间或者是数据文件迁移到新的位置。 注意:使用此种方法时,需要启用归档。system和undo表空间无法使用此方法迁移,迁移它们时需要关闭数据库,拷贝数据文件,修改控制文件来完成。 此种方法只有在switch时才需要offline数据文件,因此对数据文件的影响较小。 1.首先查看表空间情况 [cce lang='sql'] SQL> select tablespace_name from dba_tablespaces; TABLESPACE_NAME ------------------------------ SYSTEM UNDOTBS SYSAUX TEMPTS1 EXAMPLE INDX TOOLS USERS OLTP [/cce] 2.查看准备迁移的数据文件 [cce lang='sql'] SYS@PROD> select file_id,file_name,tablespace_name from dba_data_files; FILE_ID FILE_NAME TABLESPACE_NAME ------- ------------------------------------------------- --------------- 1 /u01/app/oracle/oradata/PROD/disk1/system01.dbf SYSTEM 2 /u01/app/oracle/oradata/PROD/disk1/undotbs01.dbf … [Read more...]

【Troubleshooting】ORA-27300:OS system dependent operationfork failed with status 12

【问题描述】 操作系统为AIX,在数据库的Alert日志中,出现如下报错: [cce] ORA-27300: OS system dependent operation:fork failed with status: 12 ORA-27301: OS failure message: Not enough space ORA-27302: failure occurred at: skgpspawn3 Fri Jul 13 13:33:08 2012 Process m000 died, see its trace file Fri Jul 13 13:33:08 2012 ksvcreate: Process(m000) creation failed Fri Jul 13 13:34:08 2012 Process startup failed, error stack: Fri Jul 13 13:34:08 2012 Errors in file /oracle/admin/nms115/bdump/nms115_psp0_7667948.trc: ORA-27300: OS system dependent operation:fork failed with status: 12 ORA-27301: OS failure message: Not enough space ORA-27302: failure occurred at: skgpspawn3 Fri Jul 13 13:34:09 2012 Process m000 died, see its trace file Fri Jul 13 13:34:09 2012 ksvcreate: Process(m000) creation failed Fri Jul 13 13:35:27 2012 Thread 1 advanced to log sequence 3275 (LGWR switch)   Current log# 3 seq# 3275 mem# 0: … [Read more...]

【Troubleshooting】ORA-12505 TNS:listener does not currently know of SID given in connect descriptor

【问题描述】 启动应用的过程中,出现如下提示,说明应用无法连接到数据库。 [cce][ERROR] 2013-05-08 10:47:21,993 org.hibernate.util.JDBCExceptionReporter - Cannot create PoolableConnectionFactory (Listen er refused the connection with the followin g error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: rac1:1521:racdb )[/cce] 【处理过程】 由于数据库是RAC环境,因此怀疑是应用jdbc的配置不适用于RAC环境。 [cce] #hibernate config hibernate.dialect=org.hibernate.dialect.OracleDialect iam.jdbc.database=oracle iam.jdbc.driverClassName:oracle.jdbc.driver.OracleDriver iam.jdbc.url:jdbc:oracle:thin:@192.168.1.111:1521:username iam.jdbc.username:username iam.jdbc.password:password [/cce] 上面的写法不适用于RAC环境,因此要修改为下面的写法: [cce] #hibernate … [Read more...]

京ICP备14059771号-2