on 05-13-2015 10:04 AM
Hi,
I accidentally alter the device to a wrong database after I resize it. How can I move this device to correct database?
Thanks,
Joven
Hi ,
I have just added a blog which might suite your error.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try to use brtools to resolve your issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Igor,
No. Actually I'm resizing the device on the database . I execute this command:
disk resize name='saptools_data_001', size='1024M'
go
alter database TST ON saptools_data_001 ='1024M'
go
In the alter command, the database should be saptools not TST. That is why the device saptools_data_001 is now on both TST and saptools database.
The question now is how do i remove the device saptools_data_001 in TST database so that it will only be in saptools database.
Thanks,
joven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You should be able to shrink the TST database using the alter database command with off parameter and specifying the device name from which you want to release space.
Regarding restrictions specific to a Business Suite context when shrinking a database, check SAP Note 2073343 - SYB: Release information for SAP ASE 15.7 SP13x
> Shrinking databases
HTH
Cris
Hello Joven,
You can access the ASE documentation here: http://help.sap.com/adaptive-server-enterprise.
The syntax is
alter database database_name
. . .
off database_device {=size | [from page_number] [to page_number]}
[, database_device…]
[with timeout='time']
[ ] means optional
Note the shrink database operation must be performed while the SAP system is offline, and after, you have to do a full database dump (TST and master).
HTH
Cris
Hi Joven. What do you mean when you saying alter device to database ? You are adding a new tablespace file on a new volume ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.