Ingres Raise Error versus Oracle  Exceptions

I am working on converting an ingres database and procedures to oracle. The Ingres procedure does 3 updates and after each one
if there is an error the procedure sets a different error. Ingres uses the raise error statement. So I am wondering how Oracle's exception handling compares. Is the error is written to a global area in Ingres and maybe passed along to the application as well in Ingres ?
Appreciate any experience you have in this.
Ingres example
create procedure table_move as declare
err integer not null;
begin
error = 0;
update the records in table a
if (iierrornumber > 0_ then
err =1;
raise error :err;
endif
if (iierrornumber =0) then
update the records in table b
If (iierrornumber > 0) then
err = 2;
raise error : err
endif
How would this be in Oracle. I am really flagging any error so would it be more like When others ?
Thanks.

How would this be in Oracle. I am really flagging any error so would it be more like When others ?You can find lots of examples and explanations regarding exception handling in the Oracle Docs.
Examples:
http://www.oracle.com/pls/db102/search?word=exception&partno=
Regarding using a WHEN OTHERS exception: it's usually programming a bug, unless you also RAISE your WHEN OTHERS.
See this thread for a 'thorough explanation' and don't be afraid to scroll on, it's getting more interesting while doing that ;) :
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1509245700346768268#tom1535781400346575552
If you really want to 'flag' any error and your DB version is at least 10gr2, I suggest you use DML Error Logging.
See:
http://tkyte.blogspot.com/2005/07/how-cool-is-this.html
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlplsql.htm#sthref3393

Similar Messages

  • DDE.APP_BEGIN Causes error 106561: non-oracle Exception

    Hello,
    Im trying to launch excel from my form. My form is running from Oracle E-Business Suite and i always get the error 106561: non-oracle Exception. The cause of the error is the DDE.APP_BEGIN. My first conclusion is the file path since my form isnt running from my machine. Any one can help me with this?
    DECLARE
    APPL_NAME VARCHAR2(100);
    APPLICATION_ID PLS_INTEGER;
    CHANNEL_ID PLS_INTEGER;
    BEGIN
    IF application_id IS NOT NULL
    THEN
    MESSAGE('Application is already running. ');
    ELSE
    application_id := DDE.APP_BEGIN('C:\MsOffice\EXCEL.EXE', DDE.APP_MODE_NORMAL);
    MESSAGE('application_id = '||application_id);
    MESSAGE(' ');
    END IF;
    EXCEPTION
    WHEN DDE.DDE_APP_FAILURE THEN
    MESSAGE('Could not launch application for DDE operations.');
    RAISE FORM_TRIGGER_FAILURE;
    WHEN OTHERS THEN
    MESSAGE('Error: '||TO_CHAR(SQLCODE)||' '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE;
    END;
    Thank you.

    I would guess that you hunch is correct. C:\ does not exist on the machine where the Forms server is running. The WEB_UTIL package will probably be able to do this.

  • Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILUR

    Hi,
    I am getting the following message when I click on workitems for CATS timesheet approval(TS3100007) that are received in UWL tasks inbox in MSS.
    Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
    at com.sap.xss.hr.cat.approve.blc.FcCatApprove.rfcExecute(FcCatApprove.java:307)
    at com.sap.xss.hr.cat.approve.blc.FcCatApprove.rfcReview(FcCatApprove.java:435)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApprove.rfcReview(InternalFcCatApprove.java:220)
    at com.sap.xss.hr.cat.approve.blc.FcCatApproveInterface.onReview(FcCatApproveInterface.java:379)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApproveInterface.onReview(InternalFcCatApproveInterface.java:153)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApproveInterface$External.onReview(InternalFcCatApproveInterface.java:333)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListInterface.onEvent(VcCatApproveDrillDownListInterface.java:128)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface.onEvent(InternalVcCatApproveDrillDownListInterface.java:127)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface$External.onEvent(InternalVcCatApproveDrillDownListInterface.java:217)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:533)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$600(FPMComponent.java:78)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.raiseReviewAndSaveEvent(FPMComponent.java:946)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.raiseReviewAndSaveEvent(FPMComponent.java:1109)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownList.fireEvent(VcCatApproveDrillDownList.java:330)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownList.fireEvent(InternalVcCatApproveDrillDownList.java:166)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListInterface.blcEvent(VcCatApproveDrillDownListInterface.java:228)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface.blcEvent(InternalVcCatApproveDrillDownListInterface.java:163)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListView.onActionReview(VcCatApproveDrillDownListView.java:303)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListView.wdInvokeEventHandler(InternalVcCatApproveDrillDownListView.java:178)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
    at com.sap.xss.hr.cat.approve.model.approval.CatsApproval.hrmss_Cat_Wd_Approval(CatsApproval.java:178)
    at com.sap.xss.hr.cat.approve.model.approval.Hrmss_Cat_Wd_Approval_Input.doExecute(Hrmss_Cat_Wd_Approval_Input.java:137)
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
    Does anyone have any idea?
    Thanks.
    BNP

    Hi,
    It looks to me like the RFC Hrmss_Cat_Wd_Approval does not exist. Is your back-end system ECC 6.0? If not then I don't believe this will work. See page 93 of the document at this link:
    https://www2.iviewstudio.com/support_content/_17296/BP_MSS_mySAPERP2005_SR1_EN.pdf
    Bert

  • Exception condition "PROFILE_NOT_INITIALIZED" raised., error key: RFC_ERROR

    Dear EP Expert,
    We are trying to implement ECC 6 with EP 7. When i try to browse a standard webdypro iView provide by the ess business package i.e (record working time). The system return such error.
    Exception condition "PROFILE_NOT_INITIALIZED" raised., error key: RFC_ERROR_SYSTEM_FAILURE:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Exception condition "PROFILE_NOT_INITIALIZED" raised., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
         at com.sap.xss.hr.cat.record.blc.RfcManager.rfcExecute(RfcManager.java:468)
         at com.sap.xss.hr.cat.record.blc.RfcManager.init(RfcManager.java:822)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalRfcManager.init(InternalRfcManager.java:248)
         at com.sap.xss.hr.cat.record.blc.FcCatRecordInterface.onInit(FcCatRecordInterface.java:344)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface.onInit(InternalFcCatRecordInterface.java:234)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface$External.onInit(InternalFcCatRecordInterface.java:484)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:920)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:889)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1082)
         at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendar.onInit(VcCatCalendar.java:251)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendar.onInit(InternalVcCatCalendar.java:194)
         at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendarInterface.onInit(VcCatCalendarInterface.java:162)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface.onInit(InternalVcCatCalendarInterface.java:146)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface$External.onInit(InternalVcCatCalendarInterface.java:222)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:731)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:667)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:879)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:222)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1280)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:354)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:552)
         at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:191)
         at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Exception condition "PROFILE_NOT_INITIALIZED" raised., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
         at com.sap.xss.hr.cat.general.model.slim.CatsModelSlim.hrxss_Cat_Wd_Record(CatsModelSlim.java:221)
         at com.sap.xss.hr.cat.general.model.slim.Hrxss_Cat_Wd_Record_Input.doExecute(Hrxss_Cat_Wd_Record_Input.java:137)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
         ... 66 more
    Other page like leave request is not displaying anything at all, just the blank page. Anyone knows what is wrong? I have read some previous thread and found that they are mentioning the "CVR". Anyone know what is it?
    Thanks
    Regards,
    Bryan

    Dear Brian
    This problem may be arising from the error/changes required in Entry Profile...
    In R/3
    - SPRO
    -   Cross-Application Components
    -     Time Sheet
    -       Set Up Data Entry Profiles
    Go there and fix the problem and this should be resolved...
    Best Regards,
    Aslam Riaz

  • Exception "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILURE"

    Hi All,
    We have the Java web dynpro  applications running smoothly in development system.
    But in Quality system we are getting the following issue.
    Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILURE"
    All users are created with same authorization as in development system.
    Still getting the problem.
    Any idea how to solve this problem.
    Thanks in advance.
    Regards,
    Sumangala.

    Hi ,
    CNTL_ERROR" raised is something related to backend system . ask backend consultants to check any dumps related to this error.
    Regards,
    Koti Reddy

  • Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILU

    Hi All,
    After the custo of the ESSleave request  in the IMG . I made some tests.
    Evrethign is going fine but once i try to enter a leave request during a non wroking day, i'm getting this message
    Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    I checked in st22 and they ask to find a sap note with those key words
    "RAISE_EXCEPTION" " "
    "SAPLSPO1" or "LSPO1F01"
    "INSTANTIATE_CONTROL"
    or
    "SAPLSPO1" "CNTL_ERROR"
    or
    "SAPMSSY1 " "CNTL_ERROR"
    I found nothing that can help me in sap service..
    Did someone already encounter such error ?
    Only usefull answers will be rewared .

    Hi Adel,
    Can you test the same application in the content administrator of the respective portal and check if you find the same error or another error.
    Regards,
    Narendra.

  • Inserting error: 100500: non-ORACLE exception

    Hi,
    I have bunch of inserts in post_update trigger in Forms. When I commit the changes , i notice the error message inserting error: 100500: non-ORACLE exception. I have 6 inserts and only one insert is fired. Please help. I am using forms 6.0.8
    Thanks,

    Hi,
    Thanks for the help. I had 6 inserts in one stored proc hence the problem. I split it into 3 different procs and it works now.Thanks Again.
    I didn't have any call to next-record etc...

  • Regarding runtime error DBIF_RSQL_SQL_ERROR and exception CX_SY_OPEN_SQL_DB

    Hi All,
    I am loading a COPA cube from a DSO.
    There are about 15million records to be loaded. every time i try loading the data, 1 or 2 Data packages gets stuck and finally it leads to a runtime error DBIF_RSQL_SQL_ERROR with exception CX_SY_OPEN_SQL_DB.
    When i checked in SM21 transaction code, i got the following message
    10:41:52 BTC  018 500 AMRUKV                     BY  O Deadlock occurred
    10:41:53 BTC  018 500 AMRUKV                     BY  4 Database error 60 at INS access to table /BIC/FCSDV
    10:41:53 BTC  018 500 AMRUKV                     BY  0 > ORA-00060: deadlock detected while waiting for resource
    10:41:54 BTC  018 500 AMRUKV                     AB  0 Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    10:41:58 BTC  018 500 AMRUKV                     AB  1 > Short dump "080818 104154 s0173bel PB100 " generated
    10:41:58 BTC  018 500 AMRUKV                     D0  1 Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20080818104154s0173bel_PB1_00 AMRUKV 500 )
    In transaction code ST22 i got the following message:
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
    Date and Time          18.08.2008 10:41:54
    Short text
         SQL error in the database when accessing a table.
    What happened?
         The database system detected a deadlock and avoided it by rolling back
         your transaction.
    What can you do?
         If possible (and necessary), repeat the last database transaction in the
          hope that locking the object will not result in another deadlock.
         Note which actions and input led to the error.
         For further help in handling the problem, contact your SAP administrator
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
          in  procedure "WRITE_ICFACT" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         The database system recognized that your last operation on the database
         would have led to a deadlock.
         Therefore, your transaction was rolled back
         to avoid this.
         ORACLE always terminates any transaction that would result in deadlock.
         The other transactions involved in this potential deadlock
         are not affected by the termination.
    How to correct the error
        Database error text........: "ORA-00060: deadlock detected while waiting for
         resource"
        Internal call code.........: "[RSQL/INSR//BIC/FCSDVD_C02 ]"
        Please check the entries in the system log (Transaction SM21).
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
        "GPD3UMZD6V4YAKZAIWAOCYLV07Y" or "GPD3UMZD6V4YAKZAIWAOCYLV07Y"
        "WRITE_ICFACT"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "WRITE_ICFACT" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    Can anybody suggest on what can be done?
    Thanks in Advance,
    Regards
    A.T

    Hi ,
    This is a table space issue....
    u will be getting a Dump...as DBIF_RSQL_SQL_ERROR check in ST22. in this DUMP if u scroll down u will find the table for which this is failing. Actually this is like some of the table related to the DSO is not having sufficient space to cary out the transaction. hence it is failing.
    U can also see in DB02--> Deadlock....u will see that there is a deadlock for this table. So find the table from ST22 and ask ur basis team to increase the space for this table....
    This can be solved only by increasing the space of the table...no other solution....ask help from ur basis team.
    Thanks
    Sandeep

  • 500 Internal Server Error  : Servlet error: Security sensitive exception..

    Hi
    Thank you for reading my post.
    i Faced a problem when i tried to run my ADF + BC application on standAlone OC4J version 10.1.3.1.0 .
    I have validation like what i saw before in demos for username length ,etc
    I developed the application in Jdeveloper 10.1.3.1.0 , i deploy it to server from Jdeveloper and now i tried to run it in browser and it return :
    500 Internal Server Error
    Servlet error: Security sensitive exception occured. Please consult application log for details.
    in the browser and
    the cmd console which i used to start the server shows something like :
    F:\oc4j\bin>oc4j -start
    Starting OC4J from F:\oc4j\j2ee\home ...
    2006-09-02 01:11:52.437 ERROR J2EE HTTP-00004 Internal error raised tyring to in
    stantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default
    Web Site. Application: bc4j does not exist. Error creating Web application: weba
    pp
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null
    Sep 2, 2006 1:11:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    06/09/02 01:11:56 Oracle Containers for J2EE 10g (10.1.3.1.0)  initialized
    2006-09-02 01:12:41.093 NOTIFICATION ---- JAZNSecurityContext.getUserPrincipal()
    : NULLthe log file (from j2ee/home/log/oc4j/log.xml ) shows the following :
    <MESSAGE>
      <HEADER>
        <TSTZ_ORIGINATING>2006-09-02T01:11:52.437+03:30</TSTZ_ORIGINATING>
        <COMPONENT_ID>j2ee</COMPONENT_ID>
        <MSG_ID>J2EE HTTP-00004</MSG_ID>
        <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
        <MSG_LEVEL>1</MSG_LEVEL>
        <HOST_ID>sal10000</HOST_ID>
        <HOST_NWADDR>85.9.120.221</HOST_NWADDR>
        <MODULE_ID>http</MODULE_ID>
        <THREAD_ID>10</THREAD_ID>
        <USER_ID>legolas w</USER_ID>
      </HEADER>
      <CORRELATION_DATA>
        <EXEC_CONTEXT_ID><UNIQUE_ID>85.9.120.221:44575:1157146912453:0</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
      </CORRELATION_DATA>
      <PAYLOAD>
        <MSG_TEXT>Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: bc4j does not exist. Error creating Web application: webapp</MSG_TEXT>
      </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
      <HEADER>
        <TSTZ_ORIGINATING>2006-09-02T01:12:41.031+03:30</TSTZ_ORIGINATING>
        <COMPONENT_ID>adf</COMPONENT_ID>
        <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
        <MSG_LEVEL>1</MSG_LEVEL>
        <HOST_ID>sal10000</HOST_ID>
        <HOST_NWADDR>85.9.120.221</HOST_NWADDR>
        <MODULE_ID>share.security</MODULE_ID>
        <THREAD_ID>11</THREAD_ID>
        <USER_ID>legolas w</USER_ID>
      </HEADER>
      <CORRELATION_DATA>
        <EXEC_CONTEXT_ID><UNIQUE_ID>85.9.120.221:44575:1157146960593:1</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
      </CORRELATION_DATA>
      <PAYLOAD>
        <MSG_TEXT>Setting JAZN Config property ...</MSG_TEXT>
      </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
      <HEADER>
        <TSTZ_ORIGINATING>2006-09-02T01:12:41.093+03:30</TSTZ_ORIGINATING>
        <COMPONENT_ID>adf</COMPONENT_ID>
        <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE>
        <MSG_LEVEL>1</MSG_LEVEL>
        <HOST_ID>sal10000</HOST_ID>
        <HOST_NWADDR>85.9.120.221</HOST_NWADDR>
        <MODULE_ID>share.security</MODULE_ID>
        <THREAD_ID>11</THREAD_ID>
        <USER_ID>legolas w</USER_ID>
      </HEADER>
      <CORRELATION_DATA>
        <EXEC_CONTEXT_ID><UNIQUE_ID>85.9.120.221:44575:1157146960593:1</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
      </CORRELATION_DATA>
      <PAYLOAD>
        <MSG_TEXT>---- JAZNSecurityContext.getUserPrincipal(): NULL</MSG_TEXT>
      </PAYLOAD>
    </MESSAGE>

    please , can any one tell me where is the problem ?
    if i do not use BC in the jsf page it works fine , but when i use drag and drop feature to put a BC form in the page it shows that horribel error.

  • Oracle Jdeveloper error on Oracle Bigdata Lite Virtual Machine

    Hi All,
    I am using Oracle big data lite virtual machine from the following link: Oracle Big Data Lite Virtual Machine.
    I am trying to practice the tutorial at the following link: http://www.oracle.com/technetwork/topics/bigdata/articles/intro-to-oracle-nosql-db-hol-1937059.pdf.
    When I am trying to run the MoviePlex project in Oracle Jdeveloper which in-turn invokes Weblogic server and raises the following error while creating the Weblogic domain:
    [Waiting for the domain to finish building...]
    [08:41:11 AM] Creating Integrated Weblogic domain...
    [08:41:39 AM] Integrated Weblogic domain processing completed successfully.
    *** Using port 7101 ***
    /home/oracle/.jdeveloper/system11.1.1.6.38.61.92/DefaultDomain/bin/startWebLogic.sh
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms512m -Xmx512m
    WLS Start Mode=Development
    CLASSPATH=/u01/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/Middleware/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/latest/lib/tools.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/u01/Middleware/wlserver_10.3/server/lib/webservices.jar:/u01/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/Middleware/wlserver_10.3/server/lib/xqrl.jar::/u01/connectors/olh/jlib/*:/usr/lib/hadoop/*:/usr/lib/hadoop/client/*:/u01/nosql/kv-ee/lib/kvstore.jar:.
    Unrecognized option: -jrockit
    PATH=/u01/Middleware/wlserver_10.3/server/bin:/u01/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/java/latest/jre/bin:/usr/java/latest/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/R/bin:/u01/Middleware/jdeveloper/jdev/bin:/usr/java/latest/bin:/home/oracle/bin:/u01/app/oracle/product/12.1.0/dbhome_1/bin:/home/oracle/scripts:/opt/bin:/home/oracle/bin
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http://hostname:port/console        *
    starting weblogic with Java version:
    Starting WLS with line:
    /usr/java/latest/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=DefaultServer -Djava.security.policy=/u01/Middleware/wlserver_10.3/server/lib/weblogic.policy -Djavax.net.ssl.trustStore=/u01/Middleware/wlserver_10.3/server/lib/DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=/u01/Middleware/wlserver_10.3 -Dwls.home=/u01/Middleware/wlserver_10.3/server -Dweblogic.home=/u01/Middleware/wlserver_10.3/server  -Djps.app.credential.overwrite.allowed=true  -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/u01/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/u01/Middleware/patch_jdev1111/profiles/default/sysext_manifest_classpath  weblogic.Server
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Unrecognized option: -jrockit
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Process exited.
    The version of JRE installed on VM is as below:
    [oracle@bigdatalite ~]$ java -version
    java version "1.7.0_51"
    Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
    [oracle@bigdatalite ~]$
    I searched Google as well as OTN but found no solution.
    Can anybody have ever encountered the same problem, or can help, it will be highly appreciated.
    Thanks
    Bilal

    Hi Bilal,
    Can you try modify the below file to remove the Jrocket parameter.....
    regards
    Keith
    File:  /home/oracle/.jdeveloper/system11.1.1.6.38.61.92/DefaultDomain/bin/setDomainEnv.sh
    Add:
    # Clearing JAVA_VM - fix to remove jrockit setting
    JAVA_VM=""
    right before:
    if [ "${JAVA_VENDOR}" != "BEA" ] ; then
         JAVA_VM="${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}"
         export JAVA_VM
    else
         JAVA_VM="${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}"
         export JAVA_VM
    fi

  • PL/SQL Using SQL%NOTFOUND to raise a user defined exception in a function

    I have written the following function for finding the number of items in stock in the item table.
    CREATE OR REPLACE function getAmount (ItemID IN NUMBER)
    RETURN NUMBER
    AS
    invalid_id EXCEPTION;
    returnedQty number;
    BEGIN
    Select qty
    Into returnedQty
    From item
    Where itemNo = ItemID;
    RETURN (returnedQty);
    IF SQL%NOTFOUND THEN
    RAISE invalid_id;
    END IF;
    COMMIT;
    Exception
    WHEN invalid_id THEN
    DBMS_OUTPUT.PUT_LINE('Invalid ID entered');
    END getAmount;
    The function compiles successfully, although there is a problem that Oracle is not handling my user-defined exception invalid_id
    If I use the following for a valid itemID:
    DECLARE
    return_value number;
    BEGIN
    return_value := getAmount(1);
    DBMS_OUTPUT.PUT_LINE (return_value);
    END;
    then the function returns the quantity of items in stock correctly.
    However, if I enter an incorrect itemID, say 20
    DECLARE
    return_value number;
    BEGIN
    return_value := getAmount(20);
    DBMS_OUTPUT.PUT_LINE (return_value);
    END;
    The invalid_id exception is not raised, and the Oracle errors says: no_data_found and the function has not returned a value. If I add a no_data_found exception, this works perfectly, but for this assignment I must write my own user-defined error.
    Any help would be very much appreciated!
    Thank you.

    What you're trying to do, is to use an implicit cursor. Implicit cursors will raise no_data_found and too_many_rows in case of an error. Explicit cursors will not.
    Also, you have a small coding error ... a little rewrite and your code will do as you want to:
    CREATE OR REPLACE function getAmount (ItemID IN NUMBER)
    RETURN NUMBER
    AS
    invalid_id EXCEPTION;
    returnedQty number;
    cursor citem is
    Select qty
    From item
    Where itemNo = ItemID;
    fnd boolean;
    BEGIN
    open citem;
    fetch citem Into returnedQty;
    fnd := citem%found;
    close citem;
    if fnd then
    RETURN (returnedQty);
    else
    RAISE invalid_id;
    END IF;
    /* Do not catch your own exception or the calling code will not receive it.
    Exception
    WHEN invalid_id THEN
    DBMS_OUTPUT.PUT_LINE('Invalid ID entered');
    END getAmount;
    Your problem is, you're not using a package. This means, that the calling code has no way of catching this user-defined exeption. The correct way is to define a package, define the userdefined exception in the package and refer to it in your code:
    create or replace package amt
    is
    invalid_id EXCEPTION;
    function getAmount (ItemID IN NUMBER)
    RETURN NUMBER;
    end;
    create or replace package body amt
    is
    function getAmount (ItemID IN NUMBER)
    RETURN NUMBER
    AS
    returnedQty number;
    cursor citem is
    Select qty
    From item
    Where itemNo = ItemID;
    fnd boolean;
    BEGIN
    open citem;
    fetch citem Into returnedQty;
    fnd := citem%found;
    close citem;
    if fnd then
    RETURN (returnedQty);
    else
    RAISE invalid_id;
    END IF;
    end;
    end; -- end package
    To do a simple test, you'll do:
    declare
    a number;
    begin
    a := amt.getAmount(123);
    dbms_output.put_line('The result is '||a);
    exception
    when amt.invalid_id then
    dbms_output.put_line('ID not found');
    end;
    Other ways is to raise the exception in your no_data_found block.
    But I'm REALLY puzzled if there's really someone out there who prefers a user-defined exception instead of the clearly defined NO_DATA_FOUND exception.
    I can't be sure of course, but are you sure what they mean is they don't want ANY exception? That's a pretty common requirement.
    In general - explicit cursors are a bit faster because Oracle does not have to do a second fetch to determine TOO_MANY_ROWS. And it's not too much additional writing. Explicit cursors will never raise exceptions - unless you use dynamic sql and your SQL is invalid.
    Good luck

  • What is the solution of  non-oracle exception erro 100501

    what is the solution of non-oracle exception erro 100501

    I'm guessing that the TRUE parameter in My_Alert causes the procedure to raise a form_trigger_failure. In that case you could do this:
    Declare
      A number(10);
    Begin
      SELECT Sif_Code
      INTO A
      FROM Pro_Stp_Rcp_Item
      WHERE Sif_Code = :Pro_Stp_Rcp_Item.Sif_Code
      AND Rou_Code = :Routes.Rou_Code;
      My_Alert('Item Code Already Registered',1,TRUE);
    Exception
      When form_trigger_failure then
        raise;
      When No_Data_Found Then null;
      When Too_Many_Rows
        Then My_Alert('Item Code Already Registered',1,TRUE);
      When Others
        Then My_Alert(Sqlerrm||' - '||sqlcode,1,TRUE);
    End;As Steve says, the problem is really caused by When Others here. I've got no problem with trapping "Others" but in forms you might be better off having a generic catch-all in the on-error trigger.

  • Please acknowledge-106557-106557:non ORACLE exception

    Hi everyone.
    I have created a form in which the required data gets displayed in the excel (.xls) file on clicking a button.
    When i run the form, I am getting error that is FRM-40735: WHEN-BUTTON PRESSED trigger raised unhandled exception ORA-106557.
    When i run the form again, I am getting result as expected. It works perfectly fine.
    After i log in to the software, only for the first click i get that error. Later it works fine.
    So i tried to catch the exact error by putting an exception code that is:
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE(SQLCODE||' - '||SQLERRM);
    PAUSE;
    END;
    After compiling with the exception; I got an error message and an error alert window.
    The Error window shows 'Please acknowledge'.
    The Error message is -106557-106557:non ORACLE exception .
    I am not getting to know what is wrong exactly because it shows FRM-40735 error only for the first time, later it works fine.
    Can you Help me with this.
    Thank You.

    DECLARE
      CURSOR C_EXCEL IS
      SELECT DISTINCT INDIRECT_RECD.SLNO SLNO,
      INDIRECT_RECD.COMPLIANCE COMPLIANCE,
      INDIRECT_RECD.DUE_DATE DUE_DATE,
      INDIRECT_RECD.UNIT1 UNIT1,
      INDIRECT_RECD.UNIT2 UNIT2,
      INDIRECT_RECD.UNIT4 UNIT4,
      INDIRECT_RECD.UNIT5 UNIT5,
      INDIRECT_RECD.UNIT6 UNIT6,
      INDIRECT_RECD.UNIT7 UNIT7,
      INDIRECT_RECD.UNIT11 UNIT11,
      INDIRECT_RECD.UNIT12 UNIT12,
      INDIRECT_RECD.UNIT14 UNIT14,
      INDIRECT_RECD.UNIT15 UNIT15,
      INDIRECT_RECD.UNIT16 UNIT16,
      INDIRECT_RECD.UNIT18 UNIT18,
      INDIRECT_RECD.UNIT20 UNIT20,
      INDIRECT_RECD.UNIT25 UNIT25,
      INDIRECT_RECD.UNIT91 UNIT91,
      INDIRECT_RECD.COMP_MONTH COMP_MONTH
      FROM INDIRECT_RECD
      WHERE COMP_MONTH=:IT_DATE;
      CONVID PLS_INTEGER;
       ROWCOUNT NUMBER;
       RW NUMBER:= 7;
       RR NUMBER :=2;
       x number :=0;
       sn number := 1;
       OUT_FILE Text_IO.File_Type;
       FNAME VARCHAR2(50);
    BEGIN
      FNAME := GET_FILE_NAME('C:\', File_Filter=>'Excel Files (*.xls)|*.xls|',DIALOG_TYPE=>SAVE_FILE);
      IF FNAME IS NOT NULL THEN
      OUT_FILE := Text_IO.Fopen(FNAME, 'w');
      Text_IO.Fclose (out_file);
       CONVID := DDE.App_Begin('C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\EXCEL.EXE '||FNAME,
       DDE.APP_MODE_MAXIMIZED);
       dbms_lock.sleep(1);
      ConvID := DDE.Initiate('EXCEL', FNAME);
      DDE.Poke(ConvID,'R1C2','COMPANY LTD.',DDE.CF_TEXT,2000);
      DDE.Poke(ConvID,'R2C2','INDIRECT.', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R3C2','MONTHLY REPORT - CLOSED.', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R4C2','For the MONTH/YEAR = '||to_char(to_date(:IT_DATE,'RRRR/MM'),'MONTH/RRRR'), DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C1','SLNo.', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C2','Compliance', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C3','Due_Date', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C4','Unit-1', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C5','Unit-2', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C6','Unit-4', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C7','unit-5', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C8','Unit-6', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C9','Unit-7', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C10','Unit-11', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C11','Unit-12', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C12','Unit-14', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C13','Unit-15', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C14','Unit-16', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C15','Unit-18', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C16','Unit-20', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C17','Unit-25', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C18','Unit-91', DDE.CF_TEXT, 2000);
      DDE.Poke(ConvID,'R6C18','YEAR/MM', DDE.CF_TEXT, 2000);
       For i in C_EXCEL
         loop
         sn := sn + 1;
                DDE.Poke(ConvID,'R'||RW||'C'||1,nvl(i.SLNO,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||2,nvl(i.COMPLIANCE,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||3,nvl(to_char(i.DUE_DATE,'DD-MON-RRRR'),' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||4,nvl(i.UNIT1,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||5,nvl(i.UNIT2,' '), DDE.CF_TEXT, 2000);
            DDE.Poke(ConvID,'R'||RW||'C'||6,nvl(i.UNIT4,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||7,nvl(i.UNIT5,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||8,nvl(i.UNIT6,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||9,nvl(i.UNIT7,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||10,nvl(i.UNIT11,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||11,nvl(i.UNIT12,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||12,nvl(i.UNIT14,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||13,nvl(i.UNIT15,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||14,nvl(i.UNIT16,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||15,nvl(i.UNIT18,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||16,nvl(i.UNIT20,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||17,nvl(i.UNIT25,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||18,nvl(i.UNIT91,' '), DDE.CF_TEXT, 2000);
         DDE.Poke(ConvID,'R'||RW||'C'||18,nvl(i.COMP_MONTH,' '), DDE.CF_TEXT, 2000);
         RW := RW+1;
         x :=1;
      end loop;
    RR:=RW-1;
      IF x  = 1 THEN
      DDE.Poke(ConvID,'R'||RW||'C2','END OF REPORT', DDE.CF_TEXT, 2000);
      ELSE
      DDE.Poke(ConvID,'R7C1','No Data Found', DDE.CF_TEXT, 2000);
      END IF;
      END IF;
    End;
    Please acknowledge-106557-106557:non ORACLE exception 

  • SetBinaryStream Error with oracle

    I want to store picture into Oracle9i Database,so I use
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    public class test{
       public static void main(String args[]){
        Statement stmt=null;
        Connection conn=null;
        try{
             File file = new File("myimage.gif");
             FileInputStream fis = new FileInputStream(file); 
             Class.forName("oracle.jdbc.driver.OracleDriver");
             conn = DriverManager.getConnection("jdbc:oracle:thin:@test:1521:test","scott","tiger"); 
             PreparedStatement ps = conn.prepareStatement("insert into test values (?,?)");
             ps.setString(1,file.getName());
             ps.setBinaryStream(2,fis,file.length());
             ps.executeUpdate();
             ps.close();
             fis.close();
          catch(Exception err){
           err.printStackTrace();
        finally{
         try{                    
           conn.close();
         catch(SQLException err){
           err.printStackTrace();
    }My test table is follows:
    AA NOT NULL VARCHAR2(20)
    BB BLOB
    when I run above code,it raise errors:
    Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.Ora
    clePreparedStatement.setBinaryStream(ILjava/io/InputStream;J)V
    at a.test.main(test.java:18)
    I am puzzled with it! Anyone could tell me how to correct it?

    Hi,
    but I checked my java version following this steps:
    1a - In Windows, Classic View, open the Control Panel and then double-click the Java icon.
    1b - In Category View, select the Other Control Panel Options, and then click the Java icon.
    2- In the Java Control Panel window click the Java tab, and then click View.
    3 - In the Platform column, make sure that version 1.5 or higher exists and that it is enabled.
    To get the latest version of Java Runtime Environment, navigate to: http://www.java.com
    And my Java Version is 1.6
    =/

  • 100501 : non - ORACLE exception

    When i am trying to open a file using text IO, application is giving 100501 : non - ORACLE exception.
    The opening of file is written withing a BEGIN EXCEPTION END statement with when others exception.
    But the cursor is jumping to the outher EXCEPTION E.G.
    BEGIN
    BEGIN
    OPENING A FILE
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('1');
    END;
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('2');
    END;
    my application on failing for opening of file(file is not present) raises a message 2 rather than 1.
    Kindly let me know why the message 1 is not appearing

    i m getting the same error while updating several tables from a loop in a PU.
    its because i had put raise form_trigger_failure with each statement. and i had put a exception when others at the end of the my PU.
    remove exception when others from PU as form_trigger_failure is a non oracle exception (It is there in DBMS sereies of packages) and test your form.

Maybe you are looking for

  • Mac Pro starting on its own.

    I have run across a bug I think. After shutting down a Mac Pro the machine has turned itself on during the night. In Preferences -> Energy Saver -> Startup after power failure has been unchecked. There are no applications that have a 'run during the

  • Why can I only get the mobile me welcome page?

    Unable to load log in page for mobile me on ipad2. Probably missing something obvious but I reckon that's what help is for eh?

  • B/S Liability split

    Hi, Oracle automatic Offset offer the possibility to derive the B/S account (liability) by using the segment from the charge account (P&L) and the account from the supplier site. Could it be possible to limit the number of segments involved on the se

  • Goto command in LabVIEW

    Hi I was wondering if there's anything like a "goto" command in labview. For example, if I am in a for loop (and the for loop hasn't reached it's number of time to loop yet) and need to exit the loop and jump to somewhere else in a code because I enc

  • XML Signature with Barcoded Form

    I have a form that has a number of fields that need to be filled out. When this is complete, the user should digitally sign (with a certificate) the form. However, due to legal requirements, the form must then be printed and mailed back to the organi