Hi Jean-Pierre,
I think what you are thinking of is simply removing the segments
from the first tempdb fragment on master (i.e. setting the segmap to 0). Typically
that is the only fragment for tempdb on the master device.
This prevents future allocations on the extent, but leaves the
objects already there (the system tables) in place. The master device will
still see some i/o for tempdb system table changes, but the majority of i/o for
data changes non-system tables will be directed to other devices.
Alternatively, my original method can be modified slightly to
not delete the entire tempdb but only move the first fragment to a different
device:
--create database newtempdb exactly the same size as the first fragment of tempdb
create database newtempdb on device = <size of first tempdb fragment)>
-- delete only the first fragment of tempdb
delete sysusages where dbid = 2 and lstart = 0
update sysusages set dbid = 2 where dbid = db_id("newtempdb")
delete sysdatabases where name = "newtempdb"
Then shutdown and reboot ASE.
-bret
p.s. Something I recently figured out, if you add the particular tag "sybase_ase" to your posts, it shows up in "related activity" for the SAP on Sybase ASE area as well and gets seen by a wider
audience.