Is it possible to read a mySQL database from an ABAP report?

We have some information stored in a mySQL database which is now required on ABAP reports.
Is it possible to read the mySQL database from an ABAP report? I'm still a bit confused on that.
So far I have setup DBCO with information about the mySQL server using MMS as the DBS because mySQL was not an option. I have made sure we have the latest dbmssslib.dll installed.
When I try to run the following code
EXEC SQL.
    CONNECT TO :con
ENDEXEC.
I get error: SQL Server does not exist or access denied.
Then I have tried to connect using the function CHECK_CONNECTION_SDB.
I get the following messages in the return table:
1     OS-AppServ:Windows NT
2     dbmcli_neg: no_client_software
3     dbmrfc_c_neg: no_client_software
4     dbmrfc_s_neg: no_client_software
5     sql_neg
6     work_proc: 1
Does anyone know what I need to do to connect to the mySQL database.
Thank you
Karen

Thank you for your reply. I've gone through all the documentation you sent and much more and I'm still not sure what the problem is.
One thing that concerns me is that this all relates to MS SQL server and I'm trying to link to a mySQL database. Is this even possible?
Some posts talk about changing Oracle settings and having J2EE installed. Is this necessary to connect to a mySQL database via ABAP?
Which user should I enter into DBCO? Is it the mySQL server user or a SAP user? Does the person in charge of the mySQL database need to add any permissions for SAP to access the database or is that done by the user in DBCO?
Does anyone have any more advice?
Thank you
Karen
Also, does anyone know what the messages from the CHECK_CONNECTION_SDB function mean
1 OS-AppServ:Windows NT
2 dbmcli_neg: no_client_software
3 dbmrfc_c_neg: no_client_software
4 dbmrfc_s_neg: no_client_software
5 sql_neg
6 work_proc: 1
Edited by: Karen Dean on Oct 6, 2009 4:44 AM

Similar Messages

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • Is it possible to read Essbase Substitution variables from ODI?

    Is it possible to read Essbase Substitution variables from ODI?

    Hi,
    You can do it with custom code, if you have a read of a blog I wrote :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    About half way through I go into reading essbase sub vars using the essbase java API.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sychronisation AD - OID: Is it possible to read the user password from AD?

    Hi.
    We are using the Oracle Internet Directory shipped with the Oracle 9i Database Rel. 2 (9.2.0.1).
    I try to synchronise the user accounts from AD to OID using JAVA JNDI. I'm able to read all necessary user information except the user password (MD5 value). Even if I connect to the AD using SSL, it's not possible to read the attribute userPassword.
    Is anybody out there who got this work or knows a way (may also be by the use of another programming language or tool) to get the user password out of AD? Is this possible? How does the Oracle Integration Agents accomplish this?
    Thanks in advance.
    Hermann S.

    Hermann,
    I am working with this as well, though from AS10g, not RDBMS. According to the OID Administrator Guide chapter 43, page 43-52:
    <snip>
    Synchronizing passwords from Microsoft Active Directory to Oracle Internet Directory is not possible in the Oracle Application Server 10g release because passwords in Microsoft Active Directory are not accessible by LDAP clients. However, if a deployment requires passwords to be available in Oracle Internet Directory, then the following two methods are recommended:
    Build a custom plug-in for Microsoft Active Directory that captures a password change and synchronizes it with Oracle Internet Directory
    Manage Active Directory passwords from the Oracle environment. This enables passwords to be available in both Oracle Internet Directory and Microsoft Active Directory because the Active Directory connector can synchronize passwords from Oracle Internet Directory to Microsoft Active Directory.
    </snip>
    As10g can however look up the password in AD using the "Active Directory External Authentication Plug-In". This is documented in the same chapter.
    Hope this helps,
    Jens

  • Accessing mysql database from oracle using dg4odbc

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near '"mdl_user"' at line 1
    ORA-02063: preceding 2 lines from MOODLE
    My mysql database is utf8 by default. Do I have to use latin1?
    It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
    Any help is greatly appreciated.
    Jeffrey

    The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
    A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
    - Open SQL*Plus
    - execute:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
    DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
    END;
    - Now run your select statement
    => if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

  • Need help connecting a remote MySql database from Iphone

    Hi, i need to connect to a remote MySql DataBase in windows from IPhone but..... i'm a noob with Xcode and Objective-C.
    Can someone help me or explain me the way to do it plz?
    Message was edited by: Krovax87
    Message was edited by: Krovax87

    I do not think MCPKit will help you on the iPhone. It is just an Objective-C wrapper around the standard mysql libraries which are not available for the iPhone. Your best bet would be to post on the mysql forums and see if you can get any help.
    You can try extracting the mysql client library source code into a separate static library project, and see if you can get it to build for the iPhone.

  • Accessing mySQL database from Labview PDA

    Hi,
    Has anyone tried writing data to a mySQL database or any other database for that matter using the Labview PDA module?  I know it's easy to do from Labview and you have to download the ODBC drivers to get it working but I don't think these drivers are available for Windows Mobile (I've seen XP and Linux drivers only).  Any help would be appreciated.
    Thanks

    Hello,
    I don't have experience with this, but you might look into the following:
    1. remote connections: http://www.geekzone.co.nz/content.asp?contentid=2656
    2. this thread seems to indicate .NET doesn't support it yet (but it's over a year old...): http://forums.mysql.com/read.php?38,73109,73109
    3. Another option - you can use VI Server to have your PDA VI call a VI on your host machine if they are networked... there is an example of this that ships with LabVIEW PDA I think - check it out!  Thus, if the db is on your host machine, you could write your host VI, and have your PDA VI call it etc.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Error accessing mysql database from a remote host

    Hi all,
    I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
    ERROR at line 3:
    ORA-04052: error occurred when looking up remote object
    cmswhit_odbc13.mdl_user@RLTEST
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
    'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
    ORA-02063: preceding 2 lines from RLTEST
    Here's the script:
    sqlplus -s <<endofit
    $USERPASS
    set serveroutput on;
    DECLARE
    user_name varchar2(30);
    moo_user_name varchar2(300);
    routine VARCHAR2(40);
    cntr NUMBER(8);
    CURSOR read_saradap is
    select gobtpac_external_user
    from gobtpac
    where gobtpac_external_user in ('greenup','yfeng');
    CURSOR read_mdl_user is
    select "username" from "mdl_user"@rltest where "username" = user_name;
    -- E N D O F C U R S O R S --
    BEGIN
    dbms_output.enable(1000000000);
    -- STEP 1: Read through Banner
    cntr := 0;
    OPEN read_saradap;
    LOOP
    routine := 'Read applicant';
    -- Read an applicant record
    dbms_output.put_line('Reading Banner user');
    FETCH read_saradap INTO user_name;
    EXIT WHEN read_saradap%NOTFOUND;
    dbms_output.put_line('Read Banner username=' || user_name);
    cntr := cntr + 1;
    -- Read the Moodle user;
    routine := 'Read moodle user';
    OPEN read_mdl_user;
    FETCH read_mdl_user INTO moo_user_name;
    IF read_mdl_user%NOTFOUND THEN
    dbms_output.put_line('Moodle user not found');
    ELSE
    dbms_output.put_line('Read Moodle username=' || moo_user_name);
    END IF;
    CLOSE read_mdl_user;
    END LOOP;
    rollback;
    CLOSE read_saradap;
    dbms_output.put_line('Total processed: ' || cntr);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE);
    dbms_output.put_line(SQLERRM);
    dbms_output.put_line('Error user=' || user_name);
    dbms_output.put_line(routine);
    END;
    EXIT;
    endofit

    The error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
    Max
    http://oracleitalia.wordpress.com

  • Accesing mysql database from threads

    Hi
    dont know if this is the right place for this
    I'm building a server-client application, on sever's side I create a thread for every client who can request several operations over a mysql database (insert, delete, update, etc), at some point 2 clients can request the same operation over the same registry (2 clients trying to delete the same registry, for example), I try to avoid that to happend, so before doing any operation over the database I check the correct status (a registry must exist to delete, or not exist to create, for example), this is the code that makes that (for inserting a registry):
    //first I make sure the registry does not exist
    sql = "SELECT id_grupo FROM adm_grupo WHERE nombre_grupo = '" + nomGrupo + "'";
    res = bd.ConsultarSQL(sql);
    //If already exist, the operation is rejected
    if (res.next()) {
        EnviarError("Error al Crear el Grupo: Ya existe ese nombre");
         return -1;               
    //Check point ends
    //If not, the insert statement is made
    sql = "INSERT INTO adm_grupo VALUES (NULL,'" + nomGrupo + "','N')";however, since it could be 2 threads (every thread is an object) doing that, the first one can pass the check point and stop because its processor time is over, so the second can start its insert process and pass the check point too (because the first one didn't have enough time to insert the registry), then both registries are inserted causing a logical error, I thought in fixing that problem using the synchronized keyword for the functions, but I read that keyword blocks 1 object that can be accesed for several threads, but in my case I have several threads, everyone accesing its own object, so I'm not sure if the synchronized will work, I dont know any other solution to this,
    thnx in advance for any help

    Sure.  But test it.  You'll need to test it regardless, just to make sure it all works.
    In general, I usually prefer to have the backup tool create the initial SQL database archive on the primary server, zip it, and to then have the backup server in a trusted network location pull the database archive over to the backup server.  (It can then unzip it or process it as needed.)  With this, the primary server doesn't have access to the backups, nor to the backup server. This intended to isolate the access that a breach of the primary server might permit.

  • Export All MySQL Databases From CPanel Account Using Actionscript 3 Air Desktop Program

    As the title says, and I know there are easier ways, but I need to figure out how to write inside my Adobe Air program a way to retrieve all my MySQL databases and then export all of them to my local computer. So it would export them in the .sql format and I could easily import them if I ever needed to.
    I don't know where to even start to try to incorporate this feature.
    Thanks

    Hi Jian,
    Sorry for the delay.
    We're generally a Mac house, so there's only the one Win7 machine that we test on. However we did send the app out for testing, and had similar results on some (but not all) of their Win7 environments.
    Where should I send the app?

  • What's the default mysql database name in Crystal Report Server XIR2

    Hi Experts,
    I am upgrading Crystal Report Server from XIR2 to XI3.1.
    I need to know the default mysql database name when upgrading.
    Anyone knows?

    Hi,
    In XI3.1, when BOE installed with default mySQL DB then the installer creates a DataSource with name "Business Objects CMS".
    And the DB name will be "BOE120".
    I guess in XIR2 DB name will be ''BOE115".
    Also, if you launch the CMC admin page then in the settings link the DB info will be displayed.
    -Noor.
    Edited by: Nooreazam Sayyad Abdullas Peerzade on Dec 15, 2010 1:54 PM

  • CONNECTING TO MySql DATABASE FROM Jdeveloper

    Hi,
    How can i connect to MySql database form Oracle Jdeveloper version 11.1.2.0.0.
    I was trying to create connection using create database connection dialog box but it is giving this error:
    Test failed: Driver class not found.
    Verify the Driver location
    Please can I get step by step procedure on how to create this connection.
    Thanks.

    Connect JDeveloper to a MySQL database - YouTube
    http://people.cis.ksu.edu/~hankley/d764/tut06/Ross_mySQL/mySQL.htm
    Hil &amp;amp; Co IT Solutions: Connecting to MySQL in JDeveloper

  • Unable to connect to database from forms or reports

    hi friends
    i installed oracle9i database and oracle 9i D2K in 2 different drives with different homes
    i am able to start database and the forms interface but i am unable to connect to the database from forms
    what might be the error please clarify it
    Bye
    Srikumar

    Thanks Farahd!
    <br><br>
    Interesting Info!
    <br><br>
    Raj<br><br>
    <b>www.oraclebrains.com<a>
    <br><font color="#FF0000" size="1">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>

  • Is it possible to pass a formula value from a sub-report to a main report

    Hi there,
    Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
    Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
    formula name=main_subIntRatePageCount
    Shared NumberVar subIntRatePageCount := TotalPageCount;
    and in the Main report Ive declared the formula variable as,
    formula name=subIntRatePageCount
    Shared NumberVar subIntRatePageCount;
    subIntRatePageCount;
    I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
    The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of  3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".

    Also thanks Raghavendra, Asha,
    I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
    I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
    The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
    Regards
    Robert.

  • Is it possible to read the vROps Database (Oracle / MSSQL)?

    Hi everyone,
    is there a way to access the vROps Database and collect all necessary information's on virtual machines without using the web interface or API.
    There is an Oracle / MSSQL Database which is used by the system, but I guess it's for internal operations only, but it would be much faster to get reports using the db - I guess
    Thanks for any help and clues
    smsys

    The VAs have Postgrs, xDB, FSDB.. etc databases under the covers and they are not directly accessible in any programmatic means other than the vR Ops API. They vApps do not run Oracle or MSSQL.

Maybe you are looking for

  • Is there a way to make the bookmarks in Safari icons as opposed to text?

    Was just wondering if there was a way to replace the text on the bookmarks bar with just an icon representing the page, as I would like to fit more bookmarks on and prefer the look overall

  • Black screen when MSI driver is installed (MSI R9 270X 2GB )

    Bought new computer and everything worked fine until couple of days ago .. can pull some info ..     Windows 7 Ultimate x64     AMD 8350FX 8-core     ASUS Sabertooth 990FX R2     MSI R9 270X 2GB GDDR5     8GB 1866MHz RAM     120gb SSD Kingston HyperX

  • Horizontal scroll bar problem in Portal????

    Hi Guys, I am facing some problem when i open any thread. Horizontal scrollong bar is coming at the end of the thread. eg: If i have some text in the thread which is more than width of the screen and has some 10 replies to that thread, Then i should

  • HT1338 i think i have a virus

    e-mail to all my contacks was sent out with out me sending it

  • Featured artists - On the Artists ipod menu

    I got an ipod for Christmas and having some troubles! I imported Justin Timberlakes new album, when I tried to find it on under 'artist' it lists all the featured artists aswell..timberlake feat snoop Dogg etc. Is there any way I can change this so i