码迷,mamicode.com
首页 > 数据库 > 详细

sqlplus登录问题

时间:2014-07-10 23:48:14      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:style   color   os   问题   line   rgb   

问题1.sqlplus login -- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory 

在/etc/profile最后添加:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:$PATH


source /etc/profile


问题2.

Enter user-name: system
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified

解决方式:sqlplus 添加上实例名,如下所示

sqlplus system/Hello54987663@localhost:1521/orcl


sqlplus登录问题,布布扣,bubuko.com

sqlplus登录问题

标签:style   color   os   问题   line   rgb   

原文地址:http://blog.csdn.net/hellochenlian/article/details/37618911

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!