The database manager will call the user exit program as required and will pass a set of parameters to it. These parameters have a data type of character string or character.
The calling format is dependent on your operating environment as is described in the following topics:
The following is the database manager format for calling an OS/2 user exit program:
action drive db_alias log_path log_file indicator
For RESTORE, this parameter contains the drive where the database is to be restored.
For ARCHIVE and RETRIEVE, this parameter contains the drive where the database is located.
The format of this parameter is the drive letter followed by a colon (for example, C:).
For RESTORE, this parameter contains the fully qualified name of a response file, which is the list of files to be restored. Each file name in the list is a fully qualified name and may contain wild cards. The drive letter and path are the source drive and path at the time the database file was backed up. For example, if C:\SQLUTIL\dbname.MH1 is contained in the response file, it means that the dbname.MH1 file was backed up from C:\SQLUTIL.
For ARCHIVE and RETRIEVE, this parameter contains the log path directory (for example, C:\SQL00001\SQLOGDIR\).
For RESTORE, this parameter contains the path name of the database subdirectory where the files are to be restored. The drive letter is not included, because it is indicated in the drive parameter. The format is \SQLnnnnn\.
For ARCHIVE and RETRIEVE, this parameter contains the log file name (for example, S0000001.LOG).
The user exit program is called multiple times during a backup or restore operation. The first call backs up or restores media header files (the .MHn files), and the second call backs up or restores the entire set of database files.
For ARCHIVE and RETRIEVE, this parameter is not used.
The following is the database manager format for calling a UNIX-based or Windows NT operating system user exit program to archive or retrieve data:
db2uext2 -OS<os> -RL<db2rel> -RQ<request> -DB<dbname> -NN<nodenum> -LP<logpath> -LN<logname> -AP<adsmpasswd> -SP<startpage> -LS<logsize>
Notes: