Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
indexing online vs offline, and setting a...
16 posts, Page 1 of 2
1
2
»»
indexing online vs offline, and setting a database offline
Rate Topic
Display Mode
Topic Options
Author
Message
klineandking
klineandking
Posted Tuesday, January 19, 2010 9:28 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 2:21 PM
Points: 116,
Visits: 160
Good morning people, my questions is about reorganizing or rebuilding indexes online vs offline, i do not know what this actually means or how its done. and my next question is what would be the reasons for taking a database offline
Post #849851
The_SQL_DBA
The_SQL_DBA
Posted Tuesday, January 19, 2010 9:49 AM
Right there with Babe
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:23 AM
Points: 794,
Visits: 901
klineandking (1/19/2010)
Good morning people
Very good morning
my questions is about reorganizing or rebuilding indexes online vs offline, i do not know what this actually means or how its done
1.Index rebuild works by re-creating the index internally again and when that has been achieved, it drops the existing index where as index reorganize is the process of physically re-organizing the leaf nodes of the index.
2.During the index rebuild process, the statistics are also re-computed – same as when a new index gets created. Reorganize on the other hand does not update the statistics. Reorganize essentially just swaps one page with another and thus does not require free space for this operation like rebuild does. Infact, reorganize can free up some pages as it does the reorg in two phases – compaction and defrag.
3. Online Rebuilds of Indexes are supported in Enterprise Edition only..
and my next question is what would be the reasons for taking a database offline
Depends on what you are trying to do?
HTH...
The_SQL_DBA
MCTS
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives."
Post #849883
klineandking
klineandking
Posted Tuesday, January 19, 2010 10:09 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 2:21 PM
Points: 116,
Visits: 160
Thank you for the reply i appreciate it i would like to know what does the online option on/off do, and what are the possible reasons for taking a database offline and when would i need to do that thanks
Post #849901
mohammed moinudheen
mohammed moinudheen
Posted Tuesday, January 19, 2010 11:57 AM
SSCrazy
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:34 PM
Points: 2,170,
Visits: 3,582
There was once when I had to restore a database.
Due to some reason, connections continued to persist on this database because of which I couldn't restore.
To overcome this, took the database offline and then performed the restore.
Mohammed Moinudheen
Post #849996
SQLRNNR
SQLRNNR
Posted Tuesday, January 19, 2010 12:06 PM
SSCoach
Group: General Forum Members
Last Login: Today @ 1:07 PM
Points: 18,733,
Visits: 12,332
klineandking (1/19/2010)
Thank you for the reply i appreciate it i would like to know what does the online option on/off do, and what are the possible reasons for taking a database offline and when would i need to do that thanks
Here is something that may help to explain it:
http://blogs.techrepublic.com.com/datacenter/?p=249
Online and offline index rebuilds are not related to the database being offline. Rebuilding online allows for less intrusive behavior by the rebuild process so that users may continue to use the database. Rebuilding the index otherwise can cause heavy blocking on the tables while the indexes are rebuilt.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #850011
Jeff Moden
Jeff Moden
Posted Tuesday, January 19, 2010 10:57 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:01 PM
Points: 32,899,
Visits: 26,779
And just so you know, rebuilding indexes using the "Online" option is only an option in the Enterprise and Developer's (Enterprise with very limited licensing) Editions.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #850239
Suresh B.
Suresh B.
Posted Wednesday, January 20, 2010 3:19 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 6:40 AM
Points: 1,075,
Visits: 5,115
klineandking (1/19/2010)
Thank you for the reply i appreciate it i would like to know what does the online option on/off do, and what are the possible reasons for taking a database offline and when would i need to do that thanks
If you want to move database files from one drive to another, you need to take the database offline.
Post #850336
The_SQL_DBA
The_SQL_DBA
Posted Wednesday, January 20, 2010 7:25 AM
Right there with Babe
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:23 AM
Points: 794,
Visits: 901
mohammed moinudheen (1/19/2010)
There was once when I had to restore a database.
Due to some reason, connections continued to persist on this database because of which I couldn't restore.
To overcome this, took the database offline and then performed the restore.
Also,you could have gone with the option of putting the database in Single_User mode-->end your own connection --> put the database back to multi_user mode. This is to ensure no connections are active and you can do your restore.
The_SQL_DBA
MCTS
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives."
Post #850477
Richard M.
Richard M.
Posted Wednesday, January 20, 2010 8:57 AM
Ten Centuries
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:02 PM
Points: 1,058,
Visits: 2,574
Jeff Moden (1/19/2010)
And just so you know, rebuilding indexes using the "Online" option is only an option in the Enterprise and Developer's (Enterprise with very limited licensing) Editions.
..... and in order to be bale to do the online indexing, the tables cannot contain: XML index, Spatial index, Large object data type columns (image, text, ntext, varchar(max), nvarchar(max), varbinary(max), and xml) in which case you need to do an offline reindexing (which does not mean taking the database off-line...)
_______________________________________________________________________
For better assistance in answering your questions, click here
Post #850562
g.graetz
g.graetz
Posted Tuesday, February 02, 2010 3:06 AM
SSC Journeyman
Group: General Forum Members
Last Login: Monday, May 30, 2011 6:07 AM
Points: 76,
Visits: 59
Richard M. (1/20/2010)
Jeff Moden (1/19/2010)
And just so you know, rebuilding indexes using the "Online" option is only an option in the Enterprise and Developer's (Enterprise with very limited licensing) Editions.
..... and in order to be bale to do the online indexing, the tables cannot contain: XML index, Spatial index, Large object data type columns (image, text, ntext, varchar(max), nvarchar(max), varbinary(max), and xml) in which case you need to do an offline reindexing (which does not mean taking the database off-line...)
..and what we can do instead ?
we have navision 4.0 sp3 with many tables who have clustered indexes
and columns with data typ image etc.
we must accomplish an 24x7 manufacturing plant, there is no offline possible.
thanks for an answer.
Post #857801
« Prev Topic
|
Next Topic »
16 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.