Problems inserting date values in Oracle 10g

Hi All,
I'm having SERIOUS problems trying to insert a simple date value in my oracle.
I did this one million times before in xMII 11.5, but now it appears that doesn't work anymore!
Here are some info:
Data Server Config:
Date Prefix: TO_DATE('
Date_Sufix: ', 'MM/DD/YYYY HH24:MI:SS')
Internal Date Format: yyyy-MM-dd HH:mm:ss
In my Query Template:
Date and Time Format: MM/dd/yyyy HH:mm:ss
In my Transaction
Parameter: datefromxmlformat(datenow, "MM/dd/yyyy HH:mm:ss")
I also tried change the parameter to datenow, no success.
I tried to change the Query Template format, no success.
Finally, I tried to change my Date prefix & sufix, no success too.
I really don't know what else I can do. I would appreciate some help.
PS: I'm using xMII 12.0.1 with ojdbc14.jar
Thanks in advance.
Pedro Sena

Pedro,
The Data Server config for InternalDateFormat should be:  MM/dd/yyyy HH:mm:ss
This is because it is used in conjunction with the DatePrefix and DateSuffix whenever you use the DateColumn or  the [SD] and [ED] tokens in a query template.
If you are inserting a date field with an arbitrary parameter (not a date token like above) then you need to use the TO_DATE wrapper pieces around your date field string.
The DateFormat in the query template controls the format of the StartDate and EndDate buttons in the applet toolbar if using an iChart/iSPCChart/iGrid and a time sensitive query, but when you build the string for an insert parameter you must manage the whole format yourself.
If you really just want datenow and the xMII server time is sufficient for your insert query then you can leverage the Data Server config settings like: INSERT INTO TABLE VALUES([ED)
This way the default query template time settings will use 'now' for the end date of the query and when the string is sent to Oracle it will actually look like:
INSERT INTO TABLE VALUES(TO_DATE('10/19/2007 08:41:00', 'MM/DD/YYYY HH24:MI:SS'))
Regards,
Jeremy

Similar Messages

  • How to insert date value into oracle?

    hi,
    iam reading date from xml using vb.net and inserting it into oracle table.
    the date value in xml file is in the format of "01012003".
    i want to insert into oracle table.but iam getting an error "ORA-1843: not a valid month".
    how to solve this problem.
    Any suggestions or examples...

    That's not a date. It's just a string. Convert it to a date using,
    DateTime d = DateTime.ParseExact("01022003", "MMddyyyy", null);
    or
    Dim d As DateTime = DateTime.ParseExact("01022003", "MMddyyyy", Nothing)
    and then bind it to a parameter. ODP.NET will take it from there.
    You should never be hard-coding the date literal into your SQL query.
    David

  • Data source from Oracle 10g problem

    Dear Sir,
    We met a problem when we moved on Oracle 10g from Oracle 9i in the loading process. The scenario is that SQL Server as Data Warehouse, SSIS as ETL tool. But the length of string column as data source table in SSIS grows up 4 times when using Oracle 10g. For example, ABC table x varchar2(8) --> x varchar(32) -->x varchar(8) --> x varchar(8) {Oracle 10g        SSIS(source) }
    This doesn’t influence the loaded result (I did not find any problem until now), but that influence loading performance and we worry about potential problems.
    Do you have any idea or have you met the same problem before? Is I need setup some parameters like "code page"
    Thanks,
    Jacob

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

  • Problem finding data in an Oracle Database using CMP beans

    I am having a problem retrieving data from an Oracle database that has a date as
    part of the key. This data was loaded into my database via a batch process writing
    in java using java.sql.Date to store the date information. When calling the findByPrimaryKey
    method of a CMP Entity Bean I continued to get the FinderException. I know this
    data is in my database because I can view the data via SQLPlus and Microsoft Access.
    Has anyone ever experience problems with CMP beans accessing data from an Oracle
    database that had a date as part if the key or with accessing data in the database
    that insert via another method outside of your CMP bean. I desperately need some
    answers.

    Hi Dave,
    You should probably post this type of question in the CMP or JDBC section
    for best results. Chances are that the date is suffering from a rounding
    problem (it could be a date/time in the database with a different time zone)
    or is not the date that you think it is (wrong century or millenium). I've
    seen both. You need to write a quick piece of code that loads in those
    values as both Java timestamps and dates and makes sure that they are what
    you think they are.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Dave White" <[email protected]> wrote in message
    news:3c1a4ac3$[email protected]..
    >
    I am having a problem retrieving data from an Oracle database that has adate as
    part of the key. This data was loaded into my database via a batchprocess writing
    in java using java.sql.Date to store the date information. When callingthe findByPrimaryKey
    method of a CMP Entity Bean I continued to get the FinderException. Iknow this
    data is in my database because I can view the data via SQLPlus andMicrosoft Access.
    Has anyone ever experience problems with CMP beans accessing data from anOracle
    database that had a date as part if the key or with accessing data in thedatabase
    that insert via another method outside of your CMP bean. I desperatelyneed some
    answers.

  • Insert date time into oracle database from jsp

    pls tell me ,from jsp how can I insert datetime values into oracle database .I am using oracle 9i .here is codethat i have tried
    html--code
    <select name="date">
    <option selected>dd</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    <select name="month">
    <option selected>dd</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    <select name="year">
    <option selected>dd</option>
    <option>2004</option>
    <option>2005</option>
    <option>2006</option>
    <option>2007</option>
    </select>
    here the jsp code
    <% date= request.getParameter("date"); %>
    <% month= request.getParameter("month"); %>
    <% year= request.getParameter("year"); %>
    try
    { Class.forName("oracle.jdbc.driver.OracleDriver"); }
    catch (ClassNotFoundException exception)
    try
         Connection connection = null;
         out.println("connectiong the database");
    connection = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcsid","scott","tiger");
    out.println("connection getted");
         int rows = 0;
         String query_2 = "insert into mrdetails values(?)";
         String dob = date+month+year;
         prepstat = connection.prepareStatement(query_2);
         prepstat.setTimestamp(4,dob);
         rows = prepstat.executeUpdate();
         out.println("data updated");
    catch (Exception exception3)
    out.println("Exception raised"+exception3.toString());
    }

    To insert date values into a database, you should use java.sql.Date. If it also has a time component, then java.sql.TimeStamp.
    Your use of prepared statements is good.
    You just need to convert the parameters into a date.
    One way to do this is using java.text.SimpleDateFormat.
    int rows = 0;
    String query_2 = "insert into mrdetails values(?)";
    String dob = date+"/" + month+ "/" + year;
    SimpleDateFormat sdf = new SImpleDateFormat("dd/MM/yyyy");
    java.util.Date javaDate = sdf.parse(dob);
    java.sql.Date sqlDate = new java.sql.Date(javaDate .getTime);
    prepstat = connection.prepareStatement(query_2);
    prepstat.setTimestamp(4,sqlDate);
    rows = prepstat.executeUpdate();
    out.println("data updated");Cheers,
    evnafets

  • Problem with date format from Oracle DB

    Hi,
    I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
    I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
    I have changing the field settings in DataSource  to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
    I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
    If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
    Thanks in advance.
    Regards
    Varada

    Thanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
    The issue again in detail
    I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
    The problem is,  I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
    I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
    I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
    Regards
    Varada

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to change timeout parameter value in Oracle 10g R2

    Anyone knows how to change timeout parameter value in Oracle 10g Database R2?

    Waheed Azhar wrote:
    actually i am getting ORA-01013 exception which directly relates to the timeout value but i think it's hidden parameter...What makes you think it's a hidden parameter?
    A search of MetaLink for that error turns up a number of hits, most of which a very situational specific. Exactly what are you doing when you get this error? Are you connecting over an ODBC connection? Are you getting it on a connection request? At db shutdown? During a long-running query?

  • How to insert date value through xml in oracle

    hi,  I am inserting data using xml string. Everything is working perfect but it shows error when i try to insert data into a table with date coloumn. it shows unparsable date error.... I am using this format of date 1-jan-2011
    my prcedure and java method is as follows...
    CREATE OR REPLACE procedure app_data.Insert_callrepHeader(xmlDoc in CLOB,t_id out varchar2,flag out varchar2) is
    insCtx DBMS_XMLSave.ctxType;
    rows number;
    t_tablename VARCHAR2(300);
    t_seqval varchar2(100);
    begin
    t_tablename:='T_CALLREPORT_HDR';
    insCtx := DBMS_XMLSave.newContext(t_tablename);
    rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc);
    dbms_output.put_line(to_char(rows) || ' rows inserted');
    DBMS_XMLSave.closeContext(insCtx);
    select SEQ_T_CALLREPORT_HDR.currval into t_seqval from dual;
    dbms_output.put_line(to_char(t_seqval) || ' is the current sequence number');
    end;
    public void insertAll(String[][] dbTblFieldValues) throws Exception
    Connection conn=null;
    conn=getOracleConnection();
    try
    String str="<ROWSET>"+
    "<ROW>"+
    "<PROCESSNAME>sheet</PROCESSNAME>"+
    "<FK_EMPID>1</FK_EMPID>"+
    "<FK_JRNY_PLAN_HDR_ID>278</FK_JRNY_PLAN_HDR_ID>"+
    "<FK_DIVISIONID>3</FK_DIVISIONID>"+
    "<STARTDATE>7-may-2011</STARTDATE>"+ what should be the format of this date????_+
    "<COMMENTSFORWEEK>comment</COMMENTSFORWEEK>"+
    "<SAPCODE>mysapcode300</SAPCODE>"+
    "<WEEKNO>1</WEEKNO>"+
    "<TOTALEXPENSE>800</TOTALEXPENSE>"+
    "<VENDORINVOICETYPE>mytype</VENDORINVOICETYPE>"+
    "<REPORTNO>1</REPORTNO>"+
    "<SUBPROCESSID>800</SUBPROCESSID>"+
    "</ROW>"+
    "</ROWSET>";
    StringBuffer sb = new StringBuffer(400000);
    sb.append(str);
    String clobValue = sb.toString();
    PreparedStatement preparedStatement=conn.prepareStatement("{call INSERT_CALLREPHEADER (?,?,?)}");
    preparedStatement.setString(1, clobValue);
    preparedStatement.setString(2,null );
    preparedStatement.setString(3,null );
    preparedStatement.execute();
    preparedStatement.close();
    conn.close();
    catch (Exception e) {
    // System.out.println(e.getMessage());
    e.printStackTrace();
    }

    I have got the answer...
    use DBMS_XMLSave.setdateformat(insCtx, 'dd-MM-yyyy'); and u can change ur date format....

  • Problem inserting clob value into xmltype column

    Hi all,
    I have created a table in XML DB using as:
    CREATE TABLE TransDetailstblCLOB ( id number, data_xml XMLType) XmlType data_xml STORE AS CLOB;
    I am trying to insert large xml data into the data_xml column which is of type XMLTYPE.
    I followed this link (http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html) to create a clob object and insert into xml.
    I am getting the following error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00229: input source is empty
    Error at line 0
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    My code snippet:
    private static CLOB getCLOB(String xmlData, Connection conn) throws SQLException{
         CLOB tempClob = null;
         if(conn==null){
              log.debug("Connection object is null");
              throw new SQLException("Connection object is null");
         try{
         // If the temporary CLOB has not yet been created, create new
         tempClob = CLOB.createTemporary(conn, true, CLOB.MODE_READWRITE);
         // Open the temporary CLOB in readwrite mode to enable writing
         tempClob.open(CLOB.MODE_READWRITE);
         // Get the output stream to write
         writer = tempClob.getCharacterOutputStream();
         writer.write(xmlData);
         } catch(SQLException sqlexp){
              tempClob.freeTemporary();
         sqlexp.printStackTrace();
         } catch(Exception exp){
         tempClob.freeTemporary();
         exp.printStackTrace();
         return tempClob;      
    public static void insertXML(String xmlData, Connection conn){
         CLOB clob = null;
         String query;
         log.debug("Inside insertXML" +xmlData);
         try{
         query = "INSERT INTO TransDetailstbl1(data) VALUES (XMLType(?)) ";// Changed prev TransDetailstbl
         // Get the statement Object
         pstmt = conn.prepareStatement(query);
         //      xmlData is the string that contains the XML Data.
         // Get the CLOB object using the getCLOB method.
         clob = getCLOB(xmlData, conn);
         // Bind this CLOB with the prepared Statement
         pstmt.setObject(1, clob);
         int i =pstmt.executeUpdate();
         log.debug("pstmt.executeUpdate () status ::: "+i);
         // Execute the Prepared Statement
         if (i == 1) {
         log.debug("Record Successfully inserted!");
         } catch(SQLException sqlexp){
         sqlexp.printStackTrace();
         } catch(Exception exp){
         exp.printStackTrace();
         finally{
              try{
                   pstmt.close();
    //           Flush and close the stream
                   writer.flush();
                   writer.close();
              // Close the temporary CLOB
              tempClob.close();
              catch(Exception e)
                   log.debug("Cant close prepared statement.");
                   e.printStackTrace();
    Can anyone help me out?
    Please let me know if any other info is required.
    Regards,
    Robina

    Hi all,
    I now modified the code to write the data using Stream.
    I am getting this error message: SQLException while updateORA-24813: cannot send or receive an unsupported LOB
    On googling it seems the its usually caused when I am using the different versions of oracle on
    server and client.
    My oracle details:
    Database product version : Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    JDBC driver name : Oracle JDBC driver
    JDBC driver version : 9.2.0.1.0
    DataStoreHelper name is: com.ibm.websphere.rsadapter.OracleDataStoreHelper@22542254.
    JDBC driver type : thin
    Can anyone tell me how to proceed?
    Thanks

  • Looking for a Web Interface for Editing Data in an Oracle 10g Database

    Greetings all!
    My organization is implementing Oracle 10g Release 2 Enterprise version. We have an employee who will need to edit data in the database which will hold staff phone numbers, email addresses, and other contact information. This employee will never need to administer the database or develop tables, queries, etc. They will only need to add and remove rows of data and edit text values stored in a database table.
    Does Oracle 10g have a built-in, browser-based tool that can be used to edit data in a table via a friendly user interface? If no, can you please recommend an easy to use tool for editing data in an Oracle database?
    Thanks for any help you can provide!
    Rachel

    Justin,
    Thanks very much for the tip!
    Do you know if Oracle 10g has any kind of built-in tool for editing data? I have heard of "The Vault", but that appears to be a tool for administering database users, reports, etc. I am looking for some kind of tool that shows the data in a grid layout (like Microsoft Excel) and allows someone to edit and save data in that grid. A web-based tool would be best, but a desktop tool (especially if it's already part of Oracle 10g) would also be good.
    Thanks again,
    Rachel

  • Problem storing Russian Characters in Oracle 10g

    We are facing an issue in one of our sites which is in Russian Language. Whenever data is submitted with Russian Characters it saves it as Question mark(upside down) in the database. Database is not supporting these characters.The character encoding is done in UTF-8 format from the front end.
    This code use to work fine with Oracle 9i database but after the upgradation to Oracle 10g this problem has started occuring. We have not made any changes to the code after the upgradation of the database.
    How can we resolve this and what are the settings that we can do to make this work fine?

    What is your database character set and national character set?
    SELECT *
      FROM v$nls_parameters
    WHERE parameter like '%CHARACTERSET';Are you storing the data in CHAR/ VARCHAR2/ CLOB columns? Or NCHAR/ NVARCHAR2/ NCLOB?
    Justin

  • Problem with JDBC driver for Oracle 10g

    Hi.
    I've successfully accessed a MySQL database via a DataSource from a servlet (that uses a DAO). However, when I try to do the same with an Oracle 10g Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter of which I downloaded this afternoon as the latest driver JAR available on the Oracle site. As with the MySQL driver, I've placed it in the commons\lib folder within Tomcat. (I've also, of course, made the necessary modifications to server.xml and web.xml.)
    Upon examining the ReadMe file at the top of the Oracle download page, I found that the oracle.jdbc.driver package is now deprecated and all references to oracle.jdbc.driver should be replaced with oracle.jdbc. However, I got a similar error message when I tried this modification. Upon examining the contents of ojdbc.jar, I found that the driver was there and that it was, in fact, still oracle\jdbc\driver\OracleDriver!
    It appears as though the Oracle site has not been updated with a driver that matches its latest documentation. However, this does not explain why the driver is not even being loacted when it is in the correct place. Can anybody shed any light on this? Any help would be much appreciated.
    Thanks in anticipation.
    Cheers.
    Jan

    I've successfully accessed a MySQL database via a
    DataSource from a servlet (that uses a DAO). However,
    when I try to do the same with an Oracle 10g
    Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    That's different from a ClassNotFoundException.
    >
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter
    of which I downloaded this afternoon as the latest
    driver JAR available on the Oracle site. So you got ojdbc14.jar or ojdbc14_g.jar under the 10g drivers?
    As with the
    MySQL driver, I've placed it in the commons\lib
    folder within Tomcat. I think it's a better idea to put in the WEB-INF/lib directory of your Web app rather than commons/lib. WAR files are a very good idea, too.
    (I've also, of course, made the
    necessary modifications to server.xml and web.xml.)So you're using a JNDI data source? It sounds to me like that's where the problem is.
    You should not have to edit the server.xml at all. If you put the <ResourceParams> in a context XML file with the same name as your WAR file into the TOMCAT_HOME/webapps directory it'll be picked up automatically. (It might also be accessible in the META-INF directory for your app, but I haven't done it that way.)
    Upon examining the ReadMe file at the top of the
    Oracle download page, I found that the
    oracle.jdbc.driver package is now deprecated and all
    references to oracle.jdbc.driver should be replaced
    with oracle.jdbc.
    However, I got a similar error
    message when I tried this modification. Upon
    examining the contents of ojdbc.jar, I found that the
    driver was there and that it was, in fact, still
    oracle\jdbc\driver\OracleDriver! The fully-resolved class name you should be using MUST match the class that's in the ojdbc14.jar that you're using. Look in the JAR for the definitive answer: the one that I downloaded is still using the oracle.jdbc.driver package for OracleDriver.class. Ignore the docs - use the name that's in the JAR.
    It appears as though the Oracle site has not been
    updated with a driver that matches its latest
    documentation. That often happens with docs.
    However, this does not explain why the
    driver is not even being loacted when it is in the
    correct place. Can anybody shed any light on this?
    Any help would be much appreciated.I think the problem lies in your web.xml and server.xml
    I'd recommend that you decouple the JDBC from the Web app for now. See if you can connect to Oracle using a simple desktop app and leave the Web piece out of the equation for now. Once you can do that, you'll be certain that the parameters you're using are correct and you can turn your attention to getting the Tomcat configuration right.
    PS - I'm using Oracle 9.2.0.1 and Tomcat successfully right now, so it can be done.

  • Four GB of user data Limitation in Oracle 10g XE

    Hi Mates!
    There is one limitation in oracle XE which is:
    It stores up to four GB of user data.
    I am planning to migrate my database from Oracle 9i to Oracle 10g XE. My queries are below:
    1. Is it possible to migrate from Oracle 9i to Oracle 10g XE?
    2. I am confused regarding Four GB of user data Limitation. I don't understand nothing much about this. Presently If I prepare a dump (export) file in oracle 9i the size becomes around 250MB. If I switch to oracle 10g XE, how long will I be able to use my database?
    Rgds,
    Luther

    Hi Mates!
    There is one limitation in oracle XE which is:
    It stores up to four GB of user data.
    I am planning to migrate my database from Oracle 9i
    to Oracle 10g XE. My queries are below:
    1. Is it possible to migrate from Oracle 9i to Oracle
    10g XE?this is a simple test case, you can install XE, export from 9i and import to XE. I did it before, it worked for me, but this does not mean it will for you, testing is only way to be sure.
    There are lots of limitation of XE mentioned in the Licensing Information Guide.
    http://www.oracle.com/pls/xe102/homepage?remark=tahiti
    2. I am confused regarding Four GB of user data
    Limitation. I don't understand nothing much about
    this. Presently If I prepare a dump (export) file in
    oracle 9i the size becomes around 250MB. If I switch
    to oracle 10g XE, how long will I be able to use my
    database?My XE is ~3,3 GB total, datafile + tempfile size, apex applications are working without problem. But consider all syatem + user data as a total, so 250 MB user data won't be a problem, most probably.
    Rgds,
    Luther

  • Two problems in BSBM benchmark of Oracle 10g with Jena Adaptor 2.0

    Hi, all.
    I'm proceeding BSBM benchmark for Oracle 10g with Jena Adaptor 2.0.
    I'm using the codes that were introduced in Jena Adaptor 2.0 guide document, and I've applied Jena patches to Oracle 10g (10.2.0).
    But, two problems are occured in benchmark process.
    The first problem is
         that 250k dataset(consisted of 250030 triples) loading time elapses over several hours, (See below code snippet.)
    and the other is
         that exceptions are occured in some sparql query execution.
    I used below queries which have no error in query syntax.
    I confirmed that through other benchmark tests.
    In case of oracle benchmark test, quey1 is ok. but, query2 makes exception.
    Please, look about the Exception message below.
    What should I do for getting much better benchmark result?
    I appreciate any help or any hint.
    Best regards ~
    ### Query 1 ###
    PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/>
    PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    SELECT DISTINCT ?product ?label
    WHERE {
    ?product rdfs:label ?label .
    ?product a <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType18> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/ProductFeature833> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/ProductFeature61> .
    ?product bsbm:productPropertyNumeric1 ?value1 .
         FILTER (?value1 > 136)
    ORDER BY ?label
    LIMIT 10
    ### Query 2 ###
    PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/>
    PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX dc: <http://purl.org/dc/elements/1.1/>
    SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?
    propertyTextual3
    ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4
    WHERE {
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    rdfs:label ?label .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    rdfs:comment ?comment .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:producer ?p .
    ?p rdfs:label ?producer .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    dc:publisher ?p .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productFeature ?f .
    ?f rdfs:label ?productFeature .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual1 ?propertyTextual1 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual2 ?propertyTextual2 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyTextual3 ?propertyTextual3 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyNumeric1 ?propertyNumeric1 .
    <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536>
    bsbm:productPropertyNumeric2 ?propertyNumeric2 .
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyTextual4 ?
    propertyTextual4 }
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyTextual5 ?
    propertyTextual5 }
    OPTIONAL { <http://www4.wiwiss.fu-
    berlin.de/bizer/bsbm/v01/instances/dataFromProducer11/Product536> bsbm:productPropertyNumeric4 ?
    propertyNumeric4 }
    ### Exception Message (in query 2 execution) ###
    Exception in thread "main" java.sql.SQLException: ORA-00936: missing expression
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe
    (T4CPreparedStatement.java:799)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1038)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe
    (T4CPreparedStatement.java:839)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1133)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal
    (OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery
    (OraclePreparedStatement.java:3329)
    at oracle.spatial.rdf.client.jena.Oracle.executeQuery(Oracle.java:255)
    at oracle.spatial.rdf.client.jena.OracleSemQueryPlan.executeBindings
    (OracleSemQueryPlan.java:302)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH$StagePattern.<init>
    (QueryIterBlockTriplesQH.java:89)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH.nextStage
    (QueryIterBlockTriplesQH.java:55)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:92)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage
    (QueryIterRepeatApply.java:85)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding
    (QueryIterRepeatApply.java:54)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.hasNextBinding
    (QueryIterConvert.java:47)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding
    (QueryIteratorWrapper.java:29)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
    (QueryIteratorBase.java:69)
    at com.hp.hpl.jena.sparql.engine.ResultSetStream.hasNext(ResultSetStream.java:62)
    at benchmark.repository.oracle.OracleQuerying.getSelectQueryResult
    (OracleQuerying.java:148)
    at benchmark.repository.oracle.OracleQuerying.doSparqlQuery(OracleQuerying.java:101)
    at benchmark.repository.oracle.OracleQuerying.queryingData(OracleQuerying.java:90)
    at benchmark.repository.oracle.OracleQuerying.querying(OracleQuerying.java:49)
    at benchmark.repository.oracle.OracleQuerying.<init>(OracleQuerying.java:44)
    at benchmark.Benchmark.runTest(Benchmark.java:113)
    at benchmark.Benchmark.main(Benchmark.java:56)
    ### Loading Code Snippet ###
              String jdbcURL = "jdbc:oracle:thin:@" + Constants.HOST + ":1521:orcl";
              OracleDataSource ds = new OracleDataSource();
              ds.setURL(jdbcURL);
              ds.setUser(Constants.ORACLE_USER);
              ds.setPassword(Constants.ORACLE_PASSWORD);
              OracleConnection conn = (OracleConnection) ds.getConnection();
              oracle = new Oracle(conn);
              modelOracleSem = ModelOracleSem.createOracleSemModel(oracle, modelName);
              graphOracleSem = modelOracleSem.getGraph();
              graphOracleSem.createTables();
              graphOracleSem.clearRepository();
              for (int i = 0; i < fileList.length; i++) {
                   file = fileList;
                   if (file.isDirectory())
    continue;
                   inputFilePath = file.getAbsolutePath();
                   InputStream in = null;
                   try {
                        in = FileManager.get().open(inputFilePath);
                        if (in == null) {
                             throw new IllegalArgumentException("File: " + inputFilePath + " not found");
                        modelOracleSem.read(in, "", "N-TRIPLE");
                        modelOracleSem.commit();
                   } finally {
                        if (in != null)
                             in.close();

    Hi,
    The data loading was slow because incremental loading API was used. Please take a look at OracleBulkUpdateHandler. There is an addInBatch API that you can use.
    Now regarding queries, Jena Adaptor v2.0 was primarily designed for Oracle Database 11g Release 1.
    Recently, a new version of Jena Adaptor has been released and it's optimized for Oracle Database 11g
    Release 2.
    Is it possible to run your BSBM benchmark tests against Oracle Database 11g Release 2 using the latest
    Jena Adaptor (http://forums.oracle.com/forums/ann.jspa?annID=1179) ?
    Thanks,
    Zhe Wu

Maybe you are looking for

  • Looking for a better jewel case maker for I-tunes.  Any suggestions?s?s

    I don't like the jewel case maker that comes with itunes.  I want a simple app that will allow me to make standard jewel cases after burning a cd.  The one that comes with itunes only lets me do the slim version.  I would like to add my own pictures

  • My computer was stolen. How do I sync my ipod touch with my new computer without wiping all the music

    My laptop was stolen and now when I try to sync my music it wants to wipe my ipod touch 5th generation. How do I get around this ?

  • Pse 7 slide show

    Hello Is it possible in pse 7 slide show to bring in more than one photo per screen shot ie like picture of Mom and Dad and then bring in smaller photo's of children on same slide. Roxy

  • Adding A custom tab in CProjects

    Hi, I am very new to C Projects, There is a need to add a custom tab beside the "control plan" tab and the custom tab should embed the z web dynpro component or view. The purpose is to capture some data which needs to be filled in the Z table. Can an

  • Elements will not 'save' using an iMac

    I have used Adobe Prem Elements for some years on a PC....No prob..love it...generally ran smoothly,but recently purchased an iMac- 0S (Mountain Lion)and loaded Mac Elements disks... Ok probs there but sorted...Getting over probs importing clips from