ALTER TABLESPACE "USERS" OFFLINE NORMAL; takes a checkpoint

I have an Oracle 10g database. I am trying to go back to a state when I created a physical copy of datafiles in the USERS tablespace. I use the procedure described in http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10734/osrecov.htm#1007495 to bring the files from a backup directory to the datafiles directory.
The commands I issue are:
ALTER TABLESPACE "USERS" OFFLINE NORMAL;
--copy physical datafiles from backup
ALTER DATABASE RECOVER TABLESPACE "USERS";
ALTER TABLESPACE "USERS" ONLINE;
I was expecting to see data from my old backup files, but it turnes out that OFFLINE NORMAL takes a checkpoint and restores the latest content.
I tried to use OFFLINE IMMEDIATE, but I cannot do it because my database is in NOARCHIVELOG mode.
Is there another simple way to bring data back from those datafiles?

your database is in the no archive log mode right... if the backups contain 1000 records and the current content in the tablespace 100 records...
then the only thing that you can do is if u have a complete database backup that you have taken at the time containing 1000 records.
i think you can use these backups as the database is in the noarchivelog mode. build an auxiliary instance restore all the data files control files and the startup to mount stage create the redo log file and then open the database.
export the table containing the 1000 records and then reimport into the current database..
i think that this procedure might work...

Similar Messages

  • Altering tablespace offline

    I have put tablespace with rollback segments to
    the offline state:
    alter tablespace rollbck offline normal;
    When I tried to view its status:
    select tablespace_name,status from dba_tablespaces;
    ORA-00376 occured, that means file cannot be read at this time, with the file belonging to the offline tablespace.
    So, when the tablespace is offline I can not even
    check its state?

    Query the dba_data_files and check the datafiles(for the rollbck tablespace) if they are offline. If not make them offline and then try out your statement
    select tablespace_name,status from dba_tablespaces;

  • Sessions getting created after tablespace is offline

    Hi all
    I am facing a situation where if I make SYSAUX tablespace offline, still session count keeps on increasing.
    Is that something expected?
    Thanks

    Thank you for your help.
    These are steps that can be done to reproduce the issue in Enterprise Edition
    SQL> select username,count(*) from v$session group by username;
    USERNAME COUNT(*)
    19
    SYSMAN 35
    DBSNMP 3
    SYS 1
    SQL> alter tablespace MGMT_TABLESPACE offline;
    Tablespace altered.
    Wait for some time
    Re run the query..
    SQL> select username,count(*) from v$session group by username;
    USERNAME COUNT(*)
    19
    SYSMAN 66
    DBSNMP 3
    SYS 1
    Hope it makes the issue clear.
    Thank you for your help.

  • ORA-01630: max # extents (2) reached in temp segment in tablespace USERS

    Hi all,
    I got the error when I created CLUSTER
    ORA-01630: max # extents (2) reached in temp segment in tablespace USERS
    CREATE CLUSTER trial_cluster (trialno NUMBER(5,0))
    PCTUSED 80
    PCTFREE 5
    TABLESPACE users
    STORAGE (INITIAL 250K NEXT 50K
    MINEXTENTS 1 MAXEXTENTS 2
    PCTINCREASE 0)
    HASH IS trialno HASHKEYS 150;
    And I increased maxextents to 20480
    alter tablespace users default storage(MAXEXTENTS 20480)
    same error happens.

    Here is one example from Metalink note:
    create tablespace dropme datafile 'dropme.dbf' size 200m
    extent management dictionary
    default storage (initial 100k next 100k maxextents unlimited pctincrease 0);
    SQL> create index myind on mytab (object_name)
    2 storage ( initial 16k next 16k maxextents 3 pctincrease 0)
    3 tablespace dropme;
    ERROR at line 1:
    ORA-01630: max # extents (3) reached in temp segment in tablespace DROPME

  • Dynamic alter tablespace statement to add datafiles

    Hi Gurus,
    I need a PL/SQL stored procedure which will accept a datafile name as parameter and dynamically create and execute "alter tablespace" command to add this passed datafile dynamically.
    Thanks
    Amitava.

    See this demo : 11.2.0.1 Windows
    Before running this demo, I logged into SYS account and said :
    grant create tablespace to scott;
    grant select on dba_tablespaces to scott;
    grant select on dba_data_files to scott;
    grant alter tablespace to scott;
    even scott user is having DBA role. Then I login as scott user and :
    set serveroutput on;
    create or replace procedure create_tbs(tbs_name in varchar2, filename in varchar2) as
    rt dba_tablespaces%rowtype;
    str_tbs varchar2(500);
    v_tbs varchar2(100);
    begin
    str_tbs := 'create tablespace ' || tbs_name || ' datafile '''||filename|| ''' size 1m' ;
    dbms_output.put_line(str_tbs);
    select * into rt from dba_tablespaces where tablespace_name=upper(tbs_name);
    dbms_output.put_line('tablespace exists');
    exception
    when no_data_found then
    execute immediate str_tbs;
    dbms_output.put_line('tablespace was created');
    end;
    select tablespace_name from dba_tablespaces;
    TABLESPACE_NAME
    SYSTEM
    SYSAUX
    UNDOTBS1
    TEMP
    USERS
    EXAMPLE
    PERFSTAT
    7 rows selected.
    SQL> exec create_tbs('TESTTBS','c:\data\test.dbf');
    create tablespace TESTTBS datafile 'c:\data\test.dbf' size 1m
    tablespace was created
    PL/SQL procedure successfully completed.
    SQL> exec create_tbs('SYSAUX','c:\data\test.dbf');
    create tablespace SYSAUX datafile 'c:\data\test.dbf' size 1m
    tablespace exists
    PL/SQL procedure successfully completed.
    SQL> drop tablespace testtbs including contents and datafiles;
    Tablespace dropped.
    SQL>Now I am going to create add datafile procedure, which is your question :
    column file_name for a50;
    column tablespace_name for a20;
    select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    6 rows selected.
    create or replace procedure alter_tbs(tbs_name in varchar2, filename in varchar2) as
    rt dba_data_files%rowtype;
    str_tbs varchar2(500);
    v_tbs varchar2(100);
    begin
    str_tbs := 'alter tablespace ' || tbs_name || ' add datafile '''||filename|| ''' size 10m' ;
    dbms_output.put_line(str_tbs);
    select * into rt from dba_data_files where tablespace_name=upper(tbs_name) and file_name=upper(filename);
    dbms_output.put_line('Datafile already exists.');
    exception
    when no_data_found then
    execute immediate str_tbs;
    dbms_output.put_line('Datafile added.');
    end;
    SQL> exec alter_tbs('users','E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF');
    alter tablespace users add datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF' size 10m
    Datafile added.
    PL/SQL procedure successfully completed.
    SQL> column file_name for a50;
    SQL> column tablespace_name for a20;
    SQL> select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF        USERS
    7 rows selected.
    SQL> alter tablespace users drop datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF';
    Tablespace altered.
    SQL> select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    6 rows selected.
    SQL>Similar thread : Create a procedure to dynamically add a tablespace
    Regards
    Girish Sharma

  • Informations about  'alter tablespace ... coalesce'

    Hi,
    I'm quite new relatively to the DBA functions. I have an Oracle 8i database on a RedHat Linux server.
    I've examined my tablespaces and I found that many of my tablespaces have the pctincrease=0. In this case the process SMON don't join the adjacent free extents so I have a lot of free extents but only few of them are coalesced.
    I thought to coalesce them with the command 'alter tablespace nametablespace coalesce', but I don't know very much this command. I'd like to know more informations about it, above all if I can launch it when my users are working on the database or if it's better to stop the listener and to do a backup before to launch it (among the tablespace that I need to coalesce I have also the Temp tablespace).
    In other words: is the alter tablespace coalesce an harmless command or I need to take some precutions ? And Where I can find more informations about this command ?
    Thanks
    Marco

    You can find more information about the command by reading the manual.
    Coalescing tablespaces is a relatively harmless command. You can run it while users are on the system. They might experience a momentary slowdown, but probably not. All the command does is delete and update entries in an Oracle internal table (FET$ if anyone cares). Coalesce will do nothing if there are no adjacent blocks of free space to coalesce.
    You do not want to coalesce the freespace in your temp tablespace. Oracle manages this internally, and it is more efficient to have a lot of fragments for temp. It saves a lot of recursive sql when a new extent is needed for a sort.
    In the other tablespaces, if the blocks of free space are relatively large, then coalescing will not really gain anything. If your fragments are small, and your segments are frequently allocating new extents (which in itself is a problem), then you may gain a little performance by manually coalescing the tablespace. However, Oracle will coalesce free space if required to get enough space to allocate a new extent.
    If you want to see if coalescing will do anything, you can use:
    SELECT tablespace_name,file_id,block_id,block_id + blocks next_free
    FROM dba_free_space
    ORDER BY 1,2,3Then check if next_free in the previous row is the same as block_id in the current row.
    TTFN
    John

  • Alter tablespace RW on standby database

    I work with Oracle8i for Solaris.
    I've created a stanby database which is opened in read only.
    Now, I need to use a temporary tablespace, so
    I've tried :
    "alter tablespace temp nologging read write;"
    But, oracle answer me an ORA-16000 error (database open for read-only access).
    So :
    1) Is it possible to use a temporary tablespace in standby mode ?
    2) How.
    Thanks,
    Philippe
    null

    Hello,
    Since the table sizes is about 100GB , it takes time to move and rebuild the indexes and the end user application doesnot work if any of the index is unusable or not present.I think it will generate a lot of Archived logs, so it will be very heavy to manage and apply to your Standby.
    If it's possible, it will be faster to put your Primary database in NOARCHIVELOG mode then, you make the Move and Rebuild.
    Afterwards, you put again the Primary in ARCHIVELOG mode and take a good BACKUP of it.
    Later, when nobody work on Standby, you recreate it.
    Hope this help.
    Best regards,
    Jean-Valentin

  • ALTER TABLESPACE X RENAME TO Y

    Hi all!
    I want to know if i can apply an "alter tablespace rename to" sentence without stop the normal activity off the database or it's necessary stop the users access to the affected tablespace.
    Thanks folks!!
    Jordi

    Actually there should be no issues with performance as
    When you rename a tablespace the database updates all references to the tablespace name in the data dictionary, control file, and (online) datafile headers. The database does not change the tablespace ID so if this tablespace were, for example, the default tablespace for a user, then the renamed tablespace would show as the default tablespace for the user in the DBA_USERS view.
    so there are no inserts or physical data move going on. Just all references are updated.

  • Alter tablespace command problem (sql statement))

    Hello,
    I have a table space named t_space2.
    I wanna add a datafile for this tablespace so I wrote on sql the following:
    Alter tablespace t_space2
    add datafile 'D:\DATA\cust.dat'
    size 30 M;
    it gives me the following message:
    table space t_space2 doesn't exist!!!
    the tablespace exsits on dba_tablespaces.
    Thank u in advance
    null

    Hi,
    the reason may be that one:
    You created the tablespace with a command like that:
    CREATE TABLESPACE "goofy"
    DATAFILE 'E:\ORADB8I\ORADATA\WARPING\GOOFY_01.dbf' SIZE 5M REUSE
    DEFAULT STORAGE ( INITIAL 80K NEXT 80K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 1 )Using the quotes, You've indicated to the DB to use the name exaclty as written, so in lower cases.
    Because of that, every time You need to refere to the tablespace, but the same is for tables or column names, Youve to use the name "goofy" intead of goofy or GOOFY.
    This is used to permit to the user, if it is necessary to the application, to use a field name that may be:
    "Total Amount Field"
    I believe that this is the rela reason.
    Bye Max
    null

  • Alter tablespace add datafile taking too much time

    Hi All,
    DB Version :10.2.0.1
    OS Version: Windows Server 2003 32 Bit
    When i am trying to add datafile into tablespace it takes lot of time approx 8 hours.but earlier it take approx 40 to 60 mins
    When i check Alert log file i got the message:
    ORA-604 signalled during: alter tablespace crbt add datafile
    I check there is sufficent space in Disk as i need to add Datafile of 30G.
    Syntax i am using is
    ALTER TABLESPACE TEST
    ADD DATAFILE 'C:\TEST02.DBF' SIZE 30G
    Can anyone tell me exactly the reason for the same
    Thanks in advance

    Hi Aman,
    The space is added sometime but most of the time i am getting this error
    SQL> ALTER TABLESPACE IN_OCT2011
    2 ADD DATAFILE 'E:\CAT\IN_OCT04.DBF' SIZE 30G REUSE;
    ALTER TABLESPACE IN_OCT2011
    ERROR at line 1:
    ORA-19502: write error on file "E:\CAT\IN_OCT04.DBF", blockno 11008
    (blocksize=8192)
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process
    has locked a portion of the file.
    Kindly help over the same
    Edited by: Vikas Kohli on Nov 5, 2011 8:38 PM

  • Alter tablespace sa online;

    Dear Everyone,
    SQL> alter tablespace sa online;
    alter tablespace sa online
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'
    Can anyone tell me what is the problem here
    SQL> recover datafile  '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';
    ORA-00279: change 1859444 generated at 06/17/2013 02:57:17 needed for thread 1
    ORA-00289: suggestion :
    /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-00280: change 1859444 for thread 1 is in sequence #35
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Can Anyone please help me on this.
    Thanks
    Gajanan

    Gajananh999 wrote:
    Dear Everyone,
    SQL> alter tablespace sa online;
    alter tablespace sa online
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'
    Can anyone tell me what is the problem here
    SQL> recover datafile  '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';
    ORA-00279: change 1859444 generated at 06/17/2013 02:57:17 needed for thread 1
    ORA-00289: suggestion :
    /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-00280: change 1859444 for thread 1 is in sequence #35
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Can Anyone please help me on this.
    Thanks
    Gajanan
    Why was tablespace SA offline in the first place?
    What did you do with /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc that the recovery could not find it?
    What version (to 4 decimals) and edition (Enterprise, Standard, Standard One) is your database?

  • How to alter tablespace add in pdb from cdb root

    Hi Experts,
    Is there a way to run the "alter tablespace xx add tempfile ..." command in root cdb while the tablespace xx belongs to a pdb. Is it possible to do it without login or change session to pdb? Thanks.

    Krishna-Oracle wrote:
    You have to login into particular PDB using alter session set container command and then make changes.
    You are confusing logging to PDB with setting PDB as current container. These are two completely different actions. Create common user:
    SQL> connect /@sol12 as sysdba
    Connected.
    SQL> create user c##ommon identified by common container = all;
    User created.
    SQL> grant create session to c##ommon container = all;
    Grant succeeded.
    SQL> grant set container to c##ommon container = all;
    Grant succeeded.
    Create after login trigger for the common user in a PDB:
    SQL> connect /@pdb1sol12 as sysdba
    Connected.
    SQL> create or replace
      2    trigger c##ommon_logon_trigger
      3      after logon
      4      on c##ommon.schema
      5      begin
      6          raise_application_error(-20500,'You are not allowed logging to this PDB.');
      7  end;
      8  /
    Trigger created.
    SQL>
    Now I will login as c##ommon to CDB and with set container to PDB:
    SQL> connect c##ommon@sol12
    Enter password: ******
    Connected.
    SQL> alter session set container = pdb1sol12;
    Session altered.
    SQL>
    As you can see, AFTER LOGON trigger wasn't executed. And now I will try logging to PDB:
    SQL> connect c##ommon@pdb1sol12
    Enter password: ******
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20500: You are not allowed logging to this PDB.
    ORA-06512: at line 2
    Warning: You are no longer connected to ORACLE.
    SQL>
    Now you see SET CONTAINER != LOGIN.
    SY.

  • Question about ALTER TABLESPACE add/drop datafile

    Good afternoon,
    As an exercise, I created a tablespace STORETABS and added a datafile to it using the command:
    SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;This step succeeded. A new file was created in the root of e: as expected.
    Following that command, I issued:
    SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
    Tablespace altered.The command succeeded. However, the file *'e:/storetabs3.dbf'* was not removed. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I get the impression that removing the O/S file itself is something that always needs to be done manually.
    The question: Am I correct that there is no option to cause the "alter tablespace <tablespace> drop datafile <datafilename>" to delete the O/S file ? In other words, must the O/S file always be manually deleted as a separate step ?
    Thank you for your help,
    John.

    I believe in windows directory paths used backslash and not forward slash.
    You can argue why oracle does not give error, either while creating or while dropping ;)
    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
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select tablespace_name, file_name from dba_data_files ;
    TABLESPACE_NAME
    FILE_NAME
    USERS
    /u01/app/oracle/oradata/orcl/users01.dbf
    UNDOTBS1
    /u01/app/oracle/oradata/orcl/undotbs01.dbf
    SYSAUX
    /u01/app/oracle/oradata/orcl/sysaux01.dbf
    SYSTEM
    /u01/app/oracle/oradata/orcl/system01.dbf
    EXAMPLE
    /u01/app/oracle/oradata/orcl/example01.dbf
    SCOTT_TBS
    /home/oracle/scott_f1.dat
    6 rows selected.
    SQL> !ls -l scott_f1.dat   
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    SQL> alter tablespace scott_tbs add datafile '/home/oracle/scott_f2.dat' size 10M ;
    Tablespace altered.
    SQL> !ls -l scott_*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    -rw-r----- 1 oracle oinstall  10493952 Sep 11 21:18 scott_f2.dat
    SQL> alter tablespace scott_tbs drop datafile '/home/oracle/scott_f2.dat' ;
    Tablespace altered.
    SQL> !ls -l scott*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat

  • Can you really delete tablespaces in offline/recovery 10gR2

    Guru's,
    I just migrated my 9.2.0.6 to 10.2.0.2 and in the process of moving my datafiles I messed up one of the names. I added the right datafile to the tablespace and the database started no problem. Now I have an extra datafile on the tablespace identified as offline needing recovery. I read that in 10gR2 you can delete datafiles from tablespaces so after mounting the database I ran -
    SQL> alter database datafile '/data/ordata/prod/.dbf' offline drop;
    Database altered.
    SQL> alter database open;
    Database altered.
    When I select name from v$datafile it's still there. Am I missing something?
    Thanks,
    Kirk

    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#i1006556
    You need to make the datafile online.
    Restrictions for Dropping Datafiles
    The following are restrictions for dropping datafiles and tempfiles:
    The database must be open.
    If a datafile is not empty, it cannot be dropped.
    If you must remove a datafile that is not empty and that cannot be made empty by dropping schema objects, you must drop the tablespace that contains the datafile.
    You cannot drop the first or only datafile in a tablespace.
    This means that DROP DATAFILE cannot be used with a bigfile tablespace.
    You cannot drop datafiles in a read-only tablespace.
    You cannot drop datafiles in the SYSTEM tablespace.
    If a datafile in a locally managed tablespace is offline, it cannot be dropped.

  • Oracle Tablespace (USERS) is increasing drastically

    Hi,
    I am using Oracle 8.1.7 Enterprise Edition. Recently, I moved my oracle database from one server another server. Database is working fine on new servers. After 1 month I found one of the Tablespace USERS is keep on increasing drastically and it full the tablespace in 2 days. I increase more data files to support and keep database running. I already added 12 database files and tablespace already at 93% full and size of the tablespace is 43GB. Previously it is only 4 GB and only used 2 data files.
    Even I done the reindex and stop the archive log and redo log.
    Please help to find out what causing this problem and how to fix it.

    Hi,
    plz first find out to see that no general users are granted powerful roles such as DBA. the follows the query
    select grantee from dba_role_privs
    where granted_role='dba'
    and grantee not in ('SYS','SYSTEM');
    and also check to see if any user accounts have been granted sensitive privileges or roles that provide them with the potential to cause serious damage to the database.
    select grantee, privilege, admin_option
    from dba_sys_privs
    where (privilege like '%ANY%' or privilege like '%DROP%' or privilege in ('ALTER SYSTEM', ALTER TABLESPACE','BECOME USER','UNLIMITED TABLESPACE'))
    and grantee not in ('SYS','SYSTEM')
    and grantee not in (select role from dba_roles
    union all
    select grantee, privilege admin_option
    from dba_sys_privs
    where (privilege like '%ANY%' or privilege like '%DROP%' or privilege in ('ALTER SYSTEM', ALTER TABLESPACE','BECOME USER','UNLIMITED TABLESPACE'))
    and grantee not in ('SYS','SYSTEM')
    and grantee in (select role from dba_roles where role not in ('DBA','AQ_ADMINISTRATOR_ROLE',''IMP_FULL_DATABASE','SNMPAGENT','OEM_MONITOR','EXP_FULL_DATABASE'));
    REGRADS...........................

Maybe you are looking for

  • Var. Exit code for Fiscper of Current Fiscal Year

    Hi Guys, I need to create a variable exit to calculate the Current Fiscal Period of Current Fiscal Year. (STrange requirement) Can anyone please help me with the sample code? Regards

  • "Contacts" icon on the dock

    I noticed that the iPod Touch has a "Contacts" icon on the dock. Can I get that on my iPhone, so I don't have to go to the phone first before accessing my contacts list?

  • Abap oo uing object indide method

    Hi, Do you know how to call a method of some object inside method of different object which takes reference to this first object. class c1 definition. public section. methods m1. endclass. class c1 implementation. method m1.    write 'method m1'. end

  • Spotlight still can't find files that are right in front of me

    Sigh. I'm noticing that Spotlight still cant find files correctly. Maybe I'm the stupid one here, but when I do a search on "This Mac" for a "File Name", and the "Kind" is set to "Folders", and I set the word "Wonder" as the search parameter, how com

  • XI SAP Courses in UK

    Guyz, Could someone pls let me know the list of courses to be done for one to become a 'Development Consultant' in XI in UK pls? Thanks