473,657 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unable to connect oracle9i with vb6

7 New Member
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 2367
debasisdas
8,127 Recognized Expert Expert
kindly post your connection string for my reference.
Sep 5 '07 #2
QVeen72
1,445 Recognized Expert Top Contributor
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
Mishika9486
7 New Member
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 Recognized Expert Top Contributor
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
Mishika9486
7 New Member
hi,
how do i find what is my net config client name?
Sep 8 '07 #6
QVeen72
1,445 Recognized Expert Top Contributor
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
Mishika9486
7 New Member
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 Recognized Expert Top Contributor
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.MyTab leName As Select * From OldSchema.MyTab leName

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
Mishika9486
7 New Member
hi,

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

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

Similar topics

0
1938
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 you with the skills needed to pass the Oracle Certification tests. Because they are credit classes (State Funded), you will save thousands of dollars by taking these courses with Edmonds Community College. Here are the Oracle courses that are...
3
10975
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 Password, and I assume that the value I use for Database is the value found in the tnsnames.ora file (in my case, ORCL). However, when I do this I receive the following error:
22
3255
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 code just works fine: WebRequest request = WebRequest.Create(URL);
0
2267
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 (enter)
4
6427
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 to get connected. below is my script. <?php $connection_string = 'DRIVER={PostgreSQL};SERVER=10.2.1.4:5432;DATABASE=Admin';
0
955
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- java.lang.ClassNotFoundException:Oracle.jdbc.driver.OracleDriver. please help me.
4
3213
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.. but now i want to connect it with oracle9i server. so what i have to do or where i have to copy the files(jsp & html) or any other method? please help me thanks
8
4525
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 come up with the code is: <?php set conn=Server.CreateObject("ADODB.Connection") conn.Provider="MSDAORA " conn.Open "c:/webdata/Rezgroup" set rs=Server.CreateObject("ADODB.recordset") rs.Open "nwd_info", conn
4
2011
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 access data.
0
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6166
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.