Issue in exposing MySQL table as OData in SMP 3.0

Experts,
I have created OData entity to represent a table in mysql & deployed in SMP3.0. Also created a security profile with same name as Service Namespace given while deploying.  Mysql connector jar is placed in SMP pickup folder. In gateway cockpit destination is created and assigned to the deployed service. 
The service URL shows the proper result (lists the entity name), while trying to access the data from the entity (http://[Service URL]/[Entity name]) the response says "Unable to load com.mysql.jdbc.Driver".
Kindly help to fix this issue.
Thanks

Fenil doshi ;  jian wu
I was able to do it SMP 3.0 SP03. Can you verify your steps once?
PS: It is always advisable to work on latest version. If you are planning to upgrade then nothing can be the best than this.
Regards,
JK

Similar Messages

  • Expose multiple tables via OData automatically.

    Hello everyone,
    Currently I'm developing an application which has a number of database tables exposed using OData by using the extended application services of HANA XS.
    My .xsodata file looks like this:
    service namespace <myNamespace> {
    <mySchema>.<myTable1> as <myName1> keys generate local "GENERATED_ID";
    <mySchema>.<myTable2> as <myName2> keys generate local "GENERATED_ID";
    <mySchema>.<myTable3> as <myName3> keys generate local "GENERATED_ID";
    <mySchema>.<myTable4> as <myName4> keys generate local "GENERATED_ID";
    And sure enough, it works like a charm. But I wonder if there isn't a way to do things more efficiently. Specifically, I have all the tables I want to expose in a folder, And I'd like to know if I can somehow tell the system that every table uploaded to that folder has to be exposed, without having to write each and every one of them manually. And of course, I have the same problem with my permissions and authorizations. I'd like to hear the opinion of the community on this.
    Best regards.

    Well, for anyone who may still care, I'm glad to say I finally solved the problem. Unfortunately, the xsodata framework in HANA doesn't allow the functionality I've just mentioned, apparently for security reasons. The solution to this problem was, then, to not use xsodata, and instead use server side Javascript (XSJS) to program a routine that reads the particular table we're interested in and creates a JSON (or XML) model on the fly, which then can be consumed by our application.
    The problem is, of course, that this approach is more limited in the sense that we aren't using OData, and therefore, we don't have a lot of the functionality that OData provides, unless we code it by ourselves.
    If anyone is willing to suggest a better approach to this problem, feel free to do so!

  • Fields missing from MYSQL table in Database Expert

    I have just updgraded from Crystal XI to 2011 and I am still having issues with joining a mysql table to any other table.
    Fields show up in field explorer but when I try to uise Database expert the only filed in the MYSQL table is the ID field.
    Am I missing something here. Same problem with both versions. When I runa report using just the mysql table evrything works fine.

    Typically if the field doesn't show up the CR can't figure out what type it is which means when we query the DB for the field type the client/server returns the wrong type or some type that CR doesn't support.
    How is the field defined on the server?
    Thank you
    Don

  • Map MySQL Tables in RPD

    1. Created new physical database in RPD for MySQL
    2. Setup Connection Pool
    -- Call Interface ODBC 3.5
    -- Checked: Shared Logon, Enable connection pooling, Use multithreaded connections and parameters supported
    3. Click view data on one of the tables and data is displayed.
    4. Created a physical join
    5. Created new Business Model
    6. Created two logical tables (one fact and one dimension)
    7. Joined logical tables (inner join)
    8. Created new subject area by dragging business model over
    9. Saved and validated
    10. Started test server
    11. Queried new MySQL table and get the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
    SQL Issued: SELECT "Ministry Person"."Account Number" saw_0 FROM "CRS" ORDER BY saw_0
    Just figured out the issue but am posting this in case someone else encounters this issue: The issue was that I had installed the ODBC driver on my local PC but had not installed it on the Test server. Once we installed the driver on the Test Server it solved the issue.
    Edited by: BenS on Feb 27, 2013 12:46 PM

    See post...

  • Can't get JDeveloper/OC4J to auto-create MySQL table

    My EJB 3.0 based application is failing to create the MySQL table specified by the @TableGenerator annotation.
    Following are the details of my setup and application:
    System Setup:
    - JDeveloper 10.1.3.1.0
    - JDK 1.5.0_07
    - Ubuntu Linux kernel 2.6.15-27-k7
    - MySQL 5.0
    - MySQL ConnectorJ 3.1.13
    - Using the embedded OC4J server.
    I have done the following so far:
    1. Created a database in MySQL called, "test". Did not create any tables.
    2. Created a JDeveloper library whose classpath contains the MySQL ConnectorJ JAR file, and tested a database connection from JDeveloper successfully.
    3. Added the MySQL/JDeveloper library to my ejb project, "Test1/Model", and selected the database connection from the project properties EJB panel. The database connector is called, "SmashDB". Selecting the database connector on the EJB panel resulted in JDeveloper setting "SmashDBDS" as the default datasource.
    A JSF managed bean calls an EJB Session Bean, CustomerFacadeBean.persistEntity(Customer customer) with a Customer object as a parameter to save in the database. OC4J successfully connects to the MySQL "test" database, but fails when trying to access the ID_GENERATOR table, which is specified in an @TableGenerator annotation. The class-level annotations in the Customer entity are as follows:
    @Entity
    @NamedQuery(name = "Customer.findAll", query = "select o from Customer o")
    @TableGenerator(name = "BasicIDGen", table = "ID_GENERATOR", pkColumnName = "GEN_KEY",
    pkColumnValue = "CUSTOMER_ID", valueColumnName = "GEN_VALUE")
    public class Customer implements Serializable {
    private Long id;
    private Integer version;
    private String firstName;
    private String lastName;
    private String emailAddr;
    My persistence.xml file contains:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="Model">
    <properties>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    </properties>
    </persistence-unit>
    </persistence>
    With the above definition for Customer and persistence.xml, I expected the ID_GENERATOR and CUSTOMER tables to be created automatically, but this doesn't seem to be happening.
    Instead, I get the following error message and stack trace:
    2006-09-27 12:25:29.564 ERROR J2EE EJB-08006 [CustomerFacade:public java.lang.Object facade.CustomerFacadeBean.persistEntity(java.lang.Object)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    Query:DataModifyQuery(); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    etc.....
    Help would be greatly appreciated. I've gotten to this point, which appears to be one error away from success (I hope) but don't have a clue what this problem is caused by.
    Thanks,
    Rick Horowitz

    darby wrote:
    I can't get this to compile. help!
    You can not issue DDL in PL/SQL. You need to use dynamic SQL for that:
    create or replace
    PROCEDURE CREATE_STAGING_TABLES as
    BEGIN
      -- I CAN'T GET THIS TO WORK BUT I CAN COPY THESE LINES AND RUN THEM AND THEY WORK! WHATUP?
      DBMS_OUTPUT.PUT_LINE('Begin Create Import Tables');
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PROJECTS As select * from FAC_PROJECTS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(dteImported DATE)';
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PURCHASE_ORDERS As select * from FAC_PURCHASE_ORDERS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(dteImported DATE)';
      DBMS_OUTPUT.PUT_LINE('End Create Import Tables'); 
      EXCEPTION
       WHEN OTHERS THEN
         raise_application_error(-20022,substr(SQLERRM,1,255));
    END CREATE_STAGING_TABLES;SY.
    P.S. I am not questioning why do you need to create tables from a stored procedure.

  • How can i access a mysql table without putting the data in a datagrid

    I developed my air app with a datagrid which uses a php service to display all data from a table of strings in MySql.
    I now do not need the datagrid, how can i get the data from my database without putting it into a dataGrid? Do i need an array? how do i do this? anyone got any example code?

    Balakrishnan V wrote:
    var resultArrayCollection:ArrayCollection=new ArrayCollection()
    protected function resultHandler(event:ResultEvent)
         result=event.result as ArrayCollection
    You can use the result array collection now inside your program for any further changes / manipulations.
    Hope this helps; If you have further doubts, do ask...
    Balakrishnan V
    Hi, yeah this helps,
    however, how would i generate a result handler for a service that has not been called yet? Sorry my knowledge of services is very limited.
    This is a php service, get_all service that returns all the rows from a mysql table.
    I can see the service box with the service i want to use:
    but how do i pass that to a result handler?

  • Problem in inserting data into MySQL table

    Hi All,
    I have a table with just two fields FIRSTNAME and SECONDNAME in MySQL. I am accepting the First Name and Second Name in two text fields and then trying to insert them into the MySQL table. I have set the concurrency of the rowset to CONCUR_UPDATABLE and am using the code clip for Database row insert with the appropriate changes. When I run the application it doesnt give me any errors but the data is also not inserted in the table. Can someone pls help me out.
    Loneliness wins the race :-)

    This is my problem when inserting single row. What does it means ?
    MusicInsert: com.mysql.jdbc.NotUpdatable: Result Set not updatable.This result set must come from a statement that was created with a result set type of ResultSet.CONCUR_UPDATABLE, the query must select only one table, and must select all primary keys from that table. See the JDBC 2.1 API Specification, section 5.6 for more details

  • Exporting a MySQL table to Excel

    My users have asked for the ability to download a MySQL table to an Excel spreadsheet. Being an amateur at all this PHP stuff I googled around and found a script that is supposed to do this. It's failing with "Couldn't select database: Access denied for user 'holli10_tonybabb'@'%' to database '_admin' 1044"
    It seems to be picking up an extra "@%" from somewhere
    I used the same settings that I successfully used for a CRON backup job.. I'd really appreciate any insight you can suggest. The script is shown below,
    Thanks
    Tony
    <?php
    //EDIT YOUR MySQL Connection Info:
    $DB_Server = "209.200.244.80";  //your MySQL Server
    $DB_Username = "holli10_tonybabb";     //your MySQL User Name
    $DB_Password = "abcd1234";    //your MySQL Password
    $DB_DBName = "_admin";    //your MySQL Database Name
    $DB_TBLName = "volunteers";    //your MySQL Table Name
    //$DB_TBLName,  $DB_DBName, may also be commented out & passed to the browser
    //as parameters in a query string, so that this code may be easily reused for
    //any MySQL table or any MySQL database on your server
    //DEFINE SQL QUERY:
    //you can use just about ANY kind of select statement you want -
    //edit this to suit your needs!
    $sql = "Select * from $DB_TBLName";
    //Optional: print out title to top of Excel or Word file with Timestamp
    //for when file was generated:
    //set $Use_Titel = 1 to generate title, 0 not to use title
    $Use_Title = 1;
    //define date for title: EDIT this to create the time-format you need
    $now_date = date('m-d-Y H:i');
    //define title for .doc or .xls file: EDIT this if you want
    $title = "Dump For Table $DB_TBLName from Database $DB_DBName on $now_date";
    Leave the connection info below as it is:
    just edit the above.
    (Editing of code past this point recommended only for advanced users.)
    //create MySQL connection
    $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password)
    or die("Couldn't connect to MySQL:<br>" . mysql_error() . "<br>" . mysql_errno());
    //select database
    $Db = @mysql_select_db($DB_DBName, $Connect)
    or die("Couldn't select database:<br>" . mysql_error(). "<br>" . mysql_errno());
    //execute query
    $result = @mysql_query($sql,$Connect)
    or die("Couldn't execute query:<br>" . mysql_error(). "<br>" . mysql_errno());
    //if this parameter is included ($w=1), file returned will be in word format ('.doc')
    //if parameter is not included, file returned will be in excel format ('.xls')
    if (isset($w) && ($w==1))
    $file_type = "msword";
    $file_ending = "doc";
    }else {
    $file_type = "vnd.ms-excel";
    $file_ending = "xls";
    //header info for browser: determines file type ('.doc' or '.xls')
    header("Content-Type: application/$file_type");
    header("Content-Disposition: attachment; filename=database_dump.$file_ending");
    header("Pragma: no-cache");
    header("Expires: 0");
    /* Start of Formatting for Word or Excel */
    if (isset($w) && ($w==1)) //check for $w again
    /* FORMATTING FOR WORD DOCUMENTS ('.doc')   */
    //create title with timestamp:
    if ($Use_Title == 1)
      echo("$title\n\n");
    //define separator (defines columns in excel & tabs in word)
    $sep = "\n"; //new line character
    while($row = mysql_fetch_row($result))
      //set_time_limit(60); // HaRa
      $schema_insert = "";
      for($j=0; $j<mysql_num_fields($result);$j++)
      //define field names
      $field_name = mysql_field_name($result,$j);
      //will show name of fields
      $schema_insert .= "$field_name:\t";
       if(!isset($row[$j])) {
        $schema_insert .= "NULL".$sep;
       elseif ($row[$j] != "") {
        $schema_insert .= "$row[$j]".$sep;
       else {
        $schema_insert .= "".$sep;
      $schema_insert = str_replace($sep."$", "", $schema_insert);
      $schema_insert .= "\t";
      print(trim($schema_insert));
      //end of each mysql row
      //creates line to separate data from each MySQL table row
      print "\n----------------------------------------------------\n";
    }else{
    /* FORMATTING FOR EXCEL DOCUMENTS ('.xls')   */
    //create title with timestamp:
    if ($Use_Title == 1)
      echo("$title\n");
    //define separator (defines columns in excel & tabs in word)
    $sep = "\t"; //tabbed character
    //start of printing column names as names of MySQL fields
    for ($i = 0; $i < mysql_num_fields($result); $i++)
      echo mysql_field_name($result,$i) . "\t";
    print("\n");
    //end of printing column names
    //start while loop to get data
    while($row = mysql_fetch_row($result))
      //set_time_limit(60); // HaRa
      $schema_insert = "";
      for($j=0; $j<mysql_num_fields($result);$j++)
       if(!isset($row[$j]))
        $schema_insert .= "NULL".$sep;
       elseif ($row[$j] != "")
        $schema_insert .= "$row[$j]".$sep;
       else
        $schema_insert .= "".$sep;
      $schema_insert = str_replace($sep."$", "", $schema_insert);
      //following fix suggested by Josue (thanks, Josue!)
      //this corrects output in excel when table fields contain \n or \r
      //these two characters are now replaced with a space
      $schema_insert = preg_replace("/\r\n|\n\r|\n|\r/", " ", $schema_insert);
      $schema_insert .= "\t";
      print(trim($schema_insert));
      print "\n";
    ?>
    <?php /*_____________________END___OF___THE___CODE______________________
    get more code from http://www.fundisom.com/phparadise/
    ___________________________________________________________________*/ ?>

    Never mind. The web hosting support people people told me I had my parameters wrong. It works fine now.

  • How to insert data into the mysql table by giving as a text file

    Hi,
    Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
    Thanks:)

    At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).

  • How to consume webservices hosted on NW CE 7.31 in Gateway to expose data out as oDATA

    Hi Experts,
    I have NW CE 7.31 on Java Stack. I have SAP-MDM webservices hosted on the same.
    How can I access those webservices in NW Gateway to expose data retrieved as oDATA (e.g for Mobile Apps in UI5) ?
    Thanking in advance.
    Amey

    Hello Amey,
    U mean to say u want to consume external web-service in SAP Gateway and expose data through Gateway ?
    If yes please have a look at this :
    Consuming an External RESTful Web Service with ABAP in Gateway
    Regards,
    Ashwin

  • Only first row of a mysql table is updated

    Hi,
    I'm using Netbeans 5.5 with Visual Web Pack and trying to update data, stored in a mysql table.
    I use a dropdown list to select a row and show the data in various textfields. This works fine. The problem, that it's not possible to save changes, I enter in the textfields. Everytime only the first row of the table will be (over)written. This happens also with the derby database. I checked the tutorial about inserting, updatting and deleting, it works fine. But they use a table to make changes to the data, so the case is different from mine.
    Can anybody give me a hint? I'm going crazy ...
    Thanx in advance
    Markus

    yes this sounds crazy. i encountered similar problem with textfields. if they are numerous type, don't forget to add integerConverter to the textfield. it helped me out in my case. hope this helps
    dElay

  • Inserting Into MYSQL Table Via Air/PHP = Not Allowed?

    I'm having trouble inserting data into my mysql database tables through my air app. All the code is pretty much exactly the same as in some examples I've seen but it simply won't do it. Is this because of some sort of security restriction because the air app is on my machine and the server with my mysql database on is elsehwhere? Or is it possible to insert data via an air app?
    Here is the example I've been following:-
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html

    jimmyoneshot wrote:
    Thanks for the answers boys. I've decided I'm going to change it into a flex app instead as then there won't be any problems. It simply means I'll have to add a logon system to it.
    While were on the subject do you guys happen to know of any examples anywhere of how someone can REMOVE data from an sql table via flex/php?
    What I'm looking for is basically when a user uses my app and enters info into some text inputs, if that specfic info exists within a table then that data will be removed from the table. The way this works is that they will choose an item within a tilelist which is populated by the data from this mysql table and this will insert the data of the selected item into the text inputs and then they click a remove button to remove that item. Can't find anything similar anywhere though.
    You will have to use a common identifier, eg:
    give each row in your database an ID.
    then pass that ID value on the button press to a PHP script, which does something like:
    $deleteID = $_POST["delID"];
    mysql_query("DELETE FROM exampleTable WHERE ID='$deleteID
    maybe check that a row with that ID exists first for verification, then pass back a value indicating if removal was a success or not.
    You can delete on other values, but remember they have to be unique for the database, else you'll run the risk of deleting multiple values.
    Or you could delete on a compound key, depends on the data you're storing in the grid.

  • Issue with Update of Table VARINUM

    Hi,
    I am getting waiting Issues with Update of table VARINUM. Has anybody faced such an issue.
    I have a lot of Jobs which are running in background. I am submitting it through a report. what can be the issue.
    Regards,
    Abhishek jolly

    Thisi is quite old, but not answered properly yet, so there you go:
    SAP generates a new job and temporary variant on report RSDBSPJS, for each HTTP call,which creates database locks on table VARINUM .
    This causes any heavyweight BSP application  to hang and give timeout errors.
    The problem is fixed applying OSS note 1791958, which is not included in any service pack.

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

  • InvalidFieldtype from mysql-tables:  chars instead of decimals

    Fieldtype form mysql-tables accessed via ODBC
    are in Crystal Reports 2008
    almost all chars instead of decimals
    with Crystal Reports 8 it works, with 2008 german (even with SP1) all fieldtypes are false !
    Mysql  -> CrystalReports
    Decimal(1,0) -> Char[2]   in german "Zeichenfolge[2]"
    Decimal(6,0) -> Char[7]   in german "Zeichenfolge[7]"
    VarChar(5)    -> char[5]
    BigInt           -> INT
    MySQL 5.0.62 (on Window Server 2003)
    ODBC : "mysql-connector-odbc-5.1.5-win32.msi"

    Try the DataDirect 5.3 drivers available off our download site.
    What do the vlaues look like? Please paste in a few samples.
    Thank you
    Don

Maybe you are looking for

  • Two iPhone users, one account for apps & media

    My wife and I just bought iPhones. We are trying to share some stuff and keep other stuff separate, here's what we're looking for. 1. We use two different Macs with different emails. 2. We are using a single Mobile Me account to sync our address book

  • IPad Apps and Mavericks

    Is it possible to get access to iPad Apps with Mavericks?

  • Just installed Tiger, where is........?

    I bought the 4CD Tiger set from Applerescue and installed it on my 450 MHz G4 PowerPC on an empty spare 27 GB hard drive. The dock has a ? for iMovieHD. I also noticed iPhoto is no longer a part of OS X as it was in Panther. I did a custom install om

  • Writting a SQL statement with Java

    Hello, I would like to perform an interrogation of my database but I have some trouble... here is the code I use (with MySQL) : String requete = "SELECT * FROM produit WHERE NomChimique ='butanol'"; rs = stmt.executeQuery (requete); With this requete

  • -39 error, what does this mean, how do I fix it?

    I try and download a game from the iTunes store and I get this error message "There was a problem download ######. An unknown error occured -39."  How do I fix this, I am using the Windows Vista platform.