Problems with a Procedure

People,
I'm having a problem with a procedure in the moment I'm trying to execute it, could someone help.
CREATE OR REPLACE PROCEDURE CARREGA IS
begin
     declare
          strSQL VARCHAR2(250);
          NCham     number(9);
          cursor n_chamados is
          SELECT NumeroChamado, Planta, Instalacao, Defeito,
          DescricaoDefeito, Servico, DataChamado,Horas, Minutos
          FROM DEFEITOS_AUX;
begin
     For reg_chamado in n_chamados
     Loop
          begin
               NCham := reg_chamado.numerochamado;
               strSQL := 'SELECT numerochamado FROM Defeitos';
               strSQL := strSQL || ' WHERE numerochamado =';
               strSQL := strSQL || NCham || ' GROUP BY numerochamado';
               EXECUTE IMMEDIATE strSQL;
          exception
               when no_data_found then
               strSQL := 'INSERT INTO Defeitos (';
               strSQL := strSQL || 'NumeroChamado, ';
strSQL := strSQL || 'Planta, ';
               strSQL := strSQL || 'Instalacao, ';
               strSQL := strSQL || 'Defeito, ';
               strSQL := strSQL || 'DescricaoDefeito, ';
               strSQL := strSQL || 'Servico, ';
               strSQL := strSQL || 'DataChamado, ';
               strSQL := strSQL || 'Horas, ';
               strSQL := strSQL || 'Minutos) ';
          strSQL := strSQL || 'VALUES ( ';
          strSQL := strSQL || reg_chamado.NumeroChamado || ', ';
          strSQL := strSQL || reg_chamado.Planta || ', ';
          strSQL := strSQL || reg_chamado.Instalacao || ', ';
          strSQL := strSQL || reg_chamado.Defeito || ', ';
          strSQL := strSQL || reg_chamado.DescricaoDefeito || ', ';
          strSQL := strSQL || reg_chamado.Servico || ', ';
          strSQL := strSQL || reg_chamado.DataChamado || ', ';
          strSQL := strSQL || reg_chamado.Horas || ', ';
          strSQL := strSQL || reg_chamado.Minutos || ')';
               EXECUTE Immediate strSQL;
          end;
          strSQL := 'UPDATE Defeitos SET ';
          strSQL := strSQL || 'Planta = ' || reg_chamado.Planta;
          strSQL := strSQL || ', Instalacao = ' || reg_chamado.Instalacao;
          strSQL := strSQL || ', Defeito = ' || reg_chamado.Defeito;
          strSQL := strSQL || ', DescricaoDefeito = ' || reg_chamado.DescricaoDefeito;
          strSQL := strSQL || ', Servico = ' || reg_chamado.Servico;
          strSQL := strSQL || ', DataChamado = ' || reg_chamado.DataChamado;
          strSQL := strSQL || ', Horas = ' || reg_chamado.Horas;
          strSQL := strSQL || ', Minutos = ' || reg_chamado.Minutos;
          strSQL := strSQL || ' WHERE NumeroChamado = ' || NCham;
          EXECUTE Immediate strSQL;
     end loop;
end;
end;

Hi Erika,
there is no need for dynamic SQL.
I suppose the NumeroChamado is your primary key and has an unique index on it.
Just insert the rows and if there is already an existing row, catch the exception and update the row.
CREATE OR REPLACE PROCEDURE CARREGA IS
  CURSOR n_chamados IS
    SELECT NumeroChamado,
           Planta,
           Instalacao,
           Defeito,
           DescricaoDefeito,
           Servico,
           DataChamado,
           Horas,
           Minutos
    FROM   DEFEITOS_AUX;
BEGIN
  FOR reg_chamado IN n_chamados LOOP
  BEGIN
    INSERT INTO Defeitos (;
      NumeroChamado, ';
      Planta,
      Instalacao,
      Defeito,
      DescricaoDefeito,
      Servico,
      DataChamado,
      Horas,
      Minutos
    ) VALUES (
      reg_chamado.NumeroChamado,
      reg_chamado.Planta,
      reg_chamado.Instalacao,
      reg_chamado.Defeito,
      reg_chamado.DescricaoDefeito, 
      reg_chamado.Servico,
      reg_chamado.DataChamado,
      reg_chamado.Horas,
      reg_chamado.Minutos
  EXCEPTIONS
  WHEN DUP_VAL_ON_INDEX THEN
    UPDATE Defeitos SET
      Planta = reg_chamado.Planta,
      Instalacao = reg_chamado.Instalacao,
      Defeito = reg_chamado.Defeito,
      DescricaoDefeito = reg_chamado.DescricaoDefeito,
      Servico = reg_chamado.Servico,
      DataChamado = reg_chamado.DataChamado,
      Horas = reg_chamado.Horas,
      Minutos = reg_chamado.Minutos
    WHERE NumeroChamado = reg_chamado.NumeroChamado;
  END;
  END LOOP;
END;

Similar Messages

  • Problem with Oracle procedure

    Hi,
    We have a problem with a Oracle procedure call using the Sql Execute
    Procedure statement.
    The call gives us this error :
    SYSTEM ERROR: (This error was converted)
    (This error was converted)
    OpenCursor failed for SQL statement in project LFB010, class
    ClsDemarreLFB010,
    method Demarre, methodId 4, line 32, error from database is:
    ORA-01036: illegal variable name/num
    Class: qqdb_ResourceException
    Distributed method called: qqdb_SessionProxy.OpenCursor!22 (object
    name
    instance/d4745a10-c8e4-11d1-97fd-90cad1e7aa77:0x196:0x4/lfb010_cl0/lfb010_cl
    0-fonctiondbservice0x196:0x2)
    from partition "LFB010_CL0_Client", (partitionId =
    D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196:0x4, taskId =
    [D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196.3]) in application
    "FTLaunch_cl0", pid 4290975297 on node LAXOU146 in environment
    CentralEnv
    Oracle error: 1036, Server: sipre_tcp, UserName: forte
    Database Statement: begin
    :qqReturnValue := AID_CUMUL_ELTVAL;
    end;
    Class: qqdb_ResourceException ..........
    And this is the TOOL code :
    BEGIN TRANSACTION
    TmpEtat : IntegerData = new;
    TmpEtat.SetValue (( SQL EXECUTE PROCEDURE AID_CUMUL_ELTVAL ON SESSION
    FonctionDBService ));
    Etat = TmpEtat.Value;
    END TRANSACTION;
    Our procedure has no parameter and when we put a dummy parameter to the
    procedure and pass it in the TOOL SQL statement, it works fine althoug the
    Forté help says the parameter list is optionnal !
    We tried to execute the procedure in a "SQL Select OurProdecure Into ..."
    statement, but it does'nt work because there is a SQL update in the
    procedure and it is forbidden by Oracle.
    Has anyone seen this error before ?
    Any ideas would be greatly appreciated.
    Many thanks and regards,
    Manuel DEVEAUX
    Previade, France
    e-mail : deveauxpreviade.fr

    Hi,
    We have a problem with a Oracle procedure call using the Sql Execute
    Procedure statement.
    The call gives us this error :
    SYSTEM ERROR: (This error was converted)
    (This error was converted)
    OpenCursor failed for SQL statement in project LFB010, class
    ClsDemarreLFB010,
    method Demarre, methodId 4, line 32, error from database is:
    ORA-01036: illegal variable name/num
    Class: qqdb_ResourceException
    Distributed method called: qqdb_SessionProxy.OpenCursor!22 (object
    name
    instance/d4745a10-c8e4-11d1-97fd-90cad1e7aa77:0x196:0x4/lfb010_cl0/lfb010_cl
    0-fonctiondbservice0x196:0x2)
    from partition "LFB010_CL0_Client", (partitionId =
    D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196:0x4, taskId =
    [D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196.3]) in application
    "FTLaunch_cl0", pid 4290975297 on node LAXOU146 in environment
    CentralEnv
    Oracle error: 1036, Server: sipre_tcp, UserName: forte
    Database Statement: begin
    :qqReturnValue := AID_CUMUL_ELTVAL;
    end;
    Class: qqdb_ResourceException ..........
    And this is the TOOL code :
    BEGIN TRANSACTION
    TmpEtat : IntegerData = new;
    TmpEtat.SetValue (( SQL EXECUTE PROCEDURE AID_CUMUL_ELTVAL ON SESSION
    FonctionDBService ));
    Etat = TmpEtat.Value;
    END TRANSACTION;
    Our procedure has no parameter and when we put a dummy parameter to the
    procedure and pass it in the TOOL SQL statement, it works fine althoug the
    Forté help says the parameter list is optionnal !
    We tried to execute the procedure in a "SQL Select OurProdecure Into ..."
    statement, but it does'nt work because there is a SQL update in the
    procedure and it is forbidden by Oracle.
    Has anyone seen this error before ?
    Any ideas would be greatly appreciated.
    Many thanks and regards,
    Manuel DEVEAUX
    Previade, France
    e-mail : deveauxpreviade.fr

  • Problem With Stored Procedure

    Post Author: Ranjith.403
    CA Forum: General
    Hi,
    Am new to crystal reports with stored procedures
    am created a report using a stored procedure in oracle. In that Stored Procedure am Using a temporary table.
    After inserting values into the table am assigning to ref cursor.
    Refcursor having fields like item,onhandstock,purchase rate
    This report working fine in oracle version 9.2.0.1.0 where comes to oracle version 9.2.0.8.0 it's giving the varchar values correctly.
    The Number values are showing as 0.
    Help me to solve it.
    Thanks in Advance,
    Ranjith

    Try modularising this large procedure into smaller procedures and functions, and determine which part is causing you trouble.

  • Problem with store procedures and Hibernate

    I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
    When I am trying to make an UPDATE following excpetion throws:
    Could not synchronize database state with session
    org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
    Here is my hbm.xml file:
    <hibernate-mapping>
    <class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
    <id name="idNum" type="java.lang.Integer">
    <column name="idNum"/>
    <generator class="identity"/>
    </id>
    <property name="marke" type="string">
    <column length="10" name="Marke" not-null="true"/>
    </property>
    <property name="modell" type="string">
    <column length="10" name="Modell" not-null="true"/>
    </property>
    <property name="arsmodell" type="string">
    <column length="4" name="Arsmodell" not-null="true"/>
    </property>
    <sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
    <sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
    <sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
    </class>
    Here is my UPDATE code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    int s = Integer.parseInt(idTxt.getText());
    bil Bil = (bil) session.get(bil.class, s);
    Bil.setIdNum(s);
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.update(Bil);
    session.getTransaction().commit();
    session.close();
    Here is my INSERT code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    bil Bil = new bil();
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.save(Bil);
    session.getTransaction().commit();
    session.close();
    Does anyone have an idea what is wrong in my code?

    I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
    When I am trying to make an UPDATE following excpetion throws:
    Could not synchronize database state with session
    org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
    Here is my hbm.xml file:
    <hibernate-mapping>
    <class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
    <id name="idNum" type="java.lang.Integer">
    <column name="idNum"/>
    <generator class="identity"/>
    </id>
    <property name="marke" type="string">
    <column length="10" name="Marke" not-null="true"/>
    </property>
    <property name="modell" type="string">
    <column length="10" name="Modell" not-null="true"/>
    </property>
    <property name="arsmodell" type="string">
    <column length="4" name="Arsmodell" not-null="true"/>
    </property>
    <sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
    <sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
    <sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
    </class>
    Here is my UPDATE code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    int s = Integer.parseInt(idTxt.getText());
    bil Bil = (bil) session.get(bil.class, s);
    Bil.setIdNum(s);
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.update(Bil);
    session.getTransaction().commit();
    session.close();
    Here is my INSERT code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    bil Bil = new bil();
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.save(Bil);
    session.getTransaction().commit();
    session.close();
    Does anyone have an idea what is wrong in my code?

  • Problem with luactivate procedure in Solaris 10 Update 5

    We are having some issues with Live Upgrade procedures with Solaris 10 Update 5 on SUN Enterprise T5240 servers.
    We have successfully performed those procedures earlier on SUN Fire v240 using Solaris 10 Update 3.
    Here is the problem statement:
    1. Created a Flar image successfully
    2. Installed on a 5240 machine from InstallServer and using jumpstart profile using a sysidcfg and flash_prof
    3. The first installation is successful and system picks up configuration information from sysidcfg file on the install server.
    4. Now we use lucreate to create another BE (Boot Environment) BE_2.
    5. BE_2 is upgraded with luupgrade using the same flar as used in step 2.
    6. Issuing command:
    luactivate -s BE_2
    7. After a init 6, system tries to boot from BE_2. This time instead of copying system files from BE_1 due to -s options specified, it instead runs the sysconfig command that asks for all the configuration options again.
    8. When we were using these steps in Solaris 10 update 3 on Sun Fire v240, everything was working fine. The system config was available in BE_2 without any issue.
    ***************************************************************************************************************************************************

    iMovie10 only works in and exports 16:9 aspect ratio.
    The resolution is set by that of the first video clip put in a project timeline.  To change your project to 1080p do the following:
    Create a new project
    Put any known 1080p video clip in the project (it can be removed later)
    Select the old project and then Edit - Select All then Edit - Copy
    Select the new project and then Edit - Copy
    The new project should now be 1080p.  You can remove the first clip if you want.
    Geoff.

  • Problem with Stored Procedure exection in Oracle DB

    Hi,
    I am facing some problem while creating and executing a store procedure.
    Please help me solving my problem.
    Here are the details :
    My Store Procedure :
    PROCEDURE EMP2
    (PROCESSED IN VARCHAR2 ) AS
    BEGIN
    SELECT * FROM EMPLOYEE WHERE PROCESSED ='NO'
    UPDATE EMPLOYEE SET PROCESSED='YES' WHERE PROCESSED='NO'
    COMMIT;END EMP;
    Now I want to execute this SP with the statement,
    EXECUTE EMP2('NO');
    But When I execute this statement, it prompts with this error :
    Error: java.sql.SQLException: ORA-00900: invalid SQL statement
    , SQL State: 42000, Error Code:
    Please help me to solve this issue with high priority.
    Regards,
    Vara.

    surely this is not the case :)
    SQL> create or replace PROCEDURE EMP_PROC
    (P_PROCESSED IN VARCHAR2 ) AS
    BEGIN
    for i in (SELECT * FROM EMP WHERE PROCESSED = P_PROCESSED)
    loop
         UPDATE EMPLOYEE SET PROCESSED='YES' WHERE PROCESSED='NO' and employee.empno=i.empid;
    end loop;
    COMMIT;
    END;
    /  2    3    4    5    6    7    8    9   10 
    Procedure created.
    SQL> exec EMP_PROC('NO');
    PL/SQL procedure successfully completed.

  • Problem with Guided Procedure

    Hello,
    using the Guided Procedures I have modeled an approval workflow.
    After a requester submits a request, the request should be delegated to an approver.
    However, when the requester actually submit the request, I get an error message which reads "Activity could not be read" and the workflow does not continue with the approver.
    Does anyone has an idea, what could be wrong?
    Best regards
    Alexander

    Hi Fazal,
    Check the Callable object in GP design time , whether it is giving u the expected output.
    The callable objects work just fine and provide the expected outputs.
    Nwa--> Problem management --> Logs and Traces --> Log Viewer.
    in the log viewer, u will find the root cause for the error message.
    Unfortunately, I cannot find (see below) any other root cause. It seems that the problem occurs either when completing the first or starting the second action. However, both callable objects work fine when tested in the design time.
    Edit: It seems that the problem occurs when completing the first action. What could be the reason for that?
    Activity could not be read
    com.sap.caf.eu.gp.base.exception.EngineException: Activity could not be read
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.createWorkItems(StatusWriter.java:2948)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startAction(StatusWriter.java:2749)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startActivity(StatusWriter.java:1339)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatusSequentialBlock(StatusWriter.java:4368)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatus(StatusWriter.java:3617)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.completeAction(StatusWriter.java:286)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.LocalWorkflowConnector.completeAction(LocalWorkflowConnector.java:251)
    at com.sap.caf.eu.gp.model.pfw.core.impl.ProcessRuntime.completeAction(ProcessRuntime.java:863)
    at com.sap.caf.eu.gp.ui.act.container.VContainer.OnExecutionComplete(VContainer.java:509)
    at com.sap.caf.eu.gp.ui.act.container.wdp.InternalVContainer.wdInvokeEventHandler(InternalVContainer.java:162)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
    at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
    at com.sap.caf.eu.gp.ui.co.wd4vc.exec.wdp.InternalCOExecWD4VCInterface.wdFireEventExecutionComplete(InternalCOExecWD4VCInterface.java:170)
    at com.sap.caf.eu.gp.ui.co.wd4vc.exec.COExecWD4VC.onSignalOut(COExecWD4VC.java:365)
    at com.sap.caf.eu.gp.ui.co.wd4vc.exec.wdp.InternalCOExecWD4VC.wdInvokeEventHandler(InternalCOExecWD4VC.java:171)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:237)
    at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
    at com.sap.tc.wd4vc.launcher.wdp.InternalLauncherInterface.wdFireEventSignalOutEvent(InternalLauncherInterface.java:168)
    at com.sap.tc.wd4vc.launcher.LauncherView.handleRaiseEndPoint(LauncherView.java:301)
    at com.sap.tc.wd4vc.launcher.wdp.InternalLauncherView.wdInvokeEventHandler(InternalLauncherView.java:197)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
    at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
    at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngineInterface.wdFireEventRaiseEndPoint(InternalXGLEngineInterface.java:308)
    at com.sap.tc.wd4vc.xglengine.XGLEngineInterface.notifyEmbeddersOfEndPoint(XGLEngineInterface.java:231)
    at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngineInterface.notifyEmbeddersOfEndPoint(InternalXGLEngineInterface.java:152)
    at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.notifyEmbeddersOfEndPoint(XGLInterpreter.java:2166)
    at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLEndPointRelay.notifyEmbedders(XGLEndPointRelay.java:82)
    at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLSignalOutRelay.execute(XGLSignalOutRelay.java:67)
    at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLEndPointRelay.execute(XGLEndPointRelay.java:66)
    at com.sap.tc.wd4vc.core.std.relays.GenericRelay.execute(GenericRelay.java:226)
    at com.sap.tc.wd4vc.core.std.relays.wdp.InternalGenericRelay.execute(InternalGenericRelay.java:138)
    at com.sap.tc.wd4vc.core.std.relays.GenericRelayInterface.execute(GenericRelayInterface.java:123)
    at com.sap.tc.wd4vc.core.std.relays.wdp.InternalGenericRelayInterface.wdInvokeMethod(InternalGenericRelayInterface.java:150)
    at com.sap.tc.webdynpro.progmodel.generation.ExternalControllerPI$ExternalInterface.invoke(ExternalControllerPI.java:291)
    at $Proxy610.execute(Unknown Source)
    at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.doEvaluateRelay(XGLInterpreter.java:1798)
    at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.doEvalStep(XGLInterpreter.java:1777)
    at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.doEvalStep(XGL2_2Interpreter.java:698)
    at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.processStep(XGLInterpreter.java:981)
    at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.processPlan(XGLInterpreter.java:941)
    at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processAtomicActionCall(XGL2_2Interpreter.java:356)
    at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processActionCall(XGL2_2Interpreter.java:311)
    at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processActionCall(XGL2_2Interpreter.java:319)
    at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processAction(XGL2_2Interpreter.java:290)
    at com.sap.tc.wd4vc.xglengine.XGLEngine.processAction(XGLEngine.java:447)
    at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngine.wdInvokeEventHandler(InternalXGLEngine.java:184)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:237)
    at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
    at com.sap.tc.wd4vc.core.std.toolbar.wdp.InternalXGLToolbarInterface.wdFireEventGenericEvent(InternalXGLToolbarInterface.java:273)
    at com.sap.tc.wd4vc.core.std.toolbar.Generic.onActionGenericAction(Generic.java:271)
    at com.sap.tc.wd4vc.core.std.toolbar.Generic.onActionValidatingAction(Generic.java:295)
    at com.sap.tc.wd4vc.core.std.toolbar.wdp.InternalGeneric.wdInvokeEventHandler(InternalGeneric.java:161)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
    Edited by: Alexander Königs on Mar 4, 2009 10:50 AM

  • Probleme with stored procedure in oracle 10 g

    I create a stored procedure for archiving successfully compile but when I select t_sql_statement i have 0 rows :( :(
    create or replace
    PROCEDURE p_archive_test(piv_owner varchar2)
    is
    lv_stmt varchar2(2000) := 'insert /*+ append */ into TABLE1 (COLUMNS)
                                                                     select INS_COLUMNS
                                                                     from TABLE2 tab2@db1
                                                                     where not exists (select null
                                                                                         from TABLE1 tab1
                                                                                         where PKCOLUMNS
    cursor c_tab is
    select tab.table_name,'ERR$_'||tab.table_name ERR_TABLE
    from all_tables tab
              where tab.owner = piv_owner
    -- and tab.table_name = 'action'
    --order by atb.TABLE_ORDER
    -- For each table get the primary key columns     
    cursor c_pk(civ_table_name in all_tables.TABLE_NAME%type)
    is
    select acl.COLUMN_NAME
    from all_cons_columns acl
    ,all_constraints acn
    where acn.OWNER = piv_owner
    and acn.CONSTRAINT_TYPE = 'P'
    and acn.TABLE_NAME = civ_table_name
    and acl.OWNER = acn.OWNER
    and acl.TABLE_NAME = acn.table_name
    and acl.CONSTRAINT_NAME = acn.CONSTRAINT_NAME
    order by acl.POSITION;
    -- For each table get the corresponding table columns names
    cursor c_ins_cols(civ_table_name in all_tab_columns.TABLE_NAME%type)
    is
    select 'tab2.'||atc.COLUMN_NAME column_name
    from all_tab_columns atc
    where atc.OWNER = piv_owner
    and atc.TABLE_NAME = civ_table_name
    order by atc.COLUMN_ID;
    -- For each table get the columns names excluding the primary key columns
    cursor c_upd_cols(civ_table_name in all_tab_columns.TABLE_NAME%type)
    is
    select 'tab1.'||atc.COLUMN_NAME||'=tab2.'||atc.column_name column_name
    from all_tab_columns atc
    where atc.OWNER = piv_owner
    and atc.TABLE_NAME = civ_table_name
    and not exists (select 1
    from all_cons_columns acl
    ,all_constraints acn
    where acl.OWNER = atc.owner
    and acl.TABLE_NAME = atc.TABLE_NAME
    and acl.column_name = atc.column_name
    and acn.OWNER = acl.OWNER
    and acn.TABLE_NAME = acl.TABLE_NAME
    and acn.constraint_type = 'P')
    order by atc.COLUMN_ID;
    -- For each table get the columns names
    cursor c_cols(civ_table_name in all_tab_columns.COLUMN_NAME%type)
    is
    select
    --'tab1.'||
    atc.COLUMN_NAME column_name
    from all_tab_columns atc
    where atc.owner = piv_owner
    and atc.TABLE_NAME = civ_table_name
    order by atc.COLUMN_ID;
    lv_cols varchar2(4000);
    lv_pk_cols varchar2(4000);
    lv_ins_cols varchar2(4000);
    lv_upd_cols varchar2(4000);
    BEGIN
    for r_tab in c_tab
    loop
    lv_cols := '';
    lv_pk_cols := '';
    lv_ins_cols := '';
    lv_upd_cols := '';
    for r_pk in c_pk(civ_table_name => r_tab.table_name)
         loop
    lv_pk_cols := lv_pk_cols||'tab1.'||r_pk.column_name||'=tab2.'||r_pk.column_name||' and ';
    end loop r_pk_loop;
    lv_pk_cols := substr(str1 => lv_pk_cols
    ,pos => 1
    ,len => length(ch => lv_pk_cols) - 5);
    for r_ins_cols in c_ins_cols(civ_table_name => r_tab.table_name)
    loop
    lv_ins_cols := lv_ins_cols||r_ins_cols.column_name||',';
    end loop r_ins_cols_loop;
    lv_ins_cols := substr(str1 => lv_ins_cols
    ,pos => 1
    ,len => length(ch => lv_ins_cols) - 1);
    for r_upd_cols in c_upd_cols(civ_table_name => r_tab.table_name)
         loop
    lv_upd_cols := lv_upd_cols||r_upd_cols.column_name||',';
    end loop r_upd_cols_loop;
    lv_upd_cols := substr(str1 => lv_upd_cols
    ,pos => 1
    ,len => length(ch => lv_upd_cols) - 1);
    for r_cols in c_cols(civ_table_name => r_tab.table_name)
         loop
    lv_cols := lv_cols||r_cols.column_name||',';
    end loop r_cols_loop;
    lv_cols := substr(str1 => lv_cols
    ,pos => 1
    ,len => length(ch => lv_cols) - 1);
    lv_stmt := replace(replace(replace(replace(replace(replace(replace(lv_stmt
    ,'TABLE1'
    ,r_tab.table_name)
    ,'TABLE2'
    ,'DIST_'||r_tab.table_name)
    ,'PKCOLUMNS'
    ,lv_pk_cols)
    ,'UPD_COLUMNS'
    ,lv_upd_cols)
    ,'INS_COLUMNS'
    ,lv_ins_cols)
    ,'COLUMNS'
    ,LV_COLS)
    ,'TABLE3'
    ,R_TAB.ERR_TABLE);
    -- here It highy advisable to store the sql statement that will be submitted
    -- to the SQL engine before executing it dynamically
    insert into t_sql_statement values (lv_stmt);
    execute immediate lv_stmt;
    end loop ;
    commit;
    exception
    when others then
    rollback;
    raise;
    end p_archive_test;

    Welcome to the forum!
    Unfortunately you have posted to the wrong forum. This question is not about sql developer and is more appropriate for the sql and pl/sql forum
    PL/SQL
    Please
    1. repost the question in the SQL and PL/SQL forum
    2. edit this question to tell people to followup in the other forum - post the link to the question in the other forum
    3. mark this question answered so people will followup in the other forum.
    Read the FAQ in the other forum (there will be link at the top right of the page) for how to post a question and the information you need to provide. In particular use 'code' tags (see FAQ for explanation) before and after posted code and always provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    Before you post the new thread I suggest you perform some additional testing by
    1. Modify your code so that it creates the statements but does not execute them. With dynamic sql the most common problem is incorrect syntax and until you have verified that the syntax is both correct and exactly what you want it is a waste of time to execute the statements.
    2. Modify your code to only create one statement (add WHERE ROWNUM = 1 to the main query). If the syntax is wrong it will be wrong for all of the statements so until the code works correctly for one loop it is a waste of time perform 10's or 100' of loops.
    3. Currently you are not committing the creation of the statement itself but only after it is executed. Thus if the execution fails the query that failed won't be available for you to examine. Either commit the INSERT or, at a minimum capture the query into a global variable and add a DBMS_OUTPUT to the exception handler to display the failed query so you can examine and test it to fix any problem.
    Also, by just blindly using the data in ALL_TAB_COLS you are not taking into account that Oracle creates hidden (see the hidden column) and virtual columns that will cause your processing to fail for any tables that use them since you cannot use them directly in queries like you are creating.

  • Please tell me what's the problem with my procedure ..

    Hi all,
    Below is my procedure i created into a form.( i can't create procedure into table or vieew because there is already negative value )
    PROCEDURE REVERSE_money IS
    nCnt number(10);
    WS_VALID_USER_ID Varchar2(3);
    USER__VIEW_BUF USER_VIEW%ROWTYPE;
    PAYMENT_VIEW_BUF PAYMENT_VIEW%ROWTYPE;
    Cursor USER_VIEW_QRY is
    select * from USER_VIEW
    where USER_ENTERED_CASHIER = USER_VIEW_BUF.USER_ENTERED_CASHIER;
    Cursor PAYMENT_VIEW_QRY is
    select * from PAYMENT_VIEW
    where TOTAL = :PAYMENT_VIEW_SINGLE.TOTAL;
    BEGIN
    if nvl(:PAYMENT_VIEW_SINGLE.TOTAL,' ') = (:pAYMENT_VIEW_SINGLE.TOTAL*-1) then
    SELECT COUNT(*) INTO nCnt
    FROM cashier_auth
    WHERE cashier = UPPER(NVL(USER_VIEW_BUF.CASHIER,' '));
    IF (nCnt > 0) THEN
    WS_VALID_USER_ID := 'YES';
    ELSE
         WS_VALID_USER_ID := 'NO';
    END IF;
    end if;
    IF nvl(WS_VALID_USER_ID,' ') = 'NO' THEN
    MESSAGE(USER || ' is not authorized to enter nagative value to this cash transaction.');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    END;
    there is no error in this procedure when i compile it , but this procedure is not validating as i wanted, what i meant is is still let any user enter ('-') value.
    someone plese help me.

    Hi,
    pl/sql baby wrote:
    Hi all,
    Below is my procedure i created into a form.( i can't create procedure into table or vieew because there is already negative value ) Sorry, I don't understand this part.
    In fact, I don't understand the whole problem.
    Please explain what the procedure is supposed to do, and what's wrong with it.
    For example
    "The procedure is supposed to show a message and raise an error if ...
    That should happen when the USER is ... and PAYMENT_VIEW_SINGLE.TOTAL < 0, but it is not."
    Post SQL statements to create and populate the tables and views used (such as cashier_auth table). Include enough rows to re-create the problem.
    What are you trying to do in this line?
    if nvl(:PAYMENT_VIEW_SINGLE.TOTAL,' ') = (:pAYMENT_VIEW_SINGLE.TOTAL*-1) thenWhat is the data type of (:PAYMENT_VIEW_SINGLE.TOTAL? If it's a NUMBER, then the second argument of NVL should also be a NUMBER.
    Don't post unformatted code. Type &#123;code&#125; before and after the parts of your message containing code, to preserve spacing.

  • Weblogic 8.1 SP2 + Sybase: Problem with Insufficient Procedure Cache Memory

    Hi all,
    Our Weblogic server(8.1, SP2) encountered a problem this week.
    It connects to Sybase.
    For a particular database query (which involves temporary tables), the DB seems to have run out of "Procedure Cache memory". And as a result, has thrown an exception.
    What is a bit wierd is that, the Weblogic, slowly, seems to have exhausted all its DB resources, and all the subsequent database queries (even the simple ones) have failed due to some error or the other.
    The weblogic required a re-start for it to acquire back its DB resources.
    Has somebody faced a similar problem before, please?
    On reading the Release Notes for WLS: 8.1, I see that the Service Packs SP4, SP5 seem to have a few bug fixes related to memory leaks (especially, in case a Prepared statement failed).
    [Related CRs are CR233948, CR179600, CR183190].
    Does this mean that an Upgrade to 8.1: SP5 or maybe even SP6 help, please?
    Would welcome any kind of advice/suggestions.
    Thanks you!!!!
    Rhishi.

    Rhishikesh Anandamoorthy wrote:
    Hi Joe,
    Thanks a lot for your reply.
    I should have mentioned in my previous post that the DBA had indeed recommended
    an increase to the Sybase's Procedure Cache Memory size. (We have a separate
    DBA team out here, and I do not have DBA access to my database).
    But I am a bit apprehensive on two counts:
    1. From the DB logs, I see that the query which seems to have failed is something
    which is fired day in and day out (though this involves the usage of temporary tables,
    which might have filled up the Cache). I should also add that the "DB statistics" was
    also being run (automatically) about the same time when the query failed. But again,
    the "DB statistics" is run everyday. So, cant see much of a problem here.Nevertheless, it is an internal DBMS issue.
    2. The CR179600 and CR183190 of the Weblogic Release Notes suggests that: "Under
    certain statement failure conditions, cached statements are leaked without being
    closed, which can lead to DBMS resource problems."
    So, I am just wondering if this is indeed the actual cause. If so, it might mean
    that there is a chance, though slight, that the problem might re-occur.
    There seems to be a fix for this in SP5.I certainly advocate upgrading to 81sp6, but that issue had to do with Oracle,
    which retains DBMS 'cursors' for each open prepared statement. This will have
    no effect on a Sybase DBMS.
    I can certainly upgrade to SP6. But, the application seems to have been pretty
    stable with SP2 for the past 4 years.
    I understand that an upgrade to SP6 may not be such a big change. But, it would
    still be a change.
    And the webapp which the server supports is very critical to our customer
    [which webapp is not? :-) ], and a server-restart again for this issue would
    certainly not be acceptable.
    So, would want to be doubly sure, if an upgrade is indeed the right way out.
    Thank you!!!
    Rhishi.In that case, I would stay comfortable with SP2 if you like. In my professional
    opinion, at this time, it is a purely DBMS-side issue, based on the current
    evidence. Note that the same WLS was fine for these same previous years. The
    problem may have to do with a gradual or recent change in the load or size of
    the DBMS.
    Joe Weinstein at BEA Systems ( nee [email protected] 1988-1996 )

  • Problem with Stored Procedure exection in Sender and Receiver side of JDBC

    Hi All,
    I am facing problem while executing Stored Procedures using sender and receiver sides of JDBC adapter.
    Here is my SP in Oracle DB :
    PROCEDURE EMP                           
    ( ID IN VARCHAR2,NAME IN VARCHAR2,PROCESSED IN VARCHAR2  ) AS                                                          
    BEGIN                                                         
       INSERT INTO EMPLOYEE VALUES (ID, NAME, PROCESSED);COMMIT;END EMP;
    Now I want to execute this SP using sender JDBC channel and receiver JDBC channel.
    Can anyone please help me executing this SP?
    Regards,
    Soorya

    Hi Soorya,
    The receiver Data type should be like this:
    <StatementName>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName >
      </StatementName>
    Check the link http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
    Which DB  are you using?? The sender structure will be like
    <resultset>
    <row>
    <field1></field1>
    <field2></field2>
    <field3></ field3>
    </row>
    </resultset>
    Search SDN you will get lot of examples
    Regards
    Suraj

  • Problem with call procedure

    HI,
    i've a procedure which calls another procedure.
    This is the call:
    Export_inspection_Schema(portion);
    And the other procedure begins with
    CREATE OR REPLACE PROCEDURE Export_inspection_Schema (p_portion IN VARCHAR2)
    IS...
    But it doesn't work i always get this error messages:
    ORA-06502: PL/SQL: numeric or value error
    ORA-01722: Invalid Number
    What is wrong?
    Thanks for help.
    With best regards
    Nicole

    Somewhere you have got a string to number conversion on a variable that doesn't hold a valid number. If you're lucky it's an explicit call of TO_NUMBER() which is at least easy to search for. Otherwise you'll need to track down all the assignments where datatype conversion may occur (this includes DECODE, NVL, etc).
    If the error stack gave you a line number then that's where to start.
    Cheers, APC

  • Problem with stored procedure in DB2

    Hi,
    Rigth now im havin a little problem trying to CALL a DB2 SP
    I have a DB2 SP, something like this:
    CREATE PROCEDURE ordenes.XXMOR_GuardaEncabezado
    in p_ORDID     INTEGER,
    in p_ADVID     CHAR     (6),
    in p_ACCTHDRID     CHAR     (6),
    in p_STNID     CHAR     (6),
    in p_ORDTYP     SMALLINT,
    in p_STRDT     varchar(10),
    in p_EDT     char(10),
    in p_MCONTID     CHAR     (16),
    in p_AGYESTNUM     CHAR     (20),
    IN p_PRDID1 CHAR(4),
    in p_RTCRD     CHAR     (6),
    in p_USRFLD1     CHAR     (6),
    in p_USRFL10     SMALLINT,
    in p_TOTSPTORD     INTEGER,
    in p_CMT char(136),
    in p_ROTID CHAR(20),
    in p_Aux1 varchar(15),
    in p_Aux2 varchar(15),     
    in p_Aux3 varchar(15),      
    in p_Aux4 varchar(15),
    in p_Aux5 varchar(15),
    out o_ORDID varchar(15)
    And i calling the SP from my AppModuleImpl java class like this:
    getDBTransaction().createStatement(0).getConnection().prepareCall("CALL ordenes.XXMOR_Ords(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
    i am using this convention to pass the parameters:
    Integer = setInt
    Smallint = setShort
    Char and Varchar = setString
    and getString for the output:
    But i only recibe this exception everytime i try to run the SP: java.sql.SQLException: Parameter type not valid.
    Can anyone help me ! ?
    Ty, regards from Mexico.

    I am using Stored procedure and that is working fine in Oracle
    This is my XI Request structure :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:read_PROC_GET_ACTIVE_ESIIDS xmlns:ns0="http://reliant.com/xi/BMFR2">
    - <statement>
    - <PROC_GET_ACTIVE_ESIIDS action="EXECUTE">
      <table>TCS.PKG_BMF_MANAGE_SERVICE_DATA.PROC_GET_ACTIVE_MF_ESIIDS</table>
      <in_bmf_partner_id isInput="true" type="VARCHAR">994</in_bmf_partner_id>
      <in_esids isInput="true" type="CLOB">1008901001155950587100:1008901001155950545100:1008901001155950671100:1008901001155950114100</in_esids>
      </PROC_GET_ACTIVE_ESIIDS>
      </statement>
      </ns0:read_PROC_GET_ACTIVE_ESIIDS>
    This is oracle Stored procedure signature :
    PROCEDURE PROC_GET_ACTIVE_ESIIDS
    in_bmf_partner_id           IN   kss_activity_stg_curr_stat.BMF_PARTNER_ID%TYPE,
    in_esids                    IN   CLOB,
    out_recordset               OUT  sys_refcursor
    Let me know if you need any further information.
    Thanks,
    Hetal

  • Problem with a procedure with a type table varchar2

    Hey,
    I can't seem to call my function with a custom type:
    The function:
    FUNCTION f_get_urls(v_table IN t_table)
    RETURN VARCHAR2
    IS
    v_urls VARCHAR2(600);
    BEGIN
    FOR i IN 1..v_table.count LOOP
    v_urls := CONCAT(v_urls,v_table(i));
    END LOOP;
    RETURN v_urls;
    END f_get_urls;
    t_table is declared in the package header:
    TYPE t_table is table of VARCHAR2(100) index by binary_integer;
    All goes well if i call the fucntion from within the package, but when i call it from an other package I get the next error:
    Error(12,11): PLS-00306: wrong number or types of arguments in call to 'F_GET_URLS'
    This is the procedure where i'm caling the fucntion:
    PROCEDURE temp1
    IS
    TYPE t_table is table of VARCHAR2(100) index by binary_integer;
    v_tab t_table;
    v_temp VARCHAR2(100);
    BEGIN
    v_tab(1):='test';
    v_tab(2):='test2';
    v_temp:=pkg_print.f_get_urls(v_tab);
    dbms_output.PUT_LINE(v_temp);
    END temp1;
    Any idea if i made an error or is this just not possible?
    Thanks

    Hey,
    I can't seem to call my function with a custom type:
    The function:
    FUNCTION f_get_urls(v_table IN t_table)
    RETURN VARCHAR2
    v_urls VARCHAR2(600);
    GIN
    FOR i IN 1..v_table.count LOOP
    v_urls := CONCAT(v_urls,v_table(i));
    D LOOP;
    RETURN v_urls;
    END f_get_urls;
    t_table is declared in the package header:
    TYPE t_table is table of VARCHAR2(100) index by
    binary_integer;
    All goes well if i call the fucntion from within the
    package, but when i call it from an other package I
    get the next error:
    Error(12,11): PLS-00306: wrong number or types of
    arguments in call to 'F_GET_URLS'
    This is the procedure where i'm caling the fucntion:
    PROCEDURE temp1
    IS
    TYPE t_table is table of VARCHAR2(100) index by---Dont declare new collection
    binary_integer;
    > v_tab Yourpackagename.collectionname;
    v_temp VARCHAR2(100);
    EGIN
    v_tab(1):='test';
    v_tab(2):='test2';
    v_temp:=pkg_print.f_get_urls(v_tab);
    dbms_output.PUT_LINE(v_temp);
    END temp1;
    Any idea if i made an error or is this just not
    possible?
    ThanksTry it
    PROCEDURE temp1
    IS
    -- TYPE t_table is table of VARCHAR2(100) index by---Dont declare new collection
    -- binary_integer;
    v_tab Yourpackagename.collectionname;
    v_temp VARCHAR2(100);
    BEGIN
    v_tab(1):='test';
    v_tab(2):='test2';
    v_temp:=pkg_print.f_get_urls(v_tab);
    dbms_output.PUT_LINE(v_temp);
    END temp1;
    colection types are not compatible even you created 2 diffrent types with the exact defination.
    Please paste yours full code here....
    Khurram
    Whats that
    v_temp:=pkg_print.f_get_urls(v_tab);
    Message was edited by:
    Khurram Siddiqui

  • Problem with external procedure

    Please,
    i'm doing some experiments in Microsoft Win2003 environment calling a c function as external procedures.
    I've build a sample using Dev-C++ that make a DLL (i don't know c language) named sysDLL.dll
    DllClass::DllClass(char *cmd)
    int num;
    num = system(cmd);
    I need only to execute some OS command from PL/SQL (rdbms 10.2).
    I've putted DLL in $ORACLE_HOME\bin.
    Then I've created library with this statement :
    Create Library scott.c_sysdll as 'C:\oracle\product\10.2.0\db_3\bin\sysdll.dll'
    and at the end I've created the procedure :
    create or replace procedure scott.shell(cmd IN varchar2)
    as language C
    library c_SysDll
    name "DllClass"
    parameters (cmd string);
    But when I execute this procedure from sql*plus I've always get :
    ORA-06521: PL/SQL: Error mapping function
    ORA-06522: Unable to load symbol from DLL
    ORA-06512: at "SCOTT.SHELL", line 1
    ORA-06512: at line 1
    Please help me, thanks !

    Suggest that you first make it much simpler. Do not object orientation. Use plain vanilla flavour C. And even before using C, use a kernel call instead. For example, the gethostname() is a standard Socket call that you will find on many operating system (including Windows & Unix).
    The following code sample illustrates (can be run as is via SQL*Plus):<font color="blue">
    -- specify the external library (shared lib on Unix, DLL on Windows)
    create or replace library libc as 'libc.sl';
    -- The kernel call that we're going to wrap with a PL/SQL function:
    --      int gethostname(char *hostname, size_t size);
    -- wrapping this API call with a PL/SQL function
    create or replace function gethostname( hostname OUT string, size_t binary_integer ) return binary_integer is
            external
            library libc
            name "gethostname"
            language C
            calling standard C
            parameters
                    hostname        STRING,
                    size_t          INT
    -- calling the kernel API routine from within PL/SQL
    set serveroutput on
    declare
            host$   varchar2(60);
            rc$     integer;
    begin
            rc$ := gethostname( host$, 60 );
            dbms_output.put_line( 'hostname is ['|| host$ ||'] return code=['|| TO_CHAR(rc$) || ']' );
    end;
    /</font>
    <p>
    Of course, the DLL name for Window is different than the Shared Library ('libc.sl') used in the above snippet. Do not have a Win32 Oracle platform to test on, but you should find this API call in the winsock.dll library.
    <p>
    As for writing your custom extproc in C. Plain vanilla C is something as follows:
    int dosomestuff()
      return( 123456 );
    <p>
    Remember that this function has to be exported in the DLL interface.
    <p>
    Also keep in mind that using extproc is usually the last option to pursue when dealing with Oracle development. The basic rules are as follows:
    1. Do it in SQL.
    2. If it cannot be done in SQL, do it as a PL/SQL proc
    3. If if cannot be done in PL/SQL. do it as a Java stored proc
    4. If if cannot be done in Java, do is as an external proc<p>
    The times that I need to resort to using Java is less than a handful (most obvious one is using Java to gain o/s command line access). I have never put external proc code into production as we have yet to have a need for something so exceptional, that it cannot be done using SQL, PL/SQL or Java as the last resort.

Maybe you are looking for

  • Emac wont boot from cd or hard drive & display qeustion mark ?

    Hello, if someone can please help me. I have an emac which is purchased in 2003, it has ran OSX 10.4 for around a year. Recently i clean installed the hard drive, but the installation kept failing. When I restarted the computer a flashing qeustion ma

  • Camera save function not working correctly

    When taking pictures my camera is intermittently saving the photos off center.  I take the picture and when I look at the saved product everything has shifted to the right.  Any ideas why this is happening and more importantly how to fix it?

  • NoClassDefFoundError  running jsf page rendering datacontrol return value

    Hi all, For a fusion web application, I have created a java file and converted it to a data control .The file has the code to establish the connection to an external SES endpoint and fetching the results.Dragged the return value to a jsf page part of

  • Iphoto book images too dark!

    We have been satified with previous Apple iPhoto books.   We are disappointed in the most recent one as the photos are dark throughout.  Yes, we have a bright monitor, but have always used the same approach.   Photos from other vendors using the same

  • Why can't I rotate multiple points in puppet warp at the same time?

    You can rotate single points in puppet warp, and you can shift+click to select multiple points and move them at the same time but I see no way to rotate multiple points as one group using puppet warp.  This would be a very helpful feature I think sho