Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > 今天在Solaris上安装oracle10.2.0.1后遇到错误:TNS-12546和ORA-12514
【标  题】:今天在Solaris上安装oracle10.2.0.1后遇到错误:TNS-12546和ORA-12514
【关键字】:Solaris,oracle10.2.0.1,TNS-12546,ORA-12514
【来  源】:http://blog.csdn.net/edeed/archive/2007/04/19/1571088.aspx

今天在Solaris上安装oracle10.2.0.1后遇到错误:TNS-12546和ORA-12514

Your Ad Here

忙乎一天,终于成功完成 Oracle 0g Release 2 (10.2) for Solaris Operating System (SPARC 64-Bit) 的安装,安装完后遇到了两个问题,现在解决了,记载以下方便日后查询。

一、启动监听时出TNS-12546错

症状:

$lsnrctl start
LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 19-APR-2007 16:38:17
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Starting /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/bin/tnslsnr: please wait...
TNSLSNR for Solaris: Version 10.2.0.1.0 - Production
System parameter file is /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/network/admin/listener.ora
Log messages written to /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/network/log/listener.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12546: TNS:permission denied
 TNS-12560: TNS:protocol adapter error
  TNS-00516: Permission denied
   Solaris Error: 13: Permission denied
Listener failed to start. See the error message(s) above...

产生原因和解决办法:

The Unix permissions for the hidden directory /tmp/.oracle should be:
Owner = the Oracle user who performed the database install,
Group = the dba group of the Oracle user,
and the directory's Unix permissions should be drwxrwxrwx
Change the permissions on the .oracle directory:
1) cd /var/tmp(on Solaris) or /tmp(on Hp and IBM)
2) Change the ownership and group of the ".oracle" directory to "oracle/dba":
# chown -R oracle10:dba .oracle
or
3) Change the permissions on the directory:
# chmod 777 .oracle


二、通过sqlplus登陆出ORA-12514错

症状:

$ sqlplus wacos/oss@orcl10
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 19 17:03:30 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor

产生原因和解决办法:

$ lsnrctl status
...
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
发现并没有启动orcl10的监听,然后查看监听文件:
$ cd $ORACLE_HOME/network/admin
$ more listener.ora
...
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)
      (PROGRAM = extproc)
    )
  )
...
发现SID_LIST_LISTENER段并没有包含实例orcl10的相关信息:
$ vi listener.ora
修改SID_LIST_LISTENER成以下这样:
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = orcl10)
      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)
      (PROGRAM = orcl10)
    )
  )
然后重启监听并查看验证:
$ lsnrctl stop
$ lsnrctl start
$ lsnrctl status
...
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl10" has 1 instance(s).
  Instance "orcl10", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
实例orcl10的监听也起来了。
现在可以登陆了:
$ sqlplus wacos/oss@orcl10
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 19 17:19:51 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>

 
Oracle10g EM Database Console显示信息错误,和真实信息不一致:【上一篇】
WebLogic JDBC & Transaction版精华帖整理:【下一篇】
【相关文章】
  • solaris与hp-ux
  • Deploy solaris 10 jumpstart server over LAN
  • Solaris ABC for Linux/UnixDevelopers(II)
  • OpenSolaris/Solaris中文FAQ
  • Oracle9i for SUN Solaris installation.
  • Solaris 8 网络管理笔记
  • 在Solaris 10 X86上安装Oracle 10g RAC详解
  • 不用密码就可以telnet solaris 10--Solaris 10 telnet漏洞及最新应对
  • Solaris学习笔记(6)
  • Solaris学习笔记(5) - 上
  • 【随机文章】
  • 深入讨论JSF中Tree2组件使用方法
  • Visual C++编程疑难问题解
  • Visual Studio 2005 Sp1 Beta 和 .NET Micro Framework 等
  • 如何动态改变某个单元格的内容
  • 项目开发不能没有开发文档,同时要降低开发文档的使用和管理成本
  • DECORATOR模式--《敏捷软件开发》读书笔记(二)
  • ebookmark 1.8.1.94 多语言版破解过程
  • RecordCount
  • WIN2000下IIS安全配置
  • JavaScript与JavaApplet综合运用
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.