Showing posts with label Concurrent. Show all posts
Showing posts with label Concurrent. Show all posts
Tuesday, September 15, 2015
R12.1.3 Concurrent: Copying previous request all items are not copied
On the R12.1.3 version of EBS did you know that "When Copying A Request Set From A Previous Run, The Delivery Options And Parameters Are Not Copied"? I learned this from MOS document ID 2055893.1 and now I need to check out if we have the indicated patch so we can avoid this problem in the future, and add this kind of testing condition to our testing suites!
Monday, February 24, 2014
R12: Hiding the DQM Serial Sync Index Program
Several months ago I shared with you that in R12 there is a new process called "DQM Serial Sync Index Program" which is kicked off after A/R customer information is updated, and per My Oracle Support note 1627787.1 it seems that others have found out about this Concurrent Report and want it to be hidden from their users. This is interesting because I had never thought about a Concurrent Report being hidden before, and while Oracle does not say such a thing is impossible, the answer here is that it cannot be done since the program being submitted is standard functionality of the EBS application.
Wednesday, September 18, 2013
CMCLEAN: Zombie Hunter?
The other day I was tracking down a mystery (more on that later) when one of our Exadata database nodes hard crashed and we had to pick up the pieces. While I was tracking down that mystery, I happened to be on our concurrent manager nodes and saw that neither node had more than 3 processes at the OS layer marked as zombie processes. What do you think I found after the crash?
We now had 38 zombie processes "alive" on one of the nodes! As we were cleaning up the system, I kept asking "what about the zombie processes?" to which the DBA told me "don't worry, CMCLEAN will take care of it" but he didn't exactly tell me how or if he really knew for a fact that CMCLEAN would take care of the zombies. After we took down the concurrent manager nodes and ran CMCLEAN, guess what: all the zombie processes were gone.
So this leaves me to wonder if they disappeared when the nodes were taken down, or if CMCLEAN actually did the job. Next time, I'll have to watch a bit closer to find out for sure but if you know the answer share in the comments!
EDIT: For some reason the Blogger iOS app doesn't include changing the "Published On" date, and Safari on my phone wouldn't load the site right/completely, so this showed up yesterday on the blog as created on 9/12/13 instead of when I posted it 9/18/13. Sorry for burying it on the site!
EDIT: For some reason the Blogger iOS app doesn't include changing the "Published On" date, and Safari on my phone wouldn't load the site right/completely, so this showed up yesterday on the blog as created on 9/12/13 instead of when I posted it 9/18/13. Sorry for burying it on the site!
Thursday, August 29, 2013
EBS Analyzers
Today in the spotlight on the EBS Support blog I share articles which have a common thread: system analyzers. First up is a new analyzer, which I'm eager to use at work, for PO Approvals because when I've ran the Concurrent Processing analyzer it told me SO much about our system and some of the data which still lingered on in the system. Finally, is the Workflow analyzer which I'm quite fond of because this is the one that started me on a journey which has taken me to giving a presentation in Pittsburgh and really opened my eyes to what BIG type of issues reside in systems that take a lot of work, effort, and mental elbow grease to solve.
Labels:
Concurrent,
EBS,
EBS Support,
PO,
Presenting,
Workflow
Thursday, August 8, 2013
Concurrent Manager bottleneck
A continuation of a yesterday's post, we had several "overnight" reports that normally started anywhere between 7 PM and 3 AM actually wait until 4 AM to start running in the Concurrent Manager. I was even alerted on our on-call phone about a backlog between 3-4 AM on one day, but I figured it was something to do with our user's requests that had been sitting there for a few days and that after cancelling them I assumed the issue would resolve itself.
Good news? It did, but I was still curious about the why of it so I looked at Autoinvoice Import Program reports, which should have kicked off but didn’t, until I ran into the same report scheduled by a user after 4 PM which didn’t kick off until after 4 AM. Very curious right? Why would the system just stop for 12 hours? Suddenly it hit me. What did the work shifts look like for the Standard Manager (assuming that’s where they went, and not Quick Manager)?
Our user in question had 7 of 10 slots in the Standard Manager with his stuck reports running before 4 PM and once the shift changed on the first night the process maximum was 7, which didn’t let anything else actually run the following morning until another shift change at 4 AM! Then later on the second night he had 8 of 10 slots before 4 PM, and again after the shift change nothing was able to process on the third morning until another shift change but that night was a different story because we had his reports complete during the day so there was no lingering backlog to stop up the managers the next morning.
As a byproduct of allowing user reports to sit running for too long, we identified a bottleneck in our system since usually the only time you bother looking at your Concurrent Manager setting is when you have a problem right? If the system has run for years, and nothing is wrong, you won't go looking for problems since there are none reported! I find it really interesting that this shift setup is almost completely backwards from our bigger EBS platform where we let the Concurrent Managers ramp up at night until we throttle them back when we have more of a user load on the system, but here we throttle it back at night and then ramp up the processes when the users are in the system. Maybe this group of users is more report intensive, but I doubt it so off on the hunt for details and a good long term solution I go! (Sure I can just change the processes here so we avoid that kind of bottleneck in the future, but is that really a solution?)
Good news? It did, but I was still curious about the why of it so I looked at Autoinvoice Import Program reports, which should have kicked off but didn’t, until I ran into the same report scheduled by a user after 4 PM which didn’t kick off until after 4 AM. Very curious right? Why would the system just stop for 12 hours? Suddenly it hit me. What did the work shifts look like for the Standard Manager (assuming that’s where they went, and not Quick Manager)?
Our user in question had 7 of 10 slots in the Standard Manager with his stuck reports running before 4 PM and once the shift changed on the first night the process maximum was 7, which didn’t let anything else actually run the following morning until another shift change at 4 AM! Then later on the second night he had 8 of 10 slots before 4 PM, and again after the shift change nothing was able to process on the third morning until another shift change but that night was a different story because we had his reports complete during the day so there was no lingering backlog to stop up the managers the next morning.
As a byproduct of allowing user reports to sit running for too long, we identified a bottleneck in our system since usually the only time you bother looking at your Concurrent Manager setting is when you have a problem right? If the system has run for years, and nothing is wrong, you won't go looking for problems since there are none reported! I find it really interesting that this shift setup is almost completely backwards from our bigger EBS platform where we let the Concurrent Managers ramp up at night until we throttle them back when we have more of a user load on the system, but here we throttle it back at night and then ramp up the processes when the users are in the system. Maybe this group of users is more report intensive, but I doubt it so off on the hunt for details and a good long term solution I go! (Sure I can just change the processes here so we avoid that kind of bottleneck in the future, but is that really a solution?)
Wednesday, August 7, 2013
Concurrent reports not completing for a single person
Sounds like a weird situation right? That's what we thought too, but we weren't really laughing about it since it happened on our A/R Close night and we still had it happening after the DBAs bounced the Concurrent Manager. A few days later jobs by this person are still running and nothing is completing but I don't see any locks at the database and the OS_PROCESS_IDs from FND_CONCURRENT_REQUESTS aren't actually alive on the server. So what's going on? Well, the log files tell the story.
Upon closer inspection, it appears that the reports are actually completing all of their work before passing off the job for printing as all of the reports have the same last lines since the user is trying to PRINT TO THE SAME PRINTER. Alright. We have a Solaris OS machine here which we aren't running CUPS on, so lpstat -lp <printer name> should give us some details about the printer yet when I issue the command nothing happens. No detail results. No command prompt returned. Nothing. So it appears that the concurrent manager hands off the reports for printing, but if the printer exists and can't complete the request (in this case just hanging out there) the concurrent request will never continue to Completed.
After we get the printer issue resolved, I try to cancel the reports in Running status but the application locks up on me. Looking at the locks in the system I can see something is holding me up, but I don't think it is the concurrent request session but the concurrent manager itself so I can't kill it but I took the PROCESS number 14517 from GV$SESSION and went to the server:
[me@server ~]$ ps -eaf | grep 14517
applmgr 9895 14517 0 Aug 06 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID" /u01/app/applmgr/11i/i
applmgr 14517 3854 0 Aug 06 ? 0:07 FNDLIBR FND Concurrent_Processor
You can see that this process number corresponded to the requests which were running under the USERNAME (USER_NAME.FND_USER), REQUESTID (REQUEST_ID.FND_CONCURRENT_REQUESTS), and the PRINTERNAME (PRINTER_NAME.FND_PRINTER) so we can look at the other OS processes with that information:
[me@server ~]$ ps -eaf | grep USERNAME
applmgr 9895 14517 0 Aug 06 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID" /u01/app/applmgr/11i/i
applmgr 9896 9895 0 Aug 06 ? 0:00 lp -c -dPRINTERNAME -n1 -tUSERNAME.REQUESTID /u01/app/applmgr/11i/i
applmgr 7434 3303 0 Aug 02 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID2" /u01/app/applmgr/11i/i
applmgr 7435 7434 0 Aug 02 ? 0:00 lp -c -dPRINTERNAME -n1 -tUSERNAME.REQUESTID2 /u01/app/applmgr/11i/i
What I find interesting is that you can see in the first two lines the process ID 9895 is listed twice, and the same with the last two lines and process ID 7434 so we've learned something about Unix here that the printer OS processes are marked as children of the main concurrent request OS process. Next up, I issued kill -9 <OS process ID> commands for 9896 and 7435 as applmgr and after I kill the first one process 9895 disappears and the application is no longer locked up on me trying to cancel the report. Why? Killing the print job that was hanging at the OS level allowed the concurrent OS process to complete believing it was done printing, which then allowed it to report back to the application that it was done and allowed my session to "complete". Next up, I killed all of the other threads that had the lp command for our user and when I went back to the application to search for their Running reports there were no longer any reports running.
Upon closer inspection, it appears that the reports are actually completing all of their work before passing off the job for printing as all of the reports have the same last lines since the user is trying to PRINT TO THE SAME PRINTER. Alright. We have a Solaris OS machine here which we aren't running CUPS on, so lpstat -lp <printer name> should give us some details about the printer yet when I issue the command nothing happens. No detail results. No command prompt returned. Nothing. So it appears that the concurrent manager hands off the reports for printing, but if the printer exists and can't complete the request (in this case just hanging out there) the concurrent request will never continue to Completed.
After we get the printer issue resolved, I try to cancel the reports in Running status but the application locks up on me. Looking at the locks in the system I can see something is holding me up, but I don't think it is the concurrent request session but the concurrent manager itself so I can't kill it but I took the PROCESS number 14517 from GV$SESSION and went to the server:
[me@server ~]$ ps -eaf | grep 14517
applmgr 9895 14517 0 Aug 06 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID" /u01/app/applmgr/11i/i
applmgr 14517 3854 0 Aug 06 ? 0:07 FNDLIBR FND Concurrent_Processor
You can see that this process number corresponded to the requests which were running under the USERNAME (USER_NAME.FND_USER), REQUESTID (REQUEST_ID.FND_CONCURRENT_REQUESTS), and the PRINTERNAME (PRINTER_NAME.FND_PRINTER) so we can look at the other OS processes with that information:
[me@server ~]$ ps -eaf | grep USERNAME
applmgr 9895 14517 0 Aug 06 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID" /u01/app/applmgr/11i/i
applmgr 9896 9895 0 Aug 06 ? 0:00 lp -c -dPRINTERNAME -n1 -tUSERNAME.REQUESTID /u01/app/applmgr/11i/i
applmgr 7434 3303 0 Aug 02 ? 0:00 /bin/sh -c lp -c -dPRINTERNAME -n1 -t"USERNAME.REQUESTID2" /u01/app/applmgr/11i/i
applmgr 7435 7434 0 Aug 02 ? 0:00 lp -c -dPRINTERNAME -n1 -tUSERNAME.REQUESTID2 /u01/app/applmgr/11i/i
What I find interesting is that you can see in the first two lines the process ID 9895 is listed twice, and the same with the last two lines and process ID 7434 so we've learned something about Unix here that the printer OS processes are marked as children of the main concurrent request OS process. Next up, I issued kill -9 <OS process ID> commands for 9896 and 7435 as applmgr and after I kill the first one process 9895 disappears and the application is no longer locked up on me trying to cancel the report. Why? Killing the print job that was hanging at the OS level allowed the concurrent OS process to complete believing it was done printing, which then allowed it to report back to the application that it was done and allowed my session to "complete". Next up, I killed all of the other threads that had the lp command for our user and when I went back to the application to search for their Running reports there were no longer any reports running.
Thursday, May 23, 2013
Concurrent Manager holding lock on a report
For some reason, we had a report which was locked up with “Could not reserve record x tries” so you couldn't View Details or Hold Request and even running a script to change the HOLD_FLAG was just hanging out. Looking at gv$session, the user didn't have any sessions which would've lead me to believe they had this locked up so I ran my handy dandy Exadata lock script to find the session holding my script up. The session had nothing for MODULE or ACTION, but the CLIENT_INFO "0 0 " looked familiar so I bounced the Conflict Resolution Manager without any changes happening. I started looking closer, as the report was sitting in the Quick Manager so I issued a Deactivate which took it down to only 1 Actual process and a Target of 0 but it just kept sitting there. Looking at the log files via Processes showed just one thread Active but when I clicked on Manager Log I received this error message:
APP-FND-01632: Cannot open file <directory>/w<process ID?>.mgr for reading
Cause: [Routine] encountered an error when attempting to open file <directory>/w<process ID?>.mgr for reading.
Action: Verify that the filename is correct, the environment variables controlling that filename are correct, and the file exists.
Action: Verify that protections on that file permit reading by this program.
Knowing that there was a problem with this thread, I then issued a Terminate for the Quick Manager and once it was completed with the Actual/Target both at 0 my script finally finished running as it no longer was encountering the locking condition. After committing my script, so the report was now Inactive/On Hold rather than Inactive/No Manager, I did an Activate for the Quick Manager and once it was back up I removed the hold on the report. It ran to completion in 2 seconds.
Now there are obviously some questions I have about this, as to why the manager thread had just locked up when it tried to pick up or start running the request, or if the string of numbers in the file name is actually a process ID which I can then backtrack later and give you more information in a later posting.
APP-FND-01632: Cannot open file <directory>/w<process ID?>.mgr for reading
Cause: [Routine] encountered an error when attempting to open file <directory>/w<process ID?>.mgr for reading.
Action: Verify that the filename is correct, the environment variables controlling that filename are correct, and the file exists.
Action: Verify that protections on that file permit reading by this program.
Knowing that there was a problem with this thread, I then issued a Terminate for the Quick Manager and once it was completed with the Actual/Target both at 0 my script finally finished running as it no longer was encountering the locking condition. After committing my script, so the report was now Inactive/On Hold rather than Inactive/No Manager, I did an Activate for the Quick Manager and once it was back up I removed the hold on the report. It ran to completion in 2 seconds.
Now there are obviously some questions I have about this, as to why the manager thread had just locked up when it tried to pick up or start running the request, or if the string of numbers in the file name is actually a process ID which I can then backtrack later and give you more information in a later posting.
Monday, May 6, 2013
ICM will mark this request as completed, will it?
From time to time, when trying to access concurrent requests you can be presented with this error message:
Request [ID] can no longer be cancelled. The Concurrent Manager process that was running this request has exited abnormally. The ICM will mark this request as completed with error.
That would be fine if it actually happened, but the problem is that I've seen this error message on many different EBS, Tech Stack and database versions over seven years and I've never actually seen the ICM mark the request in any way when the request gets into this state. There are 2 ways that I know how to resolve this. One, go into Help -> Diagnostics -> Examine (if you have this available) and change the fields PHASE_CODE to C and the STATUS CODE to X in two separate "transactions", Ctrl-S to save the record and when you refresh the form the request should show as Completed/Terminated. The other way is much more simple, where you write a script to update the same columns for the request in fnd_concurrent_requests as such:
update fnd_concurrent_requests
set phase_code = 'C', status_code = 'X'
where request_id = [ID]
Request [ID] can no longer be cancelled. The Concurrent Manager process that was running this request has exited abnormally. The ICM will mark this request as completed with error.
That would be fine if it actually happened, but the problem is that I've seen this error message on many different EBS, Tech Stack and database versions over seven years and I've never actually seen the ICM mark the request in any way when the request gets into this state. There are 2 ways that I know how to resolve this. One, go into Help -> Diagnostics -> Examine (if you have this available) and change the fields PHASE_CODE to C and the STATUS CODE to X in two separate "transactions", Ctrl-S to save the record and when you refresh the form the request should show as Completed/Terminated. The other way is much more simple, where you write a script to update the same columns for the request in fnd_concurrent_requests as such:
update fnd_concurrent_requests
set phase_code = 'C', status_code = 'X'
where request_id = [ID]
Thursday, March 7, 2013
Journal Import: Suspended!
Off of our wait event alert, there was a session that just sitting in "statement suspended, wait error to be cleared" which was a new wait event I had not seen before. Doing some research I found it to be a Journal Import report which was in the process of deleting rows per this statement:
delete from GL_INTERFACE
where (user_je_source_name, nvl(group_id, -1)) in (listing of ledgers) and status = 'PROCESSED'
and request_id = user request
and rownum <= 5000
and (user_je_source_name, nvl(group_id, -1)) IN (SELECT src.user_je_source_name, nvl(group_id,-1) FROM gl_interface_control ic, gl_je_sources src WHERE ic.je_source_name = src.je_source_name
AND ic.interface_run_id = run id
AND ic.set_of_books_id = set of books id
AND ic.status = 'I'
AND nvl(ic.processed_table_code,'D') != 'S')
I can see in the table dba_outstanding_alerts information about this session as such:
Operation on resumable session Session 1579, Instance 1 session id 1579 suspended because of errors in rollback segment _SYSSMU1260_2942144267$. Error message is ORA-01628: max # extents (32765) reached for rollback segment _SYSSMU1260_2942144267$
Now the error message seems to be straightforward, and My Oracle Support notes ID 761848.1 & 788060.1 give some anecdotal evidence for what is going on, but we weren't able to get the root cause addressed in time to allow the report to complete successfully as it timed out internally and resulted in the report completing in Error. This means I'm not exactly sure how we could have resolved it, yet I have some suspicion that if we could have expanded the maximum number of extents for this segment we would have seen the session resume and move along. I'll put this down under as a mystery which needs research, because we need to learn more about it for next time when the report in question is something a lot more important and we can't go back to Oracle with an SR to fix.
delete from GL_INTERFACE
where (user_je_source_name, nvl(group_id, -1)) in (listing of ledgers) and status = 'PROCESSED'
and request_id = user request
and rownum <= 5000
and (user_je_source_name, nvl(group_id, -1)) IN (SELECT src.user_je_source_name, nvl(group_id,-1) FROM gl_interface_control ic, gl_je_sources src WHERE ic.je_source_name = src.je_source_name
AND ic.interface_run_id = run id
AND ic.set_of_books_id = set of books id
AND ic.status = 'I'
AND nvl(ic.processed_table_code,'D') != 'S')
I can see in the table dba_outstanding_alerts information about this session as such:
Operation on resumable session Session 1579, Instance 1 session id 1579 suspended because of errors in rollback segment _SYSSMU1260_2942144267$. Error message is ORA-01628: max # extents (32765) reached for rollback segment _SYSSMU1260_2942144267$
Now the error message seems to be straightforward, and My Oracle Support notes ID 761848.1 & 788060.1 give some anecdotal evidence for what is going on, but we weren't able to get the root cause addressed in time to allow the report to complete successfully as it timed out internally and resulted in the report completing in Error. This means I'm not exactly sure how we could have resolved it, yet I have some suspicion that if we could have expanded the maximum number of extents for this segment we would have seen the session resume and move along. I'll put this down under as a mystery which needs research, because we need to learn more about it for next time when the report in question is something a lot more important and we can't go back to Oracle with an SR to fix.
Thursday, August 16, 2012
Concurrent:Active Request Limit (or how I finally learned to know what my system was saying)
The other day I saw a few jobs queuing in the Conflict Resolution Manager, and investigating I saw the following message:
This request is pending because the profile option 'Concurrent:Active Request Limit' is set.
This profile option controls how many requests a given user may have running at one time.
User X submitted this request on 09-AUG-2012 08:00:00.
The Conflict Resolution Manager will release this request when the number of running requests for this user is less than the maximum allowed by the profile option.
Now I’d seen this quite a few times but I always thought it was a bug and the CRM thought we couldn’t let anything run, since I interrepted it as being set at a user level, yet today when I looked at the message I wondered if we had it set at a site level and sure enough we did. It is entirely possible that with the old server hardware we were on a few years ago there was a reason this was setup but since it doesn't even look like we're hitting this limit I don’t think we need it set in our environment today since requests appear to be slowed down by this.
This request is pending because the profile option 'Concurrent:Active Request Limit' is set.
This profile option controls how many requests a given user may have running at one time.
User X submitted this request on 09-AUG-2012 08:00:00.
The Conflict Resolution Manager will release this request when the number of running requests for this user is less than the maximum allowed by the profile option.
Now I’d seen this quite a few times but I always thought it was a bug and the CRM thought we couldn’t let anything run, since I interrepted it as being set at a user level, yet today when I looked at the message I wondered if we had it set at a site level and sure enough we did. It is entirely possible that with the old server hardware we were on a few years ago there was a reason this was setup but since it doesn't even look like we're hitting this limit I don’t think we need it set in our environment today since requests appear to be slowed down by this.
Subscribe to:
Posts (Atom)
