dbTalk Databases Forums  

'sp_helpdb' query

comp.databases.sybase comp.databases.sybase


Discuss 'sp_helpdb' query in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jerke szabo
 
Posts: n/a

Default 'sp_helpdb' query - 04-06-2004 , 05:24 AM






Hi all,

After execute 'sp_helpdb test_db', the following result returned:

device_fragments size usage free
kbytes
------------------------------ ------------- -------------------- ----------
------
test_data1 2047.0 MB data only
70
test_data2 2047.0 MB data
-202
test_data3 2047.0 MB data only
1935234
test_log1 511.0 MB log only not
applicable

Is it normal for "test_data2" as it shown "-202" in free kbytes column??
Anyone know?

Thanks a lot!



Reply With Quote
  #2  
Old   
Martin Hanna
 
Posts: n/a

Default Re: 'sp_helpdb' query - 04-06-2004 , 04:54 PM






"jerke szabo" <jerkeszabo (AT) hotmail (DOT) com> wrote

Quote:
Hi all,

After execute 'sp_helpdb test_db', the following result returned:

test_data2 2047.0 MB data -202

Is it normal for "test_data2" as it shown "-202" in free kbytes column??
Never encountered it myself but from Sybase:

"The negative space values occur because a value in the dbtable structure is
incorrect. Sp_helpsegment and sp_helpdb both use a system function
curunreservedpgs() which accesses the databases internal memory structure -
the DBTABLE - and reads the value for dbt_unrsvd for each database fragment,
if this value is negative then the value returned by the procedure will also
be negative.

The fact that the dbt_unrsvd value is incorrect should not in any way effect
the space usage in the database. When pages need to be allocated ASE uses
the allocation pages and GAM pages, not the value stored in the dbtable, to
determine if there is space available. The dbt_unrsvd value should however
be regularly updated on extent allocations and deallocations. Currently
there are no open bugs logged for these negative dbt_unrsvd values.

Resolution:
Currently no bugfix available - reboot the Server as a workaround."

What version are you on?

Martin




Reply With Quote
  #3  
Old   
jerke szabo
 
Posts: n/a

Default Re: 'sp_helpdb' query - 04-07-2004 , 06:38 AM



Thanks for your information.

The version is: Adaptive Server Enterprise/12.0.0.3/P/SWR 9643 ESD 2


"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> ¼¶¼g©ó¶l¥ó
news:9KFcc.30612$Y%6.3766858 (AT) wards (DOT) force9.net...
Quote:
"jerke szabo" <jerkeszabo (AT) hotmail (DOT) com> wrote in message
news:c4u205$i05$1 (AT) news (DOT) hgc.com.hk...
Hi all,

After execute 'sp_helpdb test_db', the following result returned:

test_data2 2047.0 MB data -202

Is it normal for "test_data2" as it shown "-202" in free kbytes column??

Never encountered it myself but from Sybase:

"The negative space values occur because a value in the dbtable structure
is
incorrect. Sp_helpsegment and sp_helpdb both use a system function
curunreservedpgs() which accesses the databases internal memory
structure -
the DBTABLE - and reads the value for dbt_unrsvd for each database
fragment,
if this value is negative then the value returned by the procedure will
also
be negative.

The fact that the dbt_unrsvd value is incorrect should not in any way
effect
the space usage in the database. When pages need to be allocated ASE uses
the allocation pages and GAM pages, not the value stored in the dbtable,
to
determine if there is space available. The dbt_unrsvd value should however
be regularly updated on extent allocations and deallocations. Currently
there are no open bugs logged for these negative dbt_unrsvd values.

Resolution:
Currently no bugfix available - reboot the Server as a workaround."

What version are you on?

Martin





Reply With Quote
  #4  
Old   
Martin Hanna
 
Posts: n/a

Default Re: 'sp_helpdb' query - 04-07-2004 , 05:06 PM



"jerke szabo" <jerkeszabo (AT) hotmail (DOT) com> wrote

Quote:
Thanks for your information.

The version is: Adaptive Server Enterprise/12.0.0.3/P/SWR 9643 ESD 2
Well..for Sybase 12.0 on Solaris they say:

Tip or Workaround:
Run dbcc usedextents(0, 1, 1) and reboot ASE to correct. Boot ASE with trace
7412 in the run file to scan allocation pages and update free space.

Resolution:
CRs 256318, 254794, 236517 are all fixed by 12.0.0.4IR





Reply With Quote
Reply




Thread Tools
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 - 2012, Jelsoft Enterprises Ltd.