[英]Oracle Client 32 bit windows connecting to Oracle Server
我必须连接或提供服务(我不知道您确切叫什么),创建了表空间,并且我有用户名,密码,但是我不知道如何连接到Oracle DB。有一个提供凭据和服务名称的过程,请您告诉我该如何做
You must setup a TNS entry. 您必须设置一个TNS条目。 Google sample tnsnames.ora or use the New Database Connection wizard in SQL Developer. Google示例tnsnames.ora或使用SQL Developer中的“新建数据库连接”向导。 Typically a TNS entry requires your hostname, port (default is 1521) and SID. 通常,TNS条目需要您的主机名,端口(默认为1521)和SID。
Look under your Oracle client home for NETWORK\\admin directory 在Oracle客户端主目录下查找NETWORK \\ admin目录
Create tnsnames.ora with an entry that matches your environment. 使用与您的环境匹配的条目创建tnsnames.ora。 You can also use the Oracle Net Configuration Assistant (Start -> Programs -> OracleHome1 -> Configuration and Migration Tools) on Windows 您也可以在Windows上使用Oracle Net Configuration Assistant(开始->程序-> OracleHome1->配置和迁移工具)
ORA1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORA1)
)
)
Then connect with the TNS alias and username and password 然后使用TNS别名以及用户名和密码进行连接
Try pinging it first: 尝试先ping它:
tnsping ora1
SQLPlus 的SQLPlus
sqlplus scott/tiger@ora1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.