SQLDeveloper 3.2 - I can't see trigger code

Hi people

In some cases, I can't see the trigger code.
I did find a model to determine what type of trigger is an invisible code.
For example, in my case, I can't see code of SCOTT. Trigger AFTER_INS_UPD_ON_EMP, but I see the tab of SQL for SCOTT. EMP table.
I had to copy from there and recreate the trigger. Is now visible

I work with EBS R12, and follows a list of some triggers to this problem:
AR_RECEIVABLE_APPLICATIONS_BRI
AS_JTF_RS_GROUP_MEM_BI
FND_FLEX_VAL_RULE_LINES_T1
FND_FLEX_VALIDATION_RULES_T1
FND_SECURITY_GROUPS_IL
HR_LOCATIONS_ALL_OVN
PAY_TEMPLATE_EXCLUSION_RUL_WHO
PER_ALL_PEOPLE_F_OVN
PER_PERSON_ANALYSES_OVN
PER_PSV_OVN
WIP_DISCRETE_JOBS_BRD

My Info:
Developer SQL 3.2.09.30
Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0 - 64 bit

Thank you
Oscar

Hi Oscar,.

Perhaps your problem may be the same as this bug fixed and connected very recently:
Bug 14530780 - TRIGGERCODE of ANOTHER SCHEMA NOT VISIBLE IN THE BROWSER, HOWEVER SEARCHABLE IN SQLWORK

But the story of bug never pretends it's a regression, so presumably that also it would have been a problem in previous versions.

Kind regards
Gary

Tags: Database

Similar Questions

  • where can I see the "code" of an object?

    Hi guys,.

    What display will show me the 'code' used to create an object?

    Thank you

    Hello

    Have you tried to do
    dbms_metadata DESC.
    He would have you showed something like that

    FUNCTION GET_DDL RETURNS CLOB
     Argument Name                  Type                    In/Out Default?
     ------------------------------ ----------------------- ------ --------
     OBJECT_TYPE                    VARCHAR2                IN
     NAME                           VARCHAR2                IN
     SCHEMA                         VARCHAR2                IN     DEFAULT
     VERSION                        VARCHAR2                IN     DEFAULT
     MODEL                          VARCHAR2                IN     DEFAULT
     TRANSFORM                      VARCHAR2                IN     DEFAULT
    

    If you try one schema/user other than the owner and that you have the necessary privileges you must pass the third parameter also.
    In this case, it should be

    select dbms_metadata.get_ddl('','','') from dual;
    
    

    Concerning
    Anurag Tibrewal.

  • Database trigger can not see the package global variable after assign in my form

    Hello

    I faced the problem with the trigger and the package variable global using the form designer

    first of all, I get the local IP address machine using WEBUTIL in triggering of the PREFORM and initialize my global package variable by ' Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO.» GET_IP_ADDRESS); ", then I tried to make the DML operation in my form and at the same time I trigger database also uses the package global variable of" Client_Info_Pkg.Gand_IP_Address; "to read in the package, and then insert it into the audit table


    The question this database trigger may not feel the initialization "Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO. GET_IP_ADDRESS)' I did in triggering of the PREFORM and I used to wonder if oracle create new session to run this trigger so he can't see my boot or what?!. .

    the package

    CREATE OR REPLACE PACKAGE Client_Info_Pkg

    Global_IP_Address VARCHAR2 (100);

    FUNCTION Get_IP_Address RETURN VARCHAR2;

    PROCEDURE Set_IP_Address (p_Machine_Name IN VARCHAR2);

    END Client_Info_Pkg;

    /

    CREATE OR REPLACE PACKAGE BODY Client_Info_Pkg

    FUNCTION Get_IP_Address RETURN VARCHAR2 IS

    BEGIN

    RETURN Global_IP_Address;

    END;

    PROCEDURE Set_IP_Address (p_IP_Address IN VARCHAR2) IS

    BEGIN

    Global_IP_Address: = p_IP_Address;

    END;

    END Client_Info_Pk

    relaxation

    --------------

    CREATE OR REPLACE TRIGGER RUNERP.FO_DOC_TYPES_L_T

    BEFORE INSERT OR UPDATE OR DELETE ON FO_DOC_TYPES

    REFERRING AGAIN AS NINE OLD AND OLD

    FOR EACH LINE

    BEGIN

    IF THE INSERTION

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("I",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address' HELP: NEW.) DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF THE UPDATE CAN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("U",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF REMOVE THEN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("D",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    END;

    /

    Thanks in advance

    I solved my problem by using the CONTEXT object, Michael thank you for your interest.

  • Trigger that avoids "is changing, function of triggering/can not see ' error

    Version Oracle 11.2.0.2

    I have a problem where I try to avoid duplicates in a table using a trigger.  Data looks like:

    EQUIP LO ACCT

    ---------- -- ----

    1000000000 0

    1000000001 0

    1000000002 0

    1000000003 0

    1000000004 0

    Equipment = equipment identifier

    Location = location number

    Acct = account associated with the equipment

    I need avoid the same account to have 2 pieces of equipment are allocated to the same location.

    for example

    EQUIP LO ACCT

    ---------- -- ----

    1000000000 1 1234

    1000000001 1 1234

    1000000002 0

    1000000003 0

    1000000004 0

    I can't create a unique index for this table that when there is no assigned equipment (first example) I couldn't have uniqueness through the location and number.  So, I wrote the following:

    CREATE or REPLACE TRIGGER TEST_TRG before update of test WE acct

    Old SEO AS OLD AS new NEW

    for EACH LINE

    DECLARE

    v_chk number: = 0;

    BEGIN

    Select count (*) in the test v_chk where acct =:new.acct and rental =:new.location;

    IF v_chk > 0 then raise_application_error ("-20001, ' multiple devices at the same location not allowed");

    END IF;

    END;

    /

    .. but of course that I'm shot in the table that is being updated, I get the error of mutation:

    setting a day of test set acct = "1234", location = '1' where equip = '1000000001'

    *

    ERROR on line 1:

    ORA-04091: table xxx. TEST is changing, function of triggering/can not see

    ORA-06512: in "xxx. TEST_TRG', line 4

    ORA-04088: error during execution of trigger ' xxx. TEST_TRG'

    I tried this split into two pieces where a trigger calls another procedure to perform the check and write error, but results were inconsistent and end-user demand does not pick up the error for a reason - it seems to process the transaction very well even if the update was not made at the table level.

    Are there other ways in addition to a trigger to achieve?

    Thank you!

    Adam

    Monty77 wrote:

    ... I can't do this, acct is not a null value, it is ' '.  Right or wrong it is not editable as integrated in application logic.

    Thank you!

    Adam

    Then also consider this value in your index of function according to:

    create table test

    (

    equip the varchar2 (10),

    location varchar2 (2),

    ACCT varchar2 (4)

    );

    CREATE a UNIQUE INDEX TestLocationAcct_UK ON Test

    (case when the ACCT is not null ACCT AND! =' ' then location |) « ; » || end of the ACCT);

    Insert test values ('1000000000 ', ' 0',' ');

    Insert test values ('1000000001 ', ' 0',' ');

    Insert test values ('1000000002 ', ' 0',' ');

    Insert test values ('1000000003 ', ' 0',' ');

    Insert test values ('1000000004 ', ' 0',' ');

    Update test set acct = "1234", location = '1' where equip is '1000000000';.

    Update test set acct = "1234", location = '1' where equip is '1000000001';.

    Error on line 1

    ORA-00001: unique constraint (SYSADM. TESTLOCATIONACCT_UK) violated

    Kind regards.

    Al

    Name of the index has changed to testlocationacct

  • Can't see SQLDeveloper tables to cache in TT

    Hello
    I can't see the paintings that I would be cached when I choose 'new group of cache' in the SQlDeveloper timesten database.

    The user who owns the Oracle tables is defined in timesten.

    I have only two tables uncheck the 'show only my tables' TIMETEN.TT_GRIDID and TIMESTEN.TT_GRIDINFO;

    Little help?

    Thank you
    Fabio Alfonso

    Hi Fabio,.

    Grant you privileges to access the user cacheadm on Oracle? See step 5 "grants privileges to data access to the user administration of cache" in 1 "required on the Oracle database configuration" section on fast development. The Oracle 'cacheadm' user needs to have access to the tables that you intend to cache.

    Concerning

    Simon

  • Changing table - SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see

    Hi all

    I am a newbie to Oracle and I am faced with the above error. Please see the below code snippets. Can someone please tell what I am doing wrong? Thank you in advance.

    Thank you

    CREATE TABLE ABC

    (

    ID VARCHAR2 ENABLE NUMBER NOT NULL,

    FIELD1 ACTIVATE THE NUMBER NOT NULL,

    FIELD2 ACTIVATE THE VARCHAR2 (8 BYTE) NOT NULL,

    CONSTRAINT JOB_PK PRIMARY KEY (ID)

    )

    ;

    CREATE TABLE XYZ

    (

    ACTIVATE THE NUMBER 4 R_ID NOT NULL,.

    ID VARCHAR2 ENABLE NUMBER NOT NULL,

    Column1 NUMBER (2.0) default 0.00,.

    Column2 NUMBER (2.0) default 0.00,.

    COLUMN3 NUMBER (2.0).

    NUMBER (2.0) TOTAL 0.00 default.

    CONSTRAINT TRIP_PAYMENT_PK PRIMARY KEY (ID)

    )

    ;

    create or replace trigger trigger1

    After Insert on XYZ

    for each line

    Declare

    number of newTotal;

    Start

    newTOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;

    setting a day of XYZ together Total = newTotal;

    end;

    Insert into ABC (1, 45, ' Demo');

    insertion in XYZ (1, 1, 12.50, 10.20 33,50, ");

    Error report:

    SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see

    Try one before line

    create or replace trigger trigger1

    before inserting on XYZ

    for each line

    Start
    : new. TOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
    end;

  • ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512... ?

    Hi all

    I CREATED THE TRIGGER TO CHECK NOM_ELEMENT BEFORE UPDATE ON THE T_ITEMS TABLE IF AN ANOTHER NOM_ELEMENT LIKE NOM_ELEMENT CURRENT OR NOT, IF AS AN ANOTHER NOM_ELEMENT DON'T SAVE UPDATED CURRENT NOM_ELEMENT.

    MY NO IS:

    1 - I CREATED the FUNCTION CALL CH_UNIQUE_ITEM_NAME

    CREATE OR REPLACE FUNCTION CH_UNIQUE_ITEM_NAME
    (NUMBER OF P_ID, P_ITEM_NAME IN VARCHAR2)
    RETURN NUMBER
    AS
    NUMBER OF X_COUNT;
    -FUNCTION "CH_UNIQUE_ITEM_NAME" TO CHECK NOM_ELEMENT LIKE OTHER NOM_ELEMENT OR NOT.
    BEGIN
    SELECT COUNT (ITEM_NAME)
    IN X_COUNT
    OF T_ITEMS
    WHERE ID! P_ID =
    AND UPPER (ITEM_NAME) AS UPPER (P_ITEM_NAME);
    RETURN X_COUNT;
    END CH_UNIQUE_ITEM_NAME;

    2. I CREATED TRIGGER CALL TRG_CH_UNIQUE_T_ITEMS

    CREATE OR REPLACE 'TRG_CH_UNIQUE_T_ITEMS' before FIRING
    UPDATE
    ON T_ITEMS FOR EACH LINE
    DECLARE
    NUMBER OF X_CHECK;
    BEGIN
    SELECT CH_UNIQUE_ITEM_NAME (: OLD.ID,: NEW.) NOM_ELEMENT) IN DOUBLE X_CHECK;
    IF (: NEW.) NOM_ELEMENT DISLIKES: OLD. Nom_element AND X_CHECK > 0)
    THEN RAISE_APPLICATION_ERROR (-20007, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    END IF;
    END;

    NOW WHEN I UPDATE ANY ITEMS FOUND ERROR "ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512.

    Form on T_ITEMS22222.png

    Please help me TO RESOLVE THIS ERROR. I TIRED TO SOLVE...

    Thank you

    You don't realize that you have just set a UNIQUE INDEX of several columns?

    create unique index index_name_uq on table_name( user#, upper(item_name) );
    

    In addition, a GUI Design point, (using the terms of the APEX) that you want to validate the data before submit you.

    (use a Page-level Validation)

    MK

  • Table is changing, function of triggering/can not see?

    Hello
    I had this error before, and I solved it with the help of this forum.
    But I didn't ask then why is - this error happening at all?
    Now I have it again, with different trigger:

    ORA-04091: table TRACKER. APPLICATIONS is changing, function of triggering/can not see

    My trigger code is:
    create or replace trigger "REQUEST_EMAIL_T2"
         after update of assigned_to_assigned_id
         on requests
         referencing new as new old as old
         for each row
    begin
            if :new.assigned_to_assigned_id != :old.assigned_to_assigned_id
         then
          for emp_rec
           in (select      username, assigned_email, form_name
              from      assigned, form_type, requests
                 where  assigned.assigned_id = form_type.assigned_id
                      and assigned.assigned_id = :new.assigned_to_assigned_id
                      and requests.request_id = :new.request_id)
                    loop
               apex_mail.send (
                   p_to          => emp_rec.assigned_email,
                   p_from     => emp_rec.upline_email,
                   p_body     => 'You have been assigned a new Request. '
                                    || CHR (10)
                                    || ' Request: '
                                    || :new.request_id
                                    || CHR (10)
                                    || ' Type: '
                                    || emp_rec.form_name
                                    || CHR (10)
                                    || ' Login: '
                                    || emp_rec.username
                                    || CHR (10)
                                    || ' Pass: '
                                    || '******',
                   p_subj     => 'New Request'
              );
         end loop;
    end;
    / 
    The relaxation will compile without error. The error I get trying to update the table!

    I absolutely need to define a trigger as "after" update and need to know how to avoid the same mistake again?

    Thank you!

    But I didn't ask then why is - this error happening at all?

    Have you looked at the error message? It is very explicit:
    >
    ORA-04091: table String is changing, the function of triggering/can not see
    Cause: A trigger (or a plsql function defined by the user referenced in this statement) attempted to watch (or modify) a table that stood in the middle of being modified by the statement that shot.
    Action: Rewrite the trigger (or function) so it does not read this table.
    >

    Should this request to join the table of queries ? Does not look like it...

  • My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also backed u

    My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.

    Time Machine backup to a sparsebundle.

    The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.

    Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...

    You has of course set the exclusion in Time Machine?

    By default, Time Machine will exclude your second drive unless you have included it. Did you?

    Once you get to this level during the backup, you can do a full restore manually whenever you want.

  • I am trying to print PDFS from Safari, but can not see the page numbers

    I just opened a document PDF 700 + pages in Safari and need to print the odd pages and there, but I can't see the page numbers displayed when I scroll the document. When I view the same document on an iPad, the page numbers change when I scroll but on my iMac (with the help of Safari 10) they appear not at all - and 700 + pages is a lot to go wrong! The clues how I can spend on 'display the page number?

    The default Apple PDF Internet plug-in used by Safari does not display the page numbers (except if they are in the footer of the PDF document in question), and there is no setting in Safari preferences to turn on this feature. Your best bet is to download the PDF file, then open it in preview or Acrobat Reader, where the thumbnails will be the correlation to page numbers. Then you can select several arbitrary thumbnails using the control button to print those selected pages. In the Pages section of the print Panel, you select "Selected Pages in the sidebar".

    The PDF Internet plug-in installed by Adobe Acrobat Reader or Pro displays the page current and total page in its turnaround Panel. If there are page numbers in the footer of the PDF file accessed, they are not deleted. You must enable Internet Adobe plug-in to Safari preferences: Security Panel.

  • How can I see external drives on the sierra?

    How can I see external drives in sierra?

    Menu Finder Preferences... > General

  • my default calendar on IPhone and IPad has disappeared. I can't see it either on ICloud and do not save on my Mac Book. How can I get it back? Is it possible to return to a previous update in ICloud?

    My default calendar on the IPhone (and IPad) disappeared. I can't see it either on ICloud and make the back not my calendars on my Mac Book. How can I get it back? Is it possible to return to a previous update in ICloud and find?

    Go to iCloud.com using a computer, then settings. When loading this page, look down at left under Advanced and see if you can restore from there.

  • I can't see Group Conversations?

    My phone number has recently added 2 cats of Imessages group. For one of them, I personally entered the phone number. However, on my Iphone I can't see group conversations. I can't see any discussion group click on everything. I have group messages and MMS on. Also, I tried to reset the network settings, restart my Iphone and turn on/off Imessages. I currently have 9 Ios. Everyone in the group the cats have been the reception and sending of the messages that I don't know. Is there a solution?

    This article can help:

    Send a message from your iPhone, iPad or iPod touch - Apple Support Group

    To quote a few excerpts: If you send a message to group of people who don't use an iMessage, the message is sent as an MMS or SMS message.  Messages MMS & SMS groups appear in green text bubbles and go through your carrier instead of Apple. In addition, when you send an SMS to group, all responses are sent as individual text messages and recipients cannot see the other answers in the group.

    So, if you are having problems with Group SMS and MMS messages, I think you will need to contact your support provider.

  • How can I see what I have stored in iCloud?

    How can I see what I have saved in my different devices iCloud?

    Here's how you can visualize what you have stored.

    Manage your iCloud - Apple Support storage space

    Hope this helps, good luck to you.

  • MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    Try this restart your iPhone, iPad or iPod touch - Apple Support

    If this does not work, it may be a hardware problem.

    Hope this helps, good luck to you.

  • Maybe you are looking for

    • Satellite L350: Vista doesn't work anymore - LogonUI.exe - corrupted file

      Security Suite updates on my daughters Toshiba Satellite L350 windows vista the operating system no longer works.An error was detected on the system that contains the following message. Open a session about UI.exe - corrupted fileFile or directory C/

    • HP Officejet Pro e-all-in-8610: determination of applicability of the critical Security Bulletins

      How can I determine if a "support alert" applies to the HP Officejet Pro 8610 e-all-in-one printer I own?  Since the purchase and registration it two months ago (March 2015), I received two "Support alerts.  How will I know if they apply in fact to m

    • iPhone 6 no service / number of 'research '.

      I have recently bourght a 6 16 GB iPhone. The only problem is he didn't 'search' at the top of the screen. I went on the apple site for assistance and used their guide, If you can not connect to a cellular or cell - data Apple Support Network. The 's

    • Replacing my laptop HD. How can I get windows on the new hd

      Replacing my laptop HD.  The former looks like it will expire at any day.  How can I get on the new hd windows if windows resides on the recovery partition in the old drive and I have no windows disk.  I can't find how to do a startup anywhere disk f

    • Do not get audio 5.1 of Dell Vostro 1510

      Hello I recently bought a Creative (Sound Blaster Live 24 bit external) external sound card for my Vostro 1510. I also bought a 5.1 nexw system Creatibve (SBS, A500). Since I have windows Vista installed on my laptop, I couldn't be able to get the 5.