This section explains how to back up and restore PL/extJava,
Back up PL/extJava to guard against issues such as a failure of the disk where the PL/extJava domains and containers are placed.
For example, backup should be performed when any of the following occur:
Modifications are made to PL/extJava (such as to its containers or server instances (Java VM))
Java functions are added, changed, or deleted
Note
When re-creating the instance administrator after a system disk failure, ensure that it has the same user name before the failure. If the user name is different from the backup data, restoration will fail.
This section explains how to back up PL/extJava.
If using the failover operation, back up the active node.
If using database multiplexing mode, back up the primary server.
Stop the instance
Refer to "2.1 Starting and Stopping an Instance" for information on how to stop the instance.
Refer to "8.11 Actions in Response to Failure to Stop an Instance" if the instance fails to stop.
Prepare the backup storage disk for PL/extJava
Prepare a disk separate from the disk used to store the PL/extJava resources. Ensure that the disk has at least twice the capacity of the domain root.
Back up PL/extJava
As the operating system administrator user, back up the PL/extJava resources using the backup subcommand of the pgx_jadmin command.
Note
Do not specify any of the following directories as the PL/extJava backup storage directory:
The instance data storage destination, the backup storage destination, or the domain root
A directory in the instance data storage destination, the backup storage destination, or the domain root
A directory that places the instance data storage destination, the backup storage destination, and the domain root in a subdirectory of a directory that stores the PL/extJava backup
Example
If the backup storage directory for PL/extJava is "D:\backup"
> pgx_jadmin backup --backupdir D:\backup
See
Refer to "pgx_jadmin" in the Reference for information on the backup subcommand.
This section explains how to restore PL/extJava from the point it was backed up.
Stop the instance
Refer to "2.1 Starting and Stopping an Instance" for information on how to stop the instance.
Refer to "8.11 Actions in Response to Failure to Stop an Instance" if the instance fails to stop.
Restore the instance
Restore the instance if required.
Restore PL/extJava
As the operating system administrator user, restore the PL/extJava resources using the restore subcommand of the pgx_jadmin command.
Example
If the backup storage directory for PL/extJava is "D:\backup"
> pgx_jadmin restore --backupdir D:\backup
See
Refer to "pgx_jadmin" in the Reference for information on the restore subcommand.