- All Implemented Interfaces:
- VariableInterface
public class DbPasswordVariable
extends AbstractUpdateIni
\page variables
\addindex DB_PASSWORD
\par Variable DB_PASSWORD
The Oracle Database Password can be changed by means of setting this variable. See details below.
\note
In order to make the password change in the Oracle database possible, the user has to edit the athos INI-file:
He has to add some lines to the SERVICE section and extend or create a corresponding LIST section:
Example for the Service 'TESTMODEL/DB' and the DataBase User (DB_USER) 'TESTMODEL':
\verbatim
[SERVICE "TESTMODEL/DB"]
...
PUT_VARIABLE_TO_TRANSLATOR = YES
MME_VARIABLES_TO_HANDLE = MME_VARIABLES_TO_PUT
DB_PASSWORD_COMMAND = "alter user TESTMODEL identified by %s"
...
...
[LIST "MME_VARIABLES_TO_PUT"]
DB_PASSWORD
...
\endverbatim
The following actions are performed:
-# The new DB password is written encoded as value of the INI-file variable DB_PASSWORD in the athos INI file.
A backup of the former INI-file is created (with date/time indication in filename).
In case of some error, processing is aborted, the next step is skipped.
-# The password is changed in the Oracle Database. This is done executing the SQL command written in the
variable DB_PASSWORD_COMMAND, provided the INI-file has been prepared properly as described above.
In case of error, the changed INI-file is restored to the original state.
Please note: In case the INI-file contained the DB_PASSWORD clear text and the variable is set to same
password value, no database change is done, but INI-file is changed with DB_PASSWORD written encoded.
\par Access to the variable DB_PASSWORD
This variable is write only.