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 > finding dbspace for table?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-02, 13:24
krompot krompot is offline
Registered User
 
Join Date: Mar 2002
Posts: 3
finding dbspace for table?

How would I determine in which dbspace a table is created? Tables are not created in the default dbspace for the database.

So far oncheck -pe seems to be the best option. Does oncheck -pe perform any locking?
Reply With Quote
  #2 (permalink)  
Old 05-17-02, 04:30
muratmy muratmy is offline
Registered User
 
Join Date: Nov 2001
Location: Germany
Posts: 14
Lightbulb

Hi,
database sysmaster;
select tabname, dbinfo('dbspace', tn.partnum)
from systabnames tn, systabinfo ti
where ti.ti_partnum = tn.partnum
and tn.dbsname = "your_database_name"
and tn.tabname = "your_table_name"
order by tabname

would give you the dbspace name where your table resides.


Murat
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