Recovery with some tablespaces/datafiles excluded

Hi,
I want to restore/recover my db on a new host with some tablespaces/datafiles excluded...
I have backups on tape but don't have enough disk space on my new host to restore database fully, is it possible I exclude/skip some tablespaces/datafiles?
Thanks

thanks tychos,
I run the sql you told brefore restore database but It seems It's going to restore datafiles that I don't need again... I don't have enough space to restore all datafiles. My rman script looks like this:
run {
ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS='...';
SET NEWNAME FOR DATAFILE 1 TO '+DATA/oradata/test/system01.dbf';
SET NEWNAME FOR DATAFILE 2 TO '+DATA/oradata/test/undotbs01.dbf';
SET NEWNAME FOR DATAFILE 3 TO '+DATA/oradata/test/cwmlite01.dbf';
#SET NEWNAME FOR DATAFILE 4 TO '+DATA/oradata/test/drsys01.dbf';
#SET NEWNAME FOR DATAFILE 5 TO '+DATA/oradata/test/example01.dbf';
#SET NEWNAME FOR DATAFILE 6 TO '+DATA/oradata/test/indx01.dbf';
sql 'alter database datafile 4,5,6 offline drop';
SET UNTIL SCN 123456;
RESTORE DATABASE;
SWITCH DATAFILE ALL;
RECOVER DATABASE;
}

Similar Messages

  • RMAN duplicate target database for standby from active fails to create newname for system tablespace/datafile

    When executing 'duplicate target database for standby from active'  the system tablespace/datafile (datafile 1)  is not cloned.  All other datafiles clone successfully.  The RMAN process aborts with the following errors while attempting to clone the system tablespace/datafile.
    ORA-19558: error de-allocating device
    ORA-19557: device error, device type: DISK, device name:
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-03135: connection lost contact
    Here are the details:
    Primary is 11.2.0.2 RAC database  on an Exadata platform
    Standby is 11.2.0.2 Single Instance database (same patch level as primary) on a Red Hat Linux box
    This is an ASM to ASM duplication.
    This is not unique to this database.  We tried another database and go the same behavior - all datafiles clone successfully with the exception of the system tablespace/datafile.
    We have traced the RMAN execution and it seems to fail when it is trying to assign a NEWNAME to the system tablespace/datafile.
    We even issued an explicit SET NEWNAME command but RMAN ignored it.
    We also shutdown the primary and started is up in mount mode thinking that something had ahold of the System Tablespace/datafile.
    We also opened up the network firewall to allow permit any,any traffic.
    We increased the max_server_processes
    and added TCP.NODELAY=yes to the sqlnet.ora file.
    There seems to be some artifact present in our Primary System tablespace/data file that is preventing it form being cloned.
    checked all alert files grid, asm,  and dbhome - no abnormal messages.
    We are in the process of restoring the database from a backup but we would prefer to get this working using the 'Active Database' methodology

    I successfully created the standby database using RMAN backup and recovery.
    I started the managed recovery.  Archive logs are being sent from the primary to the standby ( I can see them in ASM), but the standby is not applying them.
    I get the following messages in the standby alert log...
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:19:58 2013
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Tue Nov 26 16:20:01 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:11 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:22 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:32 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    I don't see any MRP processes:
    select process,
    status,
        thread#,
        sequence#,
       block#,
      blocks
      7     from v$managed_standby;
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    ARCH      CLOSING               2     154363          1        132
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    RFS       IDLE                  0          0          0          0
    RFS       IDLE                  1     145418        121          1
    RFS       IDLE                  0          0          0          0
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    RFS       IDLE                  0          0          0          0
    12 rows selected.
    SQL>  SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG;
       THREAD#  SEQUENCE# APPLIED
             2     154356 NO
             2     154357 NO
             1     145411 NO
             2     154358 NO
             2     154360 NO
             2     154361 NO
             1     145414 NO
             1     145415 NO
             2     154362 NO
             2     154363 NO
             1     145416 NO
    11 rows selected.
    I do have the archive logs that cover sequences 154158-154257
    Crosschecked 38 objects
    Crosschecked 62 objects
    Finished implicit crosscheck backup at 26-NOV-13
    Starting implicit crosscheck copy at 26-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Crosschecked 2 objects
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154377.344.832521989 RECID=29 STAMP=832521990
    validation succeeded for archived log
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154378.346.832521991 RECID=31 STAMP=832521993
    Crosschecked 31 objects

  • Recovery of a lost datafile without backup

    Its the demo for recovery of a lost datafile without backup,but you should have database in archivelog
    in order to make complete recovery,otherwise in noarchivelog mode you may lose some data.Every steps is
    self explainatory so i feel need'nt to add some textual description during demo
    If any findings can be elaborate more please do comments.
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 8 10:35:24 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select name from v$database
      2  /
    NAME
    ORCL
    SQL> create tablespace my_tablespace datafile 'C:\oracle\product\10.1.0\oradata\orcl\my_datafile.dbf' size 500M
      2  /
    Tablespace created.
    SQL> set linesize 1000
    SQL> select * from v$tablespace
      2  /
           TS# NAME                           INC BIG FLA
             0 SYSTEM                         YES NO  YES
             1 UNDOTBS1                       YES NO  YES
             2 SYSAUX                         YES NO  YES
             4 USERS                          YES NO  YES
             3 TEMP                           YES NO  YES
             6 EXAMPLE                        YES NO  YES
             9 MY_TABLESPACE                  YES NO  YES
    7 rows selected.
    SQL> alter user scott default tablespace my_tablespace
      2  /
    User altered.
    SQL> conn scott/tiger@orcl
    Connected.
    SQL> create table my_table as select * from all_objects
      2  /
    Table created.
    SQL> desc my_table
    Name                                                                                                                                                                          
    OWNER                                                                                                                                                                         
    OBJECT_NAME                                                                                                                                                                   
    SUBOBJECT_NAME                                                                                                                                                                
    OBJECT_ID                                                                                                                                                                     
    DATA_OBJECT_ID                                                                                                                                                                
    OBJECT_TYPE                                                                                                                                                                   
    CREATED                                                                                                                                                                       
    LAST_DDL_TIME                                                                                                                                                                 
    TIMESTAMP                                                                                                                                                                     
    STATUS                                                                                                                                                                        
    TEMPORARY                                                                                                                                                                     
    GENERATED                                                                                                                                                                     
    SECONDARY                                                                                                                                                                     
    SQL> conn sys/sys@orcl as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\>cd C:\oracle\product\10.1.0\oradata\orcl
    C:\oracle\product\10.1.0\oradata\orcl>dir *.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:41 AM       157,294,592 EXAMPLE01.DBF
    02/08/2008  10:41 AM       524,296,192 MY_DATAFILE.DBF
    02/08/2008  10:41 AM       283,123,712 SYSAUX01.DBF
    02/08/2008  10:41 AM       482,353,152 SYSTEM01.DBF
    02/07/2008  11:43 PM       104,865,792 TEMP01.DBF
    02/08/2008  10:41 AM        31,465,472 UNDOTBS01.DBF
    02/08/2008  10:41 AM        56,369,152 USERS01.DBF
                   7 File(s)  1,639,768,064 bytes
                   0 Dir(s)  63,114,174,464 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>del my_datafile.dbf
    C:\oracle\product\10.1.0\oradata\orcl>dir *.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:41 AM       157,294,592 EXAMPLE01.DBF
    02/08/2008  10:41 AM       283,123,712 SYSAUX01.DBF
    02/08/2008  10:41 AM       482,353,152 SYSTEM01.DBF
    02/07/2008  11:43 PM       104,865,792 TEMP01.DBF
    02/08/2008  10:41 AM        31,465,472 UNDOTBS01.DBF
    02/08/2008  10:41 AM        56,369,152 USERS01.DBF
                   6 File(s)  1,115,471,872 bytes
                   0 Dir(s)  63,638,204,416 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE.DBF'
    SQL> select * from v$recover_file
      2  /
         FILE# ONLINE  ONLINE_ ERROR                                                                CHANGE# TIME
             6 ONLINE  ONLINE  FILE NOT FOUND                                                             0
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE.DBF'
      2  as 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE01.DBF'
      3  /
    Database altered.
    C:\oracle\product\10.1.0\oradata\orcl>dir my_*.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:53 AM       524,296,192 MY_DATAFILE01.DBF
                   1 File(s)    524,296,192 bytes
                   0 Dir(s)  63,110,365,184 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>
    SQL> recover tablespace my_tablespace
    Media recovery complete.
    SQL> alter database open
      2  /
    Database altered.
    SQL> conn scott/tiger@orcl
    Connected.
    SQL> desc my_table
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> Khurram
    http://oraware.blogspot.com/

    When the create tablespace information is in the current control file and database is in archive log mode,
    SQL>recover datafile 6;
    won't help??

  • RMAN level 0 backup with bigfile tablespaces

    We noticed that our rman backup process for PROD database is not working properly.
      PROD is a 8 TB size database having two bigfile tablespaces each having more than 2 TB datafile.
      PROD is a 11gR1 (11.1.0.7) RAC database with ASM storage.
       We are taking weekly incremental level 0 backup for entire database and level 1 backup every day.
      As per v$session_longops, the approx completion time for the two tablespaces is 5 days.
    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    However, in this case our level 0 backup wont include the two bigfile tablespaces and the daily level 1 backup will not include them.
    Will you pls advise us on how to take backup in this scenario.
    we have only 4TB of LUN allocated for backup and have to keep 7 days of backup on disk.
    Thanks in advance !
    DR

    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    How do you think that the backup will be useful if you exclude some files from level 0 or base backup? You will find difficulties or you can't restore the database in case of disaster.
    Yes you can use section size parameter for paralleled big file tablespace backup.
    Check below for explanation and example.
    Backing Up the Database: Advanced Topics
    http://www.oracle-base.com/articles/11g/rman-enhancements-11gr1.php#multisection_backups
    You can use the below note for your case which will be of help.
    Reducing RMAN backup time for unevenly sized tablespaces « Oracle DBA – A lifelong learning experie…
    Thank you!!

  • Recovery with missing archivelog

    I've got a client whose 10gR2 database has been running with the SYSAUX tablespace marked for "recovery" for 9 months. To properly bring SYSAUX online, they need an archivelog from 9 months ago and it no longer exists.
    They think they are in good shape, since they are in archivelog mode and are taking nightly RMAN backups.
    I contend that they are walking on very thin ice: while they can restore from last night's backup, media recovery is impossible and they risk losing up to 24 hours of data.
    Am I correct? Or is there some way to perform an RMAN "recover" operation that by-passes the SYSAUX tablespace, leaving it offline, but brings all the other datafiles up to date?
    I have performed a test using a sample database and my theory is confirmed. But I would like a reality check in case I am missing something.
    Thanks.

    SYSAUX offline and inaccessible for 9 months, really? As you probably already know, there are a ton of objects that exist in this tablespace and therefore, you are probably not able to use some database features.
    As far as recovery, you could use SKIP TABLESPACE to avoid recovery of this tablespace.

  • Issue with SYSAUX tablespace.

    Without backup and any old archivelog(more then last five days),IN RAC environment we are trying to recover one of datafile of our SYSAUX tablespace which is in RECOVER state.
    sysaux tablespace having two datafile,while making online to second datafile it's asking for last month archivelogs which we dont have And while making online to SYSAUX tablespace it's giving error that one of your database datafile recquire recovery.
    ORA-00279: change 195638767 generated at 08/10/2009 14:17:27 needed for thread 1 while recovering by auto
    recover datafile 42;
    ORA-15173: entry '1_15271_682264878.dbf' does not exist in directory 'csdprod'

    Jaroslaw Bicz wrote:
    Hi
    I'm having some issue with SYSAUX tablespace. it have 36GB Allocated Size but only 2GB used. Is there a way to reuse free space. it is oracle 10.2.0.4 on red hat.
    Regards
    JarekOracle doesn't recommend to use SYSAUX tablespace to store user data on it

  • Recover Database vrs Recover Tablespace & Datafile

    Traditionally when I have been recovering a database either to point of failure or point in time I have issued
    RECOVER DATABASE AUTO;
    (or I have specified the point in time I wish to recover to ).
    I see now in 11gR2 there is also a RECOVER TABLESPACE and a RECOVER DATAFILE command
    Why would you use those instead of the RECOVER DATABASE ? You would have to be pretty sure it is only that tablespace or data file you wanted to apply archive logs to, otherwise would your recovery not risk putting the contents of that tablespace or datafile out of logical sync with the data in other tablespaces ( eg potentially viloating referential integrity etc ) ?
    I am presuming these commands also only apply the contents of archive logs that effect the specified tablespace or datafile ?
    thanks,
    Jim

    If I issue a RECOVER TABLESPACE or RECOVER DATAFILE for a Tablespace or Datafile that is current and does not need recovery, Oracle does nothing to the Tablespace / Datafile. It won't be out of logical sync with the rest of the database.
    >>>
    Can you recover the data file or the tablespace to a point in time before the current time ? If that is the case then surely it is possible that the recovered tablespace could have a table in it that has referential integrity to another table in a different ( unrecovered ) tablespace and that the referential integrity could then be compromised ?
    Jim

  • Can I recover some tablespace(only current tbs) - RMAN

    Hello, I have ang question about RMAN.
    If I have full backup database, and next time database is failed.
    Can I recover especially tablespace current data?
    this below is my step recovery but it's not pass.
    I'm not sure, this are correct or not.
    bash-2.05$ rman target / catalog user/password@rcat
    RMAN> set dbid=1707756540
    RMAN> startup nomount
    +RMAN> run{+
    +2> ALLocate channel ch00 type 'SBT_TAPE';+
    +3> Allocate channel ch01 type 'SBT_TAPE';+
    +4> SEND 'NB_ORA_CLIENT=holtuv1';+
    +5> SEND 'NB_ORA_SERV=holtbk11';+
    +6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
    +7> restore controlfile ;+
    +8> }+
    +RMAN> run{+
    +2> ALLocate channel ch00 type 'SBT_TAPE';+
    +3> Allocate channel ch01 type 'SBT_TAPE';+
    +4> SEND 'NB_ORA_CLIENT=holtuv1';+
    +5> SEND 'NB_ORA_SERV=holtbk11';+
    +6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
    +7> restore database skip tablespace 'PERFSTAT', 'YEAR2009';+
    +8> }+
    RMAN> alter database mount;
    +RMAN> run{+
    +2> ALLocate channel ch00 type 'SBT_TAPE';+
    +3> Allocate channel ch01 type 'SBT_TAPE';+
    +4> SEND 'NB_ORA_CLIENT=holtuv1';+
    +5> SEND 'NB_ORA_SERV=holtbk11';+
    +6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
    +7> recover database skip tablespace 'PERFSTAT', 'YEAR2009';+
    +8> }+
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 06/04/2010 15:30:41
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc'
    ORA-00283: recovery session canceled due to errors
    ORA-16067: activation identifier mismatch in archive log /data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
    any sugess please.
    thank you
    Suradech

    M.Suradech wrote:
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
    any sugess please.
    thank you
    SuradechHi Suradech.This error(ORA-01157,ORA-01110) because in controlfile remain information about of '/data/db01/ORABK/perfstat.dbf'.Due to you restored controlfile from backup.You have to re-create controlfile or you can open database without this datafile.(Also there is YEAR2009' tablespaces datafile).You can try following.
    1.
    sqlplus "/as sysdba"
    alter database datafile '/data/db01/ORABK/perfstat.dbf' offline drop;
    alter database open;or
    2.
    sqlplus "/as sysdba"
    alter database backup controlfile to trace as '/data/ctrl'; --then edit this file and remove  '/data/db01/ORABK/perfstat.dbf' line(also YEAR2009`s datafile)
    shutdown immediate;
    startup nomount;
    @/data/ctrl;
    alter database open resetlogs; also see following metalink note.
    How To Recover Database Where Backup Has Tablespace Excluded [ID 732627.1]
    Ora-01157 When Running Recover Database Skip Forever Tablespace Noredo [ID 561440.1]

  • Restoring a tablespace/datafile to a previous date ?

    Hello everyone ,
    Is it possible to restore a tablespace / datafile to a previous date and not apply changes to it from that date until sysdate ?

    1003954 wrote:
    Hello everyone ,
    Is it possible to restore a tablespace / datafile to a previous date and not apply changes to it from that date until sysdate ?What you are asking about is called a Tablespace Point In Time Recovery (TSPITR). I believe it is possible, but fraught with cautions.
    consider this very real possible situation:
    TablespaceA contains table PURCHASE_ORDERS
    TablespaceB contains table PURCHASE_ORDER_LINE_ITEMS, with a FK back to PURCHASE_ORDERS.
    TablespceC contains indexes on both PURCHASE_ORDERS and PURCHASE_ORDER_LINE_ITEMS.
    Now, you want to restore just tablespaceA back to last week ....

  • Partial Recovery - Skip UNDO Tablespace

    Hi,
    I was performing a partial database recovery using skip tablespace option using RMAN. I was wondering if I can skip undo tablespace.
    I was not able to conclude whether I can do that? If not, why?
    As per my understanding,
    1. Datafiles are restored - If they have any uncommited data, then archive logs which will be applied for media recovery, will have the undo data to perform those roll backward.
    2. While performing media reccovery using archive logs, it will generate it's own undo data.
    Why do we need the stale undo data (generated till datafiles restoration point)?
    Thanks,
    Janak Agrawal

    Soli,
    Thread that you have specified, talks about datafiles which does not have any uncommitted data (As the database was normally shutdown). In this case, we can drop and recreate the undo tablespace.
    But I am talking about a past point-in-time recovery using RMAN, where the datafiles which will be restored may have the uncommitted data. To rollback these uncommited trnasactions, will we have data in next archivelogs, which will be used for media recovery or the data (needed to rollback) will have only in undo tablespace. Let me give you an example.
    At 9 am I want to restore the datbase till 8.15 AM. Full backup is available till 8 AM and then from 8 to 8:15 arvhive logs are available. While doing recovery, datafiles will be restored till 8 AM. If at 8 AM there is some uncommitted data in datafiles, will it require data from undo tablespace to rollback or first archive log after 8 AM w'd take care of roll back? If archive logs can take care of rollback, why can't I skip the undo tablespace while doing recovery?
    Santosh,
    As you mentioned, UNDO data will require for read-consistency. But the same data will be available in archive logs (which will require after datafiles restore) which can generate their own UNDO data.
    Please clarify. I am sorry if I am missing anything here.
    Thanks,
    Janak Agrawal

  • EM for tablespace datafile autoexend issue

    Dear Support,
    I need your advise can i configure tablespace datafile autoextend when reach 85 percent instead of 100 percent. Do you know where can find more information about justification of datafile autoextend only work when reach 100 percent. Hope to hear soon. Thanks

    Autoextend is a 'last escape' measure. You should not use it to let files grow. You should use extents correctly sized. Autoextend is only there to make sure that you don't get immediate problems when your files are full.
    I also have thought about this , So I tried the following:
    I created a tablespace with 3 files, all 3 autoextending and equal in size, locally managed and uniform in extent size (notice the difference between an extent and an extended file!). Extend next and maxsize are also made equal for all files.
    now I created tables in the tablespace (forcing the creation of 1 extent per table to my ts is filled up without having to insert real data). the 1st 3 fit in the tablespace as it was created. When creating the 4th table, it didn't fit any more and the 2nd file got extended (why this one? It looks like an arbitrary decision by Oracle). after that, each second table I created extended the 2nd file (only) of the tablespace. (the reason why this happened after every second table is because oracle extended the file so that it would fit 2 extents, thus 2 new tables of 1 extend).
    My quick conclusion, don't use autoextend, unless for a last resort. You should use correctly sized files, tablespaces and extents. autoextend is only there to make sure you don't have to do 'maintenance in the middle of the night' (free interpretation of Tom Kyte (asktom.com) :) ).
    BTW, if you really want to do (dynamic) striping in Oracle, the only way (I know) is to create multiple tablespaces each on another disk and create a hash or composite partitioned table where each of the hash-partitions are located in a different tablespace. Normal tables are never striped by Oracle! Alternatively you can let the OS stripe 1 datafile over multiple disks. You could also every now and then recreate the tablespace over multiple files so data from a normal table is distributed evenly, but this is quite a hassle.
    I have also had a look though some oracle books and on the net and can't like you find a definitive answer regarding when the Oracle Db makes the decision to add another datafile ?

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • How to CREATE MATERIALIZED VIEW LOG (MV fast refresh) with some JOINS

    Hi @ all,
    i'm trying to create a MATERIALIZED VIEW LOG for a fast refresh of a MATERIALIZED VIEW.
    It works fine with a simple Request in the MATERIALIZED VIEW:
    CREATE MATERIALIZED VIEW MV_ZOTD43_P
    TABLESPACE GDII
    BUILD IMMEDIATE
    REFRESH FORCE AS
    SELECT * FROM ZOTD43_P;
    COMMIT;
    CREATE MATERIALIZED VIEW LOG ON ZOTD43_P
    TABLESPACE "GDII"
    WITH PRIMARY KEY, ROWID, SEQUENCE INCLUDING NEW VALUES;
    call DBMS_MVIEW.REFRESH('MV_ZOTD43_P', 'f');
    But when I use a complex SQL-Request with some JOINS (one of the Table with spatial Data) in the MATERIALIZED VIEW, I get an error:
    CREATE MATERIALIZED VIEW MV_TEST
    TABLESPACE GDII
    BUILD IMMEDIATE
    REFRESH FORCE AS
    SELECT lptd04_p.sst_nr AS sst_nr,
    lptd03_p.aaaa AS aaaa,
    lptd04_geom.geom as geom
    FROM lptd04_p lptd04_p
    JOIN lptd01_p lptd01_p ON lptd01_p.cre_nr = lptd04_p.sst_nr
    JOIN lptd04_geom ON lptd04_geom.sst_nr = lptd04_p.sst_nr
    JOIN lptd03_p lptd03_p ON lptd03_p.lief_nr = lptd04_p.lief_nr;
    COMMIT;
    CREATE MATERIALIZED VIEW LOG ON LPTD04_P
    TABLESPACE "GDII"
    WITH PRIMARY KEY, ROWID, SEQUENCE INCLUDING NEW VALUES;
    call DBMS_MVIEW.REFRESH('MV_TEST', 'f');
    Error report:
    SQL Error: ORA-12004: REFRESH FAST kann für Materialized View "GDI"."MV_GDI_SST_STAMM" nicht benutzt werden
    ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 2255
    ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 2461
    ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 2430
    ORA-06512: in Zeile 1
    12004. 00000 - "REFRESH FAST cannot be used for materialized view \"%s\".\"%s\""
    *Cause:    The materialized view log does not exist or cannot be used. PCT
    refresh is also not enabled on the materialized view
    *Action:   Use just REFRESH, which will reinstantiate the entire table.
    If a materialized view log exists and the form of the materialized
    view allows the use of a materialized view log or PCT refresh is
    possible after a given set of changes, REFRESH FAST will
    be available starting the next time the materialized view is
    refreshed.
    Am I doing something wrong or is it not possible CREATE MATERIALIZED VIEW LOG when the MATERIALIZED VIEW got some JOINS?
    Regards,
    Greq

    Thanks for the link Alessandro ,
    the error seems something to do with the Column-Type SDO_GEOMETRY, so
    i create a new thread in the Spatial Discussion forum:
    FAST REFRESHing of Oracle Materialized Views containing SDO_GEOMETRY column
    Regards,
    Greq

  • Need help with interpreting tablespace usage script

    Hi,
    I have a script to find all the used and free spaces of a datafiles. The script is as below:
    SELECT Substr(df.tablespace_name,1,20) "Tablespace Name",
    Substr(df.file_name,1,40) "File Name",
    Round(df.bytes/1024/1024,2) "Size (M)",
    Round(e.used_bytes/1024/1024,2) "Used (M)",
    Round(f.free_bytes/1024/1024,2) "Free (M)",
    Rpad(' '|| Rpad ('X',Round(e.used_bytes*10/df.bytes,0), 'X'),11,'-') "% Used"
    FROM DBA_DATA_FILES DF,
    (SELECT file_id,
    Sum(Decode(bytes,NULL,0,bytes)) used_bytes
    FROM dba_extents
    GROUP by file_id) E,
    (SELECT Max(bytes) free_bytes,
    file_id
    FROM dba_free_space
    GROUP BY file_id) f
    WHERE e.file_id (+) = df.file_id
    AND df.file_id = f.file_id (+)
    ORDER BY df.tablespace_name,
    df.file_name
    The output displays data for all the datafiles. But when i check the free space, its much lesser than actual free space. Is this has something to do with High Water Mark? All the data is in MB.
    Tablespace             Datafile                                        SIZE           Used        Free
    GNP2000     D:\DATABASE\GNP2005.ORA     6110.8     5646.6     8.95     
    GNP2000     D:\DATABASE\GNP2009.ORA     3500     3357.98     8.95     
    GNP2000     D:\DATABASE\GNP2010.ORA     2000     1999.49     0.06     
    GNP2000     E:\ORANT\DATABASE\GNP2000.ORA     3500     3463.8     8.95     
    GNP2000     E:\ORANT\DATABASE\GNP2002.ORA     3046.88     2976.41     2.21
    Please explain why it displays different data and also how to find actual free space my database has?
    Thank You,

    This is because the script is WRONG.
    This is a lesson for you, if you are on 10g on higher, rather to trust the database control, which has already facilities for this, instead of someone developing a script. At least the Oracle provided material is correct.
    Admittedly, it does require you to read documentation and to find out things on your own.
    This part is WRONG
    SELECT Max(bytes) free_bytes,
    file_id
    FROM dba_free_space
    GROUP BY file_id)
    As an exercise, please try to find out for yourself, what is wrong.
    Please do not state you can not do this, this indicates you will never learn Oracle.
    Sybrand Bakker
    Senior Oracle DBA

  • Migrating a new partition table with transportable tablespace

    I created a partitioned table with 2 partitions (2010 and 2011) and used transportable tablespace to migrate the data over to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move that new partition along with the associated datafile via transportable tablespace or would I have to move all the partitions (2010, 2011, 2012).

    user564785 wrote:
    I created a partitioned table with 2 partitions (2010 and 2011) and used transportable tablespace to migrate the data over to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move that new partition along with the associated datafile via transportable tablespace or would I have to move all the partitions (2010, 2011, 2012).Yes why not.
    1) create a table as CTAS from 2012 in new Tablespace on source
    2) transport the tablespace
    3) Add partition to existing partition table Or exchange partition
    Oracle has also documented this procedure:
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tspaces013.htm#i1007549

Maybe you are looking for

  • Help! my Zen MIcro has gone into recovery mode and wont get out of

    My Micro suddenly just went into Recovery mode and i have tried all the options and have had no sucess with any of them has anyone else had this problem if so did you get out of it !! i need help cause the bus ride home is no fun with out it

  • Java:comp/env namespace is only available from within J2EE component

    HI I am writing a standalone application program to access the bean using jdk1.3.1 and it's giving me the namespace error. I deployed the bean and included the .jar file in CLASSPATH. In the program, I specify the correct namespace to lookup since it

  • IPHONE 5 alarm not working

    So I've been having problems with my iPhones alarm. For instance, this morning, I woke up 10 minutes after my alarm was supposed to go off, it didn't. It also didn't pop up in the screen like it usually does. Help!!

  • Smart talk for business customer ?

    Hi, I'm wondering if you're planning to support smart talk app for business customers in the near future ? Alan

  • Response.getOutputSource - java.lang.IllegalStateException

    Hi all, I try to download a CSV file in JSP. Below is my code : <%       try {            String fileName = "temp.csv";            String fileContent = "something";            response.setContentType("application/csv");            response.setHeader(