使用Instant Client Mac连接到SQLPLUS中的系统
我已经在Mac上下载了SQLPLUS Instant Client,并具有SQLPLUS的工作。我需要登录系统并连接HR模式或制作新的模式。我在连接方面遇到问题。
user@togo ~ % export PATH=~/Downloads/instantclient_19_8:$PATH
user@togo ~ % sqlplus
SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jul 1 11:43:25 2022
Version 19.8.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Enter user-name: sqlplus /nolog
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name: system
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name: sys as sysdba
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
如果有人可以帮助我解决这个问题,或者指导我完成Mac上使用SQLPLU的过程。
I have downloaded sqlplus instant client on mac and have sqlplus working. I need to login as system and connect hr schema or make a new schema. i'm having problems connecting.
user@togo ~ % export PATH=~/Downloads/instantclient_19_8:$PATH
user@togo ~ % sqlplus
SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jul 1 11:43:25 2022
Version 19.8.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Enter user-name: sqlplus /nolog
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name: system
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name: sys as sysdba
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
If anyone could help me with this problem or guide me through the process of using sqlplus on Mac.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可以
使用
sqlplus hr/bigSecretPassword@// linux01/dbservice01
进行
sqlplus hr/bigSecretPassword完成您的ezconnect ,或者如果您的侦听器在其他端口(1527)上,则可以
使用
sqlplus hr/bigSecretphere@/bigSecretPlastword@/@// linux01:1527/dbservice01
可能有很多错误消息。如果遇到错误,请不要忘记指定您收到的确切消息。 (以及它到了多长时间)
your EZCONNECT can be done
using
sqlplus hr/bigsecretpassword@//linux01/dbservice01
or if your listener is on a different port (1527) you can specify that
using
sqlplus hr/bigsecretpassword@//linux01:1527/dbservice01
Lots of error message are possible. If you get errors, don't forget to specify the exact message you get. (and how long it took before it came)
我不使用Mac,但是 - 一般而言,数据库名称(即其 alias )与用户名一起指定。我的MS Windows上这样的东西:
I don't use Mac, but - generally speaking, database name (i.e. its alias) is specified along with username. Something like this on my MS Windows: