dbTalk Databases Forums  

How to find the location of logical log file

comp.databases.informix comp.databases.informix


Discuss How to find the location of logical log file in the comp.databases.informix forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Veeru71
 
Posts: n/a

Default How to find the location of logical log file - 08-20-2007 , 09:32 AM






Given a logical log file, wow can we find out its location
(dbspace) ?
onstat -l doesn't show this info.
Thanks


Reply With Quote
  #2  
Old   
jprenaut@yahoo.com
 
Posts: n/a

Default Re: How to find the location of logical log file - 08-20-2007 , 10:01 AM






On Aug 20, 8:32 am, Veeru71 <m_ad... (AT) hotmail (DOT) com> wrote:
Quote:
Given a logical log file, wow can we find out its location
(dbspace) ?
onstat -l doesn't show this info.
Thanks
It actually is in the onstat -l output. The "begin" column is the
physical address of the begining of that log file. The physical
address is a chunk number and page offset into that chunk. Prior to
10, "begin" would be in the format of CCCPPPPP where C = chunk number
in hex and P is the page offset in hex. All, 5 P locations would be
in use, but not all C positions would be used if not required. In 10
with big chunks I believe we format the output to be C:P with a ':'
seperator, so the number to the left of the ':' would be the chunk
that, that log was in. Then once you have your chunk number you can
map that to the dbspace with onstat -d.



Reply With Quote
  #3  
Old   
Veeru71
 
Posts: n/a

Default Re: How to find the location of logical log file - 08-20-2007 , 10:21 AM



Great...thanks a lot.


Reply With Quote
  #4  
Old   
Claus Samuelsen
 
Posts: n/a

Default Re: How to find the location of logical log file - 08-21-2007 , 02:42 AM



Veeru71 wrote:
Quote:
Given a logical log file, wow can we find out its location
(dbspace) ?
onstat -l doesn't show this info.
Thanks

Using the sysmaster database:

SELECT l.number logfile, d.name dbspace
FROM syslogfil l, syschunks c, sysdbspaces d
WHERE l.chunk = c.chknum AND c.dbsnum = d.dbsnum


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.