Penetrating the table $ FGA_LOG a new tablespace in 10.2.0.1

Hi all
I want to penetrating a tablespace of the table again to $ FGA_LOG
Unfortunately, we are in version 10.2.0.1

I know that there is a patch to the 10.2.0.3

I don't want to just move it manually, should I?
or I can always install the patch 6989148 of 10.2.0.3
on my 10.2.0.1

Thank you

See this Metralink Note:-72460.1

Oracle stores audit trail records in a single table, "SYS. AUD$ ', being a dictionary database table, it is not supported to change.» However, it is supported to change the settings for storage by default (except INITIAL) in 'SYS. AUD$.

By changing the 'SYS. AUD$ "storage settings, the table can grow as big as you want, but only within the space of SYSTEM tables. The Oracle8i / Oracle9i Administrator's Guide covers ways to manage this growth in the SYSTEM tablespace, but without the added flexibility provided by moving 'SYS. AUD$ "to a different tablespace.

The following script allows to move the 'SYS. AUD$ "table out of the storage SYSTEM and the SYS to the user of the SYSTEM (although it could be any other user).

1. start the database with:

AUDIT_TRAIL = none

2. run the following in Sqlplus:
connect sys /.

create the table system.aud$
tablespace
As select * from aud$;
create index system.i_aud1 on system.aud$ (sessionid, its$ tid);

AUD$ and rename aud$ _temp;
create view aud$ in select * from system.aud$;

Connect the system.

grant all on aud$ sys with the option grant.
Grant delete on aud$ to delete_catalog_role;

3. restart the database with:

AUDIT_TRAIL = DB

4 re-create the views of data for checking dictionary:

connect sys /.
@%ORACLE_HOME%/rdbms/admin/cataudit.sql

Tags: Database

Similar Questions

  • Move the tables to a different tablespace

    Hello
    I created 6 tables with my account in the USERS tablespace. If users wish to access (and he has privileges), it can be accessed as - username.nameoftb.
    Now, I would like to create new tablespace, move there all the USERS tablespace tables and if someone (who has permissions) to have access, it can, but only with the table name. Without using the username who created them.

    Could you please help me, how to proceed?
    -move the tables to a different tablespace
    -users can access without using the name of the creator

    Thank you!

    1. change the SMSC table. ERSUSERWISESUMMARY move tablespace ERST_01 nologging;

    Can also rebuild the indexes as well.

    ALTER Index SMSC. INDX_ERSDATA_STRTTIME reconstruction tablespace ERSX_01 nologging;

    2 create a synonym for this object

    create public synonym mrbt_activation for owner_name.object_name;

    Concerning
    Asif Kabir

  • Need to truncate the table before loading new data

    I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?

    He is the current ctl file:

    DOWNLOAD THE DATA
    INFILE ' D:\DATA\OHNFILES\OHN_PROVIDER_DATA. TXT'
    INSERT
    PRESERVE SPACES
    IN THE WEB OF THE TABLE. OHN_OK_SELECT
    (
    Position of CHKPPO (0001:0003).
    Position of the EFFECTIVEDATE (0004:0011).
    Position of TERMDATE (0012:0019),.
    CRED_ID position (0020:0024).
    LASTNAME position (0025:0099),
    Position of FIRSTNAME (0100:0124),
    Position of MIDDLENAME (0125:0149),
    Position of PROFESSIONALDEGREE (0150:0164),
    Position of PRIMARYSPECIALTYID (0165:0214),
    Position of PRIMARYSUBSPECIALTYID (0215:0264),
    Position of SECONDARYSPECIALTY (0265:0314),
    Position of OKLICENSENO (0315:0329),
    Position of the Nordic Institute of patents (0330:0339),
    Position of TAXIDNO (0340:0348),
    Position of MEDICARENO (0349:0365),
    Position of OFFICEADDRESS (0366:0465),
    Position of BLDGSUITEPO_BOX (0466:0500),
    Position of the CITY (0501:0525),
    Position of the STATE (0526:0527),
    Position of code POSTAL (0528:0537),
    Position of TELEPHONE number (0538:0549),
    Position of FAX number (0550:0561),
    Position of EMAILADDRESS (0562:0611),
    Position of the COUNTY (0612:0631),
    BILLINGADDRESS position (0632:0731),
    BLDGSUITEPO_BOX1 position (0732:0766).
    Ville1 position (0767:0791).
    STATE1 position (0792:0793).
    POSTALCODE1 position (0794:0803).
    Telephone1 position (0804:0815).
    Position of telecopie1 (0816:0827),
    EMAILADDRESS1 position (0828:0877).
    MAILINGADDRESS position (0878:0977),
    BLDGSUITEPO_BOX2 position (0978:1012).
    CITY2 position (1013:1037),
    STATE2 position (1038:1039).
    POSTALCODE2 position (1040:1049).
    Telephone2 position (1050:1061).
    Telecopieur2 position (1062:1073).
    EMAILADDRESS2 position (1074:1123).
    Position of the OST (1124:1163),
    Position of CLINIC_GRPNAME (1164:1263),
    Position of FEESCHEDULEID (1264:1278),
    FILL position (1279:1400)
    )

    customer wrote:
    I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?

    Same file. Say "TRUNCATE" instead of "INSERT".

    LOAD DATA
    INFILE 'D:\DATA\OHNFILES\OHN_PROVIDER_DATA.TXT'
    TRUNCATE
    PRESERVE BLANKS
    INTO TABLE WEB.OHN_OK_SELECT
    ( ...
    

    Published by: Frank Kulash, on September 3, 2009 15:12

  • Move the LOB to a new tablespace

    I want the users tablespace LOB to some other tablespace. But when I tried I got the error set-aside. I moved all the objects corresponding to the particular schema, but not the LOB. Can you please explain why Cant I move the LOB. And if you can explain that I want to know the importance of the lob indexex. Thank you in advance.

    SQL > select TABLE_NAME, INDEX_NAME, TABLESPACE_NAME from dba_lobs where owner = 'PC_DOM ';

    TABLESPACE_NAME INDEX_NAME TABLE_NAME
    ------------------------------ ------------------------------ ------------------------------
    PCSF_DOMAIN SYS_IL0000077924C00002$ $ USERS
    PCSF_CPU_USAGE_SUMMARY SYS_IL0000077933C00006$ $ USERS
    PCSF_REPO_USAGE_SUMMARY SYS_IL0000077936C00005$ $ USERS
    PCSF_USER SYS_IL0000077940C00002$ $ USERS
    PCSF_GROUP SYS_IL0000077944C00002$ $ USERS
    PCSF_ROLE SYS_IL0000077948C00002$ $ USERS
    PCSF_DOMAIN_USER_PRIVILEGE SYS_IL0000077952C00002$ $ USERS
    PCSF_DOMAIN_GROUP_PRIVILEGE SYS_IL0000077956C00002$ $ USERS

    8 selected lines.

    SQL > alter table PCSF_DOMAIN move lob (SYS_IL0000077924C00002$) store as (tablespace TS_PC_DOM);
    ALTER table PCSF_DOMAIN move lob (SYS_IL0000077924C00002$) store as (tablespace TS_PC_DOM)
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist

    Do not use segment name of LOB but about the name of the column in the table and qualify the name of the table with the owner of the table if you are not logged in as owner of the table:

    Try:

    alter table PC_DOM.PCSF_DOMAIN move lob () store as ( tablespace TS_PC_DOM );
    

    Each LOB column is materialized with 2 segments:
    -a LOB segment containing LOB data
    -a LOB index that is a structure designed to facilitate access to the LOB data in the LOB segment.

    Edited by: P. Forstmann on 22 July. 2011 20:48

    Edited by: P. Forstmann on 22 July. 2011 20:52

  • HowTo archive several Partitions of the Table to a new table?

    We have a very big_table partitioned on the TRAN_DATE column per month.

    PARTITION 'P200310' VALUES LESS THAN (TO_DATE (' 2003-11-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
    +.. +
    +.. +
    +.. +
    PARTITION "P201008" VALUES LOWER THAN (TO_DATE (' 2010-09-01 00:00:00 ', 'SYYYY-MM-DD HH24:MI:SS', ' NLS_CALENDAR = GREGORIAN ' "))

    We wanted sheet music archive (consolidated) "P200812" "P200811" "P200810"... and below in a new_table.

    I tested the "swap partition" method but the docs I found offers with one partition is going to a single table, such as:

    P200812-> table1
    P200811-> table2
    etc...
    etc...
    so, I end up with multiple partitions at several tables... not what we wanted.

    I think a merger of all the partitions P200812 and below in a single partition and make the Exchange. What is the quickest way?

    Any help or pointers will be greatly appreciated.

    Thank you.

    Edited by: joey_p May 14, 2010 12:45 AM
    create new_table as select * from big_table where 1=2;  -- create an empty, non-partitioned table
    alter new_table nologging;
    alter session enable parallel dml;
    insert /*+ APPEND PARALLEL (n 2) */ into new_table n
    select /*+ PARALLEL (b 2) */ * from big_table partition (first_partition_name);
    commit;
    insert /*+ APPEND PARALLEL (n 2) */ into new_table n
    select /*+ PARALLEL (b 2) */ * from big_table partition (second_partition_name);
    commit;
    alter table big_table truncate partition (first_partition_name);
    alter table big_table truncate partition (second_partition_name);
    alter table big_table merge partition ....
    

    TRUNCATE and MERGE orders that you would do once you have verified that all the data has been copied to the new table. (and, preferably, after a BACKUP was taken, because integration into new_table was made without redoing loggging.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Penetrating a tablespace of the table again to $ FGA_LOG

    Hi all

    I look at entering one new tablespace (other than the SYSTEM) of the table of $ FGA_LOG.

    This table grew too big and made the SYSTEM tablespace more 13 GB.

    I'm on 10.2.0.3.0, I know that there a package to perform this task in 11g, but I can't upgrade for the moment

    Thank you very much

    Hello

    I think that it is not a good idea... This action can cause upgrades of concerning problems or, in some backup/restore scenarios. How to export or copy the contents of FGA_LOG$ in another table, located in a different tablespace? So, after that, you can clean the $ FGA_LOG (truncate) in order to save space in the SYSTEM tablespace:

    1. create the table fga_log tablespace in select * from fga_log$;
    2 - truncate table fga_log$;

    I'm on 10.2.0.3.0, I know that there a package to perform this task in 11g, but I can't upgrade for the moment

    Are you talking about the DBMS_AUDIT_MGMT. Procedure SET_AUDIT_TRAIL_LOCATION? If Yes, for more information, take a look at the Note: 72460.1 on the My Oracle Support website (formerly Metalink)... of course if you have a valid account of the ITUC.

    See you soon

    [url eduardolegatti.blogspot.com] Legatti

  • Shared variable data type: can I choose a picture of a typedef custom, without making the table itself a typedef?

    Hi all

    I would like to pass a table to a cluster on my network. My group is typedef'ed, but I would avoid to pollute my project with an another redundant typedef.

    Is it possible to use the option "From Custom Control... ' of the shared variable with an array without saving the table as a new .ctl file?

    Oh, I didn't know you were using shared variables. I thought that you were just considered another option with TCP/IP or UDP or something like that. In this case, you will need to create a second custom control. This control would be a table with the cluster of typedef in there. Not need to make this new control itself a typedef however. Sorry, I know you were hoping for a different answer. I doubt a single file will really be "clutter" your project well

  • I want to change the table with the expression of dangerousness of the virtual columns with her, need advice

    Hi all

    Here is the structure of the table with two expression of virtual columns associated highlighted, now I want to delete these expressions with virtual columns (but must keep my VIRTUAL columns as it is).

    Is it possible the alter or I need to raise the table, make a new structure and copy content back to newly structured table... Pleae help!

    CREATE TABLE TEST_COL)

    SAGE_TRADE_TYPE VARCHAR2 (50 BYTE),

    LOCAL_TZ VARCHAR2 (20 BYTE),

    ACE GMT_CONV_ENTERED_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, ENTERED_DT_TS)) VIRTUAL,.

    ACE GMT_CONV_EXECUTION_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, UPSTREAM_EXECUTION_TS)) VIRTUAL,.

    EOD_IND VARCHAR2 (10 BYTE)

    );

    Thank you very much

    Arpit

    Try this

    ALTER table test_col change gmt_conv_entered_dt_ts (0) virtual;

    ALTER table test_col change gmt_conv_execution_dt_ts (1) virtual;

  • Oracle 11G - access to the table problem

    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...
    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?


    Thanks for the directions...

    997497 wrote:
    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...

    What the user did you use to connect? I'm guessing that you logged in as SYS

    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    So I guess that you have created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you have created the table in the SYS schema, you really need to drop and create in a more appropriate scheme.

    You indicate that you come from SQL Server, so there may be a question of terminology. Which refers to SQL Server as a "database" is roughly equivalent to what Oracle designates as a "scheme." An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    As I said above, you really, really should not create objects in the SYS schema. If you really want, however, you need to log the SYS schema and grant access on the table to your new user

    GRANT SELECT ON sys.table1 TO your_new_user
    

    You will then need to fully qualify the table name in your SELECT (or create a synonym or the current_schema)

    SELECT *
      FROM sys.table1
    

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    Older versions of Oracle Forms would create server executables. The modern versions are used to create three-tier applications. You can also use APEX to build web applications. Of course, you can also generate executables by writing code in another language (often .net).

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?

    Is this possible? Sure. Depending on what means "remote users", however, it may be poorly advised - you would never open a database to the internet directly, for example, you want to ensure that the remote users are connected to your network (via a virtual private network).

    Justin

  • Additional code added when you paste the table from Word in Dreamweaver

    Hello world

    I stuck in a table from Word in Dreamweaver and even if all the table code was written, Dreamweaver put < p > tags around all the content of the data cell and he also added valign = "top".

    Is it possible to get just Dreamweaver to create the base table code and do not add any extra markup?

    Appreciate any advice.

    I just tested this and had the same results, regardless of the option I used when using 'paste special '.

    Outside the coding table yourself and adding data, it didn't there has anything you can do on the entry formatting of MS Word.

    If you insert the code in the table in a new document, maybe run a search and replace to remove the valign = top of all cells.  Regarding the

    Tags, you could do the same, find and replace each of the tags separately (but this should be done in a new document that has this particular table), otherwise I don't worry too much about those, maybe just set padding and margin on the

    elements to 0 or all that is appropriate, within this particular table.

    Once you have the code as you like, then copy and paste into your web page document.

    Just an idea anyway

  • Copy of an existing MovieClip instance and pushing on the table

    Hello

    Here's what I'm trying to do:

    I have an array of instances of clip called [iconArray].

    what I want to do is to create the effect of moving the icons on the screen left or right. Lets say we are changing the icons on the left - what I want to do is the icon on the left (iconArray [0]: MovieClip) to interpolate left on 20-30 pixels and then fade out, I can achieve at present. The problem is I want to copy of the instance of this interim MC icon and push it iconArray and then the melted in the interpolation of the right.

    In other words, the left most icon should "Pack" back around to the position of the icon mostly right but in order to create the illusion without going through the left most icon pass on the other icons (which seems sticky), I want to create a copy of the left most icon and press it in the table as a new movieclip with the same image and have this right fade While the other is dying off the coast.

    Here's my best interpretation of ascii:

    <-* fade out *-[iconArray (0)] <-iconArray (1) <-iconArray (2) <-iconArray (3) <-iconArray (4) <-* bland in *-(iconArray (5) * COPY of iconArray (0) *)

    Now that you understand what happens if all goes well, I cannot copy table [0] and pushing at the end of the table. When I do:

    var mc_temp:MovieClip = new MovieClip();

    mc_temp:MovieClip = iconArray [0];

    iconArray.push (mc_temp);

    It does not create a new icon, seems to point to the same clip as iconArray [0] and any adjustment that I do x or alpha affect the original MovieClip instance and not the news I created and placed on the table.

    How should be done on a copy of a movieclip, storing in its own instance/var, so it can be displayed and manipulated as a separate entity?

    What you have described initially and I think you're describing now are not the same things, or maybe they are simply not what I think you are trying to do.  What you need to do, it's first move the element to the left and it melted.  Have a listener for when the fade out is completed and have this listener call another function that changes the position x of which faded to movieclip immediately at the other end of the Group and start an another tween to fade.

    I have not worked with the Oregon Tweener sufficiently to be able to tell you how to implement the event listeners.

  • import to another name of the table.

    I need to import them from a full export file, a single table 'testtable' of the user "testuser" to the same user, but a different table name. Is this possible? What is the syntax of import for this? Thank you.

    BB

    What version of oracle (4 digits)?

    I'm sure that he will not enter the sys tablespace?

    Sure. He will not enter sys tablespace. You just rename the table and moving not the table to a different tablespace.

    select table_name,tablespace_name from dba_tables where owner='OPS$USER';
    
    TABLE_NAME                     TABLESPACE_NAME
    ------------------------------ ------------------------------
    TEMP_TAB2                     USERS
    
    SQL> alter table ops$user.TEMP_TAB2 rename to TEMP_TAB3;
    
    Table altered.
    
    select table_name,tablespace_name from dba_tables where owner='OPS$USER';
    
    TABLE_NAME                     TABLESPACE_NAME
    ------------------------------ ------------------------------
    TEMP_TAB3                      USERS
    

    HTH
    -André

  • Import the table structure

    Hai everybody

    is it possible to import just the structure of the Table from a backup oracle dump file. After you import the table structure to new possibility to import the data in the tables of the same/other backup dump file.

    What I wanted to say - I will first import the structure of the table from the dump file. After you import the structure of the table, I want to check the constraints. Finally, I want to import the data from the same dump file.

    Thank you

    Christiane

    Hello

    Discover this .

    Arun-

  • Move the table in same tablespace is not reorganize the data

    Hello.

    I am facing a problem that I have not used to have.  First of all, a description of our envorinnement:

    We have a few large tables partitioned and performance optimization, our ETLs use bluk, add notes, parallelism and so on.  This create several holes of unused space in tablespaces/data files as well a kind of leak of space on our drives.

    A complete correction would re-create the tablespaces move everything is of opposes another.  It would be impratical, because there are about 15 who are top of 100 GB; the time and effort to recreate everything is not affordable for the Business.

    Instead, we have a single proc that comes to calculate the actual amount of used space (converted to blocks) and makes a move of all objects above this block_id.  Just after this operation, there is a dynamic shrink based on the new HWM (given that the objects have been moved) on the data file freeing disk space.  As we have a datafile by tablespace and a tablespace by schema, we would like to keep this body, if we make a single movement for objects, like 'ALTER TABLE' | owner: '. ' || nom_segment | "MOVE; "(the complete query works with all types of data such as partitions of table objects, the index partitions and the subpartions).  This will move the object in the same space for the first freespace on the tables and free up space at the end of the file to shrink.  In theory.

    This unique proc used to work properly.  In a 650 GB GB 530 tablespace in use moving about 20 that Go (the amount of data beyond the HWM 530 GB) is simpler than to create a new file/TBS and the displacement of 20 GB is faster than Go 530.

    But suddenly things changed when some TBS refused to be narrowed.  What I found out: the command move doesn't fail, it works very well and Oracle really moves the object.  But for reasons that I don't know, he's not moving it at the beginning of the file, it keeps the object at the end.  So the da calculates the new HWM, but because some objects that were in the tail of the queue, the shrink is done with a very high HWM, if no real space is reclaimed.

    So, the main question: How does the ALTER TABLE FOO MOVE really works?  I thought that it would be always to move the object to the beginning of the file thus reorganize, but I analyzed the last objects that gave me this problem (block_id before and after the move, compared to block_ids empty and everything) and actually, I see that they were moved at the end of the file, although there is enough space to accommodate initially.

    Okay, I think I found the problem.  Before that I just pulled the script as posted, but then I had the good idea to improve its performance with parallelism, so I added:

    ALTER SESSION FORCE PARALLEL QUERY 16 PARALLELS;

    ALTER SESSION FORCE PARALLEL DDL PARALLEL 16;

    ALTER SESSION FORCE PARALLEL DML PARALLEL 16;

    Returning to prallel not running, that I could reuse the freespace on the beginning of the file, and then narrow it down.

    Obviously, each writing data in parallel mode reuse freespace, I just forgot that a TABLE ALTER MOVE is also a data write operation.  I fell a bit ridiculous, caught in the same trap that I was trying hard.

    Thank you all for the comments and advice.

  • Cannot extend the table SYS. FIERROS_IMAGEN by 1024 in the SYSTEM tablespace

    Hi all I have installed oracle xe on a Windows Xp computer, asked me for a password and I typed: 123

    Then I have a myback.dmp filenamed backup and imported:

    IMP file = myback.dmp ' 123/sys AS SYSDBA"full = Yes log = implog.log

    example of messages: when importing

    ==============================================================================================================

    . . importing table "FIERROS_IMAGEN".

    IMP-00058: ORACLE error 1653

    ORA-01653: unable to extend the table SYS. FIERROS_IMAGEN by 1024 in the SYSTEM tablespace

    IMP-00028: partial import of the restored previous table: 63343 restored lines

    IMP-00017: statement failed with error ORACLE 1917:

    ==============================================================================================================

    How do I fix this error? need to create the tablespace? How?

    and need to re-import? or only to import the table? How to change the imp command to specify the table?

    Thank you

    As KarK says you should not use SYSTEM tablespace for the user data.

    If you can make after:

    Create new tablespace:

    Go to sqlplus and run (change the name, path, and a size suitable for you. You must have enough disk space for this new tablespace data file.) :

    CREATE TABLESPACE PETIT_FICHIER DATAFILE «TEST_TS_01.dbf» ' TEST_TS'

    SIZE 1512M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

    Create a new user:

    Go to sqlplus and run (change the name and the password for you):

    CREATE PROFILE 'TEST_USER' USER 'DEFAULT' IDENTIFIED BY ' * ' DEFAULT TABLESPACE "TEST_TS".

    TABLESPACE QUOTA UNLIMITED ON 'TEST_TS' TEMPORARY 'TEMP' ACCOUNT UNLOCK;

    GRANT 'CONNECT' TO THE 'TEST_USER;

    import of user data (user who has data (in the source database) you want to import) for this new user:

    IMP system/password@tesdb fromuser = = TEST_USER leader touser = myback.dmp log = implog.log

    and if it doesn't always fit you can resize your bigger like that new tablespace (once again if you have enough disk space):

    alter database datafile 'TEST_TS_01.dbf' 2512 M resizing;

    If you need to make several attempts, then rub new user before retry (sqlplus) with

    drop the TEST_USER user cascade;.

    and then recreate it.

Maybe you are looking for