Access Oracle from SQL Server via Linkserver

Source: Internet
Author: User

Full graphics: Http://note.youdao.com/share/?id=e0d195e84962dbf4997925bc6e1b929b&type=note1. On the Windows operating system, install the Oracle Client. Here you can go to the official website to download the client. Here you can refer to my other article: http://blog.csdn.net/whiteoldbig/article/details/21718519

2. Set Tnsnames.oraerpdb= (Description = (address = (protocol = TCP) (host =erpdb.dji.com) (port = 1601)) (Connect_data = (sid = Erpdb)) from start-run-C md window, tnsping erpdb test if you can connect.

3. Create a new Link server object on SQL Server.




This fills in the Oracle account password, of course, we have to build this user in advance, and give the appropriate permissions.

4. Testing
SELECT * FROM OPENQUERY (xxerp, ' SELECT 3+2 from DUAL ') --Return 5

Reference article:
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.