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 Command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-04, 02:46
sengchoon sengchoon is offline
Registered User
 
Join Date: Aug 2002
Posts: 21
Informix Command

Hi,
May I know how to determine which table and database bellong to which dbspace/dbslice?

Regards,
Informix User
Reply With Quote
  #2 (permalink)  
Old 07-01-04, 04:39
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,


-- Find the database to dbspace mapping

database sysmaster;
select sysdatabases.name, sysdatabases.owner, sysdbspaces.name
from sysdbspaces,sysdatabases
Where partdbsnum(sysdatabases.partnum) = sysdbspaces.dbsnum

database sysmaster;
select tabname, trunc(systabnames.partnum/1048576) dbspace,
sysdbspaces.name
from systabnames,sysdbspaces
Where sysdbspaces.dbsnum = trunc(systabnames.partnum/1048576)
and systabnames.owner="OWNER" -- owner of the database

Regards,

lloyd
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