Tuesday, February 10, 2015

Installing jDeveloper in Oracle Public Cloud

Pre-requisites

1. JDeveloper downloaded to you local machine.
2. Valid subscription in Oracle Public Cloud - Java Cloud Service


Brief Steps

  1. Provision DBCS Instance
  2. Provsion JCS Instance
  3. Copy JDeveloper from your local machine to remote machine
  4. Configure XWindows
  5. Start VNCServer
  6. Create SSH Tunnel
  7. Unzip zip file from #3.
  8. VNC into your public machine.
  9. Run JDeveloper.



Details Steps

3. Copy the file you downloaded to the public IP. You can use PSCP.exe to copy Jdeveloper. Before copying make sure you create a separate folder into which you will be copying JDeveloper file.
For quick syntax on how to use PSCP, follow the link.


4. Configure XWindows

To Configure XWindows, you need to first putty into your public IP. On Terminal execute the below commands.


  • Edit sshd_config & change value of X11Forwarding Property
    • sudo vi /etc/ssh/sshd_config
    • Change the value of X11Forwarding to yes
  • Restart sshd
    • sudo /etc/init.d/sshd restart
  • Run the below command to prevent vnc displaying lock screen
    • gconftool-2 -s -t bool /apps/gnome-scrensaver/lock_enabled false
  • Start VNC Server
    • vncserver :1 -depth 16 -alwaysshared -geometry 1200x750 -s off
  • Confirm VNC Server is running
    • vncserver -list
  • Check if OPC user has access to $TMP. If no execute the below command. VNC tries to write to $TMP folder. If no access then you will get an error when trying to accessing the server using VNC Client. If the access is successful, you will be able to CD in $TMP as opc user.
    • sudo chmod 777 /u01 -R

5. Create SSH Tunnel using command line or using putty.


  • Using Commandline
    • ssh -L 6905:127.0.0.1:5901 -N -f -i Complete_Path_Of_SSH_Public_Key -l opc OPC_Public_IP
  • Using Putty
6. Login into VNC using opc crendentials



7. VNC Desktop


8. Open Terminal & run Jdeveloper









No comments: