使用DBCA创建数据库时,报告错误:ORA-12547: TNS: lost contact错误
〖Environment(环境)〗 OS:Linux AS45 DB:oracle10gR2〖Symptom(现象) 〗 在AS4上安装完oracle10g以后,用DBCA创建数据库时,报告下面错误:oraclewxxr1: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directoryERROR:ORA-12547: TNS:lost contact〖Cause(原因) 〗 ORA-12547错误的产生,是由于缺少RPM包libaio-0.3.93-4.i386.rpm所引起的。〖Action(方法) 〗Step1:下载libaio-0.3.93-4.i386.rpm包。Step2:安装包。rpm -iv libaio-0.3.93-4.i
在安装linux X86-64的Oracle10201时,在链接过程中出现了这个错误
在安装linux X86-64的Oracle10201时,在链接过程中出现了这个错误详细错误信息为:Error in invoking target‘install’of makefile‘/opt/oracle/product/10.2/ctx/lib/ins_ctx.mk’. See‘/opt/oracle/oraInvertory/logs/installActions2010-09-28_10-27-06AM.log’for details.从日志中获取的详细信息为:INFO: gcc -m32 -o ctxhx -L/opt/oracle/product/10.2/ctx//lib32/ -L/opt/oracle/product/10.2/lib32/ -L/opt/oracle/product/10.2/lib32/stma_+YO&F0ubs/ /opt/oracle/product/10.2/ctx/lib/ctxhx.o -L/opt/oracle/produ
问题小结:Linux下oracle常见安装错误总结
问题小结:Linux下oracle常见安装错误总结错误一:/tmp/OraInstall2007-12-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..原因是:缺少支持打印的图形化动态链接库libXp.so.6这个错误是由于缺少系统安装包,在RHEL5以前的版本,可以安装xorg-x11-deprecated-libs包即可,这个安装包可以在系统光盘第三张盘中找到(对于redhat as4.2以前,redhat as4.4是在第四张安装光盘)我下载的文件如下:xorg-x11-deprecated-libs-6.8.2-31.i386.rpm错误二:Except
php的oci_connect偶尔出现OCIEnvNlsCreate fail和缺失LD_LIBRARY_PATH的处理办法
使用php+oracle已经好几年了,不管是apache+php,还是nginx+fastcgi+phpfpm,每隔几天或者几周时间,服务器会出现php运行错误,信息如下:PHP Warning: oci_connect() : OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in ... 意思是LD_LIBRARY_PATH的变量缺失了,导致oracle的库文件找不到。但是为什么运行好好地,然后突然就有这个错误了呢,一直搞不明白,只能把它当做php的一个bug了。[@more@]后来google b
查看用户的角色及权限
查看用户的角色及权限1、查看所有用户 select * from dba_user; select * from all_users; select * from user_users; 2、查看用户系统权限 select * from dba_sys_privs; select * from all_sys_privs; select * from user_sys_privs; 3、查看用户对象权限 select * from dba_tab_privs; select * from all_tab_privs; select * from user_tab_privs; 4、查看所有角色 select * from dba_roles; 5、查看用户所拥有的角色 select * from dba_role_privs; select * from user_role_privs;
执行数据库克隆时报ORA-01103错误
执行数据库克隆时报ORA-01103错误问题描述:数据库克隆时,在执行startup mount时报错。SQL> startup mountORACLE instance started. Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 71304572 bytesDatabase Buffers 88080384 bytesRedo Buffers 7139328 bytesORA-01103: database name 'DB1' in control file is not 'DB2' 这表示测试数据库中的参数DB_NAME跟控制文件中的不一致。[@more@]解决办法:重建控制文件。1) 删除目前的控制文件2) 先备份原DB1的控制文件SQL> alter database backup cont
exp 导出时挂起
exp 导出时挂起问题描述:在使用exp 导出时,导出到exporting pre-schema procedural objects and actions .. exporting foreign function library names for user CASH .. exporting PUBLIC type synonyms .. exporting private type synonyms .. exporting object type definitions for user CASH About to export CASH's objects ... .. exporting database links .. exporting sequence numbers .. exporting cluster definitions时挂起,执行不下去了。。。解决方法:重启数据库及操作系统。[@more@]
Linux及Win平台下Oracle 密码文件重建
Linux及Win平台下Oracle 密码文件重建 很多时候需要对ORACLE密码文件进行重建,ORACLE对密码文件有着较为严格的要求,比如文件名,文件名大小写等等,有一次因ORACLE_SID的大小写折腾了很久,现记录如下:Linux平台:orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password='' entries=n注意这里$ORACLE_SID的大小写给用户赋予sysdba权限后会记录在v$pwfile_users视图中,如果密码文件不存在会返回ORA-01994的错误。Win平台: orapwd file=$ORACLE_HOMEdatabasepwd$ORACLE_SID.ora password='' entries=n$ORACLE_SID为环境变量,注意大
Oracle 9i和10G软件及补丁下载地址
Oracle 9i和10G软件及补丁下载地址oracle补丁下载关键字: oracle 9.2.0.4 = 3095277 9.2.0.5 = 3501955 9.2.0.6 = 3948480 9.2.0.7 = 4163445 9.2.0.8 = 4547809(9i最终) 10.1.0.3 = 3761843 10.1.0.4 = 4163362 10.1.0.5 = 4505133 10.2.0.2 = 4547817 10.2.0.3 = 5337014 10.2.0.4 = 6810189下载补丁时,可进入cmd,使用ftp命令直接登录网站下载。相同版本,针对不同的操作系统,会有不同的补丁。每个补丁大小约在500MB~1.3GB之间。下面以oracle 10.2.0.2 补丁为例: ftp updates.oracle.com user metalib_user 输入密码 cd 4547
IMP-00017: following statement failed with ORACLE error 957错误的解决方法
IMP-00017: following statement failed with ORACLE error 957错误的解决方法问题描述:imp导入数据时,报IMP-00017: following statement failed with ORACLE error 957错误。如下所示:IMP-00017: following statement failed with ORACLE error 957:"CREATE FORCE VIEW "BAOPAY"."V_TMP" ("TIME","RS_ID""","SJQB","SALE8","????","????","???","ALIPAYWAP","??????","????","?????&q
ORA-1652: unable to extend temp segment by 128 in tablespace错误的解决方法
ORA-1652: unable to extend temp segment by 128 in tablespace错误的解决方法问题描述:数据库日志报ORA-1652: unable to extend temp segment by 128 in tablespace TEMP 错误。解决方法:1、检查临时表空间的使用情况及状态;2、发现TEMP表空间使用率100%,且文件自动扩展达最大32G大小,数据文件已不能进行自动扩展;3、手工切换TEMP表空间后,问题解决;[@more@]
删除或重命名 listener.log 文件的方法(转)
删除或重命名 listener.log 文件的方法(转)As the listener.log file grows, the DBA will want to either remove or rename this log file. If you have ever tried to remove or rename the listener.log file on Windows while the TNS listener process was running you will quickly notice that Windows holds a lock on this file and returns an error:C:> del C:oracleora92networkloglistener.logC:oracleora92networkloglistener.logThe process cannot access the file because it is being used by another process.Most
Windows系统下控制文件的移动及恢复
Windows系统下控制文件的移动及恢复SQL> conn / as sysdba已连接。SQL> show parameter control_filesNAME TYPE VALUE------------------------------------ ----------- ------------------------------control_files string D:CONTROL01.CTL, C:ORACLEAP PADMINISTRATORFLASH_RECOVERY _AREATESTCONTROL02.CTLSQL> shutdown immediate数据库已经关闭。
清空listener.log文件内容后,内容不能写入listener.log文件的解决方法
清空listener.log文件内容后,内容不能写入listener.log文件的解决方法问题描述:清空listener.log文件内容后,内容不能写入listener.log文件中。解决方法:执行:$ Lsnrctl status发现正常$ lsnrctl>Show log_fileConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mant)(PORT=1521)))LISTENER parameter "log_file" set to listener.logThe command completed successfully>show log_statusConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mant)(PORT=1521)))LISTENER parameter "log_status&qu
linux下oracle的TNS-12546错误解决办法
linux下oracle的TNS-12546错误解决办法启动监听时出TNS-12546错问题描述:[oracle@test admin]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-JUN-2008 11:07:16Copyright (c) 1991, 2005, Oracle. All rights reserved.Starting /oracle/orasys/db_1/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionSystem parameter file is /oracle/orasys/db_1/network/admin/listener.oraLog messages written to /oracle/orasys/db_1/network/log/listener.logError listening on: (DE
Oracle数据库升级(转发)
Oracle数据库升级Linux平台:Oracle升级(Patch包)Red Hat Linux 4上Oracle 10.2.0.1升级到10.2.0.4A、停止oracle相关进程1、关闭dbconsoleemctl stop dbconsole2、关闭isqlplusisqlplusctl stop3、关闭数据库shutdown immediate4、停止监听程序lsnrctl stopB、安装软件升级包1、运行安装程序,以oracle运行cd /db/Disk1/./runInstaller2、点击下一步3、点击下一步4、点击下一步5、点击下一步6、安装7、安装过程中8、运行root.sh提示9、切换到root用户运行上面的脚本10、安装结束C、升级现有数据库到10.2.0.41、启动监听程序lsnrctl star
Linux环境下oracle数库库改名,实例改名
Linux环境下oracle数库库改名,实例改名转自:http://seteor.itpub.net/post/42575/502279SQL> select instance_name from v$instance; --查看当前实例名INSTANCE_NAME----------------testSQL> select name from v$database; --查看当前dbnameNAME---------TESTSQL> shutdown immediate --关闭数据库Database closed.Database dismounted.ORACLE instance shut down.SQL> startup mount; ORACLE instance started.Total System Global Area 205520896 bytesFixed Size 1218532 bytesVariable Size 67110940 bytesDatabase Bu
修改数据库db_name的方法
修改数据库db_name的方法转自:http://charsi.itpub.net/post/42352/502277如何修改数据库的db_name?下面提供一种方法供参考本例将db_name=testdb改名成db_name=testdb1,修改结束后,instance_name还不变,仍为testdb首先将数据库启动到mount状态SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> SQL> SQL> startup mount ORACLE instance started.Total System Global Area 289406976 bytesFixed Size 1219040 bytesVariable Size 109053472 bytesDatabase Buffers 176160768 by
系统临时表空间不足问题
系统临时表空间不足问题转自:http://rewqrewq.itpub.net/post/8005/502272今天碰到个问题,系统的临时表空间不断报错,说无法扩展。ORA-1652: unable to extend temp segment by 128 in tablespace DMPTEMP我们这个系统的临时表空间应该足够,但不知道为什么会总是报无法扩展,于是查了查资料。查看当前占用临时表空间的语句:SELECT a.username, a.sid, a.serial#, a.osuser, b.tablespace, b.blocks, c.sql_textFROM v$session a, v$tempseg_usage b, v$sqlarea cWHERE a.saddr = b.session_addrAND c.address= a.sql_addressAND c.has
ORA-06502: PL/SQL: numeric or value error: character to number conversion error错误的解决方法
ORA-06502: PL/SQL: numeric or value error: character to number conversion error错误的解决方法故障描述:数据库日志报ORA-12012: error on auto execute of job 84ORA-06502: PL/SQL: numeric or value error: character to number conversion errorORA-06512: at "SALE8_QW.DAOHUOONLINE", line 34ORA-06512: at line 2解决方法:1、找到存储过程DAOHUOONLINE,并将代码定位在34行,发现代码中两个字符串的变量使用了+进行赋值,如:contentBySms:=contentBySms+smsNote;2、修改代码,将+替换成||,如:contentBySms:=co