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 > Informix use

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-05, 09:14
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
Informix use

Can anybody tell me how to use Informix like DB2 ?

like:

db2 "select * from shema.tab_name"
or
db2 get dbm cfg

Thanks!

Kind Regards,
Marcus
Reply With Quote
  #2 (permalink)  
Old 02-23-05, 17:36
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Hi,

Informix is quite different in some things. Instead of db2 we have an interactive tool called dbacces. This tool is character oriented an menu driven. But if you want to include sql's for example in scripts you can use the following two options:

1)

dbaccess mydb <<EOF!
select * from schema.my_tab;
!EOF

2)

Put sql in a file called for example mysql.sql and do:

dbaccess mydb mysql.sql

To answer your second question:
a) onstat -c
b) cat $INFORMIXDIR/etc/$ONCONFIG

Hope this helps,

Rob
Reply With Quote
  #3 (permalink)  
Old 02-25-05, 14:39
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
Thanks a lot for your help. I'll test it soon.

Regards,
Marcus
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