Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Connecting to Oracle

Posted on 1998-07-15
7
Medium Priority
?
294 Views
Last Modified: 2010-05-03
I want to know how to connect from VB to Oracle backend. Please point to sites where I can get to see some code examples on how to acieve this.
0
Comment
Question by:Vinod1959
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Author Comment

by:Vinod1959
ID: 1465883
Edited text of question
0
 

Accepted Solution

by:
ohayden earned 210 total points
ID: 1465884
We installed the Oracle client (Which is on the Oracle server CD) and it installs an ODBC control which you can use in VB to connect to oracle. All you have to do is setup the control and make sure you have the correct TNS files on the client and all will work fine!!! Let me know if you have any problems...


0
 

Author Comment

by:Vinod1959
ID: 1465885
Thank you for that answer. I want some code samples of how and where in the code I should specify ORACLE as the database engine? Pl send me lines of code to illustrate that.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Expert Comment

by:ClarkKent
ID: 1465886
A couple of years ago Oracle released OO4O (Oracle Objects for OLE), a means of connecting to and manipulating data from Oracle using the Microsoft-driven standard of OLE (Object Linking and Embedding).  Whereas with ODBC some Oracle benefits are not accessible, OO4O allows pretty well all benefits of using Oracle as a database behind Visual Basic.

Here is the URL from which to download the most recent release of OO4O (32-bit, I believe):

http://www.oracle.com/products/trial/html/trial.html#objectsforole

The kit includes very clear samples and documentation.

You will also find the entire OO4O kit bundled into the Oracle Lite CD which you can request for free (on a trial basis) from Oracle Corporation.  Just call your local Oracle number.

I would also do a query on the Oracle site while you are there, specifically for "OO4O", on the web, and in newsgroups (Dejanews), for more information.

Good luck!


0
 

Author Comment

by:Vinod1959
ID: 1465887
I had 15 points deleted from account just now for no reason. I  never indicated that I accpted any answer. I want to know why?
0
 

Expert Comment

by:newlook
ID: 1465888
I agree. Oracle Objects for OLE is definately the best way.
If you have Oracle installed at your site you should almost definately have the software for it on a client disk. (it used
to be called Oracle Glue).
To use Objects for OLE it requires you create a database,session
and dynaset(s). Note that if you are used to recordsets that
you have to assign the oracle dynaset to it - direct Oracle
Object OLE recordsets are not available.
There is a control (the Oracle Data Control) available in a similar fashion to the default Microsoft database control -
however you will find it alot more flexible to do the dynaset
creation yourself.

The advantages of using Oracle Objects over ODBC are that you
can use the power of Oracles database directly - packaged procedures etc.

If you need examples / help I will gladly supplu you.
kris@develop-newlook.demon.co.uk
0
 

Author Comment

by:Vinod1959
ID: 1465889
Thanks for the explanation on why use Oracle objects over ODBC. Thanks also for offering to supply examples. I would need that help in the future.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question