Could the Database Trigger get a forms variable value

Hi All
We have an ERP which connect all users of the system with a single schema (Database user name), We create a record for each user in the ERP itself to specify the privillages for each user
I would like to make a database trigger to Audit a table , by storing the user name, action (Insert,delete,update) on an audit table.
The problem is the user name i want to store is not the schema name, but it's stored in a database table and read in a global variable.
Can i get the user name (which stored in the global variable) in the database trigger ???
Thanks
Mostafa Abolaynain

If this global variable lives inside Forms (which the title of your post seems to indicate), then no.
A database trigger can only reference "stuff" that lives inside the database session at the database server, not "stuff" that lives inside the proces at the client device.
You should ask your ERP vendor: there might very well be something (eg. a variable inside a database package) that you can use.

Similar Messages

  • Re: send message from the database trigger(URGENT)

    Hi,
    I am using forms 6.0 and oracle 8.0. My question is I am calling a stored procedure in the BEFORE UPDATE TRIGGER on database. This trigger will be fired and update another table(table B) when user update any record in the forms based on different table (table A).
    I want to pass the message to the forms from the database trigger when records gets updated in the database e.g. (10 records are updated). Since I am not calling my database procedure from the forms, rather it is being called from the database trigger, How can i display message to the forms.
    Thanks all your help in advance.

    Thanks Parker for ur reply but that subprogram raise_application_error only works if there is an error in the store procedure. But in my case there is no error, I just need to pass a message saying that e.g. "12 rows updated". How can I pass this message from the database trigger to the forms application.
    Thanks

  • Is the "Unlimited Forms" in FormsCentral covered under my CC subscription?  or do I have to also upgrade the FormsCentral to get unlimited forms / responses?

    Is the "Unlimited Forms" in FormsCentral covered under my CC subscription?  or do I have to also upgrade the FormsCentral to get unlimited forms / responses?
    Im signed into my account on Forms Central, but it is still telling me I only have one free form and need to upgrade to the annual Adobe Xl Pro package to get unlimited forms / responses.  This isnt included in my monthly membership price for CC?
    Thanks,
    Derek

    FormsCentral won't help with flattening a form. You could set up the form in Acrobat so that the fields are set to read-only, using JavaScript. Not quite the same as flattening but it's the best Reader can do.
    Note that when Reader is used to e-sign a document, it gets flattened, but this won't be possible if you need to Reader-enable the form and under certain other conditions.

  • How to get BW-BPS variable value into Visual Basic?

    Hello,
    Scenario:
    Time characteristic 0FISCYEAR has a variable ZVFYEAR. In layout this time characteristic is defined as DATA COLUMN. When user changes VFYEAR variable’s value i want to get the value of variable into Visual Basic and to format header for table in the layout.
    How to get BW-BPS variable value into Visual Basic?
    Could you help me?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hi,
    If i understand your requirments correctly ,you need to read the value of the Variable and Put it on the layout. Here is how  i would solve this,
    Read the value of the variable using an ABAP program.The logic for this would be to read the variable value and post it on the layout on a cell.You can do this by calling the ABAP program on opening the layout.this can be done using LB_EXIT_FM  T-code. Now using the  SAP delivered SAPAfterDataPut  macro, read the cell in which you have placed the variable values and assign it to the necessary values you want to on the layout.All this will be done before the layout opens.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • How could I get unix shell variable value?

    I want to get a unix shell variable value because I will use it in my java program. For example $HOME, I have wrote like below,
    Runtime runtime = Runtime.getRuntime();
    Process proc = runtime.exec("echo $HOME");
    But I could not get $HOME value, just get "$HOME" as result.
    Why could not I get the value?

    Other than passing them as params to your program, the only way to read them runtime is either pipe them thru a stream or use JNI.

  • Debug Stored procedure or database trigger by 10g Forms

    Hi,
    I want to debug my table level trigger (On update for each row), I am updating this table by forms. When I debug this form I am unable to watch the database debug.
    Please help me regarding database trigger/function/procedures by debugging forms.

    not possible via forms
    you can debug it on SQL Developer by using manual INSERT Updates commands

  • Now that I've installed Yosemite, my computer keeps telling me that iPhoto needs to be upgraded.  When it starts "upgrading the database", it gets almost to the end of the progress bar, then sits and spins.  It  won't finish.

    My computer is an iMac that was made in late 2009, and was purchased by me in 2010.  It has a 3.06 GHz Intel Core 2 Duo processor.  I have more than 800 GB of storage available.  Last week I installed the Yosemite OS.  I'm having trouble with the upgrading of iPhoto.  When it says it's upgrading the database, it never finishes.  I've started the process a few times, and the progress line always gets to the same place when it sits and spins for hours at a time without any more progress.  I thought about putting some of my 10,000 + pictures on discs to see if that would help, but I can't open iPhoto to get at them.  Would that help, anyway?  My son thinks this computer is too old to accept all updates.  The hard drive was replaced 2 years ago.
    Thanks for any help.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How to get Oracle Form Parameter Value into Oracle Report

    Hi,
    Please guide for the following:
    On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
    I want to get From_Date & To_Date in the report, as per below mentioned heading:
    SALES REPORT
    From: 01-JAN-2009 To: 31-DEC-2009
    Regards,

    You can use ADD_PARAMETER builtin,
    The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
    <pre>
    /** Declare a variable of type ParamList to store ** the parameter List ID */
    DECLARE
    PARAM_ID ParamList;
    BEGIN
    /* ** Create a parameter List named "input_params" */
    PARAM_ID := Create_Parameter_List('input_params');
    /* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
    Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
    Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
    /* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
    END;
    </pre>
    Edited by: Charan on Jul 13, 2011 9:08 AM

  • Pb to get a static variable value from an main program...

    Hi my lifegards !
    I am not a king of java and I thing I need explication about the way to get static values from an other class throw a method...
    here is my objects :
    CapturesBuffer(class extends canvas)
    static int nbCapts...
    public getNbCapts() return nbCaptsSendCapture (servlet)
    "captures = new CapturesBuffer();" in init()
    captures.getNbCapts(); return the good number of capturesSendToPD (program with static void main())
    "captures = new CapturesBuffer();" in constructor
    new SendToPD() in main(String args[])
    captures.getNbCapts(); return a bad value (the initial value)I hope it's anderstandable..:-)
    I have try to instance SendToPD object in the servlet (not to use the main method) and it is working !
    For me it's coming from main method. Am I wrong ?
    And more useful, what is the solution (I hope and I am sure there is one...)
    Thanx a lot and I wish u and happy year with all forms of java
    Guillaume.

    I didn�t understand very weel your aims neither why it is Thread extended .. but, anyway, here comes my guess:
    //package cicv.hatefulworld.server;
    public class DataPict implements Runnable
         private volatile Thread activeInstance = null;
         public void start()
              activeInstance = new Thread(this);
              activeInstance.start();
         public void stop()
              activeInstance = null;
         public void run()
              CapturesBuffer captures = new CapturesBuffer();
              Thread thisInstance = Thread.currentThread();
              try
                   while (activeInstance == thisInstance)
                        int nb = captures.getNbCapt();
                        System.out.println("number of captures: " + nb);
                        thisInstance.sleep(1000); // waiting 1 second
              catch (InterruptedException threadError)
                   System.out.println("Thread error:");
                   threadError.printStackTrace();
              catch(Exception generalError)
                   System.out.println("General error:");
                   generalError.printStackTrace();
              finally
                   captures = null;
                   thisInstance = null;
         public static void main(String[] args)
              (new DataPict()).start();
    class CapturesBuffer
         private int numberOfCaptures = 0;
         public int getNbCapt()
              // I don�t know exactlly what this method is designed for..
              // then I just coded a counter ...
              return numberOfCaptures++;
    }just compile it and run:
    javac *.java
    java DataPict

  • Getting a substitution variable value with VB API

    Hi,I'm trying to get the value of a specific substitution variable on an application with EsbGetVariable().I get a nice message that says "you do not have sufficient access to get this subsitution variable." and then i get the return code of EsbGetVariable() that is 1051085 (i couldn't find it in any documentation).The funniest thing is that i can get the value of the substitution variable, using Application Manager, with the same Essbase user that tries to get the value in the API.Any help would be welcome...PS : here is the code of the macro i execute (hope it will be readable)...Public Sub ESB_GetVariable()Dim i As IntegerDim nCount As IntegerDim sts As LongDim oVariable As ESB_VARIABLE_TDim hCtx As LongDim AppName As String * ESB_APPNAMELENDim DbName As String * ESB_DBNAMELENDim szApp As IntegerDim szDb As IntegerDim pAccess As IntegerDim X As VariantX = EssVConnect("Feuil1", "xxx", "xxx", "xxx", "Gmo_RvIt", "It_Repr")If X = 0 Then hCtx = EssVGetHctxFromSheet("Feuil1") If hCtx <> 0 Then sts = EsbGetActive(hCtx, AppName, szApp, DbName, szDb, pAccess) oVariable.AppName = AppName oVariable.VarName = "Divers_VR" sts = EsbGetVariable(hCtx, oVariable) MsgBox "status is " & sts MsgBox "Divers_VR value is " & oVariable.VarValue Else MsgBox "EssVGetHctxFromSheet failed with status " & hCtxEnd IfElse MsgBox "EssVConnect failed with status " & XEnd IfEnd Sub

    testing formatting ...
    0.03965 0.00026 ds ... <save> auth user=nobodyEdited by: gpoz on Apr 18, 2013 12:14 PM

  • I am not getting User Environment Variable Value

    Hi Team,
    I have been Trying to recover variables values using an anonym procedure from Windows XP SP3
    I have already executed following procedure.
    BEGIN
    DECLARE
    gf_filelog UTL_FILE.file_type;
    v_file_log VARCHAR2 (1024) := ' ';
    gv_path_log VARCHAR2 (1024) := ' ';
    gv_path_log2 VARCHAR2 (1024) := ' ';
    gv_file_log VARCHAR2 (1024) := ' ';
    BEGIN
    DBMS_OUTPUT.put_line ( 'obteniendo valores of vars: '
    || gv_path_log
    || ' '
    || gv_file_log
    DBMS_SYSTEM.get_env ('ORACLE_HOME', gv_path_log);
    DBMS_SYSTEM.get_env ('PATH_MODULO', gv_path_log2);
    DBMS_SYSTEM.get_env ('FILELOG', v_file_log);
    DBMS_OUTPUT.put_line ( 'valores vars ORACLE_HOME: '
    || gv_path_log
    || 'PATH_MODULO:'
    || gv_path_log2
                   || ' FILELOG:'
                   || v_file_log
    gv_file_log :=
    v_file_log || TO_CHAR (SYSDATE, 'yyyymmddHH24MISS')
    || '.log';
    DBMS_OUTPUT.put_line ( 'Nombre de Archivo creado'
    || gv_path_log
    || ' '
    || gv_file_log
    gf_filelog := UTL_FILE.fopen (gv_path_log, gv_file_log, 'w');
    DBMS_OUTPUT.put_line ('Archivo creado' || gv_path_log || ' '
    || gv_file_log
    UTL_FILE.put_line (gf_filelog,
    || TO_CHAR (SYSDATE, 'HH24:MI:SSSSS')
    || ']--> '
    || 'Prueba de escritura'
    || gv_path_log
    || ' '
    || v_file_log
    UTL_FILE.fflush (gf_filelog);
    UTL_FILE.fclose (gf_filelog);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    raise_application_error (-20000,
    '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    END;
    END;
    I show you data result after procedure was excecuted.
    obteniendo valores of vars:
    valores vars ORACLE_HOME: E:\oracle\product\10.2.0\db_1PATH_MODULO: FILELOG:
    Nombre de Archivo creadoE:\oracle\product\10.2.0\db_1 20111122171625.log
    [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    BEGIN
    ERROR at line 1:
    ORA-20000: [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    ORA-06512: at line 55
    I see that only ORACLE_HOME variable value was got, question is why, of course, variable values are already defined as user variables.
    Variables PATH_MODULO and FILELOG was defined using windows maintenance variable method, that is :
    1.- settings
    2.- system
    3.- advanced options
    4.- environment variables
    Here my oracle version
    SQL> select version from v$instance;
    VERSION
    10.2.0.1.0
    SQL>
    Is this an Oracle Issue or variables would be defined in another way?
    ORACLE_HOME VARIABLE was created when oracle engine was installed.
    I have got same result after computer was restart.
    I appreciate wathever clue.

    Ok, that is , I only can read environment variables values, but not variables values at user profile. It happends in unix environment too. So I tried to use another instruction sequence in order to read user variables values.
    Regards

  • Need to query the database to get the last sequence number

    Hi all
    I am trying to get the last sequence number of the last row inserted into my Oracle database. Please could someone give me the SQL which would allow me to do this - using Oracle SQL Explorer I have confirmed that there is a sequence on the table which is called: XYZ_SEQ and the code for this is:
    CREATE SEQUENCE "MY_USER_NAME"."XYZ_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE ;
    My Java application is inserting a row into my table and to insert a new row I need to have the last sequence inserted +1 so the new row can be added.
    Any help would be much appreciated.

    Hi,
    Welcome to the forum!
    If you are using a sequence just do (example):
    INSERT INTO TABLE_NAME
       (COL1,
        COL2)
    VALUES
       (SEQUENCE_NAME.NEXTVAL,
        OTHER_VALUE);to obtain (and use) the next number in the sequence when you are inserting.
    If you have a sequence to use for a specific table, you should use it when your insert new data (no matter your are doing that: java application, procedure, etc). Doing this you avoid some problems when you have the sequence 'out of date' about the associated data.
    Regards,
    Edited by: Walter Fernández on Sep 19, 2009 10:08 AM
    Edited by: Walter Fernández on Sep 19, 2009 10:10 AM

  • PROCEDURE IS NOT EXECUTED WITH IN THE DATABASE TRIGGER

    The follwing databse trigger works fine but the procedure lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price); is not executed
    please help
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    vstock gn_stocks.stock_code%TYPE;
    CURSOR stock_cur
    IS
    SELECT stock_code
    FROM lv_trade_summary
    WHERE stock_code = :NEW.stock_code;
    BEGIN
    OPEN stock_cur;
    FETCH stock_cur
    INTO vstock;
    IF stock_cur%NOTFOUND
    THEN
    INSERT INTO lv_trade_summary(
         the_time,
         the_date,
         stock_code,
         stock_type_id,
         market_id,
         deals,
         price,
         qty,
         trade_value,
         le_value,
         buying,
         selling,
         rec_count,
         rec_serial,
         buying_count,
         close_price,
         coupon_value,
         currency,
         dividend_yield_perc,
         eps,
         free_stocks,
         hi_offer,
         hi_req,
         hi_req_qty,
         high_date,
         high_price,
         last_offer,
         last_request,
         last_trade_date,
         less_offer,
         less_offer_qty,
         less_request,
         liquid,
         low_date,
         low_price,
         market_cap,
         off_count,
         prev_close,
         prop_avg_ofr_10,
         prop_avg_rqst_10,
         prop_avg_ofr_5,
         prop_avg_rqst_5,
         prop_avg_offers,
         prop_avg_rqst,
         req_count,
         rqst_to_offers,
         sector_desc_a,
         sector_desc_e,
         selling_count,
         simple_avg_ofrs_10,
         simple_avg_rqst_10,
         simple_avg_ofr_5,
         simple_avg_rqst_5,
         simple_avg_offers,
         simple_avg_rqst,
         stock_count,
         stock_desc_a,
         stock_desc_e,
         sum_less_ofr_10,
         sum_less_rqst_10,
         sum_less_5_rqst,
         sum_offer,
         sum_volume_traded,
         trx_count,
         sum_request,
         last_request_qty,
         last_offer_qty )
    VALUES (
         :NEW.the_time,
         :NEW.the_date,
         :NEW.stock_code,
         :NEW.stock_type_id,
         :NEW.market_id,
         :NEW.deals,
         :NEW.price,
         :NEW.qty,
         :NEW.trade_value,
         :NEW.le_value,
         :NEW.buying,
         :NEW.selling,
         :NEW.rec_count,
         :NEW.rec_serial,
         lv_calc_pkg.f_buying_count (:NEW.stock_code),
         lv_calc_pkg.f_close_price (:NEW.stock_code),
         lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         lv_calc_pkg.f_currency (:NEW.stock_code),
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         lv_calc_pkg.f_eps (:NEW.stock_code),
         lv_calc_pkg.f_free_stocks (:NEW.stock_code),
         lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         lv_calc_pkg.f_hi_request (:NEW.stock_code),
         lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
         lv_calc_pkg.F_HIGH_price (:new.stock_code),
         lv_calc_pkg.f_last_offer (:NEW.stock_code),
         lv_calc_pkg.f_last_request (:NEW.stock_code),
         lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
         lv_calc_pkg.f_less_offer (:NEW.stock_code),
         lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         lv_calc_pkg.f_less_request (:NEW.stock_code),
         lv_calc_pkg.f_liquid (:NEW.stock_code),
         lv_calc_pkg.f_low_date(:new.stock_code),
         lv_calc_pkg.f_low_price(:new.stock_code),
         lv_calc_pkg.f_market_cap(:new.stock_code),
         lv_calc_pkg.f_off_count (:NEW.stock_code),
         lv_calc_pkg.f_prev_close (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_req_count (:NEW.stock_code),
         lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         lv_calc_pkg.f_sector_desc_a(:new.stock_code),
         lv_calc_pkg.f_sector_desc_e(:new.stock_code),
         lv_calc_pkg.f_selling_count (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_stock_count (:NEW.stock_code),
         lv_calc_pkg.f_stock_desc_a(:new.stock_code),
         lv_calc_pkg.f_stock_desc_e(:new.stock_code),
         lv_calc_pkg.f_sum_less_10_offers,
         lv_calc_pkg.f_sum_less_10_rqst,
         lv_calc_pkg.f_sum_less_5_rqst,
         lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         lv_calc_pkg.f_trx_count (:NEW.stock_code),
         lv_calc_pkg.f_sum_request (:NEW.stock_code),
         lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
    ELSIF stock_cur%FOUND THEN
         UPDATE lv_trade_summary
         SET the_time = :NEW.the_time,
         deals = :NEW.deals,
         price = :NEW.price,
         qty = :NEW.qty,
         trade_value = :NEW.trade_value,
         le_value = :NEW.le_value,
         buying = :NEW.buying,
         selling = :NEW.selling,
         rec_count = :NEW.rec_count,
         rec_serial = :NEW.rec_serial,
         buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
         close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
         coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         currency = lv_calc_pkg.f_currency (:NEW.stock_code),
         dividend_yield_perc =
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
         hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
         last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
         last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
         less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
         less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
         liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
         off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
         prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
         prop_avg_ofr_10 =
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         prop_avg_rqst_10 =
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         prop_avg_ofr_5 =
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         prop_avg_rqst_5 =
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
         rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
         sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
         selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
         simple_avg_ofrs_10 =
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         simple_avg_rqst_10 =
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         simple_avg_ofr_5 =
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         simple_avg_rqst_5 =
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         simple_avg_offers =
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
         stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
         stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
         sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
         sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
         sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
         sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         sum_volume_traded =
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
         sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
         last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
         WHERE stock_code = :NEW.stock_code;
    END IF;
    lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    CLOSE stock_cur;
    END;

    Well, you can use merge statement or exception :
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
         BEGIN
              UPDATE lv_trade_summary
              SET the_time = :NEW.the_time,
              deals = :NEW.deals,
              price = :NEW.price,
              qty = :NEW.qty,
              trade_value = :NEW.trade_value,
              le_value = :NEW.le_value,
              buying = :NEW.buying,
              selling = :NEW.selling,
              rec_count = :NEW.rec_count,
              rec_serial = :NEW.rec_serial,
              buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
              close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
              coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              currency = lv_calc_pkg.f_currency (:NEW.stock_code),
              dividend_yield_perc =
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
              hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
              last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
              last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
              less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
              less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
              liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
              off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
              prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
              prop_avg_ofr_10 =
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              prop_avg_rqst_10 =
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              prop_avg_ofr_5 =
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              prop_avg_rqst_5 =
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
              rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
              sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
              selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
              simple_avg_ofrs_10 =
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              simple_avg_rqst_10 =
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              simple_avg_ofr_5 =
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              simple_avg_rqst_5 =
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              simple_avg_offers =
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
              stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
              stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
              sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
              sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
              sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
              sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              sum_volume_traded =
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
              sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
              last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
              WHERE stock_code = :NEW.stock_code;
         EXCEPTION WHEN OTHERS THEN
              INSERT INTO lv_trade_summary(
              the_time,
              the_date,
              stock_code,
              stock_type_id,
              market_id,
              deals,
              price,
              qty,
              trade_value,
              le_value,
              buying,
              selling,
              rec_count,
              rec_serial,
              buying_count,
              close_price,
              coupon_value,
              currency,
              dividend_yield_perc,
              eps,
              free_stocks,
              hi_offer,
              hi_req,
              hi_req_qty,
              high_date,
              high_price,
              last_offer,
              last_request,
              last_trade_date,
              less_offer,
              less_offer_qty,
              less_request,
              liquid,
              low_date,
              low_price,
              market_cap,
              off_count,
              prev_close,
              prop_avg_ofr_10,
              prop_avg_rqst_10,
              prop_avg_ofr_5,
              prop_avg_rqst_5,
              prop_avg_offers,
              prop_avg_rqst,
              req_count,
              rqst_to_offers,
              sector_desc_a,
              sector_desc_e,
              selling_count,
              simple_avg_ofrs_10,
              simple_avg_rqst_10,
              simple_avg_ofr_5,
              simple_avg_rqst_5,
              simple_avg_offers,
              simple_avg_rqst,
              stock_count,
              stock_desc_a,
              stock_desc_e,
              sum_less_ofr_10,
              sum_less_rqst_10,
              sum_less_5_rqst,
              sum_offer,
              sum_volume_traded,
              trx_count,
              sum_request,
              last_request_qty,
              last_offer_qty )
              VALUES (
              :NEW.the_time,
              :NEW.the_date,
              :NEW.stock_code,
              :NEW.stock_type_id,
              :NEW.market_id,
              :NEW.deals,
              :NEW.price,
              :NEW.qty,
              :NEW.trade_value,
              :NEW.le_value,
              :NEW.buying,
              :NEW.selling,
              :NEW.rec_count,
              :NEW.rec_serial,
              lv_calc_pkg.f_buying_count (:NEW.stock_code),
              lv_calc_pkg.f_close_price (:NEW.stock_code),
              lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              lv_calc_pkg.f_currency (:NEW.stock_code),
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              lv_calc_pkg.f_eps (:NEW.stock_code),
              lv_calc_pkg.f_free_stocks (:NEW.stock_code),
              lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              lv_calc_pkg.f_hi_request (:NEW.stock_code),
              lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
              lv_calc_pkg.F_HIGH_price (:new.stock_code),
              lv_calc_pkg.f_last_offer (:NEW.stock_code),
              lv_calc_pkg.f_last_request (:NEW.stock_code),
              lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
              lv_calc_pkg.f_less_offer (:NEW.stock_code),
              lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              lv_calc_pkg.f_less_request (:NEW.stock_code),
              lv_calc_pkg.f_liquid (:NEW.stock_code),
              lv_calc_pkg.f_low_date(:new.stock_code),
              lv_calc_pkg.f_low_price(:new.stock_code),
              lv_calc_pkg.f_market_cap(:new.stock_code),
              lv_calc_pkg.f_off_count (:NEW.stock_code),
              lv_calc_pkg.f_prev_close (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_req_count (:NEW.stock_code),
              lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              lv_calc_pkg.f_sector_desc_a(:new.stock_code),
              lv_calc_pkg.f_sector_desc_e(:new.stock_code),
              lv_calc_pkg.f_selling_count (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_stock_count (:NEW.stock_code),
              lv_calc_pkg.f_stock_desc_a(:new.stock_code),
              lv_calc_pkg.f_stock_desc_e(:new.stock_code),
              lv_calc_pkg.f_sum_less_10_offers,
              lv_calc_pkg.f_sum_less_10_rqst,
              lv_calc_pkg.f_sum_less_5_rqst,
              lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              lv_calc_pkg.f_trx_count (:NEW.stock_code),
              lv_calc_pkg.f_sum_request (:NEW.stock_code),
              lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
         END;
         lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    END;
    /Nicolas.

  • How to get field and variable value in oracle

    Hi all,
    I'm finding very difficulty to get a field value.. In oracle 11i form there is a field name called total accured and it has value 519.. but i'm not able get this .i search in all tables so iwent to help--> tools-->examine--(diagnostic)-->
    i get Block :'XYZ' field: "Balance" and value:'519' and search in table shown in help.
    Please can anyone help me to get this field and it's value. it is in HRMS.
    Thank You

    It may be a derived / calculated field, which is why you might not be finding it in a table.
    For information on the last query run (may give a clue) do help -> examine, then change block to "SYSTEM" and Field to "LAST_QUERY".
    Also, Help -> Record History will show you the table or view that the data comes from. May also lead to a clue.And this is what is mentioned in the doc referenced above.
    Thanks,
    Hussein

  • How can i set the dynamic text box to show variable value?

    In AS2, I can make a dynamic text box set a var name, when i
    use button set/change the var value, this textbox can show the
    value also.
    but In AS3, dynamic text box can't add var name. than how can
    i do it now?

    Set an instance name for the dynamic textfield. Then, to
    populate the textfield with the value of a variable, use:
    textFieldInstanceName.text = variableName

Maybe you are looking for

  • Pension fund contribution and FPF Bais amount...

    Hi Team, I have a issue with PF at my client place. As you know Pension contribution conditon is that employee whose basic is less then 6500 then the pension contribution ( /3F4) will be 8.33% of actual basic and if the basic salary of employee is >=

  • OBIEE  not working-plz help me

    Hi My name is Priya I installed OBIEE 10.1.3.4.2 sucessfully on windows 7 ultimate OS and database Oracle 11g R2 11.2.0.1.0 but when I tried to Import SH schema from OBIEE Admin Tool the SH schema is not appearing in the select data source under conn

  • The Fan option does not appear for folders in the dock.

    The fan option does not appear on folders on the Dock. Stack option is checked, but all I get is grid list and automatic....running 10.5.2 any ideas?

  • Javascript form.submit() fails when imbeded in table

    Before updating this worked fine, but now version 3.6.12 is failing to respond to javascript form.submit() inside a html select option control! Operating system is Windows 7 The problem seems to be, because the form is imbeded inside a table. Interne

  • HELP iPhone wont connect to laptop

    My husband and i both have the iphone 5 but mine suddenly stop connecting to my laptop it charges fine in the wall but once i plug the cable in the laptop it wont even charge much less connect to itunes . but if i connect my husbands iphone it will r