Ms SQL Full DB backup error again....

Hi all,
I have a serious problem with the db full back with respect to DB13 since a long time, in the recent times i have posted the same issue, but i cud not find the approriate solution for the same...
I had few very good responces but was not helpful for my errors...
I am posting it again as a new thread for the reason that it has again failed with a different error this time....
I request all the gurus to plz chk this error log and help me....
ERROR LOG:
Error Log:
<i><b>***************************** SQL Job information   ******************************
Jobname:    SAP CCMS Full DB Backup of master,msdb,BI1 [20070827090523-3-190000]
Type:       TSQL
DB-Name:    BI1
For Run:    20070829  19:00:00
Job history information  *****************************
Stepname:   CCMS-step 1
Command:    declare @exeStmt nvarchar(2000) exec bi1.sap_backup_databases @dbList=
            "master,msdb,BI1",@r3Db="BI1",@bDev="R3DUMP0",@expDays= 0,@bkupChecksu
            m="Y",@jobName= "SAP CCMS Full DB Backup of master,msdb,BI1 [200708270
            90523-3-190000]",@bkupType="F",@nativeBkup="N",@exeDate = "20070829190
            000",@bkupSim = "N",@format = 1,@init = 1,@bkupDb = "master",@unload =
             0,@exeStmt = @exeStmt OUTPUT
Status:     (failure)
Message:    4027
Severity:                                                                                16
Duration:   0  hours(s)  0  min(s) 1  sec(s)
Last msg:   Executed as user: NT AUTHORITY\SYSTEM. DBCC execution completed. If DB
            CC printed error messages, contact your system administrator. [SQLSTAT
            E 01000] (Message 2528)  Mount tape for BACKUP DATABASE of database 'm
            aster' on tape drive '
.\tape0'. [SQLSTATE 42000] (Error 4027).  The
            step failed.
                    <----
End of Job Step History -
>
Stepname:   CCMS-step 2
Command:    declare @exeStmt nvarchar(2000) exec bi1.sap_backup_databases @dbList=
            "master,msdb,BI1",@r3Db="BI1",@bDev="R3DUMP0",@expDays= 0,@bkupChecksu
            m="Y",@jobName= "SAP CCMS Full DB Backup of master,msdb,BI1 [200708270
            90523-3-190000]",@bkupType="F",@nativeBkup="N",@exeDate = "20070829190
            000",@bkupSim = "N",@bkupDb = "msdb",@unload = 0,@exeStmt = @exeStmt O
            UTPUT
Last msg:   Executed as user: NT AUTHORITY\SYSTEM. DBCC execution completed. If DB
            CC printed error messages, contact your system administrator. [SQLSTAT
            E 01000] (Message 2528)  Mount tape for BACKUP DATABASE of database 'm
            aster' on tape drive '
.\tape0'. [SQLSTATE 42000] (Error 4027).  The
            step failed.
                    <----
End of Job Step History -
>
Stepname:   CCMS-step 3
Command:    declare @exeStmt nvarchar(2000) exec bi1.sap_backup_databases @dbList=
            "master,msdb,BI1",@r3Db="BI1",@bDev="R3DUMP0",@expDays= 0,@bkupChecksu
            m="Y",@jobName= "SAP CCMS Full DB Backup of master,msdb,BI1 [200708270
            90523-3-190000]",@bkupType="F",@nativeBkup="N",@exeDate = "20070829190
            000",@bkupSim = "N",@bkupDb = "BI1",@unload = 1,@exeStmt = @exeStmt OU
            TPUT
Last msg:   Executed as user: NT AUTHORITY\SYSTEM. DBCC execution completed. If DB
            CC printed error messages, contact your system administrator. [SQLSTAT
            E 01000] (Message 2528)  Mount tape for BACKUP DATABASE of database 'm
            aster' on tape drive '
.\tape0'. [SQLSTATE 42000] (Error 4027).  The
            step failed.
                    <----
End of Job Step History -
>
Job history information  *****************************</b></i>
I have given it my best with the help of google, but found no proper help.
Can u plz help me get any sap notes on this or a appropriate solution if anyone faced the same before.
Waiting to hear from u asap...
Plz treat it as an urgent request...
REWARD POINTS assured...
Thanks in advance
Hari Haran.V

Executed as user: alq. Mount tape for BACKUP DATABASE of database 'ALQ
            ' on tape drive '\\.\tape0'. [SQLSTATE 42000] (Error 4027).  The step
            failed.
                    <------------- End of Job Step History --------------->
Hi,
I have received the above error while schedule the backup in SAP Drive 1
but the backup is happening in Drive 2 in tape library. Please suggest to resolve this issue.

Similar Messages

  • Ms SQL Full DB backup error

    Hi all,
    We are running ECC6 on Windows 2003 server with Ms Sql 2005, we are trying to take a full db backup on our BW DEV system, but we get the following error....
    Due to this we are not able complete the BW Process tarnsfers... which is very important.....
    We use DB13 for this activity.
    The error mesage reads as follows
    <b><i>Executed as user: NT AUTHORITY\SYSTEM. DBCC execution completed. If DBCC printed error messages, con
                tact your system administrator. [SQLSTATE 01000] (Message 2528)  Write on "R3DUMP0(
    .\tape0)" failed: 23(Data error (cyclic redundancy check).) [SQLSTATE 42000] (Error 3202)  BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013).  The step failed</i></b>
    I request all the gurus to kindly help me as i am very new to all this...
    So i request you to suggest me the best possible solution asap.
    Waiting to hear from you all...
    ThanKs a million in advance.
    Hari Haran.V

    Hi vincent,
    Sorry for posting twice, but the fact is that i missed out a point that the same is not case with BW prd server for which it is the same backup device we are using,
    Also FYI both our BWDEV and BWPRD are in a single physical server, but running on different HDDs....
    Now what is the next solution that i can suggest my client....
    I m working on this from OFFSHORE....
    so there depends a lot on the suggestion i give them...and i just dont want to misguide or suggest them with my HALF knowledge...
    So can you plz focus a lil more into the explainaton u sent me, please.
    Waiting to hear from you,
    and I thank you for your quick and helpful responce.
    Thanks again
    Regards
    Hari haran

  • DB13 Full Database Backup - Error

    Hello Everybody,
    Got this error with DB13 Full Database Backup.
    2006-05-28 07:20:13.92 spid91    BackupMedium::ReportIoError: read failure on backup device '
    ERB-HQ-BK2\SAPBK\DVE.BAK'.
    Operating system error 59(An unexpected network error occurred.).
    2006-05-28 07:20:13.93 spid91    Internal I/O request 0x0000000089028080: Op: Read, pBuffer: 0x00000000069D0000, Size: 65536, Position: 111032779264, UMS: Internal: 0x89029FE8, InternalHigh: 0x89028140, Offset: 0xDA11C200, OffsetHigh: 0x19, m_buf: 0x00000
    000069D0000, m_len: 65536, m_actualBytes: 0, m_errcode: 59, BackupFile:
    ERB-HQ-BK2\SAPBK\DVE.BAK
    Best Regards.
    Darwin

    Darwin,
    Seems like the system is not recognizing your backup device. Have you verified that it installed/configured properly.

  • Sql 2008 Standart Backup Error 1117

    Hi, my operating System is Windows Server
    2003 Standart x64 and when im doing a database backup in my SQL SERVER 2008 Standart. this problem jumps:
    Backup Failed for server "nameofserver".
    System Data Sql Client sql Error Read on "D:\sql\data\datamart.mdf" failed: 1117 (The request could not be performed ...I/O device error)
    I tried to do the backup into a usb Disk , a network drive, and another partition.
    And the backup always stops at 80% saying
    the same thing.
    We did a: 
    "DBCC CHECKDB ('DATAMART-antiguo') WITH NO_INFOMSGS, ALL_ERRORMSGS"
    And it throw this:
    Msg 8966, Level 16, State 2, Line 1
    Unable to read and latch page (1:4557512) with latch type SH. 1117(The request could not be performed because of an I/O device error.) failed.
    Msg 8966, Level 16, State 2, Line 1
    Unable to read and latch page (1:4557516) with latch type SH. 1117(The request could not be performed because of an I/O device error.) failed.
    Msg 8966, Level 16, State 2, Line 1
    Unable to read and latch page (1:4557517) with latch type SH. 1117(The request could not be performed because of an I/O device error.) failed.
    Msg 8966, Level 16, State 2, Line 1
    Unable to read and latch page (1:4557518) with latch type SH. 1117(The request could not be performed because of an I/O device error.) failed.
    CHECKDB found 0 allocation errors and 4 consistency errors not associated with any single object.
    Msg 8978, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:3700412)
    is missing a reference from previous page (1:4557512). Possible chain linkage problem.
    Msg 8978, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:3700457)
    is missing a reference from previous page (1:4557517). Possible chain linkage problem.
    Msg 8978, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:3700458)
    is missing a reference from previous page (1:4557518). Possible chain linkage problem.
    Msg 8978, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:3700503)
    is missing a reference from previous page (1:4557516). Possible chain linkage problem.
    Msg 2533, Level 16, State 1, Line 1
    Table error: page (1:4557512) allocated to object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row
    data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
    Msg 8976, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:4557512)
    was not seen in the scan although its parent (1:1615250) and previous (1:1136313) refer to it. Check any previous errors.
    Msg 2533, Level 16, State 1, Line 1
    Table error: page (1:4557516) allocated to object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row
    data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
    Msg 8976, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:4557516)
    was not seen in the scan although its parent (1:4033765) and previous (1:1136410) refer to it. Check any previous errors.
    Msg 2533, Level 16, State 1, Line 1
    Table error: page (1:4557517) allocated to object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row
    data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
    Msg 8976, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:4557517)
    was not seen in the scan although its parent (1:4151563) and previous (1:1136364) refer to it. Check any previous errors.
    Msg 2533, Level 16, State 1, Line 1
    Table error: page (1:4557518) allocated to object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row
    data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
    Msg 8976, Level 16, State 1, Line 1
    Table error: Object ID 1067970981, index ID 4, partition ID 72057594240303104, alloc unit ID 72057594274578432 (type In-row data). Page (1:4557518)
    was not seen in the scan although its parent (1:4151563) and previous (1:1136365) refer to it. Check any previous errors.
    CHECKDB found 0 allocation errors and 12 consistency errors in table 'LOGISTICA.FCosto_Historico_Articulo' (object ID 1067970981).
    CHECKDB found 0 allocation errors and 16 consistency errors in database 'DATAMART-antiguo'.
    repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (DATAMART-antiguo).
    In the same directory we have several others databases with no problem at all, but this one in particular is the biggest one (>40 Gigs) 
    I looked online for help and ended knowing that its a commom problem with virtual servers, but this is not the case.
    Any help would be Greatly Appreciated!!!

    It looks like your database is corrupt.
    There is some issue with this object - LOGISTICA.FCosto_Historico_Articulo.
    CHECKDB found 0 allocation errors and 12 consistency errors in table 'LOGISTICA.FCosto_Historico_Articulo' (object
    ID 1067970981).
    CHECKDB found 0 allocation errors and 16 consistency errors in database 'DATAMART-antiguo'.
    repair_allow_data_loss is the minimum repair level for the errors found by DBCC
    CHECKDB (DATAMART-antiguo).
    Do you have backup? If so, restore the database.
    Or
    Fix the problem with allow data loss option
    http://www.sqlskills.com/blogs/paul/checkdb-from-every-angle-emergency-mode-repair-the-very-very-last-resort/
    -Prashanth

  • PSE 7 Full Backup Error

    I upgraded from PSE 3.0 to PSE 7.0 this summer.  I converted my catalog without a problem.
    I recently tried to perform an incremental backup based on the last backup I did using PSE 3.0, but verison 7.0 says it will not recognize the old format, so I need to do a full backup first.
    Fine.  I start with the full backup which will require 26 DVDs (!?!!?).  After the 3rd DVD, the program crashed with non-specific error during the disc verification. I try to restart the backup by doing an incremental and using the last disc, but no luck.
    I figure my on choice is to start over. After the 10th DVD and many hours, the program crashed with non-specific error.
    Now it appears that I must start the full backup over again but now I've already wasted a full day and 13 DVDs with no guarentee that it won't occur again next time on disc #22 or something.
    I know that I can physically copy the files from windows onto another hard drive or DVDs, but the whole point of the full and incremental backups is preserve not just the pictures themselves, but my tags and everything else I've done in PSE.
    Is there away to continue an interrupted full backup?
    Ideas?

    For your backup needs going forward, you might consider moving away from manual backup using the PSE backup command.  Hard drives are pretty cheap these days -- you can get a 500 GB external drive from Amazon for $70.   Hard drives are a lot faster, and you can set up a standard backup program to backup up everything on your computer, not just your photos, on a nightly automated schedule.  The main problem with DVDs and PSE backup is that it is manual, and human nature being what it is, people don't do it often enough (or at all).   Also, accumulating too many incremental backups without a full backup now and then increases the likelihood that a restore will fail partially or fully.   And doing a full backup to 26 DVDs is just too painful for most people!
    I use two external hard drives, one for the nightly backups, and one that I backup to once a quarter and keep in my car ("offsite").

  • Full Database Backup in DB13 for MS SQL Server databases

    Hello,
    We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
    I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
    This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
    Can you help me please?
    Kind regards,
    samid raif

    Hello Raja
    Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
    It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
    ***************************** SQL Job information   ******************************
    Jobname:    SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
    Type:       TSQL
    DB-Name:    AM1
    For Run:    20140417  10:37:26
    **************************** Job history information  *****************************
    Stepname:   CCMS-step 1
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
                "AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
                l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
                ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
                rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
                PUT
    Status:     (success)
    Message:    3014
    Severity:                                                                                                                                                                                                                                                    0
    Duration:   4  hours(s)  41 min(s) 22 sec(s)
    Last msg:   Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
                e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 315
                1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
                000] (Message 4035)  Processed 4574152 pages for database 'AM1', file
                'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 44363
                92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
                0] (Message 4035)  Processed 25598 pages for database 'AM1', file 'A01
                LOG1' on file 1. [SQLSTATE 01000] (Message 4035)  BACKUP DATABASE succ
                essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
                 [SQLSTATE 01000] (Message 3014).  The step succeeded.
                        <------------- End of Job Step History --------------->
    Stepname:   CCMS-step 2
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
                p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
                = "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
    Status:     (failure)
    Message:    3201
    Severity:                                                                                                                                                                                                                                                   16
    Duration:   0  hours(s)  8  min(s) 30 sec(s)
    Last msg:   Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
                backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
                found). [SQLSTATE 42000] (Error 3201).  The step failed.
                        <------------- End of Job Step History --------------->
    **************************** Job history information  *****************************
    Can you help me please with this one!? Can you tell me why in verification it stops with that error?
    Kind regards,
    samid raif

  • Error while taking Full DB Backup

    Hi,
    We had Multiplexed the Archive Log File to default location(Flash Recovery Area) and log_archive_dest_1=/u02/app/oracle/oradata/orcl/archive
    As too much of archive log's are generated we had removed the log_archive_dest_1.
    We had scheduled full DB backup every sunday and incremental DB backup everyday(midnight) through OEM.
    I am backing up all the archive log's and after each backup (incremental and full DB backup) we are deleting all Archive logs backed up.
    The Full DB Backup failed as it is still trying to backup archive logs from log_archive_dest_1(/u02/app/oracle/oradata/orcl/archive)
    Please find below the error log file generated after backup failed.
    RMAN> backup device type disk format='/u02/backup/scheduled/Full-ARC_%d_%t_%s_%p' tag 'BACKUP_ORCL_000022_091608120501' archivelog all not backed up;
    Starting backup at 16-SEP-08
    current log archived
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    skipping archive log file */u02/app/oracle/oradata/orcl/archive*/1_8459_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8460_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8461_639421762.dbf; already backed on 01-SEP-08
    skipping archive log file /u02/app/oracle/oradata/orcl/archive/1_8462_639421762.dbf; already backed on 01-SEP-08
    archived log /u02/app/oracle/oradata/orcl/archive/1_8463_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8463
    archived log /u02/app/oracle/oradata/orcl/archive/1_8464_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8464
    archived log /u02/app/oracle/oradata/orcl/archive/1_8465_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8465
    archived log /u02/app/oracle/oradata/orcl/archive/1_8466_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8466
    archived log /u02/app/oracle/oradata/orcl/archive/1_8467_639421762.dbf not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 8467
    Please suggest me the possible outcome
    Thanks and Regards
    Amith

    Hi,
    The Archive log's has occupied full Hard Disk space so i changed the status of DB to NoArchive Log mode and deleted all the archive files available at "/u02/app/oracle/oradata/orcl/archive" using OS command.
    Now I changed the DB to Archive Log Mode and now using RMAN to delete All Archive files which are backed up.
    backup incremental level 0 cumulative device type disk tag '%TAG' database include current controlfile;
    backup device type disk tag '%TAG' archivelog all not backed up delete all input;
    Thanks
    Amith
    Edited by: amith r on Sep 17, 2008 3:00 PM

  • Automate SQL full backup

    Dear Experts,
    In our company we have a SAP 4.7 installed on MS SQL server 2000, Daily we need to stay untill all the users complete their work and fire the db13 backup and SQl query disk backup, for this i have scheduled a job in the SQL server enterprise manager and put a script where in i have to change the script everyday.
    if you can provide me a script where in it changes the date & time of the file name every day automatically
    The script i use is as follows:
    use master
    exec sp_addumpdevice 'disk','PRDF270807_1909','<path>\PRDF270807_1909'
    backup DATABASE PRD to PRDF270807_1909
    Kindly help me in this regards,
    Thnx in advance
    Kishore.

    Hi,
    i use this script to make a backup to a different device every week, you can easily modify this to a daily change. You can add a network share as target as well.
    I have this script scheduled as a SQL Agent Job and it works like a charm.
    Regards
      Clas
    declare @week varchar(3)
    declare @devl varchar(20)
    declare @devp varchar(400)
    declare @dev varchar(20)
    select @week = datepart(ww,getdate())
    set @devl = 'vsdata_week_' + @week + '.db'
    set @devp = 'c:\tools\VSWMI\Backup\vsdata_week_' + @week + '.db'
    if not exists (select name from sys.backup_devices where name = @devl)
            exec sp_addumpdevice 'DISK',@devl,@devp
    declare crs cursor for
            select name from sys.backup_devices
            where name like 'vsdata%' and
                  name <> @devl
    open crs
    fetch next from crs into @dev
    while (@@fetch_status = 0) begin
         exec sp_dropdevice @dev
         fetch next from crs into @dev
    end
    close crs
    deallocate crs
    BACKUP DATABASE [VSData] TO @devl WITH NOFORMAT, NOINIT, 
    NAME = N'VSData-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, 
    STATS = 10, CHECKSUM, CONTINUE_AFTER_ERROR

  • Sharepoint full farm backup generates sql logs for search application differential backups

    We are running full farm backups for sharepoint. Backup completes normally but SQL logs are generated for differential backups for search service application.
    it says something like:
    Database differential changes were backed up: database: search_serv.......
    Thanks,
    Basit

    This can happen for a few reasons, such as is disk contention or network issues. Are you backing up to a shared directory on the SQL Server? If not, try that.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Incomplete Recovery Fails using Full hot backup & Archive logs !!

    Hello DBA's !!
    I am doing on Recovery scenario where I have taken One full hot backup of my Portal Database (EPR) and Restored it on New Test Server. Also I restored Archive logs from last full hot backup for next 6 days. Also I restored the latest Control file (binary) to their original locations. Now, I started the recovery scenario as follows....
    1) Installed Oracle 10.2.0.2 compatible with restored version of oracle.
    2) Configured tnsnames.ora, listener.ora, sqlnet.ora with hostname of Test server.
    3) Restored all Hot backup files from Tape to Test Server.
    4) Restored all archive logs from tape to Test server.
    5) Restored Latest Binary Control file from Tape to Test Server.
    6) Now, Started recovery using following command from SQL prompt.
    SQL> recover database until cancel using backup controlfile;
    7) Open database after Recovery Completion using RESETLOGS option.
    Now in Above scenario I completed steps upto 5) successfully. But when I execute the step 6) the recovery completes with Warning : Recovery completed but OPEN RESETLOGS may throw error " system file needs more recovery to be consistent " . Please find the following snapshot ....
    ORA-00279: change 7001816252 generated at 01/13/2008 12:53:05 needed for thread
    1
    ORA-00289: suggestion : /oracle/EPR/oraarch/1_9624_601570270.dbf
    ORA-00280: change 7001816252 for thread 1 is in sequence #9624
    ORA-00278: log file '/oracle/EPR/oraarch/1_9623_601570270.dbf' no longer needed
    for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    SQL> SQL> SQL> SQL> SQL> SQL> SQL>
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    Let me know What should be the reason behind recovery failure !
    Note : I tried to Open the database using Last Full Hot Backup only & not applying any archives. Then Database Opens successfully. It means my Database Installation & Configuration is OK !
    Please Let me know why my Incomplete Recovery using Archive logs Goes Fail ?
    Atul Patil.

    oh you made up a new thread so here again:
    there is nothing wrong.
    You restored your backup, archives etc.
    you started your recovery and oracle applyed all archives but the archive
    '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    does not exist because it represents your current online redo log file and that is not present.
    the recovery process cancels by itself.
    the solution is:
    restart your recovery process with:
    recover database until cancel using backup controlfile
    and when oracle suggests you '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    type cancel!
    now you should be able to open your database with open resetlogs.

  • Problem Backup ( error 4027)

    Dear all,
    I am facing some problem in SAP Backup through DB13. Backup has failed at the end. But through SQL Server enterprise manager backup is working fine backup option also working.
    I have tried few option such as insert new tape for backup, select format option etc but problem is still same.
    Please could you people give me any suggestion to resolve this problem.
    Please see the system and error details below.
    Thanks
    system configuration details:
    Database: Microsoft SQL Server  2000 - 8.00.929 (Intel X86) Enterprise Edition
    Error details is:
    DB-Name:   SAI                                                    
    Lastrun:   20080520 23:55:00                                      
    Nextrun:   20080527 23:55:00                                      
    Created:   2006-02-07 13:49:28.                                   
    Command:    sai.sap_backup_databases                              
                 @dblist="SAI,master,msdb",@r3db="SAI",@bdev="R3D     
               UMP0",@format=1,@jobname="SAP CCMS Full DB Backup      
               of SAI,master,msdb [20060207134928]"                   
    Descript: SAP CCMS JOB                                                                               
    Task history information ***********                  
    For run:   20080520 23:55:00                                      
    Status:    0          (failure)   (see DB error log)              
    Message:   4027                                                   
    Severity:  16                                                     
    Duration:  0 hours, 0 minutes, 3 seconds                          
    Last msg:  Executed as user: OFFILOG-2\Administrator. DBCC ex     
               ecution completed. If DBCC printed error messages,     
                contact your system administrator. [SQLSTATE 0100     
               0] (Message 2528)  Mount tape for BACKUP DATABASE      
               of database 'SAI'. [SQLSTATE 42000] (Error 4027).      
                The step failed.

    As for renaming your working catalog, I could have sworn there was an option for it.. however, I can't find it...
    So you have a few options here.  First, you could select all of your images, and then "Export as Catalog".  Enter the new name and location, and wait or it to export everything.  Just be sure NOT to check mark the "include negatives", or you'll duplicate all of your images!
    The second way is to use the operating system to rename two files. Just browse to it's location (if you're not sure, use file->catalog settings to show you the current one and path to it).  Make sure you have exited LR, then rename the file in the OS.  There are two files you need to rename:  catalog.lrcat, and catalog previews.lrdat.
    MAKE SURE YOU SPELL THEM CORRECTLY!    I.e., don't change the extensions.  Just change the names.  You can delete the previews.lrdat if you wish to recreate your preview files.
    When you start LR again, it will ask you if you want to create a new catalog or browse to find one.  Select browse, and browse down until you select your new catalog name.  And you're done.
    As for backing up, when you hit catalog settings, you'll find settings to backup your catalog.  There isn't a name in that section, but when the backup actually starts (for example, pick "backup next time LR exits, and then exit LR) it will give you the opertunity to choose the location you want to back up the file to.
    Cheers!

  • Backup error occured, Error code 3700 "hostfile_error"

    HI,
    We are trying to MaxDB database backup to tape and getting below error.
    ===================================================================================================
    ERR
    -24988,ERR_SQL: SQL error
    -104,DBM command impossible at this time
    3,Data backup failed
    Servertask Info: because Error in backup task occured
    Job 1 (Backup / Restore Medium Task) [executing] WaitingT204 Result=3700
    Error in backup task occured, Error code 3700 "hostfile_error"
    Backupmedium #1 (
    .\pipe\backup) I/O Error
    Backup error occured, Error code 3700 "hostfile_error"
    ===================================================================================================
    I went through the previous threads regarding the same error but couldn't find a solution.
    System Info is Win 2008, MaxDB version 7.7.07.14.
    Here is the complete log, please suggest what can be done.
    ===================================================================================================
    DBA Action starts:
    Timestamp: 20110831100408   Function: sda   Object: DATA
    2011-08-31 10:04:08
    Using environment variable 'TEMP' with value 'C:\Windows\TEMP' as directory for temporary files and pipes.
    Using connection to Backint for MaxDB Interface.
    2011-08-31 10:04:09
    Checking existence and configuration of Backint for MaxDB.
        Using environment variable 'BSI_ENV' with value 'G:\sapdb\data\wrk\MXP\bsi.env' as path of the configuration file of Backint
        Reading the Backint for MaxDB configuration file 'G:\sapdb\data\wrk\MXP\bsi.env'.
            Found keyword 'BACKINT' with value 'D:\sapdb\MXP\db\bin\backint.exe'.
            Found keyword 'INPUT' with value 'G:\sapdb\data\wrk\backint\sapdb.in'.
            Found keyword 'OUTPUT' with value 'G:\sapdb\data\wrk\backint\sapdb.out'.
            Found keyword 'ERROROUTPUT' with value 'G:\sapdb\data\wrk\backint\sapdb.err'.
            Found keyword 'PARAMETERFILE' with value 'G:\sapdb\data\wrk\MXP\maxdb_config.par'.
            Found keyword 'ORIGINAL_RUNDIRECTORY' with value 'G:\sapdb\MXP\sapdata'.
        Finished reading of the Backint for MaxDB configuration file.
        Using 'D:\sapdb\MXP\db\bin\backint.exe' as Backint for MaxDB program.
        Using 'G:\sapdb\data\wrk\backint\sapdb.in' as input file for Backint for MaxDB.
        Using 'G:\sapdb\data\wrk\backint\sapdb.out' as output file for Backint for MaxDB.
        Using 'G:\sapdb\data\wrk\backint\sapdb.err' as error output file for Backint for MaxDB.
        Using 'G:\sapdb\data\wrk\MXP\maxdb_config.par' as parameter file for Backint for MaxDB.
        Using '300' seconds as timeout for Backint for MaxDB in the case of success.
        Using '300' seconds as timeout for Backint for MaxDB in the case of failure.
        Using 'G:\sapdb\MXP\sapdata\dbm.knl' as backup history of a database to migrate.
        Using 'G:\sapdb\MXP\sapdata\dbm.ebf' as external backup history of a database to migrate.
        Checking availability of backups using backint's inquire function.
    Check passed successful.
    2011-08-31 10:04:09
    Checking medium.
    Check passed successfully.
    2011-08-31 10:04:09
    Preparing backup.
        Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
        Setting environment variable 'BI_REQUEST' to value 'NEW'.
        Setting environment variable 'BI_BACKUP' to value 'FULL'.
        Constructed Backint for MaxDB call 'D:\sapdb\MXP\db\bin\backint.exe -u MXP -f backup -t file -p G:\sapdb\data\wrk\MXP\maxdb_
        Created temporary file 'G:\sapdb\data\wrk\backint\sapdb.out' as output for Backint for MaxDB.
        Created temporary file 'G:\sapdb\data\wrk\backint\sapdb.err' as error output for Backint for MaxDB.
        Writing '
    .\pipe\backup #PIPE' to the input file.
    Prepare passed successfully.
    2011-08-31 10:04:09
    Starting database action for
         the backup.
        Requesting 'SAVE DATA QUICK TO '
    .\pipe\backup' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'BackupMXP'' from db-kernel.
    The database is working on the request.
    2011-08-31 10:04:09
    Waiting until database has prepared the backup.
        Asking for state of database.
        2011-08-31 10:04:09 Database is still preparing the backup.
        Waiting 1 second ...
        Done.
        Asking for state of database.
        2011-08-31 10:04:10 Database has finished preparation of the backup.
    The database has prepared the backup successfully.
    2011-08-31 10:04:10
    Starting Backint for MaxDB.
        Starting Backint for MaxDB process 'D:\sapdb\MXP\db\bin\backint.exe -u MXP -f backup -t file -p G:\sapdb\data\wrk\MXP\maxdb_
        Process was started successfully.
    Backint for MaxDB has been started successfully.
    2011-08-31 10:04:10
    Waiting for end of the backup operation.
        2011-08-31 10:04:10 The backup tool is running.
        2011-08-31 10:04:10 The database is working on the request.
        2011-08-31 10:04:15 The backup tool is running.
        2011-08-31 10:04:15 The database is working on the request.
        2011-08-31 10:04:25 The backup tool is running.
        2011-08-31 10:04:25 The database is working on the request.
        2011-08-31 10:04:40 The backup tool is running.
        2011-08-31 10:04:40 The database is working on the request.
        2011-08-31 10:05:00 The backup tool is running.
        2011-08-31 10:05:00 The database is working on the request.
        2011-08-31 10:05:13 The backup tool process has finished work with return code 2.
        2011-08-31 10:05:13 The database has finished work on the request.
        Receiving a reply from the database kernel.
        Got the following reply from db-kernel:
            SQL-Code              :-903
    The backup operation has ended.
    2011-08-31 10:05:13
    Filling reply buffer.
        Have encountered error -24920:
            The backup tool failed with 2 as sum of exit codes. The database request failed with error -903.
        Constructed the following reply:
            ERR
            -24920,ERR_BACKUPOP: backup operation was unsuccessful
            The backup tool failed with 2 as sum of exit codes. The database request failed with error -903.
    Reply buffer filled.
    2011-08-31 10:05:13
    Cleaning up.
        Copying output of Backint for MaxDB to this file.
    Begin of output of Backint for MaxDB (G:\sapdb\data\wrk\backint\sapdb.out)----
            Reading parameter file G:\sapdb\data\wrk\MXP\maxdb_config.par.
            Using staging area D:\TEMP\STAGE1 with a size of 1048576000 bytes.
            Using staging area D:\TEMP\STAGE2 with a size of 1048576000 bytes.
            Using 2 file per Backint for Oracle call.
            Using C:\Program Files\Tivoli\TSM\tdp_r3\ora64\backint.exe as Backint for Oracle.
            Using G:\sapdb\data\wrk\MXP\initMXP.utl as parameterfile of Backint for Oracle.
            Using G:\sapdb\data\wrk\MXP\BackintHistory.txt as history file.
            Using G:\sapdb\data\wrk\backint\backint1.in as input of Backint for Oracle.
            Using G:\sapdb\data\wrk\backint\backint1.out as output of Backint for Oracle.
            Using G:\sapdb\data\wrk\backint\backint1.err as error output of Backint for Oracle.
            Using a maximal delay for a Backint for Oracle call of 3600 seconds.
            Reading input file G:\sapdb\data\wrk\backint\sapdb.in.
            Backing up pipe
    .\pipe\backup.
            Found 1 entry in the input file.
            Starting the backup.
            Starting pipe2file program(s).
            Waiting for creation of temporary files.
            1 temporary file is available for backup.
            Calling Backint for Oracle at 2011-08-31 10:05:12.
            Calling 'C:\Program Files\Tivoli\TSM\tdp_r3\ora64\backint.exe -u MXP -f backup -t file -p G:\sapdb\data\wrk\MXP\initMXP.
            Backint for Oracle ended at 2011-08-31 10:05:13 with return code 2.
            Backint for Oracle output:
            Backint for Oracle output:                          Data Protection for SAP(R)
            Backint for Oracle output:
            Backint for Oracle output:              Interface between BR*Tools and Tivoli Storage Manager
            Backint for Oracle output:              - Version 6, Release 1, Modification 0.0  for Win x64 -
            Backint for Oracle output:                    Build: 358  compiled on Nov  4 2008
            Backint for Oracle output:         (c) Copyright IBM Corporation, 1996, 2008, All Rights Reserved.
            Backint for Oracle output:
            Backint for Oracle output: BKI2027I: Using TSM-API version 6.2.3.1 (compiled with 5.3.2.0).
            Backint for Oracle output: BKI2000I: Successfully connected to ProLE on port tdpr3ora64.
            Backint for Oracle output: BKI0005I: Start of program at: 08/31/11 10:05:12 .
            Backint for Oracle output: BKI1216E: There are no backup management classes available.
            Backint for Oracle output: BKI1215I: Average transmission rate was 0.000 GB/h (0.000 MB/sec).
            Backint for Oracle output: BKI1227I: Average compression factor was 1.000.
            Backint for Oracle output: BKI0020I: End of program at: 08/31/11 10:05:13 .
            Backint for Oracle output: BKI0021I: Elapsed time: 01 sec .
            Backint for Oracle output: BKI0024I: Return code is: 2.
            Backint for Oracle output:
            Backint for Oracle error output:
            Finished the backup unsuccessfully.
            #ERROR
    .\pipe\backup
    End of output of Backint for MaxDB (G:\sapdb\data\wrk\backint\sapdb.out)----
        Removed Backint for MaxDB's temporary output file 'G:\sapdb\data\wrk\backint\sapdb.out'.
        Copying error output of Backint for MaxDB to this file.
    Begin of error output of Backint for MaxDB (G:\sapdb\data\wrk\backint\sapdb.err)----
            Backint for Oracle was unsuccessful.
    End of error output of Backint for MaxDB (G:\sapdb\data\wrk\backint\sapdb.err)----
        Removed Backint for MaxDB's temporary error output file 'G:\sapdb\data\wrk\backint\sapdb.err'.
        Removed the Backint for MaxDB input file 'G:\sapdb\data\wrk\backint\sapdb.in'.
    Have finished clean up successfully.
    SAVE/RESTORE request:
    SAVE DATA CANCEL
    SAVE/RESTORE request accepted:
    OK
    SAVE/RESTORE result:
    ERR
    -24988,ERR_SQL: SQL error
    -104,DBM command impossible at this time
    3,Data backup failed
    Servertask Info: because Error in backup task occured
    Job 1 (Backup / Restore Medium Task) [executing] WaitingT204 Result=3700
    Error in backup task occured, Error code 3700 "hostfile_error"
    Backupmedium #1 (
    .\pipe\backup) I/O Error
    Backup error occured, Error code 3700 "hostfile_error"
    DBA Action ends:
    Timestamp: 20110831100513   State:    Failure
    ===================================================================================================

    Hi Markus,
    Thanks for quick response. I did checked KNLMSG file and it has XML file kind of information where as dbm.prt has some information and here it is
    =================================================================================================
    2011-08-31 10:18:30 0x00009ecc INF          1 DBMSrvCo A DBM Server client connection was established at 2011-08-31 10:18:29 (client process has process ID 24352 on computer 10.1.47.21).
    2011-08-31 10:18:30 0x00009ecc INF        283 DBMSrv   Command 'auto_extend show' is being executed.
    2011-08-31 10:18:30 0x00009ecc INF        419 DBMSrv   Command 'auto_extend' has ended with return code 0.
    2011-08-31 10:18:30 0x00009ecc INF        283 DBMSrv   Command 'auto_update_statistics show' is being executed.
    2011-08-31 10:18:31 0x00009ecc INF        419 DBMSrv   Command 'auto_update_statistics' has ended with return code 0.
    2011-08-31 10:18:41 0x00009ecc INF        283 DBMSrv   Command 'backup_save "Backup" DATA RECOVERY' is being executed.
    2011-08-31 10:18:42 0x00009ecc INF          1 DBMKnl   Sending an administrative statement to the database
                        0x00009ecc INF          8 DBMKnl   Statement:  SAVE DATA QUICK TO '
    .\pipe\backup' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'Backup'
    2011-08-31 10:19:47 0x00009ecc ERR          3 DBMKnl   Received the result of an administrative statement from the database
                        0x00009ecc ERR          9 DBMKnl   Statement:  SAVE DATA QUICK TO '
    .\pipe\backup' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'Backup'
                        0x00009ecc ERR         10 DBMKnl   Returncode: -903
                        0x00009ecc ERR          5 DBMKnl   Errortext:  Host file I/O error
    2011-08-31 10:19:47 0x00009ecc ERR     -24580 DBMSrv   ERR_COMMAND_FAILED: Command 'backup_save' has ended and failed with return code -24920.
                        0x00009ecc ERR     -24920 DBMSrv   ERR_BACKUPOP: backup operation was unsuccessful
                        0x00009ecc ERR     -24778 DBMSrv   The backup tool failed with 2 as sum of exit codes. The database request failed with error -903.
    2011-08-31 10:19:53 0x00009ecc INF          2 DBMSrvCo A DBM Server client connection was released (client process has process ID 24352 on computer 10.1.47.21).
    2011-08-31 10:19:53 0x00009ecc INF          1 DBMKnl   Sending an administrative statement to the database
                        0x00009ecc INF          8 DBMKnl   Statement:  SAVE DATA CANCEL
    2011-08-31 10:19:53 0x00009ecc ERR          3 DBMKnl   Received the result of an administrative statement from the database
                        0x00009ecc ERR          9 DBMKnl   Statement:  SAVE DATA CANCEL
                        0x00009ecc ERR         10 DBMKnl   Returncode: -104
                        0x00009ecc ERR          5 DBMKnl   Errortext:  DBM command impossible at this time

  • ORA-06502: PL/SQL: numeric or value error: character string buffer too smal

    Hi Guys I am getting error ORA-06502: PL/SQL: numeric or value error: character string buffer too small as it said i thought it would be issue with length of feild but i tried to change is nothihg work i am posing code here if any one can please help me on this
    PROCEDURE REPORT
    p_rpt_from_dt in varchar2,
    p_rpt_to_dt in varchar2,
    p_apvr_id in tc_wkr.tc_row_id%type default NULL,
    p_rpt_type in varchar2 default NULL,
    p_backto_pg in varchar2 default NULL
    IS
    v_rpt_from_dt date := var_to_date(p_rpt_from_dt);
    v_rpt_to_dt date := var_to_date(p_rpt_to_dt);
    v_time_str varchar2(15);
    cursor period_cur
    cp_from_dt date,
    cp_to_dt date
    is
    select beg_dt, end_dt
    from jmcs_wk_tprd
    where beg_dt <= cp_to_dt -- report end date
    and end_dt >= cp_from_dt -- report start date
    BEGIN
    if sys_security('tcsys', 'tc_reports') != 'GRANTED' then
    apps_main.access_denied;
    return;
    end if;
    if lg_debug_fl then
    v_time_str := to_char(lg_sysdate, 'hh:mi:ss a.m.');
    else
    v_time_str := tc_time(lg_sysdate);
    end if;
    /* get the time card time periods applicable to the report */
    lga_tc_strt_dt := lga_null_date;
    for recs in period_cur(v_rpt_from_dt, v_rpt_to_dt) loop
    lga_tc_strt_dt(lga_tc_strt_dt.count+1) := recs.beg_dt;
    lga_tc_end_dt(lga_tc_end_dt.count+1) := recs.end_dt;
    end loop;
    --if p_apvr_id is NULL then
    if p_rpt_type != 'D' then
    tc_reporting.reports_header
    1,
    'Time Card Status Report',
    'for '||dd_mon_yyyy(v_rpt_from_dt)||' through '||dd_mon_yyyy(v_rpt_to_dt)||'<BR>'||
    'Report Date: '||dd_mon_yyyy(lg_sysdate)||' Time: '||v_time_str,
    NULL,
    NULL,
    NULL,
    'javascript:window.close()', /* Backto */
    'alert(''Reminder! Click on logo when you are ready to return to previous page'')'
    end if;
    if p_apvr_id is NULL then
    sub_STATUS_BD_ALPHA (v_rpt_from_dt, v_rpt_to_dt, TRUE, p_rpt_type, p_apvr_id);
    else
    htp.p('<!-- Selected Approver ('||p_apvr_id||') -->');
    sub_STATUS_BD_APVR (v_rpt_from_dt, v_rpt_to_dt, p_rpt_type, p_apvr_id);
    end if;
    htp.p('</body></html>');
    EXCEPTION
    WHEN OTHERS THEN
    error_proc(SQLERRM, SQLCODE, owa_util.get_cgi_env('PATH_INFO'));
    htp.p('Error Code is :'||SQLERRM);
    END REPORT;
    This package in trun call other procedure like below
    PROCEDURE sub_STATUS_BD_ALPHA
    p_rpt_from_dt in date,
    p_rpt_to_dt in date,
    p_display_hdr in boolean,
    p_rpt_type in varchar2 default 'B',
    p_apvr_id in tc_wkr.tc_row_id%type default NULL,
    p_tcs_user_id in tc_wkr.tc_row_id%type default NULL
    IS
    v_time_str varchar2(15);
    v_apvr_id tc_wkr.tc_row_id%type := 0;
    v_a_user_id tc_wkr.tc_row_id%type; -- approver tcs_user_id
    v_cnt integer := 0;
    v_people_cnt integer := 0;
    v_stat_cd varchar2(2000);
    v_display_fl boolean := FALSE;
    /*===========================================================================*/
    cursor people_cur
    cp_from_dt in date,
    cp_to_dt in date
    is
    select
    d_full_nm_lfm as name,
    tc_row_id as tcs_user_id,
    tcw_typ as pay_typ,
    tcw_id as pay_id,
    sys_strt_date as sys_strt_dt,
    sys_end_dt
    from tc_wkr
    where sys_strt_date <= cp_to_dt
    and nvl(sys_end_dt, cp_to_dt) >= cp_from_dt
    order by upper(d_full_nm_lfm);
    /* find the current or the most recent (if no current) approver */
    cursor apvr_cur
    cp_tcs_user_id in tc_wkr.tc_row_id%type
    is
    select
    a.f_tc_apvr_id as fk_tcs_apvr_id,
    w.d_full_nm_lfm as apvr_name,
    w.tcw_typ as apvr_pay_typ,
    w.tcw_id as apvr_pay_id,
    a.strt_dt,
    a.end_dt
    from tc_wkr w, tc_ap_asmt a
    where a.f_tc_wkr_id = cp_tcs_user_id
    and w.tc_row_id = a.f_tc_apvr_id
    order by a.strt_dt desc;
    /* list of existing time cards UNION required time cards */
    cursor tc_cur
    cp_tcs_user_id in tc_wkr.tc_row_id%type, /* who's time cards */
    cp_from_dt in date, /* report period from date */
    cp_to_dt in date /* report period to date */
    is
    select
    stat_cd,
    strt_dt,
    end_dt
    from tc
    where strt_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and fk_tc_wkrtcw_id = cp_tcs_user_id
    UNION
    select
    'Required' as stat_cd,
    beg_dt as strt_dt,
    end_dt
    from jmcs_wk_tprd
    where beg_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and beg_dt not in (
    select strt_dt
    from tc
    where strt_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and fk_tc_wkrtcw_id = cp_tcs_user_id
    order by strt_dt;
    BEGIN
    if lg_debug_fl then
    v_time_str := to_char(lg_sysdate, 'hh:mi:ss a.m.');
    else
    v_time_str := tc_time(lg_sysdate);
    end if;
    if p_apvr_id > 0 then
    lga_report_out := lga_report_out_null;
    v_apvr_id := p_apvr_id;
    lga_apvr := lga_apvr_null;
    select
    d_full_nm_lfm,
    tc_row_id,
    tcw_id,
    tcw_typ
    into
    lga_apvr(1).apvr_name,
    lga_apvr(1).apvr_tcs_id,
    lga_apvr(1).apvr_pay_id,
    lga_apvr(1).apvr_pay_typ
    from tc_wkr
    where tc_row_id = v_apvr_id;
    if lga_apvr(1).apvr_pay_typ != 'S' then
    select decode(bend_empl_fl, 'Y', 'E', 'W')
    into lga_apvr(1).apvr_pay_typ
    from empl
    where empl_id = lga_apvr(1).apvr_pay_id;
    end if;
    end if;
    if p_display_hdr then
    if lga_tc_strt_dt.count > 6 then /* more than 6 time periods (1 month) */
    lga_width(1) := to_char(.15 * lg_page_width_standard);
    lga_width(2) := to_char(.08 * lg_page_width_standard);
    for i in 1..lga_tc_strt_dt.count loop
    lga_width(lga_width.count+1) := to_char(.09 * lg_page_width_standard);
    end loop;
    lg_page_width_standard := to_number(lga_width(1)) + to_number(lga_width(2));
    if nvl(p_apvr_id, 0) = 0 then
    lg_page_width_standard := lg_page_width_standard * 2;
    end if;
    htp.p('<!-- page width = '||lg_page_width_standard||'-->');
    for i in 3..lga_width.count loop
    lg_page_width_standard := lg_page_width_standard + to_number(lga_width(i));
    htp.p('<!-- page width = '||lg_page_width_standard||'-->');
    end loop;
    lg_page_width := to_char(lg_page_width_standard);
    else
    lga_width(1) := '15%';
    lga_width(2) := '8%';
    lga_width(3) := '9%';
    lga_width(4) := '9%';
    lga_width(5) := '9%';
    lga_width(6) := '9%';
    lga_width(7) := '9%';
    lga_width(8) := '9%';
    end if;
    sub_DETAIL_PAGE_HD(p_apvr_id);
    end if;
    /* cursor loop */
    for p in people_cur(p_rpt_from_dt, p_rpt_to_dt) loop
    /* is/was this person assigned to the selected approver for the report period */
    v_display_fl := FALSE;
    if nvl(p_tcs_user_id, 0) > 0 then
    if p_tcs_user_id = p.tcs_user_id then
    htp.p('<br>Selected User');
    v_display_fl := TRUE;
    end if;
    elsif nvl(p_apvr_id, 0) = 0 then
    if nvl(p_apvr_id, 0) = 0 then
    v_display_fl := TRUE;
    elsif p_apvr_id > 0 or p_apvr_id = -1 then
    v_display_fl := fct_ASSIGNED_APVR(p.tcs_user_id, p_apvr_id, p_rpt_from_dt, p_rpt_to_dt);
    end if;
    if v_display_fl then
    v_people_cnt := v_people_cnt + 1;
    lg_tcs_owner_info.USER_ID := p.tcs_user_id;
    lg_tcs_owner_info.PAY_ID := p.pay_id;
    lg_tcs_owner_info.PAY_TYPE := p.pay_typ;
    lg_tcs_owner_info.SYS_STRT_DT := p.sys_strt_dt;
    lg_tcs_owner_info.TERM_DT := p.sys_end_dt;
    if p.pay_typ = 'S' then
    begin
    select wrk_hire_dt
    into lg_tcs_owner_info.hire_dt
    from subcntr
    where sub_id = p.pay_id;
    exception
    when no_data_found then
    tc_debug.html_message('subcntr.pay_id('||p.pay_id||')');
    end;
    else
    select
    wrk_hire_dt,
    decode(bend_empl_fl, 'Y', 'E', 'W')
    into
    lg_tcs_owner_info.hire_dt,
    lg_tcs_owner_info.pay_type
    from empl
    where empl_id = lg_tcs_owner_info.PAY_ID;
    end if;
    if lga_report_out.count = 0 then
    lga_report_out(lga_report_out.count+1) := '<table border="1" cellpadding="3" width="'||lg_page_width||'">';
    end if;
    if mod(v_people_cnt,2) = 1 then
    lga_report_out(lga_report_out.count+1) := ('<tr bgcolor="'||lg_odd_bgcolor||'">');
    else
    lga_report_out(lga_report_out.count+1) := ('<tr bgcolor="'||lg_even_bgcolor||'">');
    end if;
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>'||p.name||'</font></td >');
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>'||p.pay_typ||'-'||lpad(p.pay_id,4,'0')||'</font></td >');
    if nvl(p_apvr_id, 0) > 0 then /* Single Approver */
    /* need approver ID for time card "status" */
    lga_apvr := lga_apvr_null; /* clear the approver id array */
    lga_apvr(1).apvr_tcs_id := p_apvr_id;
    elsif nvl(p_apvr_id, 0) = 0 then /* ALL Approvers */
    lga_apvr := lga_apvr_null; /* clear the approver id array */
    v_cnt := 0;
    for ap in apvr_cur (p.tcs_user_id) loop
    if v_cnt = 0 then
    /* most recent approver may not be the applicable approver */
    v_cnt := 1;
    lga_apvr(v_cnt).apvr_name := ap.apvr_name; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_tcs_id := ap.fk_tcs_apvr_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_id := ap.apvr_pay_id; -- identify multiple approvers for the "status"
    v_apvr_id := ap.fk_tcs_apvr_id;
    if ap.apvr_pay_typ = 'S' then
    lga_apvr(v_cnt).apvr_pay_typ := ap.apvr_pay_typ; -- identify multiple approvers for the "status"
    else
    select decode(bend_empl_fl, 'Y', 'E', 'W')
    into lga_apvr(1).apvr_pay_typ
    from empl
    where empl_id = lga_apvr(1).apvr_pay_id;
    end if;
    end if;
    if ap.strt_dt <= p_rpt_to_dt and nvl(ap.end_dt, p_rpt_to_dt) >= p_rpt_from_dt then
    /* approver record */
    lg_tcs_owner_info.APVR_ID := ap.fk_tcs_apvr_id;
    lg_tcs_owner_info.APVR_STRT_DT := ap.strt_dt;
    lg_tcs_owner_info.APVR_END_DT := ap.end_dt;
    don't enter same approver name multiple times
    when same approver has been assigned more than once
    Example: approver1, approver_2, approver_1 (change back to approver 1)
    for i in 1..lga_apvr.count loop
    v_apvr_id := ap.fk_tcs_apvr_id;
    if lga_apvr(i).apvr_tcs_id = ap.fk_tcs_apvr_id then
    /* don't add again */
    v_apvr_id := NULL;
    exit;
    end if;
    end loop;
    if v_apvr_id is not NULL then
    v_cnt := v_cnt + 1;
    lga_apvr(v_cnt).apvr_name := ap.apvr_name; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_tcs_id := ap.fk_tcs_apvr_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_id := ap.apvr_pay_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_typ := ap.apvr_pay_typ; -- identify multiple approvers for the "status"
    end if;
    end if;
    end loop;
    /* list approver pay IDs */
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    if lga_apvr.count = 0 then
    lga_report_out(lga_report_out.count+1) := 'Approver Unassigned';
    else
    for i in 1..lga_apvr.count loop
    if i > 1 then
    lga_report_out(lga_report_out.count+1) := '<br>';
    end if;
    lga_report_out(lga_report_out.count+1) := (lga_apvr(i).apvr_name);
    end loop;
    end if;
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    if lga_apvr.count = 0 then
    lga_report_out(lga_report_out.count+1) := 'N/A';
    else
    for i in 1..lga_apvr.count loop
    if i > 1 then
    lga_report_out(lga_report_out.count+1) := '<br>';
    end if;
    lga_report_out(lga_report_out.count+1) := (lga_apvr(i).apvr_pay_typ)||'-'||lpad(lga_apvr(i).apvr_pay_id,4,'0');
    end loop;
    end if;
    lga_report_out(lga_report_out.count+1) := ('</font></td >');
    end if;
    for t in tc_cur(p.tcs_user_id, p_rpt_from_dt, p_rpt_to_dt) loop
    htp.p('<! '||t.strt_dt||', '||t.end_dt||', '||t.stat_cd||' -->');
    --lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    --lga_report_out(lga_report_out.count+1) := (t.stat_cd);
    --lga_report_out(lga_report_out.count+1) := ('</font></td >');
    /* has the selected approver has completed processing */
    if p_apvr_id > 0
    and v_apvr_id = p_apvr_id
    and v_a_user_id != p_apvr_id
    then
    exit;
    end if;
    for ap in apvr_cur (p.tcs_user_id) loop
    if apvr_cur%rowcount = 1 then
    /* most recent approver assigned */
    lg_tcs_owner_info.apvr_id := ap.fk_tcs_apvr_id;
    end if;
    if ap.strt_dt <= t.end_dt and nvl(ap.end_dt, t.end_dt) >= t.strt_dt then
    /* approver assigned during time card period */
    lg_tcs_owner_info.apvr_id := ap.fk_tcs_apvr_id;
    exit;
    end if;
    end loop;
    lg_tc_status.strt_dt := t.strt_dt;
    lg_tc_status.end_dt := t.end_dt;
    lg_tc_status.stat_cd := t.stat_cd;
    v_stat_cd := fct_TC_STATUS(nvl(p_apvr_id, 0));
    lga_report_out(lga_report_out.count+1) := ('<td align="center" valign="top" bgcolor="'||lg_tc_status.bg_color||'">');
    lga_report_out(lga_report_out.count+1) := ('<font size=-2 color='||lg_tc_status.font_color||'>');
    lga_report_out(lga_report_out.count+1) := v_stat_cd;
    lga_report_out(lga_report_out.count+1) := ('</font></td >');
    end loop;
    lga_report_out(lga_report_out.count+1) := '</tr>';
    end if; /* v_display_fl */
    end loop;
    if p_rpt_type in ('B', 'S') then
    lg_page_cnt := lg_page_cnt + 1;
    sub_DISPLAY_STATUS_SUMMARY;
    end if;
    if lga_report_out.count > 0 then
    lga_report_out(lga_report_out.count+1) := '</table>';
    end if;
    if lga_report_out.count > 0 then
    if p_rpt_type = 'B' or p_apvr_id > 0 then
    if p_display_hdr then
    if lg_page_cnt > 0 then
    if p_apvr_id > 0 then /* selected individual approver */
    htp.p('</table>');
    end if;
    htp.p('<br style="page-break-after:always">');
                        htp.p('<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->');
                        htp.p('<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->');
    end if;
    lg_page_cnt := lg_page_cnt + 1;
    tc_reporting.reports_header
    1,
    'Time Card Status Report',
    'for '||dd_mon_yyyy(p_rpt_from_dt)||' through '||dd_mon_yyyy(p_rpt_to_dt)||'<BR>'||
    'Report Date: '||dd_mon_yyyy(lg_sysdate)||' Time: '||v_time_str,
    NULL,
    NULL,
    NULL,
    NULL, -- p_backto_pg, /* Backto */
    'focus()',
    lg_page_cnt
    end if;
    end if;
    if p_rpt_type in ('B', 'D') then
    for i in 1..lga_report_out.count loop
    htp.p(lga_report_out(i));
    end loop;
    end if;
    end if;
    END sub_STATUS_BD_ALPHA;
    Some veriable
    type report_tc_rec is record
    tc_owner_name tc_wkr.d_full_nm_lfm%type,
    o_user_id tc_wkr.tc_row_id%type,
    o_pay_id varchar2(10),
    o_sys_strt_dt date,
    o_sys_end_dt date,
    tc_apvr_name tc_wkr.d_full_nm_lfm%type,
    a_pay_id varchar2(10),
    a_user_id tc_wkr.tc_row_id%type,
    tc_strt_dt date,
    tc_end_dt date,
    tc_stat_cd varchar2(50),
    ap_strt_dt date,
    ap_end_dt date
    /* time card owner information */
    TYPE tcs_owner_info_rec IS RECORD
    USER_ID tc_wkr.tc_row_id%type,
    PAY_ID tc_wkr.tcw_id%type,
    PAY_TYPE tc_wkr.tcw_typ%type,
    HIRE_DT date,
    SYS_STRT_DT date,
    TERM_DT date,
    APVR_ID tc_wkr.tc_row_id%type,
    APVR_STRT_DT date,
    APVR_END_DT date
    /* status code determines report cell font and background colors */
    TYPE tc_status_rec IS RECORD
    STRT_DT date,
    END_DT date,
    STAT_CD tc.stat_cd%type,
    FONT_COLOR varchar2(16),
    BG_COLOR varchar2(16)
    /* count of all time card status for report summary */
    TYPE tc_status_summary_rec IS RECORD
    APPROVED_CNT integer := 0,
    REJECTED_CNT integer := 0,
    SUBMITTED_CNT integer := 0,
    POSTED_CNT integer := 0,
    VERIFIED_CNT integer := 0,
    OPEN_CNT integer := 0,
    NEW_CNT integer := 0,
    REQUIRED_CNT integer := 0,
    TOTAL_CNT integer := 0
    /* determine multiple approvers for individual for selected report period */
    TYPE apvr_rec IS RECORD
    apvr_name tc_wkr.d_full_nm_lfm%type,
    apvr_tcs_id tc_wkr.tc_row_id%type,
    apvr_pay_id tc_wkr.tcw_id%type,
    apvr_pay_typ tc_wkr.tcw_typ%type
    TYPE apvr_id_array_table IS TABLE OF apvr_rec
    index by binary_integer;
    type output_array is table of varchar2(1000)
    index by binary_integer;
    type date_array is table of date
    index by binary_integer;
    type status_array is table of varchar2(1000)
    index by binary_integer;
    type apvr_array is table of number(8)
    index by binary_integer;
    lga_report_out output_array; /* array of HTML code to be output to browser */
    lga_report_out_null output_array; /* null array of HTML code */
    lga_tc_status status_array;
    lga_null_status status_array;
    lga_tc_strt_dt date_array;
    lga_tc_end_dt date_array;
    lga_tc_disp date_array; /* start dates of displayed TC for selected user */
    lga_null_date date_array; /* null array used to clear other date arrays */
    /* LOCAL GLOBAL VARIABLES */
    lg_tcs_owner_info tcs_owner_info_rec; /* time card owner information */
    lg_tc_status tc_status_rec; /* time card status information */
    lg_tc_status_summary tc_status_summary_rec; /* time card count by status */
    lg_tc_rec report_tc_rec; /* time card */
    lga_apvr apvr_id_array_table; /* array of approver Names and Payroll IDs */
    lga_apvr_null apvr_id_array_table; /* clear the lga_apvr array for each user */
    lg_sysdate date := sysdate;
    lg_debug_fl boolean := FALSE;
    lg_debug_owner_id tc_wkr.tc_row_id%type := 9905;
    lg_debug_apvr_id tc_wkr.tc_row_id%type := 1000;
    The chnages i have done its in bold
    Please Advice
    Thanks
    Edited by: Purvik on Aug 25, 2009 11:59 AM

    There is not a chance in the world, especially not knowing column definitions that I, and I suspect most anyone else, is going to wade through this much unformated code looking for an error you couldn't bother to copy in full.
    Either tell us, specifically, the line on which the error is occurring or, better yet, start whacking stuff out of your code until you find the offending definition. That is certainly what I would do. Commenting out sections is a marvelous way to quickly find an issue.
    Before you post again please read the FAQ. It will explain to you how to properly post and use the tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Microsoft SQL Server 2014 Setup error: Wait on the Database Engine recovery handle failed

    Hi,
    Having this annoying error trying to install SQL Server 2014 (RTM). I saw it's been asked several times... But each post seems a different cause and no definitive answer...
    I'm not doing an upgrade, so no "sa account" issue.
    Tried different media. Even three different distributions: trial, Standard and Enterprise.
    Tried disabling Microsoft antivirus/firewall.
    Of course tried restarting, updating, installing, uninstalling, repairing, etc., etc.
    I noticed the users folders under C:\Users weren't created. (Maybe something related to permissions?) After playing around, I managed for the users to be created and the service started. Though I couldn't log in.

    Summary for last "repair" attempt:
    Overall summary:
    Final result: Failed: see details below
    Exit code (Decimal): -2068578302
    Start time: 2014-04-27 23:54:21
    End time: 2014-04-27 23:59:48
    Requested action: Repair
    Setup completed with required actions for features.
    Troubleshooting information for those features:
    Next step for SQLEngine: Use the following information to resolve the error, and then try the setup process again.
    Next step for DQ: Use the following information to resolve the error, and then try the setup process again.
    Next step for FullText: Use the following information to resolve the error, and then try the setup process again.
    Next step for LocalDB: Use the following information to resolve the error, and then try the setup process again.
    Machine Properties:
    Machine name: CHARLY13C
    Machine processor count: 4
    OS version: Windows 8
    OS service pack:
    OS region: United States
    OS language: English (United States)
    OS architecture: x64
    Process architecture: 64 Bit
    OS clustered: No
    Product features discovered:
    Product Instance Instance ID Feature Language Edition Version Clustered Configured
    SQL Server 2012 DENALI MSSQL11.DENALI Database Engine Services 1033 Enterprise Edition 11.1.3128.0 No Yes
    SQL Server 2012 LocalDB 1033 Express Edition 11.1.3128.0 No Yes
    SQL Server 2014 HEKATON MSSQL12.HEKATON Database Engine Services 1033 Enterprise Edition 12.0.2000.8 No Yes
    SQL Server 2014 HEKATON MSSQL12.HEKATON Full-Text and Semantic Extractions for Search 1033 Enterprise Edition 12.0.2000.8 No Yes
    SQL Server 2014 HEKATON MSSQL12.HEKATON Data Quality Services 1033 Enterprise Edition 12.0.2000.8 No Yes
    SQL Server 2014 Management Tools - Basic 1033 Enterprise Evaluation Edition 12.0.2000.8 No Yes
    SQL Server 2014 Management Tools - Complete 1033 Enterprise Evaluation Edition 12.0.2000.8 No Yes
    SQL Server 2014 Client Tools Connectivity 1033 Enterprise Evaluation Edition 12.0.2000.8 No Yes
    SQL Server 2014 LocalDB 1033 Express Edition 12.0.2000.8 No Yes
    Package properties:
    Description: Microsoft SQL Server 2014
    ProductName: SQL Server 2014
    Type: RTM
    Version: 12
    SPLevel: 0
    Installation location: F:\x64\setup\
    Installation edition: Enterprise
    User Input Settings:
    ACTION: Repair
    AGTDOMAINGROUP: <empty>
    AGTSVCACCOUNT: <empty>
    AGTSVCPASSWORD: <empty>
    AGTSVCSTARTUPTYPE: Manual
    ASCONFIGDIR: Config
    ASSVCACCOUNT: <empty>
    ASSVCPASSWORD: <empty>
    CLTSTARTUPTYPE: 0
    CLTSVCACCOUNT: <empty>
    CLTSVCPASSWORD: <empty>
    CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140427_235420\ConfigurationFile.ini
    CTLRSTARTUPTYPE: 0
    CTLRSVCACCOUNT: <empty>
    CTLRSVCPASSWORD: <empty>
    ENU: true
    FAILOVERCLUSTERGROUP: <empty>
    FAILOVERCLUSTERNETWORKNAME: <empty>
    FTSVCACCOUNT: NT Service\MSSQLFDLauncher$HEKATON
    FTSVCPASSWORD: <empty>
    HELP: false
    IACCEPTSQLSERVERLICENSETERMS: false
    INDICATEPROGRESS: false
    INSTANCENAME: HEKATON
    ISSVCACCOUNT: NT AUTHORITY\Network Service
    ISSVCPASSWORD: <empty>
    ISSVCSTARTUPTYPE: Automatic
    QUIET: false
    QUIETSIMPLE: false
    SQLSVCACCOUNT: NT Service\MSSQL$HEKATON
    SQLSVCPASSWORD: <empty>
    UIMODE: Normal
    X86: false
    Configuration file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140427_235420\ConfigurationFile.ini
    Detailed results:
    Feature: Management Tools - Complete
    Status: Passed
    Feature: Client Tools Connectivity
    Status: Passed
    Feature: Management Tools - Basic
    Status: Passed
    Feature: Database Engine Services
    Status: Failed: see logs for details
    Reason for failure: An error occurred during the setup process of the feature.
    Next Step: Use the following information to resolve the error, and then try the setup process again.
    Component name: SQL Server Database Engine Services Instance Features
    Component error code: 0x84B40002
    Error description: The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
    Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402
    Feature: Data Quality Services
    Status: Failed: see logs for details
    Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
    Next Step: Use the following information to resolve the error, and then try the setup process again.
    Component name: SQL Server Database Engine Services Instance Features
    Component error code: 0x84B40002
    Error description: The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
    Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402
    Feature: Full-Text and Semantic Extractions for Search
    Status: Failed: see logs for details
    Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
    Next Step: Use the following information to resolve the error, and then try the setup process again.
    Component name: SQL Server Database Engine Services Instance Features
    Component error code: 0x84B40002
    Error description: The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
    Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402
    Feature: SQL Browser
    Status: Passed
    Feature: SQL Writer
    Status: Passed
    Feature: LocalDB
    Status: Failed: see logs for details
    Reason for failure: An error occurred during the setup process of the feature.
    Next Step: Use the following information to resolve the error, and then try the setup process again.
    Feature: SQL Client Connectivity
    Status: Passed
    Feature: SQL Client Connectivity SDK
    Status: Passed
    Feature: Setup Support Files
    Status: Passed
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140427_235420\SystemConfigurationCheck_Report.htm

  • Recovery using Full BCV backup & archive logs

    Hello DBA's ,
    I have Last Sunday's Full BCV (Buisness Copy Volume) backup (i.e. ..... the tablespaces were taken into Backup mode then Sync the BCV, then split the BCV , take the backup of BCV and take the tabespaces in normal mode in short what we call as HOT BACKUP ........ ) & also I am taking only archive log & control file backup Daily.
    Now I want to Run my database on Different Server using the above FULL BCV & daily backed up Archive logs & Control file.
    Kindly update me- Can I go for following recovery steps for above scenario.
    1) Install ORACLE software on new server.
    2) Restore the last Sunday's FULL BCV (Hot backup)
    3) Restore the archive log from last Sunday's Full BCV backup.
    4) Restore the latest backed up control file.
    5) Mount the database.
    6) Recover the database using backed up control file & archive logs.
    7) Open the database with RESETLOGS option.
    Please Guide me whether I can Fully Recover/Start database on this new server using above steps. ---OR---- " Are there any more files except data files that need to be backed up daily after Full BCV ? " ---OR ---- More suggestions are Welcome.
    I want to test this scenario bcz.
    a) I can't afford daily BCV due to lack of storage with current retention given by buisness.
    b) I can't afford long time taken by RMAN for backup & recovery, as it disturbs my other backup shedules, also RTO should be very low as per my buisness requirement.
    c) Currently we are not thinking for any another Backup options.
    OS platform -- SOLARIS 10
    Database version -- ORACLE 9i/10g
    Atul.

    Hello everybody ....
    Actually I am doing the above scenario practically and I am facing the problem that when I am applying my archive logs using backup controlfile until cancel, the recovery completes upto the available Archive logs/sequence. But it throws the following error along with it ......
    ORA-00279: change 7001791222 generated at 01/13/2008 07:23:42 needed for thread
    1
    ORA-00289: suggestion : /oracle/EPR/oraarch/1_9623_601570270.dbf
    ORA-00280: change 7001791222 for thread 1 is in sequence #9623
    ORA-00278: log file '/oracle/EPR/oraarch/1_9622_601570270.dbf' no longer needed
    for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 7001816252 generated at 01/13/2008 12:53:05 needed for thread
    1
    ORA-00289: suggestion : /oracle/EPR/oraarch/1_9624_601570270.dbf
    ORA-00280: change 7001816252 for thread 1 is in sequence #9624
    ORA-00278: log file '/oracle/EPR/oraarch/1_9623_601570270.dbf' no longer needed
    for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    SQL> SQL> SQL> SQL> SQL> SQL> SQL>
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    So, I opened my database using Last (Sunday's) full hot backup only and it opens successfully without applying any archives.
    Now, my question is... why my database doesn't open with OPEN RESETLOGS option when I am recovering it using command " RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE; "
    I want to recover my database upto Saturday then What should I do ?
    Please help me out !
    Atul.

Maybe you are looking for