Create JAVA_HOME, point to JDK - LINUX UBUNTU

I'm trying to run an application on LINUX UBUNTU, and every time I do, it says to "make certain JAVA_HOME is pointing to a JDK and not a JRE." What does this really mean?
Jeff

Yes, I have. I think that's all set up correctly. Actually, I also had Java 1.6 installed, but when I removed 1.6, or when I try to run the "upgrade-alternatives javac" script, I get this message:
"This package is an installer package, it does not actually contain the J2SDK documentation. You will need to go download one the archives:
jdk-1.5.0-doc.zip jdk-1.5.0-doc-ja.zip
(choose the non-update version if this is the first installation)
Please visit
http://java.sun.com/j2se/1.5.0/download/html
now and download. The file should be owned by root.root and be coped to /tmp."
So... I go and download one of those files, (I actually download the one with NETBEANS) and I still can't get this to work.

Similar Messages

  • JAVA_HOME points to a JDK and not a JRE.

    Hi,
    I am using Redhat Linux 9. From root i can able to find the java -version as
    java version "1.4.2_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
    But when i run jboss_home/bin$ sh run.sh i am getting the error as follows,
    [root@arc bin]# sh run.sh
    run.sh: Missing file: /root/usr/java/j2sdk1.4.2_06/lib/tools.jar
    run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
    run.sh: line 181: /root/usr/java/j2sdk1.4.2_06/bin/java: No such file or directory
    I set Java_Home, JBOSS_HOME but why i am getting these error. Please let me know.

    Don't know nothing about JBoss but, when JBoss starts up does it switch to it's own username?, i.e not root, if it did it probably wouldn't be able to access root's home dir to get to java, as root's home dir is usually not readable by any other user, just a hunch.

  • How to create Mount Point in Linux

    Hi,
    I m new to Linux OS, want to install Oracle EBS R12 on OEL 5.6 . I have downloaded s/w and installed all required packages for OEL.
    Now i want to create Staging directory at location /u01/StageR12.
    Can anyone guide me for how to create Mount point /u01 and how to assign space of 53 GB to it.... ?
    Reply awaited...

    You're on the right path.
    Keep in mind though what you need partition wise just for o/s install. You should have at least 3 partitions:
    - a ?? GB partition for the / (root) mount (the size depends on what you will install and how much space you will need for running that s/w)
    - a 128MB or larger partition for the /boot mount
    - a ?? GB partition as swap space mount (typically rule of thumb is 2x RAM for 4GB and lower, else around 25% of total RAM)
    I would not create separate partitions for the old-style +/u01+ mount points for Oracle. That part of the OFA (Oracle Flexible Architecture) standards are old and pre-ASM and pre- automated Oracle managed data files.
    You need space for installing an Oracle Home. I do not see the need for a dedicated mount point for that. I use the root file system.
    You need space for the actual database. If you use Oracle ASM, then I would create raw partitions (across disks) to be used for database storage. These will not be mounted or formatted. Instead these will be assigned to an ASM diskgroup (and striped by default) and used for database storage.
    If you do not use ASM, then you need a cooked file system for storage of database file. In that case separate mount point(s) make sense. Also, it makes sense not to manually apply the old OFA standards, but instead use Oracle managed database files. In that case you need a single mount point (e.g.<i>/oracledb</i>) - and set that as the base directory for Oracle to use for the database. Oracle will create an OFA compliant database directory tree and files under that base directory/mount point.
    Keep in mind that the more mount points you have for the database, the more difficult your job becomes to manage storage. The easiest is a single mount point for the database and using Oracle to manage the OFA compliant side for you on that mount point.
    Also, you cannot and should not attempt some kind of manual striping layout of the database across multiple mountpoints. This may have made some sense back 10+ years ago. It no longer does.

  • How to install JDK on LINUX Ubuntu on system with no net/wireless?

    Hello!
    I need to install JDK on LINUX Ubuntu on system with no net/wireless connection.
    What are the commands?
    Thank you!
    Edited by: 800512 on 07:29 10/01/2011

    - Download your release of choice from http://www.oracle.com/technetwork/java/javase/downloads/index.html
    - Put the file on a USB thumb drive
    - Mount that drive on the target machine
    - Follow the installation instructions.
    The Linux/Ubuntu downloads of the JDK are offline installers (i.e. the downloaded file contains everything that's required). Only Windows currently has an online installer (smaller initial download, but requires a net connection for the actual installation)
    Alternatively: install the OpenJDK from the official Ubuntu packages using apt-zip (http://wiki.debian.org/AptZip).

  • [SOLVED] Why does my JAVA_HOME point to jre instead of jdk?

    I am having a strange phanomenon.
    I have jdk7-openjdk installed, but I still have
    % echo $JAVA_HOME
    /usr/lib/jvm/java-7-openjdk/jre
    This is only with my current user. When I try root or a freshly created user, I correctly get
    % echo $JAVA_HOME
    /usr/lib/jvm/java-7-openjdk
    So I guess this is caused by something in my home directory. As 'grep -r JAVA_HOME ~/.*' does not give any hints, I do not know how to investigate this further.
    Maybe someone here has any idea how to find out more.
    Last edited by cbuehler (2013-12-22 10:20:30)

    As far as I understand, the order is not important in this case, because jre.sh only overrides JAVA_HOME if it is not set before.
    I also like to avoid making configuration changes when it looks like the default config should work fine.
    But brebs' reply inspired me to run 'sh -x /etc/profile', which finally shed light into my issue:
    +++ . /home/cbuehler/Siemens/Teamcenter10.1/Visualization/bin/visviewwebinit /home/cbuehler/Siemens/Teamcenter10.1/Visualization
    ++++ '[' X_ = X_True ']'
    ++++ '[' -n /home/cbuehler/Siemens/Teamcenter10.1/Visualization ']'
    ++++ export EAI_INSTALL=/home/cbuehler/Siemens/Teamcenter10.1/Visualization
    ++++ EAI_INSTALL=/home/cbuehler/Siemens/Teamcenter10.1/Visualization
    ++++ '[' -d /usr/lib/jvm/java-7-openjdk/jre -o -h /usr/lib/jvm/java-7-openjdk/jre ']'
    ++++ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk/jre
    ++++ JAVA_HOME=/usr/lib/jvm/java-7-openjdk/jre
    I have Teamcenter Visualization installed in my home directory. And this changes my JAVA_HOME in /home/cbuehler/Siemens/Teamcenter10.1/Visualization/bin/visviewwebinit:
    # If JAVA_HOME points to the top level java directory, reset it to point to the JRE directory.
    if [ -d $JAVA_HOME/jre -o -h $JAVA_HOME/jre ]; then
        export JAVA_HOME=$JAVA_HOME/jre
    fi
    I commented this part out and now everything works fine.
    Thank you very much for your help.

  • Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto

    h1. Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
    Author: Dude
    Version: D
    Last modified: 14-Jan-2012
    You are welcome to add comments, but please do not discuss your installation issues in this thread.  If you have a question about the instructions, please add a simple note to the link of your own thread. The instructions are the result of my own research and development. If you would like to use any of the information for your own blog or website, please include a link to this reference to include future changes.
    Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
    h2. Purpose
    This document outlines instructions how to install Oracle XE under Ubuntu 11.10.
    Ubuntu or Debian based Linux is not on the list of supported operation systems according to the Oracle documentation at http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm for more information.
    h2. Topics
    h4. 1) Install Linux Ubuntu
    h4. 2) Remote Terminal
    h4. 3) Install Additional Software
    h4. 4) Managing Swap Space
    h4. 5) Modify Kernel Parameters
    h4. 6) Oracle Home Directory
    ...a) Resize the Root Partition
    ...b) Setup External Storage
    h4. 7) ORA-00845: MEMORY_TARGET
    h4. 8) Installing Oracle 11gR2 Express Edition
    h4. 9) Post-Installation
    h4. 10) Tips and Troubleshooting
    ...a) Port 1521 appears to be in use by another application
    ...b) cannot touch `/var/lock/subsys/listener': No such file or directory
    ...c) ORA-00845: MEMORY_TARGET
    ...d) Apex ADMIN password
    ...e) SYS and SYSTEM password
    ...f) Uninstall Oracle 11g XE
    ...g) Reconfigure Oracle 11g XE
    ...h) Gnome Classic desktop
    ...i) Unix vi cursor keys
    ...j) Backup Database
    h4. 11) History
    h4. 12) References
    h2. 1) Install Linux Ubuntu
    The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.
    You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand corner of the screen and selecting "Updates available..."
    h2. 2) Remote Terminal
    You will need command line access to perform the installation tasks. Select the top "Dash Home" button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To install it, use the following command:
    sudo apt-get install openssh-serverYou cannot login as root unless you set a root password using the "sudo passwd root" command. However, you can get root user access using the "sudo" command, which requires only to re-enter the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.
    The best way to establish a remote command line session as root is to login with your personal account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo <command>" to execute individual commands. If your account does not have "sudo" access you can login as root using "su - root", but will need to know the root password.
    h2. 3) Install Additional Software
    Oracle 11g Express Edition requires additional software that is not installed by default:
    sudo apt-get install alien libaio1 unixodbch2. 4) Managing Swap Space
    Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap space:
    cat /proc/meminfo | grep -i swap
    SwapCached:            0 kB
    SwapTotal:       2095100 kB
    SwapFree:        2095100 kBYou can increase available swap space by using a swap file as long as disk space permits. The advantage of a swap file versus a swap partition is flexible space management because you can add or delete swap space on demand as necessary. The following will create and enable an additional 1 GB swap file at system startup, located in the /home directory:
    Login as root:
    sudo su -Enter the following commands:
    dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576
    mkswap /home/swapfile
    swapon /home/swapfile
    swapon -aCreate a backup of the original "fstab" file and add the new swap file:
    cp /etc/fstab /etc/fstab.backup_`date +%N`
    echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstabExit from root and verify the new swap space:
    exit
    swapon -s
    Filename                    Type          Size     Used     Priority
    /dev/sda5                               partition     2095100     0     -1
    /home/swapfile                          file          1048572     0     -2Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system to move idle processes to disk before the OOM killer will begin to terminate processes in order to free up enough real memory to keep the system operational. The general rule for sizing the swap space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap space should usually be at least twice this size. If you have more than 8 GB of RAM installed you may consider to use an equal size as swap space. The more RAM you have installed, the less likely you are going to run into memory starvation, and the less likely you are going to need swap space, unless you have a bad process.
    h2. 5) Modify Kernel Parameters
    Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands exactly as shown:
    Login as root:
    sudo su -Cut & paste the following directly into a command shell (not a text editor):
    cat > /etc/sysctl.d/60-oracle.conf <<-EOF
    # Oracle 11g XE kernel parameters
    fs.file-max=6815744
    net.ipv4.ip_local_port_range=9000 65500
    kernel.sem=250 32000 100 128
    # kernel.shmmax=429496729
    kernel.shmmax=107374183
    EOFLoad and verify the new kernel parameters:
    service procps start
    sudo sysctl -q fs.file-max
    sudo sysctl -q kernel.shmmax
    sudo sysctl -q net.ipv4.ip_local_port_range
    sudo sysctl -q kernel.sem The SHMMAX kernel parameter defines the upper memory limit of a process. It is a safeguard to stop a bad process from using all memory and causing RAM starvation. The Linux default is 32 MB. The official Oracle XE installation documentation suggests a value of 4 GB -1 bytes (429496729). Since Oracle 11g XE has a 1 GB memory limit, a smaller footprint will be a better safeguard for the complete system. Setting the SHMMAX parameter to 107374183 will be sufficient.
    h2. 6) Oracle Home Directory
    At the time of this writing, Enterprise Linux 6 is not supported for Oracle database yet. It is therefore not possible to confirm Oracle ext4 filesystem compatibility, which is default in Ubuntu 11. According to various information, ext4 may cause a performance problem for Oracle 11g database. The following will show you how to add a ext3 partition to your existing setup.
    h3. 6.a) Resize the Root Partition
    Provided you have sufficient free disk space, you should be able to resize the root partition to create an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB should be more than enough.
    You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD, pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be a few prompts when the system starts from the CD, but you can press Return to accept the defaults.
    When the Gparted window appears:
    - Select your ext4 root partition, usually /dev/sda1
    - Select the "Resize/Move" button from the toolbar.
    - Enter 18000 into the "Free space following" field and press the Return key.
      Be careful not not change the start of the partition!
    - Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button.
      The process may take several minutes - do not abandon it!
    - Select the new unallocated free space of ~ 18 GB and push the "New" button.
    - Set the file system to "ext3" and label it "oraclexe" and click the "Add" button.
      Be sure to label it oraclexe, otherwise the follow-up instructions will fail.
    - Finally select "Apply from the toolbar to apply the changes.
    - Quit "Gparted", select "Exit" from the desktop and choose "Reboot" to restart the system.
    {code}
    After the system has restarted, open a terminal command shell.
    Login as root:
    {code}
    sudo su -
    {code}
    Backup "fstab" and add the UUID of the partition. The "tr" command remove the quotes:
    {code}
    cp /etc/fstab /etc/fstab_`date +%N`
    uuid=`blkid | grep oraclexe | awk '{print $3}'`
    uuid=`echo $uuid | tr -d '\042'`
    echo $uuid
    echo "$uuid  /u01  ext3  errors=remount-ro 0 1" >> /etc/fstab
    {code}
    The UUID is a unique number and should look similar to:
    {code}
    UUID=d1db753e-b5dd-4a4c-a61e-259c69867b58
    {code}
    Restart the system:
    {code}
    reboot
    {code}
    Verify the success:
    {code}
    df -h /u01
    {code}
    h3. 6.b) Setup External Storage
    If you prefer to setup an external drive to install Oracle XE, beware that it can be a fatal mistake to make an entry in /etc/fstab to automount your external storage device.  An unavailable device in /etc/fstab will prevent a system startup and prompt for appropriate actions at the console.
    The following is an example of how to prepare an external storage device to be used for Oracle 11g, including a script to automatically mount an external drive at system startup without the disadvantages of /etc/fstab. The script will also take into consideration that a device name might shift if you attach additional devices.
    To find out which USB devices are connected:
    {code}
    sudo parted -l
    {code}
    Look for the device that matches your USB storage. For example: /dev/sdb1
    {code}
    Model: USB 2.0 Flash Disk (scsi)
    Disk /dev/sdb: 2064MB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Number  Start   End     Size    File system  Name     Flags
    1      20.5kB  1929MB  1929MB  hfs+         mystick
    {code}
    Initialize the device using ext3 filesystem - this will erase all data. The "-c" option will check for bad blocks (read-only), "-L" is the volume label:
    {code}
    sudo umount /dev/sdb1
    sudo mkfs.ext3 -c -L oraclexe /dev/sdb1
    {code}
    Install the pmount distribution package:
    {code}
    sudo apt-get install pmount
    {code}
    Login as root:
    {code}
    sudo su -
    {code}
    Cut & paste the following into the command prompt (not a text editor):
    {code}
    cat > /etc/init.d/oracle-mount <<-EOF
    #! /bin/sh
    # /etc/init.d/oracle-mount
    VOL_UUID=alphanumeric
    VOL_LABEL=oraclexe
    VOL_SYMLINK=/u01
    mount=/usr/bin/pmount
    uuid2dev() {
       VOL_DEVICE="\`blkid | grep \$VOL_UUID | awk '{print \$1}'\`"
       VOL_DEVICE="\`echo \$VOL_DEVICE | tr -d ':'\`"
       echo \$VOL_DEVICE
    case "\$1" in
      start)
        echo "Starting script /etc/init.d/oracle-mount"
        uuid2dev
        \$mount \$VOL_DEVICE \$VOL_LABEL
        if [ -d /media/\$VOL_LABEL ]; then
           echo "Mount \$VOL_DEVICE success"
           ln -sf /media/\$VOL_LABEL \$VOL_SYMLINK
        else
           echo "Error mouting \$VOL_DEVICE"
        fi
      stop)
        echo "Stopping script /etc/init.d/oracle-mount"
        uuid2dev
        /bin/umount \$VOL_DEVICE 2>/dev/null
        if [ "\`/usr/bin/pmount | /bin/grep \$VOL_DEVICE\`" ]; then
           echo "Error unmounting \$VOL_DEVICE"
        else
           rm -f \$VOL_SYMLINK
        fi
        echo "Usage: /etc/init.d/oracle-u01 {start|stop}"
        exit 1
    esac
    ### BEGIN INIT INFO
    # Provides:          oracle-mount
    # Required-Start:    \$remote_fs \$syslog
    # Required-Stop:     \$remote_fs \$syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start daemon at boot time
    # Description:       Mount hotplug-usb drive and create symlink
    ### END INIT INFO
    EOF
    {code}
    Install the oracle-mount init script:
    {code}
    chmod 755 /etc/init.d/oracle-mount
    update-rc.d oracle-mount defaults 01 99
    {code}
    Get the UUID of the volume "oraclexe" and update the VOL_UUID in the init script accordingly:
    {code}
    uuid=`blkid | grep oraclexe | awk '{print $3}'`
    echo $uuid
    sed -i "s/^VOL_UUID=.*/VOL_$uuid/g" /etc/init.d/oracle-mount
    {code}
    The UUID of your device will be a unique number, but should be similar to:
    {code}
    UUID="3f5e9963-b328-49f3-b3e8-a3561ae34106"
    {code}
    Logout of root and test the init script:
    {code}
    exit
    sudo /etc/init.d/oracle-mount stop
    ls /u01
    sudo /etc/init.d/oracle-mount start
    ls /u01
    {code}
    Your output should look like:
    {code}
    Stopping script /etc/init.d/oracle-mount
    /dev/sdb1
    ls: cannot access /u01: No such file or directory
    Starting script /etc/init.d/oracle-mount
    /dev/sdb1
    Mount /dev/sdb1 success
    lost+found
    {code}
    h2. 7) ORA-00845: MEMORY_TARGET
    Oracle 11gR2 XE under Ubuntu 11.10 will result in "ORA-00845: MEMORY_TARGET not support on this system" either at Oracle database startup or during the initial installation. Ubuntu 11.10 uses a new version of the "systemd" system and session manager and has migrated away from /dev/shm and other common directories in favor of /run.
    There are several ways how to address the problem. You can either enable /dev/shm shared memory, or change the default memory management of Oracle 11g from AMM (Automatic Memory Management) to ASMM (Automatic Shared Memory Management) as it was in used the previous 10g version. Since AMM is one of the new features of 11g, the following will show you how to make to make AMM work.
    Login as root:
    {code}
    sudo su -
    {code}
    Cut & paste the following into the command prompt (not a text editor):
    {code}
    cat > /etc/init.d/oracle-shm <<-EOF
    #! /bin/sh
    # /etc/init.d/oracle-shm
    case "\$1" in
      start)
        echo "Starting script /etc/init.d/oracle-shm"
        # Run only once at system startup
        if [ -e /dev/shm/.oracle-shm ]; then
          echo "/dev/shm is already mounted, nothing to do"
        else
          rm -f /dev/shm
          mkdir /dev/shm
          mount -B /run/shm /dev/shm
          touch /dev/shm/.oracle-shm
        fi
      stop)
        echo "Stopping script /etc/init.d/oracle-shm"
        echo "Nothing to do"
        echo "Usage: /etc/init.d/oracle-shm {start|stop}"
        exit 1
    esac
    ### BEGIN INIT INFO
    # Provides:          oracle-shm
    # Required-Start:    $remote_fs $syslog
    # Required-Stop:     $remote_fs $syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Bind /run/shm to /dev/shm at system startup.
    # Description:       Fix to allow Oracle 11g use AMM.
    ### END INIT INFO
    EOF
    {code}
    Install the oracle-shm init script:
    {code}
    chmod 755 /etc/init.d/oracle-shm
    update-rc.d oracle-shm defaults 01 99
    {code}
    Restart the system:
    {code}
    reboot
    {code}
    Verify the success:
    {code}
    sudo cat /etc/mtab | grep shm
    {code}
    {code}
    none /run/shm tmpfs rw,nosuid,nodev 0 0
    /run/shm /dev/shm none rw,bind 0 0
    {code}
    The upper limit of shared memory under Linux is set to 50 % of the installed RAM by default. If your system has less than 2 GB of RAM installed, there is still a chance to run into ORA-00845 error if your shared memory is used by other software.
    The verify available shared memory, type the following commands:
    {code}
    sudo df -h /run/shm
    {code}
    h2. 8) Installing Oracle 11gR2 Express Edition
    The final release version of Oracle 11gR2 Express Edition can be downloaded for free at http://otn.oracle.com/database/express-edition/downloads. The software should automatically downloaded into the "Downloads" folder of your home directory.
    Enter the following commands to unpack the installer:
    {code}
    cd ~/Downloads
    unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
    rm oracle-xe-11.2.0-1.0.x86_64.rpm.zip
    {code}
    The Debian Linux based package management of Ubuntu is not compatible with the Red Hat package manager. The Oracle installer needs to be converted using the following commands:
    {code}
    cd ~/Downloads/Disk1
    sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
    (This may take a few minutes)
    rm oracle-xe-11.2.0-1.0.x86_64.rpm
    {code}
    The following needs to be set for compatibility:
    {code}
    sudo ln -s /usr/bin/awk /bin/awk
    sudo mkdir /var/lock/subsys
    {code}
    Ubuntu uses different tools to manage services and system startup scripts. The "chkconfig" tool required by the Oracle installer is not available in Ubuntu. The following will create a file to simulate the "chkconfig" tool.
    Login as root:
    {code}
    sudo su -
    {code}
    Copy & paste the following *directly* into the command prompt to create a file:
    {code}
    cat > /sbin/chkconfig <<-EOF
    #!/bin/bash
    # Oracle 11gR2 XE installer chkconfig hack for Debian based Linux (by dude)
    # Only run once.
    echo "Simulating /sbin/chkconfig..."
    if [[ ! \`tail -n1 /etc/init.d/oracle-xe | grep INIT\` ]]; then
    cat >> /etc/init.d/oracle-xe <<-EOM
    ### BEGIN INIT INFO
    # Provides:                  OracleXE
    # Required-Start:        \\\$remote_fs \\\$syslog
    # Required-Stop:        \\\$remote_fs \\\$syslog
    # Default-Start:            2 3 4 5
    # Default-Stop:            0 1 6
    # Short-Description:   Oracle 11g Express Edition
    ### END INIT INFO
    EOM
    fi
    update-rc.d oracle-xe defaults 80 01
    EOF
    {code}
    Exit root:
    {code}
    exit
    {code}
    Set execute privileges:
    {code}
    sudo chmod 755 /sbin/chkconfig
    {code}
    Install Oracle 11gR2 Express Edition entering the following commands:
    {code}
    cd ~/Downloads/Disk1
    sudo dpkg --install ./oracle-xe_11.2.0-2_amd64.deb
    (This may take a couple of minutes)
    {code}
    Run the configuration script to create (clone) the database and follow the screen. Accept the default answers, including "y" to startup the database automatically, or modify as required.
    {code}
    sudo /etc/init.d/oracle-xe configure
    (This can take a few minutes - the installation completed successfully.)
    {code}
    To verify success, the procedure should end showing:
    {code}
    Starting Oracle Net Listener...Done
    Configuring database...Done
    Starting Oracle Database 11g Express Edition instance...Done
    Installation completed successfully.
    {code}
    Set a password for the Oracle account:
    {code}
    sudo passwd oracle
    {code}
    h2. 9) Post-Installation
    In order to use sqlplus and other tools, the Oracle account requires specific environment variables. The following will set these variables automatically at every Oracle login:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Copy the default account skeleton files and add the Oracle env script to .profile:
    {code}
    cp /etc/skel/.bash_logout ./
    cp /etc/skel/.bashrc ./
    cp /etc/skel/.profile ./
    echo "" >>./.profile
    echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
    {code}
    By default, the Oracle Database XE graphical user interface is only available at the local server, but not remotely. The following will enable remote logins:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and execute the following:
    {code}
    sqlplus / as sysdba
    SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    exit
    {code}
    See http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm for more information.
    h3. a) Unity desktop configurations
    The Oracle XE menu under the previous Gnome Classic desktop shows several useful scripts to backup the database, start and stop the database, etc. Under the Unity based desktop this menu is not available. You can either switch to the Gnome Classic desktop as outlined in chapter 2, or perform the following steps to modify and copy the scripts as outlined below. The start and stop database scripts will also be modified to perform a progress feedback.
    Login as user root:
    {code}
    sudo su -
    {code}
    Convert desktop files:
    {code}
    cd /usr/share/applications
    sed -i 's/Categories.*/Categories=Database;Office;Development;/g' oraclexe*
    sed -i 's/MultipleArgs/X-MultipleArgs/g' oraclexe*
    sed -i 's/MimeType.*/MimeType=application\/x-database/g' oraclexe*
    sed -i 's/.png//g' oraclexe*
    sed -i 's/Terminal=false/Terminal=true/g' oraclexe-startdb.desktop
    sed -i 's/Terminal=false/Terminal=true/g' oraclexe-stopdb.desktop
    {code}
    Exit root:
    {code}
    exit
    {code}
    Login as user Oracle:
    {code}
    su - oracle
    {code}
    Modify database start and stop scripts:
    {code}
    cd /u01/app/oracle/product/11.2.0/xe/config/scripts
    cp startdb.sh start.sh_orig
    cp stopdb.sh stopdb.sh_orig
    sed -i 's/>.*//g' startdb.sh
    sed -i 's/>.*//g' stopdb.sh
    {code}
    You will need SYSDBA privileges and set Oracle environment variables in order to use your regular user account.
    Login to your regular user account:
    {code}
    su - dude
    {code}
    Enter the folowing command:
    {code}
    sudo usermod -a -G dba dude
    {code}
    Then update your profile to automatically set the necessary Oracle environment variables:
    {code}
    echo "" >>./.profile
    echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
    {code}
    Update your Desktop folder to contain useful Oracle XE scripts:
    {code}
    cp /usr/share/applications/oraclexe* ~/Desktop
    chmod 750 ~/Desktop/oraclexe*
    {code}
    To verify success re-login and try "sqlplus":
    {code}
    su - oracle
    sqlplus / as sysdba
    {code}
    h2. 10) Tips and Troubleshooting
    h3. 10. a) Port 1521 appears to be in use by another application
    Error: Port 1521 appears to be in use by another application. Specify a different port.This error happens after a previously unsuccessful configuration attempt using /etc/init.d/oracle-xe configure script. The script was able to start the Listener process, but most likely failed to continue  to clone the database, e.g. ORA-00845. The following should correct the problem:
    Determine the oracle listener process that is already running:
    {code}
    $ ps -ef | grep oracle
    {code}
    Your output should be similar to:
    {code}
    oracle   19789     1  0 19:46 ?        00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr
    {code}
    Then kill the process, using the appropriate process id, for instance:
    {code}
    $ sudo kill -9 19789
    {code}
    h3. 10.b) cannot touch `/var/lock/subsys/listener': No such file or directory
    Starting Oracle Net Listener...touch: cannot touch `/var/lock/subsys/listener': No such file or directoryThis error occurs when you run /etc/init.d/oracle-xe configure, but failed the preinstallation step to create the /var//lock/subsys directory as outlined in chapter 8.
    h3. 10.c) ORA-00845: MEMORY_TARGET
    ORA-00845: MEMORY_TARGET not supported on this system See chapter 7 to enable /dev/shm and verify free space available in /run/shm
    h3. 10.d) Apex ADMIN password
    According to the Oracle documentation, the password for the INTERNAL and ADMIN Oracle Application Express user accounts is initially the same as the SYS and SYSTEM administrative user accounts. Well, I tried several times without success. To reset the Apex Admin password:
    Login as user oracle:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following:
    {code}
    sqlplus / as sysdba
    {code}
    At the SQL prompt, type the following to be prompted to change the password:
    {code}
    SQL> @?/apex/apxxepwd.sql
    exit
    {code}
    When done, open your browser and go to http://127.0.0.1:8080/apex
    Workspace: Internal
    Username: ADMIN
    Password: password you set with apxxepwd.sql
    I will prompt you to reset the password:
    old password: password you set with apxxepwd.sql
    new password: final_password
    You can also login as the Apex Admin using http://127.0.0.1:8080/apex/apex_admin
    h3. 10.e) SYS and SYSTEM password
    Use the following commands to reset the SYS and SYSTEM passwords if necessary:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following at the SQL prompt:
    {code}
    sqlplus / as sysdba
    SQL> alter user sys identified by "password" account unlock;
    SQL> alter user system identified by "password" account unlock;
    SQL> exit
    {code}
    h3. 10.f) Uninstall Oracle 11g XE
    The following will completely uninstall and remove Oracle 11g XE:
    Open a terminal seesion and login as user root:
    {code}
    sudo su -
    {code}
    Enter the following:
    {code}
    /etc/init.d/oracle-xe stop
    dpkg --purge oracle-xe
    rm -r /u01/app
    rm /etc/default/oracle-xe
    update-rc.d -f oracle-xe remove
    update-rc.d -f oracle-mount remove
    update-rc.d -f oracle-shm remove
    {code}
    h3. 10.g) Reconfigure Oracle 11g XE
    Type the following commands in a terminal window:
    {code}
    sudo /etc/init.d/oracle-xe stop
    sudo rm /etc/default/oracle-xe
    sudo /etc/init.d/oracle-xe configure
    {code}
    h3. 10.h) Gnome Classic desktop
    Ubuntu 11 moved from the Gnome Classic desktop to Unity and removed the "Ubuntu Classic" login option. Unity was designed to make more efficient use of space given a limited screen size and touch screens. If you prefer to use the Gnome Classic desktop, enter the following into a terminal window:
    {code}
    sudo apt-get install gnome-panel
    {code}
    To log into the Gnome Classic desktop, select the "Gearwheel" at the login screen and select "Gnome Classic".
    h3. 10.i) Unix vi cursor keys
    The instructions in this tutorial do not require the use of any text editor. However, if you would like use the backspace and cursor keys in the "vi-editor", the following needs to be installed:
    {code}
    sudo apt-get install vim
    {code}
    h3. 10.j) Backup Database
    In order to perform an online database backup using the supplied "Backup Database" script, the database needs to run in Archive-Log mode. This can be setup using the following commands:
    Login as the Oracle user:
    {code}
    su - oracle
    {code}
    Login as SYSDBA and type the following:
    {code}
    sqlplus / as sysdba
    SQL> shutdown immediate
    SQL> startup mount
    SQL> alter database archivelog;
    SQL> alter database open;
    SQL> exit
    {code}
    h2. 11) History
    Version: A, 24-Oct-2011
    - first release
    Version: B, 25-Oct-2011
    - reduced instructions.
    - corrected errors in 6a and 8.
    - new strategy addressing ORA-00845 error.
    - rework of chapter 10.
    Version: C, 30-Nov-2011
    - corrected typo in 6a
    - new procedures in 9a.
    - added progress feedback to database scripts.
    Version D, 14-Jan-2012
    - corrected presentation errors.
    - reorganized instructions.
    h3. 12) References
    http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm
    http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run
    http://lwn.net/Articles/436012/
    https://forums.oracle.com/forums/thread.jspa?threadID=2300750&tstart=0
    Kind regards and best of luck!
    Dude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Excellent Blog. Thank You
    Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
    Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
    Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
    and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
    I hope this minor clarification can avoid some confusion
    Regards
    Madhusudhan Rao
    Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM

  • Installing java ee sdk (java_ee_sdk-6u1-jdk-linux-x64.sh) on x64 linux

    Hello guys, this is my first post here :) so don't bash me too much.
    Trying to get the Java EE installed on gentoo linux x86-64 here. Downloaded java_ee_sdk-6u1-jdk-linux-x64.sh from oracle.com.
    I have tried different jres:
    32 bit, 64 bit.
    now I have this jre :
    ak@pussy ~/0.java $ java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)so, doing ak@pussy ~/0.java $ ./java_ee_sdk-6u1-jdk-linux-x64.sh gives me nasty file not found exception & hence I can't get sdk installed:
    [#|2010-08-04T20:32:13.704+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=glassfish|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:13.781+06:00|INFO|Install Engine|org.openinstaller.provider.conf.ConfiguratorFactory|arg0=class org.openinstaller.provider.conf.InstallationConfigurator|LOG_INFO:Info|#]
    [#|2010-08-04T20:32:14.210+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring GlassFish:\[Unconfiguring GlassFish\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.232+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=jdk|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.264+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring JDK:\[Unconfiguring JDK\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.289+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=updatetool|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.318+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring Updatetool:\[Unconfiguring Updatetool\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.319+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Installation directory: /home/ak/0.java/glassfishv3:\[Installation directory: /home/ak/0.java/glassfishv3\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.322+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Shutting down notifier process:\[Shutting down notifier process\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.353+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:509)
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:423)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Context-Items=[[method=org.openinstaller.util.ExecuteCommand.execute(), operation=EXECUTECMD_ERR, command=[/home/ak/0.java/glassfishv3/updatetool/bin/updatetool, --notifier, --shutdown]]]:\[Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    .and so on

    I guess this should give more details about issues I am having :
    Using the user defined JAVA_HOME : /home/ak/0.java/jre1.6.0_21_64
    Entering setup...
    WARNING: Warning: Could not detect OS Architecture, falling back to os.arch [Architecture=GenuineIntel ]
    FINE: completed initializing provider svc://general/orchestrator
    FINEST: Ignoring blank answer file or syntax error in ,file:///tmp/install.080510113914/install.properties
    FINEST: BGImagePanel() called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINEST: BGImagePanel.setBgImage(Image BufferedImage@1c5d9084: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@42bad8a8 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 728 height = 435 #numDataElements 3 dataOff[0] = 2) called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINE: DISCOVERING_SERVICE_PROVIDERS
    FINE: Not instantiating null - not a ServiceProvider
    Exception=null
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.core.Orchestrator.findServiceProviders(Orchestrator.java:763)
    at org.openinstaller.core.Orchestrator.main(Orchestrator.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(null:?)
    at sun.reflect.NativeMethodAccessorImpl.invoke(null:?)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:?)
    at java.lang.reflect.Method.invoke(null:?)
    at org.openinstaller.core.EngineBootstrap.main(EngineBootstrap.java:208)
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: DISCOVERED_SERVICE_PROVIDERS
    FINE: completed initializing provider svc://general/system
    FINE: completed initializing provider svc://general/name
    FINE: completed initializing provider svc://general/product
    FINEST: Initializing configuration provider
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINE: completed initializing provider svc://general/task
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: Mode-Request data: EngineConfigCommand{ cmd=GET_CONFIG, data=DRY_RUN_FILE}] By: [org.openinstaller.provider.sims.SIMSProvider.init(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: EngineConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PLATFORM_PLUGIN_PATH}] By: [org.openinstaller.provider.platform.SystemInterface.init(*)
    FINE: completed initializing provider svc://general/operation
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ModeRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PKG_FORMAT}] By: [org.openinstaller.sims.BackendFactory.discoverBackend(*)
    FINE: LOADING_CLASS
    FINE: Can't load SIMS backend org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    Exception=org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.sims.BackendFactory.getBackendByClass(BackendFactory.java:146)
    at org.openinstaller.sims.BackendFactory.discoverBackend(BackendFactory.java:112)
    at org.openinstaller.sims.BackendFactory.getBackend(BackendFactory.java:80)
    at org.openinstaller.sims.SIMSContext.<init>(SIMSContext.java:131)
    at org.openinstaller.provider.sims.SIMSProvider.init(SIMSProvider.java:95)
    at org.openinstaller.bus.ControlBus$1.run(ControlBus.java:192)
    at java.lang.Thread.run(null:?)
    ]

  • How to delete linux/ubuntu from mac?

    Please help I dont know what else to do I have tried everything. Everytime I try to delete it through bootcamp I get a message saying, "The disk is not journaled. You must enable journaling using Disk Utility before using the Boot Camp Assistant." And I have tried doing it in disk utility too. None of it will get rid of the particion. I really need to delete it because I need the space. Thanks for any help.

    Ok, you got a dual boot setup, you must of have used Bootcamp to create the partition and then installed Linux in there instead of Windows.
    First thing to remmeber is Linux reformatted the partition to EXT when it installed.
    Mac's can't read that format or even acknowledge it exists.
    Second it's likely a sub partition called Linux Swap was also created as this is how Linux handles excess memory needs, by swapping the contents to a seperate partition for security.
    It's possible this sub-partiton is under the main partition, so dealing with the main Linux partition should hopefully remove it in Step #4, else #2 or #3 will do it.
    Step 1
    The first order of business is your going to have to get a copy of your User file folders (Music, Documents, Pictures etc) out of OS X and onto a external hfs journaled (Disk Utility) formatted drive (not TimeMachine!) and disconnect this drive. (and any other drives as well so there are no mistakes)
    You should also make a note of anything like serial numbers, email addreses or other things that are very important as you might be having to erase and reformat the entire drive and reinstalling OS X.
    Note: Always keep a two copies of your vital data at all times.
    Step 2
    The absolute best method. If you have another blank external powered drive (not the one with your backup of files) then download the free to use Carbon Copy Cloner and simply clone (use the default settings for now) your OS X 10.6 to the external drive.
    When that's finished you can hold the option key and boot the computer from it. Now your happy.
    You can use Disk Utility on the clone to erase and format the entire drive, GUID partition map, HFS+ journaled and simply CCC back onto the internal drive.
    Reboot and run ALL of OnyX's maintainence and cleaning aspects and reboot. Zoom
    http://www.titanium.free.fr/
    Step 3:
    Not the best method, but works, hold c and boot off the 10.6 installer disk, select Disk Utility and Erase the whole drive format hfs+ journaled and quit, reinstall OS X, Software Update, install programs from fresh sources and finally files from backup back into their respective folders like before (not Library, leave that alone)
    When you enter the hard drive name, use the same name as before, when you go through setup, use the same username as before. This is important or you lose your pathnames to your iTunes music file locations and wind up with a bunch of exclamation points.
    Step 4
    A chance this might work and save yourself some work and be experimental before trying the Step 3 above. Go to Disk Utility and select the Linux partition, rename it BOOTCAMP and change the partition to MSDOS and let it rip. Then enter Bootcramps and see if it recognizes it and allows you to unpartiton it.
    If it works then the 2 and 3 steps are obviously not needed, but #2 is advised as a bootable backup method in addition or surplanting TimeMachine as TM drives  are NOT bootable.

  • Oracle 10g R2 for Linux ubuntu

    Hi,
    is it possible to install Oracle 10g R2 on Linux ubuntu ?
    If yes :
    from here :
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    which one
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86-64
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux Itanium
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux on Power
    Many thanks.

    Please note that this is 10g, and the UI has no support for Ubuntu/Debian.
    To get 10g to install, you need to create the file /etc/redhat-release, and put some redhat-string in there...
    oracle@c-3po:~$ uname -a
    Linux c-3po 2.6.28.8 #2 SMP Tue Mar 17 13:03:16 CET 2009 x86_64 GNU/Linux
    oracle@c-3po:~$ cat /etc/debian_version
    5.0.4
    oracle@c-3po:~$ cat /etc/redhat-release
    Red Hat Linux release 3.1 (drupal)
    oracle@c-3po:~$ cat /etc/issue
    Debian GNU/Linux 5.0 \n \l
    oracle@c-3po:~$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Nov 29 12:59:40 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Version, you probably want one of these,
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86
    Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86-64
    depending on if you have a 32- or 64-bit version of Ubuntu installed...

  • How to create Beehive enabled domain on Linux

    Hello
    I am attempting to create a WLS domain on Linux which can host an application which uses Beehive controls. The documentation says that it should be possible to create a domain which is beehive enabled. But i have not been able to find such a template when running config.sh to create a domain on Linux. Any clues on what i am missing. I am using WLS 9.2
    Thanks
    Ramdas

    I tested Skype for Ubuntu and it works. Here's how I did it:I pressed Ctrl+Shift+u (an underline u should appear)Then I typed 00e7 and I got underlined u00e7Finally, I pressed Enter after that u00e7 was converted to çThere is how I typed "cédille": ps. Please note 00e7 is code for ç, but not for é (which have code 00e9). See here the list of Unicode characters https://en.wikipedia.org/wiki/List_of_Unicode_characters

  • Oracle Coherence 3.7.1, It's  always creating a new cluster in linux m/c.

    Hi ,
    I am facing an issue with Oracle Coherence 3.7.1 in linux m/c , where it’s always creating a new cluster, even if I start a new member provided with same cluster name as argument. -Dtangosol.coherence.cluster=name
    It’s not joining the existing cluster , it’s always creating a new cluster with same name in Linux m/c.
    But when I tried the same thing in windows m/c , it working fine , even If I start N number cache server’s it joining the same cluster as one more member.
    Please someone help me, why it’s always creating a new cluster in linux m/c with same name ? why new VM’s are not joining the existing cluster? , Is there anything extra setup I need to do for Linux m/c.
    Thanks in Advance.
    <coherence>
    <cluster-config>
    <member-identity>
    <cluster-name>My_cluster</cluster-name>
    </member-identity>
    </cluster-config>
    <configurable-cache-factory-config>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
    </init-param>
    </init-params>
    </configurable-cache-factory-config>
    </coherence>
    12-10-01 10:20:06.544/0.420 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2012-10-01 10:20:06.608/0.484 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2012-10-01 10:20:06.609/0.485 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/MyAppCache/lib/MyAppCoherenceCache.jar!/tangosol-coherence-override.xml"
    2012-10-01 10:20:06.613/0.489 Oracle Coherence 3.7.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.1.0 Build 27797
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2012-10-01 10:20:06.831/0.707 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/data/Informatica/nas/sdgshared/MyApputils/coherence/MyAppCache/config/coherence-cache-config.xml"; this document does not refer to any schema definition and has not been validated.
    2012-10-01 10:20:07.328/1.204 Oracle Coherence GE 3.7.1.0 <D4> (thread=main, member=n/a): TCMP bound to /10.176.4.105:8088 using SystemSocketProvider
    2012-10-01 10:20:10.711/4.587 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "MyCache_cluster" with Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=16, SocketCount=4) UID=0x0AB004690000013A1CE9ADE5AD531F98
    2012-10-01 10:20:10.713/4.589 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Started cluster Name=MyCache_cluster
    Group{Address=224.3.7.0, Port=37000, TTL=4}
    MasterMemberSet(
    ThisMember=Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    OldestMember=Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=1
    Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    MemberId|ServiceVersion|ServiceJoined|MemberState
    1|3.7.1|2012-10-01 10:20:10.711|JOINED
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2012-10-01 10:20:10.736/4.612 Oracle Coherence GE 3.7.1.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2012-10-01 10:20:10.918/4.794 Oracle Coherence GE 3.7.1.0 <D5> (thread=DistributedCache:HBaseMyCache, member=1): Service HBaseMyCache joined the cluster with senior service member 1
    2012-10-01 10:20:10.942/4.818 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=1):
    Edited by: user10092089 on Oct 2, 2012 8:35 AM

    Hi,
    For unicast, you need to define the override file as under:
    <?xml version='1.0'?>
    <coherence>
         <cluster-config>
              <member-identity>
                   <cluster-name system-property="tangosol.coherence.cluster">LPACache_cluster</cluster-name>
              </member-identity>
              <unicast-listener>
                  <well-known-addresses>
                   <socket-address id="1">
                       <address system-property="tangosol.coherence.wka1">coherence-node1-ip</address>
                       <port system-property="tangosol.coherence.wka1.port"> coherence-node1-port</port>
                   </socket-address>
                   <socket-address id="2">
                       <address system-property="tangosol.coherence.wka2"> coherence-node2-ip </address>
                       <port system-property="tangosol.coherence.wka2.port"> coherence-node2-port</port>
                   </socket-address>
                  </well-known-addresses>
              <port-auto-adjust system-property="tangosol.coherence.localport.adjust">false</port-auto-adjust>
              </unicast-listener>
         </cluster-config>
         <configurable-cache-factory-config>
               <class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
               <init-params>
                  <init-param>
                      <param-type>java.lang.String</param-type>
                      <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
                  </init-param>
              </init-params>
        </configurable-cache-factory-config>   
        <logging-config>
               <severity-level system-property="tangosol.coherence.log.level">5</severity-level>
               <character-limit system-property="tangosol.coherence.log.limit">0</character-limit>
        </logging-config>
    </coherence>Use the property -Dtangosol.coherence.localhost=coherence-node1-ip and -Dtangosol.coherence.localport=coherence-node1-port for coherence server1 and -Dtangosol.coherence.localhost=coherence-node2-ip and -Dtangosol.coherence.localport=coherence-node2-port for Coherence server 2. Once you start the servers with these changes, you should not see the below message:
    Group{Address=224.3.7.0, Port=37000, TTL=4}
    HTH
    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I create an FSDIAG file on Linux systems?

    QuestionHow do I create an FSDIAG file on Linux systems?
    AnswerTo create an FSDIAG file for the Linux Security product:
    Go to a working directory to which the fsdiag.tar.gz file will be created.
    Run the following command:
    # /opt/f-secure/fsav/bin/fsdiag
    Note: Any existing FSDIAG file will be overwritten.
    You will find the fsdiag.tar.gz file on the current working directory. Attach this file to your support request.
    To create an FSDIAG file for the Internet Gatekeeper (IGK) product:
    Create the diagnostic information file (diag.tar.gz) in the product install directory by running the following command:
    - IGK (Japanese 4.x): # cd /home/virusgw; make diag
    - IGK (English 4.x or English/Japanese 5.x): # cd /opt/f-secure/fsigk; make diag
    Note: Any existing FSDIAG file will be overwritten.
    Attach this file to your support request.
    Note that you can also create the diagnostic file by using the Web UI.

    An .srt is simply a plain text file with sequence numbers, time markers, and captions. You can use any text editor to make one. Follow the pattern:
    1
    00:00:00,500 --> 00:00:04,500
    So it was with my formal education
    as well.
    2
    00:00:04,600 --> 00:00:08,250
    Each weekday, while my father worked
    on his Sunday sermon...
    3
    00:00:08,300 --> 00:00:10,000
    I attended the school
    of the Reverend Maclean.
    The first number (e.g., 00:00:00,500) in each pair indicates when the caption starts. The second number (e.g., 00:00:04,500) in each pair indicates when the caption stops.
    If you're going to be captioning many videos, consider an application that merges a text editor and video preview window. Jubler (http://www.jubler.org/) is one.

  • How to run Adobe Reader on Linux Ubuntu? [was:Which progam ?]

    I have installed linux ubuntu and have downloaded adobe reader . But I am not sure which program to use to open it , can anyone help ?

    Ah. You don't select a program, because it is the program (just like an EXE in Windows). See http://askubuntu.com/questions/221416/how-to-install-adobe-reader-bin-download-from-adobe

  • How to create restore point in windows server 2008 service pack1

    hi i am bhaskar ... how to create restore point in windows server 2008 service pack1 and how to restore system from a restore point in windows server 2008 service pack1.. is this option available or not ? what is the difference between shadow copies and
    restore point ? instead of restore point we have this shadow copies option in windows server 2008 ?Bhaskar

    AFIK, Restore Points doesn’t exist in Windows 2008.
    Volume Shadow Copy option can be used to achieve:
    Creating consistent backups of open files and applications
    Creating shadow copies for shared folders
    Creating transportable shadow copies using a hardware provider — for backup, testing and data mining scenarios
    Quickly recovering and restoring files and data
    It is more like a file, data, application backup. 
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX
    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
    This posting is provided AS IS with no warranties, and confers no rights.

  • J2SE v 1.4.2_04 SDK on Linux (ubuntu) install problem

    I've seen this question posted on this forum a number of times but no-one seems to know the answer. I would love an answer to this as have already spent far too much time trying to sort it out.
    I am trying to install the j2me mobile development kit: J2SE v 1.4.2_04 SDK with NetBeans 3.6 Bundle, on Linux ubuntu ...
    I download the file from this site ....
    I follow the instructions on the site:
    I do the chmod and this works ok
    I type ./j2sdk-1_4_2_04-nb-3_6-bin-linux.bin ( this is the instruction from Sun)
    and then get the error message:
    bash: j2sdk-1_4_2_04-nb-3_6-bin-linux.bin: command not found
    What's the solution? Any ideas?
    thanks

    try :
    sh jdkblahblhabl.bin
    But there is a debian way to install it see links at http://rzr.online.fr/q/Java

Maybe you are looking for

  • How do I reduce the file size of a photo

    I need to reduce the size of a photo from 1.7MB to 50 KB how do I do this.

  • Syncing is really slow after upgrading my iPhone 3Gs to iOS 4.3.3.

    After upgrading my iPhone 3Gs to iOS 4.3.3, syncing my iPhone takes 15 to 20 minutes.  Prior to this, it only took a minute or two.  It just sits on "Preparing to Sync" the whole time, an finally completes the sync after 15 or 20 minutes.  My office

  • Printing to PDF from MS Office Access 2007

    I just upgraded to MS Office Access 2007 and am now noticing that horizontal lines are not always printing on the PDF output file.  There is a violation with the WYSIWYG rule now.  This problem did not exist with the MS Office 2003 version that I had

  • HT4847 how do I view my backed up documents in iCloud

    I can see the account and it only gives me the optionof deleting or buying more storage - how can I see the backup to delete unwanted documents?

  • ForEach items syntax help please

    This shouldn't be a problem but it is. I have a JSP. I am sending it an attribute that is a collection by calling setAttribute() on the request and then dispatching to the JSP from my front controller servlet. I want to iterate through the collection