To Oracle _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Tags sql server query
Connect SQLServer to the Oracle server. This document uses SQLServer2k as an example to illustrate the specific implementation process of connecting SQLServer to the Oracle server. 1. install the oralce client software and sqlserver2000 software on the PC. 2. client configuration this article uses SQL Server 2 K as an example to illustrate the specific implementation process of connecting SQL Server to the Oracle Server.
 
1. install the oralce client software and sqlserver2000 software on the PC.
 
2. configure the tnsnames. ora file on the client and configure the database server to be connected (for windows, unix, and other platforms)
Eg: tnsnames. ora
......
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.1.11.90) (PORT = 1521 ))
)
(CONNECT_DATA =
(Sid = blue)
(SERVER = DEDICATED)
)
)
......
3. configure the ODBC data source for windows:
Choose "start"> "settings"> "administrative tools"> "data source (ODBC)"> "configure user DSN" or "system DSN: add-select Microsoft ODBC for oracle-custom data source name (preferably the same name as the connection string in tns !) -Server name (required! Enter the connection string name in the tns file.
 
4. configure the Connection Server in sqlserver2000:
Enterprise Manager-Security-Connection Server-right-click Create Connection Server-define the connection name; select another data source; specify the program name as Microsoft ole db Provider for Oracle; the product name is optional. The data source specifies the name of the data source defined in ODBC. the provider string is in the following format: User ID = username; Password = userpasswd (or in the following format: UID = username; PWD = userpasswd). here, the user name and password correspond to the user name and password in the oracle database to be connected-> Security tab: set to use this security context, enter the oracle database username and password. the server option tab is displayed by default.
 
5. all preparations have been completed! In sqlserver Enterprise Manager-> Security-> Connection Server, open the newly created Connection Server-> click the table, and you can see all the table names owned by the oracle database user in the right window, however, the table records cannot be viewed here. you need to use specific SQL statements in the SQL Server query analyzer! When accessing a table, the format is [Connection Server name]... [ORACLE user]. [table name]. For more details, I will not go into details here.


Server 2 K is used as an example to illustrate the specific implementation process of connecting SQL Server to the Oracle Server. 1. install the oralce client software and sqlserver2000 software on the PC. 2. client configuration...

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.