The Setup tool provides backup and restore capabilities through the following options:
Backup: Outputs Oracle Service Registry contents as a set of XML files in a specified directory.
Restore: Loads backup-generated XML files into the same or a different Oracle Service Registry installation.
Backup functionality allows you to save the Oracle Service Registry data and configuration to a filesystem directory. Later the backup data can be used for full restore of Oracle Service Registry data and configuration.
When you use the Setup tool to perform an Oracle Service Registry backup, the following data is included in the backup:
All registry data stored in the database (Except explicitly denied entities specified in REGISTRY_HOME/app/uddi/conf/migrationXY.xml which normally covers system entities and demo data. XY denotes the internal version number.).
Oracle Service Registry libraries and JSP files.
In addition, consider backing up application server-specific data as described in Oracle Service Registry Backup Recommendations
The Oracle Service Registry server must be shut down before you start backup or restore operations.
Restoration is additive. It does not delete entities that are already present in Oracle Service Registry and not present in the data source. If you need to restore and do not want to retain any current data, you must clean the database which can be done via: drop schema, create schema during setup. For details, see Database Installation
This section describes application server-specific backup considerations.
Ideally, the following static and runtime artifacts within the Oracle WebLogic Server directory structure should be backed up on a periodic basis.
Static artifacts include:
BEA_HOME directories (excluding USER_PROJECTS directories) in the Admin Server and all the Managed Servers.
WLS product home (by default, it resides in BEA_HOME but it can be configured by the user to point to a different location) in Admin Server and all the Managed Servers.
Runtime artifacts include:
USER_PROJECTS directory in all the servers (by default, it resides in BEA_HOME, but it can be configured by the user to point to a different location).
Application artifacts (EAR and WAR files) which reside outside of the domain directory on each of the servers (in case of nostage or external_stage application staging modes).
Persistent Stores (by default, it resides in USER_PROJECTS, but it can be configured by the user to point to a different location).
To back up Oracle Service Registry data:
Stop the Oracle Service Registry instance.
The Oracle Service Registry instance must be stopped when running Setup tool in the Backup mode. If the Oracle Service Registry is running during backup, the Setup tool returns errors indicating various XML files could not be updated.
Use the Setup tool and choose Backup. To run the Setup tool, execute the following script from the bin subdirectory of your installation:
For more information, see command-line parameters in Setup.
Select whether you want to use a Oracle Service Registry that is deployed (second choice) or not (first choice).
Specify the location of the backup directory. You can check which items you wish to back up as shown in Figure 49.
Backup data makes a backup of UDDI data such as different kinds of entities and taxonomies.
Backup configuration files makes a backup of configuration files from REGISTRY_HOME/app/uddi/conf and REGISTRY_HOME/work/uddi/bsc.jar/conf.
Backup configuration from Database makes a backup of configuration files and their history as they are stored in the database. See Configurations in Database in the Administration Guide.
Backup libraries makes a backup of bsc.jar and web.jar from both app and work directories. These files and directories contain UI customizations and modifications.
The restore operation adds data or replaces data in the database. Data in database which are not in the backup are left untouched. We recommend to restore into newly created database.
To restore registry data and configuration from a backup:
Use the Setup tool and choose Restore. To run the Setup tool, execute the following script from the bin subdirectory of your installation:
See command-line parameters in Setup.
Specify the location of backup directory and check the items you wish to restore.
Restore any application-server specific backup files. For more information, see Oracle Service Registry Backup Recommendations .