oracle
文章平均质量分 83
jadesuper6
这个作者很懒,什么都没留下…
展开
-
Error 1017 received logging on to the standby
oracle 11.2.0.1 ,linuxdataguard主备切换,怎么都不成功。。主库上报错:Completed: ALTER DATABASE MOUNTMon Dec 10 22:12:58 2012ALTER DATABASE OPENLGWR: STARTING ARCH PROCESSESMon Dec 10 22:12:58 2012ARC0原创 2012-12-11 16:17:13 · 5485 阅读 · 0 评论 -
根据rowid删除表中重复的行
SQL>select * from ttt; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO---------- ---------- --------- ---------- --------- ---------- ---------- ----------原创 2012-10-17 11:49:31 · 1142 阅读 · 0 评论 -
Agent process exited abnormally during initialization
手动启动xp系统中的oracle服务OracleDBConsoleorcl,启动不起来,提示错误,后查看事件查看器,在应用程序里有这样的错误提示:Agent process exited abnormally during initialization, 该服务启动不起来的原因是xp系统主机的主机名被修改过(重装过系统,但是oracle软件没有重装)。发现Oracle的EM使用我原来的机器名生成了原创 2012-10-17 11:51:24 · 1215 阅读 · 0 评论 -
一次字符乱码的解决过程
可以往表test里插入汉字,但是select test时就显示乱码。SCOTT@PROD>select empno,ename,sal from test; EMPNO ENAME SAL---------- ---------- ---------- 7900 JAMES 950 7902 ??原创 2012-10-17 11:54:44 · 678 阅读 · 0 评论 -
rman实验(一)
rman实验(一)今天做两个实验,两个都是朋友问的问题。问题1:假如做了3次全备,full1,full2,full3,其中full3是最近做的备份,但是最近做的这次full3的备份集不能用了,问:能从前一次的备份集恢复到现在吗?解决问题1:实验:[oracle@redhat ~]$ sqlplus /nologSQL> conn /as sysdba Connect原创 2012-10-17 12:49:16 · 1193 阅读 · 0 评论 -
rman实验(二)
rman实验(二)问题2:假如依次做了几次这样的备份:a、全备b、level 0c、全备d、level 1做完这几次备份后,如果恢复,rman是从哪个备份集开始restore?recover的时候用到哪些备份集?[root@redhat ~]# su - oracle[oracle@redhat ~]$ sqlplus /nologSQL> conn sco原创 2012-10-17 12:50:15 · 1142 阅读 · 0 评论 -
ORA-00600: internal error code, arguments: [keltnf
ORA-00600: internal error code, arguments: [keltnfFri Nov 26 10:16:49 2010Errors in file /db/oracle10g/admin/test/udump/test_ora_29374.trc:ORA-00600: internal error code, arguments: [keltnfy-l原创 2012-10-17 12:58:42 · 973 阅读 · 0 评论 -
ORA-00600: ORA-12012 ORA-08102解决
SQL> startup pfile=?/dbs/inittesttt.oraORACLE instance started.Total System Global Area 2147483648 bytesFixed Size 2022144 bytesVariable Size 184550656 bytesDa原创 2012-10-17 13:06:00 · 2288 阅读 · 0 评论 -
INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory
INFO: /usr/bin/ld: crt1.o: No such file: No such file or directoryINFO: mv -f /oracle/app/product/10.2.0/db_1/bin/ctxlc /oracle/app/product/10.2.0/db_1/bin/ctxlcOINFO: mv ctxlc /oracle/app/pro原创 2012-10-17 13:10:57 · 7302 阅读 · 0 评论 -
ORA-31613 Master process DM00 failed during startup
[oracle@scs_abz_ga_ora ~]$ expdp appd/appd parfile=dp.parExport: Release 10.2.0.1.0 - 64bit Production on Monday, 15 August, 2011 20:31:26Copyright (c) 2003, 2005, Oracle. All rights reserved原创 2012-10-18 15:57:28 · 6655 阅读 · 0 评论 -
the specified nodes are not clusterable
在两个linux系统上安装oracle 10g rac,用户等效性和时间同步都配置好了,安装到这个一步时,就提示the specified nodes are not clusterable.。配置好用户等效性后,在两个节点上分别测试远程联通性,都能正常执行远程节点上的命令,比如:在red202上:[oracle@red202 ~]$ ssh red203 hostnamere原创 2012-10-17 11:44:55 · 690 阅读 · 0 评论 -
WARNING: failed to read mirror side 1 of virtual extent 229 logical extent
WARNING: failed to read mirror side 1 of virtual extent 229 logical extent-bash-3.2$ cat /etc/release Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC Copyright (c) 1983, 2011, Or原创 2012-10-21 09:54:19 · 4785 阅读 · 0 评论 -
TNS-12537,ORA-16198,ORA-16072
搭建最大保护模式的DG,备库报错如下:***********************************************************************Fatal NI connect error 12537, connecting to: (LOCAL=NO) VERSION INFORMATION: TNS for Linux:原创 2012-12-04 21:25:51 · 1341 阅读 · 0 评论 -
ORA-27125: unable to create shared memory segment
ORA-27125: unable to create shared memory segment【转】http://www.eygle.com/rss/20111202.html 在某些操作系统上,当启动数据库或者创建数据库时都可能出现ORA-27125错误,我在Oracle Linux 6上安装Oracle 10.2.0.1,创建数据库时就遇到了这个错误。这个错误的解决就是转载 2012-10-19 10:27:26 · 855 阅读 · 0 评论 -
ORA-16038的解决
ORA-16038的解决ORA-16038的解决数据库装载完毕。ORA-16038: 日志 3 序列号 5035 无法归档ORA-19809: 超出了恢复文件数的限制ORA-00312: 联机日志 3 线程 1:......REDO03.LOG'DB是归档模式, 每个日志组只有一个文件, 没办法, 搜寻文档和晚上的资料, 有如下的解决方法:损坏非当前转载 2012-10-17 12:57:43 · 471 阅读 · 0 评论 -
linux下完全删除oracle
Linux环境下完全删除Oracle测试环境:Linux系统 Oracle 10.2.0.11.用oracle用户登录如果要再次安装, 最好先做一些备份工作。包括用户的登录脚本,数据库自动启动关闭的脚本,和Listener自动启动的脚本。要是有可能连创建数据库的脚本也保存下来2.使用SQL*PLUS停止数据库[oracle@ora1020 oracle]原创 2012-10-17 13:09:07 · 706 阅读 · 0 评论 -
centos4.8_64上安装oracle10201建库报ORA-12547
根据Oracle提供的官方文档在centos x86-64上安装Oracle10201,在建立数据库的过程中,DBCA报错,错误号为ORA-12547。整个安装过程没有报错,通过DBCA建立数据库时则会出现ORA-12547错误。检查$ORACLE_HOME/cfgtoollogs/dbca目录下的trace.log文件发现下面的错误信息:[Thread-12] [18:18:55原创 2012-10-17 13:13:01 · 1721 阅读 · 0 评论 -
EM乱码解决
环境:linux centos 5.3 64位。oracle 10.2.0.1 64位。[oracle@server115 zhs]$ cat /etc/sysconfig/i18n#LANG="zh_CN.UTF-8"LANG="zh_CN.GB18030"SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_U原创 2012-10-18 15:13:16 · 1350 阅读 · 0 评论 -
oracle10.2.0.1升级到10.2.0.4报错
oracle10.2.0.1升级到10.2.0.4报错用的系统是Centos5.3 ,32位的。报错如下:[root@node51 logs]# more installActions2012-05-14_12-13-46PM.logUsing paramFile: /vol/Disk1/install/oraparam.iniChecking installer requ原创 2012-10-19 10:51:03 · 700 阅读 · 0 评论 -
The ASM instance configured on the local node is a single-instance ASM
安装好RAC后,在用DBCA建库时选择ASM做为存储方案时,有时候会报错说ASM是单实例环境,不是RAC环境,这样就无法继续建库下来,出错信息如下:The ASM instance configured on the local node is a single-instance ASM.To create a single-instance database using this原创 2012-10-21 09:44:08 · 1078 阅读 · 0 评论 -
ORA-00245: control file backup operation failed
ORA-00245: control file backup operation failed1、现象:使用rman备份RAC的控制文件不成功。查看rman的配置如下:RMAN> show all;RMAN configuration parameters for database with db_unique_name PROD9 are:CONFIGURE原创 2012-10-21 09:53:28 · 794 阅读 · 0 评论 -
ORA-24324 ORA-01041 ORA-03113
ORA-24324 ORA-01041 ORA-03113SQL> conn / as sysdbaConnected.SQL> startupORA-01081: cannot start already-running ORACLE - shut it down firstSQL> shutdown immediateORA-03113: end-of-fi原创 2012-10-19 10:23:26 · 1553 阅读 · 0 评论 -
centos5.3升级oracle
Red Hat Enterprise Linux Server release 4 (Tikanga)系统 :centos5.3 64oracle:10.2.0.1升级到:10.2.0.4执行安装程序报错:Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.原创 2012-10-19 10:30:41 · 477 阅读 · 0 评论 -
ORA-00600: internal error code, arguments: [4194], [29], [27], [], [], [], [], []
ORA-00600: internal error code, arguments: [4194], [29], [27], [], [], [], [], []DEBUG: Replaying xcb 0xa4d2cf40, pmd 0xa4fd35c8 for failed op 8Doing block recovery for file 2 block 10142No bl原创 2012-10-19 10:42:57 · 1351 阅读 · 0 评论 -
Error: can not register my instance state - -1
Error: can not register my instance state - -1实验:节点2上的实例总是起不来:[root@rac1 crs]# crs_stat -t Name Type Target State Host ---------------------原创 2012-10-20 22:20:16 · 936 阅读 · 0 评论 -
not all alterations performed
Remote 'AttachHome' failed on nodes:'rac2'.Refer to '/homo/oracle/oraInventory/logs/installActions2012-07-14_09-01-51AM.log' for details.You can manualy re-run the following command on the failed原创 2012-10-20 22:59:36 · 1277 阅读 · 0 评论 -
/u01/crs102/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared
/u01/crs102/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared安装过程中在1节点执行root.sh脚本时报错:[root@rac1 ~]# /u01/crs102/root.sh Checking to see if Oracle CRS原创 2012-10-21 09:45:09 · 2223 阅读 · 0 评论 -
Initializing the Oracle ASMLib driver: [FAILED]
Initializing the Oracle ASMLib driver: [FAILED][root@rac1 ~]# /etc/init.d/oracleasm configureConfiguring the Oracle ASM library driver.This will configure the on-boot properties of the Oracl原创 2012-10-21 09:45:52 · 1685 阅读 · 0 评论 -
ORA-00245: control file backup operation failed
ORA-00245: control file backup operation failedchannel ch00: backup set complete, elapsed time: 00:12:05channel ch00: starting incremental level 0 datafile backup setchannel ch00: specifying dat原创 2012-10-21 09:51:06 · 677 阅读 · 0 评论 -
模拟恢复参数文件
模拟恢复参数文件模拟恢复:spfile 、pfile 、控制文件、数据文件全部丢失。有全备份文件、参数文件和控制文件的备份集。步骤:1、用oracle默认的init.ora文件,建一个pfile,在其中要为控制文件指定路径:control_files = (/db/oracle10g/oradata/peak/control1.dbf,/db/oracle10g/oradata原创 2012-10-21 09:54:55 · 618 阅读 · 0 评论 -
Interface eth0 checked failed
Interface eth0 checked failedVMware GSX Server 做RAC实验。[oracle@rac1 racg]$ cat /etc/redhat-releaseRed Hat Enterprise Linux AS release 4 (Nahant Update 6)[root@rac1 ~]# uname -aLinux rac1 2.6.原创 2012-10-21 09:57:01 · 953 阅读 · 0 评论 -
import server uses ZHS16GBK character set (possible charset conversion)
源库:[oracle@redhat31 ~]$ env |grep LANGLANG=en_US.UTF-8[oracle@redhat31 ~]$SQL> select * from database_properties;PROPERTY_NAME PROPERTY_VALUE-----------------------------原创 2012-10-21 09:57:46 · 4474 阅读 · 0 评论 -
oracle函数大全
SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE--------- --------- --------- -------转载 2012-10-17 13:17:37 · 353 阅读 · 0 评论 -
RMAN FORMAT字符串格式化
RMAN FORMAT字符串格式化使用FORMAT参数时可使用的各种替换变量,如下(注意大小写)所示:%a:Oracle数据库的activation ID即RESETLOG_ID。%c:备份片段的复制数(从1开始编号,最大不超过256)。%d:Oracle数据库名称。%D:当前时间中的日,格式为DD。%e:归档序号。%f:绝对文件编号原创 2012-10-20 22:19:26 · 792 阅读 · 0 评论 -
catalog备份数据库
使用catalog备份数据库要备份51上的数据库(目标数据库),在52(catalog database)上操作:SQL> create tablespace rmanct datafile '/db/oracle11g/oradata/peak/rmanct01.dbf' size 50m;Tablespace created.SQL> grant connect , re原创 2012-10-20 22:18:39 · 1073 阅读 · 0 评论 -
pdksh-5.2.14-36.el5.i386.rpm
pdksh-5.2.14-36.el5.i386.rpm安装oracle11g报少一个rpm包。 [root@node52 ~]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpmwarning: pdksh-5.2.14-36.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562原创 2012-10-19 10:46:11 · 2944 阅读 · 0 评论 -
使用rman进行数据库迁移
51上操作:RMAN> show all;RMAN configuration parameters are:CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # defaultCONFIGURE BACKUP OPTIMIZATION OFF; # defaultCONFIGURE DEFAULT DEVICE TYPE TO DISK;原创 2012-10-19 10:47:35 · 1000 阅读 · 0 评论 -
Upgrade Oracle 10g from 10.2.0.1 to 10.2.0.4 (Single Instance)
Upgrade Oracle 10g from 10.2.0.1 to 10.2.0.4 (Single Instance) 1. Stop all services of oracle并且冷备份数据[oracle@node19 ~]$ emctl stop dbconsole[oracle@node19 ~]$ isqlplusctl stop[oracle@node19 ~原创 2012-10-19 10:51:59 · 748 阅读 · 0 评论 -
改oracle的name和dbid
改oracle的name和dbid-- 我们可以使用NID 命令只修改DBNAME, 或者只修改DBID,或者2个都修改。--本文不修改 instance_name他们的区别如下: 1.If you change the DBID you must open the database with the RESETLOGS option,which re-creates原创 2012-10-20 22:07:41 · 889 阅读 · 0 评论 -
修改oracle实例名
目前的实例名是PROD9,我要改为RAC 。1、创建一个pfile ,一会儿要用。bash-3.2$sqlplus /nologSQL*Plus: Release 10.2.0.4.0 - Production on Mon May 21 10:48:59 2012Copyright (c) 1982, 2007, Oracle. All Rights Reserve原创 2012-10-20 22:09:02 · 584 阅读 · 0 评论