Help with oracle 10g with servlet

Someone please help me with this error when i compile this:
import java.io.*;
import java.net.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.*;
import javax.servlet.http.*;
* @author GeorgeZheng
* @version
public class MyServlet2 extends HttpServlet {
/** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, SQLException, ClassNotFoundException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
doPost(request,response);
out.close();
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (SQLException ex) {
throw new ServletException(ex);
catch (ClassNotFoundException ex) {
throw new ServletException(ex);
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
String username = request.getAttribute("username").toString();
String password = request.getAttribute("password").toString();
if(validateUser(username, password))
response.sendRedirect("SQL.html");
else
response.sendRedirect("input.jsp");
} catch (SQLException ex) {
throw new ServletException(ex);
catch (ClassNotFoundException ex) {
throw new ServletException(ex);
/** Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";
public boolean validateUser(String user, String pass)
throws IOException, ServletException{
int checker = 0;
boolean test = false;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","hr", "123456kk");
System.out.println("database connected");
Statement sqlStatement = conn.createStatement();
ResultSet rs = sqlStatement.executeQuery("select * from log");
while(rs.next())
if(rs.getString(1) == user)
checker++;
if(rs.getString(2) == pass)
checker++;
conn.close();
return test;
catch (SQLException e)
throw new ServletException("Servlet cannot display the records", e);}
catch (ClassNotFoundException e)
throw new ServletException("JDBC Driver not found.", e);
it gave me this error:
Deploying application in domain failed; Error loading deployment descriptors for practiced Line 12 Column 48 -- Duplicate unique value [MyServlet2] declared for identity constraint of element "web-app".
; requested operation cannot be completed
C:\Documents and Settings\GeorgeZheng\practiced\nbproject\build-impl.xml:452: Deployment error:
The module has not been deployed.
See the server log for details.

I would guess that your problems has to do with your web.xml file.
MeTitus

Similar Messages

  • ClassNotFound Error with Oracle 10g...please help!

    Hello everyone!
    I am currently using jdk 1.4.2_10 with Oracle 10g. I tried to connect to the database, like this:
    try{
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String serverName = "***.***.*.*";
    String portNumber = "****";
    String sid = "****";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String usr = "*****";
    String pwd = "*****";
    //Load the JDBC driver
    Class.forName(driverName);
    //Connect to the base
    connect = DriverManager.getConnection(url,usr,pwd);
    catch(ClassNotFoundException e){
    System.out.println("Error---No database driver");
    catch(SQLException s){
    System.out.println("Error---No connection to the database");
    Here is what's in my classpath, (i added the ojdbc14.jar) :
    c:\oracle\product\10.2.0\client_2\jdbc\lib\ojdbc14.jar;
    C:\Program Files\QuickTime\QTSystem\QTJava.zip
    Can anyone please help me?
    It's really a problem, i've been searching for 2 days now.....
    thank you

    Most likely it is about
    oracle.jdbc.driver.OracleDriver
    You need to include Oracle JDBC lib.
    If you are using JDeveloper then:
    In Project properties click on Libraries
    Click AddLibrary
    In the list that appears choose Oracle JDBC

  • How to install Oracle 10g with its grid functionality on Linux?

    Well, I thought changing the subject line might help to convey the meaning of what I want better. Here's my earlier post from a few hours earlier.
    Hi,
    I need carry out TPC-C benchmarking test for Oracle 10g (using one, two and four servers; basically using the grid in case of multiple servers). I have installed oracle 10g (with default options) on all the four servers, but beyond that I have no idea as to how can I invoke the grid option in order to carry out the tests-by my statement, I mean do I need to choose grid option while installing Oracle or is it the case that I specify the grid option in the code that I write for carrying out the tests. The OS is LInux (Scientific Linux).
    An unrelated problem-one of the servers is 64 bit while others are 32 bit, and proper versions of oracle have been installed. Neglecting the obvious fact that this will make comparisons difficult does anyone anticipate any other problem?
    Many Thanks!
    Steve
    *******************************************************************************************************

    Do you think that the installation of RAC can be done
    in a week? yes, as long as you know what you are doing and can catch the concept quickly and good at following instructions.
    Moreover, we do not have a cluster-all we
    have are four servers that are separate. Do you know
    if the name Real Application Clusters implies that
    the servers have to be in a cluster?
    The basic idea of RAC is all these hosts need to share same set of storage. The most popular such storage are SAN and NAS.
    An example of building RAC on linux
    http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi.html

  • Installing SAP R/3 4.7 SR1 EXT200 on Linux 5.2 with Oracle 10G (10.2.0.2)

    I am getting following error which executing the DB Load. I am done with CI installation and Installed Oracle 10g with patch level 10.2.0.2( according to PAM)
    I got following error in sapinst.log file:
    INFO 2009-08-31 17:12:48
    Working directory changed to /home/rq1adm/sapinstall_DB.
    INFO 2009-08-31 17:14:08
    Task files created
    INFO 2009-08-31 17:14:08
    Command files created
    ERROR 2009-08-31 17:14:39
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPDOKCL.log
    ERROR 2009-08-31 17:17:39
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPSSEXC.log
    ERROR 2009-08-31 17:20:09
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPAPPL2.log
    ERROR 2009-08-31 17:25:39
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPAPPL0.log
    ERROR 2009-08-31 17:31:09
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPAPPL1.log
    ERROR 2009-08-31 17:32:39
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPSDIC.log
    ERROR 2009-08-31 17:33:39
    MSC-01015  Process finished with error(s), check log file /home/rq1adm/sapinstall_DB/SAPDD03L.log
    SAPDOKCL.log:
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (TSK) ERROR: Unable to rename /home/rq1adm/sapinstall_DB/SAPDOKCL.TSK to /home/rq1adm/sapinstall_DB/SAPDOKCL.TSK.bck
    (TSK) ERROR: OS error message: No such file or directory
    /sapmnt/RQ1/exe/R3load: job finished with 1 error(s)
    /sapmnt/RQ1/exe/R3load: END OF LOG: 20090831171410
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: DOKCLU created #20090831171410
    (IMP) INFO: import of DOKCLU completed (1262437 rows) #20090831171545
    (DB) INFO: DOKCLU~0 created #20090831171548
    (DB) INFO: disconnected from DB
    /sapmnt/RQ1/exe/R3load: job completed
    /sapmnt/RQ1/exe/R3load: END OF LOG: 20090831171548
    SAPSSEXC.log:
    /sapmnt/RQ1/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#7 $ SAP
    /sapmnt/RQ1/exe/R3load: version R6.40/V1.4
    /sapmnt/RQ1/exe/R3load -dbcodepage 1100 -i /home/rq1adm/sapinstall_DB/SAPSSEXC.cmd -l /home/rq1adm/sapinstall_DB/SAPSSEXC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (TSK) ERROR: file /home/rq1adm/sapinstall_DB/SAPSSEXC.TSK.bck already seems to exist
                 a previous run may not have been finished cleanly
                 file /home/rq1adm/sapinstall_DB/SAPSSEXC.TSK possibly corrupted
    /sapmnt/RQ1/exe/R3load: job finished with 1 error(s)
    /sapmnt/RQ1/exe/R3load: END OF LOG: 20090831171710
    SAPAPPL2.log:
    /sapmnt/RQ1/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#7 $ SAP
    /sapmnt/RQ1/exe/R3load: version R6.40/V1.4
    /sapmnt/RQ1/exe/R3load -dbcodepage 1100 -i /home/rq1adm/sapinstall_DB/SAPAPPL2.cmd -l /home/rq1adm/sapinstall_DB/SAPAPPL2.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: IACKEYCOLD~001 created #20090831171940
    (DB) INFO: IACKEYCONV created #20090831171940
    (IMP) INFO: import of IACKEYCONV completed (0 rows) #20090831171940
    (DB) INFO: IACKEYCONV~0 created #20090831171940
    (DB) INFO: IACKEYCONV~001 created #20090831171940
    (DB) INFO: IACMIME created #20090831171940
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (TSK) ERROR: file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK.bck already seems to exist
                 a previous run may not have been finished cleanly
                 file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK possibly corrupted
    /sapmnt/RQ1/exe/R3load: job finished with 1 error(s)
    /sapmnt/RQ1/exe/R3load: END OF LOG: 20090831171940
    WE have OCFS2 as a file system( on shared disk location)/sapmnt/RQ1/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#7 $ SAP
    /sapmnt/RQ1/exe/R3load: version R6.40/V1.4
    /sapmnt/RQ1/exe/R3load -dbcodepage 1100 -i /home/rq1adm/sapinstall_DB/SAPAPPL2.cmd -l /home/rq1adm/sapinstall_DB/SAPAPPL2.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: IACKEYCOLD~001 created #20090831171940
    (DB) INFO: IACKEYCONV created #20090831171940
    (IMP) INFO: import of IACKEYCONV completed (0 rows) #20090831171940
    (DB) INFO: IACKEYCONV~0 created #20090831171940
    (DB) INFO: IACKEYCONV~001 created #20090831171940
    (DB) INFO: IACMIME created #20090831171940
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (TSK) ERROR: file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK.bck already seems to exist
                 a previous run may not have been finished cleanly
                 file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK possibly corrupted
    /sapmnt/RQ1/exe/R3load: job finished with 1 error(s)
    /sapmnt/RQ1/exe/R3load: END OF LOG: 20090831171940
    WE have OCFS2 as a filesystem ( on shared location)
    Thank you,
    Raj.

    Hello Rajesh,
    The log clearly says,
    ERROR: file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK.bck already seems to exist a previous run may not have been finished cleanly. file /home/rq1adm/sapinstall_DB/SAPAPPL2.TSK possibly corrupted
    below existing thread will help you.
    Re: DataBase Instance cannot create task file during the installation
    SAP Note 455195
    Regards,
    Debasis.

  • SAP R/3 4.7 EXt200 installation on RedHat Linux 5.2 with Oracle 10G

    Hi,
    I got this error during Database Instance Installation:
    All file system node operations of table tORA_SapdataNodes processed successfully.
    ERROR      2009-08-31 11:04:39 [iaxxinscbk.cpp:289]
               abortInstallation
    MDB-06020  File not found: [no oracle rdbms file found].
    I am done with CI Installation.
    Any help would be appreciated.

    Hi ,
         First of all please check availability of your OS + DB requiremnts whether it is supported by SAP or not.You can check this at Product Availability Matrix at ::
    http://service.sap.com/pam
         If this support for your environment i.e.RedHat Linux 5.2 with Oracle 10G then be informed that after starting sapinst in step create database it will prompt you for installing your oracle DB. So open a new window & install your databse ,do the patching of your DB & then continue with sapinst after successfull installation of oracle.Rest of details sapinst will prompot you during instal;lation.
        Hope this will guide you for your query.
    Thanks..
    Mohit

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

  • OS 64bit and Oracle 10G with Patch are 32bit

    Hello Experts
    My problem little bit typical. I am new in Oracle.
    I am going to install Solution Manager 4.0 with Oracle 10G on Windows 2003 64bit, IBM x3650 Server.
    I have already installed Oracle 10G 32bit, with 32bit patches,. It’s a general Oracle without sapserver.cmd file, so I have installed with setup.exe file. I have mounted the database, created the listener.
    New there are three directories  1) D:\Oracle\Product\10.2.0\admin\DEV10\adump, bdump………etc. db\admin
    2) E:\Oracledata\DEV10\control01.ctl, 02.ctl…………etc.
    3) G:\ Archives
    Now I am trying to install SOLMAN with sapinst.exe 64bit windows, after giving the export path, it shows the massage ‘Oracle software not installed. Install oracle software first.’ Means SAP does not recognizing Oracle.
    After that I am trying to install with sapinst.ext 32bit, now it is excepting the export path. After two steps it is asking for Kernal & Oracle client path. What is oracle client? I think it is asking for OCL10264.SAR file.
    My Questions are:
    1. I have to download form market place 32bit or 64bit file?
    2. My oracle installation is proper or not.
    3. Where I have to uncar that file. Please provide me the proper path, step by step.
    4. I am going to the right direction or I am a wrong. Please help me ….. I don’t want to format the machine.
    Please explain me in details step by step. I am in the problem, I have no friends in this line. 
    Best Regards
    Sunil

    > My Questions are:
    > 1. I have to download form market place 32bit or 64bit file?
    if you're installing on 64bit you need to install the 64bit Oracle binaries. And not only those but the actual patch 10.2.0.2 and the necessary interim patches before you can start to load the database. Additionally you should use the provided script to install the database, not setup.exe
    Additionally you will need a 64bit JDK from Sun (avaible on the link in note 941595).
    > 2. My oracle installation is proper or not.
    No - you need a 64bit Oracle - and not the installation CDs downloaded from the Oracle site but those from SAP.
    > 3. Where I have to uncar that file. Please provide me the proper path, step by step.
    Where you have to uncar WHAT file?
    > 4. I am going to the right direction or I am a wrong. Please help me &#133;.. I don&#146;t want to format the machine.
    The proper approach would be to download the installation guide at
    http://service.sap.com/instguides
    and read all the installation notes, download the patches and install them as suggested in the guide before trying to start the installation. The preparation and planning of the system will take some time before you actually start to install.
    A SolMan installation is no Microsoft Office where you do "setup - continue - continue - finish"...
    Markus
    Markus

  • 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

  • Data moving between Oracle 10g with CLOB fields

    Hi all,
    I have a trouble in migrate data between Oracle 10g with different platform. The worst thing is that I don't have a DBA account for the DB importing data. I think I can't use IMP or IMPDP in this way. So I seek help from sql developer, but it seems having another problem with CLOB data moving.
    Re: EA2 : SQL Developer 1.5 : export data CLOB columns
    in the thread, I found someone wrote this:
    - SQL Developer v1.5 EA2 - exports first 4000 chars (which is anyway too small for me, because my CLOBs are larger - if they were smaller, I would have made them VARCHAR2s instead!).
    I would like to ask:
    1, What SQL Developer v1.5 EA2 is? Is it the Data Modeling one?
    2, How to export table data with CLOB with SQL Developer v1.5 EA2? Since 4000 chars is enough for me to use.
    OR any other method to export CLOB but not IMP / IMPDP ?
    Now I am using the spool of sqlplus to export CLOB.
    Many thanks,

    1. The EAs are Early Adapters, betas, so you should expect the same behaviour from the latest 1.5.4 production release.
    2. Exports can be done with the Database Export tool, through the table's context menu in the navigator tree or the result grid's context menu.
    Have fun,
    K.

  • Does Informatica 7.1 work with Oracle 10g?

    Hi All,
    I have Oracle 10g (10.2.0.1.0) and I just installed Informatica 7.1. While creating a new repository in Informatica Repository Admin Console, I am getting error as:
    "Unable to create the repository content. Make sure that the database connection and the license keys are correct. Check the activity log for more details."
    I confirmed that the license keys are correct. The database connection is also good as I could connect using the same username/password in SQLPlus. The activity log says:
    WARNING : RS_39204 [Mon Mar 22 15:05:38 2010] : (5160|5392) Bad config file [Config\infrepo-es.cfg]. Has it been manually named and placed in the Config directory? The expected name is [Config\_Yrepository_0name_Z-es.cfg].
    ERROR : RS_39194 [Mon Mar 22 15:51:52 2010] : (5160|5568) Failure in running command-line request type[100401] [pmrepagent create -r "Info_Repo" -t "Oracle" -u infrep -c orcl -d "MS1252" -h sathe-3766a91ad -o 9999  -a Info_0Repo-es.lic -H "sathe-3766a91ad" -O 5001 -K 2082340862]. Error is [An error occurred while creating the repository.
    I did not change anything manually,as it says in the warning. I have no idea what the error says.
    My friend has Oracle 9i and he do not get any error like this. So does Informatica 7.1 works with Oracle 10g ?
    Please help.
    Yogini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I found that with Oracle 10g you have to grant all DBA privileges to the repository user. This is not needed in Oracle 9i. Thats why I was getting error.
    Now it works fine.
    Thanks!
    Yogini

  • CCX7.0 Database Integration with Oracle 10g through ODBC

    Good Day…
    We are up to integrate CCX7.0 with Oracle 10g, CCX7.0 documents show the way to integrate the CCX7.0 with SQL server, but mention nothing about Oracle 10g, anyway...
    I tried to check the ODBC options, there were many options, I tried to select any Oracle related choice, just to find out Oracle should supply the driver for it. In the forums, people say it’s an Oracle Client, but what will this client do? Am I going to connect though it to the oracle database server or is it going to query the database to my CCX server? What am I going to use in this case, user DSN or system DSN?
    If there any tips or recommendations I will be grateful, as it is my first database integration.
    Thanks
    AT

    Hi Aaron
    Thanks Aaron for the information, and yes you are right, I am not a database person.
    I have here some questions, sorry if some of them sounds silly
    1)       Is there a certain Oracle Client version? or and Oracle Client will work for me?
    2)       Do you recommend system DSN on user DSN?
    3)       “…. available to any device on the system” as you said in your reply, what do you mean by "device" and "system"? Sorry, but this will help to clear the picture to me
    4)       What will this Oracle Client exactly do? Is it going to build an SQL table on my CCX server that query the information from the Oracle Server?
    5)       My customer has already implemented database integration with IPCC3.5, how can I check the current configuration of the Oracle Client, and what things else should I check before proceeding with the integration?
    The reason I want to understand this because there is a lot of database integration is requested from us, the CCX scripts can be used to query data from SQL tables, I read a lot about this –waiting for the implementation phase- the lucky me, the first integration I faces is with Oracle.
    Anyway, who said learning is easy.
    Thanks Aaron for your time, waiting your answers.
    AT

  • How to connect Forms 6i & Reports 6i with oracle 10g R2?

    Hey everybody,
    I need your help in connecting both Forms 6i & Reports 6i with Oracle 10g Release 2 db, MS Access(2003, 2007) and SQL database(Microsoft Visual Studio 2008). I am a newbie. I have installed all of them on my HP notebook, with Windows 7 Ultimate(32 bit OS) installed. I want to generate forms & reports by accessing data from above mentioned databases. Please provide me with the configuration steps.
    Thanks in advance...!

    Welcome to the forum ;-)
    Please be sure to review the following:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    First, I think it would be a good idea if we can understand why you have chosen to use a nearly new operating system yet install Oracle products that are 10 years old (i.e. Forms/Reports 6i) on it. In general, this is not a good idea. Although running such an old version on Win7 can be made to work, the possibility of having problems is likely. If you are infact new to the product, using a configuration where you are likely to have problems may not be a good starting place. Also, you should be aware that Forms/Reports 6i was desupported several years ago. Documentation and other information is gradually being replaced by newer information, so resources for this old version are going away. The latest version of Forms/Reports is part of Fusion Middleware 11R2 (version 11.1.2.0) and requires WebLogic Server 10.3.5 (or 10.3.6) in order to be installed.
    Second, if you decide to stick with F/R 6i, are you planning to run the applications you create in a browser or as a client/server application? This information is important because how you connect to a database will slightly differ depending on which option you choose. Also, if you want to connect to non-Oracle data sources you can use ODBC for client/server or Oracle Transparent Gateway. However, if you plan to deploy the applications using a browser, Gateway is your only option for connecting to non-Oracle datasources. As for connecting to MS Access, I believe ODBC is your only option, so web deployment may not be an option.
    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/ch1.htm
    There are many other references available. Try a Google search.
    As for connecting to an Oracle database, this is generally easy. For the Builder(s) and client/server runtime to connect, add the db information to the tnsnames.ora found in the Oracle Home (installation directory) \network\admin. If you are unfamiliar with what goes in the file you can copy the entries created for your database. The db will have a similar file found in a similar place in its installation directory (Oracle Home). For example, you might find something like this:
    ORCL =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = YOURSERVER.COM)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    )Simply copy this information to the end of your tnsnames.ora found where Forms/Reports is installed then restart any running Forms or Builders.

  • Oracle 10g with Sun AS 7

    Hello I am trying to use a Oracle DB with a Sun Application server 7, i create a connection pool with the following attributes:
    serverName: 147.2.9x.xx
    portNumber: 1521
    networkProtocol: thin
    user: SYSTEM
    password: xxx
    databaseName: orcl
    whn i use a JDBC Resources with the precious pool i get an exception at the iitialization of the pool, i have try with different parameters with no luck, does anyone have already use Oracle 10g with Sun AS 7, I will appreciate any pointers.
    thanks,
    Oscar Forero
    Exception:
    javax.servlet.ServletException: Servlet.init() for servlet Boot threw exception
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3355)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3601)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
         at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
         at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
         at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    ----- Root Cause -----
    java.lang.ExceptionInInitializerError
         at oracle.jdbc.pool.OracleDataSource.<init>(OracleDataSource.java:96)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:234)
         at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
         at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
         at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
         at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:94)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
         at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
         at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:170)

    please post your DataSource entry from the server.xml

  • Can we establish connection between developer 6i with oracle 10g

    hi all
    can some body guide me that how we establish connection between developer 6i with oracle 10g. i have install developer and oracle 10g on different machine
    please guide me

    Look at following thread
    Re: Patch 18 available for Windows Client/Server Forms 6i
    I had installed Patch 18 against 10G DB and Forms work well.
    Anyway you can see patches in
    http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=4948577&release=3060000&plat_lang=912P
    Hope this helps
    Regards
    Rosario

  • Oracle 10g with c# MS visual studio 2013 ultimate

    i am not able to connect oracle 10g with c#,i get the error :"oracle.dataaccess.client.oracleexception" ie . provider is not compatible with the version of oracle client. plz help

    Hello,
    Welcome to MSDN forum.
    But your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because this is an issue with Oracle data access on VS, I would post issues to Oracle forum:
    https://community.oracle.com/community/developer/english/oracle_database/windows_and_.net for better support.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Change the colour of any transaction

    Hi SAP Gurus,     Can anybody help me......     I need to change the colour of any transaction from default blue to black and white.     I need this at transaction level, I can do this at user level (Customized local layout). Thanks & Regards, Krishn

  • Buffer table not up to date - Create Model Service Specifications

    Hello, when our user try to create Model Service Specifications in tr. ML10 the following error message is arised: "Buffer table not up to date" Message no. SE001 Diagnosis An internal error has occurred. Procedure Exit the function and then reinvoke

  • Does photoshop cs3 work on lion

    trying to decide whether to upgrade... does anyone know how photoshop cs3 works on lion?  I really need the other cloud compatability to sync all my devices easily but would hat to lose my photoshop as I havent yet spent the money to move to cs5... t

  • 4k footage in 2k project

    Hi all, i was trieing to import some jvc 4k footage in a 2 k project. I imported the files and so far no problem al looks great. Then i wanted to zoom in on the 4k footage to change the shot. That didnd work, the footage was 1920x1080 and no way i co

  • How do I find out if a phone has a clean ESN?

    I am looking to buy an phone on ebay.  How can I know for certain if a phone has a ESN?