Special NotesR18 GA
utility |
||
Scope & PurposeThis documentation allows a user to migrate an existing ENOVIA V5 VPM V5R17 database into a database containing structures and data that will support ENOVIA V5 VPM V5R18 while maintaining all the user-supplied data that was generated during use of the product under ENOVIA V5 VPM V5R17. A database migrated through this process will be converted from R17 to R18. The migration process does NOT create a separate copy of the database, but instead converts the existing database. Once you have performed this migration, you cannot use ENOVIA V5 VPM R17 on this database without dropping it and restoring a backup image of the database that was taken while it was still in R17. Attempting to run ENOVIA V5 VPM V5R17 on the database after it has been migrated to R18 is unsupported. |
||
AssumptionsThese instructions assume you are migrating directly from V5R17 to V5R18. This procedure does not support any other releases or migration effort. Do not attempt to use any other releases of ENOVIA V5 VPM with these instructions. These instructions also assume you have a working V5R17 installation, including a completely functional Oracle or DB2 database that is up and running before beginning migration. Oracle or DB2 software should be at a level supported in the ENOVIA V5 VPM installation documentation for R18. There should be no users connected to ENOVIA V5 VPM or the database at the time of migration. |
||
OverviewThe 17->18 migration is done in 5 steps that each perform a particular
unit of work on the database. The steps listed below generate their own
unique output log that contains the name of the step embedded in the file
name, located in the directory specified by the -TMP parameter. Thus, if a
step fails for some reason, we can look at the logs that pertain directly
to that step to determine the cause of the failure.
|
||
Before You Begin
|
||
Migration Steps |
||
Migrate ENOVIA V5 VPM V5R17 -> ENOVIA V5 VPM V5R18
|
||
-DBVendor |
ORACLE or DB2 Example: -DBVendor ORACLE |
|
-DBName |
The name of your
R18 database
which you are migrating to. Example: -DBName LCADB17 |
|
-DBAID |
The database administrator ID. If you are using DB2 with a
remote database on a separate machine from the
ENOVIA V5 VPM installation,
this parameter is the administrator-ID of the database on the REMOTE
machine where the database was built. For Oracle users: The DBAID is usually not the ID that created the database. It may be the ID that owns the tables, and this may be the same ID as the ENOVIA V5 VPM administrator ID, but it could also be any userid that has been granted dba permissions by the Oracle administrator. We recommend that you ensure that the ENOVIA V5 VPM administrator ID has been granted dba privileges on the Oracle database and use it as the DBA ID for the purposes of migration. DO NOT use ‘system’ as your DBA or ENOVIA V5 VPM administrator ID during migration even if you used this as the DBA id during enoviadbsetup. This will not work and is not supported. Examples: -DBAID db2adm -DBAID ev5adm [where ev5adm is an Oracle ID that has DBA permissions] |
|
-DBAdmHome |
Home directory of the Oracle ID or the DB2 instance ID. If
you are using DB2 with a remote database on a separate machine from the
ENOVIA V5 VPM installation,
this parameter is the client database instance home directory on the LOCAL
machine where you are running the migration. Examples: -DBAdmHome /home/db2adm -DBAdmHome /oracle/app/oracle/product/9.2.0 |
|
-TbsName |
The tablespace name used by
ENOVIA LCA for its database
tables. Example: -TbsName ENOTBS |
|
-IdxTbsName |
The tablespace name used by
ENOVIA LCA for its indexes
Example: -TbsName ENOTBS |
|
-TableOwner |
The ID that is owner of database tables - must use all
CAPITAL LETTERS. This parameter is optional. If not specified, default is
AdmUsr. Example: -TableOwner VPMADM |
|
-AdmUsr |
The
ENOVIA V5 VPM administrative
user ID specified in enoviadbsetup. Example: -AdmUsr ev5adm |
|
-EnvDir |
the path to the ~code/dictionary directory on your
ENOVIA V5 VPM Release 17
configuration (the one that is being migrated in this exercise)*. Example: -R17path /path/R17/aix_a |
|
-EnvName |
The name of the
ENOVIA V5 VPM~ file in CATEnv
directory without the ".sh". Example -EnvName ENOVIA_V5_VPM.V5R18.B18 |
|
-R17path |
the path to the ~code/dictionary directory on your
ENOVIA V5 VPM Release 17
configuration (the one that is being migrated in this exercise)*. Example: -R17path /path/R17/aix_a |
|
-R17custo |
Path(s) (concatenated if necessary) to R17 customized
dictionary directory(ies) Example: -R17custo /R17custo/aix_a/code/dictionary/:/R17custo2/aix_a/code/dictionary/ |
|
-R17CustoWorkspace |
Path(s) (concatenated if necessary) to the customized R17
Generator directory(ies). Example: -R17CustoWorkspace /R17custo/aix_a/reffiles/DBMS/Generator/ |
|
-TMP |
Optional - it will default to /tmp if not specified. A Unix
path where errors, logs and debugging information will go; ensure you have
permission to write to this directory and 500 megabytes of free space. Example: -TMP /tmp/mig17 |
|
-Step |
-Step ALL runs all steps; or use -step STEPNAME to select a
single step. The migration is not complete until all required steps run
successfully. Note that Step names must be all capital letters. Example: -Step ALL |
|
-DBAPwd |
Optional. If you would prefer not to be prompted to type in
the DBA password, you can put it on the command line, but recognize that
this will expose the password to some security risk. Example: -DBAPwd password |
|
-AdmPwd |
Optional. If you would prefer not to be prompted to type in
the ENOVIA Admin ID password, you can put it on the command line, but
recognize that this will expose the password to some security risk. Example: -AdmPwd password |
|
-cmaffsize |
Optional. Number of affected objects to manage in each
iteration within the CMAFF step. Larger values create faster
performance but can use a lot of memory at once (possibly exceeding the
capacity of your computer). Small cmaffsize values can greatly
degrade performance if the database has a lot of affected objects.
Default if not specified = 500. Example: -cmaffsize 1000 If the |
|
*If the R17 release does not reside on the same
physical machine on which you are installing
R18, then you
must make a copy of all the files in the ~code/dictionary
directory or directories in R17 and create a separate directory (or
directories) somewhere on your
R18 machine,
and put a copy of all the R17 dictionary files under this directory
(ensuring that the R17 dictionary path has at least read permission to all
users). Then you can use this new directory name(s) as your parameter for
R17dict path. DO NOT overwrite any of the dictionary files that are in the
dictionary directory of your
R18
installation. If you must copy R17 dictionary files, put them in a special
directory, such as a new one you create under /tmp . For
example, if you were working on an AIX machine and you copied the files to
a new directory called R17dict under /tmp , you
would have the parameter -R17dict /tmp/R17dict/aix_a . The
files should reside under subdirectories beneath R17dict that
follow the format /tmp/R17dict/aix_a/code/dictionary such that
all your dictionary files that used to be on the old machine under the
/installpath/aix_a/code/dictionary are now copied into
/tmp/R17dict/aix_a/code/dictionary on the new machine. |
||
For command line help with this script, simply
type Upgrade518_Enovia.sh , and press Enter from the
UNIX command line and it will return some help text.Here are two sample executable files with working command lines for CUSTO migration, one for Oracle and one for DB2: DB2
ORACLE
|
||
|
||
-DBVendor |
ORACLE or DB2 Example: -DBVendor ORACLE |
|
-DBName |
The name of your database. Example: -DBName ENOVIA V5 VPMDB17 |
|
-DBAdmHome |
Home directory of the Oracle ID or the DB2 instance ID. If
you are using DB2 with a remote database on a separate machine from the
ENOVIA V5 VPM installation,
this parameter is the client database instance home directory on the LOCAL
machine where you are running the migration. Examples: -DBAdmHome /home/db2adm -DBAdmHome /oracle/app/oracle/product/9.2.0 |
|
-TbsName |
The tablespace name used by
ENOVIA LCA for its database
tables. Example: -TbsName ENOTBS |
|
-IdxTbsName |
The tablespace name used by
ENOVIA LCA for its indexes. Example: -TbsName ENOTBS |
|
-TableOwner |
The ID that is owner of database tables - must use all
CAPITAL LETTERS. This parameter is optional. If not specified, default is
AdmUsr. Example: -TableOwner VPMADM |
|
-AdmUsr |
The
ENOVIA V5 VPM administrative
user ID specified in enoviadbsetup. Example: -AdmUsr ev5adm |
|
-DBAID |
The database administrator ID. If you are using DB2 with a
remote database on a separate machine from the
ENOVIA V5 VPM installation,
this parameter is the administrator-ID of the database on the REMOTE
machine where the database was built. For Oracle users: The DBAID is usually not the ID that created the database. It may be the ID that owns the tables, and this may be the same ID as the ENOVIA administrator ID, but it could also be any userid that has been granted dba permissions by the Oracle administrator. We recommend that you ensure that the ENOVIA administrator ID has been granted dba privileges on the Oracle database and use it as the DBA ID for the purposes of migration. DO NOT use system as your DBA or ENOVIA V5 VPM administrator ID during migration even if you used this as the DBA id during EnoviaDBSetup. This will not work and is not supported. Examples: -DBAID db2adm -DBAID ev5adm [where ev5adm is an Oracle ID that has DBA permissions] |
|
-EnvDir |
the full directory path to the CATEnv
directory. Example: -EnvDir /usr/DS/LCA17/CATEnv |
|
-EnvName |
The name of the
ENOVIA V5 VPM~ file in CATEnv
directory without the .txt Example: -EnvName ENOVIA_V5_VPM.V5R18.B18 |
|
-R17path |
The path to the ~code/dictionary directory on
your ENOVIA V5 VPM Release 17
configuration (the one that is being migrated in this exercise)*. Example: -R17path /path/R17/aix_a |
|
-TMP |
Optional
-
it will default to TEMP if not specified. A windows path where errors, logs
and debugging information will go; ensure you have permission to write to
this directory and 500 megabytes of free space. Example: -TMP /tmp/mig18 |
|
-Step |
-Step ALL runs all steps; or use
-step
STEPNAME to select a single step. The migration is not complete until all
required steps run successfully. Note that Step names must be all capital
letters. Examples: -Step ALL -Step STATS |
|
-DBAPwd |
Optional. If you would prefer not to be
prompted to type in the DBA password, you can put it on the command line,
but recognize that this will expose the password to some security risk. Example: -DBAPwd password |
|
-AdmPwd |
Optional. If you would prefer not to be
prompted to type in the ENOVIA Admin ID password, you can put it on the
command line, but recognize that this will expose the password to some
security risk. Example: -AdmPwd password |
|
-cmaffsize |
Optional. Number of affected objects to manage
in each iteration within the CMAFF step. Larger values create
faster performance but can use a lot of memory at once (possibly exceeding
the capacity of your computer). Small cmaffsize values can
greatly degrade performance if the database has a lot of affected objects.
Default if not specified = 500. Example: -cmaffsize 1000 If the |
|
*If the R17 release does not reside on the same
physical machine on which you are installing
R18, then you
must make a copy of all the files in the ~code/dictionary
directory or directories in R17 and create a separate directory (or
directories) somewhere on your
R18 machine,
and put a copy of all the R17 dictionary files under this directory
(ensuring that the R17 dictionary path has at least read permission to all
users). Then you can use this new directory name(s) as your parameter for
R17dict path. DO NOT overwrite any of the dictionary files
that are in the dictionary directory of your
R18
installation. If you must copy R17 dictionary files, put them in a special
directory, such as a new one you create under /tmp . For
example, if you were working on an AIX machine and you copied the files to
a new directory called R17dict under /tmp , you
would have the parameter -R17path /tmp/R17dict/aix_a . The
files should reside under subdirectories beneath R17dict that
follow the format /tmp/R17dict/aix_a/code/dictionary such that
all your dictionary files that used to be on the old machine under the
/installpath/aix_a/code/dictionary are now copied into
/tmp/R17dict/aix_a/code/dictionary on the new machine. . |
||
For command line help with this script, simply
type Upgrade517_Enovia.sh and press Enter from the
UNIX command line and it will return some help text. |
||
Here are two sample executable files with
working command lines for STANDARD migration, one for Oracle and one for
DB2: DB2: . /catstart -run -s "Upgrade518_Enovia.sh -DBVendor DB2 -DBName
DBNAME1 -DBAdmHome /home/db2adm -TbsName ENOTBS -IdxTbsName ENOTBS
-TableOwner EV5ADM -AdmUsr ev5adm -DBAID db2adm -EnvDir /usr/DS/R18/CATEnv
-EnvName ENOVIA V5 VPM.V5R18.B17
-R17path /mig/R17/aix_a/ ORACLE: ./catstart -run -s “./Upgrade518_Enovia.sh -DBVendor ORACLE -DBName
ORADB4 -DBAdmHome /home/oracle/9.2.0 -TbsName ENOTBS -IdxTbsName ENOTBS
-TableOwner EV5ADM -AdmUsr ev5adm -DBAID ev5adm -EnvDir /path/R18/CATEnv
-EnvName ENOVIA V5 VPM.V5R18.B17
-R17path /path/R17/aix_a/ -TMP /usr/out -Step ALL -cmaffsize 700” |
||
SPECIAL NOTE REGARDING THE -Step PARAMETER The R18 migration has the capability to run all the steps except the ones that you would like to exclude. You might want to do this if:
To run all the steps except for one or more to be excluded, follow these procedures:
|
||
|
||
Special Notes on Migration of Lifecycles (Graphs)If you want to remove a lifecycle state for an object type, you should either:
You may update the lifecycle either by editing the text of the lifecycle
VGraph file, or by editing the lifecycle in the
ENOVIA VPM Product Editor, then exporting
to a VGraph file and adding any specialized conditions and operations. |
||
|