Connect to SQLserver through oracle-use an ODBC instance

Source: Internet
Author: User

I operate on the same server according to the link above. I succeeded, but I operate on the same server (that is, SQL Server and oracle are on the same machine, and different machines are waiting for experiment, all are 32-bit machines ).

However, a problem occurs during the operation.
1, 32-bit SQL Server, 64-bit oracle, I had a good job for half a day, can tnsping, but always report ora-28545.
2. You can see many databases in the sa Logon of sqlserver. You need to select a database when creating odbc. If no database is selected, the database is default (which database is unknown by default ). Make sure the test is successful.
3. When tnsname. ora is used, what is the host name of sqlserver? Or oracle machine name? Verify this.

The steps can be divided into five:

The Code is as follows: Copy code
1. Establish ODBC and system DSN.
2, $ oracle_home/hs/admin/init <sid>. ora
3, $ oracle_home/network/admin/listener. ora, add a listener, remember to restart.
3, $ oracle_home/network/admin/tnsname. ora, add TNSNAME
4. CREATE PUBLIC DATABASE LINK
5, select * from dd @ db_link

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.