on 02-26-2014 5:24 AM
Hello, I have a tempdb with a few devices, each device was created for data or log as it is recomended to keep them separate. My problem now is I need to take out a few of those devices that the tempdb is atached too, to then move them to a tempdb2 thats going to be created. I know that the database ihas to be dropped to then move the devices but ASE dosnt let me. Please help me my job depends on this.
thank you in advance and sorry i for my english
ps. tempdb needs to stay on the server. Just to make it simple if i didn't make my self clear is that i need to move the tempdb devices and move them to a tempdb2
I tried Kimon method but it don't work , I get the following error, ------ you cannot shrink database 'tempdb' because the database either has reduced durability or is being used as a template---
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the link posted by Kimon Moschandreou to delete from sysusages. On restart of the server, tempdb should be created on the remaining segment in sysusages.
Adaptive Server Enterprise/15.7/EBF 21339 SMP SP101 /P/X64/Windows Server/ase157sp101/3439/64-bit/OPT/Thu Jun 06 12:11:05 2013
name,db_size,owner,dbid,created,durability,lobcomplvl,inrowlen,status
'tempdb',' 106.0 MB','sa',' 2','Feb 27, 2014','no_recovery',' 0',' NULL','select into/bulkcopy/pllsort, trunc log on chkpt, mixed log and data, allow wide dol rows'
Hi Alex,
tempdb is a SAP ASE system database with initial allocations on the master device, hence it cannot be dropped. Please consider extending tempdb on new devices or else, creating an additional tempdb would be a viable option.
Thanks,
Madhvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
If you are on 15.7 SP100 or newer yoy may shrink a database, check this (alter database syntax) SyBooks Online and this is an example
Removes 50MB of database sales_db from device mylogdev:
alter database sales_db log off mylogdev='50M'
in earlier versions follow this SyBooks Online (Archive)
It is an extract from ASE 12.5 documentation but applies also to ASE 15
Regards,
Kimon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.