简体   繁体   English

Oracle Client 32位窗口连接到Oracle Server

[英]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.

相关问题 在已经运行 64 位 Oracle 数据库服务器的 Windows 服务器上安装 Oracle 32 位客户端 - Installing Oracle 32-bit Client on Windows Server Already Running 64-bit Oracle Database Server 使用64位Excel连接到32位Oracle客户端 - Connecting to 32 bit Oracle client with 64 bit Excel Windows 2012上的Oracle Client 32位64位 - Oracle Client 32 bit on windows 2012 64 bit 适用于64位Windows Server 2008的.net的Oracle Instant Client - Oracle instant client for .net on 64 bit windows server 2008 在同一服务器上使用带有64位oracle客户端的php 7.3.4 64bit和带有32位oracle客户端的php 7.3.4 32bit - Using php 7.3.4 64bit with a 64bit oracle client and php 7.3.4 32bit with a 32bit oracle client on the same server 将安装在 windows 10 上的 oracle 客户端连接到安装在 Virtual Box 上的 Oracle 服务器 ZAEA234089CE3AACA9B34E6 - Connecting oracle client installed on windows 10 to Oracle server installed on Virtual Box Windows 10 我们可以从64位客户端连接32位Oracle服务器,反之亦然吗? - Can we connect a 32 bit Oracle server from a 64 bit client and vice a versa? 如何知道安装的 Oracle Client 是 32 位还是 64 位? - How to know installed Oracle Client is 32 bit or 64 bit? 在Win 10 64位上使用Oracle Client 32位 - Using Oracle client 32 bit on Win 10 64 bit 在安装了32位Oracle客户端的情况下以64位模式运行 - Running in 64 bit mode with the 32 bit Oracle client installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM