473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

unable to connect oracle9i with vb6

Hi pals..

i hav developed an application in vb nd am tryin to connect using oracle..

it gives the following error using ADODC and ODBC

"test connection failure because of an error in initializing provider.[microsoft][odbc]driver for oracle]"

please help..
Sep 5 '07 #1
11 2360
debasisdas
8,127 Expert 4TB
kindly post your connection string for my reference.
Sep 5 '07 #2
QVeen72
1,445 Expert 1GB
Hi,

Use this Connection string :

Expand|Select|Wrap|Line Numbers
  1. ConnStr = "UID=username;PWD=password;" _
  2.         & "Server=OSName;Driver={Microsoft ODBC For Oracle}" _
  3.         & ";DSN = ''"
  4.  
OSName in the above is the Oracle Client's Net Configuration Name...
First u have to configure the Client..

Regards
Veena
Sep 5 '07 #3
Hi,

Thanks a lot. I could achieve it through ODBC driver .But the application has become really slow. it nearly hangs while fetching the data.

Also the problem still persists when i use " microsoft oledb provider for oracle".
the steps i follow are as below:
1. set the ado data control on form, click to set the properties of Adodc.
2. Choose build for conn str, microsoft ole db for oracle.
3. the next click asks for the server name, the user name and pwd.
4. testing connection after feeding "scott/tiger", gives error, it says "Connection fails.error while initializing provider, the error could not be recovered from oracle".
5. Even if i set the server name to oracle9i , it doesnt work giving the same error.

Thanks a lot for devoting time to my problems.
Sep 7 '07 #4
QVeen72
1,445 Expert 1GB
hI,

U HAVE TO GIVE "Server Name" as the NetConfig Client Name. And Why use Scott/Tiger..? Create a User /pwd in Oracle for ur Schema and give that..

REgards
Veena
Sep 7 '07 #5
hi,
how do i find what is my net config client name?
Sep 8 '07 #6
QVeen72
1,445 Expert 1GB
Hi,

After Installing the Oracle Client, u have to do configure the Client using the "Net Configuration Assistant", by giving the Global Database name and option "Local Net Service Name Configuration" and Give the Host Name.
At the end of it, it will ask the Name, there provide some name. So whenevr u connect to oracle, u have to Refer that as ServerName...


REgards
Veena
Sep 8 '07 #7
Hi,
I had given the gds name as oracle9i at the time of installation.
I dont use the server name while logging on, i directly logon with user/pwd.
I had given oracle9i while connectivity before alos but it is not working.

kindly suggest..

Also, how can i import a set of tables from one schema to another?

Giving the privilege for all table is not serving the purpose.

thanks & regards
Mishika
Sep 10 '07 #8
QVeen72
1,445 Expert 1GB
Hi,
I had given the gds name as oracle9i at the time of installation.
I dont use the server name while logging on, i directly logon with user/pwd.
I had given oracle9i while connectivity before alos but it is not working.

kindly suggest..

Also, how can i import a set of tables from one schema to another?

Giving the privilege for all table is not serving the purpose.

thanks & regards
Mishika
Hi,

Did u configure the Local Net Name using the "Net Configuration Assistant"...?
First u have to do that.. see my previous post how to create it..
To Export, use "Exp" in command prompt, and follow the Instructions on the screen, and Export the Tables to a Dump File.
And to Import those tables, use "Imp" at the command prompt.

One more way of creating tables from one schema to another is run this SQL Statement (provided u have Priviliges to Create Table)

Create Table NewSchema.MyTableName As Select * From OldSchema.MyTableName

If the table being created is already present in the NewSchema, u will get an Error, Probably u may have to drop the Table before creating it...

Regards
Veena
Sep 10 '07 #9
hi,

Thanks a ton...will try n tell u.
Sep 11 '07 #10
Hi,

I configured the net config client and gave the server name as well as the host name but in vain. the oracle connection is giving the same eror.

"Error in initializing provider. we cannot retrieve error report from oracle."

Also, the EXP command on SQL prompt is giving the following error SP2-0734.
It says statement not completed.
i wrote
sql> exp;
sql> exp table_name to A;

none of them worked also i tried
sql> help exp;
which said no help available..

the project deadline is approaching...kindly help..
Sep 15 '07 #11
Hi,

Did u configure the Local Net Name using the "Net Configuration Assistant"...?
First u have to do that.. see my previous post how to create it..
To Export, use "Exp" in command prompt, and follow the Instructions on the screen, and Export the Tables to a Dump File.
And to Import those tables, use "Imp" at the command prompt.

One more way of creating tables from one schema to another is run this SQL Statement (provided u have Priviliges to Create Table)

Create Table NewSchema.MyTableName As Select * From OldSchema.MyTableName

If the table being created is already present in the NewSchema, u will get an Error, Probably u may have to drop the Table before creating it...

Regards
Veena




Hi,

I configured the net config client and gave the server name as well as the host name but in vain. the oracle connection is giving the same eror.

"Error in initializing provider. we cannot retrieve error report from oracle."

Also, the EXP command on SQL prompt is giving the following error SP2-0734.
It says statement not completed.
i wrote
sql> exp;
sql> exp table_name to A;

none of them worked also i tried
sql> help exp;
which said no help available..

the project deadline is approaching...kindly help..
Sep 18 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Oracle Instructor | last post by:
Hi All, Edmonds Community College is now offering the Oracle Development Courses, which include Oracle9i SQL, Oracle9i PL/SQL, Oracle9i Forms, and Oracle9i Reports. These courses will provide...
3
by: Nathan Sokalski | last post by:
When I attempt to run a form created with Oracle9i Forms Builder I receive a dialog box asking for the following info: User Name: Password: Database: I obviously know my User Name and...
22
by: Kristof Thys | last post by:
Hello, I'm developing a C# - windows forms application. To get some information for my application, I'm connecting to an URL, wich gives me XML generated using php. With 90% of the users, this...
0
by: vicky | last post by:
Hello Experts, Trying to run sample Postgrel's ECPG(Embedded SQL)programs on RHL 9.0. Im unable to connect to PostgreSQL database (sirishadb) when I run the program .... # su postgres...
4
by: newladder | last post by:
Hi all, Iam struck with one of the problem with postgres. Please help me out.... Iam trying to connect to connect to postgres database on remote machine with the IP address 10.2.1.4. Iam unable...
0
by: SD007 | last post by:
I am trying to connect Oracle9i with jdk1.4, but it is giving error at- Class.forName("Oracle.jdbc.driver.OracleDriver"); The error is-...
4
by: gopiinamadar | last post by:
hi i want to connect a jsp file with oracle9i server. initially i used MS Access with jsp and i will copy all jsp and html pages in webapp/root files and run apache tomacat5.5, it works fine.. ...
8
by: boss1 | last post by:
i have created a database named:Rezgroup and i have already developed some pages but i dont know what is the code to connct Php and oracle.Thats why i can not access the database. so far i have...
4
by: eeriehunk | last post by:
Hi, Please give me a lead on how to connect Oracle 9i which is on a unix machine to MS SQL Server and access its data. Does Oracle9i or TOAD have any inbuild functionality to make connections and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.