Solved

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

Posted on 2008-10-02
10
4,089 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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 …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

807 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