Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Oracle connection string

Forum

Search UsersRules
Oracle connection string
#1
Just came
Points:: 0
Joined:: Jan 17, 2015

Hello, How do I make oracle connection string .

Profile
#2
Guest
Points::
Joined::

Hello, BURAK UYANIK.

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

Profile
#3
Just came
Points:: 0
Joined:: Jan 17, 2015

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();

Profile
#4
Guest
Points::
Joined::

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;"

Profile
#5
Just came
Points:: 0
Joined:: Jan 17, 2015

I am soryy it did not work

Profile
#6
Guest
Points::
Joined::

Do you have MSDAORA provider registered on your machine?

Profile
#7
Just came
Points:: 0
Joined:: Jan 17, 2015

Yes I do

Profile
#8
Guest
Points::
Joined::

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.

Profile
#9
Just came
Points:: 0
Joined:: Jan 17, 2015

{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.

Profile
#10
Guest
Points::
Joined::

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.