06-07-2005 10:03 AM - edited 03-18-2019 04:40 PM
Unity has 32 ports and MSDE is installed into C drive by system preparation defaultly. We want to move the MSDE database to D drive accroding Cisco best practice. How can we do this? Thanks
06-07-2005 10:25 AM
http://www.cisco.com/univercd/cc/td/doc/product/voice/c_unity/inst/inst402/ex/ig_020.htm#1517831
This is basic, but you can move it with the Enterprise SQL Manager. Just righ click on the Unity Database and move the files. (stop Unity, copy the files to the D:\ drive go in SQL enterprise, Unity repoint to new location)
Tip: Next time you install Unity, set the default directories in SQL to default to the D:\ drive. Then, when Unity installs, it will automatically place the logs and databases where you choose.
06-08-2005 10:21 AM
I got an error"Cannot detach the database 'UnityDb' because it is currently in use.". Actually unity is stopped and I also tried stopping SQL but if stop SQL the first command OSQL -E has problem.
Following is the commands I have entered with the error. Any thought. thanks
C:\Documents and Settings\unityadmin>OSQL -E
1> use master
2> go
1> EXEC sp_detach_db 'UnityDb'
2> go
Msg 3701, Level 16, State 1, Server YKR-UNITY02, Line 1
Cannot detach the database 'UnityDb' because it is currently in use.
06-08-2005 11:40 AM
You can find the procedure for this documented in the Cisco Unity Installation Guide chapter on "Installing and Configuring Cisco Unity Software". The section is called "Moving the Data Store Databases and Transaction Log Files" and it covers moving these objects after Unity has been installed. Check any installation guide for versions 4.0(1) and above.
-Tana
06-08-2005 12:26 PM
Go into your W2K box services.. make sure all the AV servers are stopped. (unity services) You can't just stop Unity from the Tray. You need to stop the services.
Use SQL Enterprise Manager and Explorer to move your databases. Much easer than the DOS commands.
06-08-2005 07:55 PM
You are right. Avcsgateway is a little problem. I have to restart the server to stop the error message.
I also want to try using enterprise manager. Can you specify a little bit in detail on the steps?
thanks
06-10-2005 02:00 PM
Sorry, I don't have a Unity in front of me. But what you do is go into Windows Services. You can stop Unity from the Tray (righ click and stop.) Then go into Services. Look for all the AV services and manually stop those. Unity will finally shut itself down, and essentially stop using SQL, IIS, etc. Once all the Unity Services are stop in Windows
This is done as a precautionary step. This will allow us to have a good backup of the database up to the time of the move. (I actually do this before I make any changes to a database; you can never have too many backups!)
1. Open Enterprise Manager, and navigate to databases.
2. Right-click the database being backed up, select 'All Tasks' and then click 'Backup Database '.
3. Verify and make note of database name and the backup destination path. I usually change the destination path to 'd:\temp\dbname.bak'. It isn't necessary to change it, but ensure you can find it if you need it.
4. Under the 'Overwrite' section, select 'Overwrite existing media'.
5. On the 'Options' tab, put a check next to 'Verify backup upon completion'.
6. Click 'OK'.
Detach the Database
1. Right-click the database, select 'All Tasks', and then click 'Detach Database '.
2. At this point the current number of connections to the database will be displayed. If there are any connections, they must be cleared before the database can be detached. Click 'Clear'. You will then be prompted with 'This will end all active transactions in this database which is required before the database can be detached. Is it OK to proceed?' Click 'OK'. The next prompt is regarding notifying users. It will ask 'Do you want to notify the currently connected users that their sessions in the database will be ended?' I always click 'No' for web applications. And then click 'OK' to detach the database.
3. At this point the database is detached (it will not appear in Enterprise Manager).
Next, you'll need to copy the data file (.mdf) and transaction log (.ldf) file to the new server. By default, SQL server will create databases and put these files in the same directory (it's usually \Program Files\Microsoft SQL Server\MSSQL\Data). However, for performance gains, this may be changed so the transaction log file is put on another hard drive. Be sure to check the new SQL server to see how it is setup. If the transaction log files are setup on a different hard drive, it should be copied there and the data file should be put in its appropriate directory. And, when attaching the database, be sure the paths to the files are correct.
Attaching the Database
1. Right-click the database, select 'All Tasks', and then click 'Attach Database '.
2. Navigate to the data file by clicking the button that has 3 dots on it ( ).
3. Once you've selected the database .mdf file, you'll see the data file path (which should be verified for both the data and transaction log file) and have the option to choose the database name and owner. Attach it as the database name, and ensure the owner name is 'sa'.
4. Verify the path for the transaction log file is correct. If the path isnt correct, update it to the appropriate directory.
5. Click OK.
Note: If you didn't move the transaction log file to the new server with the data file, you'll be prompted to create a new one. If you choose to create a new one, it will be done for you automatically.
hope this helps. Try it with a test database like the northwinds one or create a test database in SQL. SQL looks scary, but it's actually pretty easy to do this stuff
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide