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:
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:
//To ensure security, the password must be encrypted.
//The password encryption tool (encrypt.bat/encrypt.sh), which is located in
allows you to encrypt
// the passwords that are stored in the Harvester configuration
// (HarvesterSettings.xml) file.
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.