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 > Informix > Find Informix Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-03, 14:06
dbdoc dbdoc is offline
Registered User
 
Join Date: Sep 2003
Location: Minnesota
Posts: 2
Find Informix Database

Back in November, a user asked how they could find an Informix database on a Unix server.....they were told to try the onstat -d command, and to try dbaccess.

Brand newto all of this here....if I'm at the command prompt of the Unix server, do I simply type onstat -d and return?
Reply With Quote
  #2 (permalink)  
Old 09-24-03, 19:46
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Re: Find Informix Database

Quote:
Originally posted by dbdoc
Back in November, a user asked how they could find an Informix database on a Unix server.....they were told to try the onstat -d command, and to try dbaccess.

Brand newto all of this here....if I'm at the command prompt of the Unix server, do I simply type onstat -d and return?
Hi there,

onstat -d will give list of all dbspaces. type dbaccess at command prompt, it is a tool thru which you can run ur sql statements. visit the informix site
http://www-3.ibm.com/software/data/i.../pubs/library/
Reply With Quote
  #3 (permalink)  
Old 09-25-03, 13:00
dbdoc dbdoc is offline
Registered User
 
Join Date: Sep 2003
Location: Minnesota
Posts: 2
Hmmmm.....not working....do I have to be in a particular directory?
Reply With Quote
  #4 (permalink)  
Old 09-25-03, 23:35
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Quote:
Originally posted by dbdoc
Hmmmm.....not working....do I have to be in a particular directory?
Make sure all your environmental variables are set

INFORMIXDIR=/Informix; export INFORMIXDIR
PATH=$INFORMIXDIR/bin:$PATH; export PATH
ONCONFIG=onconfig; export ONCONFIG
INFORMIXSERVER=servername; export INFORMIXSERVER
INFORMIXSQLHOSTS=/Informix/etc/sqlhosts;
export INFORMIXSQLHOSTS
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