Issue with Database Commit
Hello All,
I have two include in my user exit of the sales order.
In one include I am doing some validation on the Order quantity of the sales order depending upon the order quantity in one of my Z table. If every validation is OK then I am exporting this order quantity to memory ID.
In the second include I am importing this Order Quantity and updating this Quantity in my database in my same Z table.
If I process one order at a time then everything is working fine but when I try to create two sales order at the same time then only second order is getting validated and order quantity is getting updated whereas for the first order no validation is performed and also order quantity is not getting updated in the Z table.
I really do not know is this issue related to database commit or something else.
Kindly help.
Regards
Sachin yadav
Sachin,
I guess i am getting to understand your requirement a little bit,
In validation I am modify the records in the Ztable as well I mean to say for each order created I am updating the Quantity in my Z table.
So you are just updating the quantity fields in the Z table, and this doesn't have any affect on the actual order quantity what soever, is that right or is the order quantity changed or modified based on the entry in the Z table?
So for the next order the validation should be done depending upon the new order quantity not the old order quantity.
Now this is a little tricky, now by next order do you mean the next order with respect to the number range or the next order in general?
For ex: Orders 1234, 1235, 1236 in order, or let us say there are 10 people around the world creating order simultaneously depending on the sequence in which their orders are saved.
I mean to say for the first order the validation should be done depending upon the old Qty and for the second order validation should be done by new order Qty.
When I am saving the two order at same time validation on both the order is done by old qyt bcoz new oder Qty from the first order is not yet upadated in the database when second order try to fetch the data from the Z table as i am saving both the order at same time.
This is what will happen most probably, even though you use the lock concept, let me try and explain...once you save the order in the user exit you are locking the object with enqueue and dequeue...something like below.
Order 1
userexit_save_doc.
enqueue ztable
select from Z table
validate based on the entries from z table
update/modify the z table with udpated values
dequeue ztable
end of userexit.
Now by the above code it doesn't mean that your changes are available in the Z table immediately, the table will actually be updated by the update modules along with other standard tables. Now in the mean time if an other order that hits userexit_save_doc before the update module of the previous order is complete it will still be looking at the old values.
Now in order to overcome the above sitauation you might need to add a COMMIT WORK AND WAIT in the userexit. But this will compromise the data integrity of the order and IS NOT SUGGESTED.
So you see, by locking the table you still haven't achieved your results.
Now, you need to confirm if the entries in the Z table are used only for validation and updating of data in the Z table or does it have any kind of affect on the Order quantity or any other Order specific values in general.
If it is only to track the quantity in the Z Table, and there is no affect on the order data in general, then i suggest that you create a Z program and get all the orders that have been created/changed in a given period and then update the Z Table quantity accordingly, you can have this scheduled as a background job in the non business hours.
Let me know if i was completely off track in getting your requirement
Regards,
Chen
Similar Messages
-
Dear All,
I have been working with an assignment and facing a strange issue.
I have used the 'BAPI_SALESORDER_CHANGE' to modify sales order and then I call 'BAPI_TRANSACTION_COMMIT' with wait = X. So, this bapi modifies the sales order schedule lines and also in turn updates the info structure linked to it (In our case, say it is S800)
Immediately after this I have a select statement on S800 to fetch the records.
On debug, if I break at select statement, I get correct records from S800 but If i break one step after select it gives me different records.
I think there is some delay in updation of infostructure, hence, If i use wait statement before select for 1 sec, it works fine, but cause performance issues.
for over 15000 order items, it will wait for around 8 hours, hence, i would like to know is there any way I can avoid wait and also read the infostructure for correct records.
<< Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
Edited by: Rob Burbank on Feb 24, 2011 9:45 PMHi Chandanrs,
with COMMIT WORK (or BAPI_TRANSACTION_COMMIT) with WAIT addition, processing is continued after all high-priority ("VB1") update function modules are executed in the order of their registration and in a shared database LUW.
That means that the info structures are probably updated in low-priority ("VB2") update.
I never faced this situation but I think that the info structure should still be locked. Try to find the corresponding lock object, in a (test) run, locks may be visible shortly in SM12 lock overview.
If possible, after commit work, try to call the enqueue function with the same arguments as it is done within the BAPI processing. You should get a foreign lock error until the end of the second level update process.
while lv_locked is initial.
call function 'ENQUEUE...
IF sy-subrc = 0.
lv_locked = 'X'.
endif.
endwhile.
call function 'DEQUEUE...
clear lv_locked.
This lets your program wait until the info structure update is complete. Sorry I do not really know which lock object is used here. Anyway, I still do not know why you have to read the S900 directly after update.
You may also process all orders to the to set the order quantity to delivered qty, COMMIT every 1000 or so orders, put the original quantity to internal table. Then do the same for restoring.
BAPI processes run a great deal faster if you do not COMMIT after every single document. But you can't take too many because than you risk a lock table overflow.
Hope it is some help anyway.
Regards,
Clemens -
Issue with parsing comma separated file
Hi,
We are having an issue while parsing a comma separated file with "eol" as delimiter for last field. For last line in file we get either "eof" or "eol" as delimiter for last field. Is there any way we can handle both these scenarios using singe file adater? Example as below
File1:
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
File2:
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eol
a,b,c,d,e,f,g eof
ThanksWrite your own tokenizer. I think StringTokenizer ignores those values if they're empty since there's nothing to tokenize it into. It's a pretty simple class, I say just write your own.
-
Performance issue with database server
Hello,
We have installed ECC 6.0 on HP UX 11.23 OS with Oracle as database.
We have cluster environment in our production severs.
One server as DB-CI installed and other as Dialogue Instance installed.
After installation, the dialogue instance (Application server))works fine but if we login into DB server and execute any t-code It takes too much time or just stuck.
and after that if I go to application and execute that t-code it works fine and after that if I go to database and execute that t-code now even in DB it works fine.
Kindly guide me.
Thanks,
Chandresh Pranami.Hi Chandresh,
Check below things for your Database server.
SM50 - Workprocess status busy or wait
ST04 - Data buffer hit ratio
SM37 - Any background job running there.
Normally even if you are login through a diffrent app server the database side execution will happen in db server only.Application server will do the execution but the data read and to be updated will happen in db server only.When the sql request will go to db server may select update..types of sql then it willalways will be processed by db server.
So there will be lot of load already thereIg you execute your work here it will take more time because more load for the application will be there.
Regards
Ashok -
Issue with Database table adapter
Hi,
Iam working on OIM 9.1.0.1
I login as an end user & self request the DB table which is configured.
User can assign & the xelsysadm approves ..
The approval task is completed as seen in the End User page. In the Task Assignment History -->Task status is Pending
Can anyone help me out on this issue.
Error seen on console.
ERROR,19 Feb 2011 16:00:01,421,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: tcUse
rOperationsBean/updateUserData encounter some problems: maoErrors:An error occur
red while retrieving process information null
ERROR,19 Feb 2011 16:00:01,437,[XELLERATE.SCHEDULER.TASK],Class/Method: tcTskUsr
Provision/checkPolicyUpdateFlags encounter some problems: An error occurred whil
e retrieving process information null
Thor.API.Exceptions.tcAPIException: An error occurred while retrieving process i
nformation null
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUserData(Unk
nown Source)
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUser(Unknown
Source)
at com.thortech.xl.ejb.beans.tcUserOperationsSession.updateUser(Unknown
Source)
at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.updateUser(t
cUserOperations_voj9p2_EOImpl.java:4747)
at Thor.API.Operations.tcUserOperationsClient.updateUser(Unknown Source)
at sun.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
rce)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy51.updateUser(Unknown Source)
at com.thortech.xl.schedule.tasks.tcTskUsrProvision.checkPolicyUpdateFla
gs(Unknown Source)
at com.thortech.xl.schedule.tasks.tcTskUsrProvision.execute(Unknown Sour
ce)
at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionActi
on.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
rce)
at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown S
ource)
at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:477)
Running GENERICADAPTER
Target Class = com.thortech.xl.gc.runtime.GCAdapterLibraryIt's a new error now..
The Create User task is Rejected with the below error in console.
Running GENERICADAPTER
Target Class = com.thortech.xl.gc.runtime.GCAdapterLibrary
ERROR,21 Feb 2011 17:45:42,171,[XELLERATE.APIS],
java.lang.NullPointerException
at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getModelFromConnectorD
efinition(Unknown Source)
at com.thortech.xl.ejb.beansimpl.GCOperationsBean.lookup(Unknown Source)
at com.thortech.xl.ejb.beans.GCOperationsSession.lookup(Unknown Source)
at com.thortech.xl.ejb.beans.GCOperations_do1ndy_EOImpl.lookup(GCOperati
ons_do1ndy_EOImpl.java:576)
at Thor.API.Operations.GCOperationsClient.lookup(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
rce)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy79.lookup(Unknown Source)
at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unkn
own Source)
at sun.reflect.GeneratedMethodAccessor373.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpMY_NEWTESTUSERS_GTC
.GENERICADAPTER(adpMY_NEWTESTUSERS_GTC.java:125)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpMY_NEWTESTUSERS_GTC
.implementation(adpMY_NEWTESTUSERS_GTC.java:70)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Sour
ce)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(Unknown
Source)
at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(Unkno
wn Source)
at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(
Unknown Source)
at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(Unknown Sourc
e)
at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.autoDOBSave(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Sour
ce)
at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForUser(Unkn
own Source)
at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.checkApproved(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.approve(Unknown Source)
at com.thortech.xl.dataobj.tcRequestObject.handleApprovalLaunch(Unknown
Source)
at com.thortech.xl.dataobj.tcREQ.launchObjectApprovals(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.checkRequestReceived(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.schedule.jms.requestapproval.InitRequestApproval.exec
ute(Unknown Source)
at com.thortech.xl.schedule.jms.requestapproval.InitRequestApproval.exec
ute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.proces
sMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageHandlerMDB.onMessa
ge(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:46
6)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDL
istener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:
327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:505
8)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
gWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
ERROR,21 Feb 2011 17:45:42,250,[XELLERATE.APIS],An exception occurred while crea
ting the GenericConenctor Model from the Connector Definition file
ERROR,21 Feb 2011 17:45:42,250,[XELLERATE.APIS],An exception occurred while gene
rating Generic Connector model from the connector definition xml of the connecto
r 'MY_NEWTESTUSERS'
com.thortech.xl.gc.exception.ConnectorDefinitionOperationsException: An exceptio
n occurred while creating the GenericConenctor Model from the Connector Definiti
on file
at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getModelFromConnectorD
efinition(Unknown Source)
at com.thortech.xl.ejb.beansimpl.GCOperationsBean.lookup(Unknown Source)
at com.thortech.xl.ejb.beans.GCOperationsSession.lookup(Unknown Source)
at com.thortech.xl.ejb.beans.GCOperations_do1ndy_EOImpl.lookup(GCOperati
ons_do1ndy_EOImpl.java:576)
at Thor.API.Operations.GCOperationsClient.lookup(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
rce)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy79.lookup(Unknown Source)
at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unkn
own Source)
at sun.reflect.GeneratedMethodAccessor373.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpMY_NEWTESTUSERS_GTC
.GENERICADAPTER(adpMY_NEWTESTUSERS_GTC.java:125)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpMY_NEWTESTUSERS_GTC
.implementation(adpMY_NEWTESTUSERS_GTC.java:70)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Sour
ce)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(Unknown
Source)
at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(Unkno
wn Source)
at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(
Unknown Source)
at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(Unknown Sourc
e)
at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.autoDOBSave(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Sour
ce)
at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForUser(Unkn
own Source)
at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.checkApproved(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOBI.approve(Unknown Source)
at com.thortech.xl.dataobj.tcRequestObject.handleApprovalLaunch(Unknown
Source)
at com.thortech.xl.dataobj.tcREQ.launchObjectApprovals(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.checkRequestReceived(Unknown Source)
at com.thortech.xl.dataobj.tcREQ.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.schedule.jms.requestapproval.InitRequestApproval.exec
ute(Unknown Source)
at com.thortech.xl.schedule.jms.requestapproval.InitRequestApproval.exec
ute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.proces
sMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageHandlerMDB.onMessa
ge(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:46
6)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDL
istener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:
327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:505
8)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
gWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NullPointerException
... 76 more
ERROR,21 Feb 2011 17:45:42,312,[XELLERATE.GC.FRAMEWORKPROVISIONING],An exception
occurred while generating Generic Connector model from the connector definition
xml of the connector 'MY_NEWTESTUSERS' -
Rebate related issue with database table VKDFS & VBAK
Hi everybody,
I am facing the problem with the tables VKDFS and VBAK.
In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
select * from vkdfs into table ivkdfs
where fktyp in r_fktyp
and vkorg in s_vkorg
and fkdat in s_fkdat
and kunnr in s_kunnr
and fkart in s_fkart
and vbeln in s_vbeln
and faksk in s_faksk
and vtweg in s_vtweg
and spart in s_spart
and netwr in s_netwr
and waerk in s_waerk.
After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
SVBAK[] = IVKDFS[]
select * from vbak into table ivbak
for all entries in svbak
where vbeln = svbak-vbeln
and knuma in s_knuma
and auart in s_auart
and submi in s_submi
and (vbak_wtab).
So, its filtering from VBAK.
But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
So, my program fails to display the report regarding to that agreement number.
As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
VKDFS-SD index: billing initiator table.
I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
Please let me know the solution if you people have any .
Its an urgent and sev 1 tickets
eagerly waiting for solution or some information.
Thanks&Regards.
J.Hi everybody,
I am facing the problem with the tables VKDFS and VBAK.
In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
select * from vkdfs into table ivkdfs
where fktyp in r_fktyp
and vkorg in s_vkorg
and fkdat in s_fkdat
and kunnr in s_kunnr
and fkart in s_fkart
and vbeln in s_vbeln
and faksk in s_faksk
and vtweg in s_vtweg
and spart in s_spart
and netwr in s_netwr
and waerk in s_waerk.
After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
SVBAK[] = IVKDFS[]
select * from vbak into table ivbak
for all entries in svbak
where vbeln = svbak-vbeln
and knuma in s_knuma
and auart in s_auart
and submi in s_submi
and (vbak_wtab).
So, its filtering from VBAK.
But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
So, my program fails to display the report regarding to that agreement number.
As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
VKDFS-SD index: billing initiator table.
I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
Please let me know the solution if you people have any .
Its an urgent and sev 1 tickets
eagerly waiting for solution or some information.
Thanks&Regards.
J. -
Issue with database characterset
Hi All,
Database Version:11gR2
Developer complained that they are trying to insert Japanese characters and they are able to insert but while displaying its not actually dispalying Japanese characters. So i checked the database characterset.
SELECT * FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET';
PARAMETER VALUE
NLS_CHARACTERSET WE8ISO8859P15For 'Japanese' i know that the characterset required is AL32UTF8. The above one supports French i believe.
So here are my questions.
1. Is there anyway i can insert and view Japanese characters properly in the above characterset database?
2. Is there anyway i can change the characterset of the database(i believe we cannot, but just confirming it)
3. If i create AL32UTF8 and import the database from above characterset, will that work?
Thanks,
ArunArun wrote:
1. Is there anyway i can insert and view Japanese characters properly in the above characterset database?Not in CHAR, VARCHAR2 or CLOB data types. This should be possible with NCHAR, NVARCHAR2 or NCLOB data types that are using the national character set.
2. Is there anyway i can change the characterset of the database(i believe we cannot, but just confirming it)Yes but this may require a lot of work.
see approaches in http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#CEGDHJFF.
3. If i create AL32UTF8 and import the database from above characterset, will that work? Yes: should be easy with Data Pump.
>
Thanks,
Arun -
Transperant Data Encryption issue with database startup
Hi, I am trying to implemete TDE in oracle databse and have create encryption successfully too.
All the steps went on fine and encryption is working successfully.
now, I have an issue everytime when database shutdown and startup.
for which I have created a procedure to open the wallet and a trigger to open the wallet on DB startup.
here is the example : tde_proc.sql
1 create or replace procedure open_wallet
2 as
3 wallet_open exception;
4 pragma exception_init(wallet_open,-28354);
5 v_stmt varchar2(100);
6 v_password varchar2(20);
7 begin
8 v_password:='abcdef1' ;
9 -- edit the following line to store your secret wallet password
10 v_stmt :='ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY "'||v_password||'"';
11 execute immediate v_stmt ;
12 exception
13 when wallet_open then
14 null;
15 end;
16 /
@wrap iname=tde_proc.sql
Processing tde_proc.sql to tde_proc.plb
SQL> @tde_proc.plb
Procedure created.
TRIGGER :
create or replace trigger open_tde_wallet
after startup on database
begin
-- call wrapped pl/sql pocedure
open_wallet;
end open_tde_wallet;
SQL> @open_wal.trg
Trigger created.
when I startup the database, alert log is showing the below error.
Errors in file /opt/oracle10/admin/bmp10/udump/bmp10_ora_18396.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-28353: failed to open wallet
ORA-06512: at "SYS.OPEN_WALLET", line 11
ORA-06512: at line 3
Thu Jul 23 17:36:41 2009
Completed: ALTER DATABASE OPEN
Please give me some solution to resolve the issue.Hi..
Thanks for your reply.
1. yes variable v_password and wallet passwords are same. I had double checked after reading your reply. variable pwd
and encryption wallet passwords are same.
2. the entryof ENCRYPTION_WALLET_LOCATION in the SQLNET.ORA is also added.
here is the sqlnet.ora
ENCRYPTION_WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /opt/oracle10/admin/tstbmp10/encrypt)
Thanks,
Krishna -
hi,
getting below error on database startup.
log is attached from alert log file.
Wed Nov 16 14:24:20 2011
ALTER DATABASE MOUNT
Wed Nov 16 14:24:20 2011
ORA-00202: control file: '/oradata2/ctftdb2/data/controlctftdb201.ctl'
ORA-27086: unable to lock file - already in use
SVR4 Error: 11: Resource temporarily unavailable
Additional information: 8
Additional information: 5457
Wed Nov 16 14:24:20 2011
ORA-205 signalled during: ALTER DATABASE MOUNT...user12052679 wrote:
SID is ctftdb2
bash-3.00$ ps -ef | grep pmon
oracle 5992 1 0 14:24:19 ? 0:07 ora_pmon_ctftdb2
oracle 1680 1 0 May 25 ? 193:47 ora_pmon_hddb
oracle 5445 1 0 Jul 19 ? 287:57 ora_pmon_ctftdb2
oracle 14334 28506 0 16:28:22 pts/3 0:00 grep pmonyour instance is already up, why trying to start again? are you not aware as it is already running?
First shutdown the current instance which you facing errors to mount database
export ORACLE_SID=ctftdb2
sqlplus / as sysdba
select name,open_mode from v$database;Might it is already either mounted or opened. post output here -
Program completion before database commit
Hello friends,
I am doing a mass update using batch input program. The issue is that my program completes before actual database commit.My requirement is to create info records and after calling the standard batch input program , i am checking the standard tables if the info record is created or not. If yes, am updating the numnbeer else am updating an error message,
The problem is that for some 200 odd records there is no issue but if the no of records exceeds say 1000 or more, the background process of batch input program continues and then my code to check if the info record is created gets called. At this time,the database is still getting updated and there is no info record getting filled( info record actually gets updated in the standard tbale after few mins).
I am pretty sure this is to do with database commit issue and can actually use wait statement but then i cannot always expliciltly say wait up to 100 seconds because the user can choose 1000 records or 1 record at a time. How to ensure that the database gets updated before my checking of the info record in the table.
Please help.
Regards,
PremHi,
Try the following command before looking for info records in the database..
COMMIT WORK AND WAIT.
WAIT UP TO 2 SECONDS.
If this doesnt work.. then i feel you should split the program...
1st create all info records..capture the success/error messages.. once done
call the 2nd part which is related to validation of info record in database.
Thanks,
Best regards,
Prashant -
Folks,
Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP. My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly. But when I login into Application Designer, I cannot login and get the message as below:
"Security Table Manager (Get): The database is at release 8.52. The PeopleTools being run require databases at release 8.53."
I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
Task 4-3-5: run rel853.sql at SQL> in Linux.
Task 4-3-6: run grant.sql at SQL> in Linux.
Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and UserID and pwd PS, I get the same error message as below:
"The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
I continue to do task by task in chapter 4 until task 4-27 that's the end, but Application Designer still cannot login. All of Application Engine Programs and SQR Programs cannot run.
My questions are:
First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
Second, what's the error by task 4-7 when Application Designer still cannot login ?
Third, why Application Designer still cannot login a the end of doing chapter 4 task 4-27 ? How to solve the issue ?
Thanks.
Thanks.I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems. You need to look through your logs for errors. Are you running rel853 as the AccessID user? I don't know how you would trash PSSTATUS in this process.
You don't mention running this.
Task 4-3-2: Creating Tablespaces
This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did. Oracle moves and puts around 208 tables here when you run rel853 from what I see.
The first line of rel853 is
UPDATE PSSTATUS SET TOOLSREL='8.53',
LASTREFRESHDTTM = SYSDATE
This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped. I built a system database.
My hcengs.log shows
Importing PSSTATUS
Creating Table PSSTATUS
Import PSSTATUS 1
Building required indexes for PSSTATUS
Updating statistics for PSSTATUS
Records remaining: 7686
After import, PSSTATUS is
SQL> select toolsrel from sysadm.psstatus;
TOOLSREL
8.52
After running rel853n it's now
SQL> COMMIT
2 ;
Commit complete.
SQL> SPOOL OFF
SQL> select toolsrel from sysadm.psstatus;
TOOLSREL
8.53
I ran the other 3 quick scripts. Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer. It works. By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line. Since this is a new 9.0 based app build it should be used. -
Issue with changing database location at runtime
I am having a similar issue to:
Re: Issue with changing database location at runtime
where I am using Crystal Reports 2008 SP 3 fix pack 3.3 and a OLE DB connection to a SQL 2008 R2 server. Running on a computer on the network where the report can see the original development server is fast, other computers where that server is not available are hanging 20 seconds before coming up.
I am using the same code from the Crystal Sample app to change the connection on each table. I found that the slowness comes the first time the ReportDocument object is accessed to get the collection of database tables, before the connection info is set.
Fix pack 3.4 was mentioned in that post. Does fix pack 3.4 fix that issue? I don't see fix pack 3.4 on the downloads page (https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm)I just found on the reports that were having the issue there was a SQL Expression. Per this thread:
Re: Report load is slow after changing database servers
There was an issue with that and the fix is not out til the end of Feb so I found a way not to use the SQL Expression and the speed is much better.
However, your information provided led me to this post:
Cannot Change Table Location, but Only for One Report
And I am also experiencing an issue where the table location is not changing on one subreport and I will look into that as a possible solution.
Thanks so much for your help. -
Uk date format issue with ASP and Access Database
I have an Asp form which updates records in an Access
database. Problem is
that the date format in the database record is dd/mm/yyyy
(UK), when
the record is displayed on the form it is mm/dd/yyyy(US)
which after I
update the record in the database the date has changed to the
new format.
I have tried everything I can to change the format but to no
avail...anyone any ideas how I can resolve this issue?
Thanks
Stevestevo.s wrote:
> Hi
>
> I have tried changing the format on the date field on
the server behaviours
> panelto ddmmyyy. Also have tried to set the form field
format to ddmmyy. I have
> also tried to use a function I got from a posting
somehwere on the net to no
> avail. <%function ddmmyyyy(varDate)
> ddmmyyyy = Day(DateValue(varDate)) & "/" &
Month(DateValue(varDate))
> & "/" & Year(DateValue(varDate))
> end function
>
> I believe that this is a recognised issue with
Dreamweaver and Access but
> can't seem to grasp the work around! Problem being I am
teaching myself through
> books and internet articles and can be weeks at a time
without being able to
> look at the issue..each time I come back to it it is
like starting all over
> again! I was hoping that somewhere out there there is a
simple solution the
> issue perhaps a date picker with the built in
functionality to address the
> issue...I am keen to understand how to deal with the
issue rather than just
> change my database date field to fudge the problem as I
am in the UK and when I
> eventually start to use the application I would like
there to be some
> consistency with dates and that users are familiar with
the format.
>
> Any help gratefully received!
Its not Dreamweaver, or Access, its your servers locale, its
set to US
format, not the UK.
On your page at the top use:
<% Session.LCID = 2057 %>
This will force the page into using UK formatted dates. Use
it on any
page that needs to format the page correctly.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database
Hi All
We have oracle discoverer 4i with portal db (oracle 8i).
We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
Can any one advise if this is the case and if there is any workaround for this?
Regards,
RajAre you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
See MOS Doc 207303.1
HTH
Srini -
Database access issue with EXECUTE AS with impersonated User account
Hello,
I have been facing one issue with EXECUTE AS option in SQL Server 2008 R2. Following is the scenario:
I have two databases TestDB1 and TestDB2 on the same SQL Server instance. I have SQL Admin level permissions on the server. I have written a stored procedure in TestDB1 which will execute the scripts(SELECT Statement) againest the table from TestDB2(using
three part query). To execute the proc from TestDB1 I have used EXECUTE AS option with a user (User1) having select permissions on table from TestDB2. The same proc working fine when I use table from TestDB1 but not working on TestDB2 database. Thorwing error
saying permission denied. I have tried enabling the Ownership chains on both the databases but no luck.
Please help me with the situation here.
Thanks!
Swami A Polnati.You can also use EXECUTE AS. But then you need to set the database trustworthy, which is not good for security reasons.
Enabling cross-database chaining will not help, since you are using dynamic SQL.
Dan was kind to point you to my article. I recommend that you read it, and learn to embrace the technique with certificates. Yes, it is a long article and I understand that you are impatient to get a solution quickly. However, the article is written from
the point of view that the reader is interested in learning for the future and not only get a solution for the moment. Certificate-signing as a technique is very very useful in several contexts.
The article does also discuss EXECUTE AS, and I discuss in more detail why setting the database trustworthy may be a security risk. (And as long you don't fully understand what I'm talking about, it is a security risk.)
Erland Sommarskog, SQL Server MVP, [email protected]
Maybe you are looking for
-
Trying to load recovery disk for Win 8 receive error code OxeOef0003. What does the code indicate?
-
How do I open my pdf documents in word and not in adobe reader?
I have a Mac. How do I set my computer so that my pdf documents open in word rather than in adobe reader?
-
Syncing music from my phone to computer error, help please!
I bought and downloaded songs on my iPhone and im trying to sync it to my computer but it asks me if i want to delete songs from another library if i say yes will it delete the songs i bought on my phone?
-
Software to combine audio and pictures to make movie
Hi. I have some pictures and wished to combine them with audio to make a movie. Some of the audio files are over 60 minutes long (can't use iMovie) and are in apple lossless format. It would be good to keep the audio in apple lossless so as not to re
-
How to get wagetypes from infotype 0589
Dear Experts, Is there any function to get all wagetypes along with respective amounts from infotype 0589. Right now am using function 'HR_READ_INFOTYPE' and read statement to get wagetypes.because it is stored various fields like lga01,lga02.. and b