dbTalk Databases Forums  

Resetting tempdb size

comp.databases.sybase comp.databases.sybase


Discuss Resetting tempdb size in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Hanna
 
Posts: n/a

Default Resetting tempdb size - 05-09-2004 , 06:15 PM






If the tempdb segments on master were initially dropped so that all segments
were on the non-master devices then if I was to drop the non-master devices
(delete from sysusages where lstart > 0) to reset the database size then
would tempdb function at all since it has no segments?

I cant run:
sp_addsegment "default",tempdb,master
and although I can run:
sp_extendsegment "default",tempdb,master
sp_extendsegment "system",tempdb,master
the following exclusively assigns the logsegment to master, i.e., removes
the previous 2 segments:
sp_extendsegment "logsegment",tempdb,master

Martin



Reply With Quote
  #2  
Old   
Bret Halford
 
Posts: n/a

Default Re: Resetting tempdb size - 05-10-2004 , 11:28 AM






"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> wrote

Quote:
If the tempdb segments on master were initially dropped so that all segments
were on the non-master devices then if I was to drop the non-master devices
(delete from sysusages where lstart > 0) to reset the database size then
would tempdb function at all since it has no segments?

I cant run:
sp_addsegment "default",tempdb,master
and although I can run:
sp_extendsegment "default",tempdb,master
sp_extendsegment "system",tempdb,master
the following exclusively assigns the logsegment to master, i.e., removes
the previous 2 segments:
sp_extendsegment "logsegment",tempdb,master

Martin

No, at least not after a reboot. You should add the segments
back before you delete the other devices.

You can recover from this situation by doing the following:

shutdown ASE
modify the .cfg file to "allow updates to system tables 1"
reboot ASE
update sysusages set segmap = 7 where dbid = 2
shutdown
reboot ASE


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

Default Re: Resetting tempdb size - 05-10-2004 , 05:34 PM



"Bret Halford" <bret (AT) sybase (DOT) com> wrote

Quote:
"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> wrote in
message news:<uYync.1334$wI4.173122 (AT) wards (DOT) force9.net>...
If the tempdb segments on master were initially dropped so that all
segments
were on the non-master devices then if I was to drop the non-master
devices
(delete from sysusages where lstart > 0) to reset the database size then
would tempdb function at all since it has no segments?

No, at least not after a reboot. You should add the segments
back before you delete the other devices.

You can recover from this situation by doing the following:

shutdown ASE
modify the .cfg file to "allow updates to system tables 1"
reboot ASE
update sysusages set segmap = 7 where dbid = 2
shutdown
reboot ASE
Thanks Bret. That worked fine.

Martin




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.