Getting System Data Sources' Names under Windows

Hi,
How can I get the names of the System Data Sources in Windows from my java code?
Thank you.
Shakeel

You can't. At least not using plain Java. You could use JNI to get that information, I expect. But it's more likely that if you asked your first question (the one which you decided had the answer "Get all the DSNs") you might get more useful help.

Similar Messages

  • Data source names

    I'm developing an application, which needs displaying of DSNs created in the machine on which the application is running. In some forum listings, the method given is to access the native libraries and access the drivers. I would like to know, if there is any process in Java, through which I can get the data source names, without using the native libraries.
    Thanks
    Ravi Shankar.

    Unfortunately there is no equivalent JDBC method for the ODBC SQLDataSources function.

  • ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2

    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2.I made a application in asp.net c#.I am using ODBC connection.When I deployed my application in windows server2008 r2.There
    is no Microsoft ODBC driver shown in ODBC Data source administrator.Then I go to the C:\Windows\SysWOW64 and open  Odbcad32.exe and add Microsoft ODBC2 driver for Oracle and when I run my application I got following error
    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    I am using follwoing string
     <connectionStrings>
    <add name="theconnetion" connectionString="DSN=abdb;UID=abc;PWD=xyz"/>
     </connectionStrings>
    Guide me What I do?

    Did you add a System DSN or a User DSN? If you added a User DSN from your own login, the asp.net application will not be able to use it unless its application Pool in IIS is configured to run under the same credentials that you used for creating
    the DSN. It's better if you add a System DSN.
    Also, be careful to ensure that you are using a 64 bit DSN, unless you configure the application to run in 32 bits. If the 64 bit application attempts to use the 32 bit driver you get the same error message "Data source name not found and no default
    driver specified". See this KB article:
    http://support.microsoft.com/kb/942976/en-us

  • Getting "Data source name not found and no default driver specified"

    Hi all,
    I'm trying to create a connection in SQL Developer (1.5.0.53) to an Access MDB using the Access Tab on the "New / Select Database Connection" window. I navigate to my MDB and then click the Test button and this is what I get:
    "Status : Failure - Test failed: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
    I do have the 1.6 JVM.
    Not a show stopper, but would like to see how SQL Developer works with Access tables, so any help would be appreciated.
    TIA,
    Steve

    This error message sounds like the MS Access ODBC driver or the Jet Engine drivers are not found. First of all you need to check the PATH environment setting if it includes the windows/system32 directory as this is the default directory for the MS Access ODBC drivers.
    Next check if you are a normal user or a local admin user. As local admin open the ODBC Adminstartor (Control Panel/administrative tools) and check if a MS Access ODBC driver is registered.
    If all above is true, please get from www.sysinternals.com and et the process monitor. Open it and apply a filter: Process name is sqldevloper.exe
    Then start SQL Developer and open your created MS Access link. Process mon will now track all info containing all additional DLLs it tries to load.
    Check out the generated log file from the bottom (last info about the mdb file load) to the top and look if it really finds all libraries, especially the MsAccess and Jet libraries.

  • EIS : Data source name not found and no default driver specified

    Hi
    I have Oracle Essbase installed in a x86_64 machine.
    I have configured odbc 64 bits how is indicated in SQL Interface Guide, but when try to create catalog the message "ODBC Error [DataDirect][ODBC lib] Data source name not found and no default driver specified"
    The is.sh script set these environment variables:
    #!/usr/bin/ksh
    export ISHOME=/u01/app/oracle/Middleware/EPMSystem11R1/products/Essbase/eis/server
    export EPM_ORACLE_HOME=/u01/app/oracle/Middleware/EPMSystem11R1
    export HYPERION_HOME=/u01/app/oracle/Middleware/EPMSystem11R1
    export ARBORPATH=$ISHOME
    export ESSBASEPATH=$ISHOME
    export ISLOADINFO=$ISHOME/loadinfo
    export ISODBC=$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0
    export ODBCINI=$EPM_ORACLE_HOME/common/ODBC-64/Merant/6.0/odbc.ini
    export TEMP=/tmp
    case `uname` in
    AIX)
    export JAVA_HOME=$EPM_ORACLE_HOME/../jdk160_11
    export LIBPATH=$ISHOME/esslib:$ISHOME/islib:$ISODBC/lib:$JAVA_HOME/lib:$LIBPATH;;
    HP-UX)
    export JAVA_HOME=$EPM_ORACLE_HOME/../jdk160_11
    export SHLIB_PATH=$ISHOME/esslib:$ISHOME/islib:$ISODBC/lib:$JAVA_HOME/lib:$SHLIB_PATH;;
    Linux)
    export JAVA_HOME=$EPM_ORACLE_HOME/../jdk160_11
    export LD_LIBRARY_PATH=$ISHOME/esslib:$ISHOME/islib:$ISODBC/lib:$JAVA_HOME/lib:$LD_LIBRARY_PATH ;;
    SunOS)
    export JAVA_HOME=$EPM_ORACLE_HOME/../jdk160_11
    export LD_LIBRARY_PATH=$ISHOME/esslib:$ISHOME/islib:$ISODBC/lib:$JAVA_HOME/lib:$LD_LIBRARY_PATH;;
    echo `uname -a`;;
    esac
    export CLASSPATH=$EPM_ORACLE_HOME/common/jlib/11.1.2.0/epm_j2se.jar
    export PATH=$JAVA_HOME/bin:$ISHOME/bin:$PATH

    Hi Andres, Can you please tell me how you resolved this issue? I'm getting the same error when I start EIS as windows services, but when I start from console it works fine.
    Updated................Issue resolved!!!
    OK. Upon researching other windows forums found that I had to add System DSN to ODBC administrator under "C:\Windows\*SysWOW64*\odbcad32.exe". This is because the server is a windows 64-bit machine.
    Thanks
    Edited by: U12345 on Dec 14, 2010 5:58 AM
    Edited by: U12345 on Dec 14, 2010 6:01 AM

  • [unixODBC][Driver Manager]Data source name not found, and no default driver

    Hi,
    I'm running
    Red Hat Linux 5, MySQL and BOXI 3.1
    I try and schedule a report in the CMC and the report fails with the error
    A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver specified. (WIS 10901)
    I've went through the steps in the Bus Obj's Documentation outlining how to install the unixODBC (though this doco was for R2 - I'm not certain whether this install is needed for 3.1).  
    Error WIS 10901 details
    Database error: . Contact your administrator or database supplier+
    for more information. (WIS 10901)
                  The database that provides the data to this document has generated an error.
    Cause
                  Details about the error are provided in the section of the message indicated
                  +by the field code: .
                  Contact your BusinessObjects administrator with the error message
    Action
                  information or consult the documentation provided by the supplier of the
                  database.
    Any pointers suggestions on how to set up correctly the unixODBC will be looked into.
    Thanks for taking the time to view this post.
    Cheers

    Hi again Aravind,
    I hope you're not beginning to wish you had never answered that first question from me since it seems as if I'm now backing up the truck with regard to the entire question. If I'm asking too much from you let me know I don't wanna overstep the line with repect to what should and shouln't be asked in these forums'
    anyway I looked in that env.sh script. It was huge (pity I can't attach the file, I've appended it but it makes these threads somewhat lengthy)
    DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
        export DEFAULT_ODBCFILE
        +ODBC_HOME="$odbc"+
        export ODBC_HOME
    also
      # setup the mysql env variables
        if [ -d "$BOBJEDIR"/mysql ]; then
                # mysql env variables
    set up the odbc symlink to work around:*
    The DataDirect SQL Server ODBC driver on UNIX will not function properly under a*
    locale other than "en_US" due to strong dependencies on their locale files.*
                MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
                export MYSQL_UNIX_PORT
        We want to be able to source the config file multiple times.
    fi
    if [ -d "$BOBJEDIR"/tomcat ]; then
    set the JAVA_OPTS for tomcat
    I see what you were referring to earlier with
    if [ -d "$ODBC_HOME/locale" ]; then
          the javascript files are kept here
    The machine name
    The user name
    MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`The default registry
          if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
            ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
          fi
        fi
    Again cheers for your help in this matter.
    #!/bin/sh
    BOBJEDIR="/home/eberwick/BO_3_1/bobje/"
    export BOBJEDIR
    BODIR="`dirname $BOBJEDIR`/"
    export BODIR
    DEFAULTFILE="$
    check for existence of u flag, if it is there, turn it off.
    Set a flag so we don't source the environment more than once
    webi config file
    ccm.config"
    if [ -f "$DEFAULTFILE" ]; then
        . "$DEFAULTFILE"
    fi
    . "${BOBJEDIR?}setup/modify_ko_locale.sh"
    SOFTWARE=`uname -s`
    OBJECT_MODEL=`grep Platform $BODIR/setup/ProductID.txt | awk '{print $4;}'`
    [ -z "$OBJECT_MODEL" ] && OBJECT_MODEL=32
    SOFTWAREPATH=`grep SoftwarePath $BODIR/setup/ProductID.txt | awk '{print $3;}'`
    U_FLAG=0
    if [ X"$SOFTWARE" = "XHP-UX" ]; then
    unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
    raise the ulimits to max allowed
    undo that bug workaround from above
    figure out what architecture we're on
    now that we're localized, deal with unknown architecture
    we include English, as localization may have failed
    set the JDK variable
        if [ x`echo $- | grep "u"` != "x" ]; then
            set +u
            U_FLAG=1
        fi
    fi
    if [ x"$BOBJE_ENV_SOURCED" = x ]; then
        if [ -f "$setup/boconfig.cfg" ]; then
        HKEY_LOCAL_MACHINE="$setup/boconfig.cfg"
            export HKEY_LOCAL_MACHINE
        fi
        BOBJE_ENV_SOURCED="true"
        export BOBJE_ENV_SOURCED
        BOBJEVERSION="12.0"
        export BOBJEVERSION
        LANGWAS="$LANG"
        unset LANG
        LC_ALLWAS="$LC_ALL"
        unset LC_ALL
        ulimit -Sn `ulimit -Hn` # max file descriptors
        ulimit -S -c `ulimit -H -c` # max core file size
        ulimit -S -d `ulimit -H -d` # max data segment size
        ulimit -S -f `ulimit -H -f` # max file size
        ulimit -S -s `ulimit -H -s` # max stack
        ulimit -S -t `ulimit -H -t` # max CPU time
        LANG="$LANGWAS"; export LANG
        unset LANGWAS
        LC_ALL="$LC_ALLWAS"; export LC_ALL
        unset LC_ALLWAS
        case X"$SOFTWARE" in
            XLinux) SOFTWARELC="linux"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12" ;;
            XAIX)   SOFTWARELC="aix"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX=".12.0${SHAREDLIBSUFFIX?}"; CB1SYMLINKLIBSUFFIX=".12${SHAREDLIBSUFFIX?}";;
            XSunOS) SOFTWARELC="solaris"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
            XHP-UX)
                    SOFTWARELC="hpux";
                    if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
                            SHAREDLIBSUFFIX=".so";
                    else
                            SHAREDLIBSUFFIX=".sl";
                    fi
                    CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0";
                    CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
        esac
        export SOFTWAREPATH
        export SOFTWARE
        export SHAREDLIBSUFFIX
        export CB1LIBSUFFIX
        export CB1SYMLINKLIBSUFFIX
        if [ "$SOFTWAREPATH" = "" ]; then
            echo "$UNKNOWNPLATFORM (unknown platform): $SOFTWARE"
            exit 1
        fi
        if [ -d "$BOBJEDIR"/jdk ]; then
          JAVA_HOME="$jdk"
          export JAVA_HOME
        fi
          JAVA_OPTS="-d$OBJECT_MODEL -Dbobj.enterprise.home=$
    fi
    setting AAHOME here so when CAD starts the value is set
    enterprise120 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=false"
          if [ "$SOFTWARE" = "AIX" -o "$SOFTWARE" = "SunOS" -o "$SOFTWARE" = "Linux" -o "$SOFTWARE" = "HP-UX" ]; then
            JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m"
          fi
          export JAVA_OPTS
        if [ -d "$Dashboard_Analytics_120" ]; then
            AAHOME="$Dashboard_Analytics_120"
            export AAHOME
        fi
        WCSDIR="$enterprise120/$SOFTWAREPATH/wcs/"
        export WCSDIR
        WCSBINDIR="$bin/"
        export WCSBINDIR
        WCSCOMPONENTDIR="$components/"
        export WCSCOMPONENTDIR
        BINDIR="$enterprise120/$SOFTWAREPATH/"
        export BINDIR
        LIBDIR="$enterprise120/$SOFTWAREPATH/"
        export LIBDIR
        PLUGINDIR="$enterprise120/packages/"
        export PLUGINDIR
        PLUGINDIST="$enterprise120/$SOFTWAREPATH/plugins/"
        export PLUGINDIST
        LOGDIR="$append the new valuelogging/"
        export LOGDIR
        if [ x"$BOE_LOGGER_ENVIRONMENT" = x ]; then
            BOE_LOGGER_ENVIRONMENT="-loggingPath $LOGDIR"
        else
            BOE_LOGGER_ENVIRONMENT="$BOE_LOGGER_ENVIRONMENT -loggingPath $LOGDIR"
        fi
        export BOE_LOGGER_ENVIRONMENT
        SCRIPTDIR="$enterprise120/generic/"
        export SCRIPTDIR
        JAVASCRIPTDIR="$setup/jscripts/"
        export JAVASCRIPTDIR
        MACHINENAME=`uname -n`
        export MACHINENAME
        removeUTF8SpecificsForKorean
        STRIPPEDMACHINENAME=`hostname | sed -e 's/\..*//'`
        export STRIPPEDMACHINENAME
        if [ x"$BOBJEUSERNAME" = x ]; then
          BOBJEUSERNAME=`id | sed -e "s|).\$||" -e "s|^.(||" `
          export BOBJEUSERNAME
        fi
        restoreUTF8SpecificsForKorean
        DEFAULT_REGFILE="$BOBJEDIR"setup/.defaultreg
        export DEFAULT_REGFILE
        REGFILE="$BOBJEDIR"data/.bobj
        export REGFILE
        BOE_REGISTRYHOME="$REGFILE/registry"
        export BOE_REGISTRYHOME
        DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
        export DEFAULT_ODBCFILE
        ODBC_HOME="$odbc"
        export ODBC_HOME
    the PID file location
        PIDDIR="$BOBJEDIR"serverpids
        export PIDDIR
        SQLRULEDIRECTORY="$LIBDIR"
        export SQLRULEDIRECTORY
        PATH="$BINDIR:$crpe/xvfb:$PATH"
        export PATH
        CRPEPATH="$enterprise120/$SOFTWAREPATH/crpe/"
        export CRPEPATH
        MWHOME="$mw/"
        export MWHOME
        BOBJEXVFBPATH="$xvfb/"
        export BOBJEXVFBPATH
        MWUSER_DIRECTORY="$once the crpe is in, we should exit if this file doesn't exist.
    Uncomment this to turn off Xvfb security and allow connections from
    everyone. 
    MW_XVFB_AC="1"
    export MW_XVFB_AC
    Use a seperate .Xauthority file.  Comment out this line if you want
    to use the user's .Xauthority file for storing the Xvfb authentication
    tokens.
    registry/"
        export MWUSER_DIRECTORY
        MWRT_MODE="professional"
        export MWRT_MODE
        MWREGISTRY=":$MWUSER_DIRECTORY/hklm_$
    Mainwin can deadlock unless this is set
    Prevents Mainwin from popping up dialogs in some situations, causing a deadlock
    variables merged from RAS
    XVFB Manager
    Environment Variables:
          MW_XVFB_EXE         = Name of the Xvfb exe.
                                Default is 'Xvfb'.
          MW_XVFB_DAEMON      = Name of the XvfbDaemon exe.
                                Default is 'XvfbDaemon'.
          MW_XVFB_DAEMON_PORT = Port number that Xvfb Daemon will listen too.
                                Default is 5222.
          MW_XVFB_DAEMON_HOST = Host on which the XvfbDeamon is running.
                                Default is Local host.
          MW_XVFB_DAEMON_XVFB = Number of Xvfb to run.
                                Default is '5'.
          MW_XVFB_DAEMON_DISPLAY = Starting display number for Xvfb.
                                Default is '1'.
          MW_XVFB_DAEMON_PROFILE = Path to the Security Profile for Xvfb.
                                Default is 'SecurityProfile'.
          MW_XVFB_DAEMON_TRACE = Set to turn on tracing information.
                                Default is undefined.
          MW_XVFB_DAEMON_DIE  = Turn off the exit code if no more connections.
                                Default is undefined.
          MW_XVFB_FONT = Locations from which to load font
    By this symbol being defined, the checking for a current set display is disabled.
    Set to turn on tracing info when defined.  Default is undefined.
    MW_XVFB_DAEMON_TRACE=defined
    export MW_XVFB_DAEMON_TRACE
    RAS Home
    .bin"
        export MWREGISTRY
        MWCORE_PRIVATE_DATA="$MWUSER_DIRECTORY/core_data"
        export MWCORE_PRIVATE_DATA
        if [ -f "$MWHOME"setmwruntime ]; then
            . "$MWHOME"setmwruntime
        fi
        MWNT_OLE_DOCS=true
        export MWNT_OLE_DOCS
        MWPRINTER_DPI=600
        export MWPRINTER_DPI
        MWVISUAL_CLASS="TrueColor"
        export MWVISUAL_CLASS
        if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
            MWTHREAD_STACK="200000"
        else
            MWTHREAD_STACK="FA000"
        fi
        export MWTHREAD_STACK
        MWFONT_DIR_PATH="$fonts/"
        export MWFONT_DIR_PATH
        MW_XVFB_DAEMON_FONT="$misc/"
        export MW_XVFB_DAEMON_FONT
        XAUTHORITY="$xvfb/.Xauthority"
        export XAUTHORITY
        MWDEBUG_LEVEL=0
        export MWDEBUG_LEVEL
        MWINVISIBLE_DISPLAY=1
        export MWINVISIBLE_DISPLAY
       MWNO_SIGCHLD_IGNORE=1
       export MWNO_SIGCHLD_IGNORE
       MWLOOK=motif
       export MWLOOK
            MW_XVFB_DAEMON_PROFILE="$BOBJEXVFBPATH/SecurityPolicy"
            export MW_XVFB_DAEMON_PROFILE
            MW_XVFB_DAEMON_IGNORE_DISPLAY="true"
            export MW_XVFB_DAEMON_IGNORE_DISPLAY
            if [ "$SOFTWARE" = "HP-UX" ]; then
                MW_XVFB_DAEMON_XVFB=10
            else
                MW_XVFB_DAEMON_XVFB=5
            fi
            export MW_XVFB_DAEMON_XVFB
            MWNO_FILE_LOCKING=true
            export MWNO_FILE_LOCKING
            MWNO_SIGNAL_CATCHING=true
            export MWNO_SIGNAL_CATCHING
        RASHOME="$enterprise120/$SOFTWAREPATH/ras/"
        export RASHOME
        LIBRARYPATH="$LIBDIR:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:$enterprise120/$SOFTWAREPATH/crpe:$:$PLUGINDIST/desktop/CrystalEnterprise.Report:$enterprise120/$SOFTWAREPATH/ras:$
    May optionally be set to MALLOCMULTIHEAP=heaps:n[,considersize]
    where n is scaled to the number of CPUs (usually 2x).
    Setting to MALLOCMULTIHEAP=1 enables system defaults.
    setting MALLOCMULTIHEAP to 'considersize' fixes an AIX memory leak and significantly reduces the memory footprint.
    env variable to fix the default cpu affinity
    env variable to fix dlopen/dlclose behaviour to be more like ELF-based systems
    aix thread stack overflow guarding : won't catch if overflow is more than 4k, but better than nothing
    aix specific ulimit changes
    unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
    undo that bug workaround from above
    set the aix thread scope to system (1:1)
    better core naming for aix 5
    Check if memory windows is enabled in the kernal parameters
    We will support memory windows, either through the "BOE120_HP_MEMWIN_ID" environment variable,
    or through the "BusinessObjectsEnterprise120" memory window key in /etc/services.window
    Use memory windows if available on HP-UX.
    For both HPUX Itanium and PA-RISC
    Reduce the number of arenas from 8 (default) to 1 (min) which solves memory blowup issue.
    Enable the thread local cache to compensate.
    http://www.docs.hp.com/en/B2355-60130/malloc.3C.html
    mysql/lib"
        if [ "$SOFTWARE" = "AIX" ]; then
            LIBPATH="$LIBRARYPATH:$LIBPATH"
            export LIBPATH
            if [ x"$MALLOCMULTIHEAP" = x ]; then
                CRConfig env variable for DCP
                MALLOCMULTIHEAP="considersize"
                export MALLOCMULTIHEAP
            fi
            RT_GRQ=ON
            export RT_GRQ
            LDR_CNTRL=IGNOREUNLOAD
            export LDR_CNTRL
            AIXTHREAD_GUARDPAGES=1
            export AIXTHREAD_GUARDPAGES
            LANGWAS="$LANG"
            unset LANG
            LC_ALLWAS="$LC_ALL"
            unset LC_ALL
            ulimit -S -m `ulimit -H -m` # max memory
            LANG="$LANGWAS"; export LANG
            unset LANGWAS
            LC_ALL="$LC_ALLWAS"; export LC_ALL
            unset LC_ALLWAS
            AIXTHREAD_SCOPE="S"
            export AIXTHREAD_SCOPE
            Version=`uname -v`
            Release=`uname -r`
            if [ "$Version" -gt 4 ]; then
                CORE_NAMING=ON
                export CORE_NAMING
            fi
            AIXTHREAD_MUTEX_DEBUG=OFF
            export AIXTHREAD_MUTEX_DEBUG
            AIXTHREAD_COND_DEBUG=OFF
            export AIXTHREAD_COND_DEBUG
            AIXTHREAD_RWLOCK_DEBUG=OFF
            export AIXTHREAD_RWLOCK_DEBUG
        elif [ "$SOFTWARE" = "HP-UX" ]; then
            if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
                SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/IA64W.0/server"
            else
                SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/PA_RISC2.0/server"
            fi
            export SHLIB_PATH
            MAX_MEM_WINDOW=`/usr/sbin/kctune | grep max_mem_window | awk '{print $2}'`
            if [[ "$MAX_MEM_WINDOW" != "0" ]]; then
                if [[ "$BOE120_HP_MEMWIN_ID" = "" && -r "/etc/services.window" && -x "/usr/bin/getmemwindow" ]]; then
                  BOE120_HP_MEMWIN_ID="`/usr/bin/getmemwindow BusinessObjectsEnterprise120`"
                  export BOE120_HP_MEMWIN_ID
                fi
                if [[ -x "/usr/bin/setmemwindow" ]]; then
                    if [[ "$BOE120_HP_MEMWIN_ID" != "" ]]; then
                        CE_CMDLINE_PREFIX="/usr/bin/setmemwindow -f -i $BOE120_HP_MEMWIN_ID "
                    fi
                fi
                export CE_CMDLINE_PREFIX
            fi
            export MARENA_OPTS=1:8
            export MCACHE_OPTS=100:8:0
        elif [ "$SOFTWARE" = "Linux" ]; then
            LD_LIBRARY_PATH="$LIBRARYPATH:$perl/lib/5.8.0/i386-linux-thread-multi/CORE:$LD_LIBRARY_PATH"
            export LD_LIBRARY_PATH
        else
            LD_LIBRARY_PATH="$LIBRARYPATH:$LD_LIBRARY_PATH"
            export LD_LIBRARY_PATH
        fi
        CRCONFIGFILE="$java/CRConfig.xml"
        if [ -f "$CRCONFIGFILE" ]; then
          CRConfig11="$CRCONFIGFILE"   
          export CRConfig11
        fi
        if [ -d "$ODBC_HOME/locale" ]; then
    set up the odbc symlink to work around:
    The DataDirect SQL Server ODBC driver on UNIX will not function properly under a
    locale other than "en_US" due to strong dependencies on their locale files.
          MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`
          if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
            ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
          fi
        fi
    This was originally called TMPDIR, but now MainWin supports MW_TMPDIR, so we export MW_TMPDIR
    ADAPT00506764 tracks the original issue with TMPDIR/Essbase Connectivity
    MySQL now sets its TMPDIR in mysqlstartup.sh
    set the tmp dir locally, if the value is not already set.
        if [ x"$MW_TMPDIR" = x ]; then
          if [ ! -d "$BOBJEDIR"/tmp ]; then
            mkdir -p "$BOBJEDIR"/tmp
          fi
          MW_TMPDIR="$BOBJEDIR"/tmp
          export MW_TMPDIR
        fi
    Comment this out to turn off custom Solaris memory allocator
        if [ "$SOFTWAREPATH" = "solaris_sparc" ]; then
            LD_PRELOAD="libhoard.so.1"
            export LD_PRELOAD
    Need to set up 64-bit specific library path so that 64-bit processes will
    preload the 64-bit version of the memory allocator, and not the 32-bit version
            LD_LIBRARY_PATH_64="$enterprise120/solaris_sparcv9"
            export LD_LIBRARY_PATH_64
        fi
    setup the mysql env variables
        if [ -d "$BOBJEDIR"/mysql ]; then
    mysql env variables
                MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
                export MYSQL_UNIX_PORT
        fi
    call env.sh from sub-directories (presumably from add-on installs)
        for dir in "${BOBJEDIR?}/setup"/*
        do
            if [ -r "${dir?}/env.sh" ]; then
                . "${dir?}/env.sh"
            fi
        done
    fi
    if [ X"$SOFTWARE" = "XHP-UX" ]; then
    check for existence of u_flag, if it is, turn it back on.
        if [ "$U_FLAG" = 1 ]; then
            set -u
        fi
    fi

  • Tomcat 6/Java/mySql: Data source name not found

    I installed the following on my laptop which has a Windows 2000 operating system:
    - ODBC Connector for mySql
    - the MySql Connector/J for Java
    ODBC
    In the Data Source ODBC Administrator of the Control panel I added a Data Source name for the mySql Database:
    Data Source Name: mysql
    Server: localhost
    Database: mysql
    When I click the Test button I get the message: Success; Connection was made!
    TOMCAT
    C:\apache-tomcat-6.0.18
    I copied mysql-connector-java-5.0.8-bin.jar into:
    - the lib folder
    - the lib folder under webapps>WEB-INF\testapp
    I added the above paths to CLASSPATH
    TOMCAT SERVER.XML
    In the server.xml file under the CONF folder I entered
    <Context path="/testapp" docBase="testapp" debug="0"
    reloadable="true" crossContext="true">
    <Resource name="jdbc/mysql"
    auth="Container"
    type="javax.sql.DataSource"
    description="The connection pool will be bound into JNDI with the name
    java:/comp/env/jdbc/MySQLDB">
    </Resource>
    <ResourceParams name="jdbc/mysql">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>5</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>test</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost/mysql</value>
    </parameter>
    </ResourceParams>
    </Context>
    However, when I try to run a java servlet, I am getting the following error:
    SqlException: Could not connect to database
    [ODBC Driver Manager] Data source name not found and no default driver specified
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection(“jdbc:mysql://localhost/mysql”, strUserId, strPassword);
    MySql is actually installed on c:\Program Files\MySql\Mysql 5.0
    What am I missing? How can I get the mySql connection to work?
    Thanks,
    Robin

    You seem to be specifying JDBC driver while you are trying to connect to your database using ODBC,
    RobinHR wrote:
         <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
                        and ,
    RobinHR wrote:
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection(“jdbc:mysql://localhost/mysql”, strUserId, strPassword);
    *********************You would be using "sun.jdbc.jdbcodbc.Driver" rather!
    Refer MySQL sample examples/documentation on how to connect to your database using ODBC
    And this on how to create a DSN
    Edited by: anamupota on Jan 16, 2009 8:27 AM

  • WIS: 10901 Data source name not found and no default driver specified(ODBC)

    Hi, gurus.
    We've created a universe based on Excel spredsheet or MS Access which is using ODBC connection. Then, I try to create query (which is using these universe) in QAAWS or in InfoView, and when I add a filter object to the query, the error occurs:
    "GetDatasourceObject LOV exception (error WIS: 10901)".
    If I don't choose any filter options and want to create query, I'm getting the error: ' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (error WIS: 10901)'.
    We tried to do this in different operations systems - Windows 7 (32 bit) and XP (32 bit).
    Anymore, we can use this universes at web intelligence rich client with or without filters.
    Need to solve this problem. Please help us.

    Dear all,
    I got the same problem, I have installed BOE 4.0 at Win XP 64 bits, and also installed Sybase IQ 15.2 (32bit) ODBC, and has create the odbc entry "shkdemo" at the System Tab. However, I still got the same error when using the the "Interactive Analysis" thru "BI Launch pad".
    For BOE 4.0, I found that I could only use the BOE Client tools (Universal Design Tool) to create the connection, this client tool I installed it at another 32 bit XP laptop, and I also installed the Sybase IQ 15.2 (32bit) ODBC with the same odbc entry "shkdemo", and using the "Interactive Analysis Desktop, I could be able to create report with data from IQ 15.2.
    Kindly advise, why I still got the error of "10901 Data source name not found and no default driver specified(ODBC)" when I use the "Interactive Analysis" thru "BI Launch pad".
    Cheers,
    Hilda

  • OBDC Data Source Error - Data source name not found and no default driver specified

    Hello,
    I get this error whenever I try to use the "Modify Microsoft Access Database" tab to update my
    Access 2000 database after a conversion:
    Unable to connect to target database.
    java.sql.SQLException: [Microsoft] [ODBC Driver Manager]
    Data source name not found and no default driver specified
    Now, the weird thing is that when I log in as Administrator and go to the "Control Panel" there is
    no "ODBC Data Sources" option to chose from. So I went to the "Microsoft ODBC Administrator"
    from the "Configuration and Migration Tools" tab instead. I tried configuring "omwb_msaccess"
    under the "User DSN" tab with both the name of my Access file, and the "small.mdb" file that was
    in the omb directory. No go for either one. Whatever I try I still get the same pop-up box.
    Question:
    (1) What should I be putting for the "ODBC Data Source" when I try to Migrate my Access Database?
    (2) Any other idea/configuration issue I might be missing that could do this? The process works up
    to the Access Update point, and I configured the repository correctly.
    Thanks
    Aaron - [email protected]

    Nope, I'd already tried both of those things. I checked again, but no go.
    I think the problem may be that I'm not entering the right value in the
    "ODBC Data Source" field on the Migration Workbench "Modify Microsoft
    Access Database" form - the same one where you enter a "Username" and
    "Password" for the conversion. What should I be entering here? What is
    the standard filename?
    The log files aren't very informative to me. Here is the odbcconf.log:
    ==============
    ODBCConf called with arguments: '/S /Lv odbcconf.log /F C:\WINNT\System32\mdaccore.rsp'
    Data Struct:
         Reboot First : 0
         Use Response File : 1
         Response File : 'C:\WINNT\System32\mdaccore.rsp'
         Erase Response File: 0
         Silent : 1
         Continue on Error : 0
         Log Mode : 2
         Log File : 'odbcconf.log'
         Actions:
              8, '(null)', '(null)', ''
              6, 'MS Code Page Translator|Translator=MSCPXL32.dll||', '(null)', '"MS Code Page Translator|Translator=MSCPXL32.dll||"'
              5, 'Microsoft ODBC for Oracle|Driver=msorcl32.dll|Setup=msorcl32.dll||', '(null)', '"Microsoft ODBC for Oracle|Driver=msorcl32.dll|Setup=msorcl32.dll||"'
              1, 'Microsoft ODBC for Oracle', 'CPTimeout=60', '"Microsoft ODBC for Oracle" "CPTimeout=60"'
              17, 'simpdata.tlb', '(null)', '"simpdata.tlb"'
    EXECUTING ACTIONS
    Executing Action: INSTALLDRVRMGR
              arg1: '(null)'
              arg2: '(null)'
              args: ''
    Install Driver Manager succeeded
              Return HR: 0x0
    Executing Action: INSTALLTRANSLATOR
              arg1: 'MS Code Page Translator|Translator=MSCPXL32.dll||'
              arg2: '(null)'
              args: '"MS Code Page Translator|Translator=MSCPXL32.dll||"'
    INSTALLTRANSLATOR SQLInstallTranslatorEx succeeded
              Return HR: 0x0
    Executing Action: INSTALLDRIVER
              arg1: 'Microsoft ODBC for Oracle|Driver=msorcl32.dll|Setup=msorcl32.dll||'
              arg2: '(null)'
              args: '"Microsoft ODBC for Oracle|Driver=msorcl32.dll|Setup=msorcl32.dll||"'
    INSTALLDRIVER SQLInstallDriverEx succeeded
              Return HR: 0x0
    Executing Action: CONFIGDRIVER
              arg1: 'Microsoft ODBC for Oracle'
              arg2: 'CPTimeout=60'
              args: '"Microsoft ODBC for Oracle" "CPTimeout=60"'
    CONFIGDRIVER SQLConfigDriver succeeded
              Return HR: 0x0
    Executing Action: REGTYPELIB
              arg1: 'simpdata.tlb'
              arg2: '(null)'
              args: '"simpdata.tlb"'
              Return HR: 0x0
    ===========
    Here is a snippet from the error.log:
    ==========
    ** Oracle Migration Workbench
    ** Release 9.2.0.1.0 Production
    ** ( Build 20020308 )
    ** ORACLE_HOME: c:\
    ** user language: en
    ** user region: US
    ** user timezone: PST
    ** file encoding: Cp1252
    ** java version: 1.1.8.16
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 5.0
    ** Classpath:
    c:\\Omwb\olite\Oljdk11.jar;c:\\Omwb\olite\Olite40.jar;C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;c:\\Omwb\jlib;c:\\Omwb\jlib\Omwb.jar;c:\\Omwb\jlib\oembase-9_2_0.jar;c:\\Omwb\plugins\SQLServer6.jar;c:\\Omwb\plugins\SQLServer7.jar;c:\\Omwb\plugins\SQLServer2K.jar;c:\\Omwb\plugins\Sybase11.jar;c:\\Omwb\plugins\Sybase12.jar;c:\\Omwb\plugins\MSAccess.jar;c:\\Omwb\plugins\MySQL.jar;c:\\Omwb\drivers\mm.mysql.jdbc-1.2a;c:\\Omwb\plugins\Informix7.jar;c:\\Omwb\drivers\ifxjdbc.jar;c:\\Omwb\plugins\db2400v4r5.jar;c:\\Omwb\drivers\jt400.jar;c:\\lib\xmlparserv2.jar;c:\\rdbms\jlib\xsu111.jar;c:\\jdbc\lib\classes111.zip;c:\\lib\vbjorb.jar;c:\\jlib\netcfg.jar;c:\\jlib\ewt3.jar;c:\\jlib\ewtcompat-3_3_15.jar;c:\\jlib\share.jar;c:\\jlib\help3.jar;c:\\jlib\oracle_ice5.jar;c:\\jlib\kodiak.jar
    ** Started : Tue Jul 23 12:13:42 PDT 2002
    ** Workbench Repository : Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    ** The following plugins are installed:
    ** Microsoft Access Release 9.2.0.1.0 Production
    ** Active Plugin : MSAccess
    ** Shutdown : Tue Jul 23 12:14:59 PDT 2002
    I appreciate any assistance you could render me.
    Thanks - Aaron

  • Folder is no longer part of the system data source....message

    I just got a replacement phone due to a hardware issue with my old phone.  I was able to transfer all the data from my old device to new device via blackberry desktop manager, however, I have been unable to get the synchronization to work properly.  When I try to configure synchronization to use Outlook for Calendar & Address book etc. I get an error message when I click finish.  The error message is a Runtime Error: Folder is no longer part o fthe data source, or the folder could not be found
    I have tried downloading and reinstalling the software Blackberry Desktop Manager is 4.7.0.37 released March 2009
    I have reviewed the solutions provided by blackberry & on this message board, but they do not make sense to me.  One listing states to click on 'Intellisync' in desktop manager, which does not exist in the version I have.  Another listing is referring to check the .PST on the device to see if data is in it, then create a new MAPI folder.  I have not been able to figure out how to do either of these tasks.
    I run Outlook 2007 on a Windows Vista PC
     Please help....

    Here is the KB that addresses the error message you state:
    KB15812 Runtime error - folder is no longer part of system data source or data could not be found
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Linked Server [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hi  I have SQL2012 installed on my local machine and have also installed MySQL 5.6.23 installed with a test database.
    I also have my SQL connector installed and MYSQL ODBC Driver 3.51.   
    Which happily connects to the Mysqldb.
    The Datasource Name : mySQL conn
    TCP/IP Server : localhost and Port :3306
    User root
    with pwd
    On the SQL side I have used the following
    EXEC master.dbo.sp_addlinkedserver
      @server = N'MYSQLSRV',
      @srvproduct=N'mySQL conn',
      @provider=N'MSDASQL',
      @datasrc=N'mySQL conn'
    However when I try to selet using open query
    SELECT * FROM OPENQUERY ( [MYSQLSRV], 'SELECT * FROM students' )
    it comes back with
    OLE DB provider "MSDASQL" for linked server "MYSQLSRV" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
    Msg 7303, Level 16, State 1, Line 1
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQLSRV".
    I cant understand what I have done wrong .   Any help in this would be great as Ive hit a bit of a brick wall

    Hi Robert3975,
    In addition to other post, please also note the following things.
    1. If you use the 32-bit driver on a 64-bit machine, please run the 32bit version of "odbcad32.exe" by running "c:\Windows\SysWOW64\odbcad32.exe"
     from Start/Run menu and
    create your ODBC DSN. However, for the 64-bit driver, use c:\windows\system32\odbcad32.exe to create your ODBC DSN. For more details, please review this similar
    thread.
    2. Expand the folder Providers under Linked server directory in SSMS and go to properties of MSDASQL provider and configure it properly as described in this blog:
    Creating Linked server to MYSQL from SQL Server.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • List odbc data-source names

    hello,
    i would like to show (System.out.println) all odbc data-source names,
    which are installed on the machine. whats a common way?
    can somebody help me please? thanks!
    regards.

    Sorry there is no such mehtods or classes in java
    for doing this activity
    one thing u can do is this
    i dont dont know much about windows programming
    but i think that we we manually created a datasource by click odbc tab and then adding a datasource assosiating a mdb file to it
    then in wondows surely some where it must have registerd
    say for example there must be a datasource .ini file
    now if this is true then u can do one thing
    .ini file is similar to a text file
    u can read this file thru FileReader class
    and just extract the name sof datasource this is the obly option
    \u just need to find where this datasource.ini file is located if at all it is
    if u satisfied with my answer i am waiting for my dukes
    bye

  • Config sync:error: Folder is no longer part of the system data source or the folder not found

    This is the message I am getting when i try to configure synchronization through intellisync in all functions.  Any ideas?
    Folder is no longer part of the system data source or the folder not found
    JT

    jtwilcox wrote:
    Mail account is MAPI
    XP
    Outlook 2007
    thanks for your help so far!
    JT
    Hi...
    Based upon the folder error, my guess is the Desktop Manager is having difficulty determining your default mail client. I am not sure why but it is easy enough to redo a profile in Outlook just to test this. (Control Panel / Mail)
    Of course, I would backup my PST file prior to doing this and then create a new profile and import the PST file into the new profile. Once the profile is running and tested ok, I would again go to the Control Panel / Mail and set the default profile to point to the newly created profile. Then run the Desktop Manager and see what happens....
    H.
    +++++++++++++++++++++++++++++++++++++++++++++++++
    If successful in helping you, please give me kudos in my post.
    Please mark the post that solved it for you!
    Thank you!
    Best Regards
    hmeister

  • SQL Server Reporting Services: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hey everyone, So I am trying to get a report onto the server, and in BIDS I kept getting a login screen repeating over and over when I tried to deploy my report, so I tried to upload the file at http://<servername>/Reports This worked, but then trying
    to run this report from http://<servername>/Reports did not work either because "An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'FTYDataSource'. (rsErrorOpeningConnection) For more information
    about this error navigate to the report server on the local server machine, or enable remote errors" Anyways I tried to add a New Data Source (which I would use in the report) at http://<servername>/Reports, type ODBC, with the connection string Dsn=blah_blahblah.
    I try to test the connection here and get the error ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This is really getting old fast, everything I try, a new error comes up. Granted I am new at this,
    but this still should not be this troublesome. Does anyone have any ideas on what could FINALLY allow me to just put a report out onto the server?!? THANK YOU in advance for ANY help.

    Hi,
    Please try setting the credentials of the datasource.
    1. Double click and open the datasource in your project.
    2. Click on the credentials tab, and click on option button 'Use this username and password'
    3. Enter the username and password to connect to the datasource
    4. Deploy or upload the datasource to the report server and try accessing the reports.
    Hope this helps.
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • Trouble getting the default  user directory under Windows XP

    I m trying to get the default user directory under windows XP SP3.
    To do so, I'm using
    System.getProperty("user.home");
    I was expecting to get a path like "C:\Documents and Settings\user", nstead of that I get "C:\Documents and Settings\user\Destop".
    I checked the %USERPROFILE% and %HOMEPATH% window's environment variables and both of them are correctly set ( set to "C:\Documents and Settings\user").
    Is there any way to get the right path other than using : System.setProperty("user.home", "C:\\Documents and Settings\\user"); ?

    Thanks WalterLaan,
    The System.getenv("USERPROFILE") method will, at least, fix the problem under win XP.
    I guess i'll have to write a more refined method to be able to deploy my application under differents OSes.
    Regards.

Maybe you are looking for

  • Photoshop elements 6 raw image problems.

    PROBLEM 1:  I recently purchased a Canon 7D and got a free copy of PSE6, and I had to upgrade to camera raw 5.6 to view raw files.  I am now able to view raw files, but still get a error; "DLL c:\Programfiles\adobe\photoshop elements 6.0\Plug-Ins\Cam

  • Creating a photo book

    Hi, I have just signed up for CC photographers version, on the promise that it would be much better than upgrading my current PS Elements. The main question I asked first was could I create phonebooks in A4. I was assured that this would be possible,

  • I cannot see my own sent texts

    I cannot see my sent texts to other iphone users. This happens whether it is iMessage or SMS. It will show the sent message while it is sending and then the message will disappear. They will get it and respond to it but I cannot see it. Please help.

  • Organizing Files and Folders

    Where can I find basic correct way to organize folders and files on my hard disc? I restored my hard disc using Apple "Backup" and my files and folders are scattered all over with no discernible hierarchy or method. iPhoto, iTunes unable to access fi

  • %Error opening tftp://...(No such file or directory)

    I am trying Software Distribution by Image choosing from my Software Repository. Getting the title as a failure from SWIM. Need help. kat