User Database Automatic Recovery
Apr 17, 2001
Hi
Yesterday a user has run a storedprocedure which
updates a very transaction table having million of
records , as usual the user killed the process in the
middle of the execution.(which has resulted in rollback
action).
this rollback process blocked other scheduled jobs and
its was running for more than 8 hours without completing
as usual decided to shutdown and restart the sqlserver
while restarting the sql server went into automatic recovery
the following are the log recording
2001-04-17 12:00:01.86 spid9 Recovery progress on database 'ISH' (7): 48 percent.
2001-04-17 12:00:37.89 spid6 Using 'xpstar.dll' version '1998.11.13' to execute extended stored procedure 'sp_MSgetversion'.
2001-04-17 12:02:36.60 spid9 Recovery progress on database 'ISH' (7): 49 percent.
2001-04-17 12:08:12.79 spid9 Recovery progress on database 'ISH' (7): 49 percent.
2001-04-17 12:11:49.90 spid9 Recovery progress on database 'ISH' (7): 50 percent.
2001-04-17 12:11:50.32 spid9 Recovery progress on database 'ISH' (7): 92 percent.
if you see the log reading from 50% jumps to 92 % and the automatic recovery
process is running from another 5 hours (now not able to open the database)
in order to avoid the sql server going into automatic recovery mode (usually the dba use to update the master.sysdatabase table the status column with some
magic number to set the database into emergency mode) but i followed my own style (deleting the reocord for the user database from sysdatabases)
and restarted the sql server , and used my monday tape backup (complete bkup) to recover the database. In the recovery option i used force restore over existing database (hoping that this will reduce the database recovery time ,bcaus the data file (mdf and ldf ) need not to be created.
but the result :- after running six hours of loading data from tape ( i am getting the following reading in the log file)
2001-04-17 16:15:58.40 spid7 Starting up database 'ISH'.
2001-04-17 16:15:58.40 spid7 Opening file F:DATABASEISH.mdf.
2001-04-17 16:15:58.46 spid7 Opening file F:DatabaseISH_1.mdf.
2001-04-17 16:15:58.48 spid7 Opening file G:Databaseish_5_data_Data.NDF.
2001-04-17 16:15:58.49 spid7 Opening file G:Databasesrv_fg_data1.NDF.
2001-04-17 16:15:58.49 spid7 Opening file G:Databasesrv_fg_data3.NDF.
2001-04-17 16:15:58.53 spid7 Opening file G:Databasesrvindex_fg_data1.NDF.
2001-04-17 16:15:58.54 spid7 Opening file F:DATABASEISH_3.mdf.
2001-04-17 16:15:58.57 spid7 Opening file F:databaseISH_4.mdf.
2001-04-17 16:15:58.59 spid7 Opening file F:databaseISH_2.mdf.
2001-04-17 16:15:58.60 spid7 Opening file G:Databasesrv_fg_data2.NDF.
2001-04-17 16:15:58.62 spid7 Opening file G:DATABASEISH_log.ldf.
2001-04-17 16:15:58.64 spid7 Opening file G:databaseISH_log_1.ldf.
2001-04-17 16:15:58.65 spid7 Bypassing recovery for database 'ISH' because it is marked IN LOAD.
realy do not what is happening in the background.(if its oracle the dba has
the control over the database . In sql server has the control over the dba)
any one who has any idea on sql server recovery (the size of the database is
22 gb which is recovered and tape device is hp sure store DAT 40 E (DSS-4,4MM TAPE). Thanks in advance
Have a good day (not for me laaa)
Sethu
View 1 Replies
ADVERTISEMENT
Mar 28, 2001
Dear Friends,
I want to Automatically take Backup at 7:00 p.m cutoff Time.and automatically restore the database..to a temporary database,generate my report and delete the database.
Friends,this backup & restore should not require any user interface..it should me automatic.
Plz can anyone help me out.
Regards
Salim g belim
View 1 Replies
View Related
Aug 19, 1999
Hi I'm a newbie with a problem.
SQL Server 6.5 SP4. Have had problems today with SQL Server running out of LOCKS. We increased these & all seemed fine. LOCKS ranout again & we brought SQL Server back up our major database started a recovery. I know the spid of the recovery from the SQL Server errorlog but when I select the sysprocesses table I don't find an entry for this spid. The recovery has been running for about 2 hours. My question is should I see the spid of the recovery process in the sysprocesses table & is 2 hours long for a recovery of a 5 GB database?
Thanks for any help in advance.
Cheers,
Phil
View 1 Replies
View Related
Aug 6, 1998
Automatic recovery has taken about 6 hours on our machine before, but it has now be going on for almost 2 days !?!
Has anyone any suggestions?!!
Is there any way to find out what the Auto recovery is doing, if anything? Is it rolling Forward or Backward ?!?
Regards
Jasper
Jarlath.O`Grady@ulsterbank.com
View 1 Replies
View Related
Jun 24, 2015
I'd like to understand why it is not possible to automatic Failover Availability Groups using Failover Cluster Instances. I think it would be great for DR and HA. Do you understand why that limitation exists?
The link [URL] ....
SQL Server Failover Cluster Instances (FCIs) do not support automatic failover by availability groups, so any availability replica that is hosted by an FCI can only be configured for manual failover.
View 4 Replies
View Related
Aug 17, 2015
I am looking at one of the SQL Server which I inherited from my predecessor at work place and I can see a Trace file is getting created on the Log folder.Â
There has been manual script in place (Written by Greg Larsen) - to monitor DB AutoGrowth, LogFile Growth etc.Â
I am unable to find out which process or Stored Procedure or Query is creating the Trace file which is created every day and gets deleted and replaced with a new one.Â
View 2 Replies
View Related
Sep 17, 2015
Pages on a full recovery model database corrupted, need to ensure data loss is minimal for restore operation am thinking about restoring the latest full backup.
View 4 Replies
View Related
Jan 11, 2005
Hi,
I wonder if anyone can help. I'm trying to create a new user/login to a sql server 2000 box which will automatically have access to all the user databases on the instance. The user can't be a SA or anything however. It seems this can be done as the application which uses all these database has created such a user, however I need another which I will then make read-only.
Any ideas?
Thanks in advance
future2000!
View 1 Replies
View Related
Nov 1, 2015
We have an issue with a 3 node SQL 2012 Always on availability group. Normal operation is node 1 (primary replica) with node 2 and node 3 as secondary replicas.After some patching, SQL wasn't running on node 1 hence the AG flipped over to node 2. This went unnoticed for some time and the transaction log for one of the AG databases became full on node 2 and node 3. (I think this is because it couldn't commit the transactions on node 1 so couldn't truncate it's t-log?) The DB is using synchronous replication btw.So I started SQL on node 1 and flipped the AG back to node 1 (with a data loss warning but I accepted this).Now the issue is that on node 2 and 3, the DB in question is stuck in a "Reverting / In Recovery" State. I've tried various commands such as ALTER DATABASE SET ONLINE, RESTORE DATABASE WITH RECOVERY etc but these fail stating unable to obtain a lock on the DB.
The weird thing is that on node 1 the state of the DB is "synchronised".how to resolve this issue on node 2 and 3? I've left them overnight (in case they were rolling back transactions, the DB is fairly large) but nothing seems to have happened. remove the DB from the AG in node 2 and 3 and add it back in again, ie recreate the replication?
View 2 Replies
View Related
May 12, 2015
I'm trying to execute backup job on secondary replica on clustered server(with HA) and I getting the error:execution failed see the maintenance plan and sql server agent job history logs for details.When I going to see the log, it says :configuration option 'user options' changed from 0 to 0.
View 3 Replies
View Related
Aug 21, 2001
I've got a question about the automatic database growth feature of V7. Here's an example:
I have a 1gb db that can grow to max size of 2gb.
I set the auto grow option to 75%
The first time the db grows it will grab 75% of the free space (1gb)
What happens if the database needs to grow again?
Will the db grow using the remaining free space (25%) or
has the database reached its max size because it can't grow any further?
Thanks
View 1 Replies
View Related
Mar 3, 2008
how it is possible to take differential backup of database automaticaly in sql server 2k?
plz someone help me out.
thanks
Rahul Arora
07 Batch
NCCE Israna,
######################
IMPOSSIBLE = I+M+POSSIBLE
View 2 Replies
View Related
Jul 20, 2005
Hi,How to automate database backup (MSDE server v8.0)? Is some free toolwhich can help on this or can I use some stored procedure? Plan:Complete - 1 per weekDifferential - 1 per day--*Best regards,*Klaudiusz Bryja
View 3 Replies
View Related
May 22, 2008
Hi,
Please give the T-SQL script for this ? Thanks
Shanth
View 4 Replies
View Related
Jun 22, 2015
How to find last login date/time for user DML acitivity on databases on Instance?
Is there any way we can find our the last login date/time for databases?
Note: 1. We can find if the SQL Trace is running and store.This is not good solution
        2. Audit logins off/on is also not good solution.
       3. Using DMV's also not good option, if reboot sql server instance then historical values can not see.
View 5 Replies
View Related
May 21, 2001
While checking the SQL server error logs, I notice that the pubs and msdb database are automatically being backed up, even though no job is set up to do so....in addition, its backing up to a directory that I cannot find on our network.....does anybody have an idea of whats going on ?
the path its backingup to is:
(FILE=1, TYPE=PIPE: {'.pipedbasql70dbagent0s0'}).
Thank you in advance
View 1 Replies
View Related
Jul 12, 2007
Hello,
I am a C++/C# developer my SQL skills are very limited.
I have a database set up for mirroring and I would like to get an e-mail notification whenever an Automatic Failover occurs. Can anyone show me how to do this using SQLServer 2005? Please provide T-SQL script sample if possible!
Thanks,
-Agustin
View 7 Replies
View Related
May 7, 2008
hi lads,
what i need to do for my project are as following:
a mobile user send data via GPRS to SQL server Database. then i need to have a method to detect while a particular table is being inserted. and then extract data from table construct a report dynamiclly. what should i do to achieve this goal? e.g. window application, store procedure or trigger ?
PS : client side is a mobile application developed using MCL. i don't in which way he will send all data to SQL server Database, so what i need to do is to monitor new data inserting.
2) how to auto generate and print report directly after record been inserted into the table ? Do i need to import report web service API ? if yes, which one? or i can use other methods e.g. predefine report control view in my window application, turn off pop-up menu while printing a report(I guess)
thanks
View 2 Replies
View Related
Jul 9, 2014
Last week I backed up my SQL Server by using BE 2012. I named the file "SQL Server BAK" which contained copies of my SQL Server databases. A few days ago I lost some part of my data due to accidental deletion. I backed it up, so I tried to restore the database from the .bkf file. The problem comes here, when I try to to restore my .bkf file, it becomes inaccessible.what causes this?
View 7 Replies
View Related
Nov 30, 2000
Running SQL version 7 on "Terminal" Server I have a database marked in Load Receovery and we are unable to get to it. We tried MS SQL document on how to but we are still unable to recover it!
View 4 Replies
View Related
Oct 4, 2007
hai!
i have a database which crashed recently(26th sep 2007).my last backup is on 14 sep 2007.i have restored database after two days.Now i have a database (old) with data upto 14sep 2007 and from 26sep to till date.(data from 14sep to 26sep missing).I restored database on 28th with a new database name which has data upto 26th sep 2007.how to attach these two databases to a single database to have data from beginning to tilldate.
please help in this regard.
View 1 Replies
View Related
Jan 22, 2008
Hi,
I made an UPDATE query without specifying any criteria so I had more than 1500 records have been changed and I cannot undo the UPDATE.
Is there any way I can recover the data UPDATE from the Transactions Log.
I did not back up the database lately so what is the appropriate solutions for this?
Any thoughts… :S
View 10 Replies
View Related
Mar 10, 2004
Hi,
Is there a way to Revover a Sql Server 2000 database in the absence of the backup file(the backup file got overwritten). Does Sql Server do any automatic Transaction logging?
Thanks for any input
View 4 Replies
View Related
May 23, 2008
Hai friends....
SQL Server 2005 Database, So I want to know about Database Backup and Pointing Recovery concepts..so can u please help me and any send me related documents...
---
Thanks,
Nageswar.V
New Horizons Cybersoft Ltd
+919848854114 : nageswar@nhclindia.com
View 2 Replies
View Related
Jul 23, 2005
Hi,I'm no where close to a SQL Server expert but we're using it as a back endto another application.I lost a PC that had MS SQL Server 2000. I was able to recover the .MDF and..LDF files but nothing else. How can I restore these files to another SQLServer installation on another PC. When I tried to attach them they are notrecognized as valid files (I get the red X instead of the green CHECK).Is this a basic security function that I'm not going to get around or shouldit be possible? Do the .mdf and .ldf files contain specific info about whatPC they were created on?Are there third party apps that might be able to at least extract thetables?Thanks,WH
View 1 Replies
View Related
Jul 15, 2007
Hi all
When I restart server my database apear as database(In recovery )
what's ???
thanks
View 3 Replies
View Related
Jul 30, 2007
Hello all,
Is there a way to check the status of a database in recovery. Like how far along it may be. If not is there a way to stop a database in recovery and just drop it.
Thanks in advance,
Mike
View 7 Replies
View Related
Mar 30, 2007
Our server ran out of disk space during a stored procedure process. We were able to free up some space, stopped all SQL services, restarted all SQL services and now SQL Management Studio shows the database to be in recovery. Is there a way to monitor this to ensure progress is being made and to estimate when it might complete?
View 12 Replies
View Related
Aug 9, 2007
What does it actually mean when the database is in recovery? My database has been in recovery overnight. What is normally going on in this situation. Should I wait or take more drastic action?
View 10 Replies
View Related
Aug 28, 2007
Hi all,
I had to change the path of .mdf and .ldf files, so I decided to:
1) Take offline the database
2) run the quey ALTER DATABASE... MODIFY to change the path
3) Bring online the database.
The last step hung up (with no errors) and left the database In Recovery.
When I tried to stop and restart sql server other databases changed their status In Recovery...
Here is a dump of Errorlog files
2007-08-26 18:13:29.28 spid24s Starting up database 'DbOrdini'.
...
...
2007-08-26 18:13:30.09 spid24s * BEGIN STACK DUMP:
2007-08-26 18:13:30.09 spid24s * 08/26/07 18:13:30 spid 24
2007-08-26 18:13:30.09 spid24s *
2007-08-26 18:13:30.09 spid24s * Location: "logmgr.cpp":5334
2007-08-26 18:13:30.09 spid24s * Expression: !(minLSN.m_fSeqNo < lfcb->lfcb_fSeqNo)
2007-08-26 18:13:30.09 spid24s * SPID: 24
2007-08-26 18:13:30.09 spid24s * Process ID: 1380
.....
.....
2007-08-26 18:13:30.40 spid24s Error: 17066, Severity: 16, State: 1.
2007-08-26 18:13:30.40 spid24s SQL Server Assertion: File: <"logmgr.cpp">, line=5334 Failed Assertion = '!(minLSN.m_fSeqNo < lfcb->lfcb_fSeqNo)'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
2007-08-26 18:13:30.40 spid24s Error: 3624, Severity: 20, State: 1.
2007-08-26 18:13:30.40 spid24s A system assertion check has failed. Check the SQL Server error log for details
Could it be dangerous trying to kill this process ? If not, what is the best way do to it ? From Sql Server Activity Monitor (spid 24) or from Task Manager ?
Thanks in advance
View 9 Replies
View Related
Nov 30, 2007
Hi there,
I want to create database login and set that login to owner of the database? Can anyone help me?
thanks
View 3 Replies
View Related
Aug 17, 2015
We have a requirement to build SQL environment which will give us local high availability and disaster recovery to second site. We have two sites- Site A & Site B. We are planning to have two nodes at Site A and 2 nodes at Site B. All four nodes will be part of same Windows failover cluster. We will build two SQL Cluster, InstanceA will be clustered between the nodes at Site A Server and InstanceB will be clustered between the nodes at Site B, we will enable Always On Between the InstanceA and InstanceB and will be primary owner where data will be written on InstanceA and will be replicated to InstaceB. URL....Now we want we will have instanceC on the Site B and data will be writen from the application available on Site B, will be replicated to the instance on the Site A as replica.
View 6 Replies
View Related
Jan 24, 2001
Hi everyone,
I am trying to implement a plan for a SQL7 database that is used by the company I work for. Having read the SQL manuals I have come to the following conclusion:
I want to do a complete backup of the database at midnight and do a transaction log backup every 30 minutes between 7am and 7pm. I am hoping this will allow me to 'undo' any user mistakes and roll back the database changes to the last transaction log backup.
The questions I have are:
1) By backing up the transaction log every 30 minutes, will this then give me the ability to 'roll back' the database to the last time the transaction log was backed up (i.e. 30 minutes max) ?
2) How do I load the transaction log back in ? (i.e roll the database changes back). A simple Restore operation (with truncate ???)
3)Am I totally confused or on the right track ?
Thanks,
Tim
View 1 Replies
View Related