ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 测试oracle10g dg备库ORA-12162处理一则

测试oracle10g dg备库ORA-12162处理一则

原创 Linux操作系统 作者:wisdomone1 时间:2010-01-19 12:23:02 0 删除 编辑
前言:在测试oracle10g dg时,备库用sqlplus连接出现如题错误。
查阅相关文档,解决如下

1,-bash-3.1$ sqlplus sys/system as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 19 04:48:02 2010

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

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

2,配置ORACLE_SID
3,用sqlplus重连,ok
-bash-3.1$ sqlplus sys/system as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 19 04:49:30 2010

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

Connected to an idle instance.

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

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689906