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

Tags: Database

Similar Questions

  • 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.

  • the resume session logon screen does not appear

    This happened after I installed windows essentials. Less, it's the only thing that has changed on my computer.

    Since then, my screensaver snaps but the logon screen does not light when I touch the mouse or keyboard. Everything is there for anyone to see.

    Help, please.

    I wonder if the screensaver is actually attractive.

    You use a screen saver image rather than a screen empty?  If this isn't the case, could you then temporarily for testing purposes.

    Go to control panel, Options power, active {power plan} change plan settings, turn off the screen and then set this for an hour or more, then you can be sure that it is not getting involved in this problem.

    Try this: -.

    1 if the screen saver is really attractive, but the connection does not work then it means that at least one aspect of the power options is not safeguarded by the system.  Are the other settings in power options, plan {power} active settings change, change of plan avancΘs, [you will have to click on "view the currently hidden settings] all be registered that you put them? Also, make sure that all these 3 parameters [above] still have their settings correctly.  You must be bored watching the. If the settings you equip & registered do not correctly appear in the advanced power management when you watch them again later to see this MS fix

    When you configure power options for the active power plan in Windows Vista or in Windows 7, the changes do not appear in the Power Options item in Control Panel

    2. If the screen saver is not actually engage then go on Panel configuration, device, Manager display - check for error messages then make a right click & Update drivers or go to the manufacturer of PC / display card manufacturer & install their last update.

    Beyond that, I can't think more away from the useful suggestions.  You've probably already tried SFC & found that he picked up nothing.

  • 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

  • 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

  • Logon screen does not appear for public wifi

    I recently bought two Macs (Macbook Pro and Macbook Air).

    When I connect to wifi, which requires a logon, the Macbook Pro works fine. The Macbook Air does not work. It connects to the network, but when you open a browser, it says that you are not connected to internet (which is true, as did no logon).

    Forums offers various ways to approach this (try to force the login screen by entering the URL, look at the DNS settings, enter http://192.168.1.1 etc etc) but none of these work.

    I am lucky to have two Macs and I watched the network settings, Notification etc settings and they are (essentially) - things the same as the Mac address are obviously different.

    Two Macs are OS X El Captain (Version 10.11.4).

    Can anyone help as the Macbook Air is not very useful if I can't access public wifi?

    And if anyone has the definitive answer, I think it would help a lot of people.

    Thank you very much.

    How are you connected to the router? What's an auto assigned DNS or that you must do it manually.  If it's self assigned, remove the wifi settings in the preferences system, network. Network / airport / advanced, under the airport click Network in the box, then the negative pole. Then close and open the airport icon in the top menu. Make sure that the airport is on. Click on join the network, and then follow the instructions.  you will be asked for the name of the network and security. then your network password.  Do of course, don't forget that this network is enabled. You are basically removing the network in system preferences and starting over.

  • 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.

  • 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?

  • 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.

  • Define a user account already but every time I start my computer the Welcome / logon screen does not appear.

    Original title: user account number.

    I've set up a user account already but every time I start my computer the home / log on screen does not appear

    Hi willy79,

    How many accounts do you have?

    You can check if the Welcome screen is enabled in your computer.

    For more information, refer to this link: to turn the Welcome screen on or off

    Hope the helps of information.
    Please post back and we do know.

  • Windows XP logon screen does not appear

    Laptop of my colleague was recently hit by the tdss rootkit malware.  I think I could clean out of his system.  When trying to load the computer out of safe mode, the Windows XP splash screen appears, he will then travel to the blue screen (BSOD no), the pointer of the mouse will appear, but the login screen won't come.  How can I get this problem so that the computer can be used again without having to do a low-level format?

    I've used the Windows Recovery Console to extract a new copy of the kernel32.dll file, but the problem remains.

    Hey

    I wish your problem which was simple. return to safe mode and go to control panel, administrative tools, Event Viewer on and click on system. Now you should be able to see all kinds of errors publish and republish when replying again so that can see your problem.

    It sounds like your windows for some reason any download some drivers painful, which is why the long delay for your account download. You may also check your registry too. I wouldn't you recommended changes before saving your date and knowing your way around.

    On the command prompt type: housing (MRT.exe) If you missed to clean malware, let him scan window clean from any virus remains. Parderogationauxarticles how to clean tdss rootkit and with what?

    When windows has finished the Scan, Type Run: (msconfig.exe), the utility configuration system to select diagnostic startup or selective startup which means choose what system services or start to download when windows restarts starts. I recommend for you to disable all non-microsoft services and all the commissioning.

    Restart the computer, you should be able to access normal account.

    It's not over I have difficulty but only first step setting... good luck.

    P.S if tool (MRT) does not work it means that your friend didn't update its windows xp.

    Life is easy, live and die what else?.

  • 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

Maybe you are looking for