Salesforce

How to fix the database location after copying or moving database file using operating system commands

« Go Back

Information

 
TitleHow to fix the database location after copying or moving database file using operating system commands
URL NameP25954
Article Number000150559
EnvironmentProduct: Progress
Version: 8.x, 9.x
Product: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: Database, RDBMS
Question/Problem Description
How to move the location of a database using operating system commands
How to fix the database location after copying or moving database file using operating system commands
What should be done for the database to work on a new location after moving one or more extents location
How to use prostrct repair to modify the location of the database
How to use prostrct repair to modify the location of a database extent 
 
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
To move a database to a different location using an operating system copy or move commands, use the following steps:

(1) Create a current database structure file using the prostrct list command, as follows:

prostrct list <dbname> current.st

where <dbname> is your current physical database name.

(2) Make sure sufficient disk space exists for all database extents in the new database location.

(3) Edit the "current.st" database structure file and modify the path(s) and/or file name(s) to reflect the new database's location. Save the modified information in a new database structure filename such as "changed.st".

(4) Using the operating system's copy or move commands, copy or move all database files to their new location.

(5) Update the the new .db file with the current information from the changed.st as follows:

prostrct repair <dbname> changed.st

where <dbname> is your 'new' physical database name.

(6) If you are using OpenEdge Explorer to start your new database, go into its Configuration and change the new database setting to be in the correct path (in the new location).
Workaround
Notes
Keyword Phrase
Last Modified Date12/29/2020 5:05 PM

Powered by