Database ArchiveLog Full

Hi
Everyday we are facing same issue on online backup for our all databases which are runing on ARCH log mode.
Issue : Archive Destination Full
Database Version :
SQL*Plus: Release 11.2.0.2.0 Production
If we check from OS level we can see disk space is not an issue
$ df -k /xxx_ucfepte/fra
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vx/dsk/101appdg9/xxx_ucfepte_fra
94371840 385504 93252584 1% /xxx_ucfepte/fra
But if we check from sql prompt
sql> SELECT NAME, TO_CHAR(SPACE_LIMIT, '999,999,999,999') AS SPACE_LIMIT,
TO_CHAR(SPACE_LIMIT - SPACE_USED + SPACE_RECLAIMABLE, '999,999,999,999') AS SPACE_AVAILABLE,
ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1) AS PERCENT_FULL FROM V$RECOVERY_FILE_DEST;
NAME
SPACE_LIMIT SPACE_AVAILABLE PERCENT_FULL
/vmj_ucfepte/fra
95,563,022,336 184,616,448 99.8
It says 99.8% full,
Can anyone please help me on that, why we got same alert everyday when online backup is running.
Thanks

873346 wrote:
Hi
Everyday we are facing same issue on online backup for our all databases which are runing on ARCH log mode.
Issue : Archive Destination Full
Database Version :
SQL*Plus: Release 11.2.0.2.0 Production
If we check from OS level we can see disk space is not an issue
$ df -k /xxx_ucfepte/fra
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vx/dsk/101appdg9/xxx_ucfepte_fra
94371840 385504 93252584 1% /xxx_ucfepte/fra
File system looks empty
But if we check from sql prompt
sql> SELECT NAME, TO_CHAR(SPACE_LIMIT, '999,999,999,999') AS SPACE_LIMIT,
TO_CHAR(SPACE_LIMIT - SPACE_USED + SPACE_RECLAIMABLE, '999,999,999,999') AS SPACE_AVAILABLE,
ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1) AS PERCENT_FULL FROM V$RECOVERY_FILE_DEST;
NAME
SPACE_LIMIT SPACE_AVAILABLE PERCENT_FULL
/vmj_ucfepte/fra
95,563,022,336 184,616,448 99.8
Database administration thinks the files are still there. Did anyone delete/move them manually?
If yes, the database doesn't know that.
Use RMAN and the command
RMAN> CROSSCHECK ARCHIVELOG ALL;
RMAN> DELETE NOPROMPT EXPIRED ARCHIVELOG ;
to update the administration of the database.
Can you also post your backup command file
Are you using RMAN for the backup?
HTH
FJFranken

Similar Messages

  • How to create a database with full import

    Any other way to create a database without using below steps :
    1)create database
    2)use show=y and then create all the tablespace
    3)and last imp full=y and ignore=y

    i used following option to create a database from full exp
    1)create database (sample database with same DBname on other server)
    2)use show=y and then create all the tablespace
    3)and last imp full=y and ignore=y
    I just wanted to know is there any other way to create the Db with imp option without creating all the tablespace.

  • If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data
    Yes you can ofourse but dont be in idea that logging will be mininal. Loggign will be as per recovery model full. Every thing will be logged. If you are going to use bulk insert task you can consider switching recovery model to Bulk logged but you will not
    have option to do point in time recovery.
    PS: please dont create duplicate threads
    If you read first Note section in below link it clearly states that yes logging will be full and you can use
    http://technet.microsoft.com/en-us/library/ms191244(v=sql.105).aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • SQL0964C  The transaction log for the database is full

    Hi,
    i am planning to do QAS refresh from PRD system using Client export\import method. i have done export in PRD and the same has been moved to QAS then started imported.
    DB Size:160gb
    DB:DB2 9.7
    os: windows 2008.
    I facing SQL0964C  The transaction log for the database is full issue while client import and regarding this i have raised incident to SAP then they replied to increase some parameter like(LOGPRIMARY,LOGSECOND,LOGFILSIZ) temporarily and revert them back after the import. Based on that i have increased from as below mentioned calculation.
    the filesystem size of /db2/<SID>/log_dir should be greater than LOGFILSIZ*4*(Sum of LOGPRIMARY+LOGSECONDARY) KB
    From:
    Log file size (4KB)                         (LOGFILSIZ) = 60000
    Number of primary log files                (LOGPRIMARY) = 50
    Number of secondary log files               (LOGSECOND) = 100
    Total drive space required: 33GB
    To:
    Log file size (4KB)                         (LOGFILSIZ) = 70000
    Number of primary log files                (LOGPRIMARY) = 60
    Number of secondary log files               (LOGSECOND) = 120
    Total drive space required: 47GB
    But still facing the same issue. Please help me to resolve the ASAP.
    Last error TP log details:
    3 ETW674Xstart import of "R3TRTABUFAGLFLEX08" ...
    4 ETW000   1 entry from FAGLFLEX08 (210) deleted.
    4 ETW000   1 entry for FAGLFLEX08 inserted (210*).
    4 ETW675 end import of "R3TRTABUFAGLFLEX08".
    3 ETW674Xstart import of "R3TRTABUFAGLFLEXA" ...
    4 ETW000  [     dev trc,00000]  Fri Jun 27 02:20:21 2014                                             -774509399  65811.628079
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] CON = 0 (BEGIN)                    85  65811.628164
    4 ETW000  [     dev trc,00000]  &+     DbSlModifyDB6( SQLExecute ): [IBM][CLI Driver][DB2/NT64] SQL0964C  The transaction log for the database is full. 
    4 ETW000                                                                                                  83  65811.628247
    4 ETW000  [     dev trc,00000]  &+     SQLSTATE=57011 row=1                                                                                             
    4 ETW000                                                                                                  51  65811.628298
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  67  65811.628365
    4 ETW000  [     dev trc,00000]  &+     DELETE FROM "FAGLFLEXA" WHERE "RCLNT" = ?                                                                        
    4 ETW000                                                                                                  62  65811.628427
    4 ETW000  [     dev trc,00000]  &+       cursor type=NO_HOLD, isolation=UR, cc_release=YES, optlevel=5, degree=1, op_type=8, reopt=0                    
    4 ETW000                                                                                                  58  65811.628485
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  53  65811.628538
    4 ETW000  [     dev trc,00000]  &+     Input SQLDA:                                                                                                     
    4 ETW000                                                                                                  52  65811.628590
    4 ETW000  [     dev trc,00000]  &+                        1 CT=WCHAR           T=VARCHAR         L=6     P=9     S=0   
    4 ETW000                                                                                                  49  65811.628639
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.628689
    4 ETW000  [     dev trc,00000]  &+     Input data:                                                                                                      
    4 ETW000                                                                                                  49  65811.628738
    4 ETW000  [     dev trc,00000]  &+     row 1:             1 WCHAR           I=6       "210"               34  65811.628772
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.628823
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.628873
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] (END)                              27  65811.628900
    4 ETW000  [    dbtran  ,00000]  ***LOG BY4=>sql error -964   performing DEL on table FAGLFLEXA                    
    4 ETW000                                                                                                3428  65811.632328
    4 ETW000  [    dbtran  ,00000]  ***LOG BY0=>SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1
    4 ETW000                                                                                                  46  65811.632374
    4 ETW000  [     dev trc,00000]  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'DEL'                             59  65811.632433
    4 ETW000                         RSLT: {dbsl=99, tran=1}
    4 ETW000                         FHDR: {tab='FAGLFLEXA', fcode=194, mode=2, bpb=0, dbcnt=0, crsr=0,
    4 ETW000                                hold=0, keep=0, xfer=0, pkg=0, upto=0, init:b=0,
    4 ETW000                                init:p=0000000000000000, init:#=0, wa:p=0X00000000020290C0, wa:#=10000}
    4 ETW000  [     dev trc,00000]  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'DEL'                            126  65811.632559
    4 ETW000                         STMT: {stmt:#=0, bndfld:#=1, prop=0, distinct=0,
    4 ETW000                                fld:#=0, alias:p=0000000000000000, fupd:#=0, tab:#=1, where:#=2,
    4 ETW000                                groupby:#=0, having:#=0, order:#=0, primary=0, hint:#=0}
    4 ETW000                         CRSR: {tab='', id=0, hold=0, prop=0, max.in@0=1, fae:blk=0,
    4 ETW000                                con:id=0, con:vndr=7, val=2,
    4 ETW000                                key:#=3, xfer=0, xin:#=0, row:#=0, upto=0, wa:p=0X00000001421A3000}
    2EETW125 SQL error "-964" during "-964" access: "SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1"
    4 ETW690 COMMIT "14208" "-1"
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] CON = 0 (BEGIN)                 16208  65811.648767
    4 ETW000  [     dev trc,00000]  &+     DbSlModifyDB6( SQLExecute ): [IBM][CLI Driver][DB2/NT64] SQL0964C  The transaction log for the database is full. 
    4 ETW000                                                                                                  75  65811.648842
    4 ETW000  [     dev trc,00000]  &+     SQLSTATE=57011 row=1                                                                                             
    4 ETW000                                                                                                  52  65811.648894
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.648945
    4 ETW000  [     dev trc,00000]  &+     INSERT INTO DDLOG (SYSTEMID, TIMESTAMP, NBLENGTH, NOTEBOOK) VALUES (  ? , CHAR(   CURRENT TIMESTAMP - CURRENT TIME
    4 ETW000                                                                                                  50  65811.648995
    4 ETW000  [     dev trc,00000]  &+     ZONE   ), ?, ? )                                                                                                 
    4 ETW000                                                                                                  49  65811.649044
    4 ETW000  [     dev trc,00000]  &+       cursor type=NO_HOLD, isolation=UR, cc_release=YES, optlevel=5, degree=1, op_type=15, reopt=0                   
    4 ETW000                                                                                                  55  65811.649099
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  49  65811.649148
    4 ETW000  [     dev trc,00000]  &+     Input SQLDA:                                                                                                     
    4 ETW000                                                                                                  50  65811.649198
    4 ETW000  [     dev trc,00000]  &+                        1 CT=WCHAR           T=VARCHAR         L=44    P=66    S=0   
    4 ETW000                                                                                                  47  65811.649245
    4 ETW000  [     dev trc,00000]  &+                        2 CT=SHORT           T=SMALLINT        L=2     P=2     S=0   
    4 ETW000                                                                                                  48  65811.649293
    4 ETW000  [     dev trc,00000]  &+                        3 CT=BINARY          T=VARBINARY       L=32000 P=32000 S=0   
    4 ETW000                                                                                                  47  65811.649340
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.649390
    4 ETW000  [     dev trc,00000]  &+     Input data:                                                                                                      
    4 ETW000                                                                                                  49  65811.649439
    4 ETW000  [     dev trc,00000]  &+     row 1:             1 WCHAR           I=14      "R3trans"           32  65811.649471
    4 ETW000  [     dev trc,00000]  &+                        2 SHORT           I=2        12744              32  65811.649503
    4 ETW000  [     dev trc,00000]  &+                        3 BINARY          I=12744   00600306003200300030003900300033003300310031003300320036003400390000...
    4 ETW000                                                                                                  64  65811.649567
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  52  65811.649619
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.649670
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] (END)                              28  65811.649698
    4 ETW000  [    dbsyntsp,00000]  ***LOG BY4=>sql error -964   performing SEL on table DDLOG                36  65811.649734
    4 ETW000  [    dbsyntsp,00000]  ***LOG BY0=>SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1
    4 ETW000                                                                                                  46  65811.649780
    4 ETW000  [    dbsync  ,00000]  ***LOG BZY=>unexpected return code 2          calling ins_ddlog           37  65811.649817
    4 ETW000  [     dev trc,00000]  db_syflush (TRUE) failed                                                  26  65811.649843
    4 ETW000  [     dev trc,00000]  db_con_commit received error 1024 in before-commit action, returning 8
    4 ETW000                                                                                                  57  65811.649900
    4 ETW000  [    dbeh.c  ,00000]  *** ERROR => missing return code handler                               1974  65811.651874
    4 ETW000                         caller does not handle code 1024 from dblink#5[321]
    4 ETW000                         ==> calling sap_dext to abort transaction
    2EETW000 sap_dext called with msgnr "900":
    2EETW125 SQL error "-964" during "-964" access: "SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1"
    1 ETP154 MAIN IMPORT
    1 ETP110 end date and time   : "20140627022021"
    1 ETP111 exit code           : "12"
    1 ETP199 ######################################
    Regards,
    Rajesh

    Hi Babu,
    I believe you should have taken a restart of your system if log primary are changed.  If so, then increase log primary to 120 and secondary to 80 provide size and space are enough.
    Note 1293475 - DB6: Transaction Log Full
    Note 1308895 - DB6: File System for Transaction Log is Full
    Note: 495297 - DB6: Monitoring transaction log    
    Regards,
    Divyanshu

  • Master database archivelog but not the slaves...is this possible?

    Hi,
    I've followinf situation:
    1xmaster database server oracle 9i
    3xslave database servers oracle 9i
    The databases on the slaves are exact copies of the master. The slaves are refreshed every night by a san-sync. The san-sync copies all the datafiles/redo logs and control files to the slave servers. On the master database DML is executed so all changes to the data are made on the master database, the slaves are static. All the databases are in no-archivelog mode.
    Rigth now I don't have a backup of the master database and I would like to implement a hot rman backup.
    questions:
    can I just run the master database in archivelog mode without turning on archiving on the slaves? I guess this might be a problem because archiving is turned on at database level ('alter database archivelog'). What will happen when I sync the master database to the slaves when the master database is in archivelog mode and the slaves are not. Please note we don't sync spfile/pfile.
    regards,
    Martin

    Hi,
    Thanks for your reply.
    My doubts are about the master database should be in archive log mode but the slaves don't, the slaves are copies of the master (datafiles, redologs and controlfiles) and the slaves are refresh every night.
    Right now the master database is also in noarchivelog mode. What if I change the master to archivelog mode and would like to keep the slaves in noarchivelog mode.
    Will the slaves also be in archivelog mode after a database refresh?
    I would like to know this because if this is true i'll need to do some setting in the init.ora file like archivelog dest etc...
    regards,
    Martin

  • Alter database archivelog;

    Can any one tell How to alter database as archivelog..
    I tried wid
    start up mount but its giving error as Insufficient privileges

    Hi,
    Login as Sysdba,
    SELECT LOG_MODE FROM SYS.V$DATABASE;
    you get the mode in which database is present right now.
    Add the following line to Pfile
    # Archive Log Destinations -
    log_archive_dest_1='location=/u02/oradata/cuddle/archive' (path )
    log_archive_start=TRUE
    #startup the database in mount mode
    startup mount
    alter database archivelog;
    alter database open;
    That's it..
    Cheers
    Pavan Kumar N

  • Dimensions and Cubes Process OK / database 'Process Full' fails

    Hello,
    I am having trouble processing SSAS database (SQL 2008R2).
    Within BIDS environment I can process all dimensions and two cubes - no problem. But when I try to process the database (Process Full – Sequential/ All in one transaction), I keep getting errors about one specific dimension (however the very same dimension
    is processed separately just fine).
    Any ideas why this would happen?
    Thanks,
    Lana

    Thanks so much for all your replies! Your help is greatly appreciated
    J
    Here is the error message I am getting (it is the same for bunch of other attributes of the same dimension called
    Item):
    Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Item', Name of 'Item' was being processed.
    Errors in the OLAP storage engine: An error occurred while the 'Product Group' attribute of the 'Item' dimension from the 'InvCube' database was being processed.
    OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_Item', Column: 'Colour', Value: ''. The attribute is 'Colour'.
    Keep in mind that the Key for this dimension is called ItemID and there are no duplicates (I checked). Before processing the cube, I have dozens of procedures (within SSIS package that brings the data into DW) that are checking if all the
    keys (FK columns on Fact table) exist within dim tables (PK columns). I also do not allow NULLs or blanks for the dim keys within Fact tables, I replace them with 
    special “DimName-000” Keys that, again, exist within dim tables.
    What I am trying to figure out… why I can process Item dimension just fine on its own (I also process all the other dimensions OK), after that I can process both cubes that are using this (and other) dimension(s) … and I can browse the cubes, getting breakdown
    by Item / Colour / Product Group, etc... So, everything seems to work perfectly. However, when I try to process the whole database (with all previously processed dimensions and both cubes - there are only two cubes for now, to make is simple), the process
    fails, giving me an error about duplicate attribute key for this specific Item dimension.
    Any thoughts?
    Thanks again!

  • [Forum FAQ] How do I restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity

    Question
    Background: When restoring Full + DIFF backups of a Change Data Capture (CDC) enabled database to a different SQL server, the CDC integrity is not being maintained. We did RESTORE the databases with the KEEP_CDC option.
    How do I successfully restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity?
    Answer
    When restoring a CDC enabled database on a different machine that is running SQL Server, besides using use the KEEP_CDC option to retain all the CDC metadata, you also need to add Capture and Cleanup jobs. 
    In addition, as you want to restore FULL + DIFF backups of a CDC enabled database, you need to note that the KEEP_CDC and NoRecovery options are incompatible. Use the KEEP_CDC option only when you are completing the recovery. I made a test to display
    the whole process that how to restore the CDC enabled database backups (FULL + DIFF) on a different machine.
    Create a database named ’CDCTest’ in SQL Server 2012, then enable the CDC feature and take full+ differential backups of the database.
    -- Create database CDCTest
    CREATE DATABASE [CDCTest] ON  PRIMARY
    ( NAME = N'CDCTest ', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest.mdf' , SIZE = 5120KB ,
    MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
     LOG ON
    ( NAME = N'CDCTest _log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest _log.LDF' , SIZE = 3840KB ,
    MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    use CDCTest;
    go
    -- creating table
    create table Customer
    custID int constraint PK_Employee primary key Identity(1,1)
    ,custName varchar(20)
    --Enabling CDC on CDCTest database
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_db
    --Enabling CDC on Customer table
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_table
    @source_schema = N'dbo',
    @source_name = N'Customer',
    @role_name = NULL
    GO
    --Inserting values in customer table
    insert into Customer values('Mike'),('Linda')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking full database backup
    backup database CDCTest to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTest.bak'
    insert into Customer values('David'),('Jane')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking differential database backup
    BACKUP DATABASE CDCTest TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTestdif.bak' WITH DIFFERENTIAL
    GO
    Restore Full backup of the ‘CDCTest’ database with using KEEP_CDC option in a different server that is running SQL Server 2014.
    Use master
    Go
    --restore full database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak' with keep_cdc
    Restore Diff backup of the ‘CDCTest’ database.
    Restore Database CDCTest From Disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak'
        With Move 'CDCTest' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest.mdf',
            Move 'CDCTest _log' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest _log.LDF',
            Replace,
            NoRecovery;
    Go
    --restore differential database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTestdif.bak' with keep_cdc
    Add the Capture and Cleanup jobs in the CDCTest database.
    --add the Capture and Cleanup jobs
    Use CDCTest
    exec sys.sp_cdc_add_job 'capture'
    GO
    exec sys.sp_cdc_add_job 'cleanup'
    GO
    insert into Customer values('TEST'),('TEST1')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    Reference
    Track Data Changes (SQL Server)
    Restoring a SQL Server database that uses Change Data Capture
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Question
    Background: When restoring Full + DIFF backups of a Change Data Capture (CDC) enabled database to a different SQL server, the CDC integrity is not being maintained. We did RESTORE the databases with the KEEP_CDC option.
    How do I successfully restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity?
    Answer
    When restoring a CDC enabled database on a different machine that is running SQL Server, besides using use the KEEP_CDC option to retain all the CDC metadata, you also need to add Capture and Cleanup jobs. 
    In addition, as you want to restore FULL + DIFF backups of a CDC enabled database, you need to note that the KEEP_CDC and NoRecovery options are incompatible. Use the KEEP_CDC option only when you are completing the recovery. I made a test to display
    the whole process that how to restore the CDC enabled database backups (FULL + DIFF) on a different machine.
    Create a database named ’CDCTest’ in SQL Server 2012, then enable the CDC feature and take full+ differential backups of the database.
    -- Create database CDCTest
    CREATE DATABASE [CDCTest] ON  PRIMARY
    ( NAME = N'CDCTest ', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest.mdf' , SIZE = 5120KB ,
    MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
     LOG ON
    ( NAME = N'CDCTest _log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest _log.LDF' , SIZE = 3840KB ,
    MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    use CDCTest;
    go
    -- creating table
    create table Customer
    custID int constraint PK_Employee primary key Identity(1,1)
    ,custName varchar(20)
    --Enabling CDC on CDCTest database
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_db
    --Enabling CDC on Customer table
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_table
    @source_schema = N'dbo',
    @source_name = N'Customer',
    @role_name = NULL
    GO
    --Inserting values in customer table
    insert into Customer values('Mike'),('Linda')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking full database backup
    backup database CDCTest to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTest.bak'
    insert into Customer values('David'),('Jane')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking differential database backup
    BACKUP DATABASE CDCTest TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTestdif.bak' WITH DIFFERENTIAL
    GO
    Restore Full backup of the ‘CDCTest’ database with using KEEP_CDC option in a different server that is running SQL Server 2014.
    Use master
    Go
    --restore full database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak' with keep_cdc
    Restore Diff backup of the ‘CDCTest’ database.
    Restore Database CDCTest From Disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak'
        With Move 'CDCTest' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest.mdf',
            Move 'CDCTest _log' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest _log.LDF',
            Replace,
            NoRecovery;
    Go
    --restore differential database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTestdif.bak' with keep_cdc
    Add the Capture and Cleanup jobs in the CDCTest database.
    --add the Capture and Cleanup jobs
    Use CDCTest
    exec sys.sp_cdc_add_job 'capture'
    GO
    exec sys.sp_cdc_add_job 'cleanup'
    GO
    insert into Customer values('TEST'),('TEST1')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    Reference
    Track Data Changes (SQL Server)
    Restoring a SQL Server database that uses Change Data Capture
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • Archivelog full

    Hi,
    11.2.0.1
    When you db encounters "archive log full waiting to be freed", is there a way to resolve it without shutting down the db? Thanks.
    vk82 Oct 9, 2013 9:35 AM
    In case if your DB is Production. How will you continue to operate your DB in no archivelog mode.
    The solution for above mentioned problem is either:
    SQL> Shutdown abort;
    SQL> Startup Mount;
    1) Change your Archiving Destination by :
    SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='NEW_PATH_LOCATION'
    or
    2) Increase the size of Archiving Destination by first determining the size of the Archiving destination which intially you have:-
    SQL> SELECT NAME,(space_limit/1048576),(space_used/1048576) from v$recovery_file_dest;
    And after that increase the space according to above output:-
    SQL> alter system set db_recovery_file_dest_size=more_size_than_getting_size_above scope=both;
    SQL> Alter database open;
    Now
    SQL> Shutdown immediate;
    SQL> Startup;
    or
    3) Zip the archive logs and move it to anyother destination but be careful to preserve this you require all this archivelogs during recovery.

    ozgurumut wrote:
    Hi,
    As I understand , you need to manage disk space of archivelog field. You can make with script or RMAN config.
    Firstly, You may try RMAN Configuration like on below;
    RMAN> Crosscheck archivelog all;
    RMAN> Delete exprired archivelog all;
    Secondly , You can use shell script (contains oracle command).
    1. find <archivelog location> -name '*.log' -mtime +10 -exec rm -rf {} \;
    2. RMAN> Crosscheck archivelog all;
    3. RMAN> Delete exprired archivelog all;
    #!/bin/sh
    ORACLE_HOME=/u01/app/oracleths/product/11.2; export ORACLE_HOME
    ORACLE_SID=test; export ORACLE_SID
    PATH=.:$ORACLE_HOME/bin:/usr/ccs/bin:/usr/proc/lib:/usr/ucb:/usr/lib:/usr/ucblib:/opt/bin:/bin:/usr/bin:/GNU/bin/make
    export PATH
    find <archivelog location> -name '*.log' -mtime +10 -exec rm -rf {} \;
    $ORACLE_HOME/bin/rman target / << EOF
    Crosscheck archivelog all;
    Delete exprired archivelog all;
    exit
    EOF
    Finally, you should put to crontab . And it will work...
    Far better would be to construct the backup procedure to let rman manage it all -- FRA or not.
    rman> backup database [options]
    rman> backup archivelog delete [options]
    rman> delete noprompt obsolete.
    and for a bit of extra insurance against 'unauthorized maintenance'
    rman> crosscheck archivelog all;
    rman> delete noprompt expired archivelog;
    rman> crosscheck backup;
    rman> delete noprompt expired backup;
    schedule it however you want.  All your backup, all your housekeeping, in one place, managed exclusively by rman.

  • Unable to delete  primary database archivelogs using RMAN

    Hi,
    rman unable to delete the archivelogs of primary database even it is in sync ( with standby database).
    giving an error :-
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1693.11359.784134169 thread=2 sequence=1693
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1694.5554.784135415 thread=2 sequence=1694
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1695.11643.784164901 thread=2 sequence=1695
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1696.12654.784164913 thread=2 sequence=1696
    archive gap showing at primary.
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 00:57 1 2321 2195 126 2012-APR-25 22:34 51983
    01-JUN-2012 00:57 2 1729 1576 153 2012-APR-26 15:11 50985
    no archive gap showing at standby .
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 04:59 1 2321 2321 0 2012-MAY-31 22:32 386
    01-JUN-2012 04:59 2 1729 1729 0 2012-MAY-31 22:32 386
    any one please help me to resolve this.
    thanks ,
    Badam.
    Edited by: 937988 on May 31, 2012 9:56 PM

    Can you past here log_archive_ parameter on primary database?
    Did you create data guard configuration with dgmgrl ?
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • State Service database is full

    in my Sharepoint 2010, State Service Database is almost 49GB and it's not cleaning itself. So user get problems when it full.
    Any idea why is getting that big? Anyone knows how to clean it?
    Regards
    Lasantha

    Try 
    http://technet.microsoft.com/en-us/library/ff805063%28v=office.15%29.aspx
    Enable-SPTimerJob StateServiceExpiredSessionJobDefinitionShrink the database using below:http://technet.microsoft.com/en-us/library/hh564121%28v=office.15%29.aspxhttp://technet.microsoft.com/library/ms189035.aspx
    If this helped you resolve your issue, please mark it Answered

  • Database log full

    what are the  option to free up the log?
    1. kill spid filling up log.
    2. backup the tran log - to disk or truncate only or no_log.
    3. change the database to simple recovery mode, delete ldf file and then revert back to full recovery mode.
    4. detach database, delete log file and reattach mdf again.
    I am especially interested to know if the last two are commonly used in case dba is not able to free up log using other ways.
    thanks.

    First find why the log file is not truncating,
    SELECT name,
    log_reuse_wait
    FROM sys.databases;
    The recovery model dictates log behavior and whether the log will truncate on checkpoint or requires a transaction log backup, full and bulk logged recovery requires that you backup the log to keep the log size manageable, refer
    here to the different kinds of backups and their affect on the T-Log.
    The action you take will be dictated by the reason for the log not truncating.  There are numerous reasons that the log does not truncate including replication, mirroring, transaction log backup, active transaction, etc.  BACKUP LOG TRUNCATE ONLY
    is no longer supported as it removes the ability to restore the database to a point in time.
    The last two options are last ditch efforts to regain control of the log file size and should only be done after a full backup of the database is taken to insure that a viable backup is available.
    David Dye My Blog

  • Office 2011 for Mac - Error rebuilding database following full restore from Time machine

    This is my first time on here, so will try to be brief and specific.
    I have been using Outlook without issues. I had a logic board failure and had to replace my logic board on my Macbook pro.
    After repair, I then restored the entire computer from my Time machine backup
    Everything worked perfectly until I tried to use Outlook, when I was given an error message saying "Your Office database index is missing and needs to be rebuilt. This is usually caused by restoring an identity with Time Machine." It then offers
    me a chance to rebuild using the Database Utility.
    I went ahead and tried to rebuild, but after running through the 5 steps, the task failed and I was given another error msg: :Your database could not be rebuilt [-18000]
    I did some research online and found an article which suggested I go back in time on my Time machine and find an old version of my 'Main Identity' folder from when Outlook was working. Then to copy that folder,
    rename it 'Restored Main Identity' and paste it into the 'Office 2011 Identities' folder on my HD. 
    I have done that, so it now appears with the other identities in the Microsoft Database Utility, and then tried to rebuild again, but still no luck. 
    Any ideas on how I can get around this issue…. don't really understand how Outlook is the only thing that I can't get working after restoring my old data. 
    Tried to get some help from Microsoft, but they pointed me to this forum or wanted to charge me for advice… 
    Any help would be much appreciated,
    Paul 

    Hi,
    We mainly support Office problems on Windows, since you are using Office for Mac, I suggest you post the question to Office for Mac forum:
    http://answers.microsoft.com/en-us/mac
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank
    you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support

  • Solution Database knowledgebase Full compilation error

    Hi experts.
    Somebody knows anything about some Knowledge base fullcompilation error (2007 index does not exist)
    [screen 1|http://dl.dropbox.com/u/1040836/Knowledge.png]
    [screen 2|http://dl.dropbox.com/u/1040836/problem.png]

    Hi,
    I am running into the same error during full index compilation.
    Have you been able to resolve the issue ?
    Thanks,

  • RAC database archivelog ?

    Hi
    in rac enviromenet . 2 node rac setup.each node have own set of redolog .
    i have question ? archivelog will generate each node separately or one archivelog for all nodes ?
    your reply highly appreciated
    regards
    kmp

    user9372459 wrote:
    Hi
    in rac enviromenet . 2 node rac setup.each node have own set of redolog .
    i have question ? archivelog will generate each node separately or one archivelog for all nodes ?
    Archivelogs would be based on the thread of each instance. About their storage, the choice remains with you. If you do want to store them locally, you can but the storage should be visible to the other node also i.e. an NFS based storage. The best is to put them in ASM which does the complete handling by itself.
    HTH
    Aman....

Maybe you are looking for

  • Acrobat 9 + Output Preview

    In Acrobat 9 I noticed something confusing. I had a pdf file which had black text on a background. I opened this up in Acrobat 9 and went to check to see if the black text was set to overprint. Going to Output Preview I turned off the Process Black s

  • Flash Button not working

    When in design view and choose media--flash button or flash text, i fill out the dialog box and save file but all I see when I hit apply and OK is a gray box with handles and a f in it. Then in browser check it does not show at all? My computer does

  • Parsing XML Error Message

    When I logged in today I got this message:  "An unexpected error. Unable to parse the custom or default XML." What does this mean and will this continue every time I log on? Is there a way I can fix this? Is this critical?

  • Apple TV update won't load

    I've been able to connect and activate my Apple TV -- a process which required using an ethernet cable to bypass my firewall -- and can access Netflix and rent movies, etc via iTunes. However, the update won't load (I've tried 21 times) and I can't a

  • Question on upgrades of elements

    I am using the free trial of Elements. I am looking into buying elements 8 premiere because I need the video and photo editing options. I am a former Corel PSPX2 user when they upgraded this last time I hate the new Corel PSPx3 but I like to stay cur