Home » RDBMS Server » Server Administration » Query to find out list of oracle databases...
Query to find out list of oracle databases... [message #53932] Fri, 18 October 2002 03:01 Go to next message
sai sreenivas jeedigunta
Messages: 370
Registered: November 2001
Senior Member
hi all,
i am in vb now...need a query to Display the list of databases in oracle..so that user can select one from it..

Please treat this as urgent..
thanks in advance
sai
Re: Query to find out list of oracle databases... [message #53933 is a reply to message #53932] Fri, 18 October 2002 03:57 Go to previous messageGo to next message
B
Messages: 327
Registered: August 1999
Senior Member
Don't Know vb but

all available are stored in tnsnames.ora.
Open the file and retrieve informations.
want a perl script ? [message #53935 is a reply to message #53932] Fri, 18 October 2002 04:22 Go to previous messageGo to next message
B
Messages: 327
Registered: August 1999
Senior Member
like i say don't know vb ...

Can help in Perl if U are interested
SORRY MY INTERNET CONNEXION SUCKS [message #53936 is a reply to message #53932] Fri, 18 October 2002 04:26 Go to previous messageGo to next message
B
Messages: 327
Registered: August 1999
Senior Member
lol
Re: Query to find out list of oracle databases... [message #53938 is a reply to message #53932] Fri, 18 October 2002 10:16 Go to previous message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
As someone already suggested, tnsnames.ora file will have TNS aliases for the available databases, to which user can connect.

You can go one step further and do tnsping in each TNS service name, to verify user can make a connection to this service name:

Microsoft Windows 2000 [[Version 5.00.2195]]
(C) Copyright 1985-2000 Microsoft Corp.

C:WINNTsystem32>tnsping db1-db33

TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 18-OCT-2002 11:01:53

(c) Copyright 1997 Oracle Corporation. All rights reserved.

Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=db1.skiffy.com)(PORT=1521))
OK (220 msec)

C:WINNTsystem32>

Hope you know how to call OS commands from VB :-)))

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Previous Topic: While installing....ORA-01041: internal error. hostdef extension doesn't exist
Next Topic: problems installing oracle 9i on HP-UX 11.00
Goto Forum:
  


Current Time: Fri Sep 20 03:45:47 CDT 2024