Harvesting of Assets in OER Part 1 – Command Line


Using the Harvester the metadata can be submitted to Oracle Enterprise Repository either from the command line, from Oracle JDeveloper, or using an Ant task

We would be covering only Harvesting Assets from Command Line in this post

First you need to obtain the Harvester which is bundled with the OER installation.

The Harvester is available in 11.1.1.x.x-OER-Harvester.zip, at the following location:

<ORACLE_HOME>/repositoryXXX/core/tools/solutions/11.1.1.x.x-OER-Harvester.zip

 

We refer to the directory that you extract the 11.1.1.x.x-OER-Harvester.zip file to as the <Harvester Home> directory.

 

One can easily bootstrap their Oracle Enterprise Repository using the Harvester from the command-line.

Command-line harvesting allows organizations to harvest:

  •  Individual files
  • Directories of files
  •  Remote files
  •  Files residing in artifact stores
  •  Files residing on Oracle MetaData Store (MDS)

 

Open the XML file HarvesterSettings.xml located at <Harvester Home> and modify the following XML to point the Harvester to an Oracle Enterprise Repository instance with the correct credentials:

<repository>

<uri>http://localhost:7101/oer</uri&gt;

<credentials>

<user>smith</user>

<password>*****</password>

//To ensure security, the password must be encrypted.

//The password encryption tool (encrypt.bat/encrypt.sh), which is located in

<ORACLE_HOME>/repositoryXXX/core/tools/solutions/11.1.1.x.x-OER-PasswordTools.zip,

allows you to encrypt

// the passwords that are stored in the Harvester configuration

// (HarvesterSettings.xml) file.

</credentials>

<timeout>30000</timeout>

</repository>

 

Alternatively, the repository connection information can also be passed as parameters to the command line utility as follows:

 

C:\test\harvester> harvest -url http://localhost:7101/oer -user

admin -password <password> -file c:\test\samples

Executing this would allow you to Harvest the contents to OER.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s