Q

Reallocation of database space

How do I reallocate the sap database to a new drive? My database partition is fully utilized and I wish to expand it to a new partition. I'm running 4.6c on MS SQL2000.


Here is how to do it:
- Stop the SAP R/3 instance - Stop all SAP services (i.e. sap(SID)_00, saposcol, etc.)
- Get the current location of the database and transaction log files. You can run Query Analyzer and execute: sp_helpdb (SID)
- If necessary create the appropriate directories on the new disk drive(s).
- Detach the database in Query Analyzer by running: sp_detach_db (SID)
- Copy the database and transaction log files into their new location.
- Re-attach the database in Query Analyzer by running:
sp_attach_db (SID),
'dblocation',
'tloglocation'

For more information please see Books Online for SQL Server.


This was first published in October 2001
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close