DATABASE Trigger not Working

Dear All,
I wrote the DataBase Trigger which gets compile but not execute and if i execute the procedure manually then it works.
CREATE OR REPLACE TRIGGER ficreports.trg_omni
AFTER STARTUP ON DATABASE
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
Temp_Reporting_Datasync;
commit;
END;
Kindly give your valuable suggestions to start executing the trigger after starting the database.
Regards,
Anand

Yes , if it is fired then it will perform the DML operation on the tables which is mentioned inside the procedure..
Is there any possiblibility of not firing the trigger or the way of calling procedure is not correct ?
Kindly confirm.

Similar Messages

  • After Logon on Database Trigger Not Working From Client Terminal

    Hi Every One
    I Have a Problem, I'am Using Oracle 10g R2, I'd Written After Logon on Database Trigger, I'd Written The Trigger Under The Under The User With DBA Privileges, and it is work Fine, but it is work only when i Logon On The Database from The Server Terminal with any user, and If Logon From any Other Terminal It Is Not Work,
    Can any One Know The Reason, Please Help me
    Yasser Mokhtar

    Please post the trigger code.

  • After upgrading ACS 3.3.1 to 4.2 on windows the local database is not working

    Hi,
    I have upgaded the ACS 3.3.1 for windows server to 4.2. Everything went fine but the local database is not working.
    The CD is an upgrade kit from 3.x to 4.2 on windows. I tried to install directly the 4.2 I was able to install but integration with AD/LDAp is not working. Anysay its an upgrade kit so I cant expect it shoud work when install drectly the 4.2 but by upgrading from 3.3 to 4.2 everything should work fine.
    I followed the upgradation path as recomended.
    Also we have a requirment that once it is upgraded to 4.2 we need to shift the whole thing from the physical server to a virtual machine on VMware ESX server 3.5.
    Can anybody pls guide me if anything else to do after the upgradation.
    Thanks & Regards
    Sachi

    Hi Javier,
    First of all I was facing a problem of restoring the old database of 3.3 to 4.2. Somehow I overcame that issue by following the below steps. Now local authentication is working fine but AD/other External database authentication is not working. As you told the setting for the unknown users are configured to fetch the credentials from the external database if it is not in the local database.
    Do we need to do anything in the AD itself?
    Regards
    Sachi
    Steps for ACS upgrade to 4.2 version
    Below are the requested steps mentioned for the up gradation from ACS 3.3.2 to ACS 4.2.
            1)     Take a configuration backup from existing ACS. ACS--->System
    configuration----> ACS Backup
    2)    now if you have  ACS 3.3.2 on server. take backup of the ACS
    3)   Insert the cd or if you have the set up on the system then  Run the setup of ACS 3.3.4. During the process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 3.3.4 upgrade.
    4)     Once you are at 3.3.4, take a backup and keep it handy.
    5)     Run the setup of 4.1.1. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.1 upgrade.
    6)Once you are at 4.1.1.24 take a backup and keep it handy.
    7)     Run the setup of 4.2. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.2 upgrade.
    8)     Once you are at 4.2 take a backup and keep it handy. Now run the
    patch 12 and take a backup again.
    9)     Now fresh install 4.2 on your new production server and install patch
    12. Restore the 4.2 patch 12 backup and you should be all set.

  • Oracle 10g database homepage not working?

    Oracle 10g database homepage not working?
    Hi just i installed oracle database 10g express edition but after the restart the oracle database homepage wont open http://127.0.0.1:8080/apex that link always telling cannot display...
    here i have posted lsnrctl status
    pls help
    thanks in advance
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY…
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 25-SEP-2010 17:52:11
    Uptime 0 days 1 hr. 28 min. 24 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\se…
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\se…
    og\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIP…
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOS…
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

    I had a problem of accessing Oracle 10g database homepage. After a couple of days of research and discussions with coworker we found a solution.
    Here is the solution:
    1. Find out your default browser.
    2. Configure your default web browser to connect to the Oracle Database XE Database Home Page as stated
    here:
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#CIHHJEHF
    If this does not help de-install Oracle XE and reinstall following the instruction. During re-installation find out your default browser and configure it as instructed.
    I suspect when the default web browser changes the Oracle 10g XE Database Home Page stops working.
    Good luck

  • XML Query works on one database and not working on others with errLPX-00241

    I have one query as below
    SELECT EXTRACTVALUE
    (VALUE (xml_node),
    '/inspectionActivityArtifact/ns2:landfillTypes/ns2:type[position()=1]',
    'xmlns:ns2="http://dwm.sw.xmlNamespace/InspectionActivity"'
    ) AS TEST
    FROM artifacts a,TABLE (XMLSEQUENCE ((XMLTYPE (NVL (artifact_data, '<empty></empty>'))))) xml_node
    this works well on other databases but not working on one database. Everything is same configuration and OS and everything.
    I can work on other XML parsing which is working fine but not this query.
    Any idea ?
    Viral Dave

    post versions and patch levels for both databases eg 10.2.0.1.0 and the error message you are getting.

  • Format Trigger not working in 10g Report.

    I have a report with two eclipses
    (*) Debit (*) Credit . Please note that the two asterics denotes eclipses.
    I have a format triggers on these eclipses based on the database item Debit_credit.
    IF :debit_credit = 'CREDIT' THEN
    RETURN FALSE;
    ELSE
    RETURN TRUE;
    End if;
    and vis-visa. However the format trigger is not working. Regardless of the value of
    debit_credit. I even created a frame around these eclipses and put my format trigger all to no avail. Please help.

    Create a boilerplate text in your repeating frame (get rid of the field :debit_credit from your layout, but leave it in your query). I created the boilerplate field B_1. My format trigger looks like:
    function B_1FormatTrigger return boolean is
    begin
      if upper(:debit_credit) = 'CREDIT' then
           srw.set_field(0, to_char('(*) CREDIT'));
       else srw.set_field(0, to_char('(*) DEBIT'));
      end if;
      return (TRUE);
    end;I hope I understood your question OK...I am not sure what an eclipses is?

  • Query on database column not working

    Hi
    i have a block which has around 40 columns.the block is based on a table which has more than 20000 records.When i try 2 make query on a Database column in Enter-Query mode its not working.It fetching all the records instead of the respective records
    THe block property is said to yes
    i have even set the query allowed,only propery of the column to YEs
    Can any one help me out of this??? do i need to set any other property???

    Thanks a lot for james and THomas and to all. The error is that i have missed the bracket for OR in my where condition ...Now im able to query all the columns.
    Thanks very much...
    I have one more doubt .i have a requirement in which when the user goes to the child block and makes a query is it possible to bring the associates parent records..wht code or trigger we need to rite ?
    normally we do for parent block when we query we populate the child. is this can be done?

  • Logon trigger not working over DB-Link?

    Hi all,
    I have a serious question about accessing tables over a database link.
    I have three schema:
    DATA@SOURCE
    INTERFACE@SOURCE
    WORK@TARGET
    Schema DATA has one table called T1
    The INTERFACE schema has select privileges on all tables from DATA. Furthermore schema INTERFACE has a logon trigger to change the "current schema" to 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 WORK schema has a database link to the INTERFACE schema called INT_DB_LINK.
    I am now logged into schema WORK on the TARGET database and I am executing following statement:
    select a from T1@INT_DB_LINK
    -> it's working
    Next I execute
    declare
      cursor c is 
      select a
        from T1@INT_DB_LINK
       where rownum<2;
    begin
      for r in c loop
        null;
      end loop;
    end;
    This is not working. Error message is ORA-000942: table or view does not exist.
    But why?
    Can anyone help me?
    Thanks in advance
    Py

    Hi all,
    after a long, very long search I found what caused this strange behaviour.
    The ORA- Error was not raised by the SQL-Execution-Engine but by the SQL-Parser/SQL-Validation.
    As the second statement is an anonymous SQL block the Oracle Parser checks all objects dependencies before execution.
    This means a connection is established from TARGET to SOURCE checking if table T1 is available. The strange thing is
    that on this connection the "ALTER SESSION" trigger is not fired. So the parser does not find object T1 in schema INTERFACE.
    If I create an empty table T1 in INTERFACE the anonymous block gets parsed/validated and the statement is executed. But this
    time the block does a normal "connect session" and the trigger is fired. This means the statements accesses the T1 table in
    schema DATA. (But T1 in INTERFACE has to be existent that parse/validation works)
    I don't know if this is a bug or a feature.
    To workaround this I have created private synonyms in schema INTERFACE pointing to the objects in DATA.
    Thanks for your help!
    Py
    regarding the other qestion:
    Yes, permissions are granted over a role.

  • Database Mail not working with SQL Server Agent

    I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine. 
    Database mail does not work with SQL Server Agent.  When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc. 
    I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem.  Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
    Kind Regards

    The problems solved
    steps:
    1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
    2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
    3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
    4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
    5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
    I hope not to forget something
    Thank You all for the help

  • Database Diff not working using 3.1 - 64 bit

    Hi there,
    I have just tried using the utility Database Diff in 3.1 on windows 64-bit and this does not produce any differences between 2 similar schemas. I have just downloaded 3.1 32-bit (Java included) and this works fine. I am running Windows 7 64bit.
    Any ideas?
    Regards,
    VicC

    I have managed to sort this out, I was trying to speed up the startup of SQL Developer and disabled some of the extensions. The crucial one here is Versioning support. This must be enabled for Database Diff to work.
    Regards,
    VicC

  • Business Rule in trigger not working

    Hi,
    I have business rule that no one below 18 years should be employed in this system.
    I have created a trigger that alerts me so, but when ever I insert someone either over 10 or below, it fires and deos not insert any record, but if I deleted the trigger, everything works fine.
    I should have put a check constraint (s_hire_date - s_dob) < 6570 on the table, but I just thought should be able to do it.
    Why please?
    stops insertion of under 18 years into employee table
    CREATE OR REPLACE TRIGGER Tr_new_employee
    BEFORE INSERT ON employee for each row
    DECLARE s_hire_date DATE;
    s_dob date;
    begin
    select :NEW.hire_date, :NEW.dob into s_hire_date, s_dob from employee
    where empid =:new.empid;
    IF (s_hire_date - s_dob) < 6570 then
    raise_application_error(-20101,'Person too young');
    end if;
    end;
    Many thanks in advance
    cube60

    Hello Warren and All,
    Thanks for the code, the trigger did compile successfully, but prevents any kind of insertion whether over 18 or younger.
    SQL> CREATE OR REPLACE TRIGGER Tr_new_employee
    2 BEFORE INSERT ON employee for each row
    3 DECLARE s_hire_date DATE;
    4 s_dob date;
    5 begin
    6
    7 select :NEW.hire_date, :NEW.dob into s_hire_date, s_dob from employee
    8 where empid =:new.empid;
    9
    10 IF TRUNC(months_between(s_hire_date,s_dob)/12) < 18 then
    11 raise_application_error(-20101,'Person too young');
    12 end if;
    13 end;
    14 /
    Trigger created.
    SQL> COMMIT;
    Commit complete.
    SQL> --under 18 to time of hire_date
    SQL> EXEC NEW_EMPLOYEE('CHARLES','DICKSON','M','29-JAN-1992','PT2','','','','',sysdate,NULL,09890111
    ,'HSBC','WANDSWORTH','CURRENT','PR3');
    BEGIN NEW_EMPLOYEE('CHARLES','DICKSON','M','29-JAN-1992','PT2','','','','',sysdate,NULL,09890111,'HS
    ERROR at line 1:
    ORA-01403: no data found
    ORA-01403: no data found
    ORA-06512: at "SYSTEM.TR_NEW_EMPLOYEE", line 5
    ORA-04088: error during execution of trigger 'SYSTEM.TR_NEW_EMPLOYEE'
    ORA-06512: at "SYSTEM.NEW_EMPLOYEE", line 26
    ORA-06512: at line 1
    SQL> COMMIT;
    Commit complete.
    SQL> --over 18
    SQL> EXEC NEW_EMPLOYEE('WARREN','TALENTINO','M','29-JAN-1975','HOURLY','','','','','18-FEB-2001',NUL
    L,36901212,'BARCLAYS','SYDENHAM','CURRENT','TEMP7');
    BEGIN NEW_EMPLOYEE('WARREN','TALENTINO','M','29-JAN-1975','HOURLY','','','','','18-FEB-2001',NULL,36
    ERROR at line 1:
    ORA-01403: no data found
    ORA-01403: no data found
    ORA-06512: at "SYSTEM.TR_NEW_EMPLOYEE", line 5
    ORA-04088: error during execution of trigger 'SYSTEM.TR_NEW_EMPLOYEE'
    ORA-06512: at "SYSTEM.NEW_EMPLOYEE", line 26
    ORA-06512: at line 1
    I know your logic is fine, something might be wrong with the trigger even though it created succesfully. It is not doing what it is intended to do.
    Many thanks
    cube60

  • Account Assignment Trigger not Working

    I'm working on Siebel Assignment Manager.. first I try to Assign Service Request to an Employee and in two Assignment mode (Batch and Dynamic) and it's work fine.
    but when I try to assign Account to a Position, and I follow the same steps I followed before, the monitor work and the owner change depending on the Score and the Rule not working ...on the other hand the trigger (Dynamic) not working at all, and there is no change
    I have searched to know where is the problem …and didn’t find solution
    please help me ASAP
    Thanks & Regards,
    Enas

    Hi Glenn,
    Thanks for u r replay.
    We are using our own ZVIEWS. We have copied the Bupasearch view and we done some modifications according to our requirement.(added DOB field)
    We got DOB in our Zview. But Customer search functionality is not working.
    Plz help me to solve the issue.
    Thanks,
    Sreedhar

  • Oracle Form Services Installation (Test.fmx) Trigger Not working

    Hi
    I install oracle BI and forms Services on oracle application infrastructure after installation i run the following command "http://ora.server.com:7778/forms/frmservlet?config=testfrm" it will show the form "form services install sucessfully" but when i do a certain cusmization on it i.e. put a one text box on that text put put a key_next tigger in which i show a alert message only. After Customization i run a same URL it will again show that form with the changes but the trigger (Key_next) will not fire
    I don't understatnd why tigger is not working or fire.

    So we understand things correctly,
    You are running a form and a trigger won't fire. What kind of trigger? A when-button-pressed, or a key-next-item, or something else? I don't believe key_next is a valid trigger.
    If you are using a key trigger, you need to make sure that the keys are mapped as you expect. You can see how the keys are mapped in the menu under Help => Keys when you run the form. Make sure the button is mapped like you expect. Additionally, you can modify the mapping by updating the resource file, but that's kind of outside the scope of this...
    This type of questions really is suited for the Forms forum under Developer Tools => Forms at: Forms
    If you need more help, post there. The focus of that section if Forms.

  • EM Database Express not working in RAC installation

    I installed the Oracle 12cRAC  , Standard editon ,version : Oracle Database 12c Release 12.1.0.1.0 - 64bit Production edition in Windows 2008 64 Bit .
    Instance and RAC database is working fine is both host.  After installation of the database (DBCA), it EM database express URL shows as
    https://apph1.xxxx.com:5500/em
    If i run the URL, it is not working.
    Following are the output of the command:
    SQL> SELECT 'https://'||SYS_CONTEXT('USERENV','SERVER_HOST')||'.'||SYS_CONTEXT('USERENV','DB_DOMAIN')||':'||dbms_xdb_config.gethttpsport()||'/em/' from dual;
    5500
    SQL> SELECT 'https://'||SYS_CONTEXT('USERENV','SERVER_HOST')||':'||dbms_xdb_config.gethttpsport()||'/em/' from dual;
    0
    SQL> select dbms_xdb_config.gethttpsport() from dual;
    https://apph1:5500/em/
    SQL> select dbms_xdb_config.gethttpport() from dual;
    https://apph1:5500/em/
    But still EM express not open in the broser.
    I am not sure, how to check the listenr in RAC.
    C:\>srvctl status listener
    Listener LISTENER is enabled
    Listener LISTENER is running on node(s): apph1,apph2
    How enable the EM Express in RAC?
    Regards
    Mathew

    Dear All,
    I set HTTP port manually
    SQL> exec dbms_xdb_config.sethttpport(8080);
    Now EM express working on http.
    Regards
    Mathew

  • Updating database table - not working

    Hi ,
              My database table 1 is having multiple data for a primary key
    example :
    table 1:
    GLOBMATNR  -> Primary key
    WERKS  --> non primary key -- multiple for globmatnr
    MBLNR --> non primary key -- multiple for globmatnr
    MBLPO--> non primary key --
    BUKRS --> non primary key -- multiple for globmatnr
    i m using below statement to make entry into the table.. but this insert is not working.. I stead of putting 30 entries its just inserting 1 entry..
    Can any one help me in this..?
    INSERT table1 FROM TABLE internal_table ACCEPTING DUPLICATE KEYS.
    Edited by: neha gupta on Oct 29, 2010 1:25 PM

    Hi,
    Hit F1 on ACCEPTING DUPLICATE KEYS. You will identify why it is inserting 1 line only. I hope the table is a custom table. For fields which can have multiple values, make it primary key.
    In your example table, GLOBMATNR, WERKS, MBLNR could be primary keys if WERKS is in one company code only. If not add BUKRS also
    Hope it helps
    Sujay

Maybe you are looking for

  • Help with PDF form download

    Could anyone help please.  I have completed a form and saved it, then I went back into it and made a couple of changes and now I cannot download it as a PDF file.  Here is the error message I keep getting There is nothing else open on my mac, so I do

  • No entered status set. No results analysis will be performed

    Hi Guys, I keep on getting this error message beloe and the valuation is on RELEASE status No entered status set. No results analysis will be performed Message no. KJ210 Diagnosis The valuation of the order or project in results analysis depends on t

  • IBook say's it's connected to internet but it isn't...

    Hi everyone, I've been using an old iBook running os 9.2.1 and it is able to connect to every other wireless internet but the one in my house! I'm using DSL with a 2wire 2700HG-d router and the thing is, it used to connect fine until we had to reinst

  • Badi---UDM_ITEM_DISP_C

    Hi friends, Can any one help me in getting the below  functionality by using this BADI. Please help in seeing the below requirement. This Business Add-In (BAdI) UDM_WL_ITEM_DISP_C in the component SAP Collections Management (FIN-FSCM-COL) is used for

  • Upgrade  MacBook Pro (Late 2006) 17-inch: 2.33GHz(MA611LL/A)

    Hi, I want to upgrade my Hardware on Mac book pro (Late 2006) 17-inch: 2.33GHz(MA611LL/A) http://support.apple.com/kb/SP24 Ram: 2GB (two SO-DIMMs) on 2.33GHz configuration; two SO-DIMM slots support up to 3GB HDD: 100GB 7200-rpm Serial ATA hard drive