ORCL =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.10) (PORT = 1521 ))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl)))
(You can install a plsql statement to test whether it is successful)
Reference this website http://www.2cto.com/database/201305/212209.html
Complete odbc data source configuration
If the oracle database cannot be found, download the
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
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 here.
}
Connecting to an OLE DB data source
The OLE DB. NET Framework Data Provider provides a connection to a data source exposed by using OLE DB and with Microsoft SQL
It was tortured by ODBC connection to Oracle for a long time. As a result, Baidu n found that the sqoras32 error could have been solved as follows:
Directly download sqoras32.dll of multiple versions and use sqoras32.dll for any version of Oracle, such as 9.2, 10, and 11. This is not backward compatible.
To X:/Oracle
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
Oracle odbc ConfigurationIf oracle odbc is installed in Windows 64-bit, you cannot use "Administrative Tools"> "Data Source (OBDC)" in the control panel to install the data source.In "run", enter C: \ Windows \ SysWOW64 \ odbcad32.exe to install the data source.Select AddSelect Ora
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 db Data SourceOle db. NET Framework data providers provide connections to data sources exposed by ole db through OleDbConnection objects and to Microsoft SQL Server 6.x or earlier
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 db Data SourceOle db. NET Framework data providers provide connections to data sources exposed by ole db through OleDbConnection objects and to Microsoft SQL Server 6.x or earl
This section briefly introduces how to use ODBC to connect to the Oracle database,
To be honest, use oracleclient, oledb, and ODBC to access the Oracle database,
It is relatively simple. It is nothing more than a note that the database connection string is OK,
The following is a database connection string.
Then
Oracle ODBC ConfigurationWin7 64-bit installation of Oracle ODBC you cannot install a data source by using the data source (OBDC) in Administrative Tools, Control Panel.Instead, enter the C:\Windows\SysWOW64\odbcad32.exe installation data source in run.Select AddSelect Oracle
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. NET framework data providers provide connections to data sources exposed by ole db through oledbconnection objects and to Microsoft SQL Server 6.x or earlier versions (through the
In the project of the Security Supervision Bureau, the Internet website needs to display the enterprise declaration result. The website is developed by another company and the database is Oracle. We originally wanted to open an account to allow them to access our database, but people do not want. Later, after being determined by the information center, they opened the database. We created tables with the same structure in their
Author: Yi Wenjun
Email: yiwenjun@126.com
First, you must enable the Oracle listener and service.
Open the ODBC data source configuration interface, select system DSN, add, and select Oracle driverProgram
The key is the following parameter settings.
Data Source Name: name of the Data Source
Description: You can describe it on your own.
TNS server name: t
When using C + + to access Oracle, ODBC is an option and the DSN needs to be configured when CDatabase is used for OpenEx. Here's how to configure DSN
Open ODBC Data Source Manager (ORC1 I have configured, not before configuration)
Click "Add" and a dialog box appears:Select Oracle in Oraclinetxxx, after
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; "
OdbcConnection conn = new OdbcConnection (c
Label:Project is urgent, need to deliver results in a short time, new team members, the database design is too low, it is difficult to understand the relationship between the database table structure, in order to enable new colleagues to better understand the database table structure, deliberately using PowerDesigner to Oracle, MySQL database reverse generation of physical diagrams, Concept map, hope to bring new colleagues to help, better improve the
Sometimes, when we perform database connection tests or deploy the system, we may encounter problems with data. Let's share one of my experiences over the past two days.
The scenario is as follows: the project needs to be transferred to other servers, and both database backup and project backup are completed. The two backups are correct. Then install the database. Here I use the default one. Directly configure listen, which is a risk of problems. Next, import data and deploy the project on Tomc
All the configurations have been completed, and the server under eclipse can run. When the *. War package is output, it cannot run.
Jdbcexceptionreporter cannot load JDBC Driver Class ...... Error
After checking online, we can see that a similar error is successfully solved. The content is as follows:
Standardwrapper. throwableOrg. springframework. JDBC. cannotgetjdbcconnectionexception: cocould not get JDBC connection; Nested exception is Org. apa
Tags: blog http io for AR data 2014 code log1, first to build the corresponding table in the Oracle database, the field type in Oracle database differs from SQL Server, the field types commonly used in Oracle are VARCHAR2, Integer, nchar, date,sql Server are relatively more , the length of the uniqueidentifier type is 36.2. Open the Administrative Tools-data sour
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.