每次安装oracle总是遇到相同的问题,每次都来回查资料,浪费了不少时间,做个备忘!
1、./runInstaller: /home/oracle/database/install/.oui: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
原因是:缺少 ld-linux.so.2
解决办法:yum install -y ld-linux.so.2
2、ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 13: Permission denied
Additional information: 9925
原因:权限问题
解决办法:1、 $ ls -lrt $ORACLE_HOME/bin/oracle
-rwxr-x--x. 1 oracle dba 112701117 Dec 6 17:28 /opt/app/oracle/product/10.2.0/db_1/bin/oracle
权限不够
换root用户 修改权限 #chmod 6755 $ORACLE_HOME/bin/oracle
再次查看: $ ls -lrt $ORACLE_HOME/bin/oracle
正常是这样的:
-rwsr-sr-x. 1 oracle dba112701117 Dec 6 17:28 /opt/app/oracle/product/10.2.0/db_1/bin/oracle
2、若1还不行,查看 /opt/app/oracle下的文件所属是不是oracle/dba (我的oracle用户和dba组),若不是
则: # chown -R oracle:dba +你要修改的文件名称
3、Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = caacdb)))
TNS-12541: TNS:no listener
原因:未启动监听
解决办法:http://blog.csdn.net/e_wsq/article/details/37706301