Problems creating physical data service to relational table

Good morning.
I am running AquaLogic Data Services Platform 3.2 on WebLogic 10.0 in a JRockit 1.5 Java VM on my PC (and it is not a clustered environment) under Windows XP SP3.
I am trying to create access functionality to a table in a MS SQL 2005 database, but I am having trouble with the update map functionality. I can create and test the read function with no problems. When I try to edit the return structure, it gives me the following warning message
Cannot narrow remote object ClusterableRemoteRef(-10913774038965890074S :127.0.0.1 :7102,7102,-1,-1,-1,-1,-1*:ESBDSP:AdminServer [(-10913774038965890074S :127.0.0.1 :*7102,7102,-1,-1,-1,-1,-1]:ESBDSP:AdminServer/320*)/320 to com.bea.dsp.ejb.ServerHome*
(ESBDSP is the server domain, AdminServer is the WL server name, 7102 is the port)
When I then try to alter a value and Submit, it gives me the following error message
java.lang.NullPointerException
** at com.bea.dsp.ide.xquery.views.test.QueryExecutor.invokeUpdate(QueryExecutor.java:191)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.submitChanges(ResultPanel.java:1313)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.access$300(ResultPanel.java:111)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel$2.run(ResultPanel.java:1203)**
** at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)**
** at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)**
** at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:479)**
** at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:265)**
** at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1107)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.doSubmitImpl(ResultPanel.java:1210)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.access$200(ResultPanel.java:111)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel$1.run(ResultPanel.java:1189)**
** at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.doSubmit(ResultPanel.java:1193)**
** at com.bea.dsp.ide.xquery.views.test.ResultPanel.widgetSelected(ResultPanel.java:2779)**
** at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)**
** at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)**
** at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)**
** at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)**
** at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)**
** at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)**
** at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)**
** at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)**
** at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)**
** at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)**
** at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)**
** at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)**
** at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)**
** at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)**
** at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)**
** at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)**
** at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)**
** at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)**
** at java.lang.reflect.Method.invoke(Method.java:585)**
** at org.eclipse.core.launcher.Main.invokeFramework(Main.java:339)**
** at org.eclipse.core.launcher.Main.basicRun(Main.java:283)**
** at org.eclipse.core.launcher.Main.run(Main.java:984)**
** at org.eclipse.core.launcher.Main.eclipse_main(Main.java:959)**
** at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)**
** at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)**
** at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)**
** at java.lang.reflect.Method.invoke(Method.java:585)**
** at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:39)**
** at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)**
** at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)**
** at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)**
** at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)**
** at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)**
** at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)**
** at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)**
I have also tried to test the update function using the following data graph
*<sdo:datagraph xmlns:sdo="commonj.sdo">*
*<changeSummary>*
* <per:Persistance sdo:ref="#/sdo:datagraph/per:Persistance" xmlns:per="http://www.example.org/Persistance">*
* <per:Value>a different value</per:Value>*
* </per:Persistance>*
* </changeSummary>*
* <per:Persistance xmlns:per="http://www.example.org/Persistance">*
* <per:ID>1</per:ID>*
* </per:Persistance>*
*</sdo:datagraph>*
The error message I receive is the following
*<Error> <ALDSP> <PW130131> <AdminServer> <ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1229102443940> <BEA-000000> <Test> <System error while executing the query: {ld:Physical/Persistance}updatePersistance:1*
*weblogic.xml.query.exceptions.XQuerySagaException: {bea-err}UPD003: Update failure: mixed outcome, update error dispatched (updateid=SAGA_2d641b85a027a9ba:43f1e2cd:11e2800892f:-7fd2): com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0025: esb: [UPDATE "ESBdev"."dbo"."Persistance"*
*SET "Value" = ?*
*WHERE (("ID" = ?) AND ("Value" = ?))]: [NULL, 1, a different value|http://forums.oracle.com/forums/]: Optimistic locking failure. Update count returned by database is 0, expected 1*
at com.bea.ld.server.update.recovery.SagaRecovery.process(SagaRecovery.java:102)
at com.bea.ld.server.update.recovery.DSPSagaManager.processSagaFailure(DSPSagaManager.java:219)
at weblogic.xml.query.update.recovery.SagaState$2.afterCompletion(SagaState.java:83)
at weblogic.xml.query.transaction.TransactionManager.afterCompletion(TransactionManager.java:133)
at weblogic.transaction.internal.ServerSCInfo.doAfterCompletion(ServerSCInfo.java:1032)
at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:1011)
at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2946)
at weblogic.transaction.internal.ServerTransactionImpl.afterRolledBackStateHousekeeping(ServerTransactionImpl.java:2827)
at weblogic.transaction.internal.ServerTransactionImpl.setRolledBack(ServerTransactionImpl.java:2803)
at weblogic.transaction.internal.ServerTransactionImpl.globalRetryRollback(ServerTransactionImpl.java:3043)
at weblogic.transaction.internal.ServerTransactionImpl.globalRollback(ServerTransactionImpl.java:2793)
at weblogic.transaction.internal.ServerTransactionImpl.internalRollback(ServerTransactionImpl.java:397)
at weblogic.transaction.internal.ServerTransactionImpl.rollback(ServerTransactionImpl.java:375)
at weblogic.xml.query.transaction.TransactionHelper.rollback(TransactionHelper.java:102)
at weblogic.xml.query.transaction.TransactionManager.teardownOnFailure(TransactionManager.java:262)
at com.bea.ld.EJBRequestHandler.handleThrowable(EJBRequestHandler.java:810)
at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:311)
at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)
at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)
at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
*com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0025: esb: [UPDATE "ESBdev"."dbo"."Persistance"*
*SET "Value" = ?*
*WHERE (("ID" = ?) AND ("Value" = ?))]: [NULL, 1, a different value|http://forums.oracle.com/forums/]: Optimistic locking failure. Update count returned by database is 0, expected 1*
at com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException.create(RDBWrapperException.java:87)
at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:128)
at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:88)
at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:202)
at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:188)
at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLUpdateInternal.raiseUpdateFailureException(ExecuteSQLUpdateInternal.java:19)
at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLUpdateDeleteBase.executeSQL(ExecuteSQLUpdateDeleteBase.java:31)
at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.prepareAndExecuteQuery(ExecuteSQLRuntimeBase.java:170)
at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLModificationBase.prepareAndExecuteQuery(ExecuteSQLModificationBase.java:77)
at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.fetchNext(ExecuteSQLRuntimeBase.java:95)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)
at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)
at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)
at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)
at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)
at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)
at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)
at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)
at weblogic.xml.query.update.runtime.ExecuteRelational.fetchNext(ExecuteRelational.java:52)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)
at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)
at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)
at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)
at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)
at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)
at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)
at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)
at weblogic.xml.query.update.recovery.SagaInterpreter.run(SagaInterpreter.java:54)
at weblogic.xml.query.update.runtime.UVMRewritingEvaluatorImpl.run(UVMRewritingEvaluatorImpl.java:33)
at weblogic.xml.query.xdbcimpl.XQSEStatementImpl.execute(XQSEStatementImpl.java:100)
at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:731)
at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:611)
at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:466)
at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:308)
at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)
at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)
at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
One of the things I don't understand is why the SQL update seems to have the parameter values reversed and why it is using the Value column for it's wehere clause i.e
*[UPDATE "ESBdev"."dbo"."Persistance"*
*SET "Value" = ?*
*WHERE (("ID" = ?) AND ("Value" = ?))]: *[NULL, 1, a different value]
when it should really be
*[UPDATE "ESBdev"."dbo"."Persistance"*
*SET "Value" = ?*
*WHERE ("ID" = ?)]: *[a different value, 1
I hope someone has an idea as to what is going on.
Edited by: MarcP on Dec 12, 2008 12:30 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

Thanks Mike, I changed the graph the way you explained and the update works.
I still have a problem with the create function.
The XSD for the table looks like this
*<xs:schema targetNamespace="ld:Physical/Persistance2" xmlns:xs="http://www.w3.org/2001/XMLSchema">*
* <xs:element name="Persistance">*
*<xs:complexType>*
* <xs:sequence>*
* <xs:element name="ID" type="xs:int"/>*
* <xs:element name="Project" type="xs:string"/>*
* <xs:element name="Property" type="xs:string"/>*
* <xs:element name="Value" type="xs:string" minOccurs="0"/>*
* <xs:element name="TS" type="xs:hexBinary"/>*
* </xs:sequence>*
* </xs:complexType>*
* </xs:element>*
*</xs:schema>*
In the table, ID is an IDENTITY column, and TS is a timestamp column (therefore they should only be modified by the DB engine). How do I tell DSP to take these constraints into account when wuing the create function?
When I test it with the following,
*<per:Persistance2 xmlns:per="ld:Physical/Persistance2">*
* <ID>0</ID>*
*<Project>def</Project>*
*<Property>ghi</Property>*
*<Value>new string</Value>*
* <TS>0000000000000000</TS>*
*</per:Persistance2>*
it gives the follwiing error
*<Error> <ALDSP> <xxxxxxx> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1229106812568> <BEA-000000> <Test> <System error while executing the query: {ld:Physical/Persistance2}createPersistance2:1*
*weblogic.xml.query.exceptions.XQuerySagaException: {bea-err}UPD003: Update failure: mixed outcome, update error dispatched (updateid=SAGA_2d641b85a027a9ba:43f1e2cd:11e2800892f:-7fcd): com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0004: [esb]: [INSERT INTO "ESBdev"."dbo"."Persistance" ("ID", "Project", "Property", "Value", "TS")*
*VALUES (?, ?, ?, ?, ?)]: [0, def, ghi, new string, 0000000000000000]: Error executing SQL query: [BEA][SQLServer JDBC Driver][SQLServer]Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.*
* at com.bea.ld.server.update.recovery.SagaRecovery.process(SagaRecovery.java:102)*
* at com.bea.ld.server.update.recovery.DSPSagaManager.processSagaFailure(DSPSagaManager.java:219)*
* at weblogic.xml.query.update.recovery.SagaState$2.afterCompletion(SagaState.java:83)*
* at weblogic.xml.query.transaction.TransactionManager.afterCompletion(TransactionManager.java:133)*
* at weblogic.transaction.internal.ServerSCInfo.doAfterCompletion(ServerSCInfo.java:1032)*
* at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:1011)*
* at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2946)*
* at weblogic.transaction.internal.ServerTransactionImpl.afterRolledBackStateHousekeeping(ServerTransactionImpl.java:2827)*
* at weblogic.transaction.internal.ServerTransactionImpl.setRolledBack(ServerTransactionImpl.java:2803)*
* at weblogic.transaction.internal.ServerTransactionImpl.globalRetryRollback(ServerTransactionImpl.java:3043)*
* at weblogic.transaction.internal.ServerTransactionImpl.globalRollback(ServerTransactionImpl.java:2793)*
* at weblogic.transaction.internal.ServerTransactionImpl.internalRollback(ServerTransactionImpl.java:397)*
* at weblogic.transaction.internal.ServerTransactionImpl.rollback(ServerTransactionImpl.java:375)*
* at weblogic.xml.query.transaction.TransactionHelper.rollback(TransactionHelper.java:102)*
* at weblogic.xml.query.transaction.TransactionManager.teardownOnFailure(TransactionManager.java:262)*
* at com.bea.ld.EJBRequestHandler.handleThrowable(EJBRequestHandler.java:810)*
* at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:311)*
* at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)*
* at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)*
* at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)*
* at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
* at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)*
* at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)*
* at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)*
* at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)*
* at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)*
*com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0004: [esb]: [INSERT INTO "ESBdev"."dbo"."Persistance" ("ID", "Project", "Property", "Value", "TS")*
*VALUES (?, ?, ?, ?, ?)]: [0, def, ghi, new string, 0000000000000000]: Error executing SQL query: [BEA][SQLServer JDBC Driver][SQLServer]Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.*
* at com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException.create(RDBWrapperException.java:87)*
* at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:128)*
* at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:176)*
* at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:163)*
* at com.bea.dsp.wrappers.rdb.runtime.DBSession.executeUpdate(DBSession.java:151)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLInsertInternal.executeSQL(ExecuteSQLInsertInternal.java:110)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.prepareAndExecuteQuery(ExecuteSQLRuntimeBase.java:170)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLModificationBase.prepareAndExecuteQuery(ExecuteSQLModificationBase.java:77)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.fetchNext(ExecuteSQLRuntimeBase.java:95)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.runtime.ExecuteRelational.fetchNext(ExecuteRelational.java:52)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.recovery.SagaInterpreter.run(SagaInterpreter.java:54)*
* at weblogic.xml.query.update.runtime.UVMRewritingEvaluatorImpl.run(UVMRewritingEvaluatorImpl.java:33)*
* at weblogic.xml.query.xdbcimpl.XQSEStatementImpl.execute(XQSEStatementImpl.java:100)*
* at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:731)*
* at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:611)*
* at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:466)*
* at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:308)*
* at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)*
* at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)*
* at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)*
* at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
* at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)*
* at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)*
* at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)*
* at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)*
* at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)*
*java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.*
* at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)*
* at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)*
* at weblogic.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.postImplExecute(Unknown Source)*
* at weblogic.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)*
* at weblogic.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)*
* at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:125)*
* at com.bea.dsp.wrappers.rdb.runtime.DBSession.executeUpdate(DBSession.java:144)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLInsertInternal.executeSQL(ExecuteSQLInsertInternal.java:110)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.prepareAndExecuteQuery(ExecuteSQLRuntimeBase.java:170)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLModificationBase.prepareAndExecuteQuery(ExecuteSQLModificationBase.java:77)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.fetchNext(ExecuteSQLRuntimeBase.java:95)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.runtime.ExecuteRelational.fetchNext(ExecuteRelational.java:52)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.recovery.SagaInterpreter.run(SagaInterpreter.java:54)*
* at weblogic.xml.query.update.runtime.UVMRewritingEvaluatorImpl.run(UVMRewritingEvaluatorImpl.java:33)*
* at weblogic.xml.query.xdbcimpl.XQSEStatementImpl.execute(XQSEStatementImpl.java:100)*
* at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:731)*
* at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:611)*
* at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:466)*
* at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:308)*
* at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)*
* at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)*
* at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)*
* at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
* at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)*
* at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)*
* at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)*
* at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)*
* at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)*
*java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Statement(s) could not be prepared.*
* at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)*
* at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)*
* at weblogic.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)*
* at weblogic.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.postImplExecute(Unknown Source)*
* at weblogic.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)*
* at weblogic.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)*
* at weblogic.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)*
* at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:125)*
* at com.bea.dsp.wrappers.rdb.runtime.DBSession.executeUpdate(DBSession.java:144)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLInsertInternal.executeSQL(ExecuteSQLInsertInternal.java:110)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.prepareAndExecuteQuery(ExecuteSQLRuntimeBase.java:170)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLModificationBase.prepareAndExecuteQuery(ExecuteSQLModificationBase.java:77)*
* at com.bea.dsp.wrappers.rdb.runtime.ExecuteSQLRuntimeBase.fetchNext(ExecuteSQLRuntimeBase.java:95)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.runtime.ExecuteRelational.fetchNext(ExecuteRelational.java:52)*
* at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:114)*
* at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:85)*
* at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:135)*
* at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:296)*
* at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:436)*
* at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:297)*
* at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:125)*
* at weblogic.xml.query.update.recovery.SagaInterpreter$NestedFactory$1.run(SagaInterpreter.java:134)*
* at weblogic.xml.query.update.recovery.SagaInterpreter.run(SagaInterpreter.java:54)*
* at weblogic.xml.query.update.runtime.UVMRewritingEvaluatorImpl.run(UVMRewritingEvaluatorImpl.java:33)*
* at weblogic.xml.query.xdbcimpl.XQSEStatementImpl.execute(XQSEStatementImpl.java:100)*
* at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:731)*
* at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:611)*
* at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:466)*
* at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:308)*
* at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)*
* at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:354)*
* at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)*
* at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
* at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)*
* at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)*
* at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)*
* at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)*
* at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)*

Similar Messages

  • PROBLEM IN EXPORTING DATA FROM A RELATIONAL TABLE TO ANOTHER RELATIONAL TAB

    Hi,
    While trying to export data from a source table to a target table, problem occurs with loading the data in the work table(SrcSet0)[As shown in the operator]. The Work Table has been dropped and created successfully, the problem is coming with loading the data( in this work table(SrcSet0)). The error details as mentioned below. Please advise:-
    ODI-1227: Task SrcSet0 (Loading) fails on the source ORACLE connection ORACLE_SOURCE.
    Caused By: java.sql.SQLException: SQL string is not Query
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1442)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
         at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:67)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Thanks
    Anindya

    Hi actdi,
    This is my KM_IKM SQL Incremental Update.xml code:-
    and I have find it(for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++)) and high lighted it(Bold Text).
    So, please advise.
    Here is the main part of this code because the code is too long to post.It exceeds maxlength for the msg.
    So here it is:
    <Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader">
    <Field name="Enc" type="java.lang.String">null</Field>
    <Field name="EncKey" type="java.lang.String">null</Field>
    <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1695003]]></Field>
    <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[102]]></Field>
    <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field>
    <Field name="Txt" type="java.lang.String"><![CDATA[insert into <%=odiRef.getTable("L","INT_NAME","A")%>
    <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "(((INS or UPD) and !TRG) and REW)")%>,
    IND_UPDATE
    *<%for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){%>*
    <%=odiRef.getDataSet(i, "Operator")%>
    select <%=odiRef.getPop("DISTINCT_ROWS")%>
    <%=odiRef.getColList(i,"", "[EXPRESSION]", ",\n\t", "", "(((INS or UPD) and !TRG) and REW)")%>,
    <% if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { %>
    JRN_FLAG IND_UPDATE
    <%} else {%>
    'I' IND_UPDATE
    <%}%>
    from <%=odiRef.getFrom(i)%>
    where (1=1)
    <%=odiRef.getJoin(i)%>
    <%=odiRef.getFilter(i)%>
    <%=odiRef.getJrnFilter(i)%>
    <%=odiRef.getGrpBy(i)%>
    <%=odiRef.getHaving(i)%>
    <%}%>
    ]]></Field>
    </Object>
    <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt">
    <Field name="AlwaysExe" type="java.lang.String"><![CDATA[0]]></Field>

  • Problems with logical data service

    This is related to thread 837141 (Problems creating physical data service to relational table)
    I have been able to create the logical data service that uses the physical service (mentioned above).
    However when I try to create a library function to update (shown below)
    declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
    * let $changed :=*
    * for $n in $new*
    * let $old := lper:read($new/Project, $ew/Property)*
    * return*
    * fn-bea:replace-value(fn-bea:changed-element($old), "Value", $n/Value)*
    _let $return := {color:#ff0000}pper:update{color}($changed)_*
    * return fn:true()*
    WorkSpace Studio gives the following error (for the line underlined above, and the function in red)
    *{bea-err}FUNC002: Illegal use of side-effect procedure {ld:Physical/Persistance2}update with arity 1. Side-effect procedures cannot be invoked from a side-effect free context*
    Any idea why?

    functions, by definition, do not have side-effects. So calling something that had a side-effect (procedure) is not allowed.
    You need to create a library procedure.
    Your
    declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
    needs to be
    declare procedure lper:update($new as element(per:Persistance2)) as xs:boolean {*
    - mike
    Edited by: mikereiche on Dec 12, 2008 5:10 PM

  • Physical Data Service to Oracle Stored Procedure Package

    i'm calling a package with the following signature:
    PROCEDURE QUERY_ENTITY (
         P_TABLE_NAME      IN      VARCHAR2,
    P_ENTITY_ID      IN      NUMBER,
    P_USER           IN      VARCHAR2,
    P_RECORDSET      OUT      CNODB_ENTITY_PKG.C_ENTITY);
    When defining the data source what to I type the OUT parameter as? My DBA tells me that it returns a reference cursor. I've randomly chosen quite a number of things which results in the error "Relational wrapper excpetion. could not find the corresponding sql type for output parameter P_RECORDSET.
    Has anyone written a Physical DS that connects to Oracle Packages that return a refernce cursor rather than a specific data type?
    Sorry, here's the full dump of the error:
    com.bea.dsp.das.exception.DASException: weblogic.xml.query.exceptions.XQuerySagaException: {bea-err}UPD003: Update failure: mixed outcome, update error dispatched (updateid=SAGA_64f908a41cb48aeb:51ff32b4:1233d8ca55c:-7fdb): com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0000: Relational wrapper exception. could not find the corresponding sql type for output parameter P_RECORDSET
         at com.bea.dsp.das.ejb.EJBClient.invokeOperation(EJBClient.java:160)
         at com.bea.dsp.das.DataAccessServiceImpl.invokeOperation(DataAccessServiceImpl.java:171)
         at com.bea.dsp.das.DataAccessServiceImpl.invoke(DataAccessServiceImpl.java:122)
         at com.bea.dsp.ide.xquery.views.test.QueryExecutor.invokeFunctionOrProcedure(QueryExecutor.java:113)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.getFunctionExecutionResult(XQueryTestView.java:1041)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.executeFunction(XQueryTestView.java:1176)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedImpl(XQueryTestView.java:1866)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.access$300(XQueryTestView.java:174)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent$3.run(XQueryTestView.java:1594)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedBusy(XQueryTestView.java:1597)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelected(XQueryTestView.java:1560)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3687)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3298)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.eclipse_main(Main.java:1148)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:33)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: weblogic.xml.query.exceptions.XQuerySagaException: {bea-err}UPD003: Update failure: mixed outcome, update error dispatched (updateid=SAGA_64f908a41cb48aeb:51ff32b4:1233d8ca55c:-7fdb): com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0000: Relational wrapper exception. could not find the corresponding sql type for output parameter P_RECORDSET
         at com.bea.ld.server.update.recovery.SagaRecovery.process(SagaRecovery.java:104)
         at com.bea.ld.server.update.recovery.DSPSagaManager.processSagaFailure(DSPSagaManager.java:222)
         at weblogic.xml.query.update.recovery.SagaState$2.afterCompletion(SagaState.java:87)
         at weblogic.xml.query.transaction.TransactionManager.afterCompletion(TransactionManager.java:134)
         at weblogic.transaction.internal.ServerSCInfo.doAfterCompletion(ServerSCInfo.java:1032)
         at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:1011)
         at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2990)
         at weblogic.transaction.internal.ServerTransactionImpl.afterRolledBackStateHousekeeping(ServerTransactionImpl.java:2871)
         at weblogic.transaction.internal.ServerTransactionImpl.setRolledBack(ServerTransactionImpl.java:2847)
         at weblogic.transaction.internal.ServerTransactionImpl.globalRetryRollback(ServerTransactionImpl.java:3087)
         at weblogic.transaction.internal.ServerTransactionImpl.globalRollback(ServerTransactionImpl.java:2837)
         at weblogic.transaction.internal.ServerTransactionImpl.internalRollback(ServerTransactionImpl.java:400)
         at weblogic.transaction.internal.ServerTransactionImpl.rollback(ServerTransactionImpl.java:378)
         at weblogic.xml.query.transaction.TransactionHelper.rollback(TransactionHelper.java:102)
         at weblogic.xml.query.transaction.TransactionManager.teardownOnFailure(TransactionManager.java:264)
         at com.bea.ld.EJBRequestHandler.handleThrowable(EJBRequestHandler.java:829)
         at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:326)
         at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)
         at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:426)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException: {bea-err}RDBW0000: Relational wrapper exception. could not find the corresponding sql type for output parameter P_RECORDSET
         at com.bea.dsp.wrappers.rdb.exceptions.RDBWrapperException.create(RDBWrapperException.java:89)
         at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:127)
         at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:87)
         at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:151)
         at weblogic.xml.query.exceptions.XQueryException.create(XQueryException.java:139)
         at com.bea.dsp.wrappers.rdb.runtime.ProcedureCallableWrapper.prepareQuery(ProcedureCallableWrapper.java:272)
         at com.bea.dsp.wrappers.rdb.runtime.ProcedureIterator.getNextToken(ProcedureIterator.java:175)
         at com.bea.dsp.wrappers.rdb.runtime.ProcedureIterator.fetchNext(ProcedureIterator.java:125)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
         at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:88)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
         at weblogic.xml.query.runtime.util.TokenBuffer.addAll(TokenBuffer.java:368)
         at weblogic.xml.query.update.runtime.Interpreter$Frame.setValueUsingTemporary(Interpreter.java:429)
         at weblogic.xml.query.update.runtime.Interpreter.processMSet(Interpreter.java:271)
         at weblogic.xml.query.update.runtime.Interpreter.run(Interpreter.java:108)
         at weblogic.xml.query.update.rewriting.UVMUtils$3.run(UVMUtils.java:130)
         at weblogic.xml.query.update.recovery.SagaInterpreter.run(SagaInterpreter.java:41)
         at weblogic.xml.query.update.runtime.UVMRewritingEvaluatorImpl.run(UVMRewritingEvaluatorImpl.java:32)
         at weblogic.xml.query.xdbcimpl.XQSEStatementImpl.execute(XQSEStatementImpl.java:103)
         at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:752)
         at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:624)
         at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:478)
         at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:323)
         ... 12 more
    Edited by: user10592709 on Aug 21, 2009 11:41 AM

    First (and somewhat unrelated) - how come the "update" errors? Aren't you just trying to read it? You should probably be using "function" instead of "procedure" in your dataservice. You should only be using procedure (XQSE) if you are updating. Not that this is related to your problem - it's just something you should know.
    Now for the REF CURSOR. You need to figure out what columns are being returned, and then define a schema to match, then use that schema as the definition. If you are lucky, the REF CURSOR will actually be a cursor from selecting on a table. If that is the case, you can create a new physical data service based on that table - which will result in a schema being created with the same name as the table. Then create a new physical data service based on the stored procudure, the type of that parameter should appear as "Unknown". Edit the parameter types and specify the type in the schema that was generated for the table.

  • Result set not visible in Test View for Physical data service

    I have configured a MS SQL server stored procedure as a data service. It returns a resultset. I am calling this data service (physical) from a logical data service. I am able to see the returned result set in the test view (workshop) of the logical data service but not in the test view of the physical data service? Is this a problem within the workshop?
    Any help is appreciated.

    Never heard of this before. Can you turn on Auditing of XQuery parameters and results and then show me the audit information so I can see you are calling both the logical and the physical data service with the same arguments?
    It would also help to see both the logical and physical ds and their schemas. Just zip and post the whole dsp project if possible.

  • Burrito Trying to create a Data Service

    Hi All
    Im testing out the new Burrito release of Flash Builder but when I try to create a data service using the wizard I get the error.
    The CFC file is invalid. Possible causes can be found by accessing: http://COLDFUSION01/CFIDE/componentutils/cfcexplorer.cfc?method=getCFCMetaData&name=test&p ath=%2Fburritotestcf%2Fcfcs%2Ftest.cfc
    I have tried going to this link and get the following error
    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or istemporarily unavailable
    I am trying to connect to our existing Coldfusion 9 infrastructure.
    Does anyone have any ideas.

    Im still having this issue whilst trying to follow the mobile test drive tutorial.

  • Retrieve xml data from a relational table(oracle) with datatype as xmltyp

    Hello Avijit, any resolution for this issue?

    hi .... I am trying to retrieve xml data from a relational table with datatype as xmltyp. The SQ is retrieving rows but the xml parser give transformation error . The transformation retrieve xml data from a relational table(oracle) with datatype as xmltyp returned a row error status on receiving an input row on group retrieve xml data from a relational table(oracle) with datatype as xmltyp.  ERROR : An XML document was truncated and thus not processed. Input row from SQ_XMLTYPE_TEST: Rowdata: ( RowType=0(insert) Src Rowid=5 Targ Rowid=5 DOCUMENT (DataInput:Char.64000:): "<?xml version='1.0' encoding='UTF-8'?><main><DATA_RECORD> <OFFER_ID>434345</OFFER_ID> <ADDR>sec -2 salt lake</ADDR> <CITY>kolkata</CITY> (DISPLAY TRUNCATED)(TRUNCATED)" )  thanks in advance Avijit

  • Data Services ORA-00942 table does not exist. Source/Target same DB

    Error: u201CORA-00942: table or view does not existu201D
    Source & Target Datastores in same Oracle DB but different User/Schemas.
    I set up the Data Services Tutorial Source & Target Data bases in ONE Oracle DB using a separate User/Schema for the ODS source DB & TARGET Source DB.
    I then created
    - Source datastore for the ODS DB User/schema
    - Target datastore for the TARGET DB user/Schema.
    I have no problem reading flat files & writing to TARGET datastore tables.
    However, when I read the ODS datasttore source table CUSTOMER & write to the TARGET datastore target table CUST_DIM I get an error: ORA-00942: table or view does not exist.
    I can query the table contents from the Data Flow & see the data in the source data & see the empty target table.
    So the tables exists & there is no security issues from the DS Designer.
    I did find note 1189910 - ERROR: Error Description: An error occurred while creating the result data - Data Insight XI
    Cause
    Multiple engines are being run against the same metadata repository.
    Resolution
    Verify that only one engine is being run against a single metadata repository.
    Has anyone seen this error?
    Or has anyone created a 2 data stores on the SAME DB, but to different User/Schemas?
    Thanks
    Jay Roble

    since you are accessing 2 schema which are on same oracle database, DS engine is trying to optimize and generating an INSERT INTO ... SELECT clause. Since its the same DB, DS Engine is doing a implicit linking of the datastores
    you can see the SQL generated from the Designer, drill down into DF, from the Menu select Validation ->Display Optimised SQL
    to disable this implicit linking, right click on the Dataflow, select properties
    in the properties window, unselect the the option "use database links"

  • Insert problems with Php Data Services

    Hi All,
    I am using Flex Data wizards to create a simple CRUD application and i am having problems adding data. It works the first time i start my application but subsequent calls to the insert fail.
    I am using FB2 Beta with MAMP. The php classes are being generated using the data wizard. i have tried commenting out mysqli_close but still it doesn't work.
    public function createDive_events($item) {
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename ( divedate, divesite, divecost, description, totalDays) VALUES ( ?, ?, ?, ?, ?)");
    $this->throwExceptionOnError();
    mysqli_bind_param($stmt, 'ssdsi', $item->divedate, $item->divesite, $item->divecost, $item->description, $item->totalDays);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $autoid = mysqli_stmt_insert_id($stmt);
    mysqli_stmt_free_result($stmt);
    //mysqli_close($this->connection);
    return $autoid;
    Any ideas, what i am doing wrong. I have tried using the update and it works only once as well, it seems that the connection to the function is lost after the first call.
    thank you,
    Nayan

    Ok, this is what I got.
    create a mysql table (`people`) with columns id (auto increment), first_name, last_name, age
    in the data/service panel connect to a php service, generate a php service from the database and the people table
    generate a form from the createPeople service call
    observe that in source view we have something like this: <fx:Script>
      <![CDATA[
           protected function button_clickHandler(event:MouseEvent):void {
              createPeopleResult.token = peopleService.createPeople(people);
      ]]>
    </fx:Script>
    <fx:Declarations>
      <valueObjects:People id="people"
                           people_id="{parseInt(people_idTextInput.text)}"
                           age="{parseInt(ageTextInput.text)}"/>
      <peopleservice:PeopleService id="peopleService"/>
      <s:CallResponder id="createPeopleResult"/>
    </fx:Declarations>
    If you now try to execute the code, you will find that you can only insert one person, where each successive addition silently fails.
    There is nothing really wrong with the php code (well actually since it's auto incrementing on id you should pull all id reference out of the insert statements...) rather there is a problem with the flex people object.
    If you make the following changes the code will work
    protected function button_clickHandler(event:MouseEvent):void {
      var myPerson:People = new People();
      myPerson.first_name = people.first_name;
      myPerson.last_name = people.last_name;
      myPerson.age = people.age;
      createPeopleResult.token = peopleService.createPeople(myPerson);
    - e

  • Retrieving data from a relational table and CLOB as a whole XML file

    I created the table lob_example and I have managed to insert XML document into it using XML SQL Utility. In this document I put contents of <DESCRIPTION> tag into CDATA section.
    LOB_EXAMPLE
    Name Null? Type
    ID NOT NULL NUMBER
    DESCRIPTION CLOB
    NAME VARCHAR2(40)
    But I could not retrieve this data properly. I can think of only one solution - to parse and build the whole XMLDocument. I found the suggestion of another solution to use Oracle8i views to do that in http://technet.oracle.com/tech/xml/infoocs/otnwp/about_oracle_xml_products.htm, but this text is not clear enough for me.
    I would like to quote the fragment from document mentioned above, which is ambiguous for me:
    "Combining XML Documents and Data Using Views
    Finally, if you have a combination of structured and unstructured XML data, but still want to view and operate on it as a whole, you can use Oracle8i views. Views enable you to construct an object on the "fly" by combining XML data stored in a variety of ways. So, you can store structured data (such as employee data, customer data, and so on) in one location within object -relational tables, and store related unstructured data (such as descriptions and comments) within a CLOB. When you need to retrieve the data as a whole, you simply construct the structure from the various pieces of data with the use of type constructors in the view's select statement. The XML SQL Utility then enables retrieving the constructed data from the view as a single XML document."
    The main question is - how to use type constructors in the view's select statement?

    Hello
    Sorry for asking the same question again, but any responses would be greatly appreciated.
    How to use type constructors in the view's select statement?
    I could not find any answers for this question on Technet. Maybe the other approaches are more efficient to combine the part of data from CLOB with data from other column types?
    Thank you

  • Problem creating physical Standby database with RMAN

    Hi All
    I am trying to learn oracle dataguard and as part of the process learning creating standby database.
    Platform : Sun-Fire-V250 Sparc, Solaris 10
    Database Version - Oracle 11R2
    I am creating standby database on same server, so directory structure is different.
    Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
    1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
    2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
    On Primary Database:
    *.FAL_CLIENT='orcl11020' #Primary database unique name
    *.FAL_SERVER='stdby_11' #Standby database unique name
    db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
    log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
    standby_file_management=auto
    *.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
    *.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
    *.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Copied same pfile for standby database and modified following-
    *.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
    *.db_name='orcl1102'
    *.db_unique_name='stdby_11'
    *.FAL_CLIENT='stdby_11'
    *.FAL_SERVER='orcl11020'
    db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
    log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
    standby_file_management=auto
    *.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
    *.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    db_unique_name=orcl11020'
    3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
    3. Created password file with same credential as primary database.
    4.Up-to-date RMAN backup of primary database available.
    5.Create standby controlfile with rman
    While primary database s open (I tried with primary database in mount mode as well)-
    $>rman catalog rman/paswd@rman target /
    RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
    6. Open a new terminal and startup standby database in nomount mode using parameter file created -
    $>ORACLE_SID=stdby_11
    $>export ORACLE_SID
    $>sqlplus / as sysdba
    SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
    SQL>quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
    RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
    Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    So on both primary and standby I confirmed
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11
    Can someone guide me where thisngs are going wrong here please.

    Not sure if I understood it clearly.
    SELECT * FROM V$ARCHIVE_GAP;
    returns no rows so there is no gap.
    But could you please explain me the result of the previous query. To catch up again, on standby when I check
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    SEQUENCE# APPLIED
    75 NO
    74 NO
    76 NO
    77 NO
    I understand that though archive files have been copied across but they are not applied yet.
    On primary when I give your query -
    SELECT name as STANDBY,SEQUENCE#,applied, completion_time
    2 FROM v$archived_log
    3 where dest_id=2
    4 and sequence# BETWEEN 74 and 80;
    I get -
    STANDBY SEQUENCE# APPLIED COMPLETIO
    stdby_11 74 YES 28-JUN-11
    stdby_11 75 YES 28-JUN-11
    stdby_11 76 YES 29-JUN-11
    stdby_11 77 YES 29-JUN-11
    stdby_11 78 YES 29-JUN-11
    stdby_11 79 YES 29-JUN-11
    stdby_11 80 YES 29-JUN-11
    stdby_11 75 NO 07-JUL-11
    stdby_11 74 NO 07-JUL-11
    stdby_11 76 NO 07-JUL-11
    stdby_11 77 NO 07-JUL-11
    stdby_11 78 NO 07-JUL-11
    I have intentionally given
    sequence# BETWEEN 74 and 80
    because I know in the current incarnaion of the database, max sequence is 78.
    So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
    Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
    Then my final question is, when will these archives be applied to standby database?
    I am sorry to ask too many questions but I am just trying to understand how it all works.
    Thanks for your help again

  • Problem to use data services on different telco device

    Dear Readers,
    I've bought a used BlackBerry Curve 8900 of telco Starhub Limited (Singapore).
    I found the trackball faulty & managed to get a replacement set from Starhub as it is
    still under warranty.
    The new device carry the following PIN & IMEI.
    PIN : [removed personal information]
    IMEI : [removed personal information]
    I brought it back to my own country (Malaysia) & use it with my current Telco, Maxis.
    I'm able to make/receive calls & send/receive sms.
    Then I went along to register this device to use my telco (Maxis) BIS service.
    I managed to register this device to my telco BIS but however I wasn't able to use
    any data services at all ie. emails, browsers, applications & even wifi.
    My device only shows upper case GSM network on its screen & no gprs or edge.
    Throubleshoot cames & I found there are entries in the device host routing table.
    Whenever I try to register the entries this error will appear.
    "Registration message queued. It will be sent once data coverage is available"  
    I called my Telco many times on this problem & hasn't got a clue what is going on
    Their BlackBerry technical assitance also spoke the same tone. 
    For trial & error I went to purchase a Starhub sim & activate this device with Starhub prepaid
    BlackBerry service & to my surprised the data services came alive!!
    The device is showing upper case GPRS on its screen & I'm able to use all the data services.
    Thinking that this device PIN might be hooked to Starhub wireless network I called them up to release it.
    I got a big shock when they told me that this device PIN wasn't hooked to their BIS service.
    Not giving up I went back & try to register this device with my Telco (Maxis) BIS service again & this error came.
    "The information you have provided is not valid for this service provider"
    I got so upset & has been losing sleep as both telco are unable to tell me what is the problem.
    I'm paying for a unlimited BIS plan with my Telco (Maxis) & unable to use any data services.
    Went off to spend my Christmas losing sleep!!!
    Can anyone out there tell me what is going on??
    I would also be very grateful is someone is knowledgeable enough to guide me how to hook
    this device with my Telco (Maxis) BIS & use all the data functions.
    Lastly not forgetting I wished all readers a belated Christmas.

    Dear Readers,
    I've got my BlackBerry alive & kicking!
    For the benificial of all, I will post what I did here.
    First of all I called up Starhub to cancel off my prepaid BlackBerry
    service with them.
    From the information given by Starhub I figured out that my device
    is hooked on Maxis BIS but working on Starhub data network.
    I've called up Maxis & ask them to release my PIN then reset my BIS account.
    They told me to do a hard reset (battery & sim off) for 10 minutes.
    When I turned it on after 10 minutes, to my surprised upper case GPRS appeared.
    From my own analysis these few days the only clue I for the cause of this is
    probably I register my BIS too early even before the data service is activated.
    Other that this I can't think of any possibilty.
    Welcome all to share their view here.

  • Create a data source and database tables using WSAD

    Hi, guys:
    the following is from a tutorial:
    http://www-106.ibm.com/developerworks/websphere/techjournal/0306_wosnick/wosnick.html
    "To create the data source and Cloudscape database tables automatically, right click on the HelloWorldServer in the Servers view, and select the Create tables and data sources menu item. A dialog will then display showing that the data source and database tables were created successfully (Figure 5)."
    I am using WSAD 5.0 trial version. I cannot find Create tables and data sources menu item if I right click on the HelloWorldServer in the Servers view. I am wondering if this is because trial version does not have this feature?
    regards

    This question is a little off topic but you may get a reply. Please note this forum is about Sun's J2EE SDK and its related technologies. You may have better luck posting your question to an IBM specific resource.

  • Problem Creating a HTTP Service in SOAMANAGER

    Hi all,
    I am having difficulty in setting up a HTTP Service in SOAMANAGER.
    I have generated the Enterprise Service - Service Definition Succesfully in SAP from a RFC Enabled Function Group( this is working fine).
    I then go into SOAMANAGER -> Single Service Administration -> Select the Service -> Select the Configurations Tab -> Create Service
    The problem I have is that when this comes up under the
    Provider Security Tab -> Transport Guarantee -> Communication Security
    I do not have a radiobutton for "None" (this is what I want to select to create a HTTP service.)
    I have the options
    - SSL over HTTP (Transport Channel Security)
    - Asymmetric Message/Signature / Encryption
    - Symmetric Message/Signature Encryption
    Secure Conversation
    If you see William Li's blog /people/william.li/blog/2010/02/15/how-to-avoid-authentication-when-accessing-ws-provider-service you item 3.6 shows how the screen is supposed to look (with the additional option of "None" as the first radiobutton).
    My current workaround is to define the service and then go into SICF, select the service and change the Security Requirement from SSL to Standard on the Logon Data Tab. Although this works it is not the ideal solution.
    I'm wondering if there is something we are missing in our soap run time, perhaps a configuration setting we need to set in srt_admin. (I believe this option was there before we did a service pack upgrade)
    Has anyone experienced this before?

    Hi John,
    I've experimented something like that before. I think solution was:
    - Search the webservice in SE80, Repository Information System -> Enterprese Services
    - Enter the service definition
    - Go to 'Configuration' tab
    - Click on 'Transport Security'/'Authentication'
    - In profile setting, switch it for 'Low' or 'None'
    I believe this will turn available the option you're looking for.
    Kind regards,
    Garcia

  • Delete user and all his related data form the relation table

    HI All,
    I have user and for the user i have 3 more tables with additional fields that relate to the user
    the the user is a key on the 3 tables and relate with foreign key .
    in case i want to delete the user and i want that all the user data from all the related table will be deleted how can i do that ?
    Regards
    Joy

    HI,
    The user is in Z DB tables so i cant delete it with this bapi,
    The problem is when i have 4 table and i want to delete the user from them like that :
      DELETE FROM: (sv_user_table_name) WHERE userid = iv_user_id,
                   (sv_add_fld_table_name) WHERE userid = iv_user_id,
                   (sv_att_table_name) WHERE userid = iv_user_id,
                   (sv_app_attributes_table_name) WHERE userid = iv_user_id.
    IF sy-subrc <> 0.
        RAISE EXCEPTION TYPE .....
    if the user are exist in the first and the second table and not in the third and four
    i get the sy-subrc = 4 despite the user has deleted from the first and seconed tables
    there is nice way to overcome this issue ?
    Regards
    Joy
    Edited by: Joy Stpr on Aug 3, 2009 8:57 AM

Maybe you are looking for

  • Need assistance in Upgrade_Migration

    Hi, My database is on AIX_6_64 bit platform with oracle version : 9.2.0.5 I want to upgrade it to 11.2.0.1 Here is a details... I have to migrate this database to other server where already 2 database are running with 11.2.0.1 with ASM storage, Howev

  • I want to be able to open my favorite bookmarks without having to open firefox first

    When I had IE 9 I could send my favorites to a "tab" in the lower right hand corner called Links and I could open any one of my favorites without opening IE first. When I want to open a favorite bookmark from Firefox, I have to open Firefox first. Is

  • Flash works in Flash editor but not when puiblished

    Hi I have got my flash working fine in the editor but when I publish it, neither opening it in IE from the hard drive, nor from the internet works. The animation works fine, but there should be images loaded onto the animated squares and there's not.

  • Games don't work

    i recently purchased star wars battlefront, and it worked fine on tiger...but once i upgraded to leopard, it didn't work. star wars battlefront clearly installed, but whenever i click on the icon, it bounces, the name shows up on the top bar like any

  • SAP  for  slaughterhouses

    Hi all , i need information      about any implementation of sap in  slaughterhouses , any relevant information i will be apreciatted. thanks.