About Running the Batch Loader Batch Loading from the Command Line

Managing System Processes 3-29 ■ Section 3.6.3.8, Correcting Batch Load Errors

3.6.3.1 About Running the Batch Loader

The Batch Loader uses the information from a batch load file to check in insert, delete, or update a large number of files on your Oracle Content Server system simultaneously. ■ You can run the Batch Loader from the standalone application interface or from the command line. ■ After you run the Batch Loader, the Oracle Content Server instance processes files through the Inbound Refinery and the Indexer as it would for any other content item.

3.6.3.2 Batch Loading from the Batch Loader Screen

Use the following procedure to batch load content using the Batch Loader screen: 1. Display the Batch Loader Screen .

2. Click Browse, and navigate to and select the batch load file.

3. To change the number of errors that can occur before the Batch Loader stops processing, enter the number in the Maximum errors allowed field. 4. To delete files from the hard drive after they are successfully checked in or updated, select Clean up files after successful check in. 5. To create a text file containing the file records that failed during batch loading, select Enable error file for failed revision classes.

6. Click Load Batch File to start the Batch Loader process.

When the batch load process is complete, a Batch Loader message screen is displayed, indicating the number of errors that occurred, if any. 7. If you enabled the error file, write down the file name shown in the message box.

8. Click OK.

9. Correct any problems with the batch load. 10. To save the current Batch Loader settings as the default, select Options, Save Configuration.

3.6.3.3 Batch Loading from the Command Line

You can batch load content by entering the Batch Loader parameters from a command line rather than entering them in the Batch Loader screen. Use the following procedure to run the Batch Loader from the command line: 1. Open the DomainHomeucmcsbinintradoc.cfg file in a text editor, and add the following line, where sysadmin is the user name of the Oracle Content Server system administrator: BatchLoaderUserName=sysadmin This is required so that the system logs in as the system administrator, because only users who have admin rights have permission to run the Batch Loader application. 2. Save and close the file. 3-30 Oracle Fusion Middleware System Administrators Guide for Oracle Content Server 3. Open a command line window and change to the DomainHomeucmcsbin directory. 4. Enter the following command: Win32: BatchLoader.exe q nbatchloadfile Unix: BatchLoader -q -nbatchloadfile The Batch Loader processes the batch load file, but message boxes will not be displayed. 5. Correct any problems with the batch load. The following flags can be used with the BatchLoader command from the command line:

3.6.3.3.1 Win32 Example The following example shows the correct syntax to run the

Batch Loader from a Win32 command line, where the batch load file is c:batchingbatchinsert.txt: BatchLoader.exe q nc:batchingbatchinsert.txt

3.6.3.3.2 UNIX Example The following example shows the correct syntax to run the

Batch Loader from a UNIX command line, where the batch load file is batchingbatchinsert.txt: BatchLoader -q -nbatchingbatchinsert.txt

3.6.3.4 Using the IdcCommand Utility and Remote Access