Oracle connection string

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 17, 2015
Company: emsteknoloji.com

Hello, How do I make oracle connection string .

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, BURAK UYANIK.

If you are trying to create an infobase having a database on Oracle DBMS, here is an example:

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 17, 2015
Company: emsteknoloji.com

Hello Timofey Bugaevsky,
Oracle data from t want to get in the way. But it does not make a connection.

"Open()" gives an error in the code line.

Code
ConnectionString = "Driver={Microsoft ODBC for Oracle};
|Server=192.168.1.120; 
|DataBase = myData; 
|Uid=1C;
|Pwd=1234"; 
        
Connection = new COMObject("ADODB.Connection"); Connection.ConnectionString = ConnectionString;
Connection.ConnectionTimeout = 50;
Connection.CommandTimeout = 1000;
Connection.Open();

 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello!
Try to use another provider. For example, this connection string:

Code
ConnectionString = "Provider=MSDAORA;Password="
    + Password + ";User ID=" + UserName + ";Data Source=" + DatabaseName 
    + ";Persist Security Info=True;CharSet=american_america.al32utf8;"

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 17, 2015
Company: emsteknoloji.com

I am soryy it did not work

 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Do you have MSDAORA provider registered on your machine?

 
#7
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 17, 2015
Company: emsteknoloji.com

Yes I do

 
#8
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Then maybe you do not have an Oracle client on your machine.

Please, copy the entire error message.

Also found that Microsoft suggests using Oracle's OLE DB provider.

 
#9
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 17, 2015
Company: emsteknoloji.com

{Document.personel.form.documentform_y.form (1556)}: An error occurred in the process of content method call (Open)
                               adoconnection.op the ();
therefore:
Exceptions occurred (Microsoft OLE DB Provider for Oracle): Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle 7.3.3 or later installation of client software.

These components are loaded, the provider will not work.

 
#10
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

So, this is the reason:

"Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle 7.3.3 or later installation of client software."

You need to install Oracle client and networking components 7.3.3 or later.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.