Commit and Rollback in the procedure.
Hi allI use ODI 11.6 and Oracle 11 g.
I have a senario
When I contact_1-> procedure 1-> contact_2
The contact_1 update Table_1
If the procedure_1 is to run successfully then it updates Tab_2
Suppose that the contact_2 will fail which will update the Tab_3
I need to restore the Tab_2 and the Tab_1.
How to proceed in ODI?
So we Commit any type of option in the procedure?
Thank you
Lony
lony wrote:
Hi allI use ODI 11.6 and Oracle 11 g.
I have a senario
where I contact_1---> 1---> contact_2 procedureThe contact_1 update Table_1
If the procedure_1 is to run successfully then it updates Tab_2Suppose that the contact_2 will fail which will update the Tab_3
I need to restore the Tab_2 and the Tab_1.
Interface 1 & 2 should use KMs to the DDL and DML operations is a separate transaction.
For your info, most of the KM roped into this. Just check the same once more
Once the above is done then notes the DML operation that happens in what conversion. Say what is happening in transction1.
The value are committed to do for contact_1
Create your procedure and value commit any commit
In the procedure, set the transaction the same as as ok contact_1 IKM (say transction1)
The value contact_2 commit to yes
Thank you
Fati
Tags: Business Intelligence
Similar Questions
-
Seeing no Commit and Rollback in the data control
Hi, I am just learning to use JDEVELOPER and am following various tutorials/demos to learn. When I create my session EJB data control, I don't seem to get operations Commit and Rollback (the green gear icon). I repeated it in a new project with the same result. When I open the example of code written by other developers, I can see them correctly.
Y at - it a setting that I am neglecting to set?
Thank you
DaveEJB don't use Commit and Rollback - they use mergeEntity and persistEntity.
You will get operations commit and rollback if you will use for your persistence layer ADF business components. -
I work with JDeveloper 11.1.1.5.0 and the HR on Oracle 11 g XE database.
I dropped the collection used my data on my page control. This page is the adfc boundless taskflow iside. I also dropped the transaction Commit and Rollback of the data on this page control.
When I change the data in my table, I suppose that the cancellation and the validation button must be activated, but they remain disabled.
It seems that the transaction maintains 'clean' and my changes are not recognized. Does anyone have an idea how to solve this problem?Set the disabled property to buttons commit / rollback to false.
-
ADF Commit and Rollback fails after that put 12.1.3 at level
We have improved the fusion middleware to 12.1.3 post upgrade of that whole ADF Commit and Rollback operation fails with the following stack trace.
oracle.jbo.DMLException: Houston-26066: error when restoring.
at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:163)
at oracle.jbo.server.DBTransactionImpl.doRollback(DBTransactionImpl.java:5279)
at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2558)
at oracle.jbo.server.Serializer.activateTxn(Serializer.java:647)
at oracle.jbo.server.Serializer.activate(Serializer.java:323)
at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:337)
at oracle.jbo.server.ApplicationModuleImpl.activateFromStack(ApplicationModuleImpl.java:6750)
at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:6604)
at oracle.jbo.server.ApplicationModuleImpl.activateStateForUndo(ApplicationModuleImpl.java:9468)
at oracle.adf.model.bc4j.DCJboDataControl.restoreSavepoint(DCJboDataControl.java:3494)
at oracle.adf.model.dcframe.LocalTransactionHandler.restoreSavepoint(LocalTransactionHandler.java:121)
at oracle.adf.model.dcframe.DataControlFrameImpl.restoreSavepoint(DataControlFrameImpl.java:844)
at oracle.adfinternal.controller.util.model.DCFrameImpl.restoreSavepoint(DCFrameImpl.java:54)
at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.resolveTransaction(TaskFlowReturnActivityLogic.java:663)
at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.execute(TaskFlowReturnActivityLogic.java:126)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1241)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:1087)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:979)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:162)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:119)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:88)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at oracle.adf.view.rich.event.ProxyEvent.broadcastWrappedEvent(ProxyEvent.java:72)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:124)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Caused by: java.sql.SQLException: no rollback with autocommit will it mark the beginning on
at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:3564)
at weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection.rollback (unknown Source)
at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:149)
... more than 103
# # 0 in detail
java.sql.SQLException: no rollback with autocommit will it mark the beginning on
at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:3564)
at weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection.rollback (unknown Source)
at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:149)
at oracle.jbo.server.DBTransactionImpl.doRollback(DBTransactionImpl.java:5279)
at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2558)
at oracle.jbo.server.Serializer.activateTxn(Serializer.java:647)
at oracle.jbo.server.Serializer.activate(Serializer.java:323)
at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:337)
at oracle.jbo.server.ApplicationModuleImpl.activateFromStack(ApplicationModuleImpl.java:6750)
at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:6604)
at oracle.jbo.server.ApplicationModuleImpl.activateStateForUndo(ApplicationModuleImpl.java:9468)
at oracle.adf.model.bc4j.DCJboDataControl.restoreSavepoint(DCJboDataControl.java:3494)
at oracle.adf.model.dcframe.LocalTransactionHandler.restoreSavepoint(LocalTransactionHandler.java:121)
at oracle.adf.model.dcframe.DataControlFrameImpl.restoreSavepoint(DataControlFrameImpl.java:844)
at oracle.adfinternal.controller.util.model.DCFrameImpl.restoreSavepoint(DCFrameImpl.java:54)
at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.resolveTransaction(TaskFlowReturnActivityLogic.java:663)
at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.execute(TaskFlowReturnActivityLogic.java:126)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1241)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:1087)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:979)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:162)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:119)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:88)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at oracle.adf.view.rich.event.ProxyEvent.broadcastWrappedEvent(ProxyEvent.java:72)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:124)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:171)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:115)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Tried to adjust defaultAutoCommit = false for all data sources, the problem still persists.
Need help to solve this problem
May be the same question as in Jdev 12 c - user proxy db setting
-
Hi all
I need help woth greetings to Commit and Rollback.
I've updated a table in my database.
My table has the following columns.
calcualtion, seqno, defname
I had to update the calculation where seqno in (1, 2).
I forgot to give where clause in my update statement and the table updated.
I tried the restore, it didn't work.
Is it possible I can cancel my commit?
Thank youYou cannot restore a commit: is this that commit means actually, really, in the first place: "I agree these changes * permanent * in the database.
If you use anything later than version 9i, however, you will see the old data as it used to be:
select * from tableA as of timestamp to_timestamp('09:00:00 03-JAN-2009','HH24:MI:SS DD-MON-YYYY')
(Of course, to set date and hours to this statement based on your own needs).
You will not be able to see the data that he used to use this syntax, however, because too much activity on the database caused the cancellation necessary to generate the 'image' of the data that it had to be crushed. But if you can, then you can do something like this:
create table tableAbackup as select * from tableA as of timestamp to_timestamp('09:00:00 03-JAN-2009','HH24:MI:SS DD-MON-YYYY')
And then you'd be able to do something like
update tableA a set calculation=(select calculation from tableAbackup where seqno=a.seqno);
When you have your data in the real TableA, you can drop TableAbackup. And then you can go make your original updated again, this time without forgetting to add the WHERE clause!
If you cannot use this technique because you get told that you can not return to flame the table than necessary because undo is missing, then you're looking at things like finding the data in an old export file. a database of pending or which has not been updated yet; or (in extreme cases) during an incomplete recovery of the entire database at one hour before your update. Errors user like these are horribly expensive recover if flashback is not here to save you!
-
Bug so that the editing and compilation of the procedure
Bug so that the editing and compilation of the procedure in Sql Developer 1.5.4
the error is
ORA-00904 'ATTRIBUTE' is not a valid identifier
Published by: user4448643 on March 16, 2009 05:09I get the same thing, it happens when I compile on our 9i database (Oracle9i Enterprise Edition Release * 9.2.0.4.0 *-Production). Even opened a package for editing gives error.
Compilation on our 10g database does not give an error (Oracle Database 10g Enterprise Edition Release * 10.2.0.4.0 *-64bi).
-
commit and rollback in sqlplus session
Hi all
I noticed that whenever I got out after a statement keep telling (insert or update or delete) transaction, sqlplus is committed by its on.
Why its kind? is this a configuration in oracle?
How we control this behavior?
For example:
$ sqlplus scott/tiger@orcl
SQL > sho autocommit
autocommit OFF
SQL > select * from foo;
A AND B
---------- -------
100 200
200 300
SQL > insert into foo values (300 200);
1 line of creation.
SQL > "exit";
$ sqlplus scott/tiger@orcl
SQL > select * from x;
A AND B
---------- -------
100 200
200 300
300 200
From the example above:
auto-commit is disabled. But always when the session ends, its is committed. Please explain.
DB: 10 gr 2
Thanks in advance.Is it possible to control the behavior of automatic validation of sqlplus session shortly after release?
SQL * more
output + abandonment commits all changes by default, Oracle logs, waiting ends sqlplus and returns control to the operating system. If we wanted to leave SQL more without committing, we should have a restore then output or simply the cancellation of the outputcan be issued.
OUTPUT
----
Valid or rolls back all the changes pending, Oracle logs.
terminates SQL * more and returns control to the operating system.
With iSQL * Plus, commits or cancels all pending changes, stops
transformation of the current iSQL * more focus script and returns to the
Workspace. There is no way to access the return code in iSQL * more.
With iSQL * Plus click the disconnect button to disconnect from the Oracle database.Test-> 'restore output '.
SQL > create table a nologging in select * from object;
Table created.
SQL > select count (*) a;
COUNT (*)
----------
47945SQL > delete from a where rownum clause<>
10000 deleted rows.
SQL > "exit";
$ sqlplus user/pass
SQL > select count (*) a;
COUNT (*)
----------
37945SQL > delete a;
37945 deleted rows.
SQL > exit rollback;
$ sqlplus user/pass
SQL > select count (*) a;
COUNT (*)
----------
37945Good luck ;)
-
How to get the name and number of the procedure parameter list or a function?
I stated the procedure described in the package
If I want to get the number and the name of the parameter list, so how do I it
I don't have I her name with the package.
create or replace package demoApp is
PROCEDURE insert_data (p_fname IN VARCHAR2,
p_lname IN VARCHAR2,
p_address IN VARCHAR2,
p_cellno IN VARCHAR2,
p_email IN varchar2);
end demoApp;
create or replace package demoApp body is
PROCEDURE insert_data (p_fname IN VARCHAR2,
p_lname IN VARCHAR2,
p_address IN VARCHAR2,
p_cellno IN VARCHAR2,
p_email IN varchar2) IS
EmpID number;
BEGIN
Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;
INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);
EXCEPTION
WHILE OTHERS THEN
raise_application_error (-20001,' insert the problem ' |) SQLERRM);
END;
end demoApp;
-----------------
I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "
Select *.
of all_arguments
where package_name = 'DEMOAPP.
and object_name = 'INSERT_DATA.
-
SQL Loader issue - CSV with commas and quotes IN the data
Hello, I have a dataset for a simple table of 2 columns like this:
Column 1, "it is given for"Column 2", with commas and quotes."
Data are delimited by commas and may be surrounded by double quotes. In ADDITION, it may include commas and quotation marks in the data fields. I CANNOT manipulate data before sending it to SQL Loader.
I set my file of control like this:
DOWNLOAD THE DATA
INFILE '. / TEST.dat'
BADFILE '. / TEST. BAD'
DISCARDFILE '. / TEST. DSC"
REPLACE IN THE TEST TABLE
Fields ended by ',' POSSIBLY BOX BY ' "' TRAILING NULLCOLS"
(
Col1 char (50),
Col2 char (500)
)
Now when I run the present via SQLLDR, I get the following error in the log file:
Sheet 1: Rejected - error on table TEST, column COL2.
no terminator found after CLOSE and CLOSED field
What are my options to get the loaded data as presented above? I'm working on Oracle 11 g (11.2.0.3.0) 64-bit on AIX 6.1.0.0.
Thank you!
In this case, there is no way she can tell who's a delimiter or pregnant and which is part of the data. As far as I know, there is no way that you can load it into the appropriate columns.
-
Prevention of commas and returns in the text field
I need to prevent the use of commas and returns within a text field in my form. Currently I have working code that prevents the use of commas, but now need prevent a hard return.
That's what I currently have:
VSC. File. Justification::change - (JavaScript, client)
XFA. Event.change = xfa.event.change.replace (/, /g "");
Thanks for the help!
Hello
in order to avoid several characters, you can use a few methods that work.
If (xfa.event.change = ',': xfa.event.change = '\n' | xfa.event.change = '\r') {}
XFA. Event.change = "";
}
or
var notUsed = / | \n|\r/;
If (xfa.event.change.match (notUsed)) {}
XFA. Event.change = "";
}
-
Tuninng performance for cursor and insert in the procedure
Hi all
I need to set the oracle procedure. The procedure is as below.
CREATE OR REPLACE PROCEDURE XYZ
AS
CURSOR ABCD_CUR IS
SELECT a, b, c and d
OF ABCD;
RV_abcd ABCD_CUR % TYPE;
BEGIN
OPEN abcd_cur.
loop
extract the abcd_cur in rv_abcd;
out on abcd_cur % NOTFOUND;
BEGIN
insert into one
(
SEQ_ID,
A
)
VALUES
(
A_SEQ. NEXTVAL,
rv_abcd. A
);
Insert into B
(
REF_SEQ_ID,
SEQ_ID,
B
)
VALUES
(
A_SEQ. CURVAL,
B_SEQ. NEXTVAL,
B
);
Insert into C
(
REF_SEQ_ID,
SEQ_ID,
C,
D
)
values
(
A.SEQ. CURVAL,
C_SEQ. NEXTVAL,
C,
D
);
EXCEPTION
END;
EXCEPTION
END;
the cursor query may sing either query or a query to join.
For a single query, I used advice PARALLELS. but I'm not able to find out which suggests that I can use to join as well as what suspicion that I have to use for the INSERT statement.
also, in addition to and delete, can what advice we use?Your entire code can be narrowed in a single SQL
insert all into a(seq_id, a) values (a_seq.nextval, a) into b(REF_SEQ_ID, seq_id, b) values (a_seq.currval, b_seq.nextval, b) into c(ref_seq_id, seq_id, c, d) values (a_seq.currval, c_seq.nextval, c, d) select a, b, c, d from abcd
-
Hello
I used the SessionEventLister of events to trace during validation and I wanted to confirm the following
Statement rollback transaction database if the sql statements fails in this transaction, the unitOfWork.commit ()? Or do we have to specifically call unitOfWork.release () to make sure that database transactions are cancelled. I don't see SessionEventLister.preRollbackTransaction () method called when this happens.
In the scenario below, will be the connection JDBC related to this transaction cleaned (restored existing transactions) before connection is returned to the pool on session release();
A session = getToplinkClientSession();
UOW UnitOfWork = session.acquireUnitOfWork ();
UnitOfWork.beginEarlyTransaction)
UnitOfWork.executeQuery (new ValueReadQuery ("data update call"));
session. Release();
Thanks for your help
Concerning
-ShajiIt is best to call release() on the UnitOfWork, calling on the ClientSession rollbackTransaction() should also work.
-
How to split string separated by commas and pass to the clause of the select statement
Referring to article How to divide string separated by commas, then pass to clause of a select statement, tquery that there the following plan:
Query1:
select * from emp where ename in ( select regexp_substr('SMITH,ALLEN,WARD,JONES','[^,]+', 1, level) from dual connect by regexp_substr('SMITH,ALLEN,WARD,JONES', '[^,]+', 1, level) is not null );
Base1:
Plan hash value: 4242290184 -------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 133 | 7 (29)| 00:00:01 | |* 1 | HASH JOIN | | 1 | 133 | 7 (29)| 00:00:01 | | 2 | VIEW | VW_NSO_1 | 1 | 46 | 3 (34)| 00:00:01 | | 3 | HASH UNIQUE | | 1 | | 3 (34)| 00:00:01 | |* 4 | CONNECT BY WITHOUT FILTERING| | | | | | | 5 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 | | 6 | TABLE ACCESS FULL | EMP | 14 | 1218 | 3 (0)| 00:00:01 | -------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - access("ENAME"="$nso_col_1") 4 - filter( REGEXP_SUBSTR ('SMITH,ALLEN,WARD,JONES','[^,]+',1,LEVEL) IS NOT NULL)
However, the following query generates the plan I want:
Query2:
select * from emp where ename in ('SMITH','ALLEN','WARD','JONES');
Plan2:
Plan hash value: 3956160932 -------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 4 | 348 | 3 (0)| 00:00:01 | |* 1 | TABLE ACCESS FULL| EMP | 4 | 348 | 3 (0)| 00:00:01 | -------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("ENAME"='ALLEN' OR "ENAME"='JONES' OR "ENAME"='SMITH' OR "ENAME"='WARD')
Can I change the query1 query for plan2?
As Juliet was mentioned in the first SQL that you generate from the ENAME list that you must pass in the IN clause when executing. But in the second SQL, it passed as a static value. So first SQL must do more work. So you see a different execution plan.
But this is a work around to get what you are looking for. But I can't say it's a foolproof method. But anyway here you go.
SQL > var ename_list varchar2 (100)
SQL > exec: ename_list: = 'SMITH, ALLEN, WARD, JONES ';PL/SQL procedure successfully completed.
SQL > select *.
2 of PEM
where the 3 «,» | : ename_list | ',' like '%', | Ename | ',%';EMPNO, ENAME, JOB HIREDATE DEPTNO ID COM SAL MGR
---------- ------ --------- ---------- --------- ---------- ---------- ---------- ----------
7369 SMITH COMMITTED 7902 2975 2 APRIL 81 0 20
7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
7566 JONES MANAGER 7839 2975 2 APRIL 81 0 20SQL > select * from table (dbms_xplan.display_cursor);
PLAN_TABLE_OUTPUT
-------------------------------------------------------------------------------------------------------
SQL_ID, 848zhvbvgf7d6, number of children 0
-------------------------------------
Select * from emp where «,» | : ename_list | ',' like '%', | Ename
|| ',%'Hash value of plan: 2872589290
--------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | | | 2 (100) | |
|* 1 | TABLE ACCESS FULL | EMP | 1. 38. 2 (0) | 00:00:01 |
--------------------------------------------------------------------------Information of predicates (identified by the operation identity card):
---------------------------------------------------1 - filter(','||:ENAME_LIST||',' LIKE '%,'||") ENAME "|", %')
19 selected lines.
SQL >
-
I try to add a video to my Powerpoint, but he repeats to me it is uanable to view. I have the latest version and followed the steps that were recommended but it still not allow me to view the video. What can I do?
What type of video file you are trying to add? If you can't get to display video in http://www.youtube.com, that means flash player is installed and works very well.
Please contact supplier (Microsoft) for help with PowerPoint.
-
Cannot run the procedure several times
Hello
I use oracle 12 c
I just created a stored procedure that works very well
Problem is that the second time I run it, it does not what it should (data fusion)
When I run the second time I always get PL/SQL procedure successfully completed but the target table is still empty, here is the procedure:
1 create or replace procedure MERGE_TABLEA
2 as
3. start
4 MERGE TABLE_A has B (SELECT 'ID', 'NAME' OF TABLE_B) with the HELP of
ON (A.ID = B.ID)
WHEN MATCHED THEN
UPDATE SET B.SID = B.NAME
WHEN NOT MATCHED THEN
INSERT (A.' ID',' NAME')
VALUES (B.ID, B.NAME);
END;
/
PL/SQL procedure successfully completed.
I also tried to build a simple procedure that id just insert and name of the table to test ina and it works very well, no matter how many times I've run it
Is it maybe something with the merger or what?
Thank you!
OK guys, I think there are some misunderstandings here,
@ddf_dba_ifox , version of the db that I use is stated in the first line of my post, I can't publish data for security reasons
@rp0428 I forgot to mention that I'M to truncate the table, and then run the procedure again but the merger no longer works as the table is empty
In any case, I found out why
I'm merging the tables in the DB using the schema that is related to my installation of Oracle APEX
In the procedure if you notice there is no COMMIT
As apex has users within a schema, that I couldn't see the lines without committing before
Thank you all anyway!
Maybe you are looking for
-
Why some WIn 8.1 drivers do not work on the Satellite A350-122?
Hellofirst of all I want you to forgive my broken English (it is not my native language) On my old (but very good), I installed Windows 8.1 * Satallite A350-122 PSAL6E-02300SFR * and I was really satisfied until I tried to install my drivers download
-
Re: Qosmio F20-137 - after I installed Windows 7 I have no sound
I installed Windows 7 on my Qosmio F20 and all the drivers have been installed by windows update after I connected to the Internet.I can play music and videon to files in Windows Media player, but there is no sound in speakers or if I connect the hea
-
Big Manuel PDF for my Atrix 2 shows how tap the icon "up arrow in a circle of blue" and choose 'Motorola Phone Portal' for an application to connect to my computer. Problem is when I type this icon there is no such visible application. Am I missing a
-
I can't seem to burn photos from my computer on disc I havr tried to use each kind, nothing works hel; p
-
CD/DVD inop on Presario SR1500NX
Anyone able to help with driver for TSST Corp CDW/DVD TS-H492A on Compaq Presario SR1500NX using Windows XP? The computer has installed SP3. The player is no longer works - will not turn a CD or a DVD - on hardware section for computer this yellow