When creating a tablespace why should we enable LOGGING when a database is already on ARCHIVE LOG mode

Question :
When creating a tablespace why should we enable LOGGING when a database is already on ARCHIVE LOG mode ?
Example:
Create Tablespace
CREATE SMALLFILE TABLESPACE "TEST_DATA"
LOGGING
DATAFILE '+DG_TEST_DATA_01(DATAFILE)' SIZE 10G
AUTOEXTEND ON NEXT  500K MAXSIZE 31000M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
LOGGING: Generate redo logs for creation of tables, indexes and  partitions, and for subsequent inserts. Recoverable
Are they not logged and not recoverable if we do not enable LOGGING? What is that ARCHIVELOG mode does?

What is that ARCHIVELOG Mode Does?
Whenever your database is in archive log mode , Oracle will backup the redo log files in the form of Archives so that we can recover the database to the consistent state in case of any failure.
Archive logging is essential for production databases where the loss of a transaction might be fatal.
Why Logging?
Logging is safest method to ensure that all the changes made at the tablespace will be captured and available for recovery in the redo logs.
It is just the level at which we defines:
Force Logging at DB level
Logging at Tablespace Level
Logging at schema Level
Before the existence of FORCE LOGGING, Oracle provided logging and nologging options. These two options have higher precedence at the schema object level than the tablespace level; therefore, it was possible to override the logging settings at the tablespace level with nologging setting at schema object level.

Similar Messages

  • When creating a table why should we give promary key

    when creating a table why should we give promary key

    Hi Rambabu,
    Primary key is needed so as to avoid duplicate entries and ensure that there are unique entries in the table.
    For some applications, it is useful to uniquely identify the rows in a table by one or more columns so that you can process them in a specified sequence, for example. You can do this by assigning a “primary key.” The column names that are to create the table key are represented by the keywords PRIMARY KEY. The input values of the key columns defined in this way must not be a NULL value.
    You can use the primary key to insert rows in a table in the same way as you insert rows in a base table when no primary key is defined. However, the system outputs an error message if you attempt to insert an existing value into the primary key column a second time, since the uniqueness of the column is ensured by defining the primary key.
    A primary key can consist of multiple columns. However, it is unusual for a key to be constructed from more than five columns, since this makes it difficult for users to enter unique values. The arrangement of the columns behind the keywords PRIMARY KEY defines the key sequence.
    Regards,
    Sekhar

  • Why should be install CI before Database Instance

    Hi friends,
    <b>Why should be install Central Instance before Database Instance??</b>

    Hi
    At first, Database Instance Installation doesnot mean that we are installing the database software. Aa we know that Database software must be installed first before starting SAP installations.
    In SAP Database instance installation, the required Database schema is created for the SAP Central Instance we have installed first and all the configurations between SAP and Database are done at this process.
    If we try to intall the DB Instance before CI then it would give error because for DB CI is prerequisite.
    Technically, whole of the file system have to be configured before schema creation from which SAP would fetch the data and informations.
    Hope this would help you in clarifying some doubts.
    Thanks

  • Taking the datafile offline when the database is in NOARCHIVELOG mode

    My question is when the database is in No Archive log mode i'm not able to take the datafile offline.
    When i tried in my computer i have noticed fallowing.
    case1:
    SYS>alter database datafile 5 offline;
    ERROR at line1;
    ORA-01145:offline immediate disallowed unless media recovery enabled.
    case 2:
    SYS>alter database datafile 5 offline immediate;
    ERROR at line 1;
    ORA-00933:SQL command not properly ended
    case3:
    I have tried the command alter database datafile 6 offline drop; (in NOARCHIVELOG mode) and it is showing the same effect as alter database datafile 6 offline; ( in ARCHIVELOG mode).
    *In the NOARCHIVELOG mode are we really dropping the datafile to take the datafile offline? Will you please tell me the effect of keyword drop.

    JohnWatson wrote:
    You've marked your question answered - was that a mistake?
    The answer is that you cannot directly take a datafile offline in noarchivelog mode. You must take the tablespace offline:
    Hmm, are you certain about that? Perhaps I'm missing something.
    SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
       FILE_ID FILE_NAME                                          ONLINE_ STATUS
             4 /u01/app/oracle/oradata/TEST/users01.dbf           ONLINE  AVAILABLE
    SQL> select log_mode from v$database;
    LOG_MODE
    NOARCHIVELOG
    SQL> alter database datafile 4 offline drop;
    Database altered.
    SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
       FILE_ID FILE_NAME                                          ONLINE_ STATUS
             4 /u01/app/oracle/oradata/TEST/users01.dbf           RECOVER AVAILABLE
    SQL>  ALTER SYSTEM FLUSH BUFFER_CACHE;  <-- may not have been necessary
    System altered.
    SQL> select count(*) from scott.emp;
    select count(*) from scott.emp
    ERROR at line 1:
    ORA-00376: file 4 cannot be read at this time
    ORA-01110: data file 4: '/u01/app/oracle/oradata/TEST/users01.dbf'
    SQL> recover datafile 4;
    Media recovery complete.
    SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
       FILE_ID FILE_NAME                                          ONLINE_ STATUS
             4 /u01/app/oracle/oradata/TEST/users01.dbf           OFFLINE AVAILABLE
    SQL> alter database datafile 4 online;
    Database altered.
    SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
       FILE_ID FILE_NAME                                          ONLINE_ STATUS
             4 /u01/app/oracle/oradata/TEST/users01.dbf           ONLINE  AVAILABLE
    SQL> select count(*) from scott.emp;
      COUNT(*)
            14
    Also, please see the following link from the manual which discusses altering data file availability in noarchivelog mode.
    Altering Datafile Availability

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • I am from Bangladesh. I can't log in with my gmail Apple ID. When I put in the mail and password, and press sign in, it says it has to review on iTunes. Then I am directed to opening a new account. But why should I , since I have one. Plz help :(

    I am from Bangladesh. I can't log in with my gmail Apple ID. When I put in the mail and password, and press sign in, it says it has to review on iTunes. Then I am directed to opening a new account. But why should I , since I have one. Plz help

    Hi Ishrak,
    I apologize, I'm a bit unclear on exactly what you are trying to log into with your Apple ID, or what exactly you are seeing (alert message, directions, etc) when you try to do so. If you continue to have issues with your Apple ID, you may find one or more of the articles linked from the following page helpful:
    Apple ID - Apple Support
    Regards,
    - Brenden

  • When creating a new DPS should I use sizes offered by InDesign or the display size of the device?

    Hello all,
    When creating a new DPS, should I use the sizes offered by InDesign or the display size of the device?  I ran into this question when I was looking up the sizes of different devices and found that iPhone 5s, iPhone5c, and iPhone4s sizes differ than the defauly dimensions offered by InDesign. 
    Also, should I worry about the ppi resolution?  With iPhone, they all seem to be 326ppi but when dealing with other devices is this something that I should take into consideration?  Ideally, I could be creating DPS apps for all devices offered in the Digital Publishing drop down in InDesign (iPhone, iPad, Kindle Fire/Nook, and Android).
    Thank you for any help you can provide.
    By the way, if it helps I am using InDesign CC.

    Using 1024x768 and creating PDF articles will get you OK with both iPad resolutions, and, as Bob L. says, quite decent "one size fits all" result for all other devices.

  • When I try to save a new file from numbers, I'm given the error of it can't create a file. why would that be?

    when I try to save a new file from numbers, I'm given the error of it can't create a file. why would that be?

    Try using /Applications/Utilities/Disk Utility to repair file permissions.
    Bob

  • When we create Transfer order it should print by printer automatically

    Dear Sir,
              I wanted to print Transfer order automatically when we create Transfer order it should print by printer.
              No need to go LT31 & generate Spool & then print.
              Please provide config setting ASAP.
    Regards
    Manoj Chaudhary

    Hi Manoj,
    Goto SPRO-IMG-LE-WM-activities-define print control .
    There you will find all settings for defining spool code(tick immediate printing), printer,print code and the repective assignments and control parameters.
    -rahul

  • Why should we create Product.......

    Hi experts,
    Why should we have to create Product? what is the use?
    In IR we have to Import SoftwareComponent then in whole senario we dont use it then why should we create it........
    what is the use of version?
    usefull answer will be rewarded.
    Regards,
    Phani

    HI,
    The classes of the SAP schema, the software components and their versions, and the software products and their versions are the basis for the component information
    Product: Represents a collection of all versions of a product. A product is a unit that can be delivered, is visible to the customer, and that is installable and renewable. In an SAP environment, a product corresponds to an SAP technical component.
    ·        Product Version: Represents a particular version of a product.
    ·        Software Component: Represents a collection of all versions of a software component. Software components represent the reusable modules of a product. They can be upgraded or have patches installed.
    ·        Software Component Version: Represents a particular version of a software component.
    ·        Software Feature: Represents a particular aspect of the product functions. It is a logical link between Product Version and Software Component Version
    http://help.sap.com/saphelp_nw04/helpdata/de/29/17647d028113439108ce1161263b6e/content.htm
    Regards
    Chilla

  • Why should we select all key fields when using for all entries

    Hi,
    Why should we select all key fields in our select query when using for all entries statement?
    I read about for all entries but this point was not clear in any post.
    Please explain me
    Regards,
    Subhashini

    Dear Subhasini,
    It is because FOR ALL ENTRIES deletes the duplicate entries before populating the target internal table.
    Please do an F1 on FOR ALL ENTRIES & read the SAP documentation.
    I mean how duplicate entries will not get deleted when we use this?
    Quite simple, if you select  all key fields then each entry will be unique & there will not be any duplicate entries to delete !!
    BR,
    Suhas
    Edited by: Suhas Saha on Oct 16, 2009 9:41 AM

  • Why should I download LION when it seems to have been down rated by many. See 1* and 2* reviews

    why should I download LION when it seems to have been down rated by many. See 1* and 2* reviews

    Don't, then.

  • When radio button is enabled the block should be enable

    I have a 4 radio buttons and a four blocks in a same single canvas , and when ever i enable a radio button the related block should get enable .. pls help me with coidng

    Use the when-radio-changed trigger. There is a RADIO BUTTON VALUE property per radio item. You can place in the trigger...
    IF CONTROL.TEMP_RADIO_BUTTON = 1 THEN
    SET_BLOCK_PROPERTY ('BLOCK1', ENABLED, PROPERTY_TRUE);
    ELSIF...
    END IF;
    Hope this helps...

  • Why should we turn off query cache when alternative UOM solution is used?

    Hi, all, Why should we turn off query cache when alternative UOM solution is used?I found it in "Checklist for Query Performance", but I dont know why.
    Please tell me if u know.
    PS: I also dont know how to turn off the cache, Need your help, thanks!

    hi ,
           I have also some confusion regarding Cache Parameters . What is the importance of cache ,  Should we delete the cache memory time to time for each query ? I have chked it in RSRT but never use the chache monitor function .

  • Why should we overide hashCode method when we overide equals ?

    Why should we overide hashCode method when we overide equals ?

    java.lang.Swapnil wrote:
    Why should we overide hashCode method when we overide equals ?For the purpose of hashing, you need to override both hashcode and equal method. It is because different objects(in most cases) have different hashcode.
    Edited by: Hunky322 on 28.?ub.2009 16:21

Maybe you are looking for

  • FrameMaker has correct fonts, PDFs produced with Acrobat 9 don't.

    We're producing PDFs out of FrameMaker 9 into Acrobat 9, using the Frutiger Next font family. With the exception of a single character format, fonts are coming out correctly embedded in the PDFs. However, in this one case (Frutiger Next Pro Medium),

  • Help, I can not quit safari or shut down my computer since updating to Lion.

    Can some one help? Since updating to Lion, I can not quit Safari or shut down my computer.

  • Burning error when using toast

    i am using leopard 10.5.5 and using toast 9.0.2 with the hd plugin. i am getting an error when trying to burn a dvd, i have created a file in an animation program, taken it into final cut pro, edited what i wanted, then exported it as 1080i50. the fi

  • Mac cannot detect external hard disk

    My mac is running oin OSX 10.8.5. It cannot detect a hard disk that was originally detected before. This happened after I took out the hard disk a previous I used it without ejecting it properly. thanks!

  • Unknown error on iDevices after AppleTV on network

    Hi all, So, this is a wierd one. I've scoured the internets and can't find a single word about it so I thought I'd ask here. I picked up an AppleTV last night. Love it....messed around with it, played with Air Play, watched a movie - great stuff. Thi