Oracle® Fusion Middleware System Administrator's Guide for Content Server 11g Release 1 (11.1.1) E10792-01 |
|
![]() Previous |
![]() Next |
Home > System Administrator' > Managing System Migration a... > Importing Data
Archives can be imported according to specified rules and at specified times. The data in the files can be mapped to fields in the receiving content server but care should be taken that the correct rules are applied during import.
The Import function is used to retrieve files and content server information from an exported archive. Importing is typically used to obtain a copy of content from another content server or to restore data that has been in storage.
The content server instance to which you are importing must have the same metadata fields, security groups, and accounts as the instance that the archive was exported from. Errors can result if there are mismatches.
Caution: Do not use Archiver as your primary method of disaster recovery; use standard backup systems for the database and file system. |
Note: Imported revisions will not enter a workflow upon import, even if they meet the criteria for an active workflow. |
Before beginning the import process, consider the following points:
Determine the method to be used, either manual or automatic.
Determine the rules to be used for updating.
Determine the mapping and import options.
Test your process by importing selected revisions.
This section covers these topics:
Typical uses for the Import function include:
Placing data archived from an Intranet on an Extranet for vendor or customer viewing.
Changing metadata for a large number of content items. For example, if an employee leaves the organization, you could export all of their content items and then import them with another user specified as the Author.
Restoring content that was inadvertently deleted or configuration information that was inadvertently changed.
Copying files, content types, and user attributes from a development content server archive to a production instance.
You can import archives in the following ways:
Manual: A one-time import initiated from Archiver by an administrator.
Automatic (Replication): Import from a local archive is initiated automatically, about once per minute.
See "Import Process" and "Replicating Files" for more information.
An import rule defines how revisions are added, replaced, or deleted during import.
During import, Archiver compares each revision being imported with the existing revisions in the importing content server. The import rule specifies which action to take (add, replace, delete, or ignore), depending on comparison of the following information:
Content ID
Original content server
Revision number
Release date
Only one import rule can be selected for each import of an archive.
This section covers these topics:
Use the Update import rule to replace existing revisions and insert new revisions.
Caution: The Update import rule will replace existing revisions without saving the existing files. Be extremely careful when importing so you do not accidentally replace content you meant to keep. |
If an imported revision has a different Content ID (dDocName) than any existing revision, the imported revision is inserted as a new revision.
If an imported revision has the same Content ID (dDocName) as an existing revision, the imported revision is inserted, ignored, or replaces the latest existing revision.
The Insert Revision import rule imports only revisions that have both the most recent revision number and the most recent release date.
If an imported revision has a different Content ID (dDocName) than any existing revision, the imported revision is inserted as a new revision.
If an imported revision has the same Content ID (dDocName) as an existing revision, but has a different Revision ID (dRevisionID) than any existing revision and a later release date (dInDate) than that of the latest existing revision, the imported revision is inserted as a new revision with a new revision label.
The Insert Create import rule imports only revisions that have the most recent release date, regardless of the revision number.
If an imported revision has a different Content ID (dDocName) than any existing revision, the imported revision is inserted as a new revision.
If an imported revision has the same Content ID (dDocName) as an existing revision, and the release date (dInDate) of the imported revision is later than that of the latest existing revision, the imported revision is inserted as a new revision with a new revision label.
Use the Delete Revision import rule to delete individual revisions.
If an imported revision has the same Content ID (dDocName) and Revision ID (dRevisionID) as an existing revision, the existing revision is deleted.
Use the Delete All Revisions import rule to delete all revisions of a content item.
If an imported revision has the same Content ID (dDocName) as any existing revision, all existing revisions with that Content ID are deleted.
Figure 7-15 Import Rule: Delete All Revisions
This section provides information about the import process and related tasks.
Tip: To determine which archive contains the data you want to retrieve, you can prepare an Archive History report using the Web Layout Editor.You can also examine the files generated by the archive at the file system level, but preparing a report is more efficient if you frequently need to find archived data. |
Important: If you are using Sybase and you want to import an archive, you must perform the following tasks:
|
This section covers these topics:
In the Current Archives list, select the archive from which to retrieve data.
Review the batch files in the archive. If necessary, remove revisions from the batch files. See "Removing Revisions from a Batch File".
If you want to change metadata fields or values during the import, set up the field and value mappings. See "Setting Field Maps" and "Setting Value Maps".
Set the general import options. See "Setting Import Options".
Test the import mappings and rules on a few individual revisions. See "Importing an Individual Revision".
Initiate the import. See "Initiating the Import".
Field maps specify how metadata values are copied from one metadata field to another during import. If you do not want to copy metadata values, do not specify any field maps.
To set up field maps:
Open the archive collection. See "Opening a Collection".
Select the archive in the Current Archives list.
Click the Import Maps Main Screen.
Click Edit in the Field Maps section.
The Edit Field Map/Edit Value Map Screen is displayed.
Click Browse For Fields.
The Browse for Fields/Value Screen is displayed.
Select a source for the list of available metadata fields:
To retrieve the metadata fields from the local content server, select Local System.
To retrieve the metadata fields from a batch file, select Batch and select a batch file from the list.
Click OK.
The Export Field option list is populated with the metadata fields that are associated with the content server or the selected batch file.
In the Export Field list, select the metadata field from which you want to copy metadata.
The selected metadata field is displayed in the Export Field. (You can also edit this field directly. Make sure to use the internal field name, such as dDocAuthor or xComments.)
In the Target Field list, select the metadata field you want the Export metadata to be copied to.
Click Add.
The mapping expression is added to the Field Maps box.
To add to the mapping expression, repeat steps 8 through 10.
To update an existing mapping expression:
Select the line to be changed in the Field Maps box.
Edit the Export Field and Target Field as necessary.
Click Update.
The specified mapping expression replaces the selected line.
To delete a line from the mapping expression:
Select the line to be deleted in the Field Maps box.
Click Delete.
The selected line is deleted.
Click OK.
During import, the values from the Export field replace any existing values in the Target field.
To test the results of your field maps, import a few individual revisions from an archive. See "Importing an Individual Revision".
Value maps specify how specific metadata values are to be changed during import. If you do not want to change metadata values, do not specify any value maps.
To set up value maps:
Open the archive collection. See "Opening a Collection".
Select the archive in the Current Archives list.
Click the Import Maps Main Screen.
Click Edit in the Value Maps section.
The Edit Field Map/Edit Value Map Screen is displayed.
To change all metadata values for a particular field, select the All check box. Continue with step 11.
To change a specific metadata value, click Browse For Values.
The Browse for Fields/Value Screen is displayed.
Select a batch file from the From Batch File list.
Select a metadata field from the From Field list.
Click OK.
The Input Value option list is populated with the values that are associated with the selected metadata field in the selected batch file.
In the Input Value list, select the metadata value to be changed.
In the Field list, select the metadata field to be changed.
In the Output Value field, enter the new metadata value.
You can use Idoc Script in the output value. For example, to set the expiration date one week in the future for all imported revisions, you could use <dateCurrent(7)$>
. See the Oracle Fusion Middleware Idoc Script Reference Guide for more information.
To delete all values from the input metadata field, leave the output value blank.
Click Add.
The mapping expression is added to the Value Maps box.
To add to the mapping expression, repeat steps 5 through 13.
To update an existing mapping expression:
Select the line to be changed in the Value Maps box.
Edit the Input Value, Field, and Target Value as necessary.
Click Update.
The specified mapping expression replaces the selected line.
To delete a line from the mapping expression:
Select the line to be deleted in the Value Maps box.
Click Delete.
The selected line is deleted.
Click OK.
During import, the specified Input Values in the specified metadata Fields will be replaced with the Target Values.
To test the results of your value maps, import a few individual revisions from an archive. See "Importing an Individual Revision".
To set general import options:
Open the archive collection. See "Opening a Collection".
Select the archive in the Current Archives list.
Click the Archiver (General Tab).
Click Edit in the Import Options section.
The Edit Import Options (Select Rules) Screen is displayed.
Select an option in the Override Import Rules list to specify how existing revisions are added, replaced, or deleted during import. See "Import Rules" for detailed descriptions.
Caution: The Update import rule will replace existing revisions without saving the existing files. Be extremely careful when importing so that you do not accidentally replace content you meant to keep. |
Specify whether option list values are validated during import:
To import only revisions with valid option list values (validated option lists only), select the Import only revisions with valid option list values check box.
To skip option list validation, clear the Import only revisions with valid option list values check box.
Tip: The Import only revisions with valid option list values check box applies to all validated option lists. If you want to validate some option list fields but not all of them, you can change the Option List Type in the Configuration Manager. Use Select List Validated for option lists you want to validate; use Select List Not Validated for option lists you do not want to validate. |
Specify whether to recalculate times in metadata date fields to reflect the time zone of the target content server:
To recalculate times, select the Translate the dates to the current system time zone check box.
For example, if the time zone of the source (export) content server is Central Standard Time and the time zone of the target (import) content server is Eastern Standard Time, the release times, create times, expiration times, and any custom times will be changed to one hour later.
To leave times unchanged, clear the Translate the dates to the current system time zone check box.
Click OK.
To test the results of your import options, import a few individual revisions from an archive. See "Importing an Individual Revision".
To import a specific revision:
Tip: Before importing an entire batch file, use this procedure to import a few individual revisions to test the results of your import maps and rules. |
Open the archive collection. See "Opening a Collection".
Select the archive in the Current Archives list.
On the Archiver (General Tab), click View Batch Files.
The Removing Revisions from a Batch File is displayed.
Select the batch file that contains the file you want to import.
Click Edit.
The View Exported Content Items Screen is displayed.
Use the Filter feature and the navigation buttons to display the revision to be imported.
Select the revision.
Click Import.
If the revision was imported successfully, a confirmation message is displayed.
To manually import content and configuration information:
Open Archiver for the content server that you want to import to.
Open the archive collection that you want to import from. (This collection must be accessible through the file system.) See "Opening a Collection".
Select the archive in the Current Archives list.
From Actions, select Import.
The Import Archive Screen is displayed.
Specify the information to be imported:
To import content, select the Import Batched Revisions check box.
To import content and tables, select the Import Tables check box.
Note: The User Configuration and Content Configuration options are available only if the selected archive includes this information (users.hda or doctypes.hda file). |
Click OK.
The import process is initiated, and the status bar at the bottom of the Archiver screen displays progress messages.