Situations exist where you may want to change the application server name or the resource identifier. For example, you may want to change an application server name from 8 to 18 characters or have it conform to your naming conventions, or you may want to change a resource identifier name to a registered DRDA TPN.
The first character of the application server name must be an uppercase letter (A-Z), followed by alphanumeric characters. The name must be from 1 to 18 characters.
The following example shows how to rename an application server with a character resource identifier. In this example, the DB2 Server for VM production minidisk is assumed to be the Q-disk, and an application server with a DBNAME of dbname1 and a RESID of resid1 will be renamed to dbname2 resid2.
Notes:
:nick :dbname :resid
FILELIST resid1 * Q
A list of files from the Q-disk is displayed. Three files are on the Q-disk for each application server:
RENAME / resid2 SQLDBGEN Q RENAME / resid2 SQLDBN Q RENAME / resid2 SQLFDEF Q
XEDIT resid2 SQLDBN Q
This file contains a statement similar to the following:
DBMACHID=Dbmachid,DCSSID=Dcssid,DBNAME=dbname1
Replace the DBNAME value (DBNAME=dbname1) with your new server name:
DBMACHID=Dbmachid,DCSSID=Dcssid,DBNAME=dbname2
XEDIT RESID NAMES Q
In this file, you see the :DBNAME and :RESID tags. Replace the resource identifier resid1 with resid2, and dbname1 with dbname2.
Before: :nick. :dbname.dbname1 :resid.resid1 After: :nick. :dbname.dbname2 :resid.resid2
After changing your application server name and resource identifier, ensure that users enter:
SQLINIT DB(dbname2)
to identify the application server to be accessed.
When you want to start the renamed application server, specify the new server name when you enter SQLSTART:
SQLSTART DB(dbname2)
The following example shows how to rename an application server, and how to change a resource identifier to a registered DRDA TPN. In this example, the DB2 Server for VM production minidisk is assumed to be the Q-disk, and an application server with a DBNAME of dbname1 and a RESID of resid1 will be renamed to dbname2 07F6C4C2. The RESID 07F6C4C2 represents the default DRDA TPN X'07F6C4C2'.
Note: | If the RESID NAMES Q file is not on the production minidisk, use XEDIT to
create the file. Create it with one entry that has the following three
tags:
:nick :dbname :resid |
FILELIST resid1 * Q
A list of files from the Q-disk is displayed. Three files are on the Q-disk for each application server:
RENAME / 07F6C4C2 SQLDBGEN Q RENAME / 07F6C4C2 SQLDBN Q RENAME / 07F6C4C2 SQLFDEF Q
XEDIT 07F6C4C2 SQLDBN Q
This file contains a statement similar to the following:
DBMACHID=Dbmachid,DCSSID=Dcssid,DBNAME=dbname1
Replace the DBNAME value (DBNAME=dbname1) with your new server name:
DBMACHID=Dbmachid,DCSSID=Dcssid,DBNAME=dbname2
XEDIT RESID NAMES Q
In this file, you will see :DBNAME and :RESID tags. Replace the resource identifier resid1 with the hexadecimal value X'07F6C4C2' and dbname1 with dbname2.
Before: :nick. :dbname.dbname1 :resid.resid1 After: :nick. :dbname.dbname2 :resid.X'07F6C4C2'