Crash Recovery (huge Rollback) Going On Over 24 Hours! How Can I Stop It?

Nov 8, 2006

Crash recovey is going on over 24 hours!

I want to stop it!



One of the databases in our server is in recovery mode after a huge
delete job (started as a job) did not complete ( I suspect due to
lack of transaction log sapce.) the log file size is 120 GB.

Whenever the server restarted the recovery for this database starts.

After 20 hours, analysis done 100% and recovery done up to
76%. Then after €œthe percentage of recovery done€? went down to
16% and it is still running.

How can I get rid of this database without damaging the master database and other database in the same instance?

I don€™t mind to lose this database.



There are 4 user databases in this instance and msdb and the recovery mode database are not operational.(I cannot connect)

View 1 Replies


ADVERTISEMENT

Recovery From Crash

Jul 20, 2005

Greetings,I had a hard-drive failure this week and lost my root drive, withoperating system and SQL Server 2000.Fortunately my data was on another volume and still exists.I know about sp_attach_db, but looking at BOL, it says that sp_attach_dbonly works with databases that were previously detached withsp_detach_db.How do I reattach my existing mdf and ldf files?-- RickP.S. I know that the dbs are not corrupt because when the hard drivefailed SQL Server was offline.

View 2 Replies View Related

Simple Recovery Model Database - Huge Log File

Nov 3, 2015

Have a database that's in "Simple" recovery mode whose .ldf has grown to 270GB.   This database is a data warehouse so "full" is not required.  I put it in simple mode a month ago and shrunk the log down and now it's filled up the disk. 

What steps can I take to mitigate this in future?  I've read that this is caused by long running transactions which fill the log for DR purposes.  Should I put the database back into full mode and backup/truncate daily.  

The auto-growth is set to 128MB which is very low. 

View 3 Replies View Related

Recovery :: Rollback At Database Level

Aug 20, 2015

Testing team is performing some activities on  MSSQL - 2008 R2 database ..and after completion of the test, again team wants to restore the  original database ( in the same state as before starting of the testing). Currently team is taking the back-up before starting testing and restoring the backup after the testing .. Since the database size is huge, this restoration is taking more time Is there any better way of taking the database to the previous state in lesser time.

View 3 Replies View Related

How To Stop Week Hours To Continue To Next Week

Jan 29, 2014

I am adding week hrs using while loop , but it can continue next week hrs also.

I can get every week start hrs while update @tem1 table

employeeidreportdatereportatleftattoaccountwrhrn
12902014-01-29 00:00:00.00009:3019:1556001
12902014-01-28 00:00:00.00009:0018:4555802
12902014-01-27 00:00:00.00009:0018:455585583
12902014-01-25 00:00:00.00008:0010:0012004 -- week end
12902014-01-24 00:00:00.00009:1718:4554105
12902014-01-23 00:00:00.00009:1918:4654606
12902014-01-22 00:00:00.00009:1718:4754507
12902014-01-21 00:00:00.00009:1618:3552608
12902014-01-20 00:00:00.00009:1818:555435439

My loop statement

while(select MAX(wrh) from @tem1 where wrh = 0) < 1
begin
update @tem1
set wrh = (select toaccount from @tem1
where reportdate = (select min(reportdate) from @tem1 where wrh = 0))+(select max(wrh) from @tem1)
where wrh = (select max(wrh) from @tem1 where wrh = 0 )
and reportdate = (select min(reportdate) from @tem1 where wrh = 0)
end

this is the result while executing loop statement .

employeeidreportdatereportatleftatdehdrhwehwrh
129029 Jan 201409:3019:15008:0009:20024:00065:54
129028 Jan 201409:0018:45008:0009:18016:00056:34
129027 Jan 201409:0018:45008:0009:18008:0009:18
129025 Jan 201408:0010:00005:0002:00045:00047:16 -- week end
129024 Jan 201409:1718:45008:0009:01040:00045:16
129023 Jan 201409:1918:46008:0009:06032:00036:15
129022 Jan 201409:1718:47008:0009:05024:00027:09
129021 Jan 201409:1618:35008:0008:46016:00018:04
129020 Jan 201409:1818:55008:0009:03008:0009:03

How to update only that week hrs , don't continue next week...

View 4 Replies View Related

Transact SQL :: To Display Days Hours Mins Format Based On Business Hours

Apr 22, 2015

I want to display Days Hours Mins Format.

I am Having two columns Like below,

Col1 (in days)    col2 (In Hours : Mins)
3days  4:5 

In this first have to  add Col1 and Col2 (Here one day is equals to 9 hours ) so the addition is 31.5

From this 31.5 I should display 3 Days 4 Hours 30 Mins because 31.5 contains 3 (9 hours) days 4 Hours and .5 is equals to 30 mins.

View 6 Replies View Related

Breaking Down Total Hours Worked Into Day And Evening Hours

Sep 21, 2006

I have data coming from a telephony system that keeps track of when anemployee makes a phone call to conduct a survey and which project numberis being billed for the time the employee spends on that phone call in aMS SQL Server 2000 database (which I don't own).The data is being returned to me in a view (see DDL for w_HR_Call_Logbelow). I link to this view in MS access through ODBC to create alinked table. I have my own view in Access that converts the integernumbers for start and end date to Date/Time and inserts some otherinformation i need.This data is eventually going to be compared with data from someelectronic timesheets for purposes of comparing entered hours vs hoursactually spent on the telephone, and the people that will be viewing thedata need the total time on the telephone as wall as that total brokendown by day/evening and weekend. Getting weekend durations is easyenough (see SQL for qryTelephonyData below), but I was wondering ifanyone knew of efficient set-based methods for doing a day/eveningbreakdown of some duration given a start date and end date (with theday/evening boundary being 17:59:59)? My impression is that to do thiscorrectly (i.e., handle employees working in different time zones,adjusting for DST, and figuring out what the boundary is for switchingfrom evening back to day) will require procedural code (probably inVisual Basic or VBA).However, if there are set-based algorithms that can accomplish it inSQL, I'd like to explore those, as well. Can anyone give any pointers?Thanks.--DDL for view in MS SQL 2000 database:CREATE VIEW dbo.w_HR_Call_LogASSELECT TOP 100 PERCENT dbo.TRCUsers.WinsID, dbo.users.username ASInitials, dbo.billing.startdate, dbo.billing.startdate +dbo.billing.duration AS EndDate,dbo.billing.duration, dbo.projects.name ASPrjName, dbo.w_GetCallTrackProject6ID(dbo.projects.descript ion) AS ProjID6,dbo.w_GetCallTrackProject10ID(dbo.projects.descrip tion) AS ProjID10,dbo.billing.interactionidFROM dbo.projects INNER JOINdbo.projectsphone INNER JOINdbo.users INNER JOINdbo.TRCUsers ON dbo.users.userid =dbo.TRCUsers.UserID INNER JOINdbo.billing ON dbo.users.userid =dbo.billing.userid ON dbo.projectsphone.projectid =dbo.billing.projectid ONdbo.projects.projectid = dbo.projectsphone.projectidWHERE (dbo.billing.userid 0)ORDER BY dbo.billing.startdateI don't have acess to the tables, but the fields in the view comethrough as the following data types:WinsID - varchar(10)Initials - varchar(30)startdate - long integer (seconds since 1970-01-01 00:00:00)enddate - long integer (seconds since 1970-01-01 00:00:00)duration - long integer (enddate - startdate)ProjID10 - varchar(15)interactionid - varchar(255) (the identifier for this phone call)MS Access SQL statement for qryTelephonyData (based on the view,w_HR_Call_Log):SELECT dbo_w_HR_Call_Log.WinsID, dbo_w_HR_Call_Log.ProjID10,FORMAT(CDATE(DATEADD('s',startdate-(5*60*60),'01-01-197000:00:00')),"yyyy-mm-dd") AS HoursDate,CDATE(DATEADD('s',startdate-(5*60*60),'01-01-1970 00:00:00')) ASStartDT,CDATE(DATEADD('s',enddate-(5*60*60),'01-01-1970 00:00:00')) AS EndDT,DatePart('w',[StartDT]) AS StartDTDayOfWeek, Duration,IIf(StartDTDayOfWeek=1 Or StartDTDayOfWeek=7,Duration,0) ASWeekendSeconds,FROM dbo_w_HR_Call_LogWHERE WinsID<>'0'

View 3 Replies View Related

Huge Deletes In A Huge Table

Apr 3, 2000

SQL 7 SP1 NT4 SP5

I have a TRANSACTION table with 150 million rows.

I have a USER table.

Each user has about 600 records in the TRANSACTION table.

The TRANSACTION cluster index is on USERID + RECID . The second index is on USERID + Fieldx + Fieldy.

The TRANSACTION table gets about 1.4 million inserts in a normal day and about 40,000 updates.

I want to go through the USER table and delete all users who have not visited me in a while.

I want to do this without substantially hindering performance in a production environment. I can perform this over a week period or two if needed.

The best way I thought of doing this was to grab x amount of users in a cursor and loop through deleting their corresponding TRANSACTION records.

Does anyone have any ideas on a better way. What is going to happen to my indices during this time ?

Thanks !!!

View 3 Replies View Related

Converting Decimal Hours To Hours And Minutes

May 13, 2008

I have a float variable that holds a decimal number of hours.

So 1.5 equals 1 hour 30 minutes.

I need to change this to the format 1:30

Any idea how to do this?

View 10 Replies View Related

Recovery :: Server Local High Availability Using Failover Cluster And Disaster Recovery Using AlwaysOn

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

SQL Server Admin 2014 :: Is Bulk Logged Recovery Model Support Point In Time Recovery

Dec 23, 2014

is bulk logged recovery model support point in time recovery

View 9 Replies View Related

Recovery :: Pages On A Full Recovery Model Database Corrupted

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

Transact SQL :: Change Db In Recovery To No-recovery And Restore Transaction Log?

May 5, 2015

in the process of migrating a big db from server 1 to server 2, we had to roll back the change. I started with taking a full db backup and restoring it on server 2 with norecovery, and then a couple logs with norecovery, and then the last log with recovery.

Is there some way to continue this chain now, I mean to change the db to norecovery, or other way to restore logs. 

I dont want to do a new full backup.

If I try to do a log restore now i get the message:

Msg 3117, Level 16, State 4, Line 1

The log or differential backup cannot be restored because no files are ready to rollforward.

Msg 3013, Level 16, State 1, Line 1

RESTORE LOG is terminating abnormally.

View 6 Replies View Related

Recovery :: AG Databases Went Into Synchronizing / In Recovery After Upgrading To 2014

Sep 19, 2015

We have 3 replica AG setup. 2 replicas are in sync/automatic failover, the other(DR Server, different subnet) in asynchronous/manual mode…All these replicas were on sql server 2012, Recently we upgraded DR server to 2014. Since then we have a problem, the AG databases in 2014 instance went into ‘Synchronizing/ in recovery’ state…The SQL server error log has message, the recovery couldn’t start for the database ‘XYZ’…We tried to create a new database and add it to AG , it works for fine for other two 2012 replicas, but on 2014 we see the same issue

View 3 Replies View Related

Recovery :: AG Database In Reverting / In Recovery State

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

Recovery :: How To Do A Full Disaster Recovery

Sep 10, 2015

If you are doing a disaster recovery of an entire SQL 2005 cluster, can you just install SQL server and restore the system database to get the configuration?

View 4 Replies View Related

Crash...

Feb 19, 2004

Hi my name is Rodrigo and Im from Brasil, so, sorry about my english.

I have a problem using MSSQL 2000. I´m using a client/server application, and sometimes (almost every day) the sql server start to use 100% of CPU and crash the system. I don´t know how and when but it hapens always. I never found a reason for it, but looking at the event viewer in windows 2000 i saw an error about www publishing (something like that). Maybe my sqlserver is trying to connect to internet to do something (i don´t know). Please if somebody can help me send me a mail. Thanks a lot.

View 6 Replies View Related

Installation Crash

Sep 21, 2006

Hi, I'm trying to install SQL Server 2000 Dev Edn. When I install client and server tools it will crash after I enter the administration password. But this only happens when I install it with server tools, its OK with just client tools. Thanks 

View 8 Replies View Related

Server Crash

Mar 27, 2001

Hi,

My Sql server went down last night. Is there a way to find out what could have caused system to crash?
Is there any way to notify the DBA when sql services have stopped running?

Any hint/suggestion is highly appreciated..

Thanks..
Ann

View 5 Replies View Related

SQL Server Crash

Jun 29, 2001

Hello,

Recently my computer had a crash on which SQL Server was installed. And if that wasn't enough, the backup failed to. Now I've installed SQL Server again, but I have these *.mdf and *.ldf files, which contains my data and my tables etc. So my question is, how do I get this data into my newly installed SQL Server? Maybe it's quite simple, but I can't find it.
Im using SQL Server Enterprise version 7.0 on Win2k Advanced Server.

Many thanks in advance,
Stefan.

View 2 Replies View Related

Server Crash

Apr 3, 2000

Hi,
My sql server stopped unexpectedly and restarted itself today, and I have no clue why. The NT Event Viewer provides this "insight":

The MSSQLService terminated unexpectedly.

The event id is 17052, which isn't documented in BOL. Does anyone have any explanation, and some suggestions on how to avoid this in the future?
thanks,
Jason

View 1 Replies View Related

Database Crash In 7.0

Jul 7, 2000

Hi Everybody,

What type of 'Database Crash' can we expect in SQL Server 7.0.? and How do we rectify this ?.


Thanks in Advance.
Srinivasan

View 1 Replies View Related

On-going SQL 6.5 Crash.....17805

Mar 21, 2000

hello:

Does anyone have any input on why my SQL Server keeps crashing? I get the following errors:
Error : 17805, Severity: 18, State: 0
00/03/21 09:06:06.42 ods Invalid buffer received from client.
00/03/21 09:09:51.56 kernel SQL Server terminating due to 'stop' request from Service Control Manager
At other times, there were some STACK DUMP ERRORS.
We are on service pack 4 (I have been pushing to apply 5a)
Please help,
Thank you.

View 1 Replies View Related

Server Crash

Oct 18, 1999

Hi Folks,

I got the following message in the error log when SQL Server 6.5 crashed.
''Stored function 'xp_runwebtask' in the library 'xpsqlweb.dll' generated access violation; SQL Server is terminating process 60''
Source:spid 60
Anyone know what this means ? If you think you know of have come across it before, please inform me.

Thanks
Alan

View 1 Replies View Related

SQL Server Crash

Feb 16, 1999

I need help. I am facing following problems since days
here you have the errors messages:

Mesg 18264 : DATABASE dumped with following info: Database Name:IITMSDB, Creation Date and Time:Feb 12, 99(23:00), Pages dumped:3898618, Current Sequence:36201 19370307, Sort Order:52, Striped:NO, Number of Dump Devices:1, device info:(VOLID=SS0001 NAME=iitmsdb_dump TYPE=DISK FILE=1)

Mesg 17562 : Checking space allocation for database 6

Mesg 18109 : Recovery dbid 10 ckpt (590112,18) oldest tran=(590112,0)

Error : 0, Severity: 19, State: 0
SQLDumpExceptionHandler: Process 49 generated access violation; SQL Server is terminating this process

Error : 0, Severity: 19, State: 0
SQLDumpExceptionHandler: Process 102 generated access violation; SQL Server is terminating this process

Mesg 17309 : The current contents of process' input buffer are '_cursoropen'.

Error : 925, Severity: 19, State: 1
Maximum number of used databases for each query has been exceeded. The maximum allowed is 8.

Thanks a lot. Bangaly

View 1 Replies View Related

Getting Db Files After Crash

Dec 3, 2004

Hi.
I need urgent help :o/

My laptop crashed and I am not able to start any programs but I can reach the files.

How can I get a hold on by database tables???

Please help me.

BEST REGARDS

Badleif

View 2 Replies View Related

Database Crash

Aug 1, 2006

Hi All,

What are the steps of recovering SQL Server 2000 database after it crashes?
Is it documented somewhere?

View 13 Replies View Related

Crash Database

Oct 12, 2006

My database is marked suspect/offline in the enterprise manager. i am
using
sql server 2000.i have tried resetstatus,DBCC CheckDB, alter
database,sp_dboption and DBCC ALLOCDB ( 'dbname' ) but all to no
avail.i
have no backup of the database.
And i really need to get back this data.Please, can you give me a
detail
step by step method of how to overcome this problem.
i greatly anticipate your reply!!!
Thanks

View 1 Replies View Related

IIS Crash And Format

Jul 20, 2005

Hidue to big problems (basically since a couple of month iis service crashseveral times a day) i need to format a web server (win2k, sp4, iis5.0)where all our sites are hosted .To avoid downtime i would like to transfer them all on the new server.Do i have to recreate every single web (with a lot of virtual folders ) orthere is an automatic (semiautomatic) way to migrate them all?Many thanks in advanceMarco

View 2 Replies View Related

SQLAgent Crash

Jul 20, 2005

Hi all, I have some trouble with SQLAgent...when I try to schedule a jobthat invokes a script (vbs, java, cmdshell,...), SQLAgent crashes at themoment of scheduled execution. If I try to execute it manually, all worksfine. This installation runs on a cluster Win2003 and the node initiate afailover if I don't delete the job and then restart Agent (I can't start theservice before deleting that job!!!). Event viewer logs something like:"LOG] Exception 5 caught at line 191 of file ..src
efreshr.c.SQLServerAgent initiating self-termination".I've already tried to debug the service but my dump did not help me.Any suggestion?Thankscamau

View 2 Replies View Related

System Crash

Nov 28, 2006

Hello,

From time to time, our production system crashes and reboots while running some data warehouse load packages. There is nothing in the logs; it just seems like the reset button is pushed. The situation occurs at different moments in the batch and not every night, but lets says once every two weeks or more frequent.

We are running Windows 2003 server and SQL Server 2005 SP1 incl. hotfixes.

Does anyone of you have this issue, or is this a hardware issue without any doubt? Could there be any chance it's in the SQL Server software?

Regards, Jeroen

View 3 Replies View Related

Database Crash....

Nov 21, 2007

Hi all

I Never come across the Database crashing situation.

1.How to finilised Database was crashed (If Database in "Suspend" mode we can call as Crashed).

2.What are the action we have to take to bring up Database(a part from restore Database from last know good backups)

View 5 Replies View Related

SQL Server Crash

Jul 3, 2007

Hi all,



I'm running on Windows Server 2000 datacenter with sp4 and SQL Server 2000 SP4 on 16 GB AWE and /PAE enabled. Apparently the SQL Server service stops intermittently.

Below is the error I got on the application log.



"SqlDumpExceptionHandler: Process 788 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process."



Below is a part of the SQLdump that was created.



=====================================================================
BugCheck Dump
=====================================================================

This file is generated by Microsoft SQL Server 8.00.2040
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.

Computer type is AT/AT COMPATIBLE.
Bios Version is Phoenix ROM BIOS PLUS Version 1.10 1.1.0
Phoenix ROM BIOS PLUS Version 1.10 1.1.0
Current time is 10:27:18 07/02/07.
4 Intel x86 level 6, 2992 Mhz processor(s).
Windows NT 5.0 Build 2195 CSD Service Pack 4.


Memory
MemoryLoad = 82%
Total Physical = 7903 MB
Available Physical = 1373 MB
Total Page File = 11795 MB
Available Page File = 5311 MB
Total Virtual = 2047 MB
Available Virtual = 296 MB

*Dump thread - spid = 72, PSS = 0x41d77260, EC = 0x41d77590
*
* User initiated stack dump. This is not a server exception dump.
*
*Stack Dump being sent to C:Program FilesMicrosoft SQL ServerMSSQLlogSQLDu
mp0001.txt
* *****************************************************************************
**
*
* BEGIN STACK DUMP:
* 07/02/07 10:27:18 spid 72
*
* ex_raise2: Exception raised, major=79, minor=87, severity=22
*
*



Regards,

Larry

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved