Solved

Any good manual/tutorial to create ODBC connection with odbcconf.exe under windows?

Posted on 2008-10-02
10
4,118 Views
Last Modified: 2013-12-18
Dear Experts:

    I need to write a batch file that can install ODBC connections (to Oracle database) on client's computer.

    After googling I noticed that a usual way needs to explicitly add records to Registry (using VB code, etc), and I don't want to do that. Fortunately I also found the name of odbcconf.exe from the following webpage:
http://www.myitforum.com/forums/m_138129/mpage_1/key_/tm.htm#138129
    Which gave me a hope for a much simpler way to do the job. However I couldn't find a good manual/tutorial/reference to teach me how to do this.

    Can you tell me where I can find a good tutorial? Or any better way?
    Thank you!

Sui
0
Comment
Question by:huangs3
  • 6
  • 4
10 Comments
 
LVL 9

Expert Comment

by:mgonullu
ID: 22629446
0
 

Author Comment

by:huangs3
ID: 22636742
Hi mgonullu:

    The accepted solution is not exactly what I am looking for, because it uses VBS code, and it directly changes registry.
    I am assuming odbcconf.exe can do the job and looking for the way to use it.
    Thank you!

Sui
0
 

Author Comment

by:huangs3
ID: 22637601
I tested the following DOS command and it produced the oracle connection for me:
********************************************************************************************
odbcconf.exe /a {CONFIGDSN "Oracle ODBC Driver" "DSN=test1|Description=testdesp|SERVER=dbname|USER=username"}
*******************************************************************************************

Now I have another question: what command can I use to delete the ODBC connection?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 9

Expert Comment

by:mgonullu
ID: 22637775
wait please i will respond
0
 
LVL 9

Accepted Solution

by:
mgonullu earned 500 total points
ID: 22637838
0
 

Author Comment

by:huangs3
ID: 22668721
Hi mgonullu:

    I don't think it is, because it is for the software "dbdsn", and seems to me it is a UNIX/LINUX program. Any idea?
0
 
LVL 9

Expert Comment

by:mgonullu
ID: 22672059
This is the only thing I found
0
 

Author Comment

by:huangs3
ID: 22768428
Still thanks for your finding. The full manual of this software doesn't seem to be available then.
0
 

Author Comment

by:huangs3
ID: 22768448
The manual you found is relevant even though not exactly what I want.
0
 

Author Closing Comment

by:huangs3
ID: 31502586
You did a good job, but the solution doesn't seem exist, so still give out points.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

679 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