sqlplus登录提示:ORA-12162:TNS:net service name is incorrectly specified错误
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 22 17:10:52 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[oracle@localhost ~]$ export ORACLE_SID=PROD //向环境变量中加入实例名。说明需手动设置
[oracle@localhost ~]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 22 17:11:16 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select status,instance_name from v$instance; //登录后查询状态,正常
STATUS INSTANCE_NAME
------------ ----------------
OPEN PROD
最新文章
- Lesson 12 Goodby and good luck
- CSS3——3D翻转相册
- ubuntu14.04 安装pip
- ubuntu12.04server下red5-1.0.0RC1的部署
- jquery autocomplete实现读取sql数据库自动补全TextBox
- MSsql bcp
- 如何在ZBrush中添加毛发
- paper 44 :颜色矩和颜色相关图(color correlogram)
- Fedora 14 x64 试用手记
- TrimPath - Js模板引擎
- C#函数式编程-序列
- C# 笔试题,看你会几道题
- Xcode8出现AQDefaultDevice (173): skipping input stream 0 0 0x0
- Effective Java 第三版——22. 接口仅用来定义类型
- 数据库 -->; SQL 和 NoSQL 的区别
- 使用 Nexus Repository Manager 搭建私有docker仓库
- java第六次课后作业
- springboot 新模板 呵呵了
- #6164. 「美团 CodeM 初赛 Round A」数列互质-莫队
- logstash收集IIS日志
热门文章
- [Oracle] - Connect to a PDB of Oracle12c
- Django -&;gt; debug模式下的静态文件服务(/media/)
- Android学习之——优化篇(1)
- uiautomator中InteractionController学习笔记(8)
- UVA 1515 Pool construction 最大流跑最小割
- hdoj--1171--Number Sequence(KMP)
- 剑指offer——03从尾至头打印列表(Python3)
- POJ 1414 暴搜
- LVS(Linux Viretual Server) 负载均衡器 + 后端服务器
- Windows 安装 MySQL8