PL/SQL Developer remote connection to Oracle Database

Source: Internet
Author: User

PL/SQL Developer

 

Remote connection to Oracle Database

 

I searched many methods online. This is feasible!

 

1. Configure the server tnsnames. ora file. If oracle is not installed on the local machine, you can copy one (tnsnames. ora file) in the specified directory, because I have installed oracle, so directly configure this file.

 

# Tnsnames. ora Network Configuration File: D: \ Oracle11g \ product \ 11.2.0 \ dbhome_1 \ network \ admin \ tnsnames. ora

 

# Generated by Oracle configuration tools.

 

 

LISTENER_ORCL =

 

(ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521 ))

 

 

 

Export lr_connection_data =

 

(DESCRIPTION =

 

(ADDRESS_LIST =

 

(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521 ))

 

)

 

(CONNECT_DATA =

 

(SID = CLRExtProc)

 

(PRESENTATION = RO)

 

)

 

)

 

 

 

ORCL =

 

(DESCRIPTION =

 

(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.25.htm) (PORT = 1521 ))

 

(CONNECT_DATA =

 

(SERVER = DEDICATED)

 

(SERVICE_NAME = orcl)

 

)

 

)

1. oracle can be remotely connected using plsql without installing a client

 

First, search for the following files on the machine where the ORACLE server is installed,

 

 

Oci. dll

Ocijdbc10.dll

Ociw32.dll

Orannzsbb10.dll

Oraocci10.dll

Oraociei10.dll (the server may not exist. If not, you can log on to pl SQL with the username and password)

Sqlnet. ora

Tnsnames. ora

Classes12.jar

Ojdbc14.jar

Put it in a folder, such as your lient

 

2. Configure tnsnames. ora. If oracle is not installed on the local machine, copy one (tnsnames. the ora file is under % ORACLE_HOME % \ network \ admin) in the Directory D: \ clientlient above.

Oracledata =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.58) (PORT = 1521 ))

)

(CONNECT_DATA =

(SERVICE_NAME = oracledata)

)

)

 

 

3. Add an environment variable named TNS_ADMIN. The value is the path of the tnsnames. ora file (for example, D: \ your lient,

 

In particular, after reinstallation or other operations, forget the TNS_ADMIN variable, plsql login will report that the specified connection identifier cannot be parsed), in order to find the tnsnames. ora mentioned above. If ORACLE is installed on the local machine and the ORACLE_HOME environment variable is set, the tnsnames. ora file is automatically located in % ORACLE_HOME %/network/admin.

 

4. Set the ORACLE language and add environment variables:

"NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK", (AMERICAN_AMERICA.US7ASCII is

 

ASCII encoding type. For other types, check them on the server or on the Internet)

(This step is currently correct. If the encoding is incorrect, garbled characters will be generated)

 

5. download and install the PL. SQL. Developer configuration application

Configure tools> preferences> connection

Oracle Home = D: \ oracleclient

OCI library = D: \ oracleclient \ oci. dll

 

6. If you enable plsql again, you can log on to the database by entering the username and password with the oracledata option.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.