What is this error when creating a trigger

Hello

I have create a trigger and get the following error. What is - c

1 CREATE OR REPLACE TRIGGER TRG_AUDIT_LOGON AFTER
2 LOG ON TO THE DATABASE
3 Declare
4 v_sid v$session.sid%type;
type of v_serial 5 v$ session.serial # %;
v_username 6 v$session.username%type;
v_osuserid 7 v$session.osuser%type;
8 v_machinename v$session.machine%type.
v_PROGRAM 9 v$session.program%type;
v_TERMINAL 10 v$session.terminal%type;
11 v_hostname v$instance.host_name%type;
v_instance_name 12 v$instance.instance_name%type;
13 v_application_id v$database.dbid%type;
date of v_logon_time 14;
15 v_Audit_tab_check varchar2 (30);
16 v_system_users_tab_check varchar2 (30);
17 v_sql_Audit_upload varchar2 (1000): = "INSERT INTO dbaoper. T_AUDIT (HOST_NAME, APPLICATION_ID, INSTANCE_NAME, SID, SERIAL #, username, OSUSERID, MACHINENAME, PROGRAM, TERMINAL, LOGON_TIME) VALUES (: v_hostname,: v_application_id,: v_instance_name,: v_sid,: v_serial,: v_username,: v_osuserid,: v_machinename,: v_program,: v_TERMINAL,: v_logon_time) ';
18 type c_audit_cur_typ is ref cursor;
19 C_Audit c_audit_cur_typ;
20 V_system_users_tab: = "T_SYSTEM_USERS";
21 No_Audit_records Exception;
Begin 22
23 select table_name in v_Audit_tab_check from dba_tables where owner = 'DBAOPER' and table_name = "T_AUDIT";
24 select table_name in v_system_users_tab_check from dba_tables where owner = 'DBAOPER' and table_name = "T_SYSTEM_USERS";
25 c_Audit open for ' SELECT sid, serial # username, osuser, machine, terminal program v $ session WHERE audsid = userenv ("' sessionid" ') and program not as "'oracle@%J0%"' and no user name (select * from dbaoper.' |) V_system_users_tab |') and type! = "' BACKGROUND"' ';
26 c_Audit of fetch in v_sid, v_serial, v_username, v_osuserid, v_machinename, v_program, v_TERMINAL;
27 if c_Audit % Notfound then
28 lift No_Audit_records;
Else 29
30 select host_name, instance_name in v_hostname, v_instance_name from v$ instance;
31 select dbid from v_application_id from v$ database;
32 select sysdate in double v_logon_time;
33 execute immediate v_sql_Audit_upload using v_hostname, v_application_id, v_instance_name, v_sid, v_serial, v_username, v_osuserid, v_machinename, v_program, v_TERMINAL, v_logon_time;
34 end if;
35 close C_Audit;
exception of 36
37 when no_data_found then
38 dbms_system.ksdwrt (2, 'ORA-20001 Audit T_AUDIT or T_SYSTEM_USERS not found Audit information tables are not entered'
(39);
40 what then No_Audit_records
41 dbms_output.put_line ('Audit number to insert records");
42 * end;
SQL > /.

WARNING: Trigger created with compilation errors.

SQL > sho err
Errors for TRG_AUDIT_LOGON TRIGGER:

LINE/COL ERROR
-------- -----------------------------------------------------------------
18/20 PLS-00103: encountered the symbol "=" when expecting one of the
Next:
constant exception < an ID >
< a between double quote delimited identifiers > double Ref table Fedya
char time timestamp interval date binary national character
NCHAR
The '< an identifier >' replaced with '=' to
continue.


Thank you
Pramod

replace * "' * with *" *. For example userenv ("' sessionid" ') to userenv ("sessionid")

Tags: Database

Similar Questions

  • PL/Sql error when creating a trigger

    Hello everyone m trying to set a trigger whose goal is to not allow any update insert or remove on the work table, if the day is Sunday. I tried this code but it gives me error
     create or replace trigger No_work_on_Sunday
     After insert or update or delete
    on Work When owner='MAX'
    for each row
    begin
            if (select to_char(sysdate,'D')=1) then
                     raise_application_error(-20001,'no work on sunday');
          end if;
     end;
    
     
     on Work when owner='MAX'
             *
    ERROR at line 3:
    ORA-04077: WHEN clause cannot be used with table level triggers
    Pls help

    Published by: 781207 on July 16, 2010 07:43
    create or replace trigger No_work_on_Sunday
     After logon on DATABASE
     begin
           if to_char(sysdate,'D')=1 then
                     if ora_login_user IN ('Jake','MAX') THEN
                         RAISE_APPLICATION_ERROR(-20001,'No work on sunday');
                   end if;
          end if;
    end;
    /
    

    SY.

  • What means this error when launching Cloud Java instance?

    Hello

    I just create an instance of cloud c12 db and now I am trying to create a java database as a service...

    See the messages of commissioning, I get these errors to the console:

    UCR-6013: specified prefix does not exist. Prefixes are: no
    RCU - 6091:Component name/prefix schema validation failed.
    ORA-01950: no privileges on tablespace 'SYSTEM '.

    I thought that the problem was SYSTEM user, so I inserted a SYS user (when you create java cloud service) with the password of the database, but still without success...

    What it means? I get no error when the database is restarted!

    Thanks for any suggestions,

    Skender Kollcaku

    Can you try to create the instance of the JCS as sys when connecting to the DB?

  • I get 'no more virtual tiles can be allocated' when you try the filter Shake reduction... anyone know what causes this error?

    I get 'no more virtual tiles can be allocated' when you try the filter Shake reduction... anyone know what causes this error? I always get on each blurry picture, I am trying to do a little better.

    This may result from the way in which the scratch disk is set up. Yo have a separate drive for the scratch?

  • SHARED-UNKNOWN-ERROR: 22-What does this mean? can not post the site that this error when I try.

    SHARED-UNKNOWN-ERROR: 22-What does this mean? can not post the site that this error when I try.

    Hello

    Please sign of Muse and identify yourself again and try to publish.

    You have the option of disconnecting help > Sign Out

    In the case that do not fix the issue made me know.

    Concerning

    Vivek

  • "WindowsUpdate_00000646" "WindowsUpdate_dt000", get this error when I do updates

    Problems with Microsoft Office and get critical errors that must be updated, or remove the program. Not had a problem primarily using this program on my laptop.

    * original title - "WindowsUpdate_00000646" "WindowsUpdate_dt000", get this error when I do updates. Does not clear also. Can someone let me know what to do? This I think has something to do with Microsoft Office... *.

    A KB was created for 646 error code that appears during the installation of the updates of Microsoft Office. The KB includes an automatedMicrosoft fix 50461 that corrects the problem. Look at the following KB:

    http://support.Microsoft.com/kb/2258121>

  • Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error.

    Hi friends,

    I create three field A textfield,textfield B,C textfield and apply the formula with dynamic action.

    C = A + B.

    Now, I want to protect user could not be total change at point C, so I change it is property of the text field to display only and change in

    Settings-> save the Session State-> Yes

    After all changes when I ran page and provide the registry then it shows me error below.

    Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error, contact the administrator of the application for assistance.


    How to disable the total at point C when I use the dynamic action to calculate the Total of A + B.

    Thank you.




    Hi Maxence,

    1. in the case of a display one element

    Change your point of P67_C and change the State of Session Save-> No.

    2. in the case of a text field

    Change your point of P67_C and make it read-only

    go to the attributes of the HTML Form element-> readonly = "readonly".

    Hope this helps you,

    Kind regards

    Jitendra

  • Could someone tell me what means this error?

    I tried to create a xslt transformation. After that I tell dreamweaver when the xml file can be found, he finds it. The problem is after that he finds it, I get a message in the bindings panel, who said "the 'Amp' entity was not found (500317,23). What is this error and how to fix it? Someone on Yahoo! Answers suggested that the file was missing a variable named Amp. I'm sure this isn't the case, because the word Amp can be found once in the file. The file is located on another site, so it is possible that they changed it since yesterday, but I'm not.

    It seems that the XML file has been badly coded. HTML entities are a way to display certain characters in web pages. You can find a list and an explanation at http://www.w3schools.com/tags/ref_entities.asp.

    XML supports only six entities, including for an ampersand: & amp; (there should be no space between & and amp; but I inserted it so that the entity is displayed correctly here.) Your error message says that there is no feature for amp. XML is case-sensitive. What this means is that someone has used & Amp; instead of & amp;. Where the error.

  • I get this error when I turn on my pc, C:\Users\Michelle\AppData\Local\BalanceBrowser\Bin\BalanceBrowser.dll

    I need help please. I get this error when I turn on my pc

    C:\Users\Michelle\AppData\Local\BalanceBrowser\Bin\BalanceBrowser.dll

    What should I do?

    Hello

    To remove the error message - its probably requested in your startup group.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or
    Windows 7, 8, 8.1 and 10 is almost identical to
    http://support.Microsoft.com/kb/929135

    How to change, add or remove startup programs in Windows 7
    http://www.SevenForums.com/tutorials/1401-startup-programs-change.html

    Autoruns - free - see what programs are configured so that it starts automatically when your
    system boots and you log in. Autoruns is also the full list of registry and files
    locations where applications can configure start automatic settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Error: CreateFile (C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~e5d141.tmp I receive this error when opening certain programs that worked and now does not.)

    Original title: error: CreateFile (C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~e5d141.tmp

    I'm getting this error when opening certain programs to work and now are not. I have studied this particular error and did not find a lot about it or how to fix it.

    I don't think it's a virus.

    I don't know what to do, I tried restores system, right click and run as administrator, I did ensure that allows the firewall thing and completely uninstall and reinstall.

    If you know a way to solve this problem it would be greatly appreciated.

    Delete all files in the temp folder and see if you still receive the error.

    Let us know if that helps.

  • New to OAF - oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity for HeaderTableEO line

    Hi I'm new to OFA. I am trying to create a master-details form based on the example given on Youtube (but using my own paintings).

    I have already defined in table colums.

    AM code is as follows:

    Public Sub CreateEmailHdrRow()

    {

    xxVmmcSendEmailDefHdrVOImpl vo = getxxVmmcSendEmailDefHdrVO1();

    String s = "Test";

    Line = vo.createRow ();

    If (!) VO.isPreparedForExecution ())

    {

    vo.setMaxFetchSize (0);

    }

    row.setAttribute ("EmailDefName", s);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    When I run, the error occurs at the level of line (rank rank = vo.createRow ();)

    Error message: oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity for xxVmmcSendEmailDefHdrEO line.

    Any help is appreciated.

    Anjan,

    Please check that the type of the CreatedBy attribute is a number representing the id in FND_USER and not the actual text of the name of the user. Standard Oracle columns that use a number for this value not varchar.

    Kristofer Cruz

  • What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Mr President.

    What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Concerning

    You get this exception quite often when you have a business in PL SQL layer, but you can safely ignore (suppress) it by substituting the lock() method in all implementation of your entity classes.

    /*** customizing locking management: 
    * Because attribute values can change 'outside' ADF standard life cycle, 
    * when optimistic locking executes, the exception "Another User Changed the Row" is thrown. 
    * In this case, we execute locking again, ignoring the exception 
    */ 
    public void lock() 
    { 
     try 
     { 
      super.lock(); 
     } catch (oracle.jbo.RowInconsistentException e) 
     { 
      if (e.getErrorCode().equals("25014")) 
      { 
      super.lock(); 
      } 
      else throw e; 
     } 
    }
    
  • oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity.

    Hi all

    I get the following error when executing the Page create purchase orders. I extended the standard EntityObject class: Purchase Order Header to my EO custom, make one here to this EO origin.
    oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity for CustomPurchaseOrderHeaderEO line

    Thank you

    Hi SumitSharma,

    Added the following line to the file Extended Entity Object.xml
    "DefClass ="oracle.apps.fnd.framework.server.OAEntityDefImpl"xx.oracle.apps"below the RowClass ="... "package line.

    This solved my error, but I can't do it this way is fair or unfair suggestions.

    Thank you

    Published by: 995022 on May 14, 2013 22:13

  • I get this error when submitting the question to DPS

    Hi uses Woodwing Enterprise to publish fact sheets on the DPS from Adobe and it was okay, I ended up creating a new show and I get this error when submitting the question to DPS: Adobe Distibution Server returned the error when calling "createIssue. Code HTTP: 401. HTTP message. "Unknown error.". Results Adobe message: "unauthorized access. Check the logs for more details". Adobe results status: "Not ALLOWED." The DPS account has been recently renewed

    Please contact the support gold on this problem.

  • Error when creating an application of FDM on SQL Server 2005

    Hello

    We receive this error when you create an application of FDM on SQL Server 2005


    Error: EPMCSS-07003: unable to validate identity. Invalid identity. Verify the identity. [SET_ROLES_LIST]


    We use the integration of Windows system even if we also tested with the user's.

    Any ideas?

    Thank you

    Based on the error message that seems to have a problem of Shared Services. Check that the "ADMIN" account is used for the connection of HSS and that you are using "ADMIN" to create the application and see if the same error is returned.

Maybe you are looking for