ITPub博客

首页 > 数据库 > Oracle > [Oracle] ORA-12547: TNS:lost contact

[Oracle] ORA-12547: TNS:lost contact

原创 Oracle 作者:tolilong 时间:2016-03-06 20:28:50 0 删除 编辑
[mon@topaz source]$ export ORACLE_BASE=/u01/oracle
[mon@topaz source]$ export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
[mon@topaz source]$ export ORACLE_SID=xxxxx
[mon@topaz source]$ sqlplus / as sysdba
-bash: sqlplus: command not found
[mon@topaz source]$ $ORACLE_HOME/bin/sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 28 14:07:48 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

ERROR:
ORA-12547: TNS:lost contact

[oracle@topaz bin]$ ls -l oracle
-rwxrwxr-x 1 oracle oinstall 210824714 May  4  2014 oracle
[oracle@topaz bin]$ 
[oracle@topaz bin]$ chmod 6751 oracle
[oracle@topaz bin]$ ls -l oracle
-rwsr-s--x 1 oracle oinstall 210824714 May  4  2014 oracle

[mon@topaz source]$ export ORACLE_BASE=/u01/oracle
[mon@topaz source]$ export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
[mon@topaz source]$ export ORACLE_SID=xxxxx
[mon@topaz source]$ $ORACLE_HOME/bin/sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 28 14:10:06 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected.
SQL> exit

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

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1009150