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
Similar Messages
-
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.
CheersHi 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 -
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 -
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 wallHi 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 -
Connect to MS Access using NetBeans, data source name not found!
Hi
NetBeans IDE 7.3 and OS was Windows 7 (64-bit )
When I run my program by NetBeans, it complain about the following errors.
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
In fact, the MS Access file had exist the specify path, I can run the jar file (not in IDE environment) and connect to MS Access DB successfully.
And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit.
So the question is, why IDE cannot connect to MS Access DB, How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?
Thanks!user13005878 wrote:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedThat reads like "your datasource configuration is not good, fix it"
And I had search from network, and found it said "the ODBC source was run by different server", one was C:\Windows\SysWOW64\odbcad32.exe for 32-bit and c:\windows\system32\odbcad32.exe for 64-bit. It would make a whole lot of sense if that was the other way around, don't you think? SysWOW64 for 64 bits and system32 for 32 bits.
So the question is, why IDE cannot connect to MS Access DBBecause something is wrong
How to set NetBeans IDE to make it connectable to 32 bits or 64 bits ODBC, like the program run without IDE?By setting the correct connection configuration properties.
I'm not 100% positive, but I believe that doing ODBC connections from a 64 bits environment is not actually supported in Java. You may be outraged by that - in Java 8 the ODBC-JDBC bridge is going to be completely dropped, no more connecting to Access from Java without third party libraries (which tend to be commercial). In any case for now try to use a 32 bits Java runtime if you're using a 64 bits one. -
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 -
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 -
IDT ODBC Error - Data source name not found...
Hello,
In the IDT, I have created a successful connection to a Relational Connection to my SQL Server datasource. However, when I try to access the data in the Data Foundation, I get the error, "ODBC Driver Manager. Data source name not found and no default driver specified. I am trying to use a shortcut to the connection in the repository. I am able to make a local connection to this database using the same steps above but I'm only getting this error when using the respository connection.
I appologize if I have not explained this well or used the right terminology as I've only been using this tool for about a month with very little support. The support I do get does not know what this problem is as they are able to connect to it fine on their computer.
Thank you for your time and responses,
AaronHi Aaron
This is the product limitation.
Combination of 32-bit and 64-bit data providers in a Multi-source enabled Data Foundation is not supported.
Remove ODBC Drivers 32-bit for SQL Server from the user's workstation and Install ODBC Drivers
64-bit.
Regards,
Veer S. -
Hey, wonder if anyone has had this problem and knows how to
solve it. I have a book with details on how to solve the error but
its hard to understand. The error is: 80004005 - Data source name
not found and no default driver specified.
In the book it says "To solve the problem, first be sure that
the DSN exists on the web server as a system DSN. If the DSN exists
as a Local DSN, delete the Local DSN and create a System DSN". How
do I know if it exists as a Local DSN and how do I make sure it
exists on the web server as a system DSN?? I also deleted the
locked Access file (.ldb) as suggested in the book.
I know this is a specific problem and maybe I've missed
something out, but I'd be really grateful for any help. Thanks very
much.Try here:
http://tinyurl.com/pbnon
"ferrarikid123" <[email protected]> wrote in
message
news:e3b64c$mqp$[email protected]..
> Hey, wonder if anyone has had this problem and knows how
to solve it. I
> have a
> book with details on how to solve the error but its hard
to understand.
> The
> error is: 80004005 - Data source name not found and no
default driver
> specified.
>
> In the book it says "To solve the problem, first be sure
that the DSN
> exists
> on the web server as a system DSN. If the DSN exists as
a Local DSN,
> delete the
> Local DSN and create a System DSN". How do I know if it
exists as a Local
> DSN
> and how do I make sure it exists on the web server as a
system DSN?? I
> also
> deleted the locked Access file (.ldb) as suggested in
the book.
> I know this is a specific problem and maybe I've missed
something out, but
> I'd
> be really grateful for any help. Thanks very much.
> -
Error on SQL-DMO ( ODBC Driver data Source name not found)
I Found the below error and all my maintenance jobs were failing with the same error.
Do any one have any clue on it. help is much appriciated.
Microsoft (R) SQLMaint Utility (Unicode), Version ??????
Copyright (c) Microsoft Corporation.
[Microsoft SQL-DMO (ODBC SQLState: IM002)] Error 0: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
SreeniLet us know if you see this issue in SQL 2014 as well. You can quickly create a SQL Server 2014
Virtual machine on Windows Azure .
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-provision-sql-server/
Thanks, Sethu Srinivasan [MSFT] SQL Server http://blogs.msdn.com/sqlagent -------------------------------------------------------------------------------- This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.
Please remember to click &quot;Mark as Answer&quot; and &quot;Vote as Helpful&quot; on posts that help you. This can be beneficial to other community members reading the thread. -
Data source name not found and no default driver specified.
Hi all,
I am using Microsoft Accessas as backn'd. when I am starting my Presentation Services I am getting this error> Data source name not found and no default driver specified.Your presentation services configuration file
$SADATADIR/web/config/instanceconfig.xml
contains an entry DSN which is the connection to the bi server
then inside your RPD(s) loaded by the bi server
you will have various connection pools in the physical layer
which connect to physical data sources such as MS Access
you can test a physical database connection
by right clicking a physical table
then "View Data" or "Update Row Count" -
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:$PATHHi 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 -
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,
SteveThis 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. -
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 -
10901 Data source name not found and no default driver specified(ODBC)"
Dear all,
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 above 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,
HildaRemember the client tools are 32 bit, BOE 4.0 is 64 bit. Thus a document using a 32 bit client will connect to 32 bit ODBC datasource. A 64 bit application (BOE 4.0) will be looking for 64 bit ODBC datasource. You mention you installed Sybase IQ 15.2 (32bit) ODBC which is great for the 32 bit client tools, but 64 bit BOE will not be able to use this.
See a related article; [Crystal Reports support of 64 bit Operating Systems|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e]
- Ludek
Maybe you are looking for
-
Hi Team .. New currencies in SRM
Hi SRM team, Could you please explain how we can have currencies in SRM. In the Attribute CUR: "How we can get the values"? Thanks in Advance. CK Edited by: CK on Jun 22, 2009 8:38 AM
-
Screen sharing and file sharing not working on LAN
This is not a Mavericks specific problem since it existed before I upgraded to Mavericks. I have a LAN that consists of 3 MBPs and 1 MacPro. Local screen sharing and file sharing works fine on all of these computers except for one MBP. From this MB
-
Error: I::000
Hi, I am getting this error in my IDoc-IDOc scenario.Can you please let me know what i am missing. <!-- Call Adapter --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnder
-
Cannot get LR4 to read xmp files from a Nikon D4, Reads the D3S xmp files fine.
I am doing some editing work for a magazine. The lead editor had issues with adobe camera raw viewing some of my edits. The xmp files are there but for some reason they are not loading. We narrowed it down to just the Nikon D4 files. I just had her d
-
PDF export format options are ignored when exporting
I can't get the PDF export format options to work. No exception is thrown; it's as though the export format options are simply ignored. In broad terms, the relevant code looks like this: ExportOptions exportOptions = new ExportOptions(); exportOpti