Ora-08177 in oracle 11gr2

Dear All,
Recently we have migrated one of our database from 10gr2 to 11gr2(11.2.0.3) to a new server.We did the migration using oracle datapump full backup.Our Application is running on Oracle Application Server 10g. And it's a core banking solution.
But the issue is, when the users do transaction concurrently it gives the error "ORA-08177 can't serialize access for this transaction" in our application code. According to metalink note (metalink id ID 1285464.1) we have changed the parameter deferred_segment_creation=FALSE. But the problem is not solved.
The same application was running very fine at 10g without any concurrency issue.If you have faced any problem like this and if you have any opinion on this,please help me. It's very urgent for us.

Recently we have migrated one of our database from 10gr2 to 11gr2(11.2.0.3) to a new server.We did the migration using oracle datapump full backup.Our Application is running on Oracle Application Server 10g. And it's a core banking solution.
But the issue is, when the users do transaction concurrently it gives the error "ORA-08177 can't serialize access for this transaction" in our application code. According to metalink note (metalink id ID 1285464.1) we have changed the parameter deferred_segment_creation=FALSE. But the problem is not solved.Have you bounced the database?
In addition to [ID 1285464.1], did you review other docs on MOS website?
How To Solve ORA-8177: can't serialize access for this transaction [ID 464947.1]
Ora-08177: Can'T Serialize Access For This Transaction After Upgrading To Database 11.2 [ID 1291983.1]
OERR: ORA 8177 cannot serialize access for this transaction [ID 38707.1]
ORA-8177 Cannot serialize access for this transaction [ID 197246.1]
The same application was running very fine at 10g without any concurrency issue.If you have faced any problem like this and if you have any opinion on this,please help me. It's very urgent for us.For urgent issues, please log a SR.
Thanks,
Hussein

Similar Messages

  • Suddenly getting ORA-12514 error Oracle 11gr2

    I installed Oracle 11g r2 fine, had 2 databases (se3 and mydb, both have db_domain .orcl i.e. mydb.orcl and se3.orcl) running on it fine till yesterday. but suddenly im getting ORA-12514 error (TNS:listener doesn't know of service requested in connect descriptor)..
    My tnsnames.ora file:
    # tnsnames.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_MYDB =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    MYDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mydb.orcl)
    SE3 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = se3.orcl)
    LISTENER_SE3 =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    and my listener.ora file is as follows:
    # listener.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = G:\oracledb
    * i have both of databases up and running(confirmed through administration assistant), the listener is up.. im able to execute "tnsping mydb/se3".. i'm not able to connect to either one of them through sqlplus/sql developer.. The result of "lsnrctl service" is as follows:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully
    PLEASE HELP ME FRIENDS!! I HAVE A PROJECT DUE IN EARLY OCTOBER

    Hi,
    Instead of this:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    have the following in your listener file
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
       (SID_DESC =
          (SID_NAME = mydb)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
        (SID_DESC =
          (SID_NAME = se3)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)   
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Also, dont have 'localhost' in your listener.ora file, provide the actual IP or hostanme. NEVER YOU should have
    localhost.
    Restart listener and try.
    Thanks &
    Best Regard,

  • 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

  • Starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact

    Hi Guys!
    Thanks for your advises. I still working toward a resolution.
    But I encountered another issue from Enterp Manager :
    ERROR : Please correct the following error: Connection string must be specified.
    My connection has this format:
    //using connection string attributes to connect to Oracle Database
      con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle";
      con.Open();
      Console.WriteLine("Connected to Oracle" + con.ServerVersion);
    Please tell me what is wrong here. Thanks. Dan.
    Hi all !
    I need help please for resolving the following :
    Problem:
    Im having frequent disconnection after abnormal shutdown due to power failure.
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    The alert.log is at the bottom
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    Im having frequent disconnection after abnormal shutdown due to power failure.
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0

    Hi,
    Please check Oracle support id : Troubleshooting ORA-3135 Connection Lost Contact (Doc ID 787354.1)

  • Oracle 11gR2, Windows7, TNS-12535: Operation Timed Out

    Hi all,
    I am getting TNS-12535: Operation Timed Out.
    I have windows 7 installed on 2 servers. Both server having 11gR2 installed.
    I am able to ping both servers.
    ServerA> Ping ServerB
    Success...(Getting reply..)
    ServerB> Ping ServerA
    Success...(Getting reply..)
    But for TNS Ping:
    Connecting Local:
    ServerA> TNSPing ServerA
    OK
    ServerB> Ping ServerB
    OK
    Connecting to other:
    ServerA> TNSPing ServerB
    TNS-12535: Operation Timed Out
    ServerB> Ping ServerA
    TNS-12535: Operation Timed Out
    Please revert as soon as possible.
    Edited by: Pavan Bhardwaj on Sep 20, 2010 12:35 AM

    Hi Salman,
    Pleasefind the required content below:
    Server A:
    # sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    TNSNames.ora:
    # tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ServerA)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SO)
    SO156 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ServerB)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SO)
    ServerB:
    # sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\client_2\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    TNSNames.ora:
    # tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ServerB)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SO)
    SO123 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ServerA)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SO)
    )

  • Create a database link to access SqlServer 2005 view from oracle 11gr2

    Hi All,
    Greetings for the day.
    Though I have seen quite a few posts but just wanted to cross-verfiy and double check hence posting.
    Oracle Database : 11gr2
    OS :SOLARIS SPARC 64 Bit
    SQL Server Database : Sql Server 2005
    OS : Windows 2003 32 Bit
    The requirement is to access a view residing in the SQL Server 2005 Database using the Oracle Database. This involves creation of a Database link in the Oracle Database to access the SQL Server.
    Can you suggest which approach should i follow ( I am able to understand that both do the same job ):
    How to Configure DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) post install [ID 562509.1]or
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install [ID 561033.1]Will they do the same job ? And can they be used on any OS and version of the SQL Server Database as version information for SQL Server is not specified anywhere?
    Please let me know so that I can it forward with Business for approvals and budgetting.
    Regards
    KK

    Your question is similar to the post: Oracle 11gr2 connection to Sql Server using dg4msql problem
    Please visit: http://stackoverflow.com/questions/4658942/oracle-11gr2-connection-to-sql-server-using-dg4msql-problem
    Answer on the website:
    You seem to be using the Gateway for MySQL set-up rather than the Heterogeneous Gateway (for ODBC connections). Here is an overview of the process
    On SQL Server create a database user and give it read access to the database/tables you want to read via the Oracle database link.
    In the gateway home each SQL Server database you want to access should have an init.ora located in $OH/dg4msql/admin in the form initsid.ora where sid is the name of the database to be used in the link (e.g. initbob.ora), so create one
    HS_FDS_CONNECT_INFO=msserver1:1234//Example_Database
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_TRANSACTION_MODEL=READ_ONLY
    You must now add the new sid to the listener.ora in the gateway home using an additional SID_DESC section inside the existing SID_LIST, for example
    (SID_DESC =
    (SID_NAME=bob)
    (ORACLE_HOME=/oracle/gateway/product/11.2.0)
    (ENVS=LD_LIBRARY_PATH=/oracle/gateway/product/11.2.0/dg4msql/driver/lib;/oracle/gateway/product/11.2.0/lib)
    (PROGRAM=dg4msql)
    You should now stop and restart the gateway listener so that the new sid becomes active. NB a reload is not enough.
    You must now add the new sid in the tnsnames.ora file for the listener of each database in which you will create a link. You don't need to do this in the gateway home unless it is also a database home in which you will create a database link.
    bob =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = severname.example.com)(PORT = 1690))
    (CONNECT_DATA = (SID = bob))
    (HS = OK)
    NB: The host and port are for the gateway not for the SQL Server database
    In each database that requires a link to the MS-SQL database you should create a database link to your new gateway sid.
    CREATE PUBLIC DATABASE LINK bob
    CONNECT TO "ms_user" IDENTIFIED BY "ms-passwd" USING 'bob';
    where ms-user and ms-password are the SQL Server user you created right at the start.
    Now you can test the new database link
    SELECT COUNT(*) FROM "Table_Name"@bob;
    Once you have this working you can alter the initsid.ora file to add parameters to suit your connection. If you do it this way you can easily add and manage many different databases via the gateway.
    Hip
    Edited by: 1000595 on 04:58 17-04-2013

  • Problem creating Network ACL for a ROLE in Oracle 11gR2

    According to Oracle Documentation when you create a new Network ACL you can add privileges to a user or role.  I need to create a new ACL for the UTL_SMTP package for a specific role, but when I granted it the users who have that role are still getting the "ORA-24247: network access denied by access control list (ACL)" error when they try to send an email.  If I grant the ACL privilege to the same users directly it works fine.  Is there any step I'm missing?  This is the test I have made on my Solaris 10 - Oracle 11gR2 (11.2.0.3) Standard Edition server:
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 21 09:31:52 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    SQL> CONNECT system/******@testdb
    Connected.
    SQL> SET LINES 1000
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> COLUMN host FORMAT A20
    SQL> COLUMN lower_port FORMAT 99999
    SQL> COLUMN upper_port FORMAT 99999
    SQL> COLUMN acl FORMAT A40
    SQL> COLUMN acl FORMAT A40
    SQL> COLUMN principal FORMAT A15
    SQL> COLUMN privilege FORMAT A10
    SQL> COLUMN is_grant FORMAT A8
    SQL> COLUMN status FORMAT A10
    SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
    no rows selected
    SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
    no rows selected
    SQL> CREATE USER testacl IDENTIFIED BY testacl;
    User created.
    SQL> GRANT CONNECT TO testacl;
    Grant succeeded.
    SQL>
    SQL> BEGIN
      2     dbms_network_acl_admin.create_acl('test_smtp.xml','TEST SMTP ACL','TESTACL',true,'connect');
      3     dbms_network_acl_admin.assign_acl('test_smtp.xml','localhost',25);
      4     commit;
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
    HOST                 LOWER_PORT UPPER_PORT ACL
    localhost                    25         25 /sys/acls/test_smtp.xml
    SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
    ACL                                      PRINCIPAL       PRIVILEGE  IS_GRANT
    /sys/acls/test_smtp.xml                  TESTACL         connect    true
    After creating this ACL I test it like this:
    SQL> CONNECT testacl/testacl@testdb
    Connected.
    SQL> SELECT host, lower_port, upper_port, privilege, status FROM user_network_acl_privileges;
    HOST                 LOWER_PORT UPPER_PORT PRIVILEGE  STATUS
    localhost                    25         25 connect    GRANTED
    SQL> DECLARE
      2     c utl_smtp.connection;
      3  BEGIN
      4     c := utl_smtp.open_connection('localhost', 25); -- SMTP on port 25
      5     utl_smtp.helo(c, 'localhost');
      6     utl_smtp.mail(c, 'Oracle11.2');
      7     utl_smtp.rcpt(c, '[email protected]');
      8     utl_smtp.data(c,'From: Oracle'||utl_tcp.crlf||'To: [email protected]'||utl_tcp.crlf||'Subject: UTL_SMTP TEST'||utl_tcp.crlf||'');
      9     utl_smtp.quit(c);
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SQL>
    This works fine and I receive the email correctly.  Now if I try to do the same thing for a role:
    SQL> CONNECT system/******@testdb
    Connected.
    SQL> BEGIN
      2     dbms_network_acl_admin.drop_acl('test_smtp.xml');
      3     commit;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
    no rows selected
    SQL> CREATE ROLE testacl_role;
    Role created.
    SQL> GRANT testacl_role TO testacl;
    Grant succeeded.
    SQL> ALTER USER testacl DEFAULT ROLE ALL;
    User altered.
    SQL>
    SQL> BEGIN
      2     dbms_network_acl_admin.create_acl('test_smtp.xml','TEST SMTP ACL','TESTACL_ROLE',true,'connect');
      3     dbms_network_acl_admin.assign_acl('test_smtp.xml','localhost',25);
      4     commit;
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SQL> SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
    HOST                 LOWER_PORT UPPER_PORT ACL
    localhost                    25         25 /sys/acls/test_smtp.xml
    SQL> SELECT acl,principal,privilege,is_grant FROM dba_network_acl_privileges;
    ACL                                      PRINCIPAL       PRIVILEGE  IS_GRANT
    /sys/acls/test_smtp.xml                  TESTACL_ROLE    connect    true
    SQL>
    And now I test it again with the same user:
    SQL> CONNECT testacl/testacl@testdb
    Connected.
    SQL>
    SQL> SELECT host, lower_port, upper_port, privilege, status FROM user_network_acl_privileges;
    no rows selected
    SQL> DECLARE
      2     c utl_smtp.connection;
      3  BEGIN
      4     c := utl_smtp.open_connection('localhost', 25); -- SMTP on port 25
      5     utl_smtp.helo(c, 'localhost');
      6     utl_smtp.mail(c, 'Oracle11.2');
      7     utl_smtp.rcpt(c, '[email protected]');
      8     utl_smtp.data(c,'From: Oracle'||utl_tcp.crlf||'To: [email protected]'||utl_tcp.crlf||'Subject: UTL_SMTP TEST'||utl_tcp.crlf||'');
      9     utl_smtp.quit(c);
    10  END;
    11  /
    DECLARE
    ERROR at line 1:
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at "SYS.UTL_TCP", line 17
    ORA-06512: at "SYS.UTL_TCP", line 267
    ORA-06512: at "SYS.UTL_SMTP", line 161
    ORA-06512: at "SYS.UTL_SMTP", line 197
    ORA-06512: at line 4
    SQL>
    I'm aware that role privileges doesn't apply inside procedures, functions or packages by default, but this is an anonymous block so it should use the active roles for the user.  I also tried adding a "dbms_session.set_role('TESTACL_ROLE');" at the beggining of the anonymous PL/SQL block but I got the same access error.
    Thanks in advance for any help you can give to me on this question, it would be very hard to grant the ACL to all the individual users as they are more than 1000, and we create more regularly.

    Thanks for your quick reply... I don't have a problem creating the basic ACL with the privileges granted for a user.  The problem appears when I try to create an ACL with privileges for a ROLE.  You can see here http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_networkacl_adm.htm#BABIGEGG than the official Oracle documentation states that you can assign the ACL principal to be a user or role:
    Parameter
    Description
    acl
    Name of the ACL. Relative path will be relative to "/sys/acls".
    description
    Description attribute in the ACL
    principal
    Principal (database user or role) to whom the privilege is granted or denied. Case sensitive.
    My issue is that when I try to create the ACL for a role it doesn't work.
    Have you ever created an ACL for a role? if so please send me an example or let me know which step I might be missing.  Cheers.

  • Question regarding shared_pool sizes in Oracle 11gR2

    Hi! I administer an Oracle 11gR2 database that runs on IBM hardware, OS AIX 6.1. The LPAR has 44 Gb of available memory and 8 dual-core processors assigned.
    Normally, everything runs fine and we have no problems. Today the database started rejecting connections suddenly. The issue lasted for about 14 minutes and then cleared itself. When checking the alert log, it indicated an out of memory problem with the shared_pool, ORA-4031 error.
    I am utilizing the automatic memory management feature of 11g, and memory_max_target is set to 14 Gb. I am going to increase memory_max_target to 18 Gb as part of my solution, but will that also then increase the size of the shared_pool in the SGA? Is it best to let the database manage the size of the shared_pool, or can (and should) I set it to a minimum size?
    Any help, or links to documentation or MOS notes, is greatly appreciated. Thank you!
    Mark

    Before suggesting you change your memory managment in use I would want more information such as how long have your been running the system this way?  How long had the system been running since its last startup?
    If you have access to the AWR then what does the AWR report for the problem period show?  Any unusual activity?  Were any new features or major processing added to the application recently.
    When you look at the memory management views how frequently does Oracle move granules from PGA to SGA, from the buffer cache to the shared pool and so on.
    The following support note may help with trying to investigate what issues you face in relation to ORA-04031 providing the issue re-occurs.
    Oracle document# 1088239.1 Master Note for Diagnosing ORA-4031
    HTH -- Mark D Powell --

  • JDBC Sender - ORA-08177 on UPDATE, but Table is updated - no message

    Hi,
    I have a problem with JDBC Adapter:
    I use a JDBC Sender adapter, polling every minute on an Oracle DB.
    I use isolation level "serializable".
    No what happens sometimes is, that the update statement fails because of "ORA-08177: can't serialize access for this transaction", so no message is forwarded to the IS. Curiously, the entries in the table are updated, so the JDBC Driver seems to update the data anyways.
    Has anybody experience with similar problems? This is a really hard issue because no messages are transmitted althought the condition field in the table is updated and everything seems normal. Also the status light of the communication channel will be green again after a while, so it is really hard to trace.
    System:
    XI 3.0 SP20
    ORACLE 8.1.7.4
    I use the following statements with a rownum limit:
    select ... from TABLE where CONDITION = '_to_send' AND rownum <= 20 order by NACHRICHT_ID
    update TABLE set CONDITION = '_sending' where PRIMARY_KEY in (select PRIMARY_KEY from TABLE where CONDITION = '_to_send' and rownum <= 20)
    (just to complete the picture...)
    This message goes to BPM, where it is split into single messages. These messages are processed separately, and after an successfull processing an update statement is sent back to the DB:
    update TABLE set CONDITION = '_processed' where PRIMARY_KEY = <PK of processed message>
    So the condition "_sending" is an interim status for the messages sent to BPM, but not finally processed.
    What happens is, that the receiver of the messages complained about missing messages. I could find some messages in the interim status, but no message has ever been sent.
    I appreciate any help.
    Thank you very much.

    Sainath Chutke wrote:
    As you have used the Isolation level as serialiable whenever the transaction fails the data gets updated because once the transaction reaches the end of the adapter level processing " the update statemnets gets executed " Irrespective of whether the transaction is sucessful or failure."
    Curiously, the select statement does not throw the error, the update statement does. But even though the update statement does not work (ORA-08177), it works (rows in DB are updated). That is what causes headache to me.
    Try to change the Isolation level and get the message id generated using an UDF.´
    Sorry, but I do not completely understand what you suggest here.
    My needs are:
    - select rows that fulfill condition (limit to a max number per poll interval)
    - update the selected rows to not fulfill the condition any more (to not double sent data)
    - the update statement must update exactly the same rows that have been selected before (transaction)
    or in other words:
    I need to make sure the data is sent only once and exactly once.
    If your idea can satisfy these needs, I kindly ask you to explain it more detailed.
    Thank you very much.

  • Oracle 11gR2 RAC problem with resource state

    Hi all,
    I installed Oracle 11gR2 grid infrastructure with 2 nodes and I installed DB 11gR2.
    S.O: HP-UX
    I actived both DB instance in each node.
    For an hardware problem node 1 become unstable (continuos auto reboot).
    I found that the problem was RAM.
    However I note that database resource is in a particular state and i don't able to reset it.
    Performing command crsctl status resource ora.orcl.db this is the result
    ora.orcl.db
    1 OFFLINE UNKNOWN node1 Startup Initiated
    2 ONLINE ONLINE node2 Open
    That UNKNOWN state is really abstruse.
    I tryed to perform crsctl stop resource ora.orcl.db -n node1 and the result is
    CRS-2679: Attempting to clean 'ora.orcl.db' on 'node1'
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    HPUX-ia64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    CRS-2680: Clean of 'ora.orcl.db' on 'node1' failed
    CRS-4000: Command Stop failed, or completed with errors.
    I tryed to perform crsctl start resource ora.orcl.db -n node1 and the result is
    CRS-2662: Resource 'ora.orcl.db' is disabled on server 'node1'
    CRS-4000: Command Start failed, or completed with errors.
    How do I do to reset that UNKNOWN state?
    Thanks in advance.
    Bye
    Alessandro

    I tryed srvctl enable instance -d orcl -i ORCL_1
    but the results is
    srvctl enable instance command is not supported for configuration using server pool.
    I tryed to delete service ora.orcl.db and recreate it.
    Now I have
    NAME=ora.orcl.db
    TYPE=ora.database.type
    TARGET=ONLINE , ONLINE
    STATE=UNKNOWN on node1, OFFLINE
    So Targets are both ONLINE, but if I write crsctl start resource ora.orcl.db
    the result is
    CRS-2679: Attempting to clean 'ora.orcl.db' on 'node1'
    CRS-2672: Attempting to start 'ora.orcl.db' on 'node2'
    CRS-5003: Invalid attribute value: '' for attribute DB_UNIQUE_NAME
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    HPUX-ia64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    CRS-2674: Start of 'ora.orcl.db' on 'node2' failed
    CRS-2679: Attempting to clean 'ora.orcl.db' on 'node2'
    CRS-2681: Clean of 'ora.orcl.db' on 'node2' succeeded
    CRS-2632: There are no more servers to try to place resource 'ora.orcl.db' on that would satisfy its placement policy
    CRS-2680: Clean of 'ora.orcl.db' on 'node1' failed
    CRS-4000: Command Start failed, or completed with errors.
    Where DB_UNIQUE_NAME attribute must be set?
    Any other suggest?
    Thanks in advance.
    Regards.
    Alessandro
    Edited by: Alessandro Zenoni on 21-giu-2010 11.26

  • Oracle 11gR2 RAC Grid installation - Configuration of ASM failed,

    Hi guys,
    Trying to install/configure Oracle 11gR2 Grid for 2 nodes RAC on Suse 10, root.sh failed with this error:
    2010-08-19 15:30:47: Querying for existing CSS voting disks
    2010-08-19 15:30:47: Performing initial configuration for cluster
    2010-08-19 15:30:48: Start of resource "ora.ctssd -init" Succeeded
    2010-08-19 15:30:48: Configuring ASM via ASMCA
    2010-08-19 15:30:48: Executing as oracle: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM
    2010-08-19 15:30:48: Running as user oracle: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM
    2010-08-19 15:30:48: Invoking "/u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM" as user "oracle"
    2010-08-19 15:30:51: Configuration of ASM failed, see logs for details
    2010-08-19 15:30:51: Did not succssfully configure and start ASM
    2010-08-19 15:30:51: Exiting exclusive mode
    2010-08-19 15:30:51: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
    2010-08-19 15:30:51: Stop of resource "ora.crsd -init" failed
    2010-08-19 15:30:51: Failed to stop CRSD
    2010-08-19 15:30:51: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
    2010-08-19 15:30:51: Stop of resource "ora.asm -init" failed
    2010-08-19 15:30:51: Failed to stop ASM
    2010-08-19 15:31:12: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_oracle-node2.log for details
    oracle-node2:/u01/app/11.2.0/grid/cfgtoollogs/crsconfig #
    Can any one please help/assist/guide ... how to move forward?
    Thanks in advance.

    failed ... with the same error
    2010-08-19 16:52:05: Start of resource "ora.ctssd -init" Succeeded
    2010-08-19 16:52:05: Configuring ASM via ASMCA
    2010-08-19 16:52:06: Executing as oracle: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM
    2010-08-19 16:52:06: Running as user oracle: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM
    2010-08-19 16:52:06: Invoking "/u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName DATA -diskList ORCL:DATA1,ORCL:DATA2 -redundancy EXTERNAL -configureLocalASM" as user "oracle"
    2010-08-19 16:52:08: Configuration of ASM failed, see logs for details
    2010-08-19 16:52:08: Did not succssfully configure and start ASM
    2010-08-19 16:52:08: Exiting exclusive mode
    2010-08-19 16:52:08: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
    2010-08-19 16:52:08: Stop of resource "ora.crsd -init" failed
    2010-08-19 16:52:08: Failed to stop CRSD
    2010-08-19 16:52:08: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
    2010-08-19 16:52:08: Stop of resource "ora.asm -init" failed
    2010-08-19 16:52:08: Failed to stop ASM
    2010-08-19 16:52:30: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_oracle-node1.log for details
    oracle-node1:/u01/app/11.2.0/grid/cfgtoollogs/crsconfig #

  • Oracle 11gR2 RAC - Recover Crashed node

    We have Oracle 11gR2 (11.2.0.3) RAC (2-node) on RHEL5.
    One of the node in this cluster has been crashed, and we will have to rebuilt that server from the scratch, we don't have other choice. All our instances are running on node-1.
    In this case how do we rebuilt the second node and instances without affecting the database in node-1. Any input would be appreciated.
    Edited by: MR139 on May 23, 2012 11:44 AM

    Balazs
    I followed the doc (http://docs.oracle.com/cd/E11882_01/rac.112/e16794/adddelclusterware.htm#CHDFIAIE) to add node to the cluster. And it was successful. In the last step when i ran root.sh script on the new node I got the problem. Its again creating +ASM1 instance and it saying cannot create a diskgroup.
    [root@hublpr2 11.2.0.3]# ./root.sh
    Performing root user operation for Oracle 11g
    The following environment variables are set as:
        ORACLE_OWNER= grid
        ORACLE_HOME=  /app/grid/product/11.2.0.3
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The contents of "dbhome" have not changed. No need to overwrite.
    The contents of "oraenv" have not changed. No need to overwrite.
    The contents of "coraenv" have not changed. No need to overwrite.
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root script.
    Now product-specific root actions will be performed.
    Using configuration parameter file: /app/grid/product/11.2.0.3/crs/install/crsconfig_params
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hublpr2'
    CRS-2676: Start of 'ora.cssdmonitor' on 'hublpr2' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'hublpr2'
    CRS-2672: Attempting to start 'ora.diskmon' on 'hublpr2'
    CRS-2676: Start of 'ora.diskmon' on 'hublpr2' succeeded
    CRS-2676: Start of 'ora.cssd' on 'hublpr2' succeeded
    Disk Group MDMPVTD01 creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification 'ORCL:MDMPVDT03' matches no disks
    ORA-15031: disk specification 'ORCL:MDMPVDT02' matches no disks
    ORA-15031: disk specification 'ORCL:MDMPVDT01' matches no disks
    Configuration of ASM ... failed
    see asmca logs at /app/oracle/cfgtoollogs/asmca for details
    Did not succssfully configure and start ASM at /app/grid/product/11.2.0.3/crs/install/crsconfig_lib.pm line 6763.
    /app/grid/product/11.2.0.3/perl/bin/perl -I/app/grid/product/11.2.0.3/perl/lib -I/app/grid/product/11.2.0.3/crs/install /app/grid/product/11.2.0.3/crs/install/rootcrs.pl execution failed

  • Oracle 11gR2 RAC: Running the script root.sh problem

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
    Now, I am running the script root.sh in VM rac1 and rac2 as below:
    [root@rac1 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    'UpdateNodeList' was successful.
    [root@rac1 /]#
    [root@rac2 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    Start of resource "ora.asm_init" failed.
    Failed to start ASM.
    Failed to start Oracle Clusterware Stack.
    [root@rac2 /]#
    As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
    First, the common problem for rac1 and rac2 :
    1)Module "oracleoks, oracleadvm, oracleacfs" not found
    2)/dev/asm/.asm_ctl_spec not detected
    3)ADVM/ACFS installation failed
    Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
    Second, how to start ASM and Clusterware stack in rac2 ?
    Thanks.

    you have 2 options:
    1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
    or the one i would recommend:
    2. Upgrade Grid Infrastructure,
    *11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC)

  • Oracle 11gR2 RAC Root.sh Failed On The Second Node

    Hello,
    When i installing Oracle 11gR2 RAC on AIX 7.1 , root.sh succeeds on first node but fails on the second node:
    I get error "Root.sh Failed On The Second Node With Error ORA-15018 ORA-15031 ORA-15025 ORA-27041 [ID 1459711.1]" within Oracle installation.
    Applies to:
    Oracle Server - 11gR2 RAC
    EMC VNX 500
    IBM AIX on POWER Systems (64-bit)
    in /dev/rhdiskpower0 does not show in kfod output on second node. It is an EMC multipath disk device.
    But the disk can be found with AIX command.
    any help!!
    Thanks

    the soluation that uninstall "EMC solutitons enabler" but in the machine i just find "EMC migration enabler" and conn't remove without remove EMC Powerpath.

  • Oracle 11gR2 RAC - SCAN issue

    We have Oracle 11gR2(11.2.0.1) RAC (2-node) on HP-UX. And we have some issue with SCAN Listener configuration.
    Issue-1*
    LISTENER_SCAN1 is running on node-1 and LISTENER_SCAN2 & LISTENER_SCAN3 is running on node-2. This is how it's running always. And we have 3 RAC database (cadprod, omsprod & eaiprod) running on this server. Both the instances of cadprod & eaiprod is registered on all three SCAN listeners.
    But omsprod is having issues, omsprod1 & omsprod2 are registered on LISTENER_SCAN1 on node-1, but omsprod2 is not register on LISTENER_SCAN2 & LISTENER_SCAN3 on node-2. and some times we are not able to connect the second instance (omsprod2).
    Issue-2*
    And if node-1 goes down, all three databases are failover to node-2, after that we are not able to connect omsprod & eaiprid database its giving the following error on client side,
    ORA-12516, TNS:listener could not find available handler with matching protocol stack
    once the node-1 came back its allowing the connection. But cadprod doesn't have this issue, we are able to connect after the failover.
    Listener Status:*
    oracle@hublhp1:/home/oracle$ lsnrctl status LISTENER_SCAN1
    LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:53:29
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
    STATUS of the LISTENER
    Alias LISTENER_SCAN1
    Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
    Start Date 28-FEB-2011 13:40:09
    Uptime 3 days 20 hr. 13 min. 20 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
    Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp1/listener_scan1/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.110)(PORT=1521)))
    Services Summary...
    Service "cadprod" has 2 instance(s).
    Instance "cadprod1", status READY, has 1 handler(s) for this service...
    Instance "cadprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprod" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprodXDB" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "omsprod" has 2 instance(s).
    Instance "omsprod1", status READY, has 1 handler(s) for this service...
    Instance "omsprod2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@hublhp3:/home/oracle$ lsnrctl status LISTENER_SCAN2
    LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:52:40
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))
    STATUS of the LISTENER
    Alias LISTENER_SCAN2
    Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
    Start Date 28-FEB-2011 12:23:33
    Uptime 3 days 21 hr. 29 min. 6 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
    Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp3/listener_scan2/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.109)(PORT=1521)))
    Services Summary...
    Service "cadprod" has 2 instance(s).
    Instance "cadprod1", status READY, has 1 handler(s) for this service...
    Instance "cadprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprod" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprodXDB" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "omsprod" has 1 instance(s).
    Instance "omsprod1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@hublhp3:/home/oracle$ lsnrctl status LISTENER_SCAN3
    LSNRCTL for HPUX: Version 11.2.0.1.0 - Production on 04-MAR-2011 09:52:27
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))
    STATUS of the LISTENER
    Alias LISTENER_SCAN3
    Version TNSLSNR for HPUX: Version 11.2.0.1.0 - Production
    Start Date 28-FEB-2011 12:23:34
    Uptime 3 days 21 hr. 28 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /app/oracle/grid/product/11.2.0/network/admin/listener.ora
    Listener Log File /app/oracle/grid/product/11.2.0/log/diag/tnslsnr/hublhp3/listener_scan3/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN3)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.35.111)(PORT=1521)))
    Services Summary...
    Service "cadprod" has 2 instance(s).
    Instance "cadprod1", status READY, has 1 handler(s) for this service...
    Instance "cadprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprod" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "eaiprodXDB" has 2 instance(s).
    Instance "eaiprod1", status READY, has 1 handler(s) for this service...
    Instance "eaiprod2", status READY, has 1 handler(s) for this service...
    Service "omsprod" has 1 instance(s).
    Instance "omsprod1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@hublhp3:/home/oracle$
    oracle@hublhp3:/home/oracle$

    Node-1*
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
    Node-2*
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent

Maybe you are looking for

  • C# Joystick interface with SlimDX.DirectInput

    I am trying to create a robot controlled by a joystick.  I am using a Logitech Rumblepad with two POV's and multiple buttons (a gamepad). using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tas

  • .pages to .doc batch conversion

    Hi - is there any way to convert batches of pages documents to ordinary .doc documents?? Since I need to do this every once in a while, I tried making an automator script, but failed. Is there such a script available, or is there any other way of doi

  • Unsure how to copy current contents of iPod back to iTunes for future use

    Had a system failure that required operating system upgrade to Windows Vista. This left iPod with orphaned content that does not show on iTunes. Am afraid that if I put new content on the iPod, the old would now be gone forever. Looking for a ready-a

  • My blackbery 9860 crashed and freeze quite a lot

    hello blackberry support.. i hope you can help me... my blackberry 9860 crash and freeze quite a lot and it's annoy me.. i have the bundling OS which is 7.0.0 bundle 2395 i still have 93.9 mb of application storage... 2.2 gb of built in storage and 9

  • Printing a byte array

    Hi all, I have a string of hex characters say aeef1234569a Now I want to store this in a byte array as (0xae,0xef,0x12,0x34..} How can this be done. Many thanks. Ram