Home > Database > Mysql Tutorial > body text

Oracle数据库ORA-12162错误解决

WBOY
Release: 2016-06-07 17:10:44
Original
5373 people have browsed it

启动Oracle时,在SQL提示符下输入conn /as sysdba,会出现下面的错误: SQLgt; conn /as sysdba ORA-12162 TNS:net service nam

启动Oracle时,在SQL提示符下输入conn /as sysdba,会出现下面的错误:

SQL> conn /as sysdba

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

原因:

是因为ORACLE_SID变量没有设置正确的缘故。

解决方法:

在.bash_profile文件中,,正确设置ORACLE_SID,然后使用source  .bash_profile命令使新设置的环境变量生效。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template