If you need to change the name of a database (dbname, not machine name) that is managed by Control Center, you must make changes to database system files and Control Center control files.
For the sake of this discussion, OLDNAME refers to the name of the database that is being changed, and NEWNAME is the new name it is to be given.
Old Name New Name ------------------- ------------------- OLDNAME SQLDBGEN Q NEWNAME SQLDBGEN Q OLDNAME SQLDBN Q NEWNAME SQLDBN Q OLDNAME SQLFDEF Q NEWNAME SQLFDEF Q
Locate the following statement and replace OLDNAME with NEWNAME (save your changes):
DBMACHID=dbmachid,DCSSID=Dcssid,DBNAME=OLDNAME
NOTE: If your database name differs from the VM machine ID, please make the appropriate entry in the Control Center DBINIT Control file. See Maintaining the DBINIT CONTROL File. Also be sure to include the database name in the VM directory IUCV statement, as the example below shows:
IUCV ALLOW IUCV *IDENT SQLDBA LOCAL
Locate the following statement and replace OLDNAME with NEWNAME (save your changes):
:Dbname.OLDNAME
Note: |
---|
Tokens in this file are case-sensitive; do not alter. |
DBINIT CONTROL SQLMSTR DIRECTRY
These files exist on the Control Center code disk.