MySQL - Troubleshooting

Finally I have my MySQL JDBC driver working.
As I'm starting to developp Nokia applications, I had Forte for Java installed, J Wireless stuff and many others.
Too much, nothing was working!
I've uninstalled everything, then re-downloaded SDK2
and installed in c:\sdk
I've re-downloaded the mm.mysql-2.0.1-src.zip file and uncompressed into c:\mm.mysql-2.0.1
Set my PATH=%PATH%;c:\sdk
and my CLASSPATH=C:\mm.mysql-2.0.1
Then I've "compiled" with javac.exe this:
import java.sql.*;
// Notice, do not import org.gjt.mm.mysql.*
// or you will have problems!
public class LoadDriver
public static void main(String[] Args)
try {
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
catch (Exception E) {
System.err.println("Unable to load driver.");
E.printStackTrace();

Once again:
CLASSPATH=C:\mm.mysql-2.0.1
is WRONG
use
CLASSPATH=.;C:\mm.mysql-2.0.1
works better for me :))

Similar Messages

  • Troubleshooting mysql on tomcat

    Hi,
    I'm new to java, so we're doing some examples. we are using creator2 to develop and try examples form page. I just did database access on local machine (to mysql) with no problem but when y try to run it on a sunfire v100 server with solaris10 no luck.
    My solaris it's configured with tomcat (pkg-get) and it's running just fine if i run simple pages (no database access). when i start tomcat i recieve this:
    # ./cswtomcat5 start
    Using configuration file : /etc/opt/csw/tomcat5
    Using Java from : /usr/java
    Running as : root (please see documentation included in ./cswtomcat5 to change user)
    Using CATALINA_BASE: /opt/csw/share/tomcat5
    Using CATALINA_HOME: /opt/csw/share/tomcat5
    Using CATALINA_TMPDIR: /opt/csw/share/tomcat5/temp
    Using JRE_HOME: /usr/java
    on my server.xml i have:
    <?xml version="1.0" encoding="UTF-8"?>
    <Server>
    <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
    <GlobalNamingResources>
    <Environment
    name="simpleValue"
    type="java.lang.Integer"
    value="30"/>
    <Resource
    auth="Container"
    description="User database that can be updated and saved"
    name="UserDatabase"
    type="org.apache.catalina.UserDatabase"
    pathname="conf/tomcat-users.xml"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
    <Resource
    name="jdbc/datasource1"
    type="javax.sql.DataSource"
    password="SCT020926"
    driverClassName="com.mysql.jdbc.Driver"
    maxIdle="2"
    maxWait="5000"
    username="root"
    url="jdbc:mysql://localhost:3306/test"
    maxActive="4"/>
    </GlobalNamingResources>
    <Service
    name="Catalina">
    <Connector
    port="8080"
    redirectPort="8443"
    minSpareThreads="25"
    connectionTimeout="20000"
    maxSpareThreads="75"
    maxThreads="150"
    maxHttpHeaderSize="8192">
    </Connector>
    <Connector
    port="8009"
    redirectPort="8443"
    protocol="AJP/1.3">
    </Connector>
    <Engine
    defaultHost="localhost"
    name="Catalina">
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    <Host
    appBase="webapps"
    name="localhost">
    <Context
    path="/intecnia">
    </Context>
    <Context
    path="/WebApplication1">
    <Resource
    auth="Container"
    description="Creator generated DataSource Reference"
    name="jdbc/datasource1"
    type="javax.sql.DataSource"/>
    </Context>
    <Context
    path="/sample">
    </Context>
    <Context
    path="/mysql" docBase="mysql">
    <Resource
    auth="Container"
    description="Creator generated DataSource Reference"
    name="jdbc/datasource1"
    type="javax.sql.DataSource"/>
    </Context>
    <Context
    path="/aces">
    </Context>
    <Context
    path="/standard-examples">
    </Context>
    </Host>
    </Engine>
    </Service>
    </Server>
    I copied .jar mysql to common/lib y have databse and table with data. but i have this error:
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    i' m so tired trying to make it work, i don't know if there is something with tomcat, i just set up datasource from admin on tomcat, on my local computer setting it up all worked.
    If someone can help me telling me whats wrong??? the server.xml file or my app.
    Regards
    alejandro

    I did google it first, which is the reason that i said that my firewall is off when the code is being tested.
    And, there is no problem with the local connection.
    So, i think there are only two possible reasons that causing communications link failure
    1. the wrong URL is passed
    2. firewall in my college blocks the communications.
    So i e-mailed college network administration to conform the URL, and got reply that the college MYSQL DB can only be accessed in the campus.
    So, this is it.
    Edited by: zhang_jian on Nov 20, 2009 4:19 AM
    Edited by: zhang_jian on Nov 20, 2009 4:19 AM

  • Powerbook G4 X 10.4.3 - Failure to install /tmp/mysql.sock. Troubleshooting

    This issue arose when tryingto install MySQL 5 onto a newly acquired Powerbook.
    Does the issue relate to
    i) Apache
    ii) MySQL
    Can the issue be remedied?

    I'm not sure, but since I've seen items in the /tmp directory frequently need permissions repair, have you tried repairing permissions and then installing it?

  • Can't connect a servlet to a mysql database (jdbc)

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class LoginServletJDBC extends HttpServlet{
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              sendLoginForm(response,false);     }
         public void sendLoginForm(HttpServletResponse response,boolean error)
         throws ServletException,IOException{
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("<html><head>");
              out.println("<title>Login</title>");
              out.println("</head>");
              out.println("<body>");
              out.println("<center>");
              if(error)
                   out.println("<b>Failed login. Please try again</b>");
              out.println("<br><br>");
              out.println("<h2>Login page</h2>");
              out.println("<br>Please enter your username and password");
              out.println("<br><br>");
              out.println("<form method=post>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<td>Username : </td>");
              out.println("<td><input type=text name=userName></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td>Password : </td>");
              out.println("<td><input type=password name=password></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td align=right colspan=3>");
              out.println("<input type=submit value=Login></td>");
              out.println("</tr>");
              out.println("</table>");
              out.println("</form>");
              out.println("</center>");
              out.println("</body></html>");
    public void doPost(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              String userName = request.getParameter("userName");
              String password = request.getParameter("password");
              if(login(userName,password)){
                   RequestDispatcher rd = request.getRequestDispatcher("AnotherServlet");
                   rd.forward(request,response);
              else{
                   sendLoginForm(response,true);
         boolean login(String userName,String password){
              try{
                   String url = "jdbc:mysql://localhost:3306/Users";
                   Class.forName("com.mysql.jdbc.Driver");
                   Connection con = DriverManager.getConnection(url,"root","");
                   //System.out.println("got connection");
                   Statement s = con.createStatement();
                   String sql = "select userName from Users where userName='"+userName+"and password='"+password+"';";
                   ResultSet rs = s.executeQuery(sql);
                   if(rs.next()){
                        rs.close();
                        s.close();
                        con.close();
                        return true;
                   rs.close();
                   s.close();
                   con.close();
              catch(ClassNotFoundException e){
                   System.out.println(e.toString());
              catch(SQLException e){
                   System.out.println(e.toString());
              catch(Exception e){
                   System.out.println(e.toString());
              return false;
    }so ...
    here i'm trying to connect to Users mysql database (i use Tomcat 4.1 and mysql servers and clients 4.0.1-alpha)
    where is the problem ? when i run this servlet (http://localhost:8080/example/servlet/LoginServletJDBC ) it works ;
    BUT when i type an username and a password (any user&pass) my servlet doesn't connect to the database (become a infinite loop without output ; i mean no any errors and exceptions)
    i try other think : i changed the database with unexisting database and the result was that i was expected (Unknow database 'unexistingdatabase' )
    what i miss ?
    please... can anyone help me...
    thank`s in advance

    The wireless security setting that the Actiontec modem/router is using may be different...and not compatible....than the setting that the Comcast product was using.
    If you think that might the case, and you have the time to troubleshoot......
    Temporarily, turn off the wireless security on the Actiontec modem/router
    Reset an AirPort Express back to default settings, then see if it will connect using no security and allow an Internet connection when you do the Ethernet port test in the post above again.
    If the AirPort Express cannot connect correctly using no security on the wireless network.....then it is a no brainer to know that it will never connect when security is enabled.  So, if the AirPort will not connect using no security, you may have an incompatibility issue between the Actiontec and Apple products.
    However, if the AirPort Express connects OK with no security, then this tells you that you will need to use a different setting for security on the Actiontec...the same that the Comcast router was using before.....so the Express will have a better chance of connecting.
    That setting would be something like WPA/WPA2 Personal, or the same setting stated another way would be WPA-PSK-TKIP.

  • Error while importing the tables from MySQL using the data source connection

    Hi,
    I am trying to import tables from MySQL into Powerpivot using the data source connection, if use the import using the Query option its working fine but not with the select list of table option.
    when i click on the select list of tables option, i get the below error after selecting all the tables to be imported:
    OLE DB or ODBC error.
    An error occurred while processing table 'XXXXXXXXXX'.
    The current operation was cancelled because another operation in the transaction failed.

    Hi Bharat17an,
    Please provide the detail information when create the MySQL connection in your PowerPivot model. Here is a good article regarding "how to Use MySQL and Microsoft PowerPivot Together" for your reference, please see:
    http://www.datamensional.com/2011/09/how-to-use-mysql-and-microsoft-powerpivot-together-2/
    If this issue still persists, please help to collection windows event log information. It maybe helpful for us to troubleshoot this issue.
    Regards,
    Elvis Long
    TechNet Community Support

  • Can't connect to MySQL in DW CS5.5 on Win 7 Pro 64-bit...

    Hi there.
    I hope you can help me. I used Dreamweaver CS3 for some years on my former Windows XP Pro 32-bit laptop. Everything worked just fine with updating files to my webhotel and view my MySQL-databases within Dreamweaver. I use classic ASP and the MySQL 5.1/5.5 driver. Then a few months ago I upgraded to CS5.5, but everything still worked fine, as I were used to. BUT then I got a new laptop with Win 7 Pro 64-bit. I installed everything including all MySQL drivers, but I can't connect to my databases within Dreamweaver anymore. :-((( I get a connection error (Unable to retrieve tables from this connection, click on the 'Define...' button to test this connection.).
    Do note, that there's nothing wrong with my connectionstring. My webdatabases works just fine, but DW can't figure out to connect. Is it DW on Win 7 or is it a question about how to configure MySQL on my computer? I installed the full package from Sun/MySQL.
    I hope you can help me! It's so annoying that I can't use the feature to drag variables from my databases into my pages.
    Best regards
    Ulrich

    start at the top and work your way down applying applicable fixes until your problem is resolved.
    if cc (win):  https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html
    if, your error is:
    "Installer failed to initialize. File not found." or "Installer failed to initialize. This could be due to missing files."
    first, rename OOBE Folder to OOBE.old.
    to find OOBE:
    64 bit win OS: Program Files x86\Common Files\Adobe\OOBE
    32 bit win OS: Program Files \Common Files\Adobe\OOBE
    mac os: HD>library>application support>adobe>caps
    mac os: USER>library>application support>adobe>OOB
    if that fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.
    if you're using a dvd to install:
    copy the disc contents to a desktop directory and install from that directory.
    if you're using a mac:
    1. Try to Create a new user account in Mac with Administrator Priviledges.
    2. Login to the New user, Navigate to Mac HD> Application> Utilities> Adobe Installer folder, Locate products like Adobe Reader, Adobe Flash, Adobe Air and un-install them
    3. Navigate to User Library> Application Support> Adobe and move Adobe to Trash.
    4. Navigate to Mac HD> Library> Application Support> Adobe and move Adobe to Trash.
    5. Start the installation again.
    if everything applicable above fails, check your installation logs:
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-install-using-logs-elements.html

  • Apache2 local web server + Perl 5 + mysql problem

    this problem has been bugging me for some months; it's stopping me developing on my new MBP.
    I cannot connect to mysql 5.0.45 database when web sharing w/ Apache2 with either Perl 5.8 & Activeperl 5.10 cgi scripts on Mac OS X Leopard 10.5.2 & 10.5.3
    Although I can connect to the mysql DB when running the Perl scripts from the command line.
    The problem only occurs on my local web server in Mac OS X 10.5.2 & 10.5.3.
    On my old development Mac running 10.3 the code runs fine, as it also does on my remote site.
    server error log: Can't locate DBD/mysql.pm . . .
    I suspect there is a problem somewhere between Apache2, Perl & MySQL.
    Please advise.
    Sarpedon Jones
    Message was edited by: Sarpedon Jones

    I've got the same problem but It sounds like I've gotten farther. I was forced to do an emergency move of some Perl and PHP sites to 10.5.4 when our 10.4 web server refused to authenticate to AD anymore...
    Leopard's Apache/Perl support is terrible. There is not click to add option anymore so you have to manually set up mod_perl. No big deal but the first sign that there isn't reasonable support.
    The bigger issue is that Apple's Perl will not compile some modules.. namely DBD::mysql.
    Normally you'd use "cpan" to install the modules you need. The core module for connecting to a mysql database is DBD.. specifically DBD::mysql
    You should be able to run "cpan" or "cpanp" [cpan plus] to get a cpan interactive prompt. At this point you should be able to compile DBD by issuing either of the following:
    "install DBD::mysql" or
    "install Module DBD::mysql"
    I've tried this on two installs of OS X Server and that module (and others) will not compile on either system. One of my servers had been set up as a Wiki server before but the other had not been running any web services before I started using it as a test bed for my site move. (BTW these sites are unavailable until I can move them).
    There is another bug (noted on mysql's site) with Apple's version of cpan. If you try to add some modules, cpan will report that it needs to install a new, full version of Perl. The recommendation is to not do this, but rather force the install.. "install f DBD::mysql"
    Forcing the install is a questionable idea but it doesn't work anyway.
    I eventually did install perl 5.0.10 on the system in /usr/ and that does allow me to compile the needed Perl mods. However, the global @INC path has the old Perl paths listed so my perl CGIs will not use the new perl install.
    I'm sorry I don't have a solution. Hopefully my troubleshooting will elicit some more feedback.
    steven.

  • No Tables in DW CS3 Remote MySQL Connection

    Hello All,
    I was hoping forum members would be able to troubleshoot a
    Dreamweaver CS3/remote MySQL Connection issue I'm having.
    I am successful in connecting to the database but the table
    data I created in phpMyAdmin 2.6.3 does not appear in the
    Application/Databases menu in DW. Instead of the name of the table,
    I get "none".
    Since I am new to databases, any help is greatly appreciated.
    I did view older posts before submitting this one but the advice
    recommended (re-installing the entire MySQL application from
    scratch) is not an option. Server is SunOS running PHP 4.4.7 and
    MySQL 2.0.20. I'm on Windows XP. Thanks once again.

    Was this issue resolved?
    I have the same problem now. DW was working fine the one day and the next when I started it it had this connection problem.
    I am testing on my local PC. My sites is at http://localhost/
    All my connection are working because if I go to http://localhost/index.php I can see my site and if I go to http://localhost/register.php I can even register a new user. It will include the new user details in the data base and everything is working fine. So there is nothing wrong with the connection.
    In DW I do have http://localhost/ on the Local Info screen. As I said, all was working fine on the current setup the one day and the next day it did not want to work.
    Seems like a very common problem.
    I want to buy CS4 and surely hope that the problem has been fixed by now.

  • Php/mysql behavours broken

    I don't know what is going on but my copy of DW8 is now
    unable to define php/mysql recordsets. I have a feeling that this
    may be caused by a rogue extension. Only thing is it may have
    occured a while back so I don't know when it started.
    The problem is:
    When I open an existing page which has recordsets on it I get
    the following error:
    Javascript error while loading recordset.htm
    Unable to open script file
    ...\serverbehavours\php_mysql\fieldtypes.js (error 2)
    I checked and the file was somehow missing so I replaced it.
    Now I am being told:
    The recordset script does not define the findserverbehavours
    function
    And I can see that the recordset is no longer there.
    When I try to creat a new recordset I get:
    The recordset script does not define the applyserverbehavours
    function
    Can anyone help
    Thanks

    bikeman01 wrote:
    > After a bit of experimenting it seems that my problem is
    caused by the DW 8.0.2 hotfix extension. Removing it put everything
    right.
    As long as you have installed Dreamweaver 8.0.2, you should
    also enable
    the hotfix extension. Your problems were almost certainly
    caused by a
    corrupted cache. Follow troubleshooting step 4 in the
    following page:
    http://www.adobe.com/go/tn_19105
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP MySQL sites created by dreamweaver mx 2004 crash on safari

    Hello,
    The title says it all, but i will elaborate.
    I develop PHP, MySQl driven database websites, I use
    Dreamweaver MX 2004 and I work on a macintosh, using both safari
    version 2 and 3.
    i have noticed that whenever I post a database item (add,
    edit to table) my safari hangs and I get a page cannot be displayed
    error after 1 minute or so, even though the db function went
    through.
    Now, this only happens with safari and it only happens with
    pages I build with dreamweaver, any hand coded websites I build do
    not do this.
    i have posted this on the apple website with no response, I
    am hoping someone here can help me.

    On Fri, 23 Nov 2007 16:21:50 +0000 (UTC), "MacDaddy333"
    <[email protected]> wrote:
    >Hello,
    >
    > All of the sites that have this issue are secure, one is
    a shopping cart
    >
    >
    http://www.jennywrenpaperie.com
    >
    > You will need to create a user account and then log in
    to see the problem, as
    >for the code, well, there is so much code involved, many
    pages of includes, so
    >i cant post it all
    >
    > One more thing, this doesn't happen to every Safari
    user, only a few, very
    >frustrating as you can imagine
    And I should give you my email address because...
    Seriously, you want people to troubleshoot your site, create
    a dummy
    account that we can log in with.
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • Php, mysql, apache, windows xp

    I use the most recent versions of php, apache, mysql and
    windows xp. And I use Dreamweaver 2004MX.
    I create a very simple index.php and when I preview on a
    browser, the address becomes like this.
    http://localhost/artgallery/TMP2zjuplef9z.php
    instead of index.php at the end in the browser address.
    Each time when I preview it, it create random address at the
    end instead of index.php.
    Why does it create like this? Is there anything I can fix
    this?

    However, doing this will prevent your root relative links (if
    any), and
    server-side includes (I think) from rendering properly in
    preview.
    My suggestion would be to ignore it for you local previews.
    It's how DW
    works.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Nancy - Adobe Comm. Expert" <[email protected]> wrote
    in message
    news:f7mq70$esk$[email protected]..
    > Edit/Preferences/Preview in Browser. Uncheck the "create
    temporary files"
    > checkbox and restart Dreamweaver.
    >
    >
    > --
    > Nancy Gill
    > Adobe Community Expert
    > Author: Dreamweaver 8 e-book for the DMX Zone
    > Co-Author: Dreamweaver MX: Instant Troubleshooter
    (August, 2003)
    > Technical Editor: Dreamweaver CS3: The Missing Manual,
    > DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    > Mastering Macromedia Contribute
    > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced
    PHP Web
    > Development
    >
    > "shinceciokada" <[email protected]>
    wrote in message
    > news:f7mm6c$ai7$[email protected]..
    >>I use the most recent versions of php, apache, mysql
    and windows xp. And I
    >>use
    >> Dreamweaver 2004MX.
    >> I create a very simple index.php and when I preview
    on a browser, the
    >> address
    >> becomes like this.
    >>
    http://localhost/artgallery/TMP2zjuplef9z.php
    instead of index.php at the
    >> end
    >> in the browser address.
    >> Each time when I preview it, it create random
    address at the end instead
    >> of
    >> index.php.
    >> Why does it create like this? Is there anything I
    can fix this?
    >>
    >>
    >
    >

  • DG4ODBC - MySQL in 11.2.0 or 11g XE

    Hi - I've been struggling on and off for weeks with this - so fed up with ODBC connectivity!!!
    4 years ago I was finally able to get heterogeneous connectivity on 10g/Windows to SQL Server using HSOLEDB but that's apparently not an option anymore as HSODBC/HSOLEDB are no longer supported in lieu of the transparent gateways. I've been through all forums/metalink/MOS for weeks and can't for the life of me get DG40DBC to work with MySQL. Have tried on our core server: x86_64 RHEL 5/10.2.0.3 Enterprise with Gateways 11g, a dev server: x86_64 RHEL 5/11g/11g XE x86_64, and now a Windows Vista x86 virtual machine (11g XE) as a test. XE 11g with HSODBC and Dg4ODBC 11g XE includes the dg4odbc binaries and should work, so I wasn't about to do a full 11g Ent install to test this.
    My ODBC system DSN source works using the correct version of MyODBC.
    My lsnrctl status shows the proper "UNKNOWN" like it always does...
    TNSPING DG4ODBC shows a "TNS-12538: TNS:no such protocol adapter", which is replaced with "no listener" if I adjust my tnsnames.ora, so tnsnames should not be a problem.
    I've tried adding dg4odbc to each the standard listener and a new separate listener with no luck in either case.
    I've tried every combination of capitalization/case sensitivity troubleshooting in initdg4odbc.ora/listener.ora/tnsnames.ora/db link creation.
    All windows software firewalls/daykillers disabled.
    There appear to be no trace logs no matter what log level I use in initdg4odbc.ora.
    Selection from my db link always yields:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from DG4ODBC
    I've poured over everything from official documentation/forums/Donny B and nothing has helped. My end result is I need some kind of generic connectivity to MySQL from the Linux x86_64 10.2.0.3 Enterprise server but I can't get this going in ANY environment. Soooo fed up with this but I know this must be a simple fluke that someone can see by looking over my shoulder.... please? A solution, a solution. My kingdom for a solution.
    On my Windows 11g XE env->
    listener.ora:
    SID_LIST_LISTENER =
    *(SID_LIST =*
    *(SID_DESC =*
    *(SID_NAME = PLSExtProc)*
    *(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)*
    *(PROGRAM = extproc)*
    *(SID_DESC =*
    *(SID_NAME = CLRExtProc)*
    *(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)*
    *(PROGRAM = extproc)*
    *(SID_DESC =*
    *(SID_NAME = DG4ODBC)*
    *(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)*
    *(PROGRAM = DG4ODBC)*
    LISTENER =
    *(DESCRIPTION_LIST =*
    *(DESCRIPTION =*
    *(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
    *(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))*
    DEFAULT_SERVICE_LISTENER = (XE)
    tnsnames.ora:
    DG4ODBC =
    *(DESCRIPTION =*
    *(ADDRESS_LIST =*
    *(ADDRESS =*
    *(PROTOCOL = TPC)*
    *(HOST = localhost)*
    *(PORT = 1521))*
    *(CONNECT_DATA =*
    *(SID = DG4ODBC))*
    *(HS = OK)*
    initDG4ODBC.ora:
    *# This is a sample agent init file that contains the HS parameters that are*
    *# needed for the Database Gateway for ODBC*
    *# HS init parameters*
    HS_FDS_CONNECT_INFO = DG4ODBC
    HS_FDS_TRACE_LEVEL = DEBUG
    *#HS_AUTOREGISTER = TRUE*
    *#HS_DB_NAME = DG4ODBC*
    *# Environment variables required for the non-Oracle system*
    *#set <envvar>=<value>*

    Hi,
    A couple of points.
    1. If you are using Dg4ODBC 11g then you need to be at at least RDBMS 10.2.0.4. If you are using 10.2.0.3 then you need to apply patch 5965763 to your RDBMS. For Windows this is included in the later patchsets.
    2. I got a copy of this update in a mail and it looks like you may have the incorrect format for your tnsnames.ora file. However, in the your post all the line spacings have been lost. So, can you make sure that the tnsnames.ora entry has at least 1 space before every line except for the first, for example -
    DG4ODBC =
    <space> (DESCRIPTION =
    <space> (ADDRESS_LIST =
    <space> (ADDRESS =
    <space> (PROTOCOL = TPC)
    <space> (HOST = localhost)
    <space> (PORT = 1521))
    <space> )
    <space> (CONNECT_DATA =
    <space> (SERVICE_NAME = DG4ODBC)
    <space> )
    <space> (HS = OK)
    <space> )
    and the same for the listener.ora - after the first line of each section make sure there is at least one space.
    If you are not getting any dg4odbc trace files it indicates that the gateway executable is not being started with could be a listener problem. Is there anything in the listener log to indicate a problem starting the gateway executable ?
    If you still have problems then could you load your configuration files again but make sure all the spaces at the beginning of each line are preserved and the full output shown in SQLPLUS for a failing select ?
    Regards,
    Mike

  • MySQL InnerJoin query syntax error?

    I can't seem to locate the syntax error in this MySQL query.  Coldfusion says there an error in my sql syntax.  Here is the query.  Anyone have any clues on this?
    <cfquery name="queryItem" datasource="bonus">
    select
    p.productid,
    p.modelnumber,
    p.modeldescription,
    sp.sp_bonusamount as Amount
    from
    products i join bonusproducts sp on i productid = sp.sp_productid
    inner join program p on sp.sp_programid = p.programid
    where
    p.CompanyOrgLevelID in (#getParentCompanyOrgLevelIDList(session.CompanyOrgLevelID)#)
    and p.ProgramID = #programID#
    <cfif categoryID gt 0>
    and CategoryID in (#getSubcategoryIDList(categoryID)#)
    </cfif>
    order by
    #sortColumn# #sortDirection#
    </cfquery>

    To troubleshoot, run this:
    select
    p.productid,
    p.modelnumber,
    p.modeldescription,
    sp.sp_bonusamount as Amount
    from
    products i join bonusproducts sp on i productid = sp.sp_productid
    inner join program p on sp.sp_programid = p.programid
    where 1 = 2
    If it runs successfully, keep adding bits and pieces until it crashes.  Then you'll know what made it crash.
    Also enable debugging so you can see the sql that gets generated from your code.   That's often useful.

  • DNS requests from Solaris 10 box to Bind/MySQL DNS server fail

    We have some servers running solaris 9 and some running solaris 10. We also have a DNS server setup running BIND with the MySQL backend. When I query the DNS server from our solaris 9 boxes, they always work just fine. However, when I query the DNS server from our solaris 10 boxes, they always fail. Queries to other DNS servers from the Solaris 10 boxes work just fine - they only fail when being sent to this particular DNS server. Here's exactly what I'm doing:
    ON SOLARIS 9 BOX:
    bash-3.00$ nslookup google.com calo-sunset
    Server: calo-sunset
    Address: <IP_OF_DNS_SERVER>#53
    Non-authoritative answer:
    Name: google.com
    Address: 64.233.187.99
    Name: google.com
    Address: 72.14.207.99
    Name: google.com
    Address: 209.85.171.99
    ON SOLARIS 10 BOX:
    bash-2.05$ nslookup google.com calo-sunset
    *** Can't find server name for address <IP_OF_DNS_SERVER>: Non-existent host/domain
    *** Default servers are not available
    In the case of the SOLARIS 10 box, <IP_OF_DNS_SERVER> is correct - it knows the IP address of the DNS server, but apparently it doesn't recognize that it's actually a DNS server.
    I am utterly perplexed by this. It seems to me that a DNS request is a DNS request, regardless of your OS. Clearly something is different from Solaris 9 to Solaris 10 though because the requests fail on all of our solaris 10 boxes, and they succeed on all of our Solaris 9 boxes. Incidentally, dig requests from the Solaris 10 box also fail, where they succeed on the Solaris 9 boxes.
    I don't really know what other information I could offer that might be useful. If you have any information at all about this or ideas on what I might try to troubleshoot/fix it, I'd love to hear it. Thanks in advance.

    First off, I am an idiot. I got this entire post backwards. The fact is that the DNS requests work swimmingly well on our Solaris 10 boxes. They fail on our Solaris 9 boxes. I don't know how I managed to read this post all of these times and not notice that I got that backwards. Nice.
    In any case, I've found the problem. It was non-trivial to me because I am not terribly familiar with the inner-workings of DNS. To those who are, it may seem painfully obvious. To me it certainly was not.
    The problem was that the DNS server (BIND 9 with MySQL backend) did not contain a reverse DNS entry for itself. Apparently this is a big problem for Solaris 9. I got a hint that this might be the cause when I turned on verbose debugging info when I ran nslookup (nslookup -d2). I had to add the PTR record for the DNS server itself. I don't know why Solaris 9 would require that a DNS server contain reverse DNS information about itself, but sure enough it does. As soon as I added that info, the Solaris 9 boxes were able to successfully query the DNS server. Very odd.
    Anyway, I doubt anyone else will come across this problem, but if you do, now you know something that might fix it.
    Edited by: dprater on Oct 7, 2008 8:09 PM

  • MySQL 2002 error

    Been trying to setup a MySQL database for amaroK and can't get anywhere.  Installed mysql with "Pacman -S mysql" and then proceeded to follow the instructions from AmaroK but I run into problems almost immediately.
    When trying to initialize the database with the command /etc/rc.d/mysqld start I immediately get a [FAIL] and of course, without the database even running mysql can't find the socket file. and gives "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)."  I checked the my.cnf file and everything seems to be in order.  What could be causing this???

    Did some more troubleshooting, tried changing the directory MySQL puts the .sock file in and now MySQL will signal that it starts sucessfully, but when I try to do mysql -u root -p it gives the same 2002 error with a different path.  Also, stopping the mysql daemon fails every time, without exception so this leads me to believe that it isn't starting properly.  Thoughts?

Maybe you are looking for

  • Skillbuilders modal dialog - condition for parent page dialog

    Hi When using this awesome plugin, I have a dynamic action on my calling page that deals with the selection from the dialog. It uses Select type:DOM Object DOM Object: document Condition: javascript expression ($v('P110_PROD_SEARCH') == 'BLAH') where

  • Java.io.Console

    I was reading a sun tutorial and it had a test program that contains the import statement java.io.console. The problem is my java can't seem to find this class, i'm quite sure i have the newest version of java. Any ideas? heres the page for the test

  • Remote profiling on oc4j 10.1.2 on solaris. -ojvm unrecognized option

    Hi I have problems starting OC4J using the -ojvm -XXtimeport4000 parameters on a Solaris box. The java runtime complains about unrecognized option. I've tried to find some information how to enable ojvm on the java runtime supplied with IAS 10g 10.1.

  • XI - Closing request for each new coming file

    Hi all, I will receive files from XI system to BW (csv files). I have a scenario like this; each new file that has been received by Bw system (pushed by XI) has to be exactly one request in PSA. That means one file will be one request in PSA. There s

  • Adobe Premiere Elements 9 Stopped Working

    When I launch Adobe Premiere Elements 9 the only menu options that are available are to create a new Project or open a previous one, all other menu options are greyed out. Creating a new project has no effect. If I attempt to open a previous project