简体   繁体   中英

Oracle Client 32 bit windows connecting to Oracle Server

我必须连接或提供服务(我不知道您确切叫什么),创建了表空间,并且我有用户名,密码,但是我不知道如何连接到Oracle DB。有一个提供凭据和服务名称的过程,请您告诉我该如何做

You must setup a TNS entry. Google sample tnsnames.ora or use the New Database Connection wizard in SQL Developer. Typically a TNS entry requires your hostname, port (default is 1521) and SID.

Look under your Oracle client home for NETWORK\\admin directory

Create tnsnames.ora with an entry that matches your environment. You can also use the Oracle Net Configuration Assistant (Start -> Programs -> OracleHome1 -> Configuration and Migration Tools) on Windows

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

Try pinging it first:

tnsping ora1

SQLPlus

sqlplus scott/tiger@ora1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM