What is 'force logging'?

Why we need some ddl not to be wroten to the redo logs? What is the idea? How can we recover the database if some infromation in archivelogs is missed?
Thanks in advance

In theory, yo may wish to allow an application to load data as a "no logging" operation, this can speed up large data loads and reduce the volume of archivelogs produced.
However the major drawbacks are:
if you need to recover the database form a backup any data added using a no logging operation performed after the backup was taken will not be recoverable from the archive logs.
If you are using log shipping/data guard these operations will not get transmitted to the standby server.
If you work in a controlled an disciplined enviroment then it should be possible to repeat any no logging operations after the database is recovered as everyone should be aware of the limitations of loading data in this manner.
If you work anywhere thats like the places I've come accross a more likely situation is after a database recovery someone will want to know why data is missing from the database and how long it will be untill you resolve the problem. Usually I set force logging on and let the users think they have the option to run nologgign operations as it leads to a quieter life in the long run.

Similar Messages

  • Advantage of FORCE LOGGING over NOLOGGING

    Hi,
    Can you please help me on the advantages of using force logging mode with a standby database and the effect of it in indexes etc. Also, it may help if you could also share ideas on difference between the two modes?
    Thanks,
    Jennah

    <i>>>  Can you help me what factors would be sacrificed</i>
    This really depends on your system, in most cases you will not be able to see a difference. However i did a small test:
    - drop index, restart db
    - create index with logging (measure time/redo size)
    - drop index, restart db
    - create index with logging (measure time/redo size)
    Result:
    logging - Elapsed: 00:02:40.68  / Redo size: 800mb
    nologging - Elapsed: 00:02:20.29 / Redo size: 1.5mb
    Here the full test:
    [code]SQL> select a.name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# and a.name = 'redo size';
    NAME                                                                  VALUE
    redo size                                                             28304
    SQL> CREATE UNIQUE INDEX "SAPR3"."CDCLS~0" ON "SAPR3"."CDCLS"
    ("MANDANT", "OBJECTCLAS", "OBJECTID", "CHANGENR", "PAGENO")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "PSAPCLUI" LOGGING;
    Index created.
    Elapsed: 00:02:40.68
    SQL> select a.name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# and a.name = 'redo size';
    NAME                                                                  VALUE
    redo size                                                         834714816
    SQL> select segment_name, bytes/1024/1024 "Size_MB" from dba_segments where segment_name = 'CDCLS~0'
    SEGMENT_NAME            Size_MB
    CDCLS~0                     800
    drop index / db restart here
    SQL> select a.name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# and a.name = 'redo size';
    NAME                                                                  VALUE
    redo size                                                             28992
    SQL> CREATE UNIQUE INDEX "SAPR3"."CDCLS~0" ON "SAPR3"."CDCLS"
    ("MANDANT", "OBJECTCLAS", "OBJECTID", "CHANGENR", "PAGENO")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "PSAPCLUI" NOLOGGING; 
    Index created.
    Elapsed: 00:02:20.29
    SQL> select a.name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# and a.name = 'redo size';
    NAME                                                                  VALUE
    redo size                                                           1520824
    SQL> select segment_name, bytes/1024/1024 "Size_MB" from dba_segments where segment_name = 'CDCLS~0';
    SEGMENT_NAME            Size_MB
    CDCLS~0                     800[/code]

  • Force logging in archivelog mode

    Hi !!!
    What happen if I have "force_logging" parameter set to true when the database is in archivelog mode ?
    Thanks.

    rarain wrote:
    Hi Juamd,
    You should only use this option when it is really required because this option will forcibly generate redo for all Nologging operations that means you might find more archives and you need to setup more space for archive.
    Normally we use this option when we need to replicate data changes from one database to another database like in standby configuration, Golden Gate replication etc. I would suggest you to monitor Redo amount generated after enabling this option and accordingly estimate archive space and backup space for archive.
    Thanks...Ah, don't agree with that at all. You can compromise your recovery if you happen to want to restore to a point-in-time when there was a NOLOGGING operation going on. Fine, if it's an index, but if it happens to be on a table...
    (Yes, been there, done that - with a non-Production database, thankfully)
    This is one of the 'must haves', IMO, for Production - set it at the database-level and it overrides any tablespace or object setting.
    Archivelogs are generated for a reason. If you have a particular operation that really does massively benefit from NOLOGGING and is something you are sure that you simply re-run/re-create yourself, fine. If not, by default, you really should FORCE LOGGING.

  • Ora-02331 error - while trying to force logging

    Hi friends,
    i am trying to configure the physical standby database and i am following this documentation http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm.
    when i am trying to do the force logging i am getting the following error.
    SQL> alter database force logging;
    alter database force logging
    ERROR at line 1:
    ORA-02231: missing or invalid option to ALTER DATABASE
    Can anyone please tell me why it's happening?
    Thanks

    Which database are you doing this on? Supposed to run
    it on the primary. I have only one database i.e primary db and trying to set up physical standby db.
    Plus, which version of Oracle? I
    see what the document link uses, but that doesn't
    mean it is the version you are using.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    PL/SQL Release 9.0.1.1.1 - Production
    CORE 9.0.1.1.1 Production
    TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
    NLSRTL Version 9.0.1.1.1 - Production
    Can you pls guide me the right way to proceed furthur.

  • ALTER DATABSE FORCE LOGGING

    hi,
    while creating standby database why should we start the database in force logging mode? what the use of it? what does it do?
    With Regards
    Boo

    Synchorinization between primary and secondary database is done through archive logs. It would be safe to force primary database to log everything, so that it reflects to secondary database. That is the reason we have to force logging.

  • FORCE LOGGING disabled automatically?

    Hi,
    This is just strange that on a couple of my 11.2.0.3 dataguard environments on Oracle Linux 6 (64 bit) was found FORCE LOGGING disabled and I just enabled them. Now DBA team remembers correctly that FORCE LOGGING is always enabled while configuring the dataguard. I would like to have opinion from someone if he/she has this kind of scenario with him/her. Is there any way that FORCE LOGGING could get disabled automatically? We never re-created controlfile on primary or standby, but, we have switchover/failover scenarios which are not supposed to disturb FORCE LOGGING?
    Or did we really forget to enable FORCE LOGGING?
    Salman
    <Moderator Edit - deleted link spam - pl see FAQ on where to include signature links - abuse reported to Admins>

    Hi Salman,
    Can you check the database alert log from the time when it was enabled first time.
    Alert log will have completed information on what and when any command was run to disable it.
    HTH,
    Pradeep

  • Direct load with Force Logging enable

    Hi All,
    I have a dataguard environment with one physical standby database, I have to load a big flat file with close to 50Millions records using sqlldr. can i use direct=true in sqlldr,with force logging enabled on primary? or they is any other way to load this file
    FYI- ORACLE 11GR2
    Thanks

    Thanks for that information.
    The direct=true means what you think, Loaded data will not be replicated. However its make sense and your test proves that Data Guard overrides this.
    based on this you might as well go conventional path.
    Does this help?
    Its makes sense that Data Guard would override this, otherwise Data Guard would (or Forced logging) would not be doing its job.
    From Oracle doc A96524-01 Database Concepts 19 Direct-Path INSERT
    If the database or tablespace is in FORCE LOGGING mode, then direct path INSERT always logs, regardless of the logging or nologging setting.
    I know this an older doc, but its unlikely this would have changed

  • FORCE LOGGING

    I want to create a physical standby database. The primary database is in archive log mode, and the 50% of the data belong to the staging area of datawarehouse. During ETL processes the database generates great amount of GBs of redologs. This tables contain temporary data that are only used for ETL process.
    Can I set the database like FORCE LOGGING=N and set FORCE LOGGING=Y only for the tablespace that contain the tables of data (production, not intermediate) ???

    If you are trying to run a physical standby, for any database larger and more important than a toy, across the internet you are doomed to failure.
    Databases do not fail on predictable schedules.
    A DR site means a DR site ... it does not mean someplace out there in the cloud. For all you know your redo is being shipped to the moon and
    back. Buy room in a data center no more than 500km away from your current location.
    DR is for serious people with serious issues. If you do not need it then don't build it. If you do need it build it correctly.

  • What is this log error for Safari ? unlink of file /Users/.../Library/Caches/com.apple.Safari/fsCachedData/failed.

    What is this log error for Safari  ? Why am I getting this ?
    2014-04-05 5:26:13.688 PM Safari[5407]: unlink of file /Users/georgestamatis/Library/Caches/com.apple.Safari/fsCachedData/8A9936E7-E9A E-400D-A5D7-DCF074F115FC failed.  Errno=2

    I have this report is this helps you find the error:
    System Version: OS X 10.9.2 (13C64)
    Kernel Version: Darwin 13.1.0
    Boot Mode: Normal
    Model: MacBookPro9,2
    Battery cycles: 519
    Kernel messages
       Apr 3 12:25:33   MacAuthEvent en1 Auth result for: 00:24:6c:46:bb:90 Auth timed out
       --- last message repeated 3 times ---
       Apr 3 13:47:09   [BNBMouseDevice][handleStart] staticPrepControlChannelAction returned error e00002c0
       Apr 3 13:47:10   [BNBMouseDevice][prepInterruptChannelWL][04-0c-ce-2b-d7-d2] _interruptChannel->waitForChannelState returned error 0xe00002c0
       Apr 3 13:47:10   [BNBMouseDevice][interruptChannelOpeningWL] prepInterruptChannelWL returned error e00002c0
       Apr 3 16:14:45   process com.apple.WebKit[1437] thread 806808 caught burning CPU!; EXC_RESOURCE supressed due to audio playback
       Apr 3 16:17:43   [IOBluetoothHCIController][EnqueueRequestForController] -- SendHCIRequestToTransport failed, error (0xE00002D8) -- kIOReturnNotReady
       Apr 3 16:17:43   [SendHCIRequestFormatted] ### ERROR: EnqueueRequestForController failed (err=0xe00002d8 (kIOReturnNotReady)) for opCode 0x0c3f (Set AFH Host Channel Classification)
       Apr 4 08:23:48   IOAudioStream[0xffffff803ca70000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (dc2,620)->(dc3,c28).
       Apr 5 10:53:48   MacAuthEvent en1 Auth result for: 60:33:4b:e0:25:42 Auth timed out
       Apr 5 11:58:28   IOAudioStream[0xffffff803ca70000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (28c1,62c)->(28c2,c30).
       Apr 5 13:22:16   Sound assertion in AppleHDAFunctionGroup at line 1042
       Apr 5 14:12:31   IOAudioStream[0xffffff803ca70000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (2066,5e8)->(2067,c18).
       Apr 5 14:12:32   IOAudioStream[0xffffff803ca70000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (2068,60c)->(2069,80c).
       Apr 5 15:48:39   [IOBluetoothHCIController][EnqueueRequestForController] -- SendHCIRequestToTransport failed, error (0xE00002D8) -- kIOReturnNotReady
       Apr 5 15:48:39   [SendHCIRequestFormatted] ### ERROR: EnqueueRequestForController failed (err=0xe00002d8 (kIOReturnNotReady)) for opCode 0x0c3f (Set AFH Host Channel Classification)
       Apr 5 17:28:56   wl0: Roamed or switched channel, reason #1, bssid d8:c7:c8:e8:55:b8
       Apr 5 17:57:20   wl0: Roamed or switched channel, reason #1, bssid d8:c7:c8:e8:55:b0
       Apr 5 17:58:03   wl0: Roamed or switched channel, reason #8, bssid d8:c7:c8:e8:55:b0
       Apr 5 18:01:52   wl0: Roamed or switched channel, reason #1, bssid d8:c7:c8:e8:55:b8
    Loaded extrinsic kernel extensions
       com.globaldelight.driver.BoomDevice (1.1)
    Extrinsic daemons
       com.anchorfree.ajaxserver
       com.adobe.fpsaud
    Extrinsic agents
       2BUA8C4S2C.com.agilebits.onepassword-osx-helper
       com.google.keystone.user.agent
    launchd items
       /Library/LaunchDaemons/com.adobe.fpsaud.plist
                 (com.adobe.fpsaud)
       /Library/LaunchDaemons/com.anchorfree.ajaxserver.plist
                 (com.anchorfree.ajaxserver)
       Library/LaunchAgents/com.google.keystone.agent.plist
                 (com.google.keystone.user.agent)
    Extrinsic loadable bundles
       /System/Library/Extensions/BoomDevice.kext
                 (com.globaldelight.driver.BoomDevice)
       /Library/Internet Plug-Ins/Flash Player.plugin
                 (com.macromedia.Flash Player.plugin)
       /Library/PreferencePanes/Flash Player.prefPane
                 (com.adobe.flashplayerpreferences)
       Library/Address Book Plug-Ins/SkypeABDialer.bundle
                 (com.skype.skypeabdialer)
       Library/Address Book Plug-Ins/SkypeABSMS.bundle
                 (com.skype.skypeabsms)
    Netmask: 255.255.0.0
    Application check
       com.google.GoogleDrive
    User login items
       Boom
       iTunesHelper
       Dropbox
       TextExpander
    Safari extensions
       1Password (beta)
    Desktop file count: 40
    Elapsed time (s): 469

  • How would I be able to see what devices are logged in under my apple I.D and be able to log them out

    I just want to see what devices are logged in under my apple I.D and be able to log them out

    You cannot see which devices are logged in to your Apple ID but you can see which devices is using your iCloud account for Find My iPhone. See this article on how to remove devices from your iCloud account remotely iCloud: Remove your device from Find My iPhone.
    Edit: You do however get an email notification when someone signs in to your Apple ID on a new device.
    Message was edited by: Monstermoster

  • What if the log directory is full?

    I've  just switched from Oracle to DB2.
    I have a simple question: what if the log directory is full before the logs are archived?
    Forgive me if this is to basic.
    Thanks!

    Hello,  this depends on the setting of the blk_log_dsk_ful database configuration parameter.
    [http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.config.doc/doc/r0005787.html]
    SAP standard setting is YES

  • What is Audit Log Trimming job in Sharepoint ?

    What is Audit Log Trimming job  in Sharepoint

    Hi Sethu,
                        Did you understand What I am saying in the description
    WhenI run the 'Audit log trimming‘ timerjob
    manually for
    1st 2 times report has generated then onwards it is not
    generating any reports

  • WHAT USER IS LOGGED IN SAP AND WHERE

    i would like to know if there is a way to kow if an sap user is logged in and where.
    thank you.

    It is not difficult to know what user is logged in.  You may check license status directly from different color user id.  Or you may check B1UPF.xml.
    However for the Where, there is no easy info.  You mat check this thread:
    Re: How to track twice logins?
    Thanks,
    Gordon

  • Direct Path Loads Vs FORCED LOGGING

    Hello everyone,
    I just got below doubt.
    Suppose, we've
    One Oracle Primary Database (running in FORCED LOGGING mode) and,
    One Oracle Standy Database (Oracle Data Gaurd)
    My doubt is that if we use sqlloader direct path to load data in a table in primary database, will it generate/send the redo and ship the same to standby database ?

    Thanks Anil,
    But have a doubt again.
    How does direct path data upload generate redo if it's working on just data blocks.
    I.e. get the block adjust the high water and put the records.

  • Sql query needed to verify force logging

    Hi.
    Does anyone out there have SQL query we need to run in order to see if our db is working in force logging mode?
    Thanks.
    DA

    The FORCE_LOGGING column of v$database view can be queried to verify that the database is in FORCE LOGGING mode. Similarly, the FORCE_LOGGING column of dba_tablespace view provides the same information for each tablespace.
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

Maybe you are looking for

  • Sharing Itunes library with another User Account & Fast Switching

    Hi. I recently purchased a new iMac G5 and am in the process of setting it up to be used by 2 separate users (girlfriend and me). I apologize in advance if this is more of an Itunes issue and not solely an Administration issue. My question deals with

  • What is the "IN" operator for apex_util.ir_filter()

    I would like my Interactive Report to display on the screen an IN statement with a list of values. Is this possible to do with the apex_util.ir_filter() command within APEX version 3.2.0.00.27? Thanks Steve I know its possible for the end-user via th

  • Client issue with ALE Configurations

    Hi Experts, I am trying to connect to a different SAP System through ALE. I have defined logical systems. When i am trying to assign destination logical system to destination client, i am getting an error -  "Entry already exists" as there is another

  • Connection lost contact error

    Hello, I get the following error: RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows ORACLE error from target database: ORA-03135: connection lo

  • Hide columns in a web report

    Hi, I am trying to hide the last 5 columns in my report (out of 15) just before the report is rendered. I need to have these 5 columns in my query as I have exceptions defined on them but want to hide them from users. Could you please let me know how