Create or Replace Package syntax different in SQL Navigator?

Hi,
I compared the same piece of code in both toad and sql navigator.
In toad, the syntax for Package was as follows:
CREATE OR REPLACE package body name_of_package
but in SQL Navigator, the same code is displayed as follows:
package body name_of_package
does SQL navigator hide the "Create or replace" keywords? or does it automatically know that they belong there?

Is Sql navigator an Oracle product? IIRC Larry spent already all his pocket money on buying Sun.
Kindly do not clutter up this forum with questions on products not developed by Oracle.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Generate-Script generates only create package not create or replace package

    Hello,
    I try do work with the Oracle Developer Tools for Visual Studio 2010 to include my PL/SQL-code in TFS. I have include all my PL/SQL-code in a Oracle-Projekt and check it in. Than I'm working with Visual Studio to update my packages. I open a package from the Server-Explorer, debug and compile it. When finished, I want to check in the new code. For this I call Generate Create-Script in the Server-Explorer and save the code my project. This code starts with CREATE PACKAGE ...
    If I start this script on our production-system I get the error ORA-00955: Es gibt bereits ein Objekt mit diesem Namen (There is a object with this name ...). So it would be better the Create-Script would start with CREATE OR REPLACE PACKAGE .... Is there a way to do this? When not, what is the recommended workflow for coding, debugging, compiling and checking in TFS?
    Thanks
    Peter

    Same remark here...

  • Unwanted Line Breaks in PL/SQL CODE after 'CREATE OR REPLACE' statements

    Does anybody know how to keep SQL Developer from automatically editing PL/SQL code and adding line breaks after 'CREATE OR REPLACE' statements?
    It keeps taking:
    CREATE OR REPLACE PACKAGE DEVELOPER AUTHID DEFINER
    And turns it into:
    create or replace
    package developer AUTHID DEFINER
    This unwanted linebreak causes our autodeployment processes to break.
    Thanks,
    Michael Dunn
    University of Notre Dame
    Edited by: user9133268 on Feb 21, 2012 8:00 AM

    Hi Michael,
    I believe nothing for this issue has progressed since it was asked here:
    2.1 RC Extra Line Breaks
    As there may be approval for some planned improvements to the SQL Formatter feature in 3.2, I logged an enhancement request for you:
    Bug 13744858 - FORUM: UNWANTED LINE BREAK AFTER CREATE OR REPLACE SYNTAX
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 21, 2012 4:19 PM
    But if you have control over your auto-deployment process code, it might be quicker to enhance that to deal with CREATE OR REPLACE on the same or the preceding line. Also, note that if you edit the package DDL to put the CREATE OR REPLACE on the same line with the package name in the code editor, then immediately use Export or Save Package Spec and Body to save it to disk, then PACKAGE <name> will appear on the same line as the CREATE OR REPLACE syntax.

  • CREATE OR REPLACE PROCEDURE return data like SELECT statement

    "SELECT * FROM SEARCH_KEYWORD" is successfully done and return the data of the tables. Now, I want to run that on server side using PROCEDURE.
    I successfully executed the below scripts. Please teach me how to call the sp_test procedure. OR if you have other way or maybe my scripts are wrong.
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
         TYPE RCT1 IS REF CURSOR;
         TRANCOUNT INTEGER := 0;
         IDENTITY INTEGER;
    END;
    CREATE OR REPLACE PROCEDURE LPG.sp_test
         RCT1 IN OUT      GLOBALPKG.RCT1
    AS
    BEGIN
         OPEN RCT1 FOR
         SELECT *
         FROM SEARCH_KEYWORD;
    END;
    Here is my table definition:
    CREATE TABLE LPG.SEARCH_KEYWORD
    FRACTION VARCHAR2(50),
    KEYWORD VARCHAR2(50),
    PURPOSE VARCHAR2(50),
    REMARKS VARCHAR2(50),
    DATE_INSERTED DATE DEFAULT sysdate
    PCTFREE 10
    PCTUSED 40
    MAXTRANS 255
    TABLESPACE SYSTEM
    STORAGE(INITIAL 64K MINEXTENTS 1 MAXEXTENTS 2147483645 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    NOCACHE
    LOGGING
    Eros
    Japan

    Wrong forum. You should ask this question in the SQL and PL/SQL forum.
    Couple of comments though. Oracle is not SQL-Server. So calling a procedure that returns a ref cursor is different from a T-SQL macro procedure that functions like a view.
    Also, there is no need to use the SQL-Server standard (and silly one at that) of prefixing stored procedures using the text "sp_". In fact, the whole concept of Hungarian-like notation is something of the past and has no place in today's paradigm of software engineering.
    As for calling a a proc that returns a ref cursor, from SQL*Plus it will look as follows:
    SQL> var c refcursor
    SQL>
    SQL> exec LPG.sp_test( :c )
    SQL> print c
    Ref cursor needs to be supported by the client language you use to make this call to Oracle.

  • Run package store procedure in sql developer

    Night staff, I am using Oracle 11g, only that it gives the following error below, which can be wrong and how to rotate within the sql developer?
    Warning(3,18): PLW-07203: o parâmetro 'CODCEP_EMP' pode se beneficiar do uso da hint do compilador NOCOPY
    ror starting at line 1 in command:
    exec buscadb.tabemp('09811370');
    Error report:
    ORA-06550: linha 1, coluna 7:
    PLS-00306: número incorreto de tipos de argumentos na chamada para 'TABEMP'
    ORA-06550: linha 1, coluna 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    create or replace PACKAGE BUSCADB AS
    TYPE t_cursor IS REF CURSOR;
    PROCEDURE TABEMP(CODCEP_EMP IN OUT empresas.cep_emp%TYPE,io_cursor OUT t_cursor);
    END BUSCADB;
    create or replace PACKAGE BODY BUSCADB AS
    PROCEDURE TABEMP(CODCEP_EMP IN OUT empresas.cep_emp%TYPE,io_cursor OUT t_cursor) AS
    v_cursor t_cursor;
    begin
    open v_cursor for
    select cod_emp,nom_emp,end_emp,cep_emp
    from empresas
    where cep_emp = codcep_emp;
    io_cursor := v_cursor;
    END TABEMP;
    END BUSCADB;

    These questions should be posted in the SQL And PL/SQL forum.
    But I can give you this: READ the error. The procedure takes 2 parameters, you only give 1.
    Regards,
    K.

  • CREATE OR REPLACE -- insufficient privilegies

    Hello,
    I get ORA-01031: insufficient privileges when trying to CREATE OR REPLACE a package body.
    I can drop it and create it again, but not just replace it. It is very annoying when using a GUI for developing PL/SQL code.
    This works fine on 8i and 9i. I have not tested it with 10g.
    Thanks for your help.
    C:\>sqlplus system/manager@xe @priv
    SQL*Plus: Release 10.2.0.1.0 - Beta on Fri Jan 6 10:38:03 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    SQL>
    SQL> DROP USER myuser CASCADE
    2 /
    User dropped.
    SQL> CREATE USER MYUSER IDENTIFIED BY MYUSER
    2 /
    User created.
    SQL> GRANT CREATE SESSION TO MYUSER
    2 /
    Grant succeeded.
    SQL> GRANT CREATE ANY PROCEDURE TO MYUSER
    2 /
    Grant succeeded.
    SQL> GRANT DROP ANY PROCEDURE TO MYUSER
    2 /
    Grant succeeded.
    SQL> GRANT UNLIMITED TABLESPACE TO MYUSER
    2 /
    Grant succeeded.
    SQL>
    SQL> DISCONNECT
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    SQL>
    SQL> CONNECT MYUSER/MYUSER@XE
    Connected.
    SQL>
    SQL> CREATE PACKAGE mypackage AS
    2 PROCEDURE myproc;
    3 END;
    4 /
    Package created.
    SQL>
    SQL> CREATE PACKAGE BODY mypackage AS
    2 PROCEDURE myproc
    3 IS
    4 BEGIN
    5 NULL;
    6 END;
    7 END;
    8 /
    Package body created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY mypackage AS
    2 PROCEDURE myproc
    3 IS
    4 BEGIN
    5 NULL;
    6 END;
    7 END;
    8 /
    CREATE OR REPLACE PACKAGE BODY mypackage AS
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL>
    SQL> DROP PACKAGE BODY mypackage
    2 /
    Package body dropped.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY mypackage AS
    2 PROCEDURE myproc
    3 IS
    4 BEGIN
    5 NULL;
    6 END;
    7 END;
    8 /
    Package body created.

    Both ways work. Thanks DLsW and Tom.
    I can grant my user either both "CREATE ANY PROCEDURE" and "ALTER ANY PROCEDURE", or just "CREATE PROCEDURE".
    In my environment, there is a single database user and I wasn't very much concerned about messing up other schemas, but I appreciate Tom's advice and will make use of it. Thanks again.
    --Stan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Create or replace synonym ... how to execute the script.

    I have the scripts that creates synonyms and i need to execute these scripts from SQL Plus.
    I want to pass the &owner_user value as an argument, but the script still comes back and asking for the owner_name.
    create or replace synonym V_REPORTS_USAGE for &owner_user..V_REPORTS_USAGE;
    create or replace synonym V_STATION_USAGE for &owner_user..V_STATION_USAGE;
    How do i execute these scripts.
    Thanks
    -Prasad

    it is working for me.
    Try to give user name and object name
    SQL> select * from v$version
      2  ;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE    9.2.0.3.0       Production
    TNS for Solaris: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    SQL>
      1*  create or replace  synonym  emp_temp for &emp
    SQL> /
    Enter value for emp: xxxx.emp
    old   1:  create or replace  synonym  emp_temp for &emp
    new   1:  create or replace  synonym  emp_temp for xxxt.emp
    Synonym created.
    SQL>

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Combining package configuration and Execute SQL task at run time

    Hi everyone,
    I have an issue regarding setting values at run time
    I use package configuration to manage different enviroments scenarios (DEV, PROD):
    XML file to store the connections string of SSISConfigDB
    and the actual values of parameters in that SSISConfig DB tables Filtered by ConfigurationFilter column
    Now, one of my packages needs in addition setting at run time value of a flat file name
    i used an Execute SQL task - within the task i read into a variable the file name using command line
    then, the full path of Flat File Connection is set by expression concatenating the root folder and the variable
    the problem is that the variable stays empy! as if the Execute SQL task was never executed!
     Am i doing something incorrect? in the package configuration wizard the configured value are only XML file and the connection string of the DB.
    to summerize - how can i combine package configuration, default value, Execute SQL task and expression at runtime?

    1.EvaluateasExpression=TRUE (Full Path variable)
    2. Do you mean to invlole a ISNULL() function in the expression? if so, no
    3. Of course i recieve a valid value
    4. The Full path expression is evaluated to the root folder - without the portion of the file name
    here is the syntax in Execute SQL Task:
      truncate table OnErrorFlagTable
      Declare @Path varchar(128)
      Declare @FileName varchar(128) 
      Declare @SenderID varchar(5)
      Declare @INST_COD varchar(5)
      Declare @Flag int = 0
     Declare @FileType varchar(2)='01'
      Truncate table TraumaRecords
    Select @Path = 'C:\RootFolder\'
     --***Insert into Temp table the file so we can take his name***--
    Create Table #Tmp(Txt Varchar(Max))
    Insert Into #Tmp(Txt)
    Exec master..xp_cmdshell 'Dir *.txt C:\RootFolder\/b'
    select top 1 @Filename = Txt From #Tmp
    Where ISNUMERIC(substring(Txt,1,1))=1
    order by Txt desc
    Insert into OnErrorFlagTable
    Select 2,@FileName
    Select @FileName as TraumaFileName,@FileType as FileType
    Then, in ResultSet TraumaFileName and FileType are mapped
    Expression of @TraumaFlatfileFullPath is
    @[User::TraumaFlatfilePath]+ @[User::TraumaFlatFileName]
    where the variable @[User::TraumaFlatfilePath] is evaluated in variable window (default value)
    and it's value is C:\RootFolder\
    and @[User::TraumaFlatFileName] is the ResultSet of the ExecuteSQLTask
    and for some reason when executed in SSIS return null while in SSMS return the expected value
    Can you try making this into a procedure with required parameters and call it from SQL task to see if you get return value correctly? Use OUTPUT parameters for getting back required values
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • "Run Script" (F5) Flacky Behavior with CREATE PROCEDURE and PACKAGE

    When I have the following create statement in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. Why does it not tell me that there was a compile error? The procedure is marked with a little red "X" in the connections pane.
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      x := 1;
    END;
    /Also, when I have the following command in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. The difference is that I removed the slash after the CREATE PROCEDURE command. I can go into that procedure in the database via the Connections pane, click on the compile button, and the procedure compiles with no errors. Why does it not compile in a script when missing the slash?
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      NULL;
    END;I noticed the same flaky behavior with CREATE PACKAGE BODY as well. This is in version 1.0.0.14.67 on Windows XP. Has this been fixed in the latest version?
    Mike

    I found a number of earlier posts on this (going back to at least v804), but I cannot find a thread with a response from the SQL Developer team - see:
    Package compilation error
    Succesful compilation message and Compiling Invalid Objects
    Creating a stored procedure from a file does not show compilation errors
    Re: Syntax Error Feedback
    I assume that it is just a bug with SQL Developer that it does not check for compilation errors when determining the status message to display (ie "PROCEDURE bogus Compiled"). At least now we get the little red cross on the navigator to tell us it is invalid :)

  • Create or replace trigger

    hi i want to create trigger . when insert a row on table , it returns new value and old value . I have many tables and columns . i should to use :new.columntitle and :old.columntitle .Columntitle is refere to name of column in table . but sql developer is not accept it and show this error : BAD BIND VARIABLE 'NEW.COLUMNTITLE' .My code is this :
    Create or replace TRIGGER hr.departments_before_insert   
      before insert       on HR.departments 
       for each row
       DECLARE
          columnid number ;
         columnval number ;
         columntitle varchar2(4000);
         cursor c2 is
         select id,tableid from hr.columns where tableid = 1 ;
          tablesid number ;
          tablenames varchar2(4000);
          cursor c1 is
          select id , title from hr.tables where id = 1;
                    BEGIN
                    open c1;  
                           loop
                              fetch c1 into tablesid , tablenames;
                                  EXIT WHEN C1%NOTFOUND;    
                                   for rec in c2
                                            loop
                                                 select substr(title,instr(title,'.',-1,1)+1) into columntitle  from hr.columns where id = rec.id ;
                                                 dbms_output.put_line(:new.columntitle); -- in this line the eroor occured  : error = " bad bind variable 'new.columntitle' "
                                             end loop;
                             end loop;
                    close c1;    
                     end;
    -- in loop columntitle=deparment _id and department_name ; when i replace columntitle with department _id in :new , code is work ...
    thanks                                                                                                                                                         

    You have no choice but to specifically list the column names.
    If you really have "too many columns", that would tend to imply that you have improperly normalized your schema.  Perhaps you need to rethink the data model.
    If the real problem is that you want to generate similar triggers for a large number of different tables, you could write a PL/SQL block that generates the CREATE TRIGGER statement for each table and use EXECUTE IMMEDIATE to run those statements for each table.  Using dynamic SQL like this significantly complicates the complexity of building the trigger.  This may be balanced out, though, by the fact that you only have to write it once rather than writing separate triggers for each table.
    Justin

  • Error while using Create or Replace Java Soruce ....

    Hello,
    I am very much new to JAVA. I got requirement which is very urgent.
    I have a Java file in the UNIX box and i am trying to put them in the Data base and call them through the PLSQL Package.
    These Java files were using for OA Framework, Now i have to use these files through PLSQL.
    1) In order to call java files in through PLSQL, first we need to create Java soruce.(CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED...
    ..... java class)
    2) Once this is compiled, then we can able to access through PLSQL Package. Is this correct.
    While doing So i am getting following errors when creating the JAVA SOURCE.
    Class oracle.apps.jtf.aom.transaction.TransactionScope not found in import
    Class oracle.apps.jtf.base.resources.FrameworkException not found in import.
    Class oracle.apps.jtf.base.resources.FrameworkException not found in import.
    Class oracle.apps.jtf.util.ErrorStackUtil not found in import.
    Class oracle.apps.jtf.util.FndConstant not found in import.
    But i am using
    import oracle.apps.jtf.aom.transaction.TransactionScope;
    import oracle.apps.jtf.base.resources.FrameworkException;
    import oracle.apps.jtf.cache.CacheManager;
    import oracle.apps.jtf.util.ErrorStackUtil;
    import oracle.apps.jtf.util.FndConstant;
    Can anyone please let me know why this error is comming up.
    Thanks,
    Srikanth.

    You seem to be new to java and three tier archietecture, probably from sql background. First understand the difference between an application server and database server.Java files reside in application server and not database server.
    In order to load OAF java files to server you need to put the files at appropriate location under JAVA_TOP and compile them using javac command to generate class files. Or else you can directly put the class files but it will give compile time errors if you don't have all dependencies locally.
    You need to upload UI xml files in MDS repository in db server and other xml files under appropriate directory structure under JAVA_TOP.
    Read dev guide for details.This is really an interesting TAR for Oracle support guys!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Run Multiple SSIS Packages in parallel using SQL job

    Hi ,
    We have a File Watcher process to determine the load of some files in a particular location. If files are arrived then another package has to be kick-started.
    There are around 10 such File Watcher Processes to look for 10 different categories of files. All 10 File Watcher have to be started at the same time.
    Now these can be automated by creating 10 different SQL jobs which is a safer option. But if a different category file arrives then another job has to be created. Somehow I feel this is not the right approach.
    Another option is to create one more package and execute all the 10 file watcher packages as 10 different execute packages in parallel.
    But incase if they don’t execute in parallel, i.e., if any of the package waits for some resources, then it does not satisfy our functional requirement . I have to be 100% sure that all 10 are getting executed in parallel.
    NOTE: There are 8 logical processors in this server.
    (SELECT cpu_count FROM sys.dm_os_sys_info
    i.e., 10 tasks can run in parallel, but somehow I got a doubt that only 2 are running exactly in parallel and other tasks are waiting. So I just don’t want to try this  option.
    Can someone please help me in giving the better way to automate these 10 file watcher process in a single job.
    Thanks in advance,
    Raksha
    Raksha

    Hi Jim,
    For Each File Type there are separate packages which needs to be run.
    For example package-A, processes FileType-A and package-B processes FileType-B. All these are independent processes which run in parrallel as of now. 
    The current requirement is to have File Watcher process for each of these packages. So now FileWatcher-A polls for FileType-A and if any of the filetype-A is found it will kick start package-A. In the same way there is FileWatcher-B, which looks for FileType-B
    and starts Package-B when any of FileType-B is found. There are 10 such File Watcher processes.
    These File Watcher Processes are independent and needs to start daily at 7 AM and run for 3 hrs. 
    Please let me know if is possible to run multiple packages in parallel using SQL job.
    NOTE: Some how I find it as a risk, to run these packages in parallel using execute package task and call that master package in job. I feel only 2 packages are running in parallel and other packages are waiting for resources.
    Thanks,
    Raksha
    Raksha

  • Package fails, execute in sql*plus works

    SQL> execute toa.toa_security.change_password('testuser','testpassword');
    ALTER USER testuser IDENTIFIED BY testpassword
    BEGIN toa.toa_security.change_password('testuser','testpassword'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "TOA.TOA_SECURITY", line 77
    ORA-06512: at line 1
    Here is the code
    PROCEDURE CHANGE_PASSWORD (userid VARCHAR2, passwd VARCHAR2) IS
      sqlstr VARCHAR2(500);
    BEGIN
      sqlstr :=
        'ALTER USER '||userid||' IDENTIFIED BY '||passwd;
      EXECUTE IMMEDIATE sqlstr;
    END CHANGE_PASSWORD;Line 77: EXECUTE IMMEDIATE sqlstr;
    No matter what user I run this as it fails (even the owner who has DBA priv). I have other procedures and functions in this package and they all run fine for the owner and a "simple" user. So obvioulsy it is not a privilege missing for the user on the package even though I did "grant execute on toa_security to <user>;".
    I'm stumpped and baffled. And, I'm probably blind as to what is wrong.
    Any ideas?

    What William Robertson said is correct. Here's what happened on my system, I had to grant ALTER USER to myself directly:
    SQL> show user
    USER is "SYSTEM"
    SQL> CREATE OR REPLACE
      2  PROCEDURE CHANGE_PASSWORD (userid VARCHAR2, passwd VARCHAR2) IS
      3
      4  BEGIN
      5
      6    EXECUTE IMMEDIATE 'ALTER USER '||userid||' IDENTIFIED BY '||passwd;
      7
      8  END CHANGE_PASSWORD;
      9  /
    Procedure created.
    SQL> exec change_password('HR','blah');
    BEGIN change_password('HR','blah'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYSTEM.CHANGE_PASSWORD", line 5
    ORA-06512: at line 1
    SQL> grant alter user to system;
    Grant succeeded.
    SQL> exec change_password('HR','blah');
    PL/SQL procedure successfully completed.
    SQL> conn hr/blah
    Connected.
    SQL>

  • Create trigger not audited when run from sql developer Version 3.2.20.09

    Creating or editing a trigger is not being stored in the audit table when run from sql developer.
    Here is a sample script to show the issue:
    Grant Connect,create table,create trigger To testuser Identified By testuser;
    create table testuser.testtab(t1 number);
    Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
    CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
      Insert
          ON testuser.testtab FOR EACH ROW
    begin
      null;
    end;
    Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
    drop user testuser cascade;
    If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
    If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
    If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
    If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

    DoyleFreeman wrote:
    Not sure what you mean by "perform the audit".
    Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
    Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
    https://forums.oracle.com/community/developer/english/oracle_database/general_questions
    Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
    Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
    Have you read any of the extensive documentation about auditing to learn how to use it?
    See the Database Security Guide
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
    Also see 'Auditing Functions, Procedures, Packages, and Triggers
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
    And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    0
    audit create trigger by scott
    CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
      Insert
          ON emp_copy FOR EACH ROW
    begin
      null;
    end;
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    1

Maybe you are looking for

  • AgentryGUI / AgentryCmd in SMP 2.3 not working?

    Hi all, when trying to connect to an Agentry Server 6.1.x with the AgentryGUI.exe or AgentryCmd.exe, all I get is the following error message:      Error reading result from server      Zero bytes handled      Success      ...unable to connect to "sa

  • Calendar entires labeled "Send Using Facebook" are not synching with Outtook

    Some of the calendar entries that appear on my Blackberry are not synching to Outlook.  Oddly, most of these were calendar entries created in Blackberry.  When I click on these entries on my BlackBerry the top box says "Send Using:" and "Facebook" is

  • Security Settings Will not allow me to Install Itunes 7

    When I try to download Itunes 7.0 I get the security alert that says my security settings do not allow me to install the program. What should I do?

  • Installation of Sum (Software Update Manager)

    Hello People I have a problem with the installation of packets in my system BW in the stack to java. The tool JSPM this not working and I opened a message in support sap and they comment that tool for packages update, is  changed per SUM "Software Up

  • Help in Embedding  a tool

    Hi all, Iam doing mms generation using openwave mms libraries by uploading the files.After uploading the files user has to see the preview.If he clicks the preview buton the tool for preview which iam using is Nokia S40 DP2.0 SDK1.0 should come in pi