Fine tune below statment showing dump TSV_TNEW_BLOCKS_NO_ROLL_MEMORY
Hi,
below statement giving dump 'TSV_TNEW_BLOCKS_NO_ROLL_MEMORY '
is need to modify below code ? or any other utilitis ?
Selecting Change Pointers
SELECT * FROM bdcp
INTO TABLE it_bdcp
WHERE cretime IN s_time " S_time contain one day range i.e. 20091115011530 to 20091116022040
AND cdobjcl IN ('MAT_FULL' , 'STUE' , 'STUE_V').
Hi Jim,
the dump can be prohibited by changing system parameters and provide more roll memory. But without system changes
you can
- reduce the number of fields sto retrieve from database: Do not use SELECT * as this is translated into list of all available fields including MANDT although it is restricted to the current logon client.
- split the total size of selected records into blocks and process blocks of data.
please refer to online documentation of
... INTO CORRESPONDING FIELDS OF TABLE itab [PACKAGE SIZE n
Regards,
Clemens
Similar Messages
-
Hi,
I am having below two queries. 2nd query is taking more time & it gives time out error. Can anybody tell how to fine tune below query. Thanks.
1st Query.
SELECT EKETEBELN EKETEBELP EKETETENR EKETEINDT
EKETMENGE EKETWEMNG
INTO TABLE I_EKET
FROM EKET
WHERE EKETMENGE <> EKETWEMNG
AND
EKET~EINDT IN S_EINDT.
DESCRIBE TABLE I_EKET LINES V_ZLINES.
IF V_ZLINES > 0.
2nd Query.
SELECT EKKOEBELN EKKOAEDAT EKKOLIFNR EKPOEBELP EKPO~MATNR
EKPO~WERKS
EKPOLOEKZ EKPOELIKZ EKPOTXZ01 EKPONETPR LFA1~NAME1
INTO TABLE I_PODEL
FROM EKKO
INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
INNER JOIN LFA1 ON EKKOLIFNR = LFA1LIFNR
FOR ALL ENTRIES IN I_EKET
WHERE EKKO~EBELN = I_EKET-EBELN AND
EKPO~EBELP = I_EKET-EBELP AND
EKPO~MATNR IN S_MATNR AND
EKPO~WERKS IN S_WERKS AND
EKPO~WERKS NE 'W001' AND
EKKO~EKORG = P_EKORG AND
EKKO~LIFNR IN S_LIFNR AND
EKKO~LOEKZ NE 'X' AND
EKPO~LOEKZ NE 'S' AND
EKPO~ELIKZ NE 'X' AND
EKPO~LOEKZ NE 'L' AND
EKKO~AEDAT IN S_AEDAT.
ELSE.
WRITE 'No POs found for the selection criteria!'.
ENDIF.Not the right forum to ask this question.
VJ -
I tunes at launch shows (-42110) code error and doesní reconize or sync wirT. Ipod
I tunes at launch shows (-42110) code error and doesní reconize or sync with. Ipod
Could get me some help?Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
http://support.apple.com/kb/TS3694
Solution below.
Error 9
This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software. -
Hi, Everyone,
My oracle database version is oracle 11.2.0.1.
I am running this procedure in a pl/sql package. When i the process comes to running this process it does not come back. Could you please help me to fine tune this procedure
PROCEDURE ICM_MIN_PR_DIFF
(V_LOW IN NUMBER,
V_UP IN NUMBER)
AS
L_INS_TABLE VARCHAR2(4000);
L_QRY_1_PART VARCHAR2(4000);
L_QRY_2_PART VARCHAR2(4000);
L_QRY_3_PART VARCHAR2(4000);
L_QRY_POPULATE VARCHAR2(4000);
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE ICM_MIN_PRDIFF_0';
L_QRY_1_PART := ' select a.customer_no,a.pr_code_bbl,a.score,min(b.price_diff) price_diff, a.flag
from ICM_MAX_SCORE_0 a, icm b
where
a.customer_no = b.customer_no
and a.pr_code_bb=b.pr_code_bb
and a.score = b.score
and a.flag = b.flag
and b.price_diff > 0
and b.score >=0.5
and b.flag = 0
and b.price_diff > ';
L_QRY_2_PART := ' AND b.price_diff <= ';
L_QRY_3_PART := ' GROUP BY a.customer_no,a.pr_code_bb,a.score,a.flag ';
L_QRY_POPULATE := L_QRY_1_PART || V_LOW ||L_QRY_2_PART || V_UP || L_QRY_3_PART;
--Construct Insertion Statment by appending the Query Statement
L_INS_TABLE := 'INSERT /*APPEND */ INTO ICM_MIN_PRDIFF_0 ' ||
L_QRY_POPULATE;
--DBMS_OUTPUT.PUT_LINE(L_INS_TABLE);
DBMS_OUTPUT.PUT_LINE('POPULATED ICM_MIN_PRDIFF_0');
EXECUTE IMMEDIATE L_INS_TABLE;
COMMIT;
END ICM_MIN_PR_DIFF;
The following is the explain plan for the query
plan FOR succeeded.
PLAN_TABLE_OUTPUT
Plan hash value: 636749222
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | INSERT STATEMENT | | 1390K| 132M| | 1796K (1)| 05:59:13 |
| 1 | LOAD TABLE CONVENTIONAL | ICM_MIN_PRDIFF_0 | | | | | |
| 2 | HASH GROUP BY | | 1390K| 132M| 155M| 1796K (1)| 05:59:13 |
|* 3 | HASH JOIN | | 1390K| 132M| 68M| 1764K (1)| 05:52:54 |
|* 4 | TABLE ACCESS FULL | ICM_MAX_SCORE_0 | 1390K| 53M| | 2478 (1)| 00:00:30 |
|* 5 | TABLE ACCESS FULL | ICM | 10M| 611M| | 1722K (1)| 05:44:26 |
Predicate Information (identified by operation id):
3 - access("A"."CUSTOMER_NO"="B"."CUSTOMER_NO" AND "A"."PR_CODE_BB"="B"."PR_CODE_BB" AND
"A"."SCORE"="B"."SCORE" AND "A"."FLAG"="B"."FLAG")
4 - filter("A"."FLAG"=0 AND "A"."SCORE">=0.5)
5 - filter("B"."PRICE_DIFF"<=10 AND "B"."SCORE">=0.5 AND "B"."PRICE_DIFF">0 AND "B"."FLAG"=0)
20 rows selected
select count(1) from ICM_MAX_SCORE_0 = 1390409
select count(1) from ICM = 586260240please look at the explain plan for the sql after implementing your advice
explain plan for
insert /*+ append */ into ICM_MIN_PRDIFF_0 (customer_no,pr_code_bb,score,price_diff,flag)
select a.customer_no,a.pr_code_bb,a.score,min(b.price_diff) price_diff, a.flag
from ICM_MAX_SCORE_0 a, icm b
where a.customer_no = b.customer_no
and a.pr_code_bb=b.pr_code_bb
and a.score = b.score
and a.flag = b.flag
and b.price_diff > 0
and b.score >=0.5
and b.flag = 0
and b.price_diff > 0
AND b.price_diff <= 10
GROUP BY a.customer_no,a.pr_code_bb,a.score,a.flag ;
SELECT * FROM TABLE(dbms_xplan.display);
plan FOR succeeded.
PLAN_TABLE_OUTPUT
Plan hash value: 4089758326
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | INSERT STATEMENT | | 1390K| 132M| | 1796K (1)| 05:59:13 |
| 1 | LOAD AS SELECT | ICM_MIN_PRDIFF_0 | | | | | |
| 2 | HASH GROUP BY | | 1390K| 132M| 155M| 1796K (1)| 05:59:13 |
|* 3 | HASH JOIN | | 1390K| 132M| 68M| 1764K (1)| 05:52:54 |
|* 4 | TABLE ACCESS FULL| ICM_MAX_SCORE_0 | 1390K| 53M| | 2478 (1)| 00:00:30 |
|* 5 | TABLE ACCESS FULL| ICM | 10M| 611M| | 1722K (1)| 05:44:26 |
Predicate Information (identified by operation id):
3 - access("A"."CUSTOMER_NO"="B"."CUSTOMER_NO" AND "A"."PR_CODE_BB"="B"."PR_CODE_BB" AND
"A"."SCORE"="B"."SCORE" AND "A"."FLAG"="B"."FLAG")
4 - filter("A"."FLAG"=0 AND "A"."SCORE">=0.5)
5 - filter("B"."PRICE_DIFF"<=10 AND "B"."SCORE">=0.5 AND "B"."PRICE_DIFF">0 AND "B"."FLAG"=0)
20 rows selected -
Dear All,
I am using 11g version. The query given below.
Sample Data:
Table1: KEY ( It has 4 million records and DUR_UK column is unique key)
PK
DUR_UK
1
BD|4|J650|01AB|0001LLA|N01005309106|01003014101|0H9ZN|0HB0T|6970189|30748R2|001000
2
BD|506001022502|06076001901|0G1GF|0HB0T|7270478|2035772C91|000100
3
BD|J08005852109|10004001301|0HB0T|6971058|3551787C91|000100|03-MAY-10|31-DEC-99|3551787C91
Table2: Section (It has 12k records)
Column: FVC
Data: OHBOT
In table 1, there are 3 types of order for bold and underlined data. I need to get the PK, JVC from KEY table by JOINING with Section table based on bold and underlined field with FVC column.
I tired with below query but it takes long time and didnt complete. Becoz it go thru 4 million records 3 times.
SELECT A.PK,B.JVC
FROM SECTION B
INNER JOIN KEY A
ON (REGEXP_SUBSTR(A.DUR_UK,'[^|]+',1,9) = B.FVC OR REGEXP_SUBSTR(A.DUR_UK,'[^|]+',1,5) = B.FVC OR REGEXP_SUBSTR(A.DUR_UK,'[^|]+',1,4) = B.FVC;
The output could be like.
PK JVC
1 OHBOT
2 OHBOT
3 OHBOT
Can someone please help me out to fine tune.
ThanksHi,
In a relational database, each column of each row should contain 1 piece of information, not a delimted list of several items. This is so basic to database design that it's called First Normal Form. Relational database are designed to work with data that is in First Normal Form. Your table was not designed to work well, and it seems to be doing exactly what it was designed for. This problem (and many others, no doubt) would be much simpler and much faster if each of the |-delimited items was on a separate row.
If you must use the current design, avoid regular expressions. You don't need all the power of regular expressions in this problem; you can get the results you need faster using less powerful tools, such as LIKE, INSTR and SUBSTR.
Depending on your data and your requirements, you might try something like this:
WITH got_pos AS
SELECT k.pk, k.dur_uk
, s.jvc, s.fvc
, INSTR (k.dur_uk, '|', 1, 3) AS pos3
, INSTR (k.dur_uk, '|', 1, 4) AS pos4
, INSTR (k.dur_uk, '|', 1, 5) AS pos5
, INSTR (k.dur_uk, '|', 1, 8) AS pos8
, INSTR (k.dur_uk, '|', 1, 9) AS pos9
FROM section s
JOIN key k ON k.dur_uk LIKE '%|' || s.fvc || '|%'
SELECT pk, jvc
FROM got_pos
WHERE fvc IN ( SUBSTR (dur_uk, pos3 + 1, pos4 - (pos3 + 1))
, SUBSTR (dur_uk, pos4 + 1, pos5 - (pos4 + 1))
, SUBSTR (dur_uk, pos8 + 1, pos9 - (pos8 + 1))
Of course, without any sample data, I can't test this.
Oracle Text might help with this problem. I don't use it myself, but I believe it allows you to create indexes so that it's faster to find keywords (such as anyhting in section.fvc) anywhere in large strings (such as key.dur_uk). -
Hi , I would like to ask the expert here..how could i fine tune the below query..now it return data within 60 seconds. however my client require the data should return <5 second
SELECT DECODE (CURR.START_DATE, '', PREV.START_DATE, CURR.START_DATE) START_DATE,
DECODE (CURR.START_HOUR, '', PREV.START_HOUR, CURR.START_HOUR) START_HOUR,
DECODE (CURR.IN_PARTNER, '', PREV.IN_PARTNER, CURR.IN_PARTNER) IN_PARTNER,
DECODE (CURR.OUT_PARTNER, '', PREV.OUT_PARTNER, CURR.OUT_PARTNER) OUT_PARTNER,
DECODE (CURR.SUBSCRIBER_TYPE, '', PREV.SUBSCRIBER_TYPE, CURR.SUBSCRIBER_TYPE) SUBSCRIBER_TYPE,
DECODE (CURR.TRAFFIC_TYPE, '', PREV.TRAFFIC_TYPE, CURR.TRAFFIC_TYPE) TRAFFIC_TYPE,
DECODE (CURR.EVENT_TYPE, '', PREV.EVENT_TYPE, CURR.EVENT_TYPE) EVENT_TYPE,
DECODE (CURR.INTERVAL_PERIOD, '', PREV.INTERVAL_PERIOD, CURR.INTERVAL_PERIOD) INTERVAL_PERIOD,
--DECODE (CURR.THRESHOLD, '', PREV.THRESHOLD, CURR.THRESHOLD) THRESHOLD,
DECODE (CURR.CALLED_NO_GRP, '', PREV.CALLED_NO_GRP, CURR.CALLED_NO_GRP) CALLED_NO_GRP,
SUM (DECODE (CURR.EVENT_COUNT, '', 0, CURR.EVENT_COUNT)) EVENT_COUNT,
--SUM (DECODE (CURR.EVENT_DURATION, '', 0, CURR.EVENT_DURATION)) EVENT_DURATION,
--SUM (DECODE (CURR.DATA_VOLUME, '', 0, CURR.DATA_VOLUME)) DATA_VOLUME,
--AVG (DECODE (CURR.AVERAGE_DURATION, '', 0, CURR.AVERAGE_DURATION)) AVERAGE_DURATION,
SUM (DECODE (PREV.EVENT_COUNT_PREV, '', 0, PREV.EVENT_COUNT_PREV)) EVENT_COUNT_PREV,
--SUM ( DECODE (PREV.EVENT_DURATION_PREV, '', 0, PREV.EVENT_DURATION_PREV)) EVENT_DURATION_PREV,
--SUM (DECODE (PREV.DATA_VOLUME_PREV, '', 0, PREV.DATA_VOLUME_PREV)) DATA_VOLUME_PREV,
--AVG ( DECODE (PREV.AVERAGE_DURATION_PREV, '', 0, PREV.AVERAGE_DURATION_PREV)) AVERAGE_DURATION_PREV,
ABS ( SUM (DECODE (CURR.EVENT_COUNT, '', 0, CURR.EVENT_COUNT)) - SUM ( DECODE (PREV.EVENT_COUNT_PREV, '', 0, PREV.EVENT_COUNT_PREV))) EVENT_COUNT_DIFF
FROM ------------------------------- CURR
(SELECT START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
--rd_thr.param_value THRESHOLD,
rd.param_value INTERVAL_PERIOD,
CALLED_NO_GRP,
--SUM (DATA_VOLUME) AS DATA_VOLUME,
--SUM (EVENT_DURATION) AS EVENT_DURATION,
--DECODE ( SUM (NVL (EVENT_COUNT / 1000000, 0)), 0, 0, ROUND ( SUM (EVENT_DURATION / 1000000) / SUM (NVL (EVENT_COUNT / 1000000, 0)), 2)) AS AVERAGE_DURATION,
SUM (EVENT_COUNT) AS EVENT_COUNT
FROM MSC_OUT_AGG,
raid_t_parameters rd,
raid_t_parameters rd_min,
raid_t_parameters rd_max,
raid_t_parameters rd_thr
WHERE TRUNC (SYSDATE - TO_DATE (START_DATE, 'YYYYMMDD')) <= rd_min.param_value
AND rd_min.param_id = 'histMD_IN_MSC'
AND rd_min.param_id2 = 'DASHBOARD_THRESHOLD_MIN'
AND rd.param_id = 'histMD_IN_MSC'
AND rd.param_id2 = 'INTERVAL_PERIOD'
AND rd_max.param_id = 'histMD_IN_MSC'
AND rd_max.param_id2 = 'DASHBOARD_THRESHOLD_MAX'
AND rd_thr.param_id = 'histMD_IN_MSC'
AND rd_thr.param_id2 = 'PER_THRESHOLD_W'
AND TO_DATE (START_DATE, 'YYYYMMDD') < SYSDATE - rd_max.param_value
AND SOURCE = 'MD_IN_MSC_HUA'
GROUP BY START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value,
CALLED_NO_GRP,
rd_thr.param_value
) CURR
FULL OUTER JOIN
---------------------------------- PREV --------------------------
SELECT TO_CHAR ( TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')), 'YYYYMMDD') START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value INTERVAL_PERIOD,
CALLED_NO_GRP,
--rd_thr.param_value THRESHOLD,
SUM (EVENT_COUNT) AS EVENT_COUNT_PREV
--SUM (EVENT_DURATION) AS EVENT_DURATION_PREV,
--DECODE ( SUM (NVL (EVENT_COUNT / 1000000, 0)), 0, 0, ROUND ( SUM (EVENT_DURATION / 1000000) / SUM (NVL (EVENT_COUNT / 1000000, 0)), 2)) AS AVERAGE_DURATION_PREV,
--SUM (DATA_VOLUME) AS DATA_VOLUME_PREV
FROM MSC_OUT_AGG,
raid_t_parameters rd,
raid_t_parameters rd_min,
raid_t_parameters rd_max,
raid_t_parameters rd_thr
WHERE TRUNC ( SYSDATE - TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD'))) <= rd_min.param_value
AND rd.param_id = 'histMD_IN_MSC'
AND rd.param_id2 = 'INTERVAL_PERIOD'
AND rd_min.param_id = 'histMD_IN_MSC'
AND rd_min.param_id2 = 'DASHBOARD_THRESHOLD_MIN'
AND rd_max.param_id = 'histMD_IN_MSC'
AND rd_max.param_id2 = 'DASHBOARD_THRESHOLD_MAX'
AND rd_thr.param_id = 'histMD_IN_MSC'
AND rd_thr.param_id2 = 'PER_THRESHOLD_W'
AND TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')) < SYSDATE - rd_max.param_value
AND SOURCE = 'MD_IN_MSC_HUA'
GROUP BY TO_CHAR ( TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')), 'YYYYMMDD'),
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value,
CALLED_NO_GRP,
rd_thr.param_value
) PREV
-------------------------- join ------------------
ON ( CURR.START_DATE = PREV.START_DATE
AND CURR.START_HOUR = PREV.START_HOUR
AND CURR.IN_PARTNER = PREV.IN_PARTNER
AND CURR.OUT_PARTNER = PREV.OUT_PARTNER
AND CURR.SUBSCRIBER_TYPE = PREV.SUBSCRIBER_TYPE
AND CURR.TRAFFIC_TYPE = PREV.TRAFFIC_TYPE
AND CURR.INTERVAL_PERIOD = PREV.INTERVAL_PERIOD
--AND CURR.THRESHOLD = PREV.THRESHOLD
AND CURR.EVENT_TYPE = PREV.EVENT_TYPE
AND CURR.CALLED_NO_GRP = PREV.CALLED_NO_GRP)
GROUP BY DECODE (CURR.START_DATE, '', PREV.START_DATE, CURR.START_DATE),
DECODE (CURR.START_HOUR, '', PREV.START_HOUR, CURR.START_HOUR),
DECODE (CURR.IN_PARTNER, '', PREV.IN_PARTNER, CURR.IN_PARTNER),
DECODE (CURR.OUT_PARTNER, '', PREV.OUT_PARTNER, CURR.OUT_PARTNER),
DECODE (CURR.SUBSCRIBER_TYPE, '', PREV.SUBSCRIBER_TYPE, CURR.SUBSCRIBER_TYPE),
DECODE (CURR.TRAFFIC_TYPE, '', PREV.TRAFFIC_TYPE, CURR.TRAFFIC_TYPE),
DECODE (CURR.INTERVAL_PERIOD, '', PREV.INTERVAL_PERIOD, CURR.INTERVAL_PERIOD),
--DECODE (CURR.THRESHOLD, '', PREV.THRESHOLD, CURR.THRESHOLD),
DECODE (CURR.EVENT_TYPE, '', PREV.EVENT_TYPE, CURR.EVENT_TYPE),
DECODE (CURR.CALLED_NO_GRP, '', PREV.CALLED_NO_GRP, CURR.CALLED_NO_GRP);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------I changed to query as below, however the performance not much difference compare to original
WITH CURR AS
SELECT /*+ MATERIALIZE */ START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
--rd_thr.param_value THRESHOLD,
rd.param_value INTERVAL_PERIOD,
CALLED_NO_GRP,
--SUM (DATA_VOLUME) AS DATA_VOLUME,
--SUM (EVENT_DURATION) AS EVENT_DURATION,
--DECODE ( SUM (NVL (EVENT_COUNT / 1000000, 0)), 0, 0, ROUND ( SUM (EVENT_DURATION / 1000000) / SUM (NVL (EVENT_COUNT / 1000000, 0)), 2)) AS AVERAGE_DURATION,
SUM (EVENT_COUNT) AS EVENT_COUNT
FROM MSC_OUT_AGG,
raid_t_parameters rd,
raid_t_parameters rd_min,
raid_t_parameters rd_max,
raid_t_parameters rd_thr
WHERE TRUNC (SYSDATE - TO_DATE (START_DATE, 'YYYYMMDD')) <= rd_min.param_value
AND rd_min.param_id = 'histMD_IN_MSC'
AND rd_min.param_id2 = 'DASHBOARD_THRESHOLD_MIN'
AND rd.param_id = 'histMD_IN_MSC'
AND rd.param_id2 = 'INTERVAL_PERIOD'
AND rd_max.param_id = 'histMD_IN_MSC'
AND rd_max.param_id2 = 'DASHBOARD_THRESHOLD_MAX'
AND rd_thr.param_id = 'histMD_IN_MSC'
AND rd_thr.param_id2 = 'PER_THRESHOLD_W'
AND TO_DATE (START_DATE, 'YYYYMMDD') < SYSDATE - rd_max.param_value
AND SOURCE = 'MD_IN_MSC_HUA'
GROUP BY START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value,
CALLED_NO_GRP,
rd_thr.param_value
), PREV AS
SELECT /*+ MATERIALIZE */ TO_CHAR ( TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')), 'YYYYMMDD') START_DATE,
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value INTERVAL_PERIOD,
CALLED_NO_GRP,
--rd_thr.param_value THRESHOLD,
SUM (EVENT_COUNT) AS EVENT_COUNT_PREV
--SUM (EVENT_DURATION) AS EVENT_DURATION_PREV,
--DECODE ( SUM (NVL (EVENT_COUNT / 1000000, 0)), 0, 0, ROUND ( SUM (EVENT_DURATION / 1000000) / SUM (NVL (EVENT_COUNT / 1000000, 0)), 2)) AS AVERAGE_DURATION_PREV,
--SUM (DATA_VOLUME) AS DATA_VOLUME_PREV
FROM MSC_OUT_AGG,
raid_t_parameters rd,
raid_t_parameters rd_min,
raid_t_parameters rd_max,
raid_t_parameters rd_thr
WHERE TRUNC ( SYSDATE - TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD'))) <= rd_min.param_value
AND rd.param_id = 'histMD_IN_MSC'
AND rd.param_id2 = 'INTERVAL_PERIOD'
AND rd_min.param_id = 'histMD_IN_MSC'
AND rd_min.param_id2 = 'DASHBOARD_THRESHOLD_MIN'
AND rd_max.param_id = 'histMD_IN_MSC'
AND rd_max.param_id2 = 'DASHBOARD_THRESHOLD_MAX'
AND rd_thr.param_id = 'histMD_IN_MSC'
AND rd_thr.param_id2 = 'PER_THRESHOLD_W'
AND TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')) < SYSDATE - rd_max.param_value
AND SOURCE = 'MD_IN_MSC_HUA'
GROUP BY TO_CHAR ( TRUNC ( rd.param_value + TO_DATE (START_DATE, 'YYYYMMDD')), 'YYYYMMDD'),
START_HOUR,
IN_PARTNER,
OUT_PARTNER,
SUBSCRIBER_TYPE,
TRAFFIC_TYPE,
EVENT_TYPE,
rd.param_value,
CALLED_NO_GRP,
rd_thr.param_value
SELECT /*+ USE_HASH(T1 T2) */ DECODE (CURR.START_DATE, '', PREV.START_DATE, CURR.START_DATE) START_DATE,
DECODE (CURR.START_HOUR, '', PREV.START_HOUR, CURR.START_HOUR) START_HOUR,
DECODE (CURR.IN_PARTNER, '', PREV.IN_PARTNER, CURR.IN_PARTNER) IN_PARTNER,
DECODE (CURR.OUT_PARTNER, '', PREV.OUT_PARTNER, CURR.OUT_PARTNER) OUT_PARTNER,
DECODE (CURR.SUBSCRIBER_TYPE, '', PREV.SUBSCRIBER_TYPE, CURR.SUBSCRIBER_TYPE) SUBSCRIBER_TYPE,
DECODE (CURR.TRAFFIC_TYPE, '', PREV.TRAFFIC_TYPE, CURR.TRAFFIC_TYPE) TRAFFIC_TYPE,
DECODE (CURR.EVENT_TYPE, '', PREV.EVENT_TYPE, CURR.EVENT_TYPE) EVENT_TYPE,
DECODE (CURR.INTERVAL_PERIOD, '', PREV.INTERVAL_PERIOD, CURR.INTERVAL_PERIOD) INTERVAL_PERIOD,
--DECODE (CURR.THRESHOLD, '', PREV.THRESHOLD, CURR.THRESHOLD) THRESHOLD,
DECODE (CURR.CALLED_NO_GRP, '', PREV.CALLED_NO_GRP, CURR.CALLED_NO_GRP) CALLED_NO_GRP,
SUM (DECODE (CURR.EVENT_COUNT, '', 0, CURR.EVENT_COUNT)) EVENT_COUNT,
--SUM (DECODE (CURR.EVENT_DURATION, '', 0, CURR.EVENT_DURATION)) EVENT_DURATION,
--SUM (DECODE (CURR.DATA_VOLUME, '', 0, CURR.DATA_VOLUME)) DATA_VOLUME,
--AVG (DECODE (CURR.AVERAGE_DURATION, '', 0, CURR.AVERAGE_DURATION)) AVERAGE_DURATION,
SUM (DECODE (PREV.EVENT_COUNT_PREV, '', 0, PREV.EVENT_COUNT_PREV)) EVENT_COUNT_PREV,
--SUM ( DECODE (PREV.EVENT_DURATION_PREV, '', 0, PREV.EVENT_DURATION_PREV)) EVENT_DURATION_PREV,
--SUM (DECODE (PREV.DATA_VOLUME_PREV, '', 0, PREV.DATA_VOLUME_PREV)) DATA_VOLUME_PREV,
--AVG ( DECODE (PREV.AVERAGE_DURATION_PREV, '', 0, PREV.AVERAGE_DURATION_PREV)) AVERAGE_DURATION_PREV,
ABS ( SUM (DECODE (CURR.EVENT_COUNT, '', 0, CURR.EVENT_COUNT)) - SUM ( DECODE (PREV.EVENT_COUNT_PREV, '', 0, PREV.EVENT_COUNT_PREV))) EVENT_COUNT_DIFF
FROM CURR
FULL OUTER JOIN
PREV
ON ( CURR.START_DATE = PREV.START_DATE
AND CURR.START_HOUR = PREV.START_HOUR
AND CURR.IN_PARTNER = PREV.IN_PARTNER
AND CURR.OUT_PARTNER = PREV.OUT_PARTNER
AND CURR.SUBSCRIBER_TYPE = PREV.SUBSCRIBER_TYPE
AND CURR.TRAFFIC_TYPE = PREV.TRAFFIC_TYPE
AND CURR.INTERVAL_PERIOD = PREV.INTERVAL_PERIOD
--AND CURR.THRESHOLD = PREV.THRESHOLD
AND CURR.EVENT_TYPE = PREV.EVENT_TYPE
AND CURR.CALLED_NO_GRP = PREV.CALLED_NO_GRP)
GROUP BY DECODE (CURR.START_DATE, '', PREV.START_DATE, CURR.START_DATE),
DECODE (CURR.START_HOUR, '', PREV.START_HOUR, CURR.START_HOUR),
DECODE (CURR.IN_PARTNER, '', PREV.IN_PARTNER, CURR.IN_PARTNER),
DECODE (CURR.OUT_PARTNER, '', PREV.OUT_PARTNER, CURR.OUT_PARTNER),
DECODE (CURR.SUBSCRIBER_TYPE, '', PREV.SUBSCRIBER_TYPE, CURR.SUBSCRIBER_TYPE),
DECODE (CURR.TRAFFIC_TYPE, '', PREV.TRAFFIC_TYPE, CURR.TRAFFIC_TYPE),
DECODE (CURR.INTERVAL_PERIOD, '', PREV.INTERVAL_PERIOD, CURR.INTERVAL_PERIOD),
--DECODE (CURR.THRESHOLD, '', PREV.THRESHOLD, CURR.THRESHOLD),
DECODE (CURR.EVENT_TYPE, '', PREV.EVENT_TYPE, CURR.EVENT_TYPE),
DECODE (CURR.CALLED_NO_GRP, '', PREV.CALLED_NO_GRP, CURR.CALLED_NO_GRP); -
Can I fine tune the Ken Burns effect?
I'm using iPhoto 6 for the first time - making a slide show. I turned off the default Ken Burns effect for all slides, but I'm manually setting the KB effect on some slides. I like the ability to specify the starting view and the ending view - such as starting the view with a close-up of a bottle of wine, then zooming back to show the table full of food and the people around it, but....
Is it possible to "fine tune" the KB effect as follows: Have it show the starting view for a specified period of time (e.g. one second), then specify the transition time (e.g. 3 seconds), then have it show the final view for a specified period of time (e.g. 2 seconds).
I.e., I'd like to set up the KB effect so that it "lingers" on the starting view and ending view for a time period that I specify. Is this possible? (If not, this would be a great feature to add in a future release.)You can kinda do that in iPhoto. It's possible to set individual slide display times with the Adjust pane in the slideshow mode if you don't have the Fit slideshow to Music option selected. You can also set transitions and speed of transition.
To get music to end at the end you will have to estimate the time of the slideshow and use music with a time close to that time. I use a blank, black slide at the end of my slideshow so that the music will end to a blank screen if I miss the timing a bit instead of starting over.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard. -
II bought an album and it downloaded on my Iphone but in itunes on my computer, only the digital booklet downloaded. If I go to the I tunes store it shows as purchased and therefore I can't download it again. Please help
Hi cruzansingerboi,
Welcome to Apple Support Communities.
It sounds like you've downloaded tracks on your iPhone and you want to download those same tracks on your PC. The article linked below will walk you through downloading previously purchased tracks on another device.
Download past purchases
http://support.apple.com/kb/HT2519
You can also transfer the purchased content from your iOS device to your computer, as shown here:
iTunes Store: Transfer purchases from your iOS device or iPod to a computer
http://support.apple.com/kb/HT1848
And, you may be interested in enabling Automatic Downloads of purchased content on your devices.
iTunes Store: How to enable Automatic Downloads
http://support.apple.com/kb/HT4539
I hope this helps.
-Jason -
How to fine tune your GUI?
Hello!
I am pretty new at Java and i have search for information about how to fine tune your GUI but have not found anything.
Last time when i wrote a program with a GUI I manually placed out all the widgets. This time I was thinking to give the layotmanager another go. But when I do I cant seem to easly place things exactly where I whant.
For instance in this code, all my buttons are to the left in the boarder layout north part.
I whant to learn:
How do I move all the buttons to the right, little further down, etcetera to my specifications
Please if someone could provide me a link to a website, tip on what I need to search for. So I can learn how to do this when you mix diffrent layoutmanager in one GUI.
Example of my code:
//Import java library
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
public class View_Inlupp2 {
//*****GUI Components
//Menu File Items
private JMenuItem New = new JMenuItem("New");
private JMenuItem Open = new JMenuItem("Open");
private JMenuItem Save = new JMenuItem("Save");
private JMenuItem Save_As = new JMenuItem("Save as");
//Menu Operations Items
private JMenuItem Find_Route = new JMenuItem("Find Route");
private JMenuItem Show_Connections = new JMenuItem("Show Connections");
private JMenuItem New_Place = new JMenuItem("New Place");
private JMenuItem New_Connection = new JMenuItem("New Connection");
private JMenuItem Change_Connection = new JMenuItem("Change Connection");
//Top field
private JButton Find_RouteBtn = new JButton("Find Route");
private JButton Show_ConnectionsBtn = new JButton("Show Connections");
private JButton New_PlaceBtn = new JButton("New Place");
private JButton New_ConnectionBtn = new JButton("New Connection");
private JButton Change_ConnectionBtn = new JButton("Change Connection");
//Left side
//Center
public View_Inlupp2() {
//Create and show the GUI.
createAndShowGUI();
//**********GUI Structure
private JPanel createContentPane() {
//Create the JPanel where we will put everything on
JPanel totalGUI = new JPanel();
//Set totalGui to have a BorderLayout with a horizontal
//gap of 10 and a vertical gap of 10 between each widget
totalGUI.setLayout(new BorderLayout(10, 10));
//*****Top Field
//Create a holder for the buttons with a BoxLayout.LINE_AXIS
JPanel top = new JPanel();
top.setLayout(new BoxLayout(top, BoxLayout.LINE_AXIS));
top.add(Find_RouteBtn);
top.add(Show_ConnectionsBtn);
top.add(New_PlaceBtn);
top.add(New_ConnectionBtn);
top.add(Change_ConnectionBtn);
//*****Put our GUI together and add all the widgets to our totalGUI
totalGUI.add(top, BorderLayout.NORTH);
totalGUI.setOpaque(true);
return totalGUI;
private JMenuBar createMenuBar() {
//Create a menuBar
JMenuBar menuBar = new JMenuBar();
//Create menus
JMenu File = new JMenu("File");
JMenu Operations = new JMenu("Operations");
//Add menus to menuBar
menuBar.add(File);
menuBar.add(Operations);
//Add menuItems to the File menu
File.add(New);
File.add(Open);
File.add(Save);
File.add(Save_As);
//Add menuItems to the Operations menu
Operations.add(Find_Route);
Operations.add(Show_Connections);
Operations.add(New_Place);
Operations.add(New_Connection);
Operations.add(Change_Connection);
return menuBar;
//**********Create the window frame
//Create the frame and add the created content pane.
private void createAndShowGUI() {
JFrame.setDefaultLookAndFeelDecorated(true); //The program look the same on Windows, Mac and Linux
JFrame frame = new JFrame("Inlupp2");
//Set the ContentPane, menuBar, and the settings for our window
frame.setContentPane(createContentPane());
frame.setJMenuBar(createMenuBar());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(1024, 640);
//frame.setResizable(false);
frame.setVisible(true);
//**********Interaction
//Add the ActionListener passed by the Controller to each of the buttons
public void buttonActionListeners(ActionListener al) {
}//End buttonActionListener
}//End classFirst of all, learn and use proper Java naming conventions. All text books, tutorial and code examples on the forums use these naming conventions. So don't make up your own. Variable names should NOT start with an upper case character.
By default a JPanel uses a FlowLayout. Read the API to learn how to change the default left alignment to center or right.
If you want extra space around a panel you can use an EmptyBorder.
Both of these topics are covered in the Swing tutorial and you've been given the link to the tutorial in the past.
Also, the code you posted is not executable so we can't see the problems you attempt to descripe.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://sscce.org], that demonstrates the incorrect behaviour. -
I have a pc running windows 7. I got an Airport Extreme 802.11n Wi-Fi and the printer is now plugged into the Airport. The Airport works fine but the printer shows as offline in control panel and in word. The printer is a HP LaserJet CP1525nw.
+For now I have it set to Share Public IP address - Is this correct for my Network Setup with The Airport Extreme being the only router being used ?+
This would be the correct setting if the AirPort Extreme is connected to a simple modem (one ethernet port).
*Settings I have Enabled*
5 GHz name indicates that you have elected to use the option to assign a separate name to the 5 GHz network. This will allow you to "tell" compatible computers to connect to that network, rather than the slower 2.4 GHz network
Use Wide Channels is recommended for 5 GHz operation.
Interference Robustness often does more harm than good and should not be used unless you know you are in a area with a lot of wireless networks and you feel that your network is experiencing interference issues from a nearby network. -
using flex pitch is there a way to fine tune the start point .i'm using it as a audio to midi function
Thank you for your reply Karsten but unfortunately this didn't help me so far. Or maybe I'm missing something?
First the link is a tutorial for iMovie on a Mac. I'm using iMovie on iPad so the steps are inapplicable.
Second it is only possible for me to manipulate the end part of the sound clip to whichever duration I want. But I can't do the same with the 'beginning' of the sound clip.
I simply want to place some photos in the beginning of my video with no sound in the background then after like 2 secs I want to start the music clip. For some reason that is not possible! Cause every time I drop the music clip unto my project timeline it automatically place it self along with the first frame in the project! And consequently the photos and music are forced to start together.
Hope I'm making sense... -
Jobs are failing and give dump "TSV_TNEW_BLOCKS_NO_ROLL_MEMORY"
Hi ,
Jobs are failing and giving dump "TSV_TNEW_BLOCKS_NO_ROLL_MEMORY " and TSV_TNEW_PAGE_ALLOC_FAILED.
Here are the logs:
===================================================================
15.04.2009 07:11:35 Job started 00 516 S
15.04.2009 07:11:35 Step 001 started (program ZAPO_REALIGNMENT_MPOS_PA, variant AP_AP_REALG_S1, user ID aaa_bbb_apo) 00 550 S
15.04.2009 07:12:52 ABAP/4 processor: TSV_TNEW_BLOCKS_NO_ROLL_MEMORY 00 671 A
15.04.2009 07:12:52 Job cancelled 00 518 A
===================================================================
Job log overview for job: BIREQU_4DHSSKZ38YF3KALR4ZBRCDNQT / 00382400
Date Time Message text Message class Message no. Message type
15.04.2009 00:38:24 Job started 00 516 S
15.04.2009 00:38:24 Step 001 started (program SBIE0001, variant &0000000024435, user ID aaa_bbb_APO) 00 550 S
15.04.2009 00:38:24 Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks) R3 413 S
15.04.2009 00:38:24 DATASOURCE = 9AZAP_AM R3 299 S
15.04.2009 00:38:24 ************************************************************************* R8 048 S
15.04.2009 00:38:24 * Current Values for Selected Profile Parameters * R8 049 S
15.04.2009 00:38:24 ************************************************************************* R8 048 S
15.04.2009 00:38:24 * abap/heap_area_nondia......... 2000683008 * R8 050 S
15.04.2009 00:38:24 * abap/heap_area_total.......... 2000683008 * R8 050 S
15.04.2009 00:38:24 * abap/heaplimit................ 100894464 * R8 050 S
15.04.2009 00:38:24 * zcsa/installed_languages...... ED * R8 050 S
15.04.2009 00:38:24 * zcsa/system_language.......... E * R8 050 S
15.04.2009 00:38:24 * ztta/max_memreq_MB............ 256 * R8 050 S
15.04.2009 00:38:24 * ztta/roll_area................ 100000000 * R8 050 S
15.04.2009 00:38:24 * ztta/roll_extension........... 8000683008 * R8 050 S
15.04.2009 00:38:24 ************************************************************************* R8 048 S
15.04.2009 00:38:54 ABAP/4 processor: TSV_TNEW_PAGE_ALLOC_FAILED 00 671 A
15.04.2009 00:38:54 Job cancelled 00 518 A
=================================================================
Please suggestHi,
Here are the details as follows:
ORACLE
10.2.0.2.0
=====
HP-UX
9000/800
====
Kernel release 700
Compilation HP-UX B.11
Sup.Pkg lvl. 108
ABAP Load 1563
CUA load 29
=============
SCM 5.00
SAP_BASIS 700 0011 SAPKB70011
SAP_ABA 700 0011 SAPKA70011
ST-PI 2005_1_700 0003 SAPKITLQI3
PI_BASIS 2005_1_700 0011 SAPKIPYJ7B
SAP_BW 700 0012 SAPKW70012
LCAPPS 2005_700 0004 SAPKIBHD04
SAP_AP 700 0008 SAPKNA7008
EA-IPPE 400 0007 SAPKGPID07
SCM 500 0008 SAPKY50008
SCM_BASIS 500 0008 SAPK-50008INSCMBASIS
QIE 200 0004 SAPK-20004INQIE
BI_CONT 703 0005 SAPKIBIIP5
ST-A/PI 01I_SCM500 0000 -
VIRSANH 530_700 0005 SAPK-53305INVIRSANH
========================
Thanks,
VK -
How do you fine tune an effect in Captivate 6
I'm trying to scale and move a video using the effects timeline and I want it to wind up in an exact location on the stage. Is there any way to fine tune it by entering in exact coordinates rather than by bouncing back & forth between Live Preview and Edit View? I'm used to being able to entering in exact numbers when tweening an object in Flash and this seems like a pretty bad way of moving things around on the screen. Am I missing something here?
ThanksAs a temporary workaround, this is my work flow:
I create a 'crosshair' in the exact location, using two line shapes that can be positioned exactly using the Transform accordion.
The motion path end points have a circle that you'll have to drag over the crosshair. Motion paths use the center point of an object, contrary to resizing, moving that is from the upper left corner of the bounding box. I used the described work flow in the first movie here: http://blog.lilybiri.com/reset-effects
Lilybiri -
Will pay Spry Expert to fine tune vertical menu bar
Hi,
I have created a menu bar with DW CS4 for one of my web design clients, and I am running out of time to fine tune it.
So I will pay an expert who can:
1. Reduce the font size to small (maybe 8pt) on all items because the client has way too many items.
2. Reduce the line height size to 4pt for the same reason.
3. Stop submenu items from appearing on the left side of the window outside the menu bar.
I am happy with the bg color and arial font.
You can see the bar at: http://faithandfamilynutrition.com/
Please let me know if you can do this job and how much you would charge.
ThanksHi,
Never mind. Trial and error, figured it out using the CSS menu that came up when I clicked different sections of the widget.
Thanks anyway -
How to fine tune ROIs of LEDs of a camera image?
Hi,
I use NI Smart Camera and NI Vision Builder 2012 for measuring HUE values of the LEDs. I can manually adjust the ROI of each LED. Sometimes mechanics move a bit and my ROIs are then tilted/off from LED and measurement results are staring to fail. I am wondering how to set vision builder/camera to automatically fine tune ROIs when needed? I attach a sample picture of LEDs. There is also situation where I manually fine tune LED D79's ROI.
BR,
Jick
Attachments:
LEDs.png 37 KBThanks for the example. There is still one open question: how do I detect if one LED is OFF? For example if one LED is missing Detect Objects 1 step finds one object less but how can I know which LED is missing/off? How about creating Detect Object step for each LED separately and if there is no LED on measure colors step just fails? I attach my suggestion here.
BR,
Jick
Attachments:
Adjust_ROIs.vbai 114 KB
camera_simulation_image2.png 26 KB
Maybe you are looking for
-
Is it the SSD or the OS? - Flashing ? Folder
MacBook early 2011 Intel i5 processor 2.3 8gb ram 128gb Samsung 830 Solid State Drive OS X Mavericks So here's the deal: I was browsing the internet on chrome and suddenly the computer got very slow, the circling timer thing came up, and everything f
-
How can I get my school district approved to be a part of the iTunes U?
I just found out that I was denied entrance in becoming a Public Site Administrator. Here's what the email says: Thank you for submitting your recent application to become an iTunes U content provider. Based on the iTunes U requirements for inclusion
-
How does the PCI-6229 DAQ-card communicate with CB-68LP connector block?
Hello! I want to do a very simple task which is to just turn on/off a LED. I am using LabVIEW 7.1 and I have a DAQ-card PCI-6229. The DAQ-card is then wired to a connector block CB-68LP. Now my problem is to figure out how the connector block communi
-
Is it possible to save a document both locally and to iCloud
Good evening Ladies and Gents! Is it possible to save a Numbers document both locally on my Mac's HD and to iCloud so I can access it on my phone when I'm out and about? Thanks in advance.
-
Export\Import WSUS Updates
Hi I have a Q about export\import process in WSUS(3.2). I have a primary WSUS server that I`ve exported all updates from and imported all updates to a disconnected WSUS server. now I have some new updates that I need to export and import. my question