Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all 4689 articles
Browse latest View live

SQL Log Shipping Fails

$
0
0
Dear All,

I have a Primary Site & trying to setup a DR site. I created a Log shipping between the two database, Backup & Copy jobs works fine. Restore also works fine for the 1st time however after that restore fails & database goes to Recovery mode (showing restoring) from the Standby Mode.

The Backup & Copy folders have correct permissions & i am using AD account to run the Agent service on both the servers.

Please advise what could be wrong.

Below is the restore log.

Message
current state is closed.(System.Data) ***
2015-01-23 11:50:13.28 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 Skipping log backup file 'E:\foldername\xxxxxxxx.trn' for secondary database 'Databasename' because the file could not be verified.
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.37 Deleting old log backup files. Primary Database: 'databasename'
2015-01-23 11:50:13.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 The restore operation completed with errors. Secondary ID: 'eb149c41-c657-4f42-925c-6cd635addcb9'
2015-01-23 11:50:13.39 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
2015-01-23 11:50:13.39 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2015-01-23 11:50:13.39 ----- END OF TRANSACTION LOG RESTORE -----

Sanjay Mishra


SQL server 2012 active\passive or active\active cluster

$
0
0

Hi all,

I will two SQL 2012 servers in a cluster, what will be the best mode: active\passive or active\active knowing that will have one clustered instance. When we use active\passive and when to use active\active? Do we use active\active if we have multiple clustered sql instances only?

Note: the two-node sql cluster will be installed on Hyper-V 2012 R2 cluster

Always on Availability Group fails over while rebooting DR nodes of AG/cluster

$
0
0

Hi, I posted my situation on a similar question in this forum (https://social.msdn.microsoft.com/Forums/en-US/5d0b9896-d866-40c2-8e36-4009e337ddd1/alwayson-failure-exception-41005?forum=sqldisasterrecovery) but no one has replied to this point.

My layout is 2 primary synchronous nodes, 2 secondary asynch DR nodes, and a file share witness, and while  I was rebooting my 2 DR nodes my AG failed over to the synchronous partner on the primary site.  I received the same error as the post I mentioned earlier.

Message
Failed to update Replica status within the local Windows Server Failover Clustering (WSFC) due to exception 41005.

In addition to exception 41005 I also received 41034 and 41000.

After failing over the AG ran fine without issue.   My question is..why did I lose quorum?  I'm using node and file share Majority, I'm supposed to be able to withstand the loss of 2 nodes out of my 4 as long as the file share witness remains online, and it did.  Also..the 2 nodes we rebooted didn't even have a vote for quorum.  We changed their nodeweight to 0, so the only quorum voting members were both still online, as was the File Share, yet our prod db had a brief outage as it failed over to the synchronous partner.

Text and image Content with Varbinary datatype is not working properly

$
0
0

Hi,

I had problem with datatype varbinary(MAX). I am Inserting both Image and Text into the column in table declared as varbinary(MAX) in SQL Server 2012. it inserts successfully but when selecting the data from that field it is viewing only text data and image content is viewed unclear as follows,

the image displaying a text as "the linked image cannot be displayed.the file may have been moved,removed or deleted. verify the link points to the correct file and location"

Please help on this. Thanks in Advance.

but on select i am getting this image.

 



RehaanKhan. M




Migrate to cluster

$
0
0

I have been tasked with migrating database standalone SQL Servers to a clustered environment.

The cluster has two nodes. Each node has two SQL Server instances.

I need to document the steps involved... From the start and to what the finished product will look like.

Regards,

Ben


Mr Shaw


Always On Virtual Labs

$
0
0

Getting below error while working on Microsoft Virtual Lab:

https://technet.microsoft.com/en-us/virtuallabs

System Name : SQL Two

"unable to save the alwayson high availability settings return code 0x80070046"

Getting above error while enabling Always on Availability group from SQL Server Configuration Manager.

Migration of AlwaysON database from WSFC 2008 + SQL2012 to WSFC 2012 + SQL2014

$
0
0

Hello All,

I have a 6 node GEO cluster, 4 nodes in primary site + 2 nodes in secondary site. In the primary node 03 and 04 has 2 pair of SQL instances default + named.

I am planning to  move the named SQL pair from WSFC 2008 + SQL2012 TO WSFC 2012 + SQL2014. It has only one AG group with 4 TB of DBs.

Do you guys have any experience and options for this migration. I am planning to go with  backup/restore. Let me share yours inputs.

1. Backup/restore 2. cross cluster migration 3.Detach/attach 4. SAN migration

Thanks!



Muthukkumaran Kaliyamoorthy

Helping SQL DBAs and Developers >>> SqlserverBlogForum

Can we Set up SQL Always on and DB mirror together?

$
0
0

I amusing SQL 2012 with Always on. Now can I set up DB mirror with Always on? 

Thanks


How many SQL Server Instances can I have on a clustered node.

$
0
0
How many SQL Server Instances can I have on a clustered node?

Mr Shaw

Failover clusterign... How similar do the primary and failover instance need to be in a failover cluster?

$
0
0

How similar do the primary and failover instance need to be in a failover cluster?

Does the number of database have to match, naming, general config etc...


Mr Shaw

Enabling the TDE in Database Servers.

$
0
0

Hello,

I am in process of implementing the TDE and I have the following questions. The requirement is Enable to TDE in Database Servers.

  1.  We are planning to use the SQL Server 2014 Enterprise Edition, Is there any other SQL Server Edition Supports the TDE? Currently we are in the Development Phase so it’s not a Production Server.
  2. And we are planning to enable the TDE in 2014.
  3. The Requirement is Client is using the SQL Server 2012 Enterprise Edition and they are planning to enable the TDE, If I take the backup from SQL Server 2012 and Restore it on 2014 is that will work ?
  4. I have basis question on the Keys, Like I explained about there is going to 2 Servers 
    • First one is with SQL Server 2012 Enterprise Edition with TDE (Which contains its own key’s)
    • Second  Server is SQL Server 2014 Enterprise Edition with TDE (Which contains its own key’s)

 

  • Now each server has its own keys what happens when I restore 2012 backup to 2014 Server?
  • Do I need to bring the Key and Certificate from 2012 to 2014 ever time? How this works. Please someone help me.

Thanks

JK



Always On adding a second SQL instance to same fail over Cluster

$
0
0

Client wants to add a second instance on the same Server and add it to the fail over cluster. Does that second instance have to use its own disk or can it use disk from the default instance? This is an 2012 Always on and they want to create a availability group with listener for the second instance but again they want this on the same cluster.

-sm


Welcome to the SQL Server Disaster Recovery and Availability Forum

$
0
0

(Edited 8/14/2009 to correct links - Paul)

Hello everyone and welcome to the SQL Server Disaster Recovery and Availability forum. The goal of this Forum is to offer a gathering place for SQL Server users to discuss:

  • Using backup and restore
  • Using DBCC, including interpreting output from CHECKDB and related commands
  • Diagnosing and recovering from hardware issues
  • Planning/executing a disaster recovery and/or high-availability strategy, including choosing technologies to use

The forum will have Microsoft experts in all these areas and so we should be able to answer any question. Hopefully everyone on the forum will contribute not only questions, but opinions and answers as well. I’m looking forward to seeing this becoming a vibrant forum.

This post has information to help you understand what questions to post here, and where to post questions about other technologies as well as some tips to help you find answers to your questions more quickly and how to ask a good question. See you in the group!

Paul Randal
Lead Program Manager, SQL Storage Engine and SQL Express

Be a good citizen of the Forum

When an answer resolves your problem, please mark the thread as Answered. This makes it easier for others to find the solution to this problem when they search for it later. If you find a post particularly helpful, click the link indicating that it was helpful

What to post in this forum

It seems obvious, but this forum is for discussion and questions around disaster recovery and availability using SQL Server. When you want to discuss something that is specific to those areas, this is the place to be. There are several other forums related to specific technologies you may be interested in, so if your question falls into one of these areas where there is a better batch of experts to answer your question, we’ll just move your post to that Forum so those experts can answer. Any alerts you set up will move with the post, so you’ll still get notification. Here are a few of the other forums that you might find interesting:

How to find your answer faster

There is a wealth of information already available to help you answer your questions. Finding an answer via a few quick searches is much quicker than posting a question and waiting for an answer. Here are some great places to start your research:

How to ask a good question

Make sure to give all the pertinent information that people will need to answer your question. Questions like “I got an IO error, any ideas?” or “What’s the best technology for me to use?” will likely go unanswered, or at best just result in a request for more information. Here are some ideas of what to include:

For the “I got an IO error, any ideas?” scenario:

  • The exact error message. (The SQL Errorlog and Windows Event Logs can be a rich source of information. See the section on error logs below.)
  • What were you doing when you got the error message?
  • When did this start happening?
  • Any troubleshooting you’ve already done. (e.g. “I’ve already checked all the firmware and it’s up-to-date” or "I've run SQLIOStress and everything looks OK" or "I ran DBCC CHECKDB and the output is <blah>")
  • Any unusual occurrences before the error occurred (e.g. someone tripped the power switch, a disk in a RAID5 array died)
  • If relevant, the output from ‘DBCC CHECKDB (yourdbname) WITH ALL_ERRORMSGS, NO_INFOMSGS’
  • The SQL Server version and service pack level

For the “What’s the best technology for me to use?” scenario:

  • What exactly are you trying to do? Enable local hardware redundancy? Geo-clustering? Instance-level failover? Minimize downtime during recovery from IO errors with a single-system?
  • What are the SLAs (Service Level Agreements) you must meet? (e.g. an uptime percentage requirement, a minimum data-loss in the event of a disaster requirement, a maximum downtime in the event of a disaster requirement)
  • What hardware restrictions do you have? (e.g. “I’m limited to a single system” or “I have several worldwide mirror sites but the size of the pipe between them is limited to X Mbps”)
  • What kind of workload does you application have? (or is it a mixture of applications consolidated on a single server, each with different SLAs) How much transaction log volume is generated?
  • What kind of regular maintenance does your workload demand that you perform (e.g. “the update pattern of my main table is such that fragmentation increases in the clustered index, slowing down the most common queries so there’s a need to perform some fragmentation removal regularly”)

Finding the Logs

You will often find more information about an error by looking in the Error and Event logs. There are two sets of logs that are interesting:

  • SQL Error Log: default location: C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG (Note: The # changes depending on the ID number for the installed Instance. This is 1 for the first installation of SQL Server, but if you have mulitple instances, you will need to determine the ID number you’re working with. See the BOL for more information about Instance ID numbers.)
  • Windows Event Log: Go to the Event Viewer in the Administrative Tools section of the Start Menu. The System event log will show details of IO subsystem problems. The Application event log will show details of SQL Server problems.

What is meant by the term redundancy in respect to High availability?

$
0
0
What is meant by the term redundancy in respect to High availability?

SQL Server AlwaysON

$
0
0

Hi,

I having two questions:

1. Is it necessary that all SQL servers contains same instance names (If in case namedinstance), if different names what will be the impact?

2. Is it possible to rename listener?



SQL Server Problems and Questions from an SQL dummy

$
0
0

I am an SQL Dummy!

In the old 2008 version of SQL I had to run a script to fix a rounding error in my Microsoft Accounting software (no longer supported)  I think I have version 10 now?

 

SQL FIX for Fiscal Year won't close


 

Need to use Sql Management Studio (as oppose to more obscure osql.exe)

to run sql script

b) Use Sql Management Studio to execute script below:

SELECT *

FROM dbo.CashPostingTable

WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>

amountDebitCompanyCurrency) AND exchangeRate=100

If you get any rows/data back, proceed to step c), if no result, a more

serious problem - good lucks or buy help.

c) Use Sql Management Studio to execute script below:

UPDATE cashpostingtable

SET amountCreditCompanyCurrency = amountCredit,

amountDebitCompanyCurrency = amountDebit,

companyAmountRemainder = accountAmountRemainder

WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>

amountDebitCompanyCurrency) AND exchangeRate=100

Management Studio no longer works.  Is there a way to do the same thing in the version I have?

Thank you,

Dean

Applying Windows Server fixes to a windows server 2012 R2 server with sql server 2012 with an AG

$
0
0
I need to apply windows updates and I want to understand the proper method since I have 2 nodes using an AG. I see a distinction made to the process for sql server updates versus os updates but os updates seem to point to a cross-cluster migration document. But that document seems to be talking about moving from windows server 2008 to windows 2012. Can't I just follow the method for sql server rolling upgrades?

SQL Always on AG - SQL limitations

$
0
0

Hi,

We are planning to configure Pre-Production environment for new Dynamics system in our Company. The IT has come some up setting up SQL 2012 Always on AG for High availability. I had a quick read about it and come across various limitation regarding SQL e.g. Distributed transactions. I am not sure about what all are the limitations. Do we have any resource which can tell us SQL limitations in detail ? Once known, we can ask these to development team to decide if we can have AG or nor.

I think the system will have SQL code for cross database queries or using link server for cross server queries.

Thanks in advance


Shady

Availability group failover it cannot login

$
0
0

Hi,

I have some databases on difrent availability groups, using two hosts.

When i do a failver to the other host, it gives the user login failed.

When i go to the secondary server and connect directly with studio when i enter in the user mapping it says, one or more databases are inaccessible and wil not be displayed in the list, and when i try to assign permissions it says "Failed to update database because the database is read-only.

the permissions are assign correctly in the availability group itself.

Atenciosamente,

AM

DB Mirroring disconnected

$
0
0

Hi,

I'm getting the below error. I tried stop & start the port. I resumed the partner also.. But mirroring is still disconnected. Can anyone help.

"The Database Mirroring protocol transport is disabled or not configured.

The Database Mirroring protocol transport has stopped listening for connections.

Database mirroring connection error 4 'An error occurred while receiving data: '64(The specified network name is no longer available.)'.' for 'TCP://DB1:5022'."

Viewing all 4689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>