SAP ASE must be in single-user mode to prevent another user from altering the database while you manually update sysusages.
dump database master to "dump_device"
where dump_device is the name of the target dump device.
master..sysusages
master..sysdevices
master..sysdatabases
master..syslogins
master..sysconfigures
master..syscharsets
master..sysloginroles
master..sysservers
master..sysremotelogins
master..sysresourcelimits
master..systimeranges
sp_configure "allow updates", 1
begin transaction
select * from sysusages
where dbid = db_id('tempdb')
The db_id function returns the database ID number. In this case, the database ID for tempdb is returned.
update sysusages
set segmap = 7 where dbid = db_id('tempdb')
and lstart = 0
delete sysusages where dbid = db_id('tempdb')
and lstart != 0
select * from sysusages
where dbid = db_id('tempdb')
rollback transaction
Do not continue with the procedure. Review the steps you performed to determine the cause of the problem.
commit transaction
sp_configure "allow updates", 0
checkpoint go shutdown go