You can have the CommCell Console authenticate third party database backup and restore jobs to ensure that the user has the correct credentials and has included a valid token file in the job request.
Procedure
-
Enable CommCell Console Authentication of Third Party Command Line Jobs.
-
Run the qlogin command with the token file option (-f) to obtain a token file.
-
Create a token parameter text file that specifies the location of the token file that the qlogin command created.
To see the token file contents, on the command line, type the following command, substituting token_paremeter_file with the token parameter text file name.
cat token_parameter_file [CvQcmdTokenFile] token_file_location
Example
cat thirdpartytoken.txt [CvQcmdTokenFile] /tmp/tokenfile
-
Set the file permissions on the token file that the qlogin command created so that application users can read the file.
Example
If the token file name is "tokenfile, on the command line type the following:
chmod 740 /tmp/tokenfile
-
Set the token file in the parameters file before you perform third-party command line backups and restores.
UTIL_FILE
Set the CvOraSbtParams parameter to the token parameter text file in the init<SID>.util file.
CvOraSbtParams location_of_token_parm_file
Example
CvOraSbtParams /ORAHOME/oracle/product/11.2.0.4/dbhome_1/dbs/thirdpartytoken.txt
RMAN_UTIL
There are 2 options that you can use:
-
Use the CvSbtOraParams parameter in the SAP on Oracle RMAN PARAMS parameter to specify the token file.
Set the token file in the init<SID>.sap file with the CvOraSbtParams parameter.
CvOraSbtParams location_of_token_parm_file
Example
RMAN_PARMS="SBT_LIBRARY=/opt/commvault/Base64/libobk.a(shr.o),BLKSIZE=1048576,ENV=(CvClientName=dbserveaix4,CvInstanceName=Instance001,CvOraSbtParams=/tmp/thirdpartytoken.txt)
-
Set the CvQCmdTokenFile parameter to the token parameter file location in the init<SID>.sap file.
RMAN_PARMS="SBT_LIBRARY=/opt/commvault/Base64/libobk.a(shr.o),BLKSIZE=1048576,ENV=(CvClientName=dbserveaix4,CvInstanceName=Instance001,CvQcmdTokenFile=<direct_location_of_token_file>)
Example
RMAN_PARMS="SBT_LIBRARY=/opt/commvault/Base64/libobk.a(shr.o),BLKSIZE=1048576,ENV=(CvClientName=dbserveaix4,CvInstanceName=Instance001,CvQcmdTokenFile=/tmp/tokenfile)
-