How to track sessions with statpack running on parallel
Dear All
Can any one confirm that session level stats are gathered for session executing with parallel processing via exec perfstat.statspack.snap(i_snap_level=>7,i_session_id=>9);
as different internal sessions are created when query executes in parallel
thanks
Using the forum's search function and the keyword tuning you'll get links like this one:
Re: Guide for Tuning and Optimizing Red Hat Linux AS for Oracle9i Database
Is that what you were looking for?
C.
Similar Messages
-
How to handle sessions with two severs on one machine?
All,
I am having a problem with session cookies being overwritten when I host two apps on one machine running WebLogic 8.1 The apps are http://myserver:7300/app1 and http://myserver:7400/app2, and each runs in its own server.
Users will often access both apps at once, in two browser windows. If the windows are different threads in the same process, the sessions collide. For Internet Explorer, this isn't usually a problem since clicking on the shortcut multiple times launches different processes by default. Some browsers (Firefox, etc.) won't let you have two windows under different processes. Attempts to launch a second window 'detect' the existing process and appear to spawn a new thread. When this happens there appears to be no way for the users to use both apps at once.
I know this is happening because of the way session cookies are stored in the browser process' memory. The session cookies appear to me to be 'keyed' by the host name or ip address of the server. Does anyone know of a setting in WebLogic so that this 'key' includes the port or context root? Is this even something which can be controlled on the server side?
Thanks for any help,
BrianNot quite sure what your intent is, but if you want to avoid a clash how
about giving each application a different default session cookie name. -
How to track session in Webdynpro Java application
Hi All,
How to get the session reference of any Webdynpro Java Application . My purpose is that thr is one WD application is getting launched , now if suppose user didn't perform any action on it and session for that application got expired . After the session got expired i have to update the table with the status . So to track that i need the session reference of WD application which i m looking for .
How could i get the same . Kindly help me on this .
Thanks & Regards,
Mitul.Hi ,
HttpSession session = request.getSession(false); //get the current session, if there is no session yet, return null
if (session == null) //forward to first page
else //do normal work
Then u can update ur session right ,
Regards ,
Venkat -
Hello experts,
I need to create a form to monitor session in oracle..This forms should show every active user details and past user details..How can i achieve this..
Is any packages to do this ?..please help meHi
i think toad & pl/sql is tracking this...
any way hope the following link helps u...
Re: Error - could not reserve record
Regards,
Abdetu... -
How to track variables with the CaptivateQuizAnalyzer
I recently purchased Adobe Captivate 6 and I have been using Acrobat.com as an LMS. I had two questions: 1) Can you track the number of slide views and slide viewing time for quiz slides and have Acrobat.com report it the Captivate Quiz Analyzer? and 2) How do you recommend I go about doing this and what resources can you direct me to? Thank you for your time and assistance regarding this matter.
Check your regular PC shop, Newegg, SilentPCReview.com there is no special right one, just has to fit, and my Mac Pro has some dampeners that fit between the door and case, but the vibration is on the upper front and lower back corners, even though it seemed to start with addition of hard drive.
Over the 4 yrs there have been a good dozen or more threads on what, why, and how this hum and whether different drive hums can trigger such a clash.
For a long time I kept my case on its side (using coffee table) because the high pitch was otherwise so annoying the minute I entered the room, not loud but a "just right" (or wrong) pitch. Now it seems to be okay (and after I built what I hoped was the ultimate silent PC). -
How to track calendars with multiple devices apple and droid
I have a iPhone 5 and iPad but would like to find a way to communicate my calendar with others using apple and droid products. How would I do that?
Sync your calendar with iCloud, then share it publically as explained here: http://help.apple.com/icloud/#/mm6b1a9479. This allows non-iCloud users to view the calendar (but not edit it).
-
How to track session IDs for multiple apps in same server instance?
All:
We have 2 web applications (for example: app1,app2) running in one app
server instance (weblogic 5.1). Both of those applications use the same
cookie name (defined in weblogic.properties ) to keep the HttpSessionID.
The tricky thing is that if a client logs in to app1 and then logs in to
app2 with the same web browser, (for example, IE). The app1's
HttpSessionID kept in the cookie will be overwritten by app2's
HttpSessionID because they use the same cookie name.
My question is this:
Is there a way to specify a cookie name for each application running in
an application server instance?
The only way we know of to work around the problem is that we have to
host the app1 and app2 in 2 different app server instances so we can
config app1 and app2 to use different cookie names for the
HttpSessionID. We are curious if there is a better way to do that.
BTW, We must use Cookie because of the requirement of cluster and load
balancer.
Thanks,
BenHi Ben,
Which version of Weblogic are you using??
In 5.1 sp8 the Cookie names of the Web Apps are different by default.
Prasad Peddada <[email protected]> wrote:
Why can't you add your own cookie?
In 6.0 you can have different cookie names for different
apps.
-- Prasad
"Benjamin D. Engelsma" wrote:
All:
We have 2 web applications (for example: app1,app2)running in one app
server instance (weblogic 5.1). Both of those applicationsuse the same
cookie name (defined in weblogic.properties ) to keepthe HttpSessionID.
The tricky thing is that if a client logs in to app1and then logs in to
app2 with the same web browser, (for example, IE). The app1's
HttpSessionID kept in the cookie will be overwrittenby app2's
HttpSessionID because they use the same cookie name.
My question is this:
Is there a way to specify a cookie name for each applicationrunning in
an application server instance?
The only way we know of to work around the problem isthat we have to
host the app1 and app2 in 2 different app server instancesso we can
config app1 and app2 to use different cookie names forthe
HttpSessionID. We are curious if there is a better wayto do that.
BTW, We must use Cookie because of the requirement ofcluster and load
balancer.
Thanks,
Ben -
PL/SLQ - How to create query with horizontal running totals
Hi:
I'm trying to create a report in the following format
Year Name Reg1 Reg2 Reg3
2001 Al 3 4 5
2001 Le 4 1 1
2001 7 5 6
2002 Sue 2 4 1
2002 Al 1 3 6
2002 Jim 6 1 3
2002 16 15 16
2003 Jim 4 -3 2
2003 Le -2 4 5
2003 20 16 23
Note that the totals are accumulating horizontally, broken on year. How do I do that, please? Thanks very much!
AlHi, Al,
Welcome to the forum!
978108 wrote:
Hi:
I'm trying to create a report in the following format
Year Name Reg1 Reg2 Reg3
2001 Al 3 4 5
2001 Le 4 1 1
2001 7 5 6
2002 Sue 2 4 1
2002 Al 1 3 6
2002 Jim 6 1 3
2002 16 15 16
2003 Jim 4 -3 2
2003 Le -2 4 5
2003 20 16 23 You may have noticed that this site normally doesn't display multiple spaces in a row.
Whenever you post formatted text (such as query results) on this site, type these 6 characters:
\(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
If you do that, your desired output will be much more readable:Year Name Reg1 Reg2 Reg3
2001 Al 3 4 5
2001 Le 4 1 1
2001 7 5 6
2002 Sue 2 4 1
2002 Al 1 3 6
2002 Jim 6 1 3
2002 16 15 16
2003 Jim 4 -3 2
2003 Le -2 4 5
2003 20 16 23
Note that the totals are accumulating horizontally, broken on year. How do I do that, please? Thanks very much!
AlHere's one way to do that:WITH yearly_summary AS
SELECT year
, SUM (SUM (reg1)) OVER (ORDER BY year) AS reg1
, SUM (SUM (reg2)) OVER (ORDER BY year) AS reg2
, SUM (SUM (reg3)) OVER (ORDER BY year) AS reg3
FROM table_x
GROUP BY year
SELECT year, name, reg1, reg2, reg3
FROM table_x
UNION
SELECT year, NULL, reg1, reg2, reg3
FROM yearly_summary
ORDER BY year, name
Edited by: Frank Kulash on Dec 20, 2012 3:04 PM
Corrected query.
Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data. For example:CREATE TABLE table_x
( year NUMBER
, name VARCHAR2 (10)
, reg1 NUMBER
, reg2 NUMBER
, reg3 NUMBER
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2001, 'Al', 3, 4, 5);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2001, 'Le', 4, 1, 1);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2002, 'Sue', 2, 4, 1);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2002, 'Al', 1, 3, 6);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2002, 'Jim', 6, 1, 3);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2003, 'Jim', 4,-3, 2);
INSERT INTO table_x (year, name, reg1, reg2, reg3) VALUES (2003, 'Le', -2, 4, 5);
Also, say which version of Oracle you're using. In this case, it may not matter. The query above will work in Oracle 9.1 and higher. -
How to set processor with 2 core to parallel working
I have a intel core2 duo with 32bit Arch.
I allow paralleling work in bios. In the system I see 2 processor and both are working. But they don't work together. I mean when processor A is comming up then processor B is comming down. When A working at 80% then B working only at 20%. I think they rotate with their work but never working together.Multicore is difficult, because many things are hard to do in parallel. In other words: Many tasks will only use one processor.
But just to see both processors at 99% you can do the following:
Open two terminals. Execute in both terminals the following code:
while [ 1 ]; do echo -n; done
This is a simple infinite loop in bash, which will "print nothing" and "stress" your CPUs. (Use Ctrl+C to end the loop.) -
How to track iPhone with serial number?
No, Apple does not get involved in tracking devices. The only way to track it is to have turned on Find My Phone on the iPhone, then locate it through your iCloud account. But to do that Find My has to have been setup, the iPhone has to be powered up and connected to the internet.
-
[solved] How many dbus process are you running?
Hi there,
Recently I looked how many dbus processes there are running on my system. I realised it is quite a few:
~ ps aux | grep dbus
root 367 0.0 0.0 124760 3688 ? Ssl 07:31 0:00 /usr/sbin/thermald --no-daemon --dbus-enable
dbus 374 0.0 0.0 27084 1952 ? Ss 07:31 0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
lightdm 846 0.0 0.0 17992 544 ? S 07:32 0:00 /usr/bin/dbus-launch --autolaunch e8b37a474b614e438a0ab6a142101c2c --binary-syntax --close-stderr
lightdm 896 0.0 0.0 26664 1040 ? Ss 07:32 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
lightdm 902 0.0 0.0 26664 1540 ? S 07:32 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
orschiro 1128 0.0 0.0 15896 616 ? S 07:32 0:00 dbus-launch --sh-syntax --exit-with-session
orschiro 1129 0.0 0.0 27012 1496 ? Ss 07:32 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
orschiro 1445 0.0 0.0 17992 540 ? S 07:33 0:00 dbus-launch --autolaunch e8b37a474b614e438a0ab6a142101c2c --binary-syntax --close-stderr
orschiro 1446 0.0 0.0 26664 1036 ? Ss 07:33 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
Is this the same for you?
I do not start dbus manually anywhere on my system except for launching lightdm and thermald through a systemd service.
Last edited by orschiro (2014-02-28 07:16:45)I will mark this as solved for now. In order to minimise the running dbus sessions, I switched back from ldm to startx and also removed the pulseaudio autostart from /etc/X11/xinit/xinitrc.d/ since I want to control myself when pulseaudio starts the dbus sessions.
This is how it looks now with X running and udisks2/gvfs enabled dbus session.
dbus 331 0.0 0.0 27048 1608 ? Ss Feb27 0:10 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
orschiro 1574 0.0 0.0 15896 448 tty1 S Feb27 0:00 dbus-launch --sh-syntax --exit-with-session
orschiro 1581 0.0 0.0 27160 1396 ? Ss Feb27 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
orschiro 12920 0.0 0.0 26664 1216 ? S Feb27 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
orschiro 15516 0.0 0.0 17992 532 ? S 06:26 0:00 dbus-launch --autolaunch e8b37a474b614e438a0ab6a142101c2c --binary-syntax --close-stderr
orschiro 15523 0.0 0.0 26664 964 ? Ss 06:26 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session -
How many HACR can run in parallel in SAP BW 3.5 and 7.X?
Hi Experts,
I have a question that How many HACR/attribute change run can run in parallel in SAP BW 3.5 and 7.X?
I know in SAP BW 3.5 only one ACR job can run and if we start any will be failed due to lock issues. On other hand, I also noticed in SAP BW 7.3, there are more than one HACR job running in parallel without lock issue.
Does anybody know the reason behind this? how many ACR job we can run in parallel and precautions to be taken care everything.
Please share your thoughts and lets understanding the ACR in detail..
Thank you.
Bharath SHi Bharath,
I' am not sure but I' am sharing what I think
New version is always some betterment of old version. Time changes, advancements in technology, performance improves.
However, I want to ask "Can we run two HACs at a time which use same info object in 7.X ?"
Regards
Nikhil Guda -
I am using a MacBook Pro and running 10.8.4. iTunes version 11.0.4. Several of the cd's i have imported recently have been split into multiple albums by iTunes where it has identified bonus tracks. How do I bring all the bonus tracks together with the original album?
Hello there, Fineshot.
The following Knowledge Base article might provide some information that should help you resolve the issue you're having:
Why aren't songs with the same album art grouped together?
http://support.apple.com/kb/TS1468
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro D. -
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
Dear All,
Kindly suggest how to submit request with default language as 'American English' in other language sessions (Ex: Arabic).
R12: 12.1.3
The issue is we created function using 'arabic' text in it, which runs perfect in the english session, but doesnt gets value in the arabic session.
So we decided to make the submit request with default language as 'American English'.
Below is the function. Kindly note that SEGMENT1 is not linked to any valueset.
CREATE OR REPLACE FUNCTION F_GET_OLD_LEAVE(P_PERSON_ID NUMBER)
RETURN NUMBER IS
V_DAYS NUMBER;
BEGIN
select
SUM(EXCD_DAYS)
INTO V_DAYS
FROM (
SELECT
-- NVL(SEGMENT5, 'تجاوز') Late_type,
-- SEGMENT1 NOTES,
-- ACTUAL_TERMINATION_DATE,
(CASE
WHEN NVL(SEGMENT5,'تجاوز') not in ( 'تجاوز' ,'إجازة غير مدفوعة') and segment1 not in ('إجازة غير مدفوعة') THEN 0
--WHEN SEGMENT1 like 'إجازة غير مدفوعة' THEN
--TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
--TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') +1
when segment1 not in('بدل نقدي','إجازة غير مدفوعة') and segment4 is null then
TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment3, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')-1
when segment1 in('إجازة غير مدفوعة') and segment4 is null then
TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')
WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') <
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
THEN 0
WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') <=1
THEN 0
WHEN SEGMENT1 like '%بدل نقدي%' then 0
-- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
WHEN SEGMENT1 like '%إجازة سنوية%' and segment5 in( 'إجازة غير مدفوعة','تجاوز')and
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') >=2
then
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
WHEN SEGMENT1 like '%إجازة حج%' and segment5 in('إجازة غير مدفوعة','تجاوز') and
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') >=2
then
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')<=1
THEN
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5 NOT IN('تجاوز','إجازة غير مدفوعة') AND
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
THEN
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')+1
when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5 IN('تجاوز','إجازة غير مدفوعة') AND
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
THEN
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
WHEN
EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) <>
EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))
THEN
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') - 2
WHEN
to_char(to_date(SUBSTR(SEGMENT3, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY') =
to_char(to_date(SUBSTR(SEGMENT4, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY')
THEN 0
WHEN
EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))= 31
THEN
TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')-1
--------------------------------------------when enddate is NULL---------------------------------------------------------------------------------
-- WHEN segment3 IS NULL THEN round(TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
-- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR'))
WHEN segment3 IS NULL THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
(EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
-----***********************************when segment1**********************************--------------------------
WHEN SEGMENT1 like '%صادف%' THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 0) +
(EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
WHEN
EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) =
EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))
THEN
((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
(EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))-1
ELSE 0
END )EXCD_DAYS
FROM HR.PER_ANALYSIS_CRITERIA C,
PER_ALL_PEOPLE_F PPF,
PER_PERIODS_OF_SERVICE PPPS,
PER_PERSON_ANALYSES T ,
fnd_id_flex_structures_vl f
WHERE 1 = 1
AND T.ANALYSIS_CRITERIA_ID = C.ANALYSIS_CRITERIA_ID
AND PPF.PERSON_ID = T.PERSON_ID
and ppps.PERSON_ID=ppf.person_id(+)
and ppps.ACTUAL_TERMINATION_DATE BETWEEN ppf.effective_start_date and nvl(ppf.effective_end_date, to_date('31/12/4712', 'DD/MM/YYYY'))
-- AND C.ID_FLEX_NUM = 50318
and c.id_flex_num = f.id_flex_num
AND f.id_flex_code = 'PEA'
and f.ID_FLEX_STRUCTURE_NAME = 'XX_Old_Leave_Details'
AND PPF.person_id = P_PERSON_ID
AND T.DATE_FROM>=( select
TO_DATE(to_date(SUBSTR(xx.global_value, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
FROM
ff_globals_f xx
where xx.GLOBAL_NAME='XX_NEW_LEAVES_DATE_FROM'
AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE)
and substr(c.segment1,1,10)>=
select substr(xx.global_value,1,10)
FROM
ff_globals_f xx
where xx.GLOBAL_NAME='XX_NEW_LEAVES_STD'
AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE
RETURN NVL(V_DAYS, 0);
EXCEPTION
WHEN OTHERS THEN
RETURN 0;
END;
Thanks in Advance.
Regards,
Afzal.Dear All,
I found the solution for the above function.
In the same function I removed the static arabic values replacing with code values from the value set.
In my scenario there is a value set where some of these values exists, and other we can add there.
Kindly let me know if someone was successful by using the arabic text in the coding and defaulting the language in conc prog as English.
Thanks a lot.
Regards,
Afzal.
Maybe you are looking for
-
Hi all I have set approval for purchase oder , my problem is that when i create a purchase order using purchase order form it is going for the approval but when i created through code it is not going for the approval . Any solution for this. Thanks i
-
Error 1004: Suddenly getting this error on my new iPad 2
I noticed that I had this problem after connecting to a public wifi hotspot at my local Chick-fil-a. Once I connected to their network, it requested my email address and then "connected" me to the internet after submitting the form. I used the intern
-
Why does iCloud still show an old email address?
When I log in to my apple ID and iCloud, the screen shows an old email address. I have changed the email address long ago under "mange Apple ID". Suggestions welcome.
-
Best way to deal with screen captures?
Hi everybody, I have a lot of images captured with Snagit (computer screens). They are going to be printed in black and white. Usually I do like this: open png file in Photoshop, select Mode to transform in grayscale and save as PSD. Generally I obt
-
Hello Everybody: I am a newbie to SAP ERP. I only got the end-user knowledge about SAP R/3. Could anyone guide me through any of the resources available on the internet for free? Help would surely be appreciated...!! Thanks in advance!! Raja Jeevan K