VM Setup Document

Version of Virtual Box : VirtualBox 4.3.28
Create and Configure VM

  1. Follow the steps mentioned below in the screenshots.Click on each options specified like language and time zone tools to be installed and click on Done button on the top left corner for each section. Click begin installation.
    Click the reboot button.
     After creating user click  Finish Configuration.
     Provide your choice for software updates and registration.
    Now login as the user you created.
     Select language
    From the devices tab. Click on insert guest additions. An icon will appear on desktop, right click on it and select open with Run software. This will install guest additions.
     1.On settings of virtual box, go to Network section on the right hand side menu.Network Configuration in virtual box

    1. Make Configuration as showed above.
    2. Create a second adapter with configuration shown below.Install Java
      1. Download the file.
      Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.
      1. Change directory to the location where you would like the JDK to be installed, then move the .tar.gz archive binary to the current directory.
      2. Unpack the tarball and install the JDK.
      3. % tar zxvf jdk-8uversion-linux-x64.tar.gz
      The Java Development Kit files are installed in a directory called jdk1.7.0_79 in the current directory.
      1. Delete the .tar.gz file if you want to save disk space.






      WebLogic installation


      1. Unzip the zip file for WebLogic.
      # unzip V44413-01.zip

      1. Launch installation by entering command
      java -jar wls1036_generic.jar


      Weblogic username: weblogic
      Weblogic password: weblogic1

                             
      Oracle 12c Installation for Oracle Linux 7 x86_64

      1. Download Oracle 12c files from


      1. Type command for extracting files
      # unzip V46095-01_1of2.zip
      # unzip V46095-01_2of2.zip


      There will be a single directory called database.

      1. Edit “/etc/sysconfig/network”, add

      NETWORKING=yes
      HOSTNAME=trudevvm



      1. Edit “/etc/hostname” add

      trudevvm


      1. Edit the host file “/etc/hosts”, add the new hostname

      For example:
      127.0.0.1       localhost trudevvm localhost.localdomain localhost4 localhost4.localdomain4


      1. Oracle installation prerequisites
      Run
      # yum install oracle-rdbms-server-12cR1-preinstall –y

      1. It is good to do a full update, but not necessary.

      # yum update -y

      1. Set password for oracle user

      passwd oracle


      1. Set secure Linux to permissive. Edit “/etc/selinux/config” file. Make
             
      SELINUX=permissive


      1. Once this is done you have to disable your firewall if it is enabled.
      # service iptables stop
      # chkconfig iptables off

      1. Create directories where Oracle should be installed.

      Mkdir –p /u01/app/oracle/product/12.1.0.2/db_1
      Chown –R oracle:oinstall /u01
      Chmod –R 775 /u01

      1. Login as root and enter following command.
      xhost +<machine-name>

      1. Add following at the end of the "/home/oracle/.bash_profile" file.
      Export TMP=/tmp
      Export TMPDIR=$TMP
      Export ORACLE_HOSTNAME=<machin-name>.localdomain
      Export ORACLE_UNQNAME=tru
      Export ORACLE_BASE=/u01/app/oracle
      Export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
      Export ORACLE_SID=tru
      Export PATH=/usr/sbin:$PATH
      Export PATH=$ORACLE_HOME/bin:$PATH
      Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
      Export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
      1. Edit /etc/profile add following.

      export PATH=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79-2.5.5.1.0.1.el7_1.x86_64/bin:/u01/app/oracle/product/12.1.0/dbhome_1/bin:/opt/bin/eclipse/:$PATH:/opt/bin/apache-ant-1.9.0/bin:/opt/bin/:
      export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79-2.5.5.1.0.1.el7_1.x86_64
      export JRE_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79-2.5.5.1.0.1.el7_1.x86_64/jre
      #export ENDECA_TOOLS_ROOT=/opt/bin/endeca/ToolsAndFrameworks/3.1.2/
      #export ENDECA_TOOLS_CONF=/opt/bin/endeca/ToolsAndFrameworks/3.1.2/server/workspace/
      #export ENDECA_ROOT=/opt/bin/endeca/PlatformServices/6.1.3/
      #export ENDECA_CONF=/opt/bin/endeca/PlatformServices/workspace/
      #export ENDECA_REFERENCE_DIR=/opt/bin/endeca/PlatformServices/reference/
      export DYNAMO_HOME=/home/tru_user/ATG/ATG11.1/home
      export ATG_HOME=/home/tru_user/ATG/ATG11.1
      export ATG_ROOT=/home/tru_user/ATG/ATG11.1
      export DYNAMO_ROOT=/home/tru_user/ATG/ATG11.1
      export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1/
      export ORACLE_HOME_LISTNER=$ORACLE_HOME
      export ORACLE_SID=TRU
      export ORACLE_UNQNAME=TRU
      #export ECLIPSE_WS=/opt/bin/eclipse-workarea/
      #export ANT_ARGS='-logger org.apache.tools.ant.listener.AnsiColorLoggerI


      1. Log into oracle user and enter following command.
      DISPLAY=<machine-name>:0.0; export DISPLAY

      1. Start oracle installer by ./runInstaller
      2. Set password for SYS and SYSDBA to Admin123


        Issues Faced

        Unable to open display error while running oracle database installation.
      Solution:
      1. Open new terminal
      2. Enter command xhost +
      3. DISPLAY=:0.0; export DISPLAY
      4. Run the insgtaller.

      1. Unable to connect to internet while VPN connected on host machine.
      Solution:

      On settings of virtual box, go to Network section on the right hand side menu.
       Make Configuration as showed above.
       Create a second adapter with configuration shown below.2. Unable to move mouse and share clip board.
      Solution:
      i)       See if the Virtual box is updated, if not update it.
      ii)      Start the Vm on the updated Virtual Box.
      iii)     On Devices tab on the main window click on Insert Guest Additions. A CD drive will be mounted on the desktop. Click on it and run it as software.
      iv)     Restart VM.

      3. Unable to run Net Configuration Assistant (NETCA)
      Solution:
                                 I.          Edit hostname. Enter command vi /etc/hostname
                               II.          Add a name to your machine for eg: trudevvm
                              III.          Edit hosts file. Enter commant vi /etc/hosts
                              IV.          Add trudevvm against 127.0.0.1

      4. Error saying missing packages while oracle Database installation.
      Solution:
      Run command yum install oracle-rdbms-server-12cR1-preinstall –y.

      1. Connection issues while installing Oracle database
      Solution: Disable firewall.
      Enter command
      # service iptables stop
      # chkconfig iptables off

No comments:

Post a Comment