This articles explains how to resolve issue while applying license after upgrading from version 7 to Version 8.
Problem Details
Problem Statement
Apply License or even list license fails after upgrading from Version 7 to Version 8.
Applicable Error Code
Error Code: 2007
Dbvisit Standby is unable to find the hostname of the current server. An alternative
command can be specified to find the hostname. This can be set with variable
HOSTNAME_CMD in Dbvisit Database configuration (DDC) file dbv_PROD.env. Please add
this variable.
Affected Versions
Standby Version 8.0
Affected Platforms
Noticed in Linux.
After upgrading from Dbvisit Standby V7 to V8, Apply license fails with below error.
./dbvctl -d PROD -l 46yy2-onn3e-fjd1q-jsnol-42tx8-0gdq5-xn5mc
Dbvisit Standby terminated...
Error Code: 2007
Dbvisit Standby is unable to find the hostname of the current server. An alternative
command can be specified to find the hostname. This can be set with variable
HOSTNAME_CMD in Dbvisit Database configuration (DDC) file dbv_PROD.env. Please add
this variable.
However, in dbv_PROD.env:
HOSTNAME_CMD = /usr/dbvisit/standby/dbvhost
$ ls -l /usr/dbvisit/standby/dbvhost
-rwxrwxr-x. 1 oracle oracle 31 Jul 6 15:08 /usr/dbvisit/standby/dbvhost
$ cat /usr/dbvisit/standby/dbvhost
#!/bin/bash
echo dbvlab01
The problem is, that you cannot have a path for the parameter HOSTNAME_CMD.It accepts only filename, so the file has to be in your $DBVISIT_BASE/standby directory.
The steps for creating new files is described below , but you can of course just take your old file /usr/dbvisit/standby/dbvhost and place it in $DBVISIT_BASE/standby directory.
#primary
echo "echo dbvlab01" > dbvhost_PROD.sh; chmod +x dbvhost_PROD.sh
#standby
echo "echo dbvlab03" > dbvhost_PROD.sh; chmod +x dbvhost_PROD.sh
So the HOSTNAME_CMD parameter should look like below in the DDC file.
HOSTNAME_CMD = dbvhost_PROD.sh
Comments