Solved

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

Posted on 2008-10-02
10
4,022 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
 
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Via a live example, show how to take different types of Oracle backups using RMAN.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now