sqlplus登录问题

来源:互联网 发布:js base64转换为文件 编辑:程序博客网 时间:2024/06/02 16:12

问题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_1export 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


0 3
原创粉丝点击