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 > how to see what tables are in a particular dbspace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-06, 18:20
dbatlanta dbatlanta is offline
Registered User
 
Join Date: Dec 2005
Posts: 11
how to see what tables are in a particular dbspace

How do I ensure that a particular dbspace contains particular tables. I tried select statements in the sysmaster tables, but i don't know which sysmaster table will contain all these information. Your help will be greatly appreciated. Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-24-06, 04:26
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Hi,

You can use the following query:

select DBINFO("DBSPACE",partnum),
dbsname,
tabname,
pe_phys,
pe_size
from sysptnext, systabnames
where pe_partnum = partnum
order by 1

where DBSPACE is the name the dbspace on which you want to run the query.

Bye

Nitin
Reply With Quote
  #3 (permalink)  
Old 01-24-06, 04:32
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Hi,

You can use the following query:

select DBINFO("DBSPACE",partnum),
dbsname,
tabname,
pe_phys,
pe_size
from sysptnext, systabnames
where pe_partnum = partnum
order by 1

where DBSPACE is the name the dbspace on which you want to run the query.

Bye

Nitin
Reply With Quote
  #4 (permalink)  
Old 01-24-06, 09:34
dbatlanta dbatlanta is offline
Registered User
 
Join Date: Dec 2005
Posts: 11
Thanks Nitin. It was a great help.
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