URGENT: Thousands of OracleCancelThreads
Hi,
we set the query timeouts on statements to
60 seconds usually and after a lot of UPDATEs
and INSERTs our Java (1.2.2) VM has up to
2100 lingering threads with the following stack trace:
"Thread-25197" (TID:0xce67b4, sys_thread_t:0xce6738, state:CW, thread_t:
t@25360, threadID:0xa9603dc8, stack_bottom:0xa9604000, stack_size:0x100000)
prio=5
[1] java.lang.Thread.sleep(Native Method)
[2] oracle.jdbc.d"Thread-25197" (TID:0xce67b4, sys_thread_t:0xce6738, state:CW, thread_t:
t@25360, threadID:0xa9603dc8, stack_bottom:0xa9604000, stack_size:0x100000)
prio=5
[1]java.lang.Thread.sleep(Native Method)
[2]oracle.jdbc.driver.OracleCancelThread.run(OracleCancelThread.java:47)
river.OracleCancelThread.run(OracleCancelThread.java:47)
During the course of execution up to 103,000
such threads are generated, but most of them die, except for those few thousand. Then the VM halts. Meantime, the console throws a lot of:
java.lang.NullPointerException
at oracle.jdbc.driver.OracleStatement.cancel(Compiled Code)
at oracle.jdbc.driver.OracleCancelThread.run(Compiled Code)
This is with the 8.1.6 JDBC thin driver and
Oracle 8.1.5 on Solaris 2.7.
The number of threads left behind can vary between 100 to about 2100 before the VM halts.
The questions are as follows:
1) What's up with the null pointers?
2) When does a cancel thread get created and why would one have anywhere from 100 to 2100 such Oracle threads running?
3) Does Statement.setQueryTimeout() create that thread, and do repeated calls create more threads? What if the argument is zero, i.e. no query timeout? Does the thread exit?
4) Do these threads exit when a connection is closed or garbage collected?
Any fixes in the driver?
Our server keeps connections open all the time to the Oracle server, and we usually create a Statement, set the timeout, execute it and then close() it and set it to null.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC Development Team:
According to JLS any transfer of control out of the try block will execute the finally clasue. So the NullPointerException should not cause a problem. What's more, the NPE is being thrown in a method that is called from the CancelThread run method and the try finally is in Statement. I've looked at that code and there's nothing obvious that even could cause a NPE.
If the problem is ours, I'm starting to believe that it's some kind of race condition between the statement execution and the CancelThread. Do your queries sometimes timeout? If they do that could mean that some of them are completing at about the same time as the CancelThread is attempting to cancel them.
Sorry, I can't post the code.
I was just told that one of our team might have seen this before. I'm trying to get ahold of him.<HR></BLOCKQUOTE>
Yes some queries time out and WELL before the timer should have expired. BUT, there have been numerous cases where no queries timed out, no SQLExceptions were thrown and yet there are hundreds of lingering threads.
I am hoping your colleague may be able to shed some light. I will try to create a small test case but it may be too long to post here. Any change I could get an email address to send directly to? thanks.
Similar Messages
-
How to get rid of Apple Support Community notices? my box is full as I receive thousand of messages a day. I cannot handle it anymore, please it is urgent. Help! I have Mac OS X 10.7.5 and unable to find the "notification tab" in my "preferences" I need a image if possible to better understand. Thanks a lot.
Thank you, but I just tried everything you said, my apple id account (icloud) continues and still is receiving the email from ASC each second. My i phone and macpro (i cloud account) is full of messages that I have difficult to erase at once. I have to do it one by one which can take me the whole day. How can i unsucribe from ASC, just get ride of my account, I mean cancel the ASC account, so I will not get any messages. Please help. Thanks.
-
Select after upgrade 9i - 10g runs slowly thousand times - urgent
I have select which runs around one second on Oracle 9. After upgrade to 10g this select runs more than two hours. I compute statistics on all tables, all columns and all indexes. This select consist from two parts - every part run on oracle 10g around 0.5 second but together more than 2 hours. When I rewrite it using WITH clausule, it runs 2 second. But I don't want to rewrite selects .. I want to find why it runs slow on 10g.
Below are original and rewrited select with their execution plans.
Any idea or recomendation?
Select:
SELECT * FROM (
SELECT DISTINCT from_fix_ident ident, from_ident_icao icao
, latitude1 latitude, longitude1 longitude, from_fix_fea_pk src
, -1 mslink
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink=l_dgn_airway.mslink
UNION ALL
SELECT DISTINCT to_fix_ident ident, to_ident_icao icao
, latitude2 latitude, longitude2 longitude, to_fix_fea_pk src
, -2 mslink
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink=l_dgn_airway.mslink
UNION ALL
SELECT ident, icao, latitude, longitude, 5 src, mslink FROM l_sky_navaid
UNION ALL
SELECT ident, icao, latitude, longitude, 6 src, mslink FROM l_sky_waypoint)
WHERE ident||';'||icao||';'||src IN (
SELECT ident||';'||icao||';'||src FROM (
SELECT from_fix_ident ident
, from_ident_icao icao
, latitude1 latitude
, longitude1 longitude
, from_fix_fea_pk src
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
UNION ALL
SELECT to_fix_ident ident
, to_ident_icao icao
, latitude2 latitude
, longitude2 longitude
, to_fix_fea_pk src
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
MINUS
SELECT ident
, icao
, latitude
, longitude
, 5 src
FROM l_sky_navaid
MINUS
SELECT ident
, icao
, latitude
, longitude
, 6 src
FROM l_sky_waypoint
ORDER BY ident, icao, src, mslink, latitude, longitude;Execution plan:
Plan
SELECT STATEMENT ALL_ROWSCost: 2 003 Bytes: 1 572 402 240 Cardinality: 24 568 785
29 SORT ORDER BY Cost: 2 003 Bytes: 1 572 402 240 Cardinality: 24 568 785
28 FILTER
12 VIEW EUS. Cost: 825 Bytes: 3 522 880 Cardinality: 55 045
11 UNION-ALL
4 HASH UNIQUE Cost: 398 Bytes: 981 948 Cardinality: 22 317
3 HASH JOIN Cost: 142 Bytes: 981 948 Cardinality: 22 317
1 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
2 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
8 HASH UNIQUE Cost: 398 Bytes: 981 948 Cardinality: 22 317
7 HASH JOIN Cost: 143 Bytes: 981 948 Cardinality: 22 317
5 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
6 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
9 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6 Bytes: 57 225 Cardinality: 1 635
10 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22 Bytes: 324 712 Cardinality: 8 776
27 VIEW EUS. Cost: 325 Bytes: 12 042 Cardinality: 446
26 MINUS
23 MINUS
20 SORT UNIQUE Cost: 325 Bytes: 23 128 Cardinality: 446
19 UNION-ALL
15 HASH JOIN Cost: 145 Bytes: 9 812 Cardinality: 223
13 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 89 Bytes: 2 899 Cardinality: 223
14 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
18 HASH JOIN Cost: 146 Bytes: 9 812 Cardinality: 223
16 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 89 Bytes: 2 899 Cardinality: 223
17 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
22 SORT UNIQUE Bytes: 512 Cardinality: 16
21 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6 Bytes: 512 Cardinality: 16
25 SORT UNIQUE Bytes: 2 992 Cardinality: 88
24 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 24 Bytes: 2 992 Cardinality: 88 Rewrited select which run fast:
WITH inselect AS
(SELECT ident || ';' || icao || ';' || src
FROM (SELECT from_fix_ident ident, from_ident_icao icao,
latitude1 latitude, longitude1 longitude,
from_fix_fea_pk src
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
UNION ALL
SELECT to_fix_ident ident, to_ident_icao icao,
latitude2 latitude, longitude2 longitude,
to_fix_fea_pk src
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
MINUS
SELECT ident, icao, latitude, longitude, 5 src
FROM l_sky_navaid
MINUS
SELECT ident, icao, latitude, longitude, 6 src
FROM l_sky_waypoint)),
mainselect AS
(SELECT DISTINCT from_fix_ident ident, from_ident_icao icao,
latitude1 latitude, longitude1 longitude,
from_fix_fea_pk src, -1 mslink
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
UNION ALL
SELECT DISTINCT to_fix_ident ident, to_ident_icao icao,
latitude2 latitude, longitude2 longitude,
to_fix_fea_pk src, -2 mslink
FROM l_sky_airway, l_dgn_airway
WHERE l_sky_airway.mslink = l_dgn_airway.mslink
UNION ALL
SELECT ident, icao, latitude, longitude, 5 src, mslink
FROM l_sky_navaid
UNION ALL
SELECT ident, icao, latitude, longitude, 6 src, mslink
FROM l_sky_waypoint)
SELECT *
FROM mainselect
WHERE ident || ';' || icao || ';' || src IN (SELECT *
FROM inselect)
ORDER BY ident, icao, src, mslink, latitude, longitude;
Plan
SELECT STATEMENT ALL_ROWSCost: 550 336 Bytes: 2 383 172 145 Cardinality: 24 568 785
31 SORT ORDER BY Cost: 550 336 Bytes: 2 383 172 145 Cardinality: 24 568 785
30 HASH JOIN Cost: 2 647 Bytes: 2 383 172 145 Cardinality: 24 568 785
17 VIEW VIEW SYS.VW_NSO_1 Cost: 1 173 Bytes: 1 472 922 Cardinality: 44 634
16 HASH UNIQUE Cost: 1 173 Bytes: 1 205 118 Cardinality: 44 634
15 VIEW EUS. Cost: 828 Bytes: 1 205 118 Cardinality: 44 634
14 MINUS
11 MINUS
8 SORT UNIQUE Cost: 828 Bytes: 2 314 600 Cardinality: 44 634
7 UNION-ALL
3 HASH JOIN Cost: 142 Bytes: 981 948 Cardinality: 22 317
1 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
2 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
6 HASH JOIN Cost: 143 Bytes: 981 948 Cardinality: 22 317
4 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
5 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
10 SORT UNIQUE Bytes: 52 320 Cardinality: 1 635
9 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6 Bytes: 52 320 Cardinality: 1 635
13 SORT UNIQUE Bytes: 298 384 Cardinality: 8 776
12 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22 Bytes: 298 384 Cardinality: 8 776
29 VIEW EUS. Cost: 825 Bytes: 3 522 880 Cardinality: 55 045
28 UNION-ALL
21 HASH UNIQUE Cost: 398 Bytes: 981 948 Cardinality: 22 317
20 HASH JOIN Cost: 142 Bytes: 981 948 Cardinality: 22 317
18 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
19 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
25 HASH UNIQUE Cost: 398 Bytes: 981 948 Cardinality: 22 317
24 HASH JOIN Cost: 143 Bytes: 981 948 Cardinality: 22 317
22 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85 Bytes: 290 121 Cardinality: 22 317
23 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56 Bytes: 691 827 Cardinality: 22 317
26 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6 Bytes: 57 225 Cardinality: 1 635
27 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22 Bytes: 324 712 Cardinality: 8 776 Reformated
Message was edited by:
Vlada
Message was edited by:
VladaVlada,
could you please post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
In SQL*Plus:
SET LINESIZE 130
EXPLAIN PLAN FOR <your statement>;
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);In order to get a better understanding where your statement spends the time you might want to turn on SQL trace as described here:
[When your query takes too long|http://forums.oracle.com/forums/thread.jspa?threadID=501834]
and post the "tkprof" output here, too.
Could you also provide the information which version of 10g you're currently using? (4-digit version number). Note that 10g introduced a couple of significant changes including CPU costing enabled by default and a different default setting of DBMS_STATS regarding column histograms.
So you might want to re-gather the statistics using the method_opt parameter of the DBMS_STATS.GATHER__STATS procedures explicitly defined as "FOR ALL COLUMNS SIZE 1" to mimic the 9i behaviour.
You also might want to try the "OPTIMIZER_FEATURES_ENABLE" session setting set to "9.2.0" in order to find out if any of the new optimizer features could be causing the issue if re-gathering the statistics as suggested above doesn't make a difference.
Do you know if the tables/indexes in your 9i database also had reasonable statistics?
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle:
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/
Edited by: Randolf Geist on Sep 8, 2008 9:32 AM
Added some specific suggestions -
Urgent help required: Query regarding LC Variables
Hi All
Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
export LC_COLLATE=en_US.ISO8859-1
export LC_MESSAGES=C
export LC_MONETARY=en_US.ISO8859-1
export LC_MONETARY=en_US.ISO8859-1
export HZ=100
export LC_CTYPE=en_US.ISO8859-1
export LANG=en_US.UTF-8
Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
1. Can someone please tell me, what each of these variable mean and how these values make a difference.
2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
Appreciate your help in this regard.
Thanks
Amit
Hi All
A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
Request everyone to please give their inputs as it's a bit urgent.
Thanks for all the help in advance.
Thanks
Amit
Some help required please...
Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
Edited by: amitsinhaengg on Jul 22, 2009 2:06 AMLC_CTYPE
Controls the behavior of character handling functions.
LC_TIME
Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
LC_MONETARY
Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
LC_NUMERIC
Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
LC_COLLATE
Specifies a collation order and regular expression definition for the locale.
LC_MESSAGES
Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
You can use command
# locale -k LC_CTYPE
to see more detail about each type. -
Help- Urgent- Multi-folio app not showing all languages
I created a multi-folio app in 6 languages. English the default. English shows up in app store but all the other folios for German, Italian etc don't show up. They are all published and public. I changed my ipad to Italian and I still dont' see Italian as an option. The English showed up. I also submitted the app under all 6 languages when building in App Builder and then created all the language profiles in Itunes connnect.
What's weird now that I think about it in Adobe Publisher online there is nowhere to specify a language or when I uploaded the folios there was no way to specify a language. So I think the problem is that Itunes doesn't see the other 5 languages? I just can't figure out what is wrong here and there is no documentation on the web or from adobe.
Please help as my client is going nuts as am I.
Post here but feel free to email me directly as well as this is urgent.
[Edited at request of poster]
Thanks!Thanks for responding. I'm trying to follow you. Right now only english shows in the viewer but there are 6 folios. There is a different folio for each language, all published and all apart of the app, same ids etc. So, I guess what you are saying is the only way to get those languages to show up is to use is to use filters?
My understanding was if I created a multi-folio with 6 folios they will all show up. But right now only one is showing up for English. All the otherlangues don't show up in the viewer. I have no idea why? Shouldn't all the languages show up? I'm been trying to figure out where is the missing setting.
If you create a multi-folio all folios should show up for everyone regardless of language, right?
Creating different app for each language is not an option. They spent thousands for the professional account to do this. There must be a setting somewhere I'm missing.
I just looked up filters. Was I supposed to use that for the other folios?
Thanks again for helping. -
Okay, here's my three cents worth,
Are you using Forte "Keep Alive" settings? If yes, you may simply have a
time-out.
While a partition is waiting for a reply from a database, it blocks and
won't respond
to anything, including pings to check if it's still alive. So, if the query
takes longer to
complete than the time-out period of the communication manager, then you
will
loose the connection to the partition.
-----Original Message-----
From: Aberdour George [SMTP:george.aberdourdet.nsw.edu.au]
Sent: Sunday, February 13, 2000 11:39 AM
To: 'Babu Raj'; kamranaminyahoo.com
Subject: RE: (forte-users) Hi All....very urgent...Forte doesn't
handle La rge array properly
Hi,
This sounds almost identical to a problem we have experienced.
If it is the same problem it is because you have compiled a back-end
load-balanced partition, but NOT the router that manages it.
With such a configuration, attempts to send greater than a few thousand
rows
will fail - and it doesn't seem to matter what you set -fm to.
You don't see the problem running distributed from your workspace because
everything is interpreted.
So just compile the router and try again.
Hope this helps.
George Aberdour
(George.Aberdourdet.nsw.edu.au)
-----Original Message-----
From: Babu Raj [mailto:ibcsmartboyyahoo.com]
Sent: Saturday, 12 February 2000 7:24
To: kamranaminyahoo.com
Subject: (forte-users) Hi All....very urgent...Forte doesn't handle
Large array properly
Hi All,
Have anyone experienced problem of retrieving
more than 1500 records from the database table, into
the object.
I use dynamic SQL statement, and populating Array
object from the DBDataSet. When it runs from my
workspace distributed, it works fine. But, when I make
deployment, and install on the test bed, I face
Network connection failure from the client machine. It
looks like, server read the data from the Database,
and while packaging it, to send it across to the
client, server seems to run out ouf memory or couldn't
maintain the connection with the client. I tried to
set -fm flag on that partition, and separately setting
FORTE_GC_SPECIAL too, but still no luck.
we have increased, the rollback segment size on
Oracle too, but still no luck.
Appreciate, your suggestions, if you can,
Thank you,
Babu
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.comOkay, here's my three cents worth,
Are you using Forte "Keep Alive" settings? If yes, you may simply have a
time-out.
While a partition is waiting for a reply from a database, it blocks and
won't respond
to anything, including pings to check if it's still alive. So, if the query
takes longer to
complete than the time-out period of the communication manager, then you
will
loose the connection to the partition.
-----Original Message-----
From: Aberdour George [SMTP:george.aberdourdet.nsw.edu.au]
Sent: Sunday, February 13, 2000 11:39 AM
To: 'Babu Raj'; kamranaminyahoo.com
Subject: RE: (forte-users) Hi All....very urgent...Forte doesn't
handle La rge array properly
Hi,
This sounds almost identical to a problem we have experienced.
If it is the same problem it is because you have compiled a back-end
load-balanced partition, but NOT the router that manages it.
With such a configuration, attempts to send greater than a few thousand
rows
will fail - and it doesn't seem to matter what you set -fm to.
You don't see the problem running distributed from your workspace because
everything is interpreted.
So just compile the router and try again.
Hope this helps.
George Aberdour
(George.Aberdourdet.nsw.edu.au)
-----Original Message-----
From: Babu Raj [mailto:ibcsmartboyyahoo.com]
Sent: Saturday, 12 February 2000 7:24
To: kamranaminyahoo.com
Subject: (forte-users) Hi All....very urgent...Forte doesn't handle
Large array properly
Hi All,
Have anyone experienced problem of retrieving
more than 1500 records from the database table, into
the object.
I use dynamic SQL statement, and populating Array
object from the DBDataSet. When it runs from my
workspace distributed, it works fine. But, when I make
deployment, and install on the test bed, I face
Network connection failure from the client machine. It
looks like, server read the data from the Database,
and while packaging it, to send it across to the
client, server seems to run out ouf memory or couldn't
maintain the connection with the client. I tried to
set -fm flag on that partition, and separately setting
FORTE_GC_SPECIAL too, but still no luck.
we have increased, the rollback segment size on
Oracle too, but still no luck.
Appreciate, your suggestions, if you can,
Thank you,
Babu
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
Report painter problem very urgent
Hi to ALL,
I have prepared two reports of cost centre through report painter. The format is proper is both the reports. The set is also correct and values in set(i.e cost centres) are also properly
but when we execute the report one report is being executed properly while other shows zero values. only when i doubleclick on zero amt and go to plan line items then it shows me values for that particular row in report.
Why is it so? what is solution to it? can it be possible that my tables are not correct. Ia m using CCSS table.
Pls this is very urgent
Thanks in advance
TanujaHi
Can you check one thing...after selecting the zero you are getting the line item...chekc the total of that items...if it is coming zero..then no problem.
If not you can check in the no.format of that report. If you select the lacs format and your amount is below ten thousand...you will get the zero value only
VVR -
hi all,
i am having a requirement for a function in oracle.If i pass a number to function if it s decimal (ex 12345.12345 it should give rounded to 2 decimals ie., 12345.12) and thousand seperator with comma ie., 12,345.12.for this number $ should be appended.id $12,345.12.If in case the number is negative the number should be enclosed with paranthesis with $ dollar sign without negative sign.ie., ($12,345.12).
It iss very Urgent can anyone pls help me.
TIA
Raviuser9502062 wrote:
hi all,
i am having a requirement for a function in oracle.If i pass a number to function if it s decimal (ex 12345.12345 it should give rounded to 2 decimals ie., 12345.12) and thousand seperator with comma ie., 12,345.12.for this number $ should be appended.id $12,345.12.If in case the number is negative the number should be enclosed with paranthesis with $ dollar sign without negative sign.ie., ($12,345.12).
It iss very Urgent can anyone pls help me.I'm sure there are other ways to do this, but here you go...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 12345.12 as val from dual union all
2 select -12345.12 as val from dual )
3 -- end of test data
4 select regexp_replace(to_char(val,'fm$999,999.99'),'^-(.*)$','(\1)') as val
5* from t
SQL> /
VAL
$12,345.12
($12,345.12)
SQL>As for it being Urgent, I think Dan has already covered that. -
In Dw database, i have tablespace of 1.2TB size in that used segment only 300GB and rest of 900GB is free space. I am not able to shrink the datafiles it throws me ORA-03297, i run shrink space compact and shrink space based on segment advisor reports in the tablespace and also i rebuilt all objects with alter table move and rebuild indexes, Still i can't reclaim the free space. Tablespace contains partition tables and few IOT partitions objects. Unfortunately in server no free space left to do export and import.
Please advise meuser530956 wrote:
Thanks for reply. i know that it will reload, but there is a new requirement to use the free space for some other purpose. So mandatory i have to shrink
Already i tried with alter table move also.
Is there any option, to free up particular datafile highwater mark ? there is few datafile with 50GB in each, in that used segment only 2 gb. i tried to move from dba_Extents with file_id, but it linked to thousand of objects.What do you mean "tried to move from dba_Extents with file_id"?
By the way, there is no "urgent" here.
"Urgent" means one of two things - people are dying, or you have a revenue producing production system that is down.
(And to get some perspective on the second case, keep the first in mind.)
For the first, you call whatever emergency service seems appropriate.
For the second, you open an SR with Oracle - which requires a paid-up support contract.
You don't have a support contract? Now you know just how much your company values the data.
Edited by: EdStevens on Apr 4, 2010 5:20 PM -
hi all,
i have a problem in my bsp page.
in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
in order to be able to do this, i used java script. and it's already works well.
the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
is there any clue why this happened ?
please help, it's urgent because it's happened in my production system
many thanks in advance
regards
eddhiehi Raja,
thanks for the respond.
the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
for other record, it go to event OnInputProcessing
but just this 1 record it won't go to event OnInputProcessing.
any clue ?
please help
regards -
Perte du catalogue après formatage! aide urgente svp!
Suite à un probleme technique, je n'avais plus fait de sauvgarde de mon catalogue lightroom sur mon disque dur externe depuis bien longtemps... La carte mère de mon mac book pro 17 p a grillé la semaine dernière et le technicien apple aprés avoir procéder aux réparations nécésssaires, a reformaté le disque dur interne.... mais a planté la sauvgarde: ou se trouvait le catalogue lightroom! Il a récupére sur le disque formaté des dossiers XMP ( des dizaines de milliers!) tous en vrac.... Quelqu'un a t'il une solution pour que je puisse utiliser ces fichiers pour recréer une nouvelle bibliothèque à partir des mes raw. Doit-on rebaptiser les fichiers pour qu'ils soient reconnus?Y a t'il une méthode pour retrouver mes données? merci de vos réponses...
Google translate:
Catalog loss after formatting! urgent help please!
Due to a technical problem, I had not made sauvgarde my lightroom catalog on my external hard drive for a long time ... The motherboard of my mac book pro 17 pa grilled last week and after having apple technician perform the repairs nécésssaires, reformatted the internal hard drive .... but planted the sauvgarde: or was the lightroom catalog! He recovers the formatted disk files (XMP tens of thousands!) All loose .... Someone there a solution so that I can use these files to recreate a new library from my raw. Should we rename the files to be recognized? Is there a way to recover my data? thank you for your answers ... -
To Fetch records from database ..in case if there thousands of records
Hi All,
Suppose i have several thousands of records in the database.I want a select statement which can retrieve first 5000 rows and last 5000 rows simultaneously.
Can anybody please tell me how to select it from the database.
Its urgent so hence kindly please let me know .
Thanks,
Neethuselect * from db into table itab
where <condition>
upto 5000 rows
sorted by primary key.
select * from db appending table itab
where <condition>
upto 5000 rows
sorted descending by primary key.
*reward if solved* -
Logical command in ABAP.....Urgent
Hi,
i am pretty new using ABAP program so i neeed help urgently. i am trying to move a file on the application server from one directory to the other and i was using the open dataset function to do that. but the file i am trying to move is pretty big and because i am using internal table to store, it is causing problems with the space.
i have consulted the basis guys and they have managed to create a logical file for copying from one directory to the other on the application server. to help you furthter. i am enclosing the mail sent to me.
I have created a logical command which should copy the file from one location to the other but you need to pass it the source dir and file name and the destination dir and file name.
The logical command is ZCOPY and uses cmd /c copy
Copies one or more files to another location.
COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.
the problem now is i have no idea about how to use the logical command. can any one help me.
Thank you,
Ravi.If memory is not an issue, then there should be no reason why this should not work.
report zrich_0001.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.
data: itab type table of string with header line.
start-of-selection.
* Read old file
open dataset d1 for input in text mode.
if sy-subrc = 0.
do.
read dataset d1 into itab.
if sy-subrc <> 0.
exit.
endif.
append itab.
enddo.
endif.
close dataset d1.
* Write to new file
open dataset d2 for output in text mode.
loop at itab.
transfer itab to d2.
endloop.
close dataset d2.
* Delete the old file
delete dataset d1.
Regards,
Rich Heilman -
Confirmation of balance - urgent
Hi,
We are using print program SAPF130K and SAPF130D for vendor and customer respectively.
My query is can we bring even the cleared items alongwith the open items in the same print program???
Now we have line items of open line items only?? As per our exploration into the program... we get only open items..
Also we are using SAP10 and SAP11 as the correspondence type.Kindly advise as to correspondence type should be changed so that it can print both the open and cleared items?
Please reply ASAP as it is very urgent.
Thanks in advance.
Regards
KarpagamHi,
Use T.Code F.42 FOR Vendor Balances
and F.23 For Customer Balances
Hope this will help u
Regards,
Sarfaraz -
FUNCTION IS NOT WORKING WHEN RUN IN SRW.RUN_REPORT, URGENT
Hi,
I have a report. it has got 1 Query and 2 groups.
Q1
|
|
__G1__
|F1 |
|F2 |
|F3 |
|
|
|
__G2__
|Items|
|Sales|
| Qty|
|Store|
|Func4|
|Func5|
|Func6|
The Query looks like above. Now In the report I have a 3 User parameters . For Each record in G2 the functions Func4,Func5 and Func6 adds the value to the user parameters at the report level.
Now the Func1,Func2,Func3 takes the value of last 4 record for each item at each G1 Level and devides it by 4 and prints . As an example given below
ITEMS-----SALES-------QTY-----------STORE
10001-----10000-------200-------------100
10001-----20000-------500-------------200
10001-----15000-------350-------------175
10001-----45000-------650-------------225
10001-----50000-------700-------------300
AVERAGE==>32500-------550-------------225 ==> Calculated by F1,F2,F3
20001-----70000-------900-------------400
20001-----30000-------600-------------350
20001-----20000-------500-------------300
20001-----25000-------450-------------275
20001-----35000-------550-------------225
20001-----65000-------800-------------400
AVERAGE==>36250-------650-------------300 ==> Avg of last 4 records
This report takes an parameter which is part of the Where condition of the Query Q1. If I run this report from the report builder and provide the value for the parameter then the report runs fine printing the exact values. If I run the report from another report(which I have to do, due to circumstances) using SRW.Run_Report and pass the parameter in the same command. The the function FUNC4, FUNC5, FUNC6 does not do the addition, as a result the Func1,Func2,Func3 returns 0. I dont know why this is happenning .
This is very very URGENT, My project manager is on my head to finish it ASAP. Please help.
Thanks
FerozHi Toby and Danny,
Thanks for the quick reply. I dont think I am having an interdependancy of the functions. Here is an sample what two functions do at each level
Func6 =========> This function at group level G2
begin
-- To initialize the user parameter for each new item.
If :CNT = 1 Then
:Wk4_Pos_Qty := 0;
End If;
-- to add the qty value to the user parameter for last 4 records. Uchange is the no of records for each item
If :CNT >= :UCHANGE - 3 Then
:Wk4_Pos_Qty := :Wk4_Pos_Qty + :Qty;
End If;
return 0;
end;
Func3 ======> this function at group level G1
Begin
-- if no of records are less than 4 then devide by the no of records or devide by 4.
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
Here Wk4_Pos_Qty is the User parameter created to hold the calue for the Um of last 4 records Qty.
I tried to modify the Func3 so that it looks like this
Func3
begin
srw.reference(:Wk4_Pos_Qty);
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
But it does not effect anything. I mean its the same. The Wk4_Pos_Qty returns 0 and Func3 returns 0.
Any Suggestions .
Thanks
Feroz
Maybe you are looking for
-
How do I transfer bookmarks from one computer to another without using the sync feature?
I have used the Belkin transfer cable which did not transfer the bookmarks. I can't find them on my C Drive. I'd like to transfer them manually using a thumb drive but can't without locating the file with the bookmarks. Firefox and its bookmarks are
-
How can i get an overview over my redeemed gift cards on iTunes?
I need an overview for 2011 to find out on which dates I redeemed which gift cards. Is that possible?
-
How can I set up mail in OSX.1?
I have an old iMac flatpanel that I have just repaired and have installed OSX.1.5 on it. How can I set mac mail up to work on it?
-
Wlclient 9.2.4. compatibility with weblogic server 9.2.2
Hello, recently, we found an odd following problem: When client WL application trying to connect to the WL server during the WL server shutdown, then the client is not able to connect to the server anymore. It constatly gets a following error: org.om
-
Creative Cloud and Windows 8.1 issues
Hi. I recently bought a lap top with windows 8 on it. I then installed Creative Cloud and installed some CC apps no problem. Then I updated to 8.1 and now the CC application does not work. All of the apps that I was able to download work fine, it's j