Non effective procedure

Hello,
I am using oracle 10g R2 on unix solaris for an extraction purpose.
Anytime I run this process It drags on and on :
a) CREATE OR REPLACE procedure ACT_FRD_EMP.etl_trans_temp1
is
begin
insert into act_frd_emp.etl_trans_tmp
select tran_date
,tran_id
,part_tran_type
,part_tran_srl_num
,trim(tran_id)||trim(part_tran_srl_num)||to_char(tran_date,'ddmmyyyy')||a.sol_id Transaction_Key
,trim(tran_id)||trim(part_tran_srl_num)||to_char(tran_date,'ddmmyyyy')||a.sol_id activity_key
,a.rcre_time Transaction_Date_Time
,case when module_id in ('LA','DD','XGL','DC','BG','FEX','REN','OSP','GA','FFD') then 'FIN'
when tran_particular like 'CASH%' then 'FIN'
when upper(tran_particular) LIKE '%NEFT%' then 'NEFT'
when substr(tran_particular,1,4) = 'FNN/' then 'FINN'
when SUBSTR(TRAN_PARTICULAR,1,4) IN ('VDCC','VPAY') then 'VIS'
when substr(tran_particular,1,3)='BWY' then 'BWAY'
when substr(tran_particular,1,3)='ATM' then 'ATM'
when substr(tran_particular,1,4) = 'ETZ/' then 'ETZ'
when substr(tran_particular,1,3)='FTR' then 'FT'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'ZPAY' then 'ZPAY'
when substr(tran_particular,1,3) in ('ATC','Bul','CIF','CPS','CRF','TUD') then 'DEV'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'MG /' then 'MNG'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'UMO/' then 'UMO' end as Channel_Type_Cd
,tran_type||tran_sub_type as tran_type_cd
,case when a.rcre_user_id = 'SYSTEM' then 1 else 0 end as Automatic_transaction_ind
,a.sol_id Branch_Key
,foracid Account_Key
,tran_amt Amount
,substr(tran_particular ,1,3) reversal
,case when a.pstd_flg ='N' and a.del_flg = 'Y' then 'Y' else 'N' end as Reject_Type_Cd
,a.cust_id
from htd a, gam b
where tran_date > (select last_rundate from status_ind where table_name = 'etl_trans_temp')
AND tran_date <trunc(sysdate - 1)
and a.acid = b.acid
and a.cust_id is not NULL
and a.pstd_flg='Y'
and a.del_flg='N'
and acct_cls_flg <>'Y'
and tran_type = 'T';
commit;
exception
when DUP_VAL_ON_INDEX then
ROLLBACK;
when OTHERS then
NULL;
end;
but when i run this one It gives me the result on time but i cant use the procedure:
b) CREATE OR REPLACE procedure ACT_FRD_EMP.etl_trans_temp1
is
begin
insert into act_frd_emp.etl_trans_tmp
select tran_date
,tran_id
,part_tran_type
,part_tran_srl_num
,trim(tran_id)||trim(part_tran_srl_num)||to_char(tran_date,'ddmmyyyy')||a.sol_id Transaction_Key
,trim(tran_id)||trim(part_tran_srl_num)||to_char(tran_date,'ddmmyyyy')||a.sol_id activity_key
,a.rcre_time Transaction_Date_Time
,case when module_id in ('LA','DD','XGL','DC','BG','FEX','REN','OSP','GA','FFD') then 'FIN'
when tran_particular like 'CASH%' then 'FIN'
when upper(tran_particular) LIKE '%NEFT%' then 'NEFT'
when substr(tran_particular,1,4) = 'FNN/' then 'FINN'
when SUBSTR(TRAN_PARTICULAR,1,4) IN ('VDCC','VPAY') then 'VIS'
when substr(tran_particular,1,3)='BWY' then 'BWAY'
when substr(tran_particular,1,3)='ATM' then 'ATM'
when substr(tran_particular,1,4) = 'ETZ/' then 'ETZ'
when substr(tran_particular,1,3)='FTR' then 'FT'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'ZPAY' then 'ZPAY'
when substr(tran_particular,1,3) in ('ATC','Bul','CIF','CPS','CRF','TUD') then 'DEV'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'MG /' then 'MNG'
when SUBSTR(TRAN_PARTICULAR,1,4) = 'UMO/' then 'UMO' end as Channel_Type_Cd
,tran_type||tran_sub_type as tran_type_cd
,case when a.rcre_user_id = 'SYSTEM' then 1 else 0 end as Automatic_transaction_ind
,a.sol_id Branch_Key
,foracid Account_Key
,tran_amt Amount
,substr(tran_particular ,1,3) reversal
,case when a.pstd_flg ='N' and a.del_flg = 'Y' then 'Y' else 'N' end as Reject_Type_Cd
,a.cust_id
from htd a, gam b
where tran_date ='29-NOV-2011'
--tran_date > (select last_rundate from status_ind where table_name = 'etl_trans_temp')
-- AND tran_date <trunc(sysdate - 1)
and a.acid = b.acid
and a.cust_id is not NULL
and a.pstd_flg='Y'
and a.del_flg='N'
and acct_cls_flg <>'Y'
and tran_type = 'T';
commit;
exception
when DUP_VAL_ON_INDEX then
ROLLBACK;
when OTHERS then
NULL;
end;
NB
In A tran_date > (select last_rundate from status_ind where table_name = 'etl_trans_temp') AND tran_date <trunc(sysdate - 1) is the same as
tran_date ='29-NOV-2011' in B.
please i need to know what i am doing wrong in this code. A can be run anytime without editing the code but B is hard-coded and i cant use it.
Thanks
AbdurRahman

Thread: HOW TO: Post a SQL statement tuning request - template posting
HOW TO: Post a SQL statement tuning request - template posting

Similar Messages

  • Restrictive and non-restrictive procedures!

    Hi all,
    Wanted to knwo what are restrictive and non-restrictive procedures in oracle forms.
    Thanks and Regards

    I think where Frank said "one-time triggers" he meant "non_repeating TIMERS".
    Here is an alternative way to get around the restricted built-in problem which does not seem to be widely known:
    Create two numeric control fields, say TRIGGERING_FIELD and TRIGGERED_FIELD.
    TRIGGERED_FIELD has a formula calculation property of
    MY_FUNCTION(:TRIGGERING_FIELD)
    MY_FUNCTION is created in the form program units and can do anything you want, including restricted built-ins. The value it actually returns is irrelevant (although you could use it as a return code if you want).
    Then all you need to do is modify the value of TRIGGERING_FIELD (perhaps multiply it by -1 ) which you can do in a trigger that does not allow restricted built-ins. The calculation will see that its input parameter has changed and will recalculate, thus running the function and doing all the restricted stuff.

  • Also RAID 5 missing after reboot; RA Utilities non effective

    I am having a nearly identical problem as listed in the "RAID 5 missing after reboot; RA Utilities non effective" thread, with one or two small differences.
    We shut down our Xserve RAID normally on friday, started it back up on Monday to find that one of the arrays was no longer there. RAID 1 is still working perfectly, but RAID 2 now has all the drives listed as spare. Tried all the tools in RAID Admin, but nothing has worked. At the advice of Apple tech support i updated the firmware to 1.5, swapped out controllers and cables, and tried using the Recognize RAID command in utilities. Nothing has worked. Apple recomended bring the drives to Drive Savers to get the data recovered. Does anyone have any other ideas?
    Oh, also this raid was reporting a failed drive on friday before it was shut off, when powered back on the drive now claims to be fine.

    Guess I got lucky.... After a reboot of the Xserve RAID, RAID #2 mounted again. Did my backups, shut it back down, and updated firmware to 1.5 with no problems. All seems good now.
    Still wondering what happened.
    It appears that drive #8 failed, and after the rebuild with new replacement drive, it seems as though the controller needed to be restarted too. The odd thing is, before the restart, #2 was acting like it had three new drives and no array configured at all. After the reboot, there is the RAID 5 array, no rebuild or anything - ready to go.
    So here is my question:
    How often does everyone reboot their Xserve RAID? should it be done periodically? Every 3 months? Every month?
    Or is this just a hiccup with the parity rebuild, and nothing else to worry about, or even a firmware issue for the controller(s) that 1.5 may resolve?

  • Will setting sequence field dominance to "NONE" effect resolution?

    First, thanks all for the title help. It looks like i might have it licked. From this point however comes a new question.
    The only way to keep my titles clear and free from flicker is to set the imported livetype .mov file's field dominance to "none" and place it in a sequence that also has a field dominance set to "none". Great. now i need to put the title sequence on my master time line (project time line of 1hr 20min) which exists in a sequence set to the standard field dominance of "Lower" and which is made up of an hour and a half worth of clips that are all set to "lower" as well.
    My question(s) is this-
    While i understand what field dominance is doing as an upper and lower, what does none do?
    Currently the project (under the settings above) is rendering as i have changed the master sequence's FD setting to none. I haven't changed the individual clip settings to none due to my ignorance on the issue, only the title sequence has the same settings. Put another way- I'm currently rendering a sequence that has its field dominance set to "none". On this sequence, i have several clips that have their field dominance set to "lower", and one clip (my livetype title clip) has its field dominance set to "none". I've done all this in order to prevent flicker on my livetype scrolling titles.
    Q: Should i do this?
    Q: Will i suffer a loss of resolution on the clips that have a field dominance that is different from their sequence?
    Q: Will keeping them different effect the export and eventual dvd burn of the project?

    Your better off NOT making a movie from LiveType, but importing the LiveType project file and rendering in FCP. Leave your field dominance settings to match your clips. If you set to NONE, that is for Progressive scanned footage. You will lose clarity on your clips. But don't just ask and listen here... do it. Change the sequence from Lower to None and look very closely at a still frame. You will see that you have lost the "jaggies" but at the cost of edge clarity.

  • Non-Oracle Procedure

    Thank you very much for your quick response.
    Dear All,
    I'm trying to call/execute a Sybase procedure through the pl/sql if, can you help me ?
    Regards

    There is a dedicated forum for Hetrogeneous Services. I think this should answer your question.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1004694

  • Effective procedure to get data

    Hi
    In the below procedure
    i am using a temporary table for collecting data from 4 tables.
    i am using cursor recordset to return results by
    group by room_cat,resort_id, VDESC, RATE_CODE, vDAY1, vDAY2, vDAY3, vDAY4,
    vDAY5, vDAY6, vDAY7, vWEEKEND1, vWEEKEND2, vWEEKEND3, vWEEKEND4, vWEEKEND5,
    vWEEKEND6, vWEEKEND7
    i feel this is not correct method and i want to rewrite the procedure in a efficient way.
    help please.
    create or replace procedure rateq2
    ARRDT DATE,
    DEPDT DATE,
    MY_RATE_CODE IN varchar2,
    RESORT_ID IN varchar2,
    R_recordset out types.cursor_type
    as
    ARR_TEMPDT DATE;
    DEP_TEMPDT DATE;
    ALL_RATECODES varchar2(100);
    V_RESORTID varchar2(100);
    cursor cur1 is
    select RH.resort as RH_RESORT,
    RH.rate_code as RH_RATE_CODE,
    RD.rate_detail_id as RD_RATE_DETAIL_ID,
    RD.rate1 as RD_RATE1,
    RD.rate2 as RD_RATE2,
    RD.rate3 as RD_RATE3,
    RD.rate4 as RD_RATE4,
    RD.rate5 as RD_RATE5,
    RD.children_charge as RD_CHILD,
    RRC.room_category as RM_CAT,
    initcap(RRMCAT.long_description) as RM_DESC,
    RH.DAY1 as rh_day1,
    RH.DAY2 as rh_day2,
    RH.DAY3 as rh_day3,
    RH.DAY4 as rh_day4,
    RH.DAY5 as rh_day5,
    RH.DAY6 as rh_day6,
    RH.DAY7 as rh_day7,
    RH.WEEKEND1 as rh_weekend1,
    RH.WEEKEND2 as rh_weekend2,
    RH.WEEKEND3 as rh_weekend3,
    RH.WEEKEND4 as rh_weekend4,
    RH.WEEKEND5 as rh_weekend5,
    RH.WEEKEND6 as rh_weekend6,
    RH.WEEKEND7 as rh_weekend7
    from pms_rate_header RH,
    pms_rate_detail RD,
         pms_rate_room_cat RRC,
         resort_room_category RRMCAT,
    (select ARR_TEMPDT b_date, DEP_TEMPDT e_date from dual) p
    where
    RH.inactive_date is NULL
    and RH.RESORT=V_RESORTID
    and RH.RATE_CODE =ALL_RATECODES
    and rh.begin_date <= p.e_date and rh.end_date >= p.b_date
    and RD.rate_header_id=RH.rate_header_id
    and RD.inactive_date is NULL
    and rd.begin_date <= p.e_date and rd.end_date >= p.b_date
    and RRC.rate_detail_id=RD.rate_detail_id
    and RRC.resort=RH.resort
    and RRMCAT.resort=RH.resort
    and RRMCAT.room_category=RRC.room_category
    and RRC.inactive_date is NULL
    and RRMCAT.inactive_date IS NULL
    ORDER BY RM_CAT ;
    vrec cur1%rowtype;
    begin
    delete from TEMP_Rate;
    ARR_TEMPDT:=ARRDT;
    DEP_TEMPDT:=DEPDT;
    ALL_RATECODES:=MY_RATE_CODE;
    V_RESORTID := RESORT_ID;
    open cur1;
    loop
    fetch cur1 into vrec;
    exit when cur1%notfound;
    Insert into TEMP_RATE (RESORT_ID, ROOM_CAT, VDESC, AVGRATE1, AVGRATE2, AVGRATE3,
    AVGRATE4, AVGRATE5, AVGCHILD, RATEDETID, RATE_CODE, vDAY1, vDAY2, vDAY3, vDAY4,
    vDAY5, vDAY6, vDAY7, vWEEKEND1, vWEEKEND2, vWEEKEND3, vWEEKEND4, vWEEKEND5,
    vWEEKEND6, vWEEKEND7)
    values (vrec.rh_resort, vrec.rm_cat ,vrec.rm_desc, vrec.rd_rate1, vrec.rd_rate2, vrec.rd_rate3,
    vrec.rd_rate4, vrec.rd_rate5, vrec.rd_child, vrec.rd_rate_detail_id,vrec.rh_rate_code,vrec.rh_day1,vrec.rh_day2,vrec.rh_day3,vrec.rh_day4,
    vrec.rh_day5,vrec.rh_day6,vrec.rh_day7,vrec.rh_weekend1,vrec.rh_weekend2,vrec.rh_weekend3,vrec.rh_weekend4,vrec.rh_weekend5,
    vrec.rh_weekend6,vrec.rh_weekend7);
    end loop;
    OPEN R_recordset FOR
    select RESORT_ID, ROOM_CAT, VDESC, AVG(AVGRATE1) , AVG(AVGRATE2), RATE_CODE, vDAY1, vDAY2, vDAY3, vDAY4,
    vDAY5, vDAY6, vDAY7, vWEEKEND1, vWEEKEND2, vWEEKEND3, vWEEKEND4, vWEEKEND5,
    vWEEKEND6, vWEEKEND7
    from temp_rate
    group by room_cat,resort_id, VDESC, RATE_CODE, vDAY1, vDAY2, vDAY3, vDAY4,
    vDAY5, vDAY6, vDAY7, vWEEKEND1, vWEEKEND2, vWEEKEND3, vWEEKEND4, vWEEKEND5,
    vWEEKEND6, vWEEKEND7;
    close cur1;
    end rateq2;
    lee1212

    Hi,
    No need to use the temp table.
    No need for the explicit cursor.
    This will be a much faster may to do it:
    create or replace procedure rateq2 (
       p_arrdt in date
       , p_depdt in date
       , p_rate_code in varchar2
       , p_resort_id in varchar2
       , p_recordset out types.cursor_type
    as
    begin
       open p_recordset for
          select rh.resort as rh_resort
          , rrc.room_category as rm_cat
          , initcap(rrmcat.long_description) as rm_desc
          , avg(rd.rate1) as rd_rate1
          , avg(rd.rate2) as rd_rate2
          , rh.rate_code as rh_rate_code
          , rh.day1 as rh_day1
          , rh.day2 as rh_day2
          , rh.day3 as rh_day3
          , rh.day4 as rh_day4
          , rh.day5 as rh_day5
          , rh.day6 as rh_day6
          , rh.day7 as rh_day7
          , rh.weekend1 as rh_weekend1
          , rh.weekend2 as rh_weekend2
          , rh.weekend3 as rh_weekend3
          , rh.weekend4 as rh_weekend4
          , rh.weekend5 as rh_weekend5
          , rh.weekend6 as rh_weekend6
          , rh.weekend7 as rh_weekend7
          from pms_rate_header rh
          , pms_rate_detail rd
          , pms_rate_room_cat rrc
          , resort_room_category rrmcat
          where rd.rate_header_id = rh.rate_header_id
          and rrc.rate_detail_id = rd.rate_detail_id
          and rrc.resort = rh.resort
          and rrmcat.resort = rh.resort
          and rrmcat.room_category = rrc.room_category
          and rh.inactive_date is null
          and rd.inactive_date is null
          and rrc.inactive_date is null
          and rrmcat.inactive_date is null
          and rh.begin_date <= p_depdt
          and rh.end_date >= p_arrdt
          and rd.begin_date <= p_depdt
          and rd.end_date >= p_arrdt
          and rh.resort = p_resort_id
          and rh.rate_code = p_rate_code
          group by rrc.room_category
          , rh.resort
          , initcap(rrmcat.long_description)
          , rh.rate_code
          , rh.day1
          , rh.day2
          , rh.day3
          , rh.day4
          , rh.day5
          , rh.day6
          , rh.day7
          , rh.weekend1
          , rh.weekend2
          , rh.weekend3
          , rh.weekend4
          , rh.weekend5
          , rh.weekend6
          , rh.weekend7
    end rateq2;cheers,
    Anthony
    Message was edited by:
    Anthony Wilson
    Posted the wrong version...

  • HS Problem - Run non-Oracle Procedure

    Hi,
    We have a HS agent in ORACLE towards DB2 via ODBC.
    In DB2 a function was created.
    I would like to run it from ORACLE.
    If I log in DB2 I can run it successfully.
    Example:SQL> execute b59ttus.TESTB59TTXXX@d2d0;
    BEGIN b59ttus.TESTB59TTXXX@d2d0; END;
    Error:
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'B59TTUS.TESTB59TTXXX@D2D0' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Could I do somthing wrong ?
    ORACLE Versions:SQL*Plus: Release 9.2.0.1.0 - Production on Fri Jun 25 16:11:45 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    The database run on SUN SERVER.:>showrev
    Hostname: wps-sun
    Hostid: 8323de56
    Release: 5.8
    Kernel architecture: sun4u
    Application architecture: sparc
    Hardware provider: Sun_Microsystems
    Domain:
    Kernel version: SunOS 5.8 Generic 108528-13 December 2001
    Best regards,
    Laszlo

    There is a dedicated forum for Hetrogeneous Services. I think this should answer your question.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1004694

  • RAID 5 missing after reboot; RA Utilities non effective

    I had 7 drives formated in RAID 5, after reboot, on my Xserve I can not mount RAID.
    If I check with RAID admin, it seems everything to be o.k, but one event is strange:
    RAID Controller 1 Fibre LIP; A Fibre Channel Loop Initialization Primitive (LIP) was detected. This often occurs when a new device is connected to the Fibre Channel network.
    I did not connect any new devices... Same is with controller 2.
    Every one of drives is described as "spare" but they were in RAID 5 all of 7 drives. If I check the arrays tab, no arrays are present.
    If I try to Verify the array the "verify array" button is dimmed so I can not proceed.
    Same is with Rebuild parity data or recognize array on both controlers.
    Is there any possibility that I can establish RAID with all data?
    I did not found any terminal commands for that...
    Any idea? Any hint?

    Hi Milos,
    I was in the same situation few months ago. The same problems you reporting there, except of that, that my array dissapeared after successfull firmware update (and I had RAID3 on 6 disks). After unsuccessful technical support here I managed two trips of my disks to Apple engeneer in USA (I am from Czech Rep.) with no success. For the first time, they gave me back RAID 3 on 5 disks (not on 6 as I had before) and after second trip, thay gave me back 5 empty disks and the 6th one was damaged. So, my opinion as a man from Central Europe is, that we have no chance to have our datas back!
    Problem was, that first 64 kB were zeroed (metadata with RAID schema are placed there). They tried (in Apple) to restore these metadatas on disks back, but as I said before, thay probably had a bad days.
    Only one thing you can try is to find someone with XRAID at your place and try to put your disks there. May be your array will appear there, so you will be able to copy your data to some other disk. But if the first 64 kB on disks are zeroed ....
    Anyway, please let me know if you solve your problem. I still have my disks untouched waiting for some miracle...

  • Help: stored procedure for oracle forms

    Hi,
    I am working on a form with data block based on stored procedures. Here is the question:
    On a data block based on simple query, where insert a new record is taking care of by oracle form. That is create_record will do the job.
    When the data block is based on stored procedures, select, update, insert and delete will have to based on the data block created by the ref curcor. How to call the stored procedure from form to create a new record?
    I attempted to write something like:
    PROCEDURE sample_insert
    data_block IN OUT some_refcurcor) IS
    BEGIN
    insert into some_table values
    (data_block.field1, data_block.field2.....);
    commit;
    END;
    I am not quit sure how this works, as would create_record buildin will work to clean up the FORM data block and allow user to enter data and when and how the sample_insert will be called to make this work? Or how the same effect will work out as none stored procedure would do. New data eventually get into the designated table.
    Any suggestions are greatly appreciated.
    Jimmy
    Correction: (data_block IN OUT some_refcurcor) should be (data_block IN OUT some_table) and some_table is a record type etc..
    Message was edited by:
    WJH

    Hello,
    there are two kinds of output from a stored procedure which can be used in a forms block:
    - ref cursor
    - table of records
    The easiest way is to use a ref cursor. Use a strongly typed one,
    so that you can see the columns in the block wizard.
    A table of records is used when you also want to insert, update and so on.
    There is a not on metalink note for this ( 66887.1 ).
    Bernd

  • Error in calling collection procedure.

    Hi Experts,
    In a package I have one procedure "setscores_ram_bulk" with collection varaiavles.
    And other two procedures are "UpdateRelatedOrders" and "SetGeoFraudScore" with out collections.
    I am calling collection procedure "setscores_ram_bulk" in non collection procedures "UpdateRelatedOrders" and "SetGeoFraudScore".
    I am getting the below error.
    PLS-00306:wrong number or types of arguments in call to 'SETSCORES_RAM_BULK' .
    I am sending my code.
    CREATE OR REPLACE PACKAGE GAFT_PROG_DIT.INTERNAL_SCORING_setscore_Bulk
    IS
    TYPE rec_setscores IS RECORD
    pBUID     score.buid%TYPE,
    OrderNum   score.order_num%TYPE,
    ScoreType  VARCHAR2(100),
    p_Score       score.velocity_score%TYPE
    type pp_rec_setscores is table of rec_setscores index by pls_integer;
    PROCEDURE UpdateRelatedOrders (pBUID IN NUMBER, OrderNum IN VARCHAR2);
    PROCEDURE SetGeoFraudScore (pBUID         IN     NUMBER,
                                   OrderNum      IN     VARCHAR2,
                                   ZipCode       IN     VARCHAR2,
                                   CountryCode   IN     VARCHAR2,
                                   score         OUT NUMBER);
    PROCEDURE setscores_ram_bulk (p_rec_setscores  pp_rec_setscores);                              
    END;
    CREATE OR REPLACE PACKAGE BODY GAFT_PROG_DIT.INTERNAL_SCORING_setscore_Bulk
    IS
       PROCEDURE UpdateRelatedOrders (pBUID IN NUMBER, OrderNum IN VARCHAR2)
       IS
          tScoreID    STAGING_ORDER_DATA.SCORING_ID%TYPE;
          tVelocity   SCORE.VELOCITY_SCORE%TYPE;
          tNegative   SCORE.NEGATIVE_SCORE%TYPE;
          tTrend      SCORE.TREND_SCORE%TYPE;
          CURSOR scoreCursor (
             scoreID    NUMBER,
             OrdNum     VARCHAR2)
          IS
             SELECT ORDER_NUM
               FROM STAGING_ORDER_DATA
              WHERE     SCORING_ID = scoreID
                    AND ADDRESS_TYPE = 'S'
                    AND ORDER_NUM != OrdNum;
       BEGIN
          SELECT SCORING_ID
            INTO tScoreID
            FROM STAGING_ORDER_DATA
           WHERE BUID = pBUID AND ORDER_NUM = OrderNum AND ADDRESS_TYPE = 'S';
          IF tScoreID IS NOT NULL
          THEN
             SELECT VELOCITY_SCORE, NEGATIVE_SCORE, TREND_SCORE
               INTO tVelocity, tNegative, tTrend
               FROM SCORE
              WHERE BUID = pBUID AND ORDER_NUM = OrderNum;
             FOR ord_rec IN scoreCursor (tScoreID, OrderNum)
             LOOP
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'V',tVelocity);
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'N',tNegative);
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'T',tTrend);
             END LOOP;
             IF scoreCursor%ISOPEN
             THEN
                CLOSE scoreCursor;
             END IF;
          END IF;
       END UpdateRelatedOrders;
        PROCEDURE SetGeoFraudScore (pBUID         IN     NUMBER,
                                   OrderNum      IN     VARCHAR2,
                                   ZipCode       IN     VARCHAR2,
                                   CountryCode   IN     VARCHAR2,
                                   score            OUT NUMBER)
       IS
          tZipCodeExist   NUMBER;
          tScore          NUMBER;
       BEGIN
          SELECT COUNT (Score)
            INTO tZipCodeExist
            FROM MASTER_GEO_FRAUD
           WHERE REPLACE (UPPER (ZIP_CODE), ' ', '') =
                    REPLACE (UPPER (ZipCode), ' ', '')
                 AND COUNTRY_CODE = CountryCode;
          IF tZipCodeExist > 0
          THEN
             SELECT Score
               INTO tScore
               FROM MASTER_GEO_FRAUD
              WHERE REPLACE (UPPER (ZIP_CODE), ' ', '') =
                       REPLACE (UPPER (ZipCode), ' ', '')
                    AND COUNTRY_CODE = CountryCode;
          ELSE
             tScore := 1000;
          END IF;
    setscores_ram_bulk (pBUID,OrderNum,'XS',tScore);
          COMMIT;
          score := tScore;
       END SetGeoFraudScore;
       PROCEDURE setscores_ram_bulk (p_rec_setscores pp_rec_setscores)
       IS
       BEGIN
          FORALL i IN 1 .. p_rec_setscores.COUNT
             MERGE INTO   score s
                  USING   (SELECT   p_rec_setscores (i).pBUID buid,
                                    p_rec_setscores (i).OrderNum order_num,
                                    p_rec_setscores (i).p_score score
                             FROM   DUAL) p
                     ON   (s.buid = p.buid AND s.order_num = p.order_num)
             WHEN MATCHED
             THEN
                UPDATE SET
                   velocity_score =DECODE (p_rec_setscores (i).ScoreType,'V', p.score,velocity_score),
                   negative_score =DECODE (p_rec_setscores (i).ScoreType,'N', p.score,negative_score),
                   trend_score =DECODE (p_rec_setscores (i).ScoreType,'T', ROUND (p.score),trend_score),
                   vendor_combined_score =DECODE (p_rec_setscores (i).ScoreType,'X', p.score,vendor_combined_score),
                   vendor_bt_score =DECODE (p_rec_setscores (i).ScoreType,'XB', p.score,vendor_bt_score),
                   vendor_st_score =DECODE (p_rec_setscores (i).ScoreType,'XS', p.score,vendor_st_score)
             WHEN NOT MATCHED
             THEN
                INSERT  (buid, order_num, received_date_time)
                    VALUES  (p.buid, p.order_num, SYSDATE);
          FORALL i IN 1 .. p_rec_setscores.COUNT
             MERGE INTO   score_filter_apply s
                  USING   (SELECT   p_rec_setscores (i).pBUID buid,
                                    p_rec_setscores (i).OrderNum order_num,
                                    p_rec_setscores (i).p_score score
                             FROM   DUAL) p
                     ON   (s.buid = p.buid AND s.order_num = p.order_num)
             WHEN MATCHED
             THEN
                UPDATE SET
                   velocity_score =DECODE (p_rec_setscores (i).ScoreType,'V', p.score,velocity_score),
                   negative_score =DECODE (p_rec_setscores (i).ScoreType,'N', p.score,negative_score),
                   trend_score =DECODE (p_rec_setscores (i).ScoreType,'T', ROUND (p.score),trend_score),
                   vendor_combined_score =DECODE (p_rec_setscores (i).ScoreType,'X', p.score,vendor_combined_score),
                   vendor_bt_score =DECODE (p_rec_setscores (i).ScoreType,'XB', p.score,vendor_bt_score),
                   vendor_st_score =DECODE (p_rec_setscores (i).ScoreType,'XS', p.score,vendor_st_score)
             WHEN NOT MATCHED
             THEN
                INSERT (buid, order_num, received_date_time)
                    VALUES   (p.buid, p.order_num, SYSDATE);
       END setscores_ram_bulk; 
       END;
       /Please help me.
    Thanks in advance.

    BluShadow wrote:
    Paul  Horth wrote:
    You haven't taken any notice of what Alberto posted in {message:id=11026562} I see.
    Why should anyone bother helping you if you never think we have answered your questions?Indeed, that must be a new record:
    >
    Total Posts: 336
    Total Questions: 160 (160 unresolved)
    >
    Out of 160 questions... none of them have been resolved.
    That's either down to poor answers (very unlikely with the amount of experts around) or poor questions (quote likely) or sheer laziness on feeding back on answers and marking questions as answered when they have been (most likely).Indeed, your own post just after Alberto's seems to sum it up :-)

  • Paintbrush tool reverts to color/fill none. Cannot draw/trace anything. Please help

    Hello,
    I am fairly new to Illustrator and need some help. I am trying to trace an image using the brush tool. I can get some lines in and for some reason the brush tool begins to revert to fill none effectively just making invisible lines. I have the parent image on its separate layer and the line art on another layer. Layers are unlocked. When I use the brush it will look as if it is deleting/erasing what is shown on both layers. The brush tool is effectively erasing what is there already instead of drawing.
    I tried searching for a couple days now and the best I could find is this:
    http://forums.adobe.com/message/4799313
    I tried everything mentioned in the thread and it still isn't working. In fact I think the OP in that thread never really solved his issue too. I can barely even get my line art down please help! Thanks

    Thanks rcraighead. I ended up just ctrl z-ing(is that even a work haha) back to a point were the brush worked. However I still dont know what happened. Thanks for your reply, if it ever happens again I will try it out.

  • Non-Standard query

    Hi All,
    I may be a little too late to post this issue.
    I want to follow a non standrad procedure of carrying Settlement a Process Order to Cost Center instead of Material.
    This is needed due to business practice with client.
    However i wanted to know the repercussions and areas of worry where i may face errors.
    Can anyone help me in getting this conceptually clear.
    Thanks in advance.
    Piyush

    Hi Ramesh,
    Thanks a lot for the information.
    In this regard i would like to further say that in our current project we do not have the feature of WIP. In PP only BoM is being maintained without any routing etc.
    As regards capturing of Raw Material Cost, i find the following JE flowing into FI from PP :
    Raw Material Consumption Dr.      (P/L item)
    Raw Material Stock           Cr.       (B/S item)
    FG Stock                         Dr.       (B/S item)
    Inc/Dec in FG Stock         Cr.        (P/L item)
    I tried to settle the Process Order to a Cost Center (instead of standard Material by changing the Settlement rule manually)
    The value for the 2 P/L items(for which cost element is maintained) is flowing into Cost Center from where i can pick up only the Raw Material Consumption cost element for my reporting.
    All other expenses are being captured at Cost Center Level.
    However the area of concern that i am facing is that i am unable to make settlement of Process Order in periods other than period 1.
    Maybe you can throw some more light on this aspect.
    Thanks again...and not to forget to mention the reward points will be coming soon coz ur reply has been very helpful.
    Piyush

  • Field dominance = NONE

    Is setting my field dominance to NONE in the sequence setting going to cause me problems down the line?
    I have noticed that if I do the above (after a lengthy render) the graphics I place on the timeline, lower 3rds etc created in motion, appear a lot sharper.
    All the footage I edit at the moment is SD interlaced and was wondering what problems this setting might cause or if there is a different workflow I should be looking at.
    All finished work is turned in FLVs for the net.
    Thanks

    I do de-interlace with the flash encoder afterwards as I export the project back out as a QT. The resulting 3rds are always a lot sharper from a sequence with no field dominance.
    Am I confused myself or is setting the field dominance to none effectively de-interlacing?

  • Premiere CC - No playback on HD clips with various effects applied.

    Hi,
    In Premiere CC recently i've been having trouble playing back clips in my projects with effects applied, in this specific case, FilmConvert and Magic Bullet Looks. If I apply the standard Adobe effects, everything seems to work fine.
    Now I know this doesn't sound like a premiere issue, but thousands of people use these software packages and i don't see why my setup is any different. If I disable the effects, the video plays back fine. When I enable the effects, the video doesn't play at all, it just stays on the last frame of the previous non-effected clip.
    This is in a very large project, it's for a feature length documentary so there are many types of footage, most of what I am applying the effects to are ProRes or AVCHD files.
    System:
    Windows 7 Professional 64 Bit
    Intel i7 4770k 3.5ghz
    Nvidia Geforce GTX 780
    32gb Ram
    Samsung 840 SSD as system drive
    Western digital black's as footage drives
    Mercury Playback (cuda) is enabled in premiere.
    Any ideas?
    Thank you.

    I would expect your system to handle those effects without too much difficulty.  Unfortunately, I don't have any ideas about what the hang up might be.
    You could try resetting preferences.
    https://blogs.adobe.com/genesisproject/2011/02/premiere-pro-cs5-maintenance-two-great-tips .html

  • How many effects can you put on each track? and best reverb and chorus fx??

    Hi,
    I was wondering how many effects you can truly put on each track.
    i tracked vocals last night and could only put two inserts in there. Is that all?
    so if i want to eq my voice and add verb or eq my voice and add chorus, i can't even think of adding anything else???
    also, what are the best reverbs and chorus effects to use that give your voice that professional sound that they have in R&B songs??

    i tracked vocals last night and could only put two inserts in there. Is that all?
    As you add a second plug-in, a third slot becomes available. Add a third plug-in, a fourth becomes available, etc...
    also, what are the best reverbs and chorus effects to use that give your voice that professional sound that they have in R&B songs??
    That "professional" sound (depending on what you're listening to) is the singer.
    Yes, there are FX that enhance it, but a plain, non-effected vocal will sound professional if the singer is good.
    If you're feeling like you have to add EQ, reverb, chorus, etc to sound "professional"... than the singing isn't good. Trust me on this one.
    Aside from a good singer, having a quality microphone and pre-amp is a good place to start, gear-wise. Follow that up with a good hardware compressor, maybe EQ, and THAT alone should sound like a million bucks if the singer is the real deal.
    Don't underestimate the importance of compression, when used correctly. This will even out the volume of the vocal, and bring it forward, making it seem more intimate.
    Chorus is rarely a flattering effect, unless it's used very subtly, or an obvious "effected" sound is desired.
    And a little bit of reverb can go a LONG way. A "smidge" of any of Logic's Space Designer vocal presets will do just fine.

Maybe you are looking for

  • Zen Touch no longer uses fold

    At some point after an update (not sure if it was firmware or an update to MediaSource as I have applied both in the last 2 months) my 20GB Zen Touch stopped storing music in logical artist/album folders. Instead it stores all music files in the root

  • Error in the workflow which executes background synchronous webservice task

    Hi, I am very new to SAP Workflows. I created a workflow with one activity step in it. The activity step actually executes a task TS77000300 (synchronous calculation - its an SAP task). When I test it. I get an error "Error when starting the service"

  • Based on the user response need to calculate measures in universe

    Hello Folks, I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer. 1.Based on the user response I need to create a report for previous months . 2. PYTD and YTD measures based on user prompt

  • Balance sheet view on a specific date

    Hi Can anyone tell me, how to see balance sheet on a particular date..... Thanks Radha

  • Any known issues with Premiere CC and imported HDV clips?

    I'm having consistent difficulty with Premiere CC playback of HDV video that originated in FCP 7. This was not an issue in Premiere CS6. The problem is dropout and pixelization which is consistent, pass after pass, and occurs at the same TC location