Trigger does not.

This trigger is not working properly... it constant updating of the value on the 2nd time when I run the same Insert query.

CREATE OR REPLACE TRIGGER ORDER_TABLE_TRIGGER BEFORE INSERT ON ORDER_TABLE
FOR EACH ROW
DECLARE
T_PRODUCT_DESC VARCHAR2(25);
T_PRICE_PER_UNIT NUMBER(4);
vMsg VARCHAR2(30) := 'Select Statment Trigger Fired';
vMsg1 VARCHAR2(30) := 'Insert Statment Trigger Fired';
vMsg2 VARCHAR2(30) := '************';
vMsg3 VARCHAR2(30) := 'Trigger Fired completed';


BEGIN
dbms_output.put_line(vMsg);
SELECT PRODUCT_DESC INTO T_PRODUCT_DESC FROM PRODUCT WHERE PRODUCT_ID= :new.PRODUCT_ID;
SELECT PRICE_PER_UNIT INTO T_PRICE_PER_UNIT FROM PRODUCT WHERE PRODUCT_ID= :new.PRODUCT_ID;
dbms_output.put_line(T_PRODUCT_DESC);
dbms_output.put_line(T_PRICE_PER_UNIT);
dbms_output.put_line(vMsg1);
INSERT INTO ORDER_TABLE
REMARK UPDATE ORDER_TABLE SET PRODUCT_DESC= T_PRODUCT_DESC;
REMARK UPDATE ORDER_TABLE SET UNIT_COST= T_PRICE_PER_UNIT;


dbms_output.put_line(vMsg2);
UPDATE ORDER_TABLE SET PRICE= T_PRICE_PER_UNIT*:NEW.QUANTITY;


dbms_output.put_line(vMsg3);
END;


Post edited by: Praveen Kumar Singh

CREATE OR REPLACE TRIGGER bir_order_table

BEFORE INSERT ON order_table

FOR EACH LINE

BEGIN

SELECT product_desc, price_per_unit, price_per_unit *: NEW.quantity

IN: NEW.product_desc,: NEW.unit_cost,: NEW.price

PRODUCT

WHERE the product_id =: NEW.product_id;

END;

/

Concerning

Tags: Database

Similar Questions

  • TRIGGER does not not in Application of the Apex. The amount of the fine in the DATABASE.

    Hi all

    I created a table with a trigger on it to fill the non-null fields. whenever I insert a new record I need not fill in the non-null, they are met by the trigger (before the trigger for insertion.)
    This trigger works very well when I insert a line of SQL Developer.

    I added a new page to form an apex application to insert data in the same table. but here, when trying to insert the data, I get an error saying "* XXXX field must have a value." I guess that I created for the table of the trigger does not work here.

    Here is the code of the trigger.


    OR REPLACE TRIGGER "abc_BIR" before you CREATE
    INSERT ON 'abc' FOR EACH row BEGIN if: NEW. "' abc_ID ' IS NULL THEN
    SELECT 'abc_SEQ'.nextval
    IN: NEW. "" abc_ID ".
    DOUBLE;
    END IF;
    +: NEW. DW_UPDATE_DT: = SYSDATE; +
    +: NEW. DW_UPDATE_USER: = NVL (htmldb_custom_auth.get_user, USER); +
    +: NEW. DW_CREATE_DT: = SYSDATE; +
    +: NEW. DW_CREATE_USER: = NVL (htmldb_custom_auth.get_user, USER); +
    +: NEW. SOURCE__ID: =: NEW.abc; +.
    END;
    +/+
    ALTER TRIGGER 'abc_BIR' ENABLE;

    Please help me.

    Hello

    I try to explain about form validations, which are created automatically
    When you build a form based on the table.
    In your description of the table for the columns that you have forced as NOT NULL
    a non-null item type validation is automatically created on the form page in the
    Section page treatment-> Validations of your page.
    I'm telling you allows you to delete the postings from the section of Validations on your page
    and not the definition of table constraints.
    Of course:

    These fields will not appear to the end user of the application.

    Field XXXX must have a certain value is the error type of validation provided by your application and
    It has nothing to do with the execution of the trigger.

    I hope that helps!
    Kind regards
    Kiran

  • Ask why partial trigger does not?

    Hi Expert,

    I use JDeveloper 11.1.1.6

    When I run the partial relaxation in the Module of the Application, it works but when I run in weblogic server, the partial value field trigger his does not work. in fact I use the button run as a work-around to deal with.

    Here is the source:

    ===============

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:f = ' http://Java.Sun.com/JSF/core "

    ' xmlns:h = ' http://Java.Sun.com/JSF/HTML "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document id = "d1" >

    < af:messages binding = "#{backingBeanScope.backing_CreateActivityLine.m1} '"

    ID = "m1" / >

    < af:form id = "f1" >

    < af:pageTemplate viewId = "" / Template.jspx "id ="pt1">"

    < f: facet name = "center" >

    < af:panelStretchLayout binding = "#{backingBeanScope.backing_CreateActivityLine.psl1} '"

    ID = "PSL1" >

    < f: facet name = "center" >

    < af:panelGroupLayout layout = "scroll".

                                         xmlns:af=" http://xmlns.Oracle.com/ADF/faces/rich "" "

    Binding = "#{backingBeanScope.backing_CreateActivityLine.pgl1} '"

    ID = "pgl1" >

    < af:trainButtonBar value = "#{controllerContext.currentViewPort.taskFlowContext.trainModel} '"

    Binding = "#{backingBeanScope.backing_CreateActivityLine.tbb1} '"

    ID = "tbb1" / >

    < af:commandLink actionListener = "#{bindings." CreateInsert.execute}.

    Text = "add role".

    Disabled = "#{!}" bindings. CreateInsert.enabled}.

    Binding = "#{backingBeanScope.backing_CreateActivityLine.CL1} '"

    ID = "cl1" / >

    < af:table value = "#{bindings." ActLineEOView2.collectionModel}.

    var = "row".

    lines = ' #{bindings. " ActLineEOView2.rangeSize}.

    emptyText = "#{bindings." ActLineEOView2.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." ActLineEOView2.rangeSize}.

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " ActLineEOView2.collectionModel.selectedRow}.

    selectionListener = "#{bindings." ActLineEOView2.collectionModel.makeCurrent}.

    rowSelection = 'single '.

    Binding = "#{backingBeanScope.backing_CreateActivityLine.T2} '"

    ID = 't2' partialTriggers =': cl1 cl2 ">"

    < af:column sortProperty = "ActivityHeaderId" sortable = "false".

    headerText = "inventive".

    ID = 'c4' >

    < af:selectOneChoice value = "#{row.bindings.ActivityHeaderId.inputValue} '"

    label = "#{row." Bindings.ActivityHeaderId.label}.

    required = "#{bindings." ActLineEOView2.hints.ActivityHeaderId.mandatory}.

    shortDesc = "#{bindings." ActLineEOView2.hints.ActivityHeaderId.tooltip}.

    ID = "soc1' autoSubmit ="true">

    < f: selectItems value = "#{row.bindings.ActivityHeaderId.items} '"

    ID = "si1" / >

    < / af:selectOneChoice >

    < / af:column >

    < af:column sortProperty = 'Amount' sortable = "false".

    headerText = "#{bindings." ActLineEOView2.hints.Amount.label}.

    ID = 'c3' >

    < af:inputText value = "#{row.bindings.Amount.inputValue} '"

    label = "#{bindings." ActLineEOView2.hints.Amount.label}.

    required = "#{bindings." ActLineEOView2.hints.Amount.mandatory}.

    columns = "#{bindings." ActLineEOView2.hints.Amount.displayWidth}.

    maximumLength = "#{bindings." ActLineEOView2.hints.Amount.precision}.

    shortDesc = "#{bindings." ActLineEOView2.hints.Amount.tooltip}.

    ID = "it2" >

    < f: validator binding="#{row.bindings.Amount.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " ActLineEOView2.hints.Amount.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "HeaderAmount" sortable = "false".

    headerText = "budgeted amount.

    ID = "c2" >

    < af:inputText value = "#{row.bindings.HeaderAmount.inputValue} '"

    label = "#{bindings." ActLineEOView2.hints.HeaderAmount.label}.

    required = "#{bindings." ActLineEOView2.hints.HeaderAmount.mandatory}.

    columns = "#{bindings." ActLineEOView2.hints.HeaderAmount.displayWidth}.

    maximumLength = "#{bindings." ActLineEOView2.hints.HeaderAmount.precision}.

    shortDesc = "#{bindings." ActLineEOView2.hints.HeaderAmount.tooltip}.

    ID = "it1" partialTriggers "si1" = >

    < f: validator binding="#{row.bindings.HeaderAmount.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " ActLineEOView2.hints.HeaderAmount.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = 'Reserved' sortable = "false".

    headerText = 'Amount' reserved

    ID = "c1" >

    < af:inputText value = "#{row.bindings.AmountReserved.inputValue} '"

    label = "#{bindings." ActLineEOView2.hints.AmountReserved.label}.

    required = "#{bindings." ActLineEOView2.hints.AmountReserved.mandatory}.

    columns = "#{bindings." ActLineEOView2.hints.AmountReserved.displayWidth}.

    maximumLength = "#{bindings." ActLineEOView2.hints.AmountReserved.precision}.

    shortDesc = "#{bindings." ActLineEOView2.hints.AmountReserved.tooltip}.

    ID = "it3" partialTriggers "si1" = >

    < f: validator binding="#{row.bindings.AmountReserved.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "ActivityLineId" sortable = "false".

    headerText = "#{bindings." ActLineEOView2.hints.ActivityLineId.label}.

    ID = "c5" >

    < af:commandLink actionListener = "#{bindings." Delete.Execute}.

    Text = "remove."

    Disabled = "#{!}" bindings. Delete.Enabled}.

    ID = "cl2" / >

    < / af:column >

    < / af:table >

    < / af:panelGroupLayout >

    < / f: facet >

    < f: facet = 'Start' name / >

    < f: facet = 'top' name >

    < af:train value = "#{controllerContext.currentViewPort.taskFlowContext.trainModel} '"

    Binding = "#{backingBeanScope.backing_CreateActivityLine.T1} '"

    ID = "t1" / >

    < / f: facet >

    < / af:panelStretchLayout >

    < / f: facet >

    < f: attribute name = value "title" = "Create PAP inventive Anak" / >

    < / af:pageTemplate >

    < / af:form >

    < / af:document >

    < / f: view >

    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_CreateActivityLine-->

    < / jsp:root >

    Thank you

    Hello

    label = "#{bindings." ActLineEOView2.hints.HeaderAmount.label}.

    required = "#{bindings." ActLineEOView2.hints.HeaderAmount.mandatory}.

    columns = "#{bindings." ActLineEOView2.hints.HeaderAmount.displayWidth}.

    maximumLength = "#{bindings." ActLineEOView2.hints.HeaderAmount.precision}.

    shortDesc = "#{bindings." ActLineEOView2.hints.HeaderAmount.tooltip}.

    ID = "it1' partialTriggers ="soc1">

    Kind regards

    Ruben.

  • Logon trigger does not not on DB-Link?

    Hi all

    I have a serious question on the table access via a database link.

    I have three schemas:

    DATA@SOURCE

    INTERFACE@SOURCE

    WORK@TARGET

    DATA schema has a table called T1

    The scheme of the INTERFACE has select privileges on all the DATA tables. In addition, INTERFACE schema has a logon trigger change the "current schema" data:

    CREATE OR REPLACE TRIGGER TRG_A_LOGIN_SET_SCHEMA AFTER LOGON
    ON INTERFACE.SCHEMA
    BEGIN
    execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = DATA';
    END;
    

    The scheme of WORK has a link database to the schema of the INTERFACE called INT_DB_LINK.

    I am now logged in the scheme of WORK on the TARGET database and I will execute following statement:

    select a from T1@INT_DB_LINK
    

    -> it works

    Then I run

    declare
      cursor c is  
      select a
        from T1@INT_DB_LINK
       where rownum<2;
    begin
      for r in c loop
        null;
      end loop;
    end; 
    

    It does not work. Error message is ORA-000942: table or view does not exist.

    But why?

    Can someone help me?

    Thanks in advance

    Py

    Hi all

    After a long, very long search I found what caused this strange behavior.

    The error ORA - was not triggered by the SQL execution engine, but by the SQL-parser/SQL-Validation.

    The second statement is that an anonymous block of SQL Oracle parser checks all the dependencies of objects before execution.

    This means that a connection is established to the TARGET to SOURCE checking if table T1 is available. The strange thing is

    that, in this respect the "ALTER SESSION" trigger is not fired. If the Analyzer does not find the object T1 in schema INTERFACE.

    If I create an empty table T1 in INTERFACE the anonymous block gets analysis/validated and the statement is executed. But this

    time the block made a normal life 'connect session' and the trigger is triggered. This means that statements access table T1

    DATA schema. (But T1 in the INTERFACE should be existing this analysis/validation works)

    I don't know if it's a bug or a feature.

    To work around this I created private synonyms in the diagram pointing to DATA objects INTERFACE.

    Thanks for your help!

    Py

    ------

    regarding the other question:

    Yes, the permissions are granted on a role.

  • Trigger does not include conditional predicates with FUSION

    Hello world

    I am facing a problem while using the conditional trigger with predicate. The trigger event is a MERGE statement.
    When the fusion (update and insert the two) is executed, trigger is fired, however the results of predicate condition false.

    For example -.

    create table merge_test (col1, col2 number number);

    create or replace trigger merge_test_tr_stat
    After INSERT or UPDATE or DELETE on merge_test
    Start

    If inserting or updating or deleting then
    dbms_output.put_line ('conditional predicates work');
    on the other
    dbms_output.put_line ("' conditional predicates does not");
    end if;
    end;

    Please run set out below:

    Set serveroutput on;
    insert into merge_test values (1,1);

    Set serveroutput on;
    merge into mt merge_test using tab (select 1 col1 of double)
    on (mt.col1 = tab.col1)
    When matched then
    update the value of col2 = 2
    When not matched then
    Insert values (1,1);


    After you run the merge statement, should result of conditional predicates works but we get conditional predicate does not work.

    Please suggest what to do.

    Thanks in advance.

    Kind regards
    Riddhisha

    Its a bug that has been fixed at 11.2 and more

    Bug 9865211  INSERTION / updates always false in the SQL MERGE triggers

  • 'Stop' trigger does not work...

    There seems to be a fairly simple procedure:

    Click the icon for the trigger to the desired location in the timeline panel, and then click the 'Stop' button in the Panel code to add the code. I add nothing to the code. I want just a simple "stop".

    I must be missing something. Because it does not work. I reinstalled and removed the old preferences. Still does not work.

    Any help would be appreciated.

    Thanks for the file - I think I see the problem.

    You have Autoplay to the scene not checked in the properties panel. In this case, the timeline will not play until a sym.play(1000) () command is issued. You did, but it's for the btn_out label, which went from the trigger with stop at 1500 ms.

    If you select Autoplay, the timeline will play. But you have a trigger with a stop at time zero action.

    What won't happen?

    Thank you

    Joe

  • After delete trigger does not work

    Hi all
    I wrote the trigger

    who does not
    CREATE OR REPLACE TRIGGER DELETE_HR_API_TRANS_TRIGGER
        AFTER DELETE
            ON hr_api_transactions
            FOR EACH ROW
            WHEN ( NEW.transaction_ref_table = 'PER_ALL_VACANCIES' )
    BEGIN
        
        xx_GL_Vacancies.delete_transaction(:OLD.transaction_id);
    END;
    his compilation succesfully
    but nothing bad happened on the tables

    I think there is problem in
    : OLD.transaction_id

    Have you added the COMMIT in your stand-alone procedure xx_GL_Vacancies.delete_transaction?

  • Why this simple trigger does not work?

    For one of our Test environments, I was asked to implement a trigger which limits users based on ip.
    IP addresses of eligible users is stored in the maint.ip_dtls table. But, does not seem the trigger to trigger the application error and reject the connection when a user with an IP address that is not present in the table ip_dtls try to connect.
    create or replace trigger sys.testlogon after logon on database
    declare
    v_ipadd varchar2(100);
    ip_exists number;
    
    begin
    -- Getting the IP
    select sys_context('USERENV','IP_ADDRESS') into v_ipadd from dual ;
    select count(*) into ip_exists from maint.ip_dtls where ip = v_ipadd;
    
    if ip_exists = 0
       then raise no_data_found;
    end if;
    
    exception
    when no_data_found then
    raise_application_error (-20103, 'Insufficient privileges to login');
    
    end ;
    /
    The code works when tested from an anonymous block.

    Published by: Steve_74 on November 25, 2010 06:36

    Probably the fact that you create the trigger in the SYS schema could cause problems.
    Have you tried to create the trigger in another schema/as another user?
    SYS (and SYSTEM) belong to Oracle, and you should not create objects in the schema.

    Edit
    See:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:3236035522926

    Published by: hoek on November 25, 2010 15:53

  • Partial trigger does not work with the Panel group layout using ADF 11 g.

    Friends,

    I have a requirment, based on the value of < af:selectBooleanCheckbox > I make < af:panelGroupLayout > dynamically. If the box is checked, so I have to show available to the Group Panel, otherwise not. The problem that I face here is trigger partial does not work, if I check the Boolean box and refresh the page, then I see that it works. If I refresh the page I don't see that it works as expected.

    Here is the code snippet

    < af:selectBooleanCheckbox value = "#{bindings." ChkBoolean.inputValue}.
    shortDesc = "#{bindings." OtherOptChk.hints.tooltip}.
    ID = "OtherOpt" immediate = "true" autoSubmit = 'true '.
    / >

    < af:panelGroupLayout id = "pgl11" partialTriggers = "ChkBoolean".
    rendering = "#{bindings." ChkBoolean.inputValue} "" >

    I'm doing something wrong here

    Thanks in advance

    The problem is that you use the rendered attribute. This attribute is false, the component is not rendered on the page and you cannot make visible because she's not here.
    Use the visible attribute.

    Timo

  • After that insert update trigger does not work properly

    Hello experts!

    I created an insert/update trigger after and what strikes me is that it does not work as expected.
    The trigger starts a procedure that performs an insert in a second case of changing values table triggered table ("my_table").

    The problem is that in my second table values, which are correlated to the "my_table", are not changed by the correct values immediately. The trails of the trigger and insert!

    I need to update two times to values appear in my second table. Then only the data of the first update will be inserted in the second recital to table the table parent ("my_table") held the most recent values.

    Do you have an idea what could be the problem?
    create or replace
    trigger myscheme.after_update_insert_set_tw
     after update or insert
      on myscheme.my_table
      for each row
      
    declare 
    
    begin
    
     pr_my_table_tw_sync_sk(:new.lng_falle, :new.int_fallennummer, :new.lng_schaedling, :new.objectid);
    
    
    end;
    Brgds,

    SEB

    Remove the pragma autonomous_transaction and validation of your relaxation. This might be the reason. The transaction autonoumous cant properly consider the values of the current transaction (which is not engaged yet).

    This is not logically (if the upgrade fails or is rolled at the time you do not want the inserted row).

    If you then get a problem because the mutation of tables, you will need a different solution: an autonoumous transaction is not the right solution to workaround.

  • Hidden until the trigger does not

    I would like to have a part of the form hidden until this that triggered by an answer 'yes '. I know how to make it work in the regular PDF form, but does not work in the application of eSign. Suggestions?

    Hello Pairofacesdesigns,

    You can define the condition in the field of text by double clicking it and conditions 'Add', you can set them as show if "Radio button 1" = "1" (if the name of the radiobutton is Radio button 1. "» You can also consult the documentation below:

    https://helpx.Adobe.com/document-cloud/help/field-conditions.html

    Let me know if you have any other questions.

    Kind regards

    -Usman

  • Trigger does not fire?

    Hello

    I did this trigger
    create or replace trigger check_start_date
    BEFORE UPDATE
    of sta_startdate
    on staff
    for each row
    begin
        if :new.sta_startdate > '01-JAN-1980'
        then
            raise_application_error(-20999,'error');
        end if;
    
    end;
    /
    However, when I get a date in the staffing table hand and side of January 1, 1980, no error message appears and I can't work out why. It's as if the trigger is not shooting. Can someone explain why this is happening?

    This staffing table is:
    CREATE TABLE STAFF (
    Sta_ID                number(6)           PRIMARY KEY,
    Sta_Surname          varchar2(16)     NOT NULL,
    Sta_Firstname     varchar2(16)     NOT NULL,
    Sta_StartDate     date               NOT NULL,
    Sta_JobTitle     varchar2(32),
    Sta_Salary          number(8,2)   CHECK (Sta_Salary > 0.00 and Sta_Salary < 100000.00)
    );
    and I am trying to enter data are:
    insert into staff (Sta_id, sta_surname, sta_firstname, sta_startdate, sta_jobtitle, sta_salary)
    values ('123', 'smith', 'john', '29-AUG-1920', 'ceo', '1200');
    commit;
    Thank you

    The to_update() function allows to compare the date with ropes.

    http://www.techonthenet.com/Oracle/functions/TO_DATE.php

    create or replace trigger check_start_date
    BEFORE UPDATE
    of sta_startdate
    on staff
    for each row
    begin
        if :new.sta_startdate >  to_date('1980/01/01','yyyy/mm/dd')
        then
            raise_application_error(-20999,'error');
        end if;
    
    end;
    / 
    

    If you do the assignment of db of video rental, as I am, I think that the trigger must be before INSERTING and relaxation is to check if the inserted date is prior to January 1, 1980, not after.

  • SOUND_COMPLETE event trigger does not properly. Help, please.

    I know SOUND_COMPLETE event should be put after channel.play (). I don't know why it does not work. It only works if I play the song in the channel, but not songOut. The question is if I put the song in the channel that the equalizer does not work even if I add SampleDataEvent. Please help me.

    flash.media.Sound; import to import flash.events.MouseEvent;

    Import fl.controls.Slider;

    Import fl.events.SliderEvent;

    import flash.utils.ByteArray;

    import flash.events.SampleDataEvent;

    import flash.net.URLLoader;

    import flash.events.Event;

    import flash.net.URLRequest;

    import flash.media.SoundChannel;

    import equalizer;

    import flash.media.SoundTransform;

    External callers.

    ExternalInterface.addCallback("IsStatic",IsStatic) ("playStop", playStopCaller);

    ExternalInterface.addCallback("IsStatic",IsStatic) ("getPlaylist", getPlaylistCaller);

    ExternalInterface.addCallback("IsStatic",IsStatic) ("eqChange", eqChangeCaller);

    ////////////////////////////////////////////////////////

    ////////////////////////Listeners ////////////////////////

    addEventListener (Event.ENTER_FRAME, update, false, 0, true);

    addEventListener (Event.ENTER_FRAME, getPlaylistX, false, 0, true);

    playBtn.addEventListener (MouseEvent.CLICK, playButtonHandler);

    stopBtn.addEventListener (MouseEvent.CLICK, stopButtonHandler);

    //////////////////////////////////////////////////////////

    //////////////////includes//////////////////////

    EQ: Equalizer var = new Equalizer();

    var eqVector:Vector. < number > = new Vector. < number > ();

    eqVector [0] = 0;

    eqVector [1] = 0;

    eqVector [2] = 0;

    eqVector [3] = 0;

    eqVector [4] = 0;

    eqVector [5] = 0;

    eqVector [6] = 0;

    eqVector [7] = 0;

    eqVector [8] = 0;

    eqVector [9] = 0;

    eqVector [10] = 0;

    eqVector [11] = 0;

    eqVector [12] = 0;

    eqVector [13] = 0;

    eqVector [14] = 0;

    var ba: ByteArray;

    var song: Sound;

    var songOut:Sound;

    var _samples:ByteArray;

    var _sampleBufferL:Vector. < number > = new Vector. < number > ();

    var _sampleBufferR:Vector. < number > = new Vector. < number > ();

    var volumeAdjust:SoundTransform = new SoundTransform();

    var playlistLength:Number = 0;

    var playlist:Array;

    var playTest:Array = new Array("media/sounds/test1.mp3","media/sounds/test2.mp3","media/sounds/test3.mp3");

    var channel: SoundChannel;

    const BUFFER_SIZE:int = 2048; size of the output buffer

    const MIN_SAFETY_BUFFER:int = 1024; minimum collected entry before the beginning of the output

    var songName:String;

    var currentSong:Number = 0;

    var songUrl:URLRequest;

    ////////////////////////////////////////////////

    function playStopCaller(t:String):void {}

    If (t == "0") {}

    stopSong();

    }

    on the other

    If (t == "1") {}

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    playSong();

    }

    }

    function playButtonHandler(event:MouseEvent):void {}

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    playSong();

    }

    function stopButtonHandler(event:MouseEvent):void {}

    stopSong();

    }

    function rhyme (): void {}

    volumeAdjust.volume = 0.5

    Equalizer. Preamp = 0.5;

    song = new Sound();

    song.addEventListener (Event.COMPLETE, loadCompleteSong);

    Song.Load (songUrl);

    }

    function stopSong (): void {}

    Channel.Stop ();

    channel.removeEventListener (Event.SOUND_COMPLETE, checkTiming);

    }

    slider1.addEventListener (SliderEvent.CHANGE, slider1Handler);

    slider2.addEventListener (SliderEvent.CHANGE, slider2Handler);

    slider3.addEventListener (SliderEvent.CHANGE, slider3Handler);

    slider4.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider5.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider6.addEventListener (SliderEvent.CHANGE, slider6Handler);

    slider7.addEventListener (SliderEvent.CHANGE, slider1Handler);

    slider8.addEventListener (SliderEvent.CHANGE, slider2Handler);

    slider9.addEventListener (SliderEvent.CHANGE, slider3Handler);

    slider10.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider11.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider12.addEventListener (SliderEvent.CHANGE, slider6Handler);

    slider13.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider14.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider15.addEventListener (SliderEvent.CHANGE, slider6Handler);

    volSlider.addEventListener (SliderEvent.CHANGE, volSliderHandler);

    function slider1Handler(event:SliderEvent):void {}

    eqVector [0] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider2Handler(event:SliderEvent):void {}

    eqVector [1] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider3Handler(event:SliderEvent):void {}

    eqVector [2] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider4Handler(event:SliderEvent):void {}

    eqVector [3] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider5Handler(event:SliderEvent):void {}

    eqVector [4] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider6Handler(event:SliderEvent):void {}

    eqVector [5] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider7Handler(event:SliderEvent):void {}

    eqVector [6] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider8Handler(event:SliderEvent):void {}

    eqVector [7] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider9Handler(event:SliderEvent):void {}

    eqVector [8] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider10Handler(event:SliderEvent):void {}

    eqVector [9] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider11Handler(event:SliderEvent):void {}

    eqVector [10] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider12Handler(event:SliderEvent):void {}

    eqVector [11] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider13Handler(event:SliderEvent):void {}

    eqVector [13] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider14Handler(event:SliderEvent):void {}

    eqVector [14] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider15Handler(event:SliderEvent):void {}

    eqVector [15] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function volSliderHandler(event:SliderEvent):void {}

    volumeAdjust.volume = event.value/100;

    channel.soundTransform = volumeAdjust;

    }

    function sampleData(event:SampleDataEvent):void {}

    _SAMPLES = new ByteArray();

    var len:Number = song.extract (_samples, BUFFER_SIZE),

    i: int = 0,

    l:number,

    r: Number;

    If (len < BUFFER_SIZE) {}

    Len += song.extract(_samples,BUFFER_SIZE-len,0);

    }

    _SAMPLES.position = 0;

    While (I < BUFFER_SIZE) {}

    l = equalizer.applyFilter (_samples.readFloat ());

    r = equalizer.applyFilter (_samples.readFloat ());

    event.data.writeFloat (l);

    event.data.writeFloat (r);

    i ++ ;

    }

    }

    function loadCompleteSong(event:_Event):void {}

    songOut = new Sound();

    songOut.addEventListener (SampleDataEvent.SAMPLE_DATA, sampleData);

    Channel = songOut.play ();

    channel.addEventListener (Event.SOUND_COMPLETE, checkTiming);

    }

    function Update($e:Event):void

    {

    BA = new ByteArray();

    SoundMixer.computeSpectrum (ba, true);

    var eq1:Number = 0;

    var eq2:Number = 0;

    var eq3:Number = 0;

    var eq4:Number = 0;

    var eq5:Number = 0;

    var eq6:Number = 0;

    var eq7:Number = 0;

    var eq8:Number = 0;

    for (var i = 0; i < 64; i ++) {}

    EQ1 += b [i];

    }

    for (i = 64; i < 128; i ++) {}

    EQ2 += b [i];

    }

    for (i = 128; i < 192; i ++) {}

    EQ3 += b [i];

    }

    for (i = 192; i < 256; i ++) {}

    EQ4 += b [i];

    }

    for (i = 256; i < 320; i ++) {}

    EQ5 += b [i];

    }

    for (i = 320; i < 384; i ++) {}

    EQ6 += b [i];

    }

    for (i = 384; i < 448; i ++) {}

    EQ7 += b [i];

    }

    for (i = 448; i < 512; i ++) {}

    Eq8 += b [i];

    }

    If {(eq1/64 < 100)}

    var fxNr1:Number = eq1/64;

    }

    on the other

    fxNr1 = 100;

    If {(eq2/64 < 100)}

    var fxNr2:Number = eq2/64;

    }

    on the other

    fxNr2 = 100;

    If {(EQ 3/64 < 100)}

    var fxNr3:Number = eq3/64;

    }

    on the other

    fxNr3 = 100;

    If {(eq4/64 < 100)}

    var fxNr4:Number = eq4/64;

    }

    on the other

    fxNr4 = 100;

    If {(EQ 5/64 < 100)}

    var fxNr5:Number = eq5/64;

    }

    on the other

    fxNr5 = 100;

    If {(eq6/64 < 100)}

    var fxNr6:Number = eq6/64;

    }

    on the other

    fxNr6 = 100;

    If {(eq7/64 < 100)}

    var fxNr7:Number = eq7/64;

    }

    on the other

    fxNr7 = 100;

    If {(QE8/64 < 100)}

    var fxNr8:Number = eq8/64;

    }

    on the other

    fxNr8 = 100;

    var eqz1:Number = Math.abs (Math.round (fxNr1));

    var eqz2:Number = Math.abs (Math.round (fxNr2));

    var eqz3:Number = Math.abs (Math.round (fxNr3));

    var eqz4:Number = Math.abs (Math.round (fxNr4));

    var eqz5:Number = Math.abs (Math.round (fxNr5));

    var eqz6:Number = Math.abs (Math.round (fxNr6));

    var eqz7:Number = Math.abs (Math.round (fxNr7));

    var eqz8:Number = Math.abs (Math.round (fxNr8));

    ExternalInterface.call("saveglobalscore",score) ("as3_getEq", eqz1, eqz2, eqz3, eqz4, eqz5, eqz6, eqz7, eqz8);

    }

    function getPlaylistCaller(x:Array) {}

    playlist = x;

    var playlistLength = playlist.length;

    }

    function getPlaylistX (event): void {}

    playlist = playTest;

    playlistLength = playlist.length;

    trace (playlist. Length);

    }

    nextBtn.addEventListener (MouseEvent.CLICK, nextSongHandler);

    prevBtn.addEventListener (MouseEvent.CLICK, prevSongHandler);

    function nextSongHandler(event:MouseEvent):void {}

    If (currentSong < playlistLength-1) {}

    currentSong ++;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    If (currentSong == playlistLength - 1) {}

    currentSong = 0;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    function prevSongHandler(event:MouseEvent):void {}

    If (currentSong > 0) {}

    -currentSong;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    if(currentSong == 0) {}

    currentSong = playlistLength - 1;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    function checkTiming(event:Event):void {}

    ExternalInterface.call("saveglobalscore",score) ("console.log", "intra aici.");

    channel.removeEventListener (Event.SOUND_COMPLETE, checkTiming);

    If (currentSong < playlistLength-1) {}

    currentSong ++;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    If (currentSong == playlistLength - 1) {}

    currentSong = 0;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    use:

    flash.media.Sound; import to import flash.events.MouseEvent;

    Import fl.controls.Slider;

    Import fl.events.SliderEvent;

    import flash.utils.ByteArray;

    import flash.events.SampleDataEvent;

    import flash.net.URLLoader;

    import flash.events.Event;

    import flash.net.URLRequest;

    import flash.media.SoundChannel;

    import equalizer;

    import flash.media.SoundTransform;

    External callers.

    ExternalInterface.addCallback("IsStatic",IsStatic) ("playStop", playStopCaller);

    ExternalInterface.addCallback("IsStatic",IsStatic) ("getPlaylist", getPlaylistCaller);

    ExternalInterface.addCallback("IsStatic",IsStatic) ("eqChange", eqChangeCaller);

    ////////////////////////////////////////////////////////

    ////////////////////////Listeners ////////////////////////

    addEventListener (Event.ENTER_FRAME, update, false, 0, true);

    addEventListener (Event.ENTER_FRAME, getPlaylistX, false, 0, true);

    playBtn.addEventListener (MouseEvent.CLICK, playButtonHandler);

    stopBtn.addEventListener (MouseEvent.CLICK, stopButtonHandler);

    //////////////////////////////////////////////////////////

    //////////////////includes//////////////////////

    EQ: Equalizer var = new Equalizer();

    var eqVector:Vector. = new Vector. ();

    eqVector [0] = 0;

    eqVector [1] = 0;

    eqVector [2] = 0;

    eqVector [3] = 0;

    eqVector [4] = 0;

    eqVector [5] = 0;

    eqVector [6] = 0;

    eqVector [7] = 0;

    eqVector [8] = 0;

    eqVector [9] = 0;

    eqVector [10] = 0;

    eqVector [11] = 0;

    eqVector [12] = 0;

    eqVector [13] = 0;

    eqVector [14] = 0;

    var ba: ByteArray;

    var song: Sound;

    var songOut:Sound;

    var _samples:ByteArray;

    var _sampleBufferL:Vector. = new Vector. ();

    var _sampleBufferR:Vector. = new Vector. ();

    var volumeAdjust:SoundTransform = new SoundTransform();

    var playlistLength:Number = 0;

    var playlist:Array;

    var playTest:Array = new Array ("media/sounds/test1.mp3","media/sounds/test2.mp3", "media/sounds test3.mp3");

    var channel: SoundChannel;

    const BUFFER_SIZE:int = 2048; size of the output buffer

    const MIN_SAFETY_BUFFER:int = 1024; minimum collected entry before the beginning of the output

    var songName:String;

    var currentSong:Number = 0;

    var songUrl:URLRequest;

    ////////////////////////////////////////////////

    function playStopCaller(t:String):void {}

    If (t == "0") {}

    stopSong();

    }

    on the other

    If (t == "1") {}

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    playSong();

    }

    }

    function playButtonHandler(event:MouseEvent):void {}

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    playSong();

    }

    function stopButtonHandler(event:MouseEvent):void {}

    stopSong();

    }

    function rhyme (): void {}

    volumeAdjust.volume = 0.5

    Equalizer. Preamp = 0.5;

    song = new Sound();

    song.addEventListener (Event.COMPLETE, loadCompleteSong);

    Song.Load (songUrl);

    }

    function stopSong (): void {}

    Channel.Stop ();

    channel.removeEventListener (Event.SOUND_COMPLETE, checkTiming);

    }

    slider1.addEventListener (SliderEvent.CHANGE, slider1Handler);

    slider2.addEventListener (SliderEvent.CHANGE, slider2Handler);

    slider3.addEventListener (SliderEvent.CHANGE, slider3Handler);

    slider4.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider5.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider6.addEventListener (SliderEvent.CHANGE, slider6Handler);

    slider7.addEventListener (SliderEvent.CHANGE, slider1Handler);

    slider8.addEventListener (SliderEvent.CHANGE, slider2Handler);

    slider9.addEventListener (SliderEvent.CHANGE, slider3Handler);

    slider10.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider11.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider12.addEventListener (SliderEvent.CHANGE, slider6Handler);

    slider13.addEventListener (SliderEvent.CHANGE, slider4Handler);

    slider14.addEventListener (SliderEvent.CHANGE, slider5Handler);

    slider15.addEventListener (SliderEvent.CHANGE, slider6Handler);

    volSlider.addEventListener (SliderEvent.CHANGE, volSliderHandler);

    function slider1Handler(event:SliderEvent):void {}

    eqVector [0] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider2Handler(event:SliderEvent):void {}

    eqVector [1] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider3Handler(event:SliderEvent):void {}

    eqVector [2] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider4Handler(event:SliderEvent):void {}

    eqVector [3] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider5Handler(event:SliderEvent):void {}

    eqVector [4] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider6Handler(event:SliderEvent):void {}

    eqVector [5] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider7Handler(event:SliderEvent):void {}

    eqVector [6] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider8Handler(event:SliderEvent):void {}

    eqVector [7] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider9Handler(event:SliderEvent):void {}

    eqVector [8] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider10Handler(event:SliderEvent):void {}

    eqVector [9] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider11Handler(event:SliderEvent):void {}

    eqVector [10] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider12Handler(event:SliderEvent):void {}

    eqVector [11] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider13Handler(event:SliderEvent):void {}

    eqVector [13] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider14Handler(event:SliderEvent):void {}

    eqVector [14] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function slider15Handler(event:SliderEvent):void {}

    eqVector [15] = number (event.value) / 100;

    equalizer.eqGains = eqVector;

    }

    function volSliderHandler(event:SliderEvent):void {}

    volumeAdjust.volume = event.value/100;

    channel.soundTransform = volumeAdjust;

    }

    function sampleData(event:SampleDataEvent):void {}

    _SAMPLES = new ByteArray();

    var len:Number = song.extract (_samples, BUFFER_SIZE),

    i: int = 0,

    l:number,

    r: Number;

    If (len< buffer_size="" )="">

    Len += song.extract(_samples,BUFFER_SIZE-len,0);

    }

    _SAMPLES.position = 0;

    While (i< buffer_size)="">

    l = equalizer.applyFilter (_samples.readFloat ());

    r = equalizer.applyFilter (_samples.readFloat ());

    event.data.writeFloat (l);

    event.data.writeFloat (r);

    i ++ ;

    }

    }

    function loadCompleteSong(event:_Event):void {}

    Channel = song.play ();

    channel.addEventListener (Event.SOUND_COMPLETE, checkTiming);

    song.addEventListener (SampleDataEvent.SAMPLE_DATA, sampleData);

    }

    function Update($e:Event):void

    {

    BA = new ByteArray();

    SoundMixer.computeSpectrum (ba, true);

    var eq1:Number = 0;

    var eq2:Number = 0;

    var eq3:Number = 0;

    var eq4:Number = 0;

    var eq5:Number = 0;

    var eq6:Number = 0;

    var eq7:Number = 0;

    var eq8:Number = 0;

    for (var i = 0; i)<>

    EQ1 += b [i];

    }

    for (i = 64; I)<>

    EQ2 += b [i];

    }

    for (i = 128; I)<>

    EQ3 += b [i];

    }

    for (i = 192; I)<>

    EQ4 += b [i];

    }

    for (i = 256; I)<>

    EQ5 += b [i];

    }

    for (i = 320; I)<>

    EQ6 += b [i];

    }

    for (i = 384; I)<>

    EQ7 += b [i];

    }

    for (i = 448; I)<>

    Eq8 += b [i];

    }

    if(EQ1/64)<>

    var fxNr1:Number = eq1/64;

    }

    on the other

    fxNr1 = 100;

    if(EQ2/64)<>

    var fxNr2:Number = eq2/64;

    }

    on the other

    fxNr2 = 100;

    if(EQ3/64)<>

    var fxNr3:Number = eq3/64;

    }

    on the other

    fxNr3 = 100;

    if(EQ4/64)<>

    var fxNr4:Number = eq4/64;

    }

    on the other

    fxNr4 = 100;

    if(EQ5/64)<>

    var fxNr5:Number = eq5/64;

    }

    on the other

    fxNr5 = 100;

    if(EQ6/64)<>

    var fxNr6:Number = eq6/64;

    }

    on the other

    fxNr6 = 100;

    if(EQ7/64)<>

    var fxNr7:Number = eq7/64;

    }

    on the other

    fxNr7 = 100;

    if(eq8/64)<>

    var fxNr8:Number = eq8/64;

    }

    on the other

    fxNr8 = 100;

    var eqz1:Number = Math.abs (Math.round (fxNr1));

    var eqz2:Number = Math.abs (Math.round (fxNr2));

    var eqz3:Number = Math.abs (Math.round (fxNr3));

    var eqz4:Number = Math.abs (Math.round (fxNr4));

    var eqz5:Number = Math.abs (Math.round (fxNr5));

    var eqz6:Number = Math.abs (Math.round (fxNr6));

    var eqz7:Number = Math.abs (Math.round (fxNr7));

    var eqz8:Number = Math.abs (Math.round (fxNr8));

    ExternalInterface.call("saveglobalscore",score) ("as3_getEq", eqz1, eqz2, eqz3, eqz4, eqz5, eqz6, eqz7, eqz8);

    }

    function getPlaylistCaller(x:Array) {}

    playlist = x;

    var playlistLength = playlist.length;

    }

    function getPlaylistX (event): void {}

    playlist = playTest;

    playlistLength = playlist.length;

    trace (playlist. Length);

    }

    nextBtn.addEventListener (MouseEvent.CLICK, nextSongHandler);

    prevBtn.addEventListener (MouseEvent.CLICK, prevSongHandler);

    function nextSongHandler(event:MouseEvent):void {}

    If (currentSong<>

    currentSong ++;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    If (currentSong == playlistLength - 1) {}

    currentSong = 0;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    function prevSongHandler(event:MouseEvent):void {}

    If (currentSong > 0) {}

    -currentSong;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    if(currentSong == 0) {}

    currentSong = playlistLength - 1;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    function checkTiming(event:Event):void {}

    ExternalInterface.call("saveglobalscore",score) ("console.log", "intra aici.");

    channel.removeEventListener (Event.SOUND_COMPLETE, checkTiming);

    If (currentSong<>

    currentSong ++;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    on the other

    If (currentSong == playlistLength - 1) {}

    currentSong = 0;

    songName = new String();

    songName = playlist [currentSong];

    songUrl = new URLRequest (songName);

    stopSong();

    playSong();

    }

    }

    and you will need a crossdomain permissions file if your sound is loading from another domain.

  • In NLS_SESSION_PARAMETERS logon trigger does not

    Hello

    I have a problem with a logon trigger setting session parameters:
    create or replace
    TRIGGER standard.after_logon_trg
    AFTER LOGON ON STANDARD.SCHEMA
    BEGIN
      DBMS_APPLICATION_INFO.set_module(USER, 'Initialized');
      EXECUTE IMMEDIATE ('ALTER SESSION SET current_schema=standard');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_DATE_LANGUAGE=''AMERICAN''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_TERRITORY=''AMERICA''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_TIMESTAMP_FORMAT=''HH24:mi:ss''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_COMP=LINGUISTIC');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_SORT=BINARY_CI');
      insert into standard.testcc (bezeichnung, datum) values ('logontrigger', SYSDATE);
    END;
    After I connect, the new row is added to the table, but the session parameters are completely intact.
    Select * from NLS_SESSION_PARAMETERS says:
    NLS_LANGUAGE     GERMAN
    NLS_TERRITORY     GERMANY
    NLS_CURRENCY     €
    NLS_ISO_CURRENCY     GERMANY
    NLS_NUMERIC_CHARACTERS     ,.
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD.MM.RR
    NLS_DATE_LANGUAGE     GERMAN
    NLS_SORT     GERMAN
    NLS_TIME_FORMAT     HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT     DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT     HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY     €
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    If I run the ALTER SESSION statements in the sql (standard user) console, they work perfectly, so this seems to be without end of permission.

    Which is wrong with the trigger?

    Thanks and greetings
    Christian

    Published by: 853536 on 20.04.2011 00:31

    OK, I traced the entire database and discovered that my settings are overwritten. So after that my trigger has been executed, the NLS Session parameters are changed, for example:
    =====================
    PARSING IN CURSOR #4 len=386 dep=0 uid=40 oct=3 lid=40 tim=4721509708 hv=302297662 ad='ab275c28'
    select parameter,value from nls_session_parameters 
     union all SELECT 'DB_TIMEZONE' name, DBTIMEZONE  value FROM DUAL 
     union all SELECT 'SESSION_TIMEZONE' name, SESSIONTIMEZONE value FROM DUAL
     union all SELECT 'SESSION_TIMEZONE_OFFSET' name, TZ_OFFSET(SESSIONTIMEZONE) value from DUAL
     union all SELECT parameter, value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET' 
    END OF STMT
    PARSE #4:c=0,e=3962,p=0,cr=4,cu=0,mis=1,r=0,dep=0,og=1,tim=4721509705
    EXEC #4:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721509816
    FETCH #4:c=0,e=111,p=0,cr=0,cu=0,mis=0,r=10,dep=0,og=1,tim=4721509976
    FETCH #4:c=0,e=132,p=0,cr=0,cu=0,mis=0,r=10,dep=0,og=1,tim=4721510598
    FETCH #4:c=0,e=204,p=0,cr=3,cu=0,mis=0,r=1,dep=0,og=1,tim=4721511118
    STAT #4 id=1 cnt=21 pid=0 pos=1 obj=0 op='UNION-ALL  (cr=3 pr=0 pw=0 time=264 us)'
    STAT #4 id=2 cnt=17 pid=1 pos=1 obj=0 op='FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=128 us)'
    STAT #4 id=3 cnt=1 pid=1 pos=2 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=1 us)'
    STAT #4 id=4 cnt=1 pid=1 pos=3 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us)'
    STAT #4 id=5 cnt=1 pid=1 pos=4 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=1 us)'
    STAT #4 id=6 cnt=1 pid=1 pos=5 obj=96 op='TABLE ACCESS FULL PROPS$ (cr=3 pr=0 pw=0 time=194 us)'
    =====================
    PARSING IN CURSOR #3 len=41 dep=0 uid=40 oct=42 lid=40 tim=4721512239 hv=2321140216 ad='ab275184'
    alter session set NLS_TERRITORY='GERMANY'
    END OF STMT
    PARSE #3:c=0,e=329,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=4721512236
    EXEC #3:c=0,e=48,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721512424
    =====================
    PARSING IN CURSOR #2 len=35 dep=0 uid=40 oct=42 lid=40 tim=4721513208 hv=2785092162 ad='ab274e88'
    alter session set NLS_SORT='GERMAN'
    END OF STMT
    PARSE #2:c=0,e=283,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=4721513205
    EXEC #2:c=0,e=20,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721513370
    =====================
    ...
    This explains why they are crushed, but I still don't know why the session parameters are changed after my trigger at all. Any idea?

    Published by: 853536 on 20.04.2011 01:24


    Problem solved: I was using Oracle SQL Developer to change my trigger and try it - and Developer SQL seems ovewrite the NLS_Session settings. Duh.

    Published by: 853536 on 20.04.2011 02:04

    Yes, SQL Developer usually replace the settings. It should not do this if you go to tools-> Preferences-> database-> NLS and mark 'Skip NLS Settings'.

    But any program using JDBC OCI will also replace most of the settings. Therefore, don't rely on the database to set the NLS parameters. It's applications to properly prepare the environment of the NLS (if the standard initialization based on the settings of operating system and/or NLS_LANG is not satisfactory).

    -Sergiusz

  • Partial trigger does not not for &lt; af:column &gt;

    Hello

    I use Jdeveloper 11.1.3.4 version

    Question: I am trying to update only specific column based on a change in value on a particular date field, when I change the date I need to refresh a < af:column > < af:table > component, as soon as I change the value of the effective date, the value of the column is not refreshed automatically If I refresh the browser and I see the change... Am I missing something here?

    Here is my sample code snippet.
    < af:panelbox >
    < af:panelGroupLayout >
    < af:inputDate id = 'date' autosubmit = "true" > - I need to refresh the table column when this value changes.
    < / af:palenGroupLayout >
    < af:panelcollection >
    < af:table >
    "< af:column visible =" #{- sense Some-} "partialTrigger =": date "/ >-is not updating automatically, only when I refresh the browser, I can see a change around here."
    < / af:table >
    < / af:palencollection >
    < / af:panelBox >

    Thank you

    JDeveloper 11.1.3.4 version

    is this old version? I do not know. Please specify here.

    Why are you trying to referesh a particular column? I hope that he can't go to work with ppr.
    instead of trying to refresh a column. You can try setting ppr to the component inside the af: column

    What mean means, such as for example

    
     here ppr
    
    

Maybe you are looking for

  • There was formerly a progress bar for when the e-mails were being downloaded. It has now disappeared. What happened to him?

    My e-mail provider does not always play nice. There has always been a progress bar in the status bar to indicate that the emails were download correctly. If I don't see the progress bar, I knew to check with the provider. Recently, the progress bar w

  • Re: Satellite M70 - why not until now no drivers for Windows 7 available?

    I'm working on Windos 7 nowadyas & everyting seems okey. The problem I am facing no. is lackin' Toshiba drivers > why so far no Toshiba drivers support Windows 7Thanks in advane I was working on the Vista SP2 and everything is OK

  • Inside the INI file section

    Hello I was wondering if it is possible to read an ini file that contains several sections, for example: SECTION [1] [SECTION 1-1] Val = 1 [SECTION 2] [SECTION 2-1] Val = 2 [SECTION 2-2] Val = 3 Is it possible to use Ini_GetInt (); for Val = 2... As

  • VCS slow response in the GUI after X7.1 upgraded

    We recentlty improved our VCS to X7.1 and see the GUI response is very slow. We have the box integrated with LDAP for authentication for the admin user. We tried using the box with both local and remote authentication. But still the connection time t

  • Lightroom CC 2015.5 - memory leak?

    I reinstalled my computer just after doing a few hardware upgrades (12 GB - > 16GB, 500GB SSD, new video card) and now if Lightroom works for about 30-40 minutes, Windows warns me that my system is out of memory.I restarted Lightroom and opens the wi