Solved

how to remove odbc definition of db2 on windows server 2003

Posted on 2010-09-16
5
1,830 Views
Last Modified: 2012-05-10
i'm trying to define a new odbc connection using the db2 driver on a windows 2003 server. however, looks like the alias i want to use was previously used with a different server name and i'm not able to reuse or remove it

how do i delete this obsolete alias? i've looked in the db2cli.ini file but it doesn't contain this info. searched the registry too and couldn't find it.
0
Comment
Question by:iamari
[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
5 Comments
 

Expert Comment

by:Stefan Tarras-Wahlberg
ID: 33696655
Just run   odbcad32.exe   and add/edit/remove the ODBC datasources there.
Or do you mean an alias for the db2 servername?
0
 
LVL 13

Expert Comment

by:rhinoceros
ID: 33698403
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI for system DSN's
HKEY_CURRENT_USER\Software\ODBC\ODBC.INI for user DSN's

Delete the key that you want,  and then reboot the computer
0
 
LVL 2

Author Comment

by:iamari
ID: 33701358
odbcad32.exe simply opens the odbc applet, which i was using. you can delete the datasource there, but not the database alias associated with the wrong server

the odbc.ini registry key doesn't contain any alias info either, it only has the datasource name and the driver
0
 
LVL 13

Expert Comment

by:rhinoceros
ID: 33730924
You cannot find your DSN key name under ODBC.ini ???

Check under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.ini. There's a key for each DSN which contains the config values. Just delete the key. Also, there will be a single value corresponding to each DSN under the 'ODBC Data Sources' key. Delete that as well.

HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI for user DSN's

*** Backup first before you change the registry

0
 
LVL 2

Accepted Solution

by:
pjaguilar earned 200 total points
ID: 34309711
Go to Programs, IBM DB2, Command Line Tools, Command Line Processor, and enter the command

UNCATALOG DB <alias>

It's done.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Learn about cloud computing and its benefits for small business owners.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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