ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-12162: TNS:net service name is incorrectly specified

ORA-12162: TNS:net service name is incorrectly specified

原创 Linux操作系统 作者:abp0109 时间:2010-08-28 07:24:31 0 删除 编辑

今天刚安装了一个ORACLE,装完了,在执行sqlplus '/as sysdba'时,报如下错误,

[oracle@oeldb ~]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 26 08:05:30 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

ERROR:
ORA-12162: TNS:net service name is incorrectly specified

 

后来一想,原来是我的.bash_profile文件中的$ORACLE_SID还没指定呢。指定一下$ORACLE_SID,就行了!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23219371/viewspace-672031/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: ORACLE10G的回收站
请登录后发表评论 登录
全部评论

注册时间:2010-01-21

  • 博文量
    17
  • 访问量
    36615