ORACLE11G Remote Connection Configuration Visual Studio 2003

Source: Internet
Author: User
Tags odbc

Server-side configuration: oracle11g R2 x64

1. Setting Up Monitoring

A. Net Manager, configuration and migration tools, start-up bar, starting with program-ORACLE-ORADB11G_HOME1

B.oracle Net Configuration--------local listener, LISTENER, to see if there is a local address on the listener, no Add, Host: "LocalHost", Port: 1521, Protocol: TCP/IP

2. Turn off all firewalls (including window firewall)

3. Start the TNS Monitoring service: LSNRCTL start (This program LSNRCTL.exe is located in the Oracle_path/product/11.2.0/dbhome_1/bin directory



Client (Windows)

1. Download instant Client for Microsoft Windows (32bit) and install, Address: Instant client Download

2. Add the Instant Client installation directory to the PATH environment variable

3. Create the Tnsnames.ora configuration file with the following format:

[Plain]View Plaincopy
  1. #  Tnsnames.ora network configuration file: c:\e\orcldb\product\11.2.0\dbhome_1\network\admin \tnsnames.ora  
  2. # Generated by Oracle configuration tools.
  3. WSR =
  4. (DESCRIPTION =
  5. (Address_list =
  6. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.112) (PORT = 1521))
  7. )
  8. (Connect_data =
  9. (service_name = ORCL)
  10. )
  11. )
  12. Oraclr_connection_data =
  13. (DESCRIPTION =
  14. (Address_list =
  15. (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
  16. )
  17. (Connect_data =
  18. (SID = Clrextproc)
  19. (PRESENTATION = RO)
  20. )
  21. )
  22. LISTENER_ORCL =
  23. (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
  24. ORCL =
  25. (DESCRIPTION =
  26. (Address_list =
  27. (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
  28. )
  29. (Connect_data =
  30. (SERVER = dedicated)
  31. (service_name = ORCL)
  32. )
  33. )

For example, this file, I created the TNS service named Wrs,oracle server address is 192.168.1.112,oracle server listening port is 1521, the connected Oracle database name is ORCL, can be replaced in this format.

4. Add the Tns_admin environment variable and point to the created Tnsnames.ora configuration file.


Now that the configuration is complete, you can connect to the remote Oracle database with tools such as PL/SQL developer, which is the added TNS service name (WSR here)


If you want to use ODBC to connect to the database, also add ODBC data source, 64-bit system with c:\windows\syswow64\odbcad32.exe,32 bit system with C:\Windows\System32\odbcad32.exe

ORACLE11G Remote Connection Configuration Visual Studio 2003

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.