Consultor Eletrônico



Kbase 12858: How to copy Multi volume db on VMS (or Alpha) machines
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to copy Multi volume db on VMS (or Alpha) machines


In the VMS environment, it may be desireable to create a
multi-volume database on one system and then copy it to
another disk on the system or to a new system entirely.
(It is only possible to copy multi-volume databases across
DEC architectures.) For this example, we want to create a
multi-volume database directory $DKA100:[SMITH.WORK] and
then move it to $DKA200:[SMITH.WORK]. It does not matter
whether the database is created on a VAX or an AXP system.


To do this, a concealed logical must be used to define the
disk:

$ DEFINE/TRANSLATION_ATTRIBUTE=CONCEALED MY_DISK $DKA100:

When the structure description file is written, the
database name has to be preceded by the concealed logical
name:

d my_disk:mydemo.d1 f 512
d my_disk:mydemo.d1 f 128
b my_disk:mydemo.b1


The multi-volume is then created:

$ PROGRESS/STRUCTURE/CREATE=MYDEMO.ST MY_DISK:MYDEMO

Data is copied in:

$ PROGRESS/COPY DLC4GL:DEMO MY_DISK:MYDEMO

The database is used:

$ PROGRESS MY_DISK:MYDEMO

The database and all of its extent and log files are then
copied to the new directory $DKA200:[SMITH.WORK].
(Note that in order for the concealed logical to work,
the directory path must be the defined the same on the
two disks.)

$ SET DEF $DKA200:[SMITH.WORK]
$ COPY $DKA100:[SMITH.WORK]MYDEMO.* *
$ DEFINE/TRANSLATION_ATTRIBUTE=CONCEALED MY_DISK $DKA200:

The database is accessed again:

$ PROGRESS MY_DISK:MYDEMO

If the multi-volume database already exists, the concealed
logical that needs to be defined would be equivalent to the
name of the disk that the database was originally create
on. For example, if the mutli-volume database MYDEMO has
already been created and it lives on disk WORK$1. WORK$1
is a logical that points the actual disk name of $DKA100.
When the multi-volume database is then copied to its new
location, the concealed logical WORK$1 needs to be defined
to point to the current disk, in this example it would be
$DKA200.

Progress Software Technical Support Note # 12858