Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you chose this option, we are assuming you have DSpace installed elsewhere (e.g. on your host machine). 

  1. 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
    1. Open up your VirtualBox Manager
    2. Select the Oracle Virtual Machine, and click the "Settings" button (at the top, looks like a gear)
    3. Go to the "Network" settings, and click "Port Forwarding" button at the bottom
    4. 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.
    5. You also may wish to add a new rule for SSH access (port 22), something like this:
      1. SSH | TCP | Host Port: 2200 | Guest Port: 22
    6. Test out your SSH access. From your host machine type:
      1. ssh -p 2200 oracle@localhost (password: oracle)
  2. On the machine where your DSpace is installed, you will need to do the following:
    1. Download the latest Oracle OJDBC JAR from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
    2. 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
    3. 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

...