Discover set up oracle odbc connection, include the articles, news, trends, analysis and practical advice about set up oracle odbc connection on alibabacloud.com
Error description
The operating system is Win7 x64,oracle server is oracle11g x64, the client is ORACLE10GR2 x86.
Connection is normal using Pl-sql developer
Using the system ODBC connection is OK. It is important to note that the 64-bit system starts with the 64-bit ODB
Configure ODBC connection (oracle) and webspherebroker for websphere message broker
1. Windows environment Configuration
Steps:
1. Click Start> Control Panel> Management Tools> data source (ODBC)
2. Click the system DSN tab and click Add
3. Configure to create a DSN
4. Disable O
Tags: qlikview ODBC SQL ServerOne, Qlikview configures ODBC connection to SQL SERVER1. Open ODBC Data Source Administrator: Run--〉ODBC2, add User DSN3, select SQL Server Native Client 11.0, then click [Finish]4. Enter the user name and password for the connection database5,
command window to test whether the environment variable is configured correctly. Navigate to /var/mqsi/common/profiles. Use ./opt/ibm/mqsi/9.0/bin/mqsiprofile detection. (Note: Each command window can be detected only once.) )。 7. After successful detection, switch to ESB user execution command:mqsisetdbparms blesb2-n myoracledb-u Blgroup_osp-p Blgroup_osp. where BLESB2 refers to the borker name,-nmyoracledb refers to the data source name, -ublgroup_osp refers to the
kind of error hint is very pit, cannot solve this problem by literal meaning, whether modify ODBC inside DSN's login or SQL Server authorization is useless, but actually in Ggsci inside the same operation is no problem.The way to solve this problem is simple:Open Microsoft SQL Server Management Studio, under Security, login name, select NT Authority\system->, right-click Properties, Server Role Just tick the sysadmin.This problem arises because the G
ado.net
Connecting to SQL Server
The SQL Server. NET Framework Data Provider supports a connection string format similar to the OLE DB (ADO) connection string format.
Copy Code code as follows:
using (SqlConnection connection = new SqlConnection (connectionString))
{
Connection. Open ();
Do work
This document is about the SPSS statistics 19.0 How to configure an ODBC connection to a local Oracle database, as follows:1, open the remote Oracle Database service, open the following two2, in the local client, the installation of the Oracle database (version win32_11gr2_c
ADO. NET Connect to SQL ServerThe SQL Server. NET Framework Data Provider supports connection string formats similar to OLE DB (ADO) connection string formats.Copy codeThe Code is as follows:Using (SqlConnection connection = new SqlConnection (connectionString )){Connection. Open ();// Do work here.}Connect to the ole
ADO. NET
Connect to SQL ServerThe SQL Server. NET Framework Data Provider supports connection string formats similar to OLE DB (ADO) connection string formats.Copy codeThe Code is as follows: using (SqlConnection connection = new SqlConnection (connectionString )){Connection. Open ();// Do work here.}
Connect to the
Label:First install ha-instant Client-v11.2.0.3.0-x86.rar : Ftp://hhdown:[email Protected]/download/ha-instant%20client-v11.2.0.3.0-x86.rar Ftp://hhdown:[email Protected]/download/ha-instant%20client-v11.2.0.3.0-x64.rar Then perform the installation of ODBC a must choose to install Add environment variable: Tns_admin value:%oracleclient%/network/admin Modify Tnsnames.ora to add the server information that needs to be connected, Note the service_name
Tags: ext base folder ogr End test Add Sha Evel1. Create ODBC 2. Copy the INITDG4ODBC under product\11.2.0\dbhome_1\hs\admin\ and change the name to Initcrmsql (the name of the ODBC created by init+) Hs_fds_connect_info =crmsql #odbc名称
hs_fds_trace_level= 0
hs_fds_recovery_account=sa #要连接的数据库名称
hs_fds_recovery_pwd=123456 #要连接的数据密码
3. Configure Product\
Ado. net
Connect to SQL ServerThe SQL Server. NET Framework Data Provider supports connection string formats similar to OLE DB (ADO) connection string formats.Using (sqlconnection connection = new sqlconnection (connectionstring )){Connection. open ();// Do work here.}
Connect to the ole db data source (ACCESS)Ole db.
However, a problem was encountered during the operation.1, 32 bit of sqlserver,64 Oracle, I did not have a good day, can tnsping pass, but always reported ora-28545.2,sqlserver sa login can see a lot of libraries, in the establishment of ODBC is to select a library, if no choice is default (this default does not know which library). Be sure to test for success.3,tnsname.ora is the machine name of SQL Server
Configuring an ODBC data source
1. Select Microsoft ODBC for Oracle
2. Data Source Name: Connection string name/user name: Database name (SID name)/server name: Database server IP Address
Using System.Data.Odbc;
private void Monitorbatch ()
{
string contection = ' dsn=dsn_name; Uid=username; Pwd=password; "
---------------------------------------------------------------Click "Oracle in Instantclient_12_1" to finish filling in the Oracle ODBC Driver Configuration Dialog=================================================================The Data Source name takes a random name like: "BBB"Description Connection Description: "Xx
returns the value of the first field from the record: $ compname = odbc_result ($ rs, 1 );The following code line returns the value of the field "CompanyName:$ Compname = odbc_result ($ rs, "CompanyName ");
5. close ODBC Connection
The odbc_close () function is used to close ODBC connections. Odbc_close ($ conn );
Note: Other operation functions: http://php.net/
, "CompanyName");
5. Close the ODBC connection
The Odbc_close () function is used to close an ODBC connection. Odbc_close ($conn);
Note: Other operation functions:http://php.net/manual/zh/ref.uodbc.php
ODBC instance
The following example shows how to create a datab
. Expand and enable odbc. You can view this module through phpinfo () and its status is enabled;
2. Connect to ODBC
The odbc_connect () function is used to connect to the ODBC data source. This function has four parameters: Data Source Name, user name, password, and optional pointer type.
The odbc_exec () function is used to execute SQL statements.
3. Retrieve re
The following is a brief introduction to several ADO connection methods: ODBC dsn,odbc dsn-less, OLE DB Provider, and "MS Remote" Provider.I.dsnoConn.Open "Dsn=advworks;Uid=admin; pwd=; "Note: It is not possible to use this method from the beginning of MDAC2.1, except that the DSN file name is placed in ConnectString. You must use the DSN,UID,PWD flag at the same
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.