Question

MAX DB - Commvault The client name has not been specified.

  • 15 November 2022
  • 5 replies
  • 617 views

Badge +1

Hallo zusammen,

wir haben aktuell den Fehler “Client name has not been specified”. 
Param file looks fine with the entry:

nvcsgid2:/opt/commvault/SapMaxDbAgent # cat param
numstreams
1
CvInstanceName
Instance001
CvClientName
nvcsgid2
SelectiveOnlineFull
1
CV_restCopyPrec
2
srcCrossClient
sde-sap5
 

 

 

Log:

 

2022-11-15 15:23:14
Setting environment variable 'TEMP' for the directory for temporary files and pipes to default ''.
Using environment variable 'TMP' with value '/var/tmp' as directory for temporary files and pipes.
Using MaxDB Kernel Process.
Using connection to Backint for MaxDB Interface.

2022-11-15 15:23:14
Checking existence and configuration of Backint for MaxDB.
    Using configuration variable 'BSI_ENV' = '/opt/commvault/SapMaxDbAgent/backint.conf' as path of the configuration file of Backint for MaxDB.
    Setting environment variable 'BSI_ENV' for the path of the configuration file of Backint for MaxDB to configuration value '/opt/commvault/SapMaxDbAgent/backint.conf'.
    Reading the Backint for MaxDB configuration file '/opt/commvault/SapMaxDbAgent/backint.conf'.
        Found keyword 'BACKINT' with value '/opt/commvault/SapMaxDbAgent/backint'.
        Found keyword 'INPUT' with value '/opt/commvault/SapMaxDbAgent/in'.
        Found keyword 'OUTPUT' with value '/opt/commvault/SapMaxDbAgent/out'.
        Found keyword 'ERROROUTPUT' with value '/opt/commvault/SapMaxDbAgent/err'.
        Found keyword 'PARAMETERFILE' with value '/opt/commvault/SapMaxDbAgent/param'.
        Found keyword 'TIMEOUT_SUCCESS' with value '300'.
        Found keyword 'TIMEOUT_FAILURE' with value '300'.
    Finished reading of the Backint for MaxDB configuration file.

    Using '/opt/commvault/SapMaxDbAgent/backint' as Backint for MaxDB program.
    Using '/opt/commvault/SapMaxDbAgent/in' as input file for Backint for MaxDB.
    Using '/opt/commvault/SapMaxDbAgent/out' as output file for Backint for MaxDB.
    Using '/opt/commvault/SapMaxDbAgent/err' as error output file for Backint for MaxDB.
    Using '/opt/commvault/SapMaxDbAgent/param' as parameter file for Backint for MaxDB.
    Using '300' seconds as timeout for Backint for MaxDB in the case of success.
    Using '300' seconds as timeout for Backint for MaxDB in the case of failure.
    Using '/sapdb/ID2/data/wrk/ID2/dbm.knl' as backup history of a database to migrate.
    Using '/sapdb/ID2/data/wrk/ID2/dbm.ebf' as external backup history of a database to migrate.
    Checking availability of backups using backint's inquire function.
Check passed successful.

2022-11-15 15:23:14
Checking medium.
Check passed successfully.

2022-11-15 15:23:14
Preparing backup.
    Exporting configuration variable 'LD_LIBRARY_PATH' with value '/opt/commvault/Base'.
    Exporting configuration variable 'SHLIB_PATH' with value '/opt/commvault/Base'.
    Exporting configuration variable 'CvClientName' with value 'nvcsgid2'.
    Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
    Setting environment variable 'BI_REQUEST' to value 'NEW'.
    Setting environment variable 'BI_BACKUP' to value 'FULL'.
    Constructed Backint for MaxDB call '/opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c'.
    Created temporary file '/opt/commvault/SapMaxDbAgent/out' as output for Backint for MaxDB.
    Created temporary file '/opt/commvault/SapMaxDbAgent/err' as error output for Backint for MaxDB.
    Writing '/sapdb/data/pipe/m1 #PIPE' to the input file.
    Writing '/sapdb/data/pipe/m2 #PIPE' to the input file.
Prepare passed successfully.

2022-11-15 15:23:14
Creating pipes for data transfer.
    Creating pipe '/sapdb/data/pipe/m1' ... Done.
    Creating pipe '/sapdb/data/pipe/m2' ... Done.
All data transfer pipes have been created.

2022-11-15 15:23:14
Starting database action for the backup.
    Requesting 'SAVE DATA QUICK TO  '/sapdb/data/pipe/m1' PIPE PACKED,'/sapdb/data/pipe/m2' PIPE PACKED BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'CV_BACKINT_FULL'' from db-kernel.
The database is working on the request.

2022-11-15 15:23:14
Waiting until database has prepared the backup.
    Asking for state of database.
    2022-11-15 15:23:14 Database is still preparing the backup.
    Waiting 1 second ... Done.
    Asking for state of database.
    2022-11-15 15:23:15 Database is still preparing the backup.
    Waiting 2 seconds ... Done.
    Asking for state of database.
    2022-11-15 15:23:17 Database is still preparing the backup.
    Waiting 3 seconds ... Done.
    Asking for state of database.
    2022-11-15 15:23:20 Database has finished preparation of the backup.
The database has prepared the backup successfully.

2022-11-15 15:23:20
Starting Backint for MaxDB.
    Starting Backint for MaxDB process '/opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c >>/opt/commvault/SapMaxDbAgent/out 2>>/opt/commvault/SapMaxDbAgent/err'.
    Process was started successfully.
Backint for MaxDB has been started successfully.

2022-11-15 15:23:20
Waiting for end of the backup operation.
    2022-11-15 15:23:20 The backup tool is running.
    2022-11-15 15:23:20 The database is working on the request.

    2022-11-15 15:23:21 The backup tool process has finished work with return code 2.

    2022-11-15 15:23:25 The database is working on the request.

    2022-11-15 15:23:35 The database is working on the request.

    2022-11-15 15:23:50 The database is working on the request.

    2022-11-15 15:24:10 The database is working on the request.

    2022-11-15 15:24:22 Canceling Utility-task after a timeout of 60 seconds elapsed ... OK.

    2022-11-15 15:24:23 The database is working on the request.

    2022-11-15 15:24:24 The database has finished work on the request.
    Receiving a reply from the database kernel.
    Reply from db-kernel:
        SQL-Code              :-903
    End of reply from db-kernel.
The backup operation has ended.

2022-11-15 15:24:24
Filling reply buffer.
    Have encountered error -24920:
        The backup tool failed with 2 as sum of exit codes. The database request was canceled and ended with error -903.

    Constructed the following reply:
        ERR
        -24920,ERR_BACKUPOP: backup operation was unsuccessful
        The backup tool failed with 2 as sum of exit codes. The database request was canceled and ended with error -903.
Reply buffer filled.

2022-11-15 15:24:24
Cleaning up.
    Removing data transfer pipes.
        Removing data transfer pipe /sapdb/data/pipe/m2 ... Done.
        Removing data transfer pipe /sapdb/data/pipe/m1 ... Done.
    Removed data transfer pipes successfully.

    Copying output of Backint for MaxDB to this file.
    ---------- Begin of output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/out)----------
        Number of streams desired=<1> Number of files to backup=<2>
        
        
        
        -------------------------- Output of backup -------------------------
        
        BI_BACKUP=<FULL>
        
        BI_CALLER=<DBMSRV>
        
        BI_REQUEST=<NEW>
        
        
        
        -------------------------- Parameter Specified -------------------------
        
        
        CvInstanceName=<Instance001>
        
        CvClientName=<nvcsgid2>
        
        numstreams=<1>
        
        CV_restCopyPrec=<2>
        
        dbname=<ID2>
        
        Selective Online Full has been setup
        
        
        
        -------------------------- backint Command Line  -------------------------
        
        backintCmd=[/opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c ]
        
        
        The client name has not been specified.
        
        Please specify the environment variable [CvClientName] appropriately.
        
        
    ---------- End of output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/out)----------
    Removed Backint for MaxDB's temporary output file '/opt/commvault/SapMaxDbAgent/out'.
    Copying error output of Backint for MaxDB to this file.
    ---------- Begin of error output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/err)----------
        
    ---------- End of error output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/err)----------
    Removed Backint for MaxDB's temporary error output file '/opt/commvault/SapMaxDbAgent/err'.
    Removed the Backint for MaxDB input file '/opt/commvault/SapMaxDbAgent/in'.
Have finished clean up successfully.

 

 


 

backintCmd=[/opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c ] 

 

you see the -c (client) is empty although the entry is set in param file. I also tried to set OS User and MaxDB environment parameter.

 

If i ran the command: opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c CLIENTNAME

 

it works.

 

 

Would be great if you can support here :)

 

Thanks


5 replies

Userlevel 4
Badge +13

Hi @CommvaultMaxDB 

 

The param file may be truncating the client name

try renaming the existing param file 

Create a new file param file and ensure the correct permissions are set

Add only the following content to the newly created param file 

numstreams
1
CvInstanceName
Instance001
CvClientName
nvcsgid2

 

Do not copy and paste, please try the entries 

 

Run a test backup and if its successful add the other parameters too.

 

Apart from this check if there are duplicate client names on the CS 

 

Regards,

Badge +1

Hello @Gowri Shankar ,

 

thanks for your help. Already tried this - unfortunately same error.

nvcsgid2:/opt/commvault/SapMaxDbAgent # cat param
numstreams
1
CvInstanceName
Instance001
CvClientName
nvcsgid2
 

 

Copying output of Backint for MaxDB to this file.
    ---------- Begin of output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/out)----------
        Number of streams desired=<1> Number of files to backup=<2>
        
        
        
        -------------------------- Output of backup -------------------------
        
        BI_BACKUP=<FULL>
        
        BI_CALLER=<DBMSRV>
        
        BI_REQUEST=<NEW>
        
        
        
        -------------------------- Parameter Specified -------------------------
        
        
        CvInstanceName=<Instance001>
        
        CvClientName=<nvcsgid2>
        
        numstreams=<1>
        
        dbname=<ID2>
        
        
        
        -------------------------- backint Command Line  -------------------------
        
        backintCmd=[/opt/commvault/SapMaxDbAgent/backint -u ID2 -f backup -t file -p /opt/commvault/SapMaxDbAgent/param -i /opt/commvault/SapMaxDbAgent/in -c ]
        
        
        The client name has not been specified.
        
        Please specify the environment variable [CvClientName] appropriately.
        
        
    ---------- End of output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/out)----------
    Removed Backint for MaxDB's temporary output file '/opt/commvault/SapMaxDbAgent/out'.
    Copying error output of Backint for MaxDB to this file.
    ---------- Begin of error output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/err)----------
        
    ---------- End of error output of Backint for MaxDB (/opt/commvault/SapMaxDbAgent/err)----------
    Removed Backint for MaxDB's temporary error output file '/opt/commvault/SapMaxDbAgent/err'.
    Removed the Backint for MaxDB input file '/opt/commvault/SapMaxDbAgent/in'.
Have finished clean up successfully.
 

 

 

As you see in the “Parameter Specified “ section, CV is getting the right parameter for CvClientName=<nvcsgid2>. But in the CV save command -c, the client is missing ….
        The client name has not been specified.
        
        Please specify the environment variable [CvClientName] appropriately.

 

 

Any other hints or tips :) ?

 

Thanks a lot.
        

Userlevel 4
Badge +13

Hi @CommvaultMaxDB 

Thanks for the update.

Could you attach the backint_maxdb.log from the log files directory.

Regards,

Badge +1

Hello,

 

thanks a lot. Log file is attached. maybe the entries are from my manual command with -c ?

Userlevel 4
Badge +13

Hi @CommvaultMaxDB 

 

Thanks for the logs.

 

Could you open a support incident to check this further?

 

Thanks

Gowri Shankar

Reply