Oracle is not installed locally, and PL/SQL remote access to Oracle Database Configuration

Source: Internet
Author: User

I wrote a blog about Oracle Database remote connection: Oracle database -- server-side remote connection configuration.

In that article, I recommended someone else's blog, which is the topic of this blog. However, I recently used it, so I went through my blog and found that the blog had been restricted for a long time. I found this on the Internet, so I decided to write it myself, for future use and convenience.

1. Install PL/SQL. This process is easy and I will not talk about it anymore. My directory is C: \ plsql.

2. Go to the Oracle website to download the Instant Client. Ask someone to leave a message and send you a Network Disk link. After installation, I directly installed it in the PL/SQL installation directory. The directory is C: \ plsql \ odac_client.

3. Create a new file named tnsnames. ora in this directory and enter the following content:

ORCL =

(DESCRIPTION =

(ADDRESS_LIST =

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

)

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = orcl)

)

)

4. Add an environment variable named TNS_ADMIN and set the value to the path of the tnsnames. ora file.

5. Open PL/SQL and click Cancel to go to the main interface. Select Preference in Tools and set Oracle Home to C: \ plsql \ odac_client, and OCI Library to C: \ plsql \ odac_client \ oci. dll.

6. Restart PL/SQL after the configuration is complete.

7. garbled characters may occur. You only need to run the following command to check the encoding:

Select userenv ('language') from dual;

You only need to add an environment variable NLS_LANG with the value as shown in the preceding statement.

Finally, I personally suggest using a notebook. For a functional blog (for example, this article), I will add it to my favorites, but simply adding an address to my favorites is not so reliable, write this article to make some suggestions and make your own learning more efficient.

After Oracle 10g is installed, restart the system. If PLSQL is used for connection, no listening is reported.

ORA-03114 PLSQL process compilation disconnection Error

Simple configuration of PLSQL connection to Oracle

Detailed description on Performance Improvement of PLSQL batch Forall operations

Use Oracle SQLDeveloper to connect to the database and create a user

Oracle PL/SQL Developer import and export data

Install the Oracle 11g and Oracle SQL Developer clients in 64-bit Windows 7

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.