
oracle_error
文章平均质量分 60
rudy_gao
这个作者很懒,什么都没留下…
展开
-
Library cache lock/pin详解
一、概述---本文是网络资料加metalink 等整理得来一个实例中的library cache包括了不同类型对象的描述,如:游标,索引,表,视图,过程,等等. 这些对象不能在他们被使用的时候改变,他们在被使用的时候会被一种library locks and pins的机制锁住. 一个会话中,需要使用一个对象,会在该对象上先得到一个library lock(null, shared o转载 2015-01-27 12:04:23 · 1165 阅读 · 0 评论 -
ASM无法自动加载磁盘组问题
问题描述:创建ASM实例后关闭实例,启动ASM实例时,出现ORA-15110错误SQL> startup;ASM instance startedTotal System Global Area 104857600 bytesFixed Size 1217956 bytesVariable Size 78473820 bytes转载 2014-04-28 16:54:09 · 1776 阅读 · 1 评论 -
11gR2修改主机名导致CRS-0184以及CRS-4000的错误
我们通常都说,在部署Oracle数据库服务器前,要规划好主机名、IP地址等基础信息,一经确定,尤其是部署好Oracle数据库之后,就不要轻易修改主机名或者是IP地址等。而且我们也都知道这个理儿,但可是,可但是,在实际工作当中,你难免不会遇到这种情况。除了自己前不久曾遭遇到的一则,在Windows Server 2008 R2 X64上跑的一套10.2.0.5.0配置有ASM单实例物理备库因转载 2014-04-28 16:33:49 · 1780 阅读 · 0 评论 -
oracle 静态注册
1. 最近在装ASM+DATAGUARD, 在静态注册上面吃了大亏原创 2014-04-28 20:18:37 · 1509 阅读 · 0 评论 -
Oracle service name与instance name 不一致ORA-27101: shared memory realm does not exist
1. 今天在客户端连接服务端时报如下错误原创 2014-04-26 19:54:58 · 1417 阅读 · 0 评论 -
由于/etc/hosts文件中ip与实际ip不一致所导致oracle监听器不能识别
1. 今天在连接oracle时,发现客户端原创 2014-04-26 10:16:53 · 3046 阅读 · 0 评论 -
ASM实例启动报错:ORA-29701、ORA-15110解决方案
在手动写ASM参数文件后启动ASM遇到一个问题,在启动asm实例的时候提示:ORA-29701 :unable to connect to Cluster Manager通过对于联机文档的解读,我了解到是没有添加CSS服务的原因,好,下面我们在root用户下执行/u01/app/Oracle/product/10.2/db_1/bin/localconfig add命令去添加CSS转载 2014-04-23 16:05:42 · 2089 阅读 · 0 评论 -
asm 实例无法加载diskgroups,ORA-15110: no diskgroups mounted
今天安装oracle11g R2的grid,装完之后发现无法加载diskgroups,报错如下:SQL> startupORA-00099: warning: no parameter file specified for ASM instanceASM instance startedTotal System Global Area 283930624 bytesF转载 2014-04-23 16:05:03 · 2847 阅读 · 0 评论 -
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
在数据库里面使用TRUNCATE命令截断一个表的数据时,遇到如下错误SQL >TRUNCATE TABLE ESCMOWNER.SUBX_ITEMORA-02266: unique/primary keys in table referenced by enabled foreign keys有时候对应的中文错误提示为:ORA-02266: 表中的唯一/主键被启用的外部关键转载 2014-05-08 14:16:55 · 1260 阅读 · 0 评论 -
Oracle客户端连接Centos5.8防火墙:ORA-12560: TNS: 协议适配器错误的解决方法
今天在客户端连接Oracle服务端时报:原创 2014-04-21 16:48:06 · 1651 阅读 · 0 评论 -
Oracle Linux(64位)安装64位Oracle 11g遇到ins_ctx.mk问题
在安装linux X86-64的Oracle11g时,在链接过程中出现了这个错误。详细错误信息为:Error in invoking target ‘install’ of makefile ‘/opt/oracle/product/10.2/ctx/lib/ins_ctx.mk’. See ‘/opt/oracle/oraInvertory/logs/installActions转载 2014-04-18 16:04:44 · 7873 阅读 · 0 评论 -
ORA-00845: MEMORY_TARGET not supported on this system
今天晚上新装一台Oracle 11g的数据库,打算将SGA设大一点,知道 11g 中有一个新特新 MEMORY_TARGET,于是尝一下鲜,谁知报了个 ORA-00845,报错比较容易迷惑人,不借助Google真得想半天:SQL> alter system set memory_max_target=3G scope=spfile ; System al转载 2014-05-04 11:59:21 · 617 阅读 · 0 评论 -
ORA-16019: cannot use LOG_ARCHIVE_DEST_1 解决方法
在设置DATA GUARD 时,修改了系统参数,重启数据库后出错:SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.SQL> startup;ORA-32004: obsolete or deprecated parameter(s) specifi转载 2014-06-03 15:03:26 · 1874 阅读 · 1 评论 -
ORA-01466: unable to read data - table definition has changed
1. 在创建好表之后,最好等几分钟让SCN增加。如果尝试去flashback一个新创建的表,可能会遇到ORA-01466: unable to read data - table definition has changed原创 2014-06-03 19:44:40 · 6878 阅读 · 0 评论 -
ORA-20001 selecting from DBA_TAB_STATISTICS
SQL> SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS;SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS *ERROR at line 1:ORA-20001: BIN$N5转载 2014-07-18 16:26:59 · 1929 阅读 · 0 评论 -
Referencing User Defined Types over DBLink
Consider a PL/SQL call to a function which returns a user-defined type (UDT) – say, a SQL Type object. This works well as long as the called function resides in the same database as the calling PL/SQL转载 2014-10-22 20:42:01 · 845 阅读 · 0 评论 -
ORA-22804: remote operations not permitted on object tables or user-defined type columns
Query user defined types over database linkMay 10, 2014 by Domagoj Smoljanović.Querying tables over database link is very common today. But what happens when we have a table that depends o转载 2014-10-22 20:05:34 · 1865 阅读 · 0 评论 -
opiodr aborting process unknown ospid (26147) as a result of ORA-28
今天在a opiodr aborting process unknown ospid (26147) as a result of ORA-28Errors in file /opt/app/oracle/diag/rdbms/orcl/labaprod/trace/labaprod_ora_8883.trc (incident=1085076):ORA-00600: interna原创 2014-09-28 10:33:42 · 3034 阅读 · 0 评论 -
11gR2启动ASM实例时遭遇ORA-29701
一、引言 前几天安装了Oracle 11gR的ASM,但是今天想要启动ASM的时候遇到下面的情况: 1 [grid@yft ~]$ sqlplus /nolog 2 3 SQL*Plus: Release 11.2.0.1.0 Production on Sun Mar 24 08:37:57 2013 4 5 Copyright (c) 1982, 2009转载 2014-09-09 13:06:56 · 976 阅读 · 0 评论 -
关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
安装完ASM相应组件后,执行/etc/Init.d/oracleasm enable后显示失败。查看日志[sql] view plaincopy[root@localhost log]# more /var/log/oracleasm Cleaning any stale ASM disks... File "/dev/" is not转载 2014-09-09 14:25:06 · 2340 阅读 · 0 评论 -
asm无法加载磁盘
--数据库启动后发现找到磁盘SQL> select group_number,disk_number,mount_status,header_status,name,path from v$asm_disk; no rows selected--查看磁盘[root@rudy init.d]# oracleasm scandisksReloading disk原创 2014-09-09 14:41:27 · 3738 阅读 · 0 评论 -
Oracle_spatial的常见错误与注意事项
1、ORA-13226:没有空间索引接口将不被支持当使用一个空间操作符时,如果没有使用空间索引导致该操作符不能被完成将会返回该错误。这可能会发生在当你使用的列上没有空间索引、或者优化器没有选择以所用为基础进行计算时。解决办法:如果在空间操作符的列上没有索引,就创建一个索引。如果优化器没有选择空间索引,那么久显式地指定index或ordered以确保空间索引被使用。例如:转载 2014-07-15 02:45:40 · 2267 阅读 · 0 评论 -
oracle 创建空间全文索引失败
If you ever want to create or rebuild an oracle spatial index in another schema, you need to make sure that the target user has CREATE TABLE and CREATE SEQUENCE granted.select privilege from转载 2014-06-22 13:04:51 · 2831 阅读 · 0 评论 -
ORA-01506: missing or illegal database name 故障分析一例
今天在做RAC-DG实验时,碰到了不少的问题,这个问题是在操作用pifle创建spifle时出现的由于在配置RAC-DG主库参数时,大部分人喜欢直接用alter system set xxx='xxx.xxx' scope=spfile;而我由于不想一条条敲命令,所以先用主库参数创建一个pifle,然后对pfile进行修改,加上我们所需的DG配置参数,然后再把pfile写回spfi原创 2014-06-03 15:31:46 · 1490 阅读 · 0 评论 -
ORA-15149: another ASM instance found running on the host
【问题现象】[grid@localhost ~]$ echo $ORACLE_SID+asm[grid@localhost ~]$ echo $ORACLE_HOME/u01/app/11.2.0/grid[grid@localhost ~]$ sqlplus / as sysasmSQL*Plus: Release 11.2.0.1.0 Production on Fri转载 2014-06-13 15:57:15 · 1770 阅读 · 0 评论 -
ORA-01439: column to be modified must be empty to change datatype
修改数据库字段类型,但是由于数据表已经存在数据,无法修改; 显示错误:ORA-01439: column to be modified must be empty to change datatype原创 2014-06-11 10:37:11 · 11201 阅读 · 0 评论 -
Initializing the Oracle ASMLib driver: [FAILED]
Centos 5.8, kernel为:uname -r2.6.18-308.el5安装ASM三个包:rpm -ivh oracleasm-support-2.1.1-1.el4.i386.rpmrpm -ivh oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpmrpm -ivh oracleasmlib-2.0.4-1.el5.转载 2014-04-19 11:31:56 · 2246 阅读 · 0 评论 -
ORA-29701: unable to connect to Cluster Synchronization Service
[grid@vm11gr2] /home/grid> sqlplus "/as sysasm" SQL*Plus: Release 11.2.0.1.0 Production on Sun Oct 25 10:16:21 2009 Copyright (c) 1982, 2009, Oracle. All rights reserved. Co转载 2014-04-18 18:46:05 · 3534 阅读 · 0 评论 -
安装grid时找不到ASM共享磁盘
解决办法:查看oracleasmlib库文件是否存在[root@t_rac_one:~]# rpm -ql oracleasmlib-2.0.4-1.SLE10/opt/oracle/extapi/opt/oracle/extapi/64/opt/oracle/extapi/64/asm/opt/oracle/extapi/64/asm/orcl转载 2014-04-19 12:15:02 · 9868 阅读 · 0 评论 -
匿名块锁等待
1. 在匿名块中如果执行插入,删除,更新等操作后,一定要记得提交或回滚操作,不然其他人在别的地方如果也执行插入,删除,更新等操作时,刚好与你执行的操作记录相同,则会发生锁等待DECLARE cot NUMBER;BEGIN DELETE FROM rzl WHERE 1= 1; cot := SQL%ROWCOUNT; dbms_output.put_li原创 2013-10-25 11:53:34 · 753 阅读 · 0 评论 -
异常结束后继续执行
当你运行一个过程,例如: DeclearBegin DELETE TABLE t_a where .....; UPDATE t_b set .....; DELETE TABLE t_c where .....;Exception WHEN OTHERS THEN转载 2013-10-25 11:38:25 · 2159 阅读 · 0 评论 -
诊断并解决ORA-04031 错误
诊断并解决ORA-04031 错误当我们在共享池中试图分配大片的连续内存失败的时候,Oracle首先清除池中当前没使用的所有对象,使空闲内存块合并。如果仍然没有足够大单个的大块内存满足请求,就会产生ORA-04031 错误。当这个错误出现的时候你得到的错误解释信息类似如下:04031, 00000, "unable to allocate %s bytes of shared转载 2013-09-15 09:33:54 · 867 阅读 · 0 评论 -
“ORA-01589:must use RESETLOGS or NORESETLOGS option for database open”
startup mountalter database open resetlogs原创 2013-09-03 21:07:19 · 2013 阅读 · 0 评论 -
standby 与监听器
1. 在启动primary数据库时,必须要先启动监听器,否则,SWITCHOVER_STATUS不为TO STANDBY,而是destination错误SYS@test>SELECT SWITCHOVER_STATUS FROM V$DATABASE;原创 2013-09-08 19:03:00 · 747 阅读 · 0 评论 -
lsnrctl 写日志
1. 在写alert日志后,应该把监听器打开,由其在data guard 环境中转载 2013-09-08 17:50:14 · 903 阅读 · 0 评论 -
ORA-10458: standby database requires recovery
·1. SYS@testdg>alter database open;alter database open*ERROR at line 1:ORA-10458: standby database requires recoveryORA-01152: file 1 was not restored from a sufficiently old backupORA-011原创 2013-09-08 16:16:16 · 3666 阅读 · 0 评论 -
ORA-01103: database name 'test' in control file is not 'standby'
主备primary,standby库的instance name不一致引起的把备库的db_name要和主库一致,但*.db_unique_name='standby'应为备库的原创 2013-09-07 12:22:50 · 7000 阅读 · 0 评论 -
rman 以@连接数据库时
如连接果在以rman数据库如果指定@db_name时,如果报如下错误[oracle@localhost Desktop]$ rman target sys/jume123456@testRecovery Manager: Release 11.2.0.1.0 - Production on Sat Aug 31 08:53:12 2013Copyright (c) 1982, 20原创 2013-08-31 21:00:36 · 2190 阅读 · 0 评论 -
oracle 创建PWD文件
1. 在创建pwd文件时,不能在结尾加分号否则会出现如下错误[oracle@localhost pfile]$ orapwd file=$ORACLE_HOME/dbs/orapwtest.ora password=jume123456 entries =30;Usage: orapwd file= entries= force= ignorecase= nosysdba= wher原创 2013-08-31 20:25:12 · 1934 阅读 · 0 评论 -
Oracle启动监听报错:The listener supports no services解决
问题原因:数据库实例没注册到listener解决方法一:在listener.ora里面添加了一行SID_LIST_LISTENER =(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (SID_NAME = orcl) ))注:里面的orcl根据你安装的数据库实例名确定,我用此法解决了这个报错。解决方法转载 2013-08-28 23:24:58 · 660 阅读 · 0 评论