Audit to create any table

SQL > select * from v version $;

BANNER

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

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

PL/SQL Release 11.2.0.1.0 - Production

CORE 11.2.0.1.0 Production

AMT for 32-bit Windows: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

SQL > select audit_option in the dba_stmt_audit_opts;

no selected line

SQL > see the parameter checking.

VALUE OF TYPE NAME

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

audit_file_dest string C:\APP\ADMINISTRATOR\ADMIN\ORC

L\ADUMP

audit_sys_operations boolean FALSE

AUDIT_TRAIL DB string

SQL > select count (*) in the dba_audit_trail;

COUNT (*)

----------

4132

SQL > audit create any table Scott.

Verification succeeded.

SQL > select audit_option in the dba_stmt_audit_opts;

AUDIT_OPTION

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

CREATE A TABLE

SQL > create table dummy (a number);

Table created.

SQL > insert into values dummy (1);

1 line of creation.

SQL > commit;

Validation complete.

SQL > select count (*) in the dba_audit_trail;

COUNT (*)

----------

4132

SQL >

So, my question is why I see no + 1 in dba_audit_trail while the user scott has been audit to create any table that is before activation of the audit and creating the table there are 4132 lines in dba_audit_trail and they are same even after activation of the audit and create the table. Kindly help me to understand.

Thank you.

It seems the user scott created table in its own schema, you must check create table as well.

Thank you

Bigot

Tags: Database

Similar Questions

  • Of FUNDING and dynamic SQL CREATE ANY TABLE

    Hi gurus,

    I have a dynamic SQL code in a procedure where a table to an existing table without data will be created.

    strSQL: = "create table ' | strTemp | ' in select * from '. strArc. "where 1 = 2"; "
    Execute immediate strSQL;


    without GRANT CREATE ANY TABLE to user, * "ORA-01031: insufficient privileges" * error executing. "."

    Is there a way to tackle this problem without providing a GRANT CREATE ANY TABLE privileged?


    Thank you very much
    Charles

    (1) why you are creating a table to run? Which seems to me very concerning. If you create a temporary table and you're accustomed to work how temporary tables in other databases, I would strongly suggest you look at how Oracle manages global temporary tables. If temporary storage is really necessary (99% of the time is not because of the consistent reading multi-version), you should be able to create global temporary tables a few during execution.

    (2) the owner of the procedure should just need the CREATE TABLE privilege granted directly to the user (not granted through a role), assuming that it is in stored procedure a standard DEFINER rights.

    Justin

  • GRANT CREATE ANY TABLE

    Hello
    in 10g,.
    If I have:
    GRANT CREATE ANY TABLE to user1;
    then:
    1 - user1 can create a table in any schema and remove any table in any schema?

    2-can we user1 create a table in any schema and drop any table from only its own schema?

    Thank you.

    just give a try if you have a test database.

  • How to count the amount of toys that every boy has (without creating any table)?

    For example, there are 3 boys (boy, a boy b, boy c) and 2 types of toys (A toy, toy B).

    Insert the following records:

    (boy a, A toy)

    (boy a toy B)

    (boy a toy B)

    (boy b, a toy)

    So I expect to get the following statistics:


    A toy
    Toy B
    Boy one12
    b Boy10
    c boy00

    Notice 1: The list of boys and the list of the toy_kind are determined, that is, I can generate the phrase sql in c#, using the two lists.

    Notice 2: I wish that all the columns appeared, even if a column is made up of 0. If a row of 0 as 'boy c' is displayed or not has no importance.

    How to do this WITHOUT creating tables? Use sql or a procedure are OK. I had to use the result in c# to add the table to Word.

    Thank you!

    These data are stored in a table already?

    You say "without creating table", but we don't know what that makes reference.

    You are looking for something like this?

    SQL > with boys like (select "boy a ' as a boy all the double union")
    2 Select 'b boy' union double all the
    3 select 'boy c' double
    4               )
    5, boys_toys as (select ' boy a "boy,"A toy"as any double union toy")
    6 select 'boy a', 'toy B' from dual union all
    7 if he would choose "a boy ', 'toy B' dual Union all"
    8 select 'boy b', 'A Toy' go two
    9                    )
    10-
    11 - the end of test data
    12-
    13. Select boys.boy
    14, sum (case when toy = 'toy A' then 1 else 0 end) as the toyA
    15, sum (case when toy = ' toy B' then 1 else 0 ") as toyB
    boys 16
    17 left outer join (boys_toys.boy = boys.boy) boys_toys
    Group 18 by boys.boy
    19 order by 1
    20.
    TOYA TOYB BOY
    ----- ---------- ----------
    boy's 1 2
    Boy b 1 0
    Boy c 0 0

    3 selected lines.

  • Oracle 11g R2, CREATE THE TABLE and QUOTAS

    Hi all
    I need some insight on a strange behavior, that I discovered in Oracle 11 g 2. Don't know if I'm missing something or if I just discovered a security issue with Oracle.

    Oracle Version: 11.2.0.1.0

    The problem is with the CREATE TABLE and the QUOTA on the specific tablespace privilege.

    Please, try this on your system (if you have some free time and care to confirm the "bug").

    Create a user, grant privileges than two, CREATE THE SESSION and CREATE TABLE.

    Grant NO quota on any tablespace.

    Try to create a table on any tablespace (except SYSTEM) and everybody say if it worked or not.

    The oracle documentation provides the following:

    To create a relational table in your own schema, you must have the CREATE TABLE system privilege. To create a table in the schema of another user, you must have the CREATE ANY TABLE system privilege. In addition, the owner of the schema containing the table must have a quota of space on the tablespace contains the table or the UNLIMITED TABLESPACE system privilege.

    [http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_7002.htm#SQLRF01402]

    The fact is, so far, on two different instances of Oracle 11 g 2, my users are not limited in the creation of the tables only when they have quotas, but where they want to, except the STRING.

    The behavior correct would be to deny the creation of the table the tablespace where there is no quota, but it does not work.

    My instance of Oracle 10 g behave properly and therefore the creation of the table is denied the tablespace with no quota.

    P.s1 sorry if this a well known "bug/problem/question". I've been ridiculous on a well-known forum for the same question. I don't need to be "filled spoon" as shown on this famous site! I have read the documentation! I googled a lot!

    P.s2 even if the creative work of table on tablespace with no quota, you cannot insert data into it. Yes, big picture, the user cannot not filled space with irrelevant data tables, but it can create thousands of tables...!

    Did I miss something?
    Is there a 'default' option I have to mark to prevent the creation of the table where it shouldn't?
    ? (?)

    Please read http://tkyte.blogspot.com/2011/02/deferred-segment-creation.html.

  • Trying to create the table using Clause any Union with Select multiple stmts

    The motion seeks to get the substring of the value to for example.
    If the value is * ASA 2 * then so do ASA
    where as if the value is * 1.5 TST * it sholud come as TST as wise for others too.
    I am trying to execute stmt SQL written but in error as below:

    * ' ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias. "

    CREATE TABLE TEST_CARE AS
    (
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 5
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 7
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 14
    UNION ALL
    Row_id SELECT, old_care_lvl, SUBSTR (old_care_lvl, 3), LEN test_care_lvl
    WHERE LENGTH = 7 AND old_care_lvl (old_care_lvl) = "Regular."
    );

    I want to create the table using the above given the multiple selection by using the Union ALL clause, but trying to create run query error like "ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias.

    Please guide me how to approach to solve this problem.
    Thanks in advance.

    Try this->

    CREATE TABLE TEST_CARE
    AS
      select *
      from (
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =5
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =14
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
          );
    

    N.B.: Not tested...

    Kind regards.

    LOULOU.

  • How to find which create the table?

    Let's say I have a user named IMSDBA, and many users have IMSDBA privilege account.
    They can log on using that account and do some operations under this scheme.

    And someday, someone has created a table under the scheme. So I wonder if it is possible to know who actually created this table?

    PS: Each user who can log in as IMSDBA has corresponding Emplyee ID and address related to specific PC.

    Any ideas would be highly appreciated :-)
    Thanks in advance!

    Published by: PhoenixBai on September 17, 2009 10:40

    Now, if you are using Oracle audit to audit things like CREATE TABLE for IMSDBA, SYS. AUD$ seize among other things, the USERHOST and TERMINAL. Assuming you're only worried about the direct connections, not of three applications at several levels, this should give you the information you need determine which machine was used and, therefore, that the user. In hindsight, if your database is in ARCHIVELOG mode and you have logs archived in time of creating the table, you can use LogMiner to get this information as well.

    Of course, standard safety advice would be that each user has a separate Oracle account that they use to simplify the task of checking who did what.

    Justin

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • Using numbers to create a table where the value of the line increases automatically

    Hello

    I created a table (pictured below) to help calculate my self-employed income:

    INDEX

    DATE

    HAVING RETURNED TO THE SELF-EMPLOYED

    £

    A1

    I want to create an index / of reference for each line so that I can connect to receipts.

    I like the index / reference to automatically increase i.e. A2, A3 etc when I create a new line by using the shortcut 'alt - cursor down' but to note has managed to find out what formula to use.

    Any help would be great!

    Thank you very much

    Stophen.

    You can try something like this:

    = 'A' & rangee()

    SG

  • How to create a table with strings active by Boolean button

    Hello.
    I have a problem to create a table and did not find any topic in the forum that could help me solve this problem.
    I need to create a table of alarm.
    In other words, every time an alarm has been triggered (Boolean button), the table shows the time, date and where the alarm has occurred.
    For example, when garage alarm is activated, it will be at table:

    Date / / Time / / Garage / / presence ON

    And so on, when the alarm is activated the room:

    Date / / Time / / room / / presence ON

    If anyone can help, I would appreciate it enough.

    Thank you.

    Giuliano06 wrote:

    So I can show the alarm, but when the button is not selected, it sends the null value (empty string) for the table through the registry to offset.

    Also, when I choose for example the 2 bedrooms, it is moved to another column in the table and not just below the last alarm obtained.

    My VI is attached cases someone might have an idea.

    your constantly questioning the value to your table, ofcoarse, this vi is designed according to the mechanical action of the Boolean switch...

  • How to create a Table of contents of a book as opposed to a single document?

    I'm working on a book with several chapters. Each chapter is a separate document joined as well as the rest of the book in InDesign. I have a table of contents in each document, and the hyperlink works very well when the document is exported to PDF. However, I was unable to create a single comprehensive contents table on the front of the book before Chapter 1. I tried everything I know how to create a table of contents for a single document, but that does not work for me with so many documents in the book. Is there something I missed? I'd appreciate any help in this regard.

    In the Options section of the Table of contents dialog box, there is a checkbox: Include book of Documents.

    What is checked, he must analyze each document in a book for styles to be used in the creation of the table of contents.

  • Creating a table fixed adf read-only for the month

    Hello world

    I was wondering if it would be possible to create a table read-only horizontal adf fixed with the months of the year. I am pretending to do is the following:

    Jan Feb March April May June

    Jul there are seven Oct Nov Dec

    Really, it isn't serious me if I create the table by hand or the month comes from a table in a database, but is it possible? How would you do it?

    I really tried to do, I tried foreach, a table, I tried to browse but I couldn't do it.

    Any help or ideas from anyone? How can you do a foreach statement and 'divide' table of the adf two?

    The example I want to achieve with this idea: https://www.dropbox.com/s/w03nyuizkzgyq21/Capture.PNG

    I use Jdeveloper 12.1.2.0.0.

    Kind regards

    Frederico.

    The attributes of need 6 vo and two lines to get your page layout. First line contains jan-June and the 2nd row from July to December...

    Or you use a panlelGridLayout with two rows one 6 cells and set each throttle in its own cell. Looks like a table but is not a.

    Timo

  • Could not commit: ORA-00928: lack of creating the table SELECT keyword

    Hello guys.
    I tried to create the table with web interface on oracle 11g.

    I just follow this path on interface: schema-> table-> create-> standard (lot organized)-> SQl select on (set using the)->
    and I just use these scripts to create the table:

    CREATE TABLE suppliers
    (the number (10) of supplier_id not null,)
    supplier_name varchar2 (50) not null,
    Contact_Name varchar2 (50)
    );

    but this error occurred: failed to commit: ORA-00928: lack of SELECT key word!
    Please lock on this picture for more information: http://s17.postimg.org/kgoumzmvz/attachment.jpg

    could you help me please?
    and I could not find any manual for working with the web interface in oracle 11g.
    Please give me somesources to start.
    Thank you.

    1003778 wrote:
    Thank you sybrand_b
    but I already read this document.
    Unfortunately, there is nothing on the creation of table with sql scripts in this document!

    and I really don't understand how to create table with SQL commands! My question has not yet been answered.
    you please give me little details about it?
    for example, how can create table using this sql command:

    CREATE TABLE suppliers
    (the number (10) of supplier_id not null,)
    supplier_name varchar2 (50) not null,
    Contact_Name varchar2 (50)
    );

    Thank you.

    Edited by: 1003778 may 3, 2013 11:43

    When you got to the CREATE TABLE screen, you have selected "set using the--> SQL.
    Did you notice in the window that appears, just above this entry field is this text: "enter a SQL * select * statement below.» ' + This query results will be used to fill the table with Canada.* + "(underlining)
    And hip, just to the left of this field is this text: «CREATE TABLE AS»

    He tries to build a ' CREATE TABLE AS SELECT... ». Creates a table with the same structure as the table in which you SELECT and fills with the results of this SELECT '. With your entry, you create a CREATE TABLE AS CREATE TABLE to read statement...

    If you want to create your tables with a simple CREATE TABLE command, go to sqlplus and do it. You want to have a graphical interface to help build a simple CREATE table, when you get to the CREATE TABLE page, just to stay there with the default "use Define-> column specification." If you want, after completing "build" your table specification here, you will have a "Show sql" option to show you the actual sql statement that will be executed to create your table.

  • Trying to create a table with apex_item... and apex_item.select_list

    I am creating a tabular presentation that uses several altec_item functions (select_list, select_list_from_LOV,...). Whenever I try to create a new page, and then select a table, I have to select a table and columns. So I just chose any table and once the sql is created, I have to crush it with my own sql. When I try to apply the changes, I get an error everytime I use apex_item... for a particular column. I tried the creation of a standard report with the same results. I have read at least 20 examples but no saying where to start from when you create the presentation table and just go directly in the code. Can someone tell me please in the right direction?
    Thank you
    Jerryu

    You can start with the creation of a simple classic report. You can use the functions apex_item in your query and later to put your column attributes 'Standard report Column '. Basically, you create a report updated.

  • need a script to create multiple tables as the other columns in tables

    I need script to create multiple tables as the other columns of tables respectively.

    lets consider I want to create tables from table1... table99 like tablex1... .tablex99 columns (without data) respectively (i.e table1 as tablex1, table99 as tablex99).
    declare
    
    cursor c is select object_name from all_objects where object_type='TABLE';
    
    begin
    
    for i in c loop
    
    execute immediate 'create table '||i.object_name||'_x as select * from '||i.object_name||' where 1=2';
    
    end loop;
    
    end;
    
    use can use this and put your user names accordingly.
    If you get any error please post the error.
    

Maybe you are looking for

  • End 2011 13 "MacBook Pro battery capacity

    I noticed the battery on my end 2011 13 "MacBook Pro does not seem to hold charge for a long time, I can take the machine off and he will die in about 90 minutes of light use from 100 to less than 10% I tried a full cycle of discharge and recharge an

  • appleTV ask code appleID password and authentication circularly

    After the update to my iPhone I have asked me to use the double authentication code, I didn't have any idea what kind of nightmare is. I spent hours to go from one device to the other verification of passwords and authentication codes. The last of th

  • How writing protected for the system disk?

    Hello I wanted to delete some files on the external hard drive. He cannot because of the write protected. So, I had to go to the registry editor. HKeylocalMachine-> system-> CurrentControlSet-> control-> StorageDevicePolicies.That is protected with D

  • Destination folder access denied

    Background.  I recently bought a new cell phone. It came with the dropbox app to move photos and videos taken with the phone to a PC.  I've installed dropbox on my PC and photo & video transfers started without problem. I run Windows Vista Ultimate x

  • Pavilion g6 - 2318sr and win 7 drivers

    Hello, I have a problem with the installation of win 7 on my laptop.I bought with win8 pre-installed, but wanted it downgrade to win7.So the question is: where can I download drivers for my g6 - 2318sr?Download at hp.com page offers only win8 drivers