...
If you chose this option, we are assuming you have DSpace installed elsewhere (e.g. on your host machine).
- Follow these instructions to set up First setup port forwarding for this Virtual Machine: http://tombuntu.com/index.php/2008/12/17/configure-port-forwarding-to-a-virtualbox-guest-os/Oracle Virtual Machine
- Open up your VirtualBox Manager
- Select the Oracle Virtual Machine, and click the "Settings" button (at the top, looks like a gear)
- Go to the "Network" settings, and click "Port Forwarding" button at the bottom
- By default, you should already see a port forwarding rule for "sqlnet" which forwards port 1521 on your host machine to port 1521 on the VM. You can modify that if you wish, or leave as-is.
- You also may wish to add a new rule for SSH access (port 22), something like this:
- SSH | TCP | Host Port: 2200 | Guest Port: 22
- Test out your SSH access. From your host machine type:
ssh -p 2200 oracle@localhost
(password: oracle)
- On the machine where your DSpace is installed, you will need to do the following:
- Download the latest Oracle OJDBC JAR from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
Install this JAR into your local Maven cache (~/.m2):
Code Block mvn install:install-file -Dfile=[path-to-downloads]/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4.0 -Dpackaging=jar -DgeneratePom=true
Rebuild your DSpace with Oracle enabled:
Code Block mvn -Ddb.name=oracle package # NOTE: If the version of the Oracle OJDBC JAR has changed, you may need to update the Parent POM to have the correct version # See the "com.oracle" dependency: https://github.com/DSpace/DSpace/blob/master/pom.xml#L1082
...