If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to fetch Database related information in HP-UX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-09, 02:22
in_kunal in_kunal is offline
Registered User
 
Join Date: Jan 2009
Posts: 3
Question How to fetch Database related information in HP-UX

Hi every one, can any one tell me how to fetch information regarding following on HP-UX or AIX OS:

1. ODBC Data Sources its server name, description, driver, host, database.

2. Database Servers: server name and version

3. Databases installed their name, collation, users, size, filepath, transize, tranfilepath, servername, options.

Is there any file that I can read or any command that I can fire.

The problem is i am given a job to run a script and fetch database information (and all above mentioned fields). I basicaly belong to C programing and shell scripting. so dont have any idea of database.

can any one plese tell where or how to find mysql, DB2, informix, sybase etc information on HP-UX.


Thanks and Regards.

Kunal
Reply With Quote
  #2 (permalink)  
Old 01-09-09, 09:14
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by in_kunal
The problem is i am given a job to run a script and fetch database information (and all above mentioned fields).
Do you have to run an existing script or create a new script????

Moreover are you suggesting that you have multiple dbs on same server or multiple dbs on separate server???? If its the later then your job has just become more difficult....

Different databases will have different commands to get server / db info.... if you want a AIO command then maybe you'll have to identify the same via system processes which is highly improbable
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #3 (permalink)  
Old 01-12-09, 02:31
in_kunal in_kunal is offline
Registered User
 
Join Date: Jan 2009
Posts: 3
I have to develop a script which can get information about databases, database server installed etc. The server will be probably unknown. So just having access as a root user not a dba login. Is it possible to install 2 or more database server on a same machine?

Thanks and Regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On