Missing Documentation for error in SQL.

Hi,
In my application when i try to connect to my .mdf file I got the below error. When I checked for documentation on this error @
http://technet.microsoft.com/en-us/library/cc645603(v=sql.100).aspx
I couldn't find the same in the list.
Error Details : "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow
remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
Is this missed to document? Can you please confirm.
Please help me in finding documentation on this error.
Thanks
Swapna

Hi,
Thank you for posting in SQL Server Forum.
“SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified” is a common error message when connecting to a SQL Server.
Is it a local instance or remote instance? Default instance or Named instance? What’s the SQL Server version and edition?
The possible cause of this issue could be SQL Server Database Engine is not running, when the server name was typed incorrectly, or when there are network problems or firewalls.
Please check the following suggestions for troubleshooting this issue:
1. Make sure SQL Server Service is running
2. If a named instance, make sure SQL Server browser service is running
3. Make sure SQL Server is configured to allow remote connections
4. Check the SQL Server error log. View the SQL Server error log by using SQL Server Management Studio or any text editor. By default, the error log is located at Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG
and ERRORLOG.n files.
Here is the document regarding how to troubleshoot the error message.
http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx
http://technet.microsoft.com/en-us/library/ms190181(v=sql.105).aspx
Thanks.
Tracy Cai
TechNet Community Support

Similar Messages

  • Documentation for error codes from tpcall()

    Dear all,
    while investigating a particular error-handling scenario I realized that the documentation for tpcall() was changed between Tuxedo 6.5 and 7.1.
    In the 6.5 docs it's stated that after a TPESVCFAIL error you can do tpcall(..., TPNOTRAN) as long as you haven't run out of TRANTIME.
    In the 7.1 (and onwards) docs it's stated that after a TPESVCFAIL error you can only do tpacall(..., (TPNOBLOCK|TPNOREPLY|TPNOTRAN))
    In the 6.5 docs this is only stated after TPETIME (which makes some kind of sense - you're already late so don't do a lot of more time-consuming stuff).
    On the other handl, in a section in the Tuxedo 10.0 docs about error handling (http://edocs.bea.com/tuxedo/tux100/pgc/pgerr.html#wp1155712) you're again told that it's OK to use tpcall() (and recommended to use TPNOTRAN if doing so)
    Is this related to multi-threading, or why was the documentation changed?
    Testing shows that you can actually do tpcall(..., TPNOTRAN) after a TPESVCFAIL using Tuxedo 8.1. (after a TPETIME it's another story, but I'm OK with that.) Am I the only one being confused by this?
    Best regards,
    /Per

    I just checked the XATMI spec (dated November, 1995....) which states the following regarding tpcall() failures:
    [TPESVCFAIL]
    The service routine sending the caller’s reply called tpreturn( ) with TPFAIL. This is an
    application-level failure. The contents of the service’s reply, if one was sent, are available in
    the buffer pointed to by *odata. If the service request was made on behalf of the caller’s
    current transaction, the transaction is marked rollback-only. Note that so long as the
    transaction has not timed out, further communication may be attempted before rolling back
    the transaction. Such attempts may be processed normally or may fail (producing an error
    return or event). Such attempts should be made with TPNOTRAN set if they are to have
    any lasting effect. Any work performed on behalf of the caller’s transaction is rolled back
    upon transaction completion.
    This is consistent with the 6.5 documentation (and 8.1 behaviour). Has the XATMI spec been updated, or what was the rationale for changing the behavior?
    Best regards,
    /Per

  • Missing Documentation for kernel26/laptop_mode.txt

    Since the kernel26 package is stripped of all documentation, I can't get the laptop_mode script for 2.6.7. Do you compile your own kernel? Could you post the laptop_mode.txt on this thread please?

    How to conserve battery power using laptop-mode
    Document Author: Bart Samwel (bart at samwel.tk)
    Date created: January 2, 2004
    Last modified: April 3, 2004
    Introduction
    Laptopmode is used to minimize the time that the hard disk needs to be spun up,
    to conserve battery power on laptops. It has been reported to cause significant
    power savings.
    Contents
    * Introduction
    * The short story
    * Caveats
    * The details
    * Tips & Tricks
    * Control script
    * ACPI integration
    * Monitoring tool
    The short story
    To use laptop mode, you don't need to set any kernel configuration options
    or anything. You simply need to run the laptop_mode control script (which
    is included in this document) as follows:
    # laptop_mode start
    Then set your harddisk spindown time to a relatively low value with hdparm:
    hdparm -S 4 /dev/hda
    The value -S 4 means 20 seconds idle time before spindown. Your harddisk will
    now only spin up when a disk cache miss occurs, or at least once every 10
    minutes to write back any pending changes.
    To stop laptop_mode, run "laptop_mode stop".
    Caveats
    * The downside of laptop mode is that you have a chance of losing up
      to 10 minutes of work. If you cannot afford this, don't use it! It's
      wise to turn OFF laptop mode when you're almost out of battery --
      although this will make the battery run out faster, at least you'll
      lose less work when it actually runs out. I'm still looking for someone
      to submit instructions on how to turn off laptop mode when battery is low,
      e.g., using ACPI events. I don't have a laptop myself, so if you do and
      you care to contribute such instructions, please do.
    * Most desktop hard drives have a very limited lifetime measured in spindown
      cycles, typically about 50.000 times (it's usually listed on the spec sheet).
      Check your drive's rating, and don't wear down your drive's lifetime if you
      don't need to.
    * If you mount some of your ext3/reiserfs filesystems with the -n option, then
      the control script will not be able to remount them correctly. You must set
      DO_REMOUNTS=0 in the control script, otherwise it will remount them with the
      wrong options -- or it will fail because it cannot write to /etc/mtab.
    * If you have your filesystems listed as type "auto" in fstab, like I did, then
      the control script will not recognize them as filesystems that need remounting.
    * It has been reported that some versions of the mutt mail client use file access
      times to determine whether a folder contains new mail. If you use mutt and
      experience this, you must disable the noatime remounting in the control script
      by setting DO_REMOUNT_NOATIME=0.
    The details
    Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. This flag is
    present for all kernels that have the laptop mode patch, regardless of any
    configuration options. When the flag is set, any physical disk read operation
    (that might have caused the hard disk to spin up) causes Linux to flush all dirty
    blocks. The result of this is that after a disk has spun down, it will not be spun
    up anymore to write dirty blocks, because those blocks had already been written
    immediately after the most recent read operation.
    To increase the effectiveness of the laptop_mode strategy, the laptop_mode
    control script increases dirty_expire_centisecs and dirty_writeback_centisecs in
    /proc/sys/vm to about 10 minutes (by default), which means that pages that are
    dirtied are not forced to be written to disk as often. The control script also
    changes the dirty background ratio, so that background writeback of dirty pages
    is not done anymore. Combined with a higher commit value (also 10 minutes) for
    ext3 or ReiserFS filesystems (also done automatically by the control script),
    this results in concentration of disk activity in a small time interval which
    occurs only once every 10 minutes, or whenever the disk is forced to spin up by
    a cache miss. The disk can then be spun down in the periods of inactivity.
    If you want to find out which process caused the disk to spin up, you can
    gather information by setting the flag /proc/sys/vm/block_dump. When this flag
    is set, Linux reports all disk read and write operations that take place, and
    all block dirtyings done to files. This makes it possible to debug why a disk
    needs to spin up, and to increase battery life even more. The output of
    block_dump is written to the kernel output, and it can be retrieved using
    "dmesg". When you use block_dump, you may want to turn off klogd, otherwise
    the output of block_dump will be logged, causing disk activity that is not
    normally there.
    If 10 minutes is too much or too little downtime for you, you can configure
    this downtime as follows. In the control script, set the MAX_AGE value to the
    maximum number of seconds of disk downtime that you would like. You should
    then set your filesystem's commit interval to the same value. The dirty ratio
    is also configurable from the control script.
    If you don't like the idea of the control script remounting your filesystems
    for you, you can change DO_REMOUNTS to 0 in the script.
    Thanks to Kiko Piris, the control script can be used to enable laptop mode on
    both the Linux 2.4 and 2.6 series.
    Tips & Tricks
    * Bartek Kania reports getting up to 50 minutes of extra battery life (on top
      of his regular 3 to 3.5 hours) using very aggressive power management (hdparm
      -B1) and a spindown time of 5 seconds (hdparm -S1).
    * You can spin down the disk while playing MP3, by setting the disk readahead
      to 8MB (hdparm -a 16384). Effectively, the disk will read a complete MP3 at
      once, and will then spin down while the MP3 is playing. (Thanks to Bartek
      Kania.)
    * Drew Scott Daniels observed: "I don't know why, but when I decrease the number
      of colours that my display uses it consumes less battery power. I've seen
      this on powerbooks too. I hope that this is a piece of information that
      might be useful to the Laptop Mode patch or it's users."
    * One thing which will cause disks to spin up is not-present application
      and dynamic library text pages.  The kernel will load program text off disk
      on-demand, so each time you invoke an application feature for the first
      time, the kernel needs to spin the disk up to go and fetch that part of the
      application.
      So it is useful to increase the disk readahead parameter greatly, so that
      the kernel will pull all of the executable's pages into memory on the first
      pagefault.
      The supplied script does this.
    * In syslog.conf, you can prefix entries with a dash ``-'' to omit syncing the
      file after every logging. When you're using laptop-mode and your disk doesn't
      spin down, this is a likely culprit.
    * Richard Atterer observed that laptop mode does not work well with noflushd
      (http://noflushd.sourceforge.net/), it seems that noflushd prevents laptop-mode
      from doing its thing.
    Control script
    Please note that this control script works for the Linux 2.4 and 2.6 series.
    --------------------CONTROL SCRIPT BEGIN------------------------------------------
    #!/bin/bash
    # start or stop laptop_mode, best run by a power management daemon when
    # ac gets connected/disconnected from a laptop
    # install as /sbin/laptop_mode
    # Contributors to this script:   Kiko Piris
    #                 Bart Samwel
    #                 Micha Feigin
    #                 Andrew Morton
    #                 Herve Eychenne
    #                 Dax Kelson
    # Original Linux 2.4 version by: Jens Axboe
    # Age time, in seconds. should be put into a sysconfig file
    MAX_AGE=600
    # Read-ahead, in kilobytes
    READAHEAD=4096
    # Shall we remount journaled fs. with appropiate commit interval? (1=yes)
    DO_REMOUNTS=1
    # And shall we add the "noatime" option to that as well? (1=yes)
    DO_REMOUNT_NOATIME=1
    # Dirty synchronous ratio.  At this percentage of dirty pages the process which
    # calls write() does its own writeback
    DIRTY_RATIO=40
    # Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
    # exceeded, the kernel will wake pdflush which will then reduce the amount
    # of dirty memory to dirty_background_ratio.  Set this nice and low, so once
    # some writeout has commenced, we do a lot of it.
    DIRTY_BACKGROUND_RATIO=5
    # kernel default dirty buffer age
    DEF_AGE=30
    DEF_UPDATE=5
    DEF_DIRTY_BACKGROUND_RATIO=10
    DEF_DIRTY_RATIO=40
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    # This must be adjusted manually to the value of HZ in the running kernel
    # on 2.4, until the XFS people change their 2.4 external interfaces to work in
    # centisecs. This can be automated, but it's a work in progress that still needs
    # some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for external
    # interfaces, and that is currently always set to 100. So you don't need to
    # change this on 2.6.
    XFS_HZ=100
    KLEVEL="$(uname -r |
               IFS='.' read a b c
               echo $a.$b
    case "$KLEVEL" in
        "2.4"|"2.6")
            echo "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
            exit 1
    esac
    if [ ! -e /proc/sys/vm/laptop_mode ] ; then
        echo "Kernel is not patched with laptop_mode patch." >&2
        exit 1
    fi
    if [ ! -w /proc/sys/vm/laptop_mode ] ; then
        echo "You do not have enough privileges to enable laptop_mode." >&2
        exit 1
    fi
    # Remove an option (the first parameter) of the form option=<number> from
    # a mount options string (the rest of the parameters).
    parse_mount_opts () {
        OPT="$1"
        shift
        echo ",$*," | sed       
         -e 's/,'"$OPT"'=[0-9]*,/,/g'   
         -e 's/,,*/,/g'           
         -e 's/^,//'           
         -e 's/,$//'
    # Remove an option (the first parameter) without any arguments from
    # a mount option string (the rest of the parameters).
    parse_nonumber_mount_opts () {
        OPT="$1"
        shift
        echo ",$*," | sed       
         -e 's/,'"$OPT"',/,/g'       
         -e 's/,,*/,/g'           
         -e 's/^,//'           
         -e 's/,$//'
    # Find out the state of a yes/no option (e.g. "atime"/"noatime") in
    # fstab for a given filesystem, and use this state to replace the
    # value of the option in another mount options string. The device
    # is the first argument, the option name the second, and the default
    # value the third. The remainder is the mount options string.
    # Example:
    # parse_yesno_opts_wfstab /dev/hda1 atime atime defaults,noatime
    # If fstab contains, say, "rw" for this filesystem, then the result
    # will be "defaults,atime".
    parse_yesno_opts_wfstab () {
        L_DEV="$1"
        OPT="$2"
        DEF_OPT="$3"
        shift 3
        L_OPTS="$*"
        PARSEDOPTS1="$(parse_nonumber_mount_opts $OPT $L_OPTS)"
        PARSEDOPTS1="$(parse_nonumber_mount_opts no$OPT $PARSEDOPTS1)"
        # Watch for a default atime in fstab
        FSTAB_OPTS="$(awk '$1 == "'$L_DEV'" { print $4 }' /etc/fstab)"
        if echo "$FSTAB_OPTS" | grep "$OPT" > /dev/null ; then
            # option specified in fstab: extract the value and use it
            if echo "$FSTAB_OPTS" | grep "no$OPT" > /dev/null ; then
                echo "$PARSEDOPTS1,no$OPT"
            else
                # no$OPT not found -- so we must have $OPT.
                echo "$PARSEDOPTS1,$OPT"
            fi
        else
            # option not specified in fstab -- choose the default.
            echo "$PARSEDOPTS1,$DEF_OPT"
        fi
    # Find out the state of a numbered option (e.g. "commit=NNN") in
    # fstab for a given filesystem, and use this state to replace the
    # value of the option in another mount options string. The device
    # is the first argument, and the option name the second. The
    # remainder is the mount options string in which the replacement
    # must be done.
    # Example:
    # parse_mount_opts_wfstab /dev/hda1 commit defaults,commit=7
    # If fstab contains, say, "commit=3,rw" for this filesystem, then the
    # result will be "rw,commit=3".
    parse_mount_opts_wfstab () {
        L_DEV="$1"
        OPT="$2"
        shift 2
        L_OPTS="$*"
        PARSEDOPTS1="$(parse_mount_opts $OPT $L_OPTS)"
        # Watch for a default commit in fstab
        FSTAB_OPTS="$(awk '$1 == "'$L_DEV'" { print $4 }' /etc/fstab)"
        if echo "$FSTAB_OPTS" | grep "$OPT=" > /dev/null ; then
            # option specified in fstab: extract the value, and use it
            echo -n "$PARSEDOPTS1,$OPT="
            echo ",$FSTAB_OPTS," | sed
             -e 's/.*,'"$OPT"'=//'   
             -e 's/,.*//'
        else
            # option not specified in fstab: set it to 0
            echo "$PARSEDOPTS1,$OPT=0"
        fi
    if [ $DO_REMOUNT_NOATIME -eq 1 ] ; then
        NOATIME_OPT=",noatime"
    fi
    case "$1" in
        start)
            AGE=$((100*$MAX_AGE))
            XFS_AGE=$(($XFS_HZ*$MAX_AGE))
            echo -n "Starting laptop_mode"
            if [ -d /proc/sys/vm/pagebuf ] ; then
                # (For 2.4 and early 2.6.)
                # This only needs to be set, not reset -- it is only used when
                # laptop mode is enabled.
                echo $XFS_AGE > /proc/sys/vm/pagebuf/lm_flush_age
                echo $XFS_AGE > /proc/sys/fs/xfs/lm_sync_interval
            elif [ -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
                # (A couple of early 2.6 laptop mode patches had these.)
                # The same goes for these.
                echo $XFS_AGE > /proc/sys/fs/xfs/lm_age_buffer
                echo $XFS_AGE > /proc/sys/fs/xfs/lm_sync_interval
            elif [ -f /proc/sys/fs/xfs/age_buffer ] ; then
                # (2.6.6)
                # But not for these -- they are also used in normal
                # operation.
                echo $XFS_AGE > /proc/sys/fs/xfs/age_buffer
                echo $XFS_AGE > /proc/sys/fs/xfs/sync_interval
            elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
                # (2.6.7 upwards)
                # And not for these either. These are in centisecs,
                # not USER_HZ, so we have to use $AGE, not $XFS_AGE.
                echo $AGE > /proc/sys/fs/xfs/age_buffer_centisecs
                echo $AGE > /proc/sys/fs/xfs/xfssyncd_centisecs
                echo 3000 > /proc/sys/fs/xfs/xfsbufd_centisecs
            fi
            case "$KLEVEL" in
                "2.4")
                    echo 1                    > /proc/sys/vm/laptop_mode
                    echo "30 500 0 0 $AGE $AGE 60 20 0"    > /proc/sys/vm/bdflush
                "2.6")
                    echo 5                    > /proc/sys/vm/laptop_mode
                    echo "$AGE"                > /proc/sys/vm/dirty_writeback_centisecs
                    echo "$AGE"                > /proc/sys/vm/dirty_expire_centisecs
                    echo "$DIRTY_RATIO"            > /proc/sys/vm/dirty_ratio
                    echo "$DIRTY_BACKGROUND_RATIO"        > /proc/sys/vm/dirty_background_ratio
            esac
            if [ $DO_REMOUNTS -eq 1 ]; then
                cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
                    PARSEDOPTS="$(parse_mount_opts "$OPTS")"
                    case "$FST" in
                        "ext3"|"reiserfs")
                            PARSEDOPTS="$(parse_mount_opts commit "$OPTS")"
                            mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE$NOATIME_OPT
                        "xfs")
                            mount $DEV -t $FST $MP -o remount,$OPTS$NOATIME_OPT
                    esac
                    if [ -b $DEV ] ; then
                        blockdev --setra $(($READAHEAD * 2)) $DEV
                    fi
                done
            fi
            echo "."
        stop)
            U_AGE=$((100*$DEF_UPDATE))
            B_AGE=$((100*$DEF_AGE))
            echo -n "Stopping laptop_mode"
            echo 0 > /proc/sys/vm/laptop_mode
            if [ -f /proc/sys/fs/xfs/age_buffer -a ! -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
                # These need to be restored, if there are no lm_*.
                echo $(($XFS_HZ*$DEF_XFS_AGE_BUFFER))         > /proc/sys/fs/xfs/age_buffer
                echo $(($XFS_HZ*$DEF_XFS_SYNC_INTERVAL))     > /proc/sys/fs/xfs/sync_interval
            elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
                # These need to be restored as well.
                echo $((100*$DEF_XFS_AGE_BUFFER))    > /proc/sys/fs/xfs/age_buffer_centisecs
                echo $((100*$DEF_XFS_SYNC_INTERVAL))    > /proc/sys/fs/xfs/xfssyncd_centisecs
                echo $((100*$DEF_XFS_BUFD_INTERVAL))    > /proc/sys/fs/xfs/xfsbufd_centisecs
            fi
            case "$KLEVEL" in
                "2.4")
                    echo "30 500 0 0 $U_AGE $B_AGE 60 20 0"    > /proc/sys/vm/bdflush
                "2.6")
                    echo "$U_AGE"                > /proc/sys/vm/dirty_writeback_centisecs
                    echo "$B_AGE"                > /proc/sys/vm/dirty_expire_centisecs
                    echo "$DEF_DIRTY_RATIO"            > /proc/sys/vm/dirty_ratio
                    echo "$DEF_DIRTY_BACKGROUND_RATIO"    > /proc/sys/vm/dirty_background_ratio
            esac
            if [ $DO_REMOUNTS -eq 1 ] ; then
                cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
                    # Reset commit and atime options to defaults.
                    case "$FST" in
                        "ext3"|"reiserfs")
                            PARSEDOPTS="$(parse_mount_opts_wfstab $DEV commit $OPTS)"
                            PARSEDOPTS="$(parse_yesno_opts_wfstab $DEV atime atime $PARSEDOPTS)"
                            mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
                        "xfs")
                            PARSEDOPTS="$(parse_yesno_opts_wfstab $DEV atime atime $OPTS)"
                            mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
                    esac
                    if [ -b $DEV ] ; then
                        blockdev --setra 256 $DEV
                    fi
                done
            fi
            echo "."
            echo "Usage: $0 {start|stop}" 2>&1
            exit 1
    esac
    exit 0
    --------------------CONTROL SCRIPT END--------------------------------------------
    ACPI integration
    Dax Kelson submitted this so that the ACPI acpid daemon will
    kick off the laptop_mode script and run hdparm.
    ---------------------------/etc/acpi/events/ac_adapter BEGIN-------------------------------------------
    event=ac_adapter
    action=/etc/acpi/actions/battery.sh
    ---------------------------/etc/acpi/events/ac_adapter END-------------------------------------------
    ---------------------------/etc/acpi/actions/battery.sh BEGIN-------------------------------------------
    #!/bin/sh
    # cpu throttling
    # cat /proc/acpi/processor/CPU0/throttling for more info
    ACAD_THR=0
    BATT_THR=2
    # spindown time for HD (man hdparm for valid values)
    # I prefer 2 hours for acad and 20 seconds for batt
    ACAD_HD=244
    BATT_HD=4
    # ac/battery event handler
    status=`awk '/^state: / { print $2 }' /proc/acpi/ac_adapter/AC/state`
    case $status in
            "on-line")
                    echo "Setting HD spindown for AC mode."
                    /sbin/laptop_mode stop
                    /sbin/hdparm -S $ACAD_HD /dev/hda > /dev/null 2>&1
                    /sbin/hdparm -B 255 /dev/hda > /dev/null 2>&1
                    #echo -n $ACAD_CPU:$ACAD_THR > /proc/acpi/processor/CPU0/limit
                    exit 0
            "off-line")
                    echo "Setting HD spindown for battery mode."
                    /sbin/laptop_mode start
                    /sbin/hdparm -S $BATT_HD /dev/hda > /dev/null 2>&1
                    /sbin/hdparm -B 1 /dev/hda > /dev/null 2>&1
                    #echo -n $BATT_CPU:$BATT_THR > /proc/acpi/processor/CPU0/limit
                    exit 0
    esac
    ---------------------------/etc/acpi/actions/battery.sh END-------------------------------------------
    Monitoring tool
    Bartek Kania submitted this, it can be used to measure how much time your disk
    spends spun up/down.
    ---------------------------dslm.c BEGIN-------------------------------------------
    * Simple Disk Sleep Monitor
    *  by Bartek Kania
    * Licenced under the GPL
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <errno.h>
    #include <time.h>
    #include <string.h>
    #include <signal.h>
    #include <sys/ioctl.h>
    #include <linux/hdreg.h>
    #ifdef DEBUG
    #define D(x) x
    #else
    #define D(x)
    #endif
    int endit = 0;
    /* Check if the disk is in powersave-mode
    * Most of the code is stolen from hdparm.
    * 1 = active, 0 = standby/sleep, -1 = unknown */
    int check_powermode(int fd)
        unsigned char args[4] = {WIN_CHECKPOWERMODE1,0,0,0};
        int state;
        if (ioctl(fd, HDIO_DRIVE_CMD, &args)
        && (args[0] = WIN_CHECKPOWERMODE2) /* try again with 0x98 */
        && ioctl(fd, HDIO_DRIVE_CMD, &args)) {
        if (errno != EIO || args[0] != 0 || args[1] != 0) {
            state = -1; /* "unknown"; */
        } else
            state = 0; /* "sleeping"; */
        } else {
        state = (args[2] == 255) ? 1 : 0;
        D(printf(" drive state is:  %dn", state));
        return state;
    char *state_name(int i)
        if (i == -1) return "unknown";
        if (i == 0) return "sleeping";
        if (i == 1) return "active";
        return "internal error";
    char *myctime(time_t time)
        char *ts = ctime(&time);
        ts[strlen(ts) - 1] = 0;
        return ts;
    void measure(int fd)
        time_t start_time;
        int last_state;
        time_t last_time;
        int curr_state;
        time_t curr_time = 0;
        time_t time_diff;
        time_t active_time = 0;
        time_t sleep_time = 0;
        time_t unknown_time = 0;
        time_t total_time = 0;
        int changes = 0;
        float tmp;
        printf("Starting measurementsn");
        last_state = check_powermode(fd);
        start_time = last_time = time(0);
        printf("  System is in state %snn", state_name(last_state));
        while(!endit) {
        sleep(1);
        curr_state = check_powermode(fd);
        if (curr_state != last_state || endit) {
            changes++;
            curr_time = time(0);
            time_diff = curr_time - last_time;
            if (last_state == 1) active_time += time_diff;
            else if (last_state == 0) sleep_time += time_diff;
            else unknown_time += time_diff;
            last_state = curr_state;
            last_time = curr_time;
            printf("%s: State-change to %sn", myctime(curr_time),
               state_name(curr_state));
        changes--; /* Compensate for SIGINT */
        total_time = time(0) - start_time;
        printf("nTotal running time:  %lusn", curr_time - start_time);
        printf(" State changed %d timesn", changes);
        tmp = (float)sleep_time / (float)total_time * 100;
        printf(" Time in sleep state:   %lus (%.2f%%)n", sleep_time, tmp);
        tmp = (float)active_time / (float)total_time * 100;
        printf(" Time in active state:  %lus (%.2f%%)n", active_time, tmp);
        tmp = (float)unknown_time / (float)total_time * 100;
        printf(" Time in unknown state: %lus (%.2f%%)n", unknown_time, tmp);
    void ender(int s)
        endit = 1;
    void usage()
        puts("usage: dslm [-w <time>] <disk>");
        exit(0);
    int main(int ac, char **av)
        int fd;
        char *disk = 0;
        int settle_time = 60;
        /* Parse the simple command-line */
        if (ac == 2)
        disk = av[1];
        else if (ac == 4) {
        settle_time = atoi(av[2]);
        disk = av[3];
        } else
        usage();
        if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) {
        printf("Can't open %s, because: %sn", disk, strerror(errno));
        exit(-1);
        if (settle_time) {
        printf("Waiting %d seconds for the system to settle down to "
               "'normal'n", settle_time);
        sleep(settle_time);
        } else
        puts("Not waiting for system to settle down");
        signal(SIGINT, ender);
        measure(fd);
        close(fd);
        return 0;
    ---------------------------dslm.c END---------------------------------------------
    I edited it slightly, changed the @ to "at" and made the ### lines shorter. it's also from 2.6.8-rc1, but according to the file it didn't change since April anyway.

  • Search Help documentation for SQL

    If you know where is the Help documentation for commands on SQL (PL-SQL), please, tell me where.
    (Description of SELECT INSERT TO_DATE ROWNUM ...)
    Tanks.

    http://tahiti.oracle.com has all the Oracle documentation.
    Justin

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-24

    Hi All,
    Am having serious problem with ORA-24327 and the behavior is very very unpredictable. I have couple of environment where the same error comes in different context. The recent one was surprising. I have describe bellow the environment configuration and the stack trace. The error which surprised me was when I use type � 3 driver while starting weblogic I get ORA �24327 but when I use Type �4 it starts properly. If you could kindly provide solution it would be great help. I would also appreciate if u can provide information which driver to use where performance is the major concern. I would also appreciate if u could provide feed-back from the industry about booth the driver. Apart from that I have couple have environment where it occurs when 10/12 user access simultaneously. All the open connection is closed in program properly still am getting the error.
    Thanks in anticipation.
    Cheers,
    Tapas
    Environment
    OS - SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-Enterprise
    JDK - Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
    Weblogic - 5.1.0 Service Pack 9 04/05/2001 14:59:53 #105983
    Oracle � 8.1.6
    Delaying 10 seconds before making a beuatpool pool connection.
    Pool 1 (Type �3 )
    weblogic.jdbc.connectionPool.beuatpool=\
    url=jdbc:weblogic:oracle,\
    driver=weblogic.jdbc.oci.Driver,\
    loginDelaySecs=10,\
    initialCapacity=10,\
    maxCapacity=20,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=10,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=xxx;password=xxx;server=xxxx
    Pool 2(Type �4)
    weblogic.jdbc.connectionPool.thinPool=\
    url=jdbc:oracle:thin:@xxx:1521:xxx,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=10,\
    capacityIncrement=1,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=15,\
    testTable=dual,\
    props=user=xxx;password=xxx;server=xxx:1521:xxx
    allow=everyone
    ---------- LOGIN ERROR CODE: 24327
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 �
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:149)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    ---------- LOGIN ERROR CODE: 24327
    ---------- LOGIN ERROR CODE: 24327
    Fri Aug 31 00:57:22 GMT-05:00 2001:<I> <JDBC Pool> Sleeping in createResource()
    Fri Aug 31 00:57:23 GMT-05:00 2001:<E> <JDBC Pool> Failed to create connection p
    ool "beuatpool"
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 -
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:172)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at weblogic.common.ResourceException.<init>(ResourceException.java:18)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:182)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at weblogic.common.ResourceException.<init>(ResourceException.java:18)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:125)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)

    Hi,
    I guess you can try some of these:
    - Make sure you're not missing an entry inside your tnsnames.ora file. Thin driver does not require the information inside that file, as opposed to Weblogic's OCI driver. If you are able to connect to the DB using a thin driver, then the problem is most probably (WL)driver-related.
    - Make sure you've properly configured the DB user / password inside your weblogic.properties (config.xml if WL6+).
    - Make sure you're able to access all drivers and classes required (PATH, CLASSPATH, etc...)
    - Make sure the OCI driver version you are using is fully compatible with the Oracle (server) version you are pointing to.
    - Try to access the DB user through some other client (for instance, SQLPlus*).
    Hope this is of some help,
    Freddy.

  • Error level documentation for 36xx errros

    Hi,
    Can anyone point me at the documentation for the Error messages for these errors for Sybase 15.x
    3606, 3607, 3619, 3620, 3622
    Looking in ...
    Exception Handling Errors (3600s)
    but they seems to be missing.
    I can see them in the 12.x manual but I think the severities have changed.
    Just wanting to confirm.

    Thanks - is any of this docmented anywhere that a developer can read it ?
    Since its changed since V12 it might be useful to update the manual.
    Its also a little confusing and inconsistent in that sysmessages shows the errors as severity 10.
           select severity from master..sysmessages where error = 3607
    but the errors are shown as
           Msg 3607, Level 16, State 0
           Server 'S1', Line 1
           Divide by zero occurred.

  • The boot configuration data for your Pc is missing or contains errors: error code 0x000014c

    Hello, 
    See if any body may help here... I get this blue screen:
    RECOVERY
    Your PC needs to be repaired: 
    The Boot Configuration Data for your PC is missing or contains errors.
    file:\\EFI\Microsoft\Boot\BCD
    Error code: 0xc000014c
    You'll need to use the recovery tools on your installation media. If you don't have any installation media (like a a disc or USB device), contact your system administrator or PC manufacturer.
    Press Esc for UEFI Firmware Settings
    First I was able to get into the option 11 and run the whole factory reset, i was so happy because I tought it will be easy.. but then after I did the factory reset.. I keep getting this blue screen. if I press ESC I get into this next screen:
    F1 System Information
    F2 System Diagnostics
    F9 Boot Device Options
    F10 BIOS Setup
    F11 System Recovery
    ENTER - Continue Startup.
    this is what happen when I click any of this options:
    F1 I get into the System Information with no problems, then I click <ESC> to continue and get back to the last screen... then I press F2 and super, I am able to run Memory Test and Hard Drive Check 100% with no problems in any of those, after I am done with my teste I press exit and I am back to the F1,F2, ETC menu... now I want to try F9, F10 or F11. bummer.. in this 3 options I get back to the blue screen described at the beggining of this post. (I already connect a USB with an boot loader, which works perfectly) 
    so I can't do anything, nothing at all!! crazzines. 
    So what I did to check why I can't get into the BIOS or at least to boot from my USB... I removed the botton cover of my laptop and removed the hard drive and that's how then I was or I am able to Log into the BIOS, - I did the changes to boot first from the USB and then from the HD and this is how I was able to boot from the USB - BUT If I connect back the Hard drive, I am not able to get into the BIOS or boot from the USB - so basically I am stuck in this blue screen and I can't boot from a USB if I have the HD connected.. I can't use any option.. no BIOS, nothing.. only if again, i disconnect the HD.  
    This is an:
    HP ENVY TS Sleekbook 4
    PRODUCT NUMBER  D1A99UA#ABA
    SYSTEM BOARD ID: 1894
    Bios F.25 
    **** I though that by updating the BIOS I may be able to get help, nothing. What I did is, I removed the HD and then and boot from the USB and with a DOS command propmt I excecuted the Bios Update from F.21 to f.25... but again, when I installed the hard drive back, BUMMER, nothing I can't do nothing but this silly blue screen. 
    Any idea of what should I do? 
    Thanks in advance.
    This question was solved.
    View Solution.

    If you can't access BIOS with the hard disk connected, you certainly won't be able to boot to the usb recovery flashdrive. That is indicative of a failed hard disk.
    Install a new hard disk and then boot to the recovery flashdrive.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545

    Hi,
    I am getting the following error when i tried to connect to Oracle database from
    a servlet. This exception is coming at the time of getting connection. And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    The problem is solved after exprting the parameter ORACLE_SID=<database_name>
    in Weblogic startup script.
    thank u for the suggestions.
    Durga
    Joseph Weinstein <[email protected]> wrote:
    >
    >
    Durga wrote:
    Hi Joe,
    I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
    /oracle/app/product/8.1.7
    Now i am getting different exception. But still the standalone codeis working.
    any clues why I am getting this exception. I will send the code andthe weblogic
    properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
    uses to find
    Oracle libraries, and our driver libraries etc., is in the same order
    for the
    server as for the shell that is successful on it's own. Make sure your
    Oracle
    client stuff is ahead of any weblogic libraries.
    Joe
    java.sql.SQLException: ORA-12547: TNS:lost contact
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
    C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
    mpl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1631)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
    Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
    Joseph Weinstein <[email protected]> wrote:
    The environment for the server probably doesn't have the same ORACLE_HOME
    setting as your shell when you succeed in a standalone.
    Also, you should be using our connection pools, and you should avoid
    making DriverManager calls in any multithreaded app such as WebLogic.
    Joe
    Durga wrote:
    Hi,
    I am getting the following error when i tried to connect to Oracledatabase from
    a servlet. This exception is coming at the time of getting connection.And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
    Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
    Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Can any one help me out.
    Durga

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12

    Hi,
    I am getting the following error when i tried to connect to Oracle database from a servlet on HP-UX. I am using wls 6.0. And the same code is working when i used in the standalone java program.
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    This is the text for ORA-12545, there is a problem in your NET8 somewhere.
    http://technet.oracle.com/doc/network.815/a67440/ch11.htm#440586

  • File missing (file\BCD error code 0Xc0000034 help need for work!

    file missing (file\BCD  error code 0Xc0000034 help need for work!    what can i do?
    have an p 2000 notebook pc

     Hi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
    What is the model or product number of your notebook? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Missing mapping for field error

    Here is the set up:
    Person extends Party using InheritanceType.JOINED
    Household extends Party_Relationship using InheritanceType.JOINED
    Household has a Set of Persons mapped One to Many unidirectional
    When I use PrimaryKeyJoinColumn on the Person and/or Household to rename the column say to PERSON_POID instead of PARTY_POID and when adding Persons to the Household Set the following error occurs:
    oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Missing mapping for field [PERSON.PARTY_POID].
    Descriptor: RelationalDescriptor(com.dhsnet.cms.domain.Person --> [DatabaseTable(PARTY), DatabaseTable(PERSON)])
    What am I missing? If I do not use the PrimaryKeyJoinColumn mapping this error does not occur. I am stumped! Any help is greatly appreciated.
    Here are the mappings:
    @Entity
    @TableGenerator(name="party", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party", allocationSize=1)
    @Table(name="PARTY")
    @Inheritance(strategy=InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_TYPE")
    public abstract class Party extends AbstractEntity{
    @Entity
    @DiscriminatorValue("PERSON")
    @PrimaryKeyJoinColumn(name="PERSON_POID")
    public class Person extends Party{
    @Entity
    @Table(name="PARTY_RELATIONSHIP")
    @TableGenerator(name="party_relationship", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party_relationship", allocationSize=1)
    @Inheritance(strategy = InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_RELATIONSHIP_TYPE", discriminatorType=DiscriminatorType.STRING)
    public abstract class PartyRelationship extends AbstractEntity {
    @Entity
    @DiscriminatorValue(value="HOUSEHOLD")
    @PrimaryKeyJoinColumn(name="HOUSEHOLD_POID")
    public class Household extends PartyRelationship {
    On the Household Object:
    @OneToMany
    @JoinTable(joinColumns = @JoinColumn(name="HOUSEHOLD_POID"),
    inverseJoinColumns = @JoinColumn(name="PERSON_POID"))
    protected Set<Person> getMembers() {
    return members;
    }

    This looks to be the same/related issue that has already been entered. See
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=1586
    The alternative like you mentioned, is to not use a PrimaryKeyJoinColumn to rename the column in the joined inheritance case.
    Cheers,
    Guy

  • What is this error java.sql.SQLException: Bad format for number ?

    Dear All,
    I am reading few values from database. Then I get this error "MyError:Error : java.sql.SQLException: Bad format for number 'Sarawak' in column 6. " So what is this error referring to. I have checked the database column and its value fits according the data type. Any hints please?

    I have checked the database column and its value fits according the data type.Check again. Then check again. Keep checking until you find your error. You are trying to read a string containing "Sarawak" as a number. You have "getInt(6)" or other numeric type, and the 6th column in the select statement is not numeric.

  • Distribution KSV5 dump: K5 011 ERROR IN COIOB MISSING BUKRS FOR OBJECT

    Hi All,
    Have you met following short dump whenever? It apears during distribution cycle run in update mode? Unfortunately I am not able to find any OSS Notes that could fix it:
    Short text of error message:
    Błąd ERROR IN COIOB MISSING BUKRS FOR OBJECT KSPL01IV1330
    Technical information about the message:
    Message classe...... "K5"
    Number.............. 011
    Variable 1.......... "ERROR IN COIOB"
    Variable 2.......... "MISSING BUKRS"
    Variable 3.......... "FOR OBJECT"
    Variable 4.......... "KSPL01IV1330"
    Thanks,
    Rafał S.

    You should maintain the field control for distributions
    for the company code.
    Please use transaction:
    KCIV
    Table             CCSS       Structure for General CO Fields
    Field             BUKRS      Company Code
    Allocation type   Distribution
    Actual/plan       Actual and Plan
    Here you should set the field:
    NSFLAG ->         D always: unique or table field
    br, Guido

  • Documentation for 1Z0-047 Oracle Database SQL Expert

    Hi,
    Could any one provide the URL for the documentation for the below certificaiton. Please provide the URL for documentation and not the sysllabus.
    *1Z0-047 Oracle Database SQL Expert*
    Regards

    I'm not sure what you mean by the URL to the documentation. Oracle doesn't have documentation that's specifically about the test, but they do have a few SQL books/documentation here:
    http://www.oracle.com/pls/db112/portal.all_books#index-SQL
    The content of the test is listed here:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_047
    You may also want this book:
    http://www.amazon.com/Oracle-Database-Expert-Exam-Guide/dp/0071614214
    and possibly this practice test:
    http://www.selftestsoftware.com/product.aspx?product_id=1Z0-047&dept_id=6083

  • Documentation for Workbench Error Messages

    Where is the documentation for all workbench error messages. The workbench help says to look in "Oracle 9iAS TopLink: Troubleshooting Guide". Does this documentation exist? If so, where is it?
    Thanks.

    The 9iAS documentation is available on OTN at:
    http://download.oracle.com/docs/cd/A97688_13/index.htm#toplink

Maybe you are looking for

  • SP2013 WF works for admin but not end-users

    A simple SP2013 WF calls a SP2010 WF to send email, simple.  Works for me (admin) but when a SP user edits an item on the list (which fires the WF), the WF gets to the 2010 call, and fails with this error... RequestorId: f8c56627-e4e5-5a26-0000-00000

  • Design Question for a Custom Field

    I am designing a custom Field, GridField, that creates a grid of n X m cells. Each column has a width, each row has a height, and each cell cell can have a color, border, text, and font. My question deals with how to treat the borders of the cell. It

  • Is there a way to edit album info without having to update each song individually?

    So I am currently working on ripping my CD collection into iTunes. However sometimes the iTunes default information is wrong (album artwork, year, etc.) So is there a way I can update an album quicker than having to select each track and go one by on

  • Material Creation Workflow

    Hi Friends ,                      When a material is created (MM01) , using user exit i want to create an event which triggers the workflow.                      I'm confused of  function module to be used for creating event. SWE_EVENT_CREATE or   SW

  • Dba_data_files basic query

    I ran a query against dba_data_files table for one datafile. It shows the Bytes is more than Maxbytes. SQL> select BYTES/1024.0/1024.0,MAXBYTES/1024.0/1024.0,USER_BYTES/1024.0/1024.0, AUTOEXTENSIBLE from DBA_DATA_FILES where FILE_NAME = 'F:\ORA1\DATA