Failed to execute sql statements

Hi all,
We have a cluster domain on a AIX 4.3 machine with jdk IBM 1.3. Sometimes we
get the following error at jdbc log files at one node. When we restart this node(
it is always the same) the problem stopped. Has anyone dealt with this problem
Version of BEA wls is 6.1 SP2.
SQLException: SQLState() vendor code(942)
java.sql.SQLException: ORA-00942: table or view does not exist
     at weblogic.jdbc.oci.Statement.private_parse(Statement.java(Compiled Code))
     at weblogic.jdbc.oci.Statement.private_parse(Statement.java(Compiled Code))
     at weblogic.jdbc.oci.xa.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
     at weblogic.jdbc.oci.xa.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
     at weblogic.jdbc.oci.xa.Connection.prepareStatement(Connection.java(Compiled
Code))
     at weblogic.jdbc.jta.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
     at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java(Compiled Code))
     at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java(Compiled
Code))
     at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java(Compiled
Code))
     at gr.cosmote.common.util.QueryLib.outletExists(QueryLib.java(Compiled Code))
     at gr.cosmote.common.session.BSRetrieverBean.outletExistsInBSCS(BSRetrieverBean.java:1289)
     at gr.cosmote.common.session.BSRetrieverBean_g4qybs_EOImpl.outletExistsInBSCS(BSRetrieverBean_g4qybs_EOImpl.java:1371)
     at gr.cosmote.common.session.BSRetrieverBean_g4qybs_EOImpl_WLSkel.invoke(Unknown
Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled Code))
     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java(Compiled
Code))
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compiled
Code))
     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(Compiled
Code))
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Thanks Yiannis

Yiannis,
Is it possible for you to upgrade to the latest service pack for weblogic?
Regards,
Slava Imeshev
"Yiannis Mallios" <[email protected]> wrote in message news:[email protected]...
>
Hi all,
We have a cluster domain on a AIX 4.3 machine with jdk IBM 1.3. Sometimes we
get the following error at jdbc log files at one node. When we restart this node(
it is always the same) the problem stopped. Has anyone dealt with this problem
Version of BEA wls is 6.1 SP2.
SQLException: SQLState() vendor code(942)
java.sql.SQLException: ORA-00942: table or view does not exist
at weblogic.jdbc.oci.Statement.private_parse(Statement.java(Compiled Code))
at weblogic.jdbc.oci.Statement.private_parse(Statement.java(Compiled Code))
at weblogic.jdbc.oci.xa.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
at weblogic.jdbc.oci.xa.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
at weblogic.jdbc.oci.xa.Connection.prepareStatement(Connection.java(Compiled
Code))
at weblogic.jdbc.jta.XAConnection.prepareStatement(XAConnection.java(Compiled
Code))
at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java(Compiled Code))
at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java(Compiled
Code))
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java(Compiled
Code))
at gr.cosmote.common.util.QueryLib.outletExists(QueryLib.java(Compiled Code))
at gr.cosmote.common.session.BSRetrieverBean.outletExistsInBSCS(BSRetrieverBean.java:1289)
at gr.cosmote.common.session.BSRetrieverBean_g4qybs_EOImpl.outletExistsInBSCS(BSRetrieverBean_g4qybs_EOImpl.java:1371)
at gr.cosmote.common.session.BSRetrieverBean_g4qybs_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled Code))
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java(Compiled
Code))
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compiled
Code))
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Thanks Yiannis

Similar Messages

  • [0098]SQL*Plus encountered oracle error 100 while executing SQL Statement

    Hi,
    i'm trying to delete duplicate records from a table and running following script. this script is triggered from a unix script. it successfully deletes the records but in the last throws following error message,
    :[0098]SQL*Plus encountered oracle error 100 while executing SQL Statement:2:Investigation required:
    can anybody please help? below is the script.
    DECLARE
    --CURSOR FOR DUPLICATE ROWS
    CURSOR CUR_DUPLICATE_ROWS IS
    Select RMS_NOTE_ID, RMS_SUMMARY_NOTE_ID, count(*) cnt from PARTY_NOTE
    group by RMS_NOTE_ID,RMS_SUMMARY_NOTE_ID having count(*) > 1;
    var_date PARTY_NOTE.PARTY_NOTE_CREATED_DATE%TYPE;
    BEGIN
    FOR DUPLICATE_ROWS_REC IN CUR_DUPLICATE_ROWS
    LOOP
    delete from party_note
    where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID
    and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID
    and rowid not in (select max(rowid) from party_note
    where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID);
    commit;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    ROLLBACK;
    END;

    Try this:
    delete party_note
    where  rowid not in (select max(rowid)
                         from   party_note
                         group  by rms_note_id, rms_summary_note_id
    commit;No need for cursors and loops.
    And when that's completed, consider ALTERing the table to add a unique index (or even a primary key) so you'll never need to do this again.

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Error executing SQL statement

    Hi,
    Can anyone see why I am getting this error message for my SQL query?
    WITH SKU_DATA AS (
    SELECT /*+ MATERIALIZE */ DISTINCT FROM_LOC_ID,
               SKU_ID,
               DESCRIPTION,
               UPDATE_QTY,
            ORDER_ID,
            CONSIGNMENT,
               WEIGHT,
            PALLET_ID,
            CASE 
        WHEN Upd_Qty_Ratio < 1
        THEN TO_CHAR(UPDATE_QTY) || 'U'
        WHEN TRUNC(Upd_Qty_Ratio) = Upd_Qty_Ratio
        THEN TO_CHAR(Upd_Qty_Ratio) || 'C'
        ELSE TO_CHAR(TRUNC(UPDATE_QTY)) || 'C' || ' ' || TO_CHAR(ROUND(MOD(Upd_Qty_Ratio, 1) *  USER_DEF_NUM_3, 6)) || 'U'
        END CU_Sum
        FROM (
      SELECT DISTINCT
             FROM_LOC_ID,
          S.SKU_ID,
             S.DESCRIPTION,
             ITL.UPDATE_QTY,
             S.USER_DEF_NUM_3,
          OH.ORDER_ID,
          ITL.CONSIGNMENT,
          ITL.PALLET_ID,
             NVL(ITL.UPDATE_QTY,0)*NVL(S.EACH_WEIGHT,0) Weight,
             ITL.UPDATE_QTY/(CASE S.USER_DEF_NUM_3 WHEN 0 THEN 1 ELSE S.USER_DEF_NUM_3 END) Upd_Qty_Ratio
        FROM INVENTORY_TRANSACTION ITL, SKU S, LOCATION L, ORDER_HEADER OH
        WHERE ITL.SKU_ID = S.SKU_ID
        AND ITL.CODE = 'Pick'
        AND ITL.CONSIGNMENT = $P{Consignment}
        AND OH.ORDER_DATE = TO_CHAR($P{Date}, 'DD-Mon-YYYY')
        AND OH.ORDER_ID = ITL.REFERENCE_ID
        AND ITL.TO_LOC_ID = 'CONTAINER'))
    SELECT DISTINCT ORDER_ID, CONSIGNMENT, WEIGHT, PALLET_ID, CU_Sum,
    (SELECT NVL(TO_CHAR(SUM(CASE WHEN NULLIF(SUBSTR(Cu_Sum, -1), 'U') IS NULL THEN NULL ELSE REPLACE(Cu_Sum,'C',NULL) END)),'0') ||'C' || ' ' || NVL(TO_CHAR(SUM(CASE WHEN NULLIF(SUBSTR(Cu_Sum, -1), 'C') IS NULL THEN NULL ELSE REPLACE(Cu_Sum,'U',NULL) END)),'0') ||'U' FROM SKU_DATA) AS Total_Cu_Sum
    FROM SKU_DATAThanks in advance.
    SM.

    Hi Sean,
    It is saying error executing SQL statement, but with no "ORA error" so maybe its a Jasper Reports error i'm not too sure.
    And this is a different version of the one we done together, that one is running fine just having problems putting the jasper file on to the server. I'm just using the main bits from the original SQL.
    SM

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • Failed to execute SQL via TxDataSource/JDBCConnectionPool

    I have an application running well on WLS doamin. After I deployed it to an EAI
    domain, it does not work any more.
    The WLI DB is an Oracle instance on the local box, and the application DB is an
    Oracle instance running on a remote box. The JDBCConnectionPool and TxdataSource
    are configured the same as that in the WLS domain. I can also run sqlplus using
    the userID, password and Service Name I used to configur the connection pool.
    However, when I test the application, it was rejected on the 1st SQL call. The
    error message is below. It seems the application has initialized the EJB and DAO
    object, but failed to execute SQL. The Exception is "Access not Allowed".
    Any clue? Thanks in advance!
    ------------------------ Error msg -------------------
    Home created
    0 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Set PDI Service
    EJB Session Context
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDIService
    EJBHome created
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Located PDICase
    EJB from ServiceLocator
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Set PDICaseEJB
    Session Context
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDICase
    EJB
    70 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDICase
    DAO: PDIServiceDAO
    80 [ExecuteThread: '14' for queue: 'default'] INFO usa.etm - Obtained connection
    to jdbc/oracle/TxETMDataSource data source
    80 [ExecuteThread: '14' for queue: 'default'] ERROR usa.etm - Failed to get PDIServiceDAO.select.pdi_seq
    java.sql.SQLException: Cannot obtain connection after 3600 seconds. , Exception
    = Access not allowed
    at weblogic.jdbc.jts.Connection.wrapAndThrowSQLException(Connection.java:747)
    at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:669)
    at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:184)
    at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:139)
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:92)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDIServiceDAOImpl.fetchSequence(PDIServiceDAOImpl.java:110)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDIServiceDAOImpl.createPDICase(PDIServiceDAOImpl.java:86)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDICaseBean.createPDICase(PDICaseBean.java:109)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDICaseBean_19x9h_EOImpl.createPDICase(PDICaseBean_19x9h_EOImpl.java:208)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBean.createPDICase(PDIServiceBean.java:116)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBean_dtohls_EOImpl.createPDICase(PDIServiceBean_dtohls_EOImpl.java:262)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBusinessDelegate.createPDICase(PDIServiceBusinessDelegate.java:67)
    at org.redcross.usa.bioarch.prototype.webapp.PDICreateAction.perform(PDICreateAction.java:90)
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)140 [ExecuteThread:
    '14' for queue: 'default'] ERROR "EJB_FACTORY" - Failed to complete session transaction
    for PDI Case EJB

    I have an application running well on WLS doamin. After I deployed it to an EAI
    domain, it does not work any more.
    The WLI DB is an Oracle instance on the local box, and the application DB is an
    Oracle instance running on a remote box. The JDBCConnectionPool and TxdataSource
    are configured the same as that in the WLS domain. I can also run sqlplus using
    the userID, password and Service Name I used to configur the connection pool.
    However, when I test the application, it was rejected on the 1st SQL call. The
    error message is below. It seems the application has initialized the EJB and DAO
    object, but failed to execute SQL. The Exception is "Access not Allowed".
    Any clue? Thanks in advance!
    ------------------------ Error msg -------------------
    Home created
    0 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Set PDI Service
    EJB Session Context
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDIService
    EJBHome created
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Located PDICase
    EJB from ServiceLocator
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Set PDICaseEJB
    Session Context
    10 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDICase
    EJB
    70 [ExecuteThread: '14' for queue: 'default'] INFO "EJB_FACTORY" - Created PDICase
    DAO: PDIServiceDAO
    80 [ExecuteThread: '14' for queue: 'default'] INFO usa.etm - Obtained connection
    to jdbc/oracle/TxETMDataSource data source
    80 [ExecuteThread: '14' for queue: 'default'] ERROR usa.etm - Failed to get PDIServiceDAO.select.pdi_seq
    java.sql.SQLException: Cannot obtain connection after 3600 seconds. , Exception
    = Access not allowed
    at weblogic.jdbc.jts.Connection.wrapAndThrowSQLException(Connection.java:747)
    at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:669)
    at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:184)
    at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:139)
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:92)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDIServiceDAOImpl.fetchSequence(PDIServiceDAOImpl.java:110)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDIServiceDAOImpl.createPDICase(PDIServiceDAOImpl.java:86)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDICaseBean.createPDICase(PDICaseBean.java:109)
    at org.redcross.usa.bioarch.prototype.ejb.pdicase.PDICaseBean_19x9h_EOImpl.createPDICase(PDICaseBean_19x9h_EOImpl.java:208)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBean.createPDICase(PDIServiceBean.java:116)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBean_dtohls_EOImpl.createPDICase(PDIServiceBean_dtohls_EOImpl.java:262)
    at org.redcross.usa.bioarch.prototype.ejb.pdiservice.PDIServiceBusinessDelegate.createPDICase(PDIServiceBusinessDelegate.java:67)
    at org.redcross.usa.bioarch.prototype.webapp.PDICreateAction.perform(PDICreateAction.java:90)
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)140 [ExecuteThread:
    '14' for queue: 'default'] ERROR "EJB_FACTORY" - Failed to complete session transaction
    for PDI Case EJB

  • What can be the cause of Web ADI error : Cannot execute SQL statement?

    I created a custom integrator in r12.2.3 and while loading I encountered an error, Cannot execute SQL statement.
    I checked my setup in Interface attribute , the RUN_ID column has a default type SQL QUERY with a default value SELECT  XXCONV_EAM_ASSET_NUM_S.NEXTVAL FROM DUAL.
    If I have a right setup here, what can be the cause of this error?

    Hi,
    The possibilities can be of various reasons, with the sql statements,
    xml descriptors, data sources, improper drivers anything. To crack down
    the solution, kindly let me know the error messages and what exactly are
    you trying to accomplish.
    Thanks & Regards
    Raj
    manimaran t wrote:
    what may be the cause of this error java.sql.SQLException: invalid sql
    type passed to callable statement in iplanet ussing JNDI
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • How could I extract past executed SQL statement from dictionary ?

    We use oracle11gR2 on win2008R2.
    How could I extract the past executed SQL statement from dictionary ? (Is it possible from V$SQLTEXT or other dictionary table ?)

    IvicaArsov wrote:
    Hi,
    You can find executed SQL in V$SQLAREA view (if it's still in memory). If it does'n't exist and you have AWR enabled you can query DBA_HIST_SQLTEXT table, but remember that the statistic information in AWR tables is filtered (1 out of 10).
    I.Arsov
    As you know when taking snapshot oracle will capture only top sql statements and stored in AWR.
    But can you please link(source) dba_hist_sqltext contain only 1 out of 10 filtered data?. In dba_hist_active_sess_history yes it contain 1 out of 10 sampled data.

  • Batch executing SQL Statements stored in a file in SAP DB

    hi,
    I am using SAP DB as database in my j2ee application. As a part of the application purpose, i need to insert a large no. of records in to the database directly. I have created the SQL file which contains the insert statements for the records
    Now i need to execute this file sothat the insert statement which are inside the file get executed. I am using SQL Studio to access to the Database.
    I would like to know whether any options are available in SQL Studio to for executing a SQL File.
    Kindly help
    Best regards,
    Sudheesh...

    Hi,
    I believe that the solution to your problem lies in creating sql studio objects.Please refer to the link below.Select the link "sql dialog" on the page.
    The following options are available for sql dialog.
    The following options are available in the SQL dialog:
    ·        Creating and executing SQL statements
    ·        Setting parameters for SQL statements
    ·        Importing and exporting SQL statements
    Select the "Importing and exporting sql statements" link on this page to know more about it.This will tell you how to import sql statements from ascii files.
    Basically,what you need to do is From the context menu for the SQL dialog, choose Import File or Export File.
    The link I have provided,gives a lot of other information as well.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ee/1c5bdfeba711d4aa2800a0c9430730/frameset.htm
    Hope this helps.
    Regards,
    Harish
    (Please award points for helpful answers)
    Message was edited by: HARISH SUBRAMANIAN

  • How to execute sql statement under bat file?

    I want to execute following statement
    C:\>sqlplus /nolog
    SQL> conn scott/tiger
    SQL> select * from tab;
    I know I can realize it as following test.bat and testdb.sql file
    test.bat is follows:
    sqlplus /nolog @testdb.sql
    testdb.sql is follows:
    conn scott/tiger
    select * from tab;
    Now I don't want to use sql file,I only want to use bat file,like follows:
    test.bat is follows:
    sqlplus /nolog
    conn scott/tiger
    select * from tab;
    when I run test.bat,I find only sqlplus /nolog statement execute,the other statements don't execute.
    1)I want to know whether there is a method to execute sql statement only by bat file without a sql file? How to realize it?
    2)If I call sql file,how to hide passord of user? Because I don't want to other persons know scott password,if I use conn scott/tiger in testdb.sql,other person can see testdb.sql and know the password. Is there a good method to avoid?
    Thanks!

    I'm running *NIX, but works the same on Windows
    bcm@bcm-laptop:~$ cat here.sh
    sqlplus dbadmin/admindb << EOF
    select count(*) from user_objects;
    exit
    EOF
    bcm@bcm-laptop:~$ sh here.sh
    SQL*Plus: Release 11.2.0.1.0 Production on Mon May 17 18:14:09 2010
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
      COUNT(*)
          9
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    bcm@bcm-laptop:~$ Edited by: sb92075 on May 17, 2010 6:15 PM

  • SQL Error 58004. Executed SQL Statement

    Hi experts, we working with SAP-MAM 3.0 database DB2E Version 9.1.2 ,  when I try install the MAM30 show me this message.
    Please, Can i reinstall the DB2E application for fix this error, or there are other solution?
      u2022 Excepción al tratar el métodoSMARTSYNC : com.sap.ip.me.spi.persist.IPersistenceException: char processor: SQL Error 58004. Executed SQL statement: [INSERT INTO M8_PROPERTIES("KEY","VALUE") values ('KEY_INCONSISTENT_DATA','X')] : char processor: SQL Error 58004. Executed SQL statement: [INSERT INTO M8_PROPERTIES("KEY","VALUE") values ('KEY_INCONSISTENT_DATA','X')]
    u2022 java.lang.RuntimeException: SQLState:58004, error code:-1 : SQLState:58004, error code:-1
    u2022

    Moved thread to DB6 forum.

  • Executing SQL statements in container managed transactions

    I have a problem when using TopLink 9.0.3 with WebSphere 4, Oracle 9i and J2EE container managed transactions.
    The data changing SQL statements are executed at the end of the (container managed) transaction, not at the time of the calls to UnitOfWork.registerNewObjekt(),
    UnitOfWork.validate...() or UnitOfWork.commit...().
    UnitOfWork(2035008996)--validate object space.
    UnitOfWork(2035008996)--validate cache.
    UnitOfWork(2035008996)--JTS#beforeCompletion()
    UnitOfWork(2035008996)--Connection(398132708)--INSERT INTO SVM_PERSONEN (FAX, NAME, ID, [...]) VALUES ([...])
    UnitOfWork(2035008996)--JTS#afterCompletion(org.omg.CosTransactions.Status._StatusRolledBack=4)
    UnitOfWork(2035008996)--release unit of work
    But the end of the transaction is out of the application server code. The transaction ends after the invoke of the applixcation server method, as the stack trace of an occurring exception shows:
    remote exception
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0 No; nested exception is:
         org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: com.ibm.websphere.csi.CSITransactionRolledbackException:
         at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:194)
         at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:67)
         at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:414)
         at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:1818)
         at de.gedas.svm.server.app.ejb.EJSRemoteStatelessNavigationEJB.findPersonenZulieferer(EJSRemoteStatelessNavigationEJB.java:964)
         at de.gedas.svm.server.app.ejb._EJSRemoteStatelessNavigationEJB_Tie._invoke(_EJSRemoteStatelessNavigationEJB_Tie.java:589)
         at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:2376)
         at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
         at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
         at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
    So the application server code has no possiblity for special reaction to this error condition.
    How can I use TopLink to execute my SQL statement immidately, not at the the end of the transaction (which is out of the area of my code)? Only the transaction should end at the usual time, managed by the container.

    I don't think there is anyway to currently do this in a JTS managed environment, to handle the exceptions you could,
    - Make use of TopLink session ExceptionHandlers to handle the database errors during the JTS commit.
    i.e.
    uow.setExceptionHandler(yourExceptionHandler);
    or,
    - Let TopLink control the transactions instead of JTS.

  • How to execute SQL statement with oracle jdev

    Please I'm a beginner in oracle jdeveloper. I want to know how to use and execute sql statememt within oracle Jdeveloper 10 g release 3 to manipulate objects in oracle database. I want for e.g. to Enable/disable trigger using sql statement "ALTER TRIGGER trigername DISABLE" explicitly. Please tell me how to proceed.
    i am sure you can help me
    Sincerly yours.

    Hi,
    Using following tutorial http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    you will found how to connect from Jdev to a database (chapter 1 or 2 ?). Then you just have to go under Tool>SQL*Plus or Tools>SQL Worksheet depending on what you need.
    Luck,
    Tif

  • Finding the currently executed SQL statement

    Hi,
    We have some users who have submitted some SQL statements which have been running for a very long time.
    Please let me know how to find out the SQL which is being currently being executed and also is it possible to find an estimated time of completion for the statement.
    Regards,
    VN

    You've posted enough to know you need to provide your 4 digit Oracle version.
    >
    We have some users who have submitted some SQL statements which have been running for a very long time.
    Please let me know how to find out the SQL which is being currently being executed and also is it possible to find an estimated time of completion for the statement.
    >
    You can query V$SESSION_LONGOPS. See my reply in this recent thread
    Re: SQL query to see what the db/schema is doing

  • Query with JPA not working. Is possible to see the executed SQL statements?

    Hi all,
    I have a question regarding namedqueries. I am having an error for which I am not being able to find any solution. ORM mappings seem to be ok, and the EntityManager validates correctly. However I am getting an error when trying to retrieve some results. My question is if it is possible to retrieve the set of SQL statements queried on the server, to see if it is due to a different issue than JPA settings.
    Thanks in advance,
    Chal-lo.

    You can enable sql logging in a provider specific way (e.g for hibernate you add hibernate.show_sql=true in the hibernate.properties file).
    You could get more help if you described the problem you are getting.

Maybe you are looking for

  • JSP useBean and Tomcat NoClassDefFoundError

    Hi, I have a webapp on tomcat whose structure is like this /tomcat --/webapps ----/mywebappname ------/WEB-INF --------/classes ----------MyBean.java When I use useBean class="MyBean" I get a NoClassDefFoundError for this particular class. I suspect

  • How to read a file on specific  Directory

    How to read a specific file on specific folder , For ex , in D: contain lot of directory , Let as assume �program �- Directory. �xxx.txt�-file, How to read �xxx.txt� file from program Directory, Give me simple pgm ,

  • Printing Page # and Date

    New using Adobe reader xi wondering when printing how to print page number and date.

  • In Numbers, I want to make 3 rows 50 columns into 3 columns 50 rows.

    In just a simple Numbers 09 spreadsheet, no charts, I'm trying to convert the rows and columns to columns and rows to more easily work with the information without scrolling across the page.  I would be able to see the information on one page and mor

  • Determinations Server - Plugin installation

    I have created a rule base plugin to load the rulebases from a database and I would like to deploy and get this working in Determinations Server. Here are the steps taken so far: Step 1. Deployed vanilla determinations-server WAR to Websphere. Follow