Salesforce

How to change Storage Area names?

« Go Back

Information

 
TitleHow to change Storage Area names?
URL NameP30876
Article Number000151088
EnvironmentProduct: Progress
Version: 9.x
Product: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Question/Problem Description
How to change Storage Area names?
Can Storage Area names be changed after database creation ?
How to change a Storage Area name without dump/load?
Is is possible to change the Storage Area name without having to dump and load?
Can the Storage Area Name a table belongs in be changed without needing to add a new Area and performing a tablemove?
How to change the Storage Area Name an index belongs in without having to first add a new Area and performing an indexmove?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
This Article only applies to OpenEdge databases enabled for After-Imaging or not at all. If the database is enabled for OpenEdge Replication, refer to Article  What effect does builddb have on a replication enabled database?.

STEPS:

0. Ensure a valid verified full backup of the database prior to making these structural changes.

1. Ensure the database is shutdown and all processes running against the database (don't forget cron jobs that may try to access the database single user)

2. Truncate the bi file and refresh the .st file to ensure the exact latest reflection of the database Control Area:
$ proutil dbname -C truncate bi
$ prostrct list dbname dbname.st

3. Open the structure file (dbname.st) in an editor to reflect the new Storage Area name(s): See example below in Notes

a. The existing Area name(s) to the new Area name(s).
"Schema Area" 6 is reserved and cannot be re-named

b. The FULL PATH to every physical database extent on disk, not relative paths, including AI files if in use.

4. OS Copy then Delete (or re-name) the Database Control Area (the dbname.db file).

5. Rebuild the Database Control Area:
 
$ prostrct builddb dbname dbname.st

Where:
"dbname.st" is the edited structure file from Step 3 above.

6. Backup the 'New_Storage_Area_named' database and update OrganisationChange Control notes to reflect the database structure change.

If after-imaging is in use and the ai files are not included in the 'dbname.st' file used in Step 5 above:
  • The database will fail to startup as the ai files are no longer part of the structure but after-imaging is still enabled.
  • The only reliable way to recover from this situation is to disable after-imaging with 'rfutil -C aimage end' then the existing ai files will have to be backed up for reference for the pre Area-Name's change baseline, re-added and aimage begin for the new hot spare baseline which then needs to be re-instated.  Refer to Article  How does changing the name of a storage area affect after-imaging? for additional information.
Workaround
Notes
Example .st file resulting from Step 2 output:
$   prostrct list dbname dbname.st

b D:\WRK\test\dbname.b1 f 512000
b D:\WRK\test\dbname.b2
#
d "Schema Area":6,64;1 D:\WRK\test\dbname.d1
#
d "Misc":12,32;1 D:\WRK\test\dbname_12.d1
#
d "DATA":20,128;64 D:\WRK\test\dbname_20.d1 f 256000
d "DATA":20,128;64 D:\WRK\test\dbname_20.d2
#
d "NDEX":30,1;8 D:\WRK\test\dbname_30.d1 f 51200
d "NDEX":30,1;8 D:\WRK\test\dbname_30.d2 f 51200
d "NDEX":30,1;8 D:\WRK\test\dbname_30.d3
#
d "LOBS":40,16;512 D:\WRK\test\dbname_40.d1


Example .st file resulting from STEP 3 after editing the Storage Area names to be changed, which will then be used in STEP 5:

b D:\WRK\test\dbname.b1 f 512000
b D:\WRK\test\dbname.b2
#
d "Schema Area":6,64;1 D:\WRK\test\dbname.d1
#
d "Misc":12,32;1 D:\WRK\test\dbname_12.d1
#
d "NEWNAMEDDATA":20,128;64 D:\WRK\test\dbname_20.d1 f 256000
d "NEWNAMEDDATA":20,128;64 D:\WRK\test\dbname_20.d2
#
d "NEWNAMENDEX":30,1;8 D:\WRK\test\dbname_30.d1 f 51200
d "NEWNAMENDEX":30,1;8 D:\WRK\test\dbname_30.d2 f 51200
d "NDEXNEWNAME":30,1;8 D:\WRK\test\dbname_30.d3
#
d "LOBAreaNewName":40,16;512 D:\WRK\test\dbname_40.d1
Keyword Phrase
Last Modified Date11/20/2020 7:27 AM

Powered by