|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
Hello Masters,
What are the reasons for any DB gone Offline ? How could I know at what time and who and why it went offline ? I checked Error logs and found nothing useful.
Please help me
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 9:49 PM
Points: 323,
Visits: 960
|
|
i'm Sure there must be something in error log or atleast in Event Viewer logs.
Reason may be any long transaction got interrupted due to network problem . Also check ,Auto_close option is set to true or false
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
Thanks sanket for prompt reply..
Can you guide me where to check the auto close option. Bcos DB is offline and so I am not able to see its properties.. Is this option anywhere else ?
In Logs I can see one message "Setting DB option OFFLINE to ON for database (DBname)"
Please help me. Thanks in advance.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
In event logs before DB went offline I can see "Certificate Services clinet has been started succeffully" and than next log says "Services Stopped successfully" and I found thats data exchange services.
Is it causing DB to go Offline ?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 9:49 PM
Points: 323,
Visits: 960
|
|
did you try to make it online ?
Alter Database DBNAME set online also what is the status of the DB
select * from sys.sysdatabases where name = 'DB NAME' did you checked Event Viewer logs as well?
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
The status of DB is
Status Status2 66057 1627389952
now where to check what this status does mean ?
There is same thing in Eventlog too:
12/06/2012 17:39:59,spid53,Unknown,Setting database option OFFLINE to ON for database DBname. 12/06/2012 17:39:59,spid53,Unknown,Starting up database 'DBNAME'.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
Using
Select * from sys.databases
I came to know that is_auto_close_on is set to 1 (True) that means it will try to get up automatically right ?
but unfortunately it was not. (:-
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 9:49 PM
Points: 323,
Visits: 960
|
|
did you try this ?
Alter database DB_Name set online
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
|
|
Yes it will make my db online.
But I want to know reason why it was offline.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: 2 days ago @ 9:49 PM
Points: 323,
Visits: 960
|
|
[b]
I came to know that is_auto_close_on is set to 1 (True) that means it will try to get up automatically right ?
if Auto_close is False, Sql server just close the connection to the DB if there is no work
Seems someone manually made it offline
12/06/2012 17:39:59,spid53,Unknown,Setting database option OFFLINE to ON for database DBname. 12/06/2012 17:39:59,spid53,Unknown,Starting up database 'DBNAME'.
any chance, you can check dbcc inputbuffer (53) , and which user who run it ? check sp_who2 59
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|