Solved

planning for a reporting enviornment ( MS SQL)

Posted on 2011-02-14
6
266 Views
Last Modified: 2012-05-11
Hi Experts

we are planning a reporting enviornment , here is the scenario

We have a database pn primary site that sends logshipping updates to secondary (DR site) . (MS SQL 2005)
The instance on DR site should be cloned (on the same sql server installation) . for example
If database name is "production database" , ideally we need a clone it everynight on the same machine
but with a different name (e.g. ReportingDB).

what's the best method ?

0
Comment
Question by:akhalighi
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:niaz
Comment Utility
If you already have a log shipping server, you can use that server for reporting if you don't have a very reporting need that span hours. (depends how do you configure your log shipping). The secondary log shipping server is sitting idle most of the time when its is not applying logs and can be used for (readonly) reporting.
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 125 total points
Comment Utility
Why clone it?  You could use replication with the timing set for daily.

It the database that busy so you are concerned that reporting would slow it down?

mlmcc
0
 
LVL 10

Author Comment

by:akhalighi
Comment Utility
Not sure if using DR site database is okay for reporting , log shipping makes the database read-only but as far as I know it disconnects users when it applies the log.in our enviornment , we receive logs every 30 min. So .. I'd rather have a copy or replica of database for reporting ....
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Expert Comment

by:niaz
Comment Utility
There is no one right answer in this case.

1. Depends on your Service Level Requirement (SLR) you can tune the log ship interval.
2. When setting the log shipping for standby server you can out the option to disconnect the database.
3. Replication is another option to consider (as suggested by "mlmcc").

You pick your option VERY CAREFULLY based on your own particular environment and nature of the database. (eg: DB size, # of Transactions, OLTP, DSS, # of users, # of reports, Time to run those reports, available storage and HW resources to replicate/clone  etc.)

0
 
LVL 10

Author Comment

by:akhalighi
Comment Utility
Thanks Niaz

It's a production database , not too huge . It's going to be around 1.5 GB . Intervall is 30 min.
Reporting database  can be one day older than production.

It's okay if we can use the same stand-by database for reporting , my only concern is that I dont know for sure if it disconnects users every 30 min. or not ?

Is it possible to backup this standby database while it still receives logshipping updates ? I am thinking about a nightly backup - restore for reporting database.
0
 
LVL 2

Accepted Solution

by:
niaz earned 125 total points
Comment Utility
As I told you earlier, you have to make your own decision based on your environment. I use my standby database for reporting (my database is almost 1TB in size).

To see if your database is using disconnect option run the following command on the secondary server

use msdb 
select * from log_shipping_secondary_databases
go

Open in new window


disconnect_users column with value '1' is set to disconnect users while transaction logs are being applied.

I don't think you can take a backup of database while in standby mode, however  if you want you can create another (2nd) secondary for the same primary and use it exclusively for reporting. And while creating the 2nd secondary log shipping chose the option not to disconnect the users while applying log shipping.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now