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

Cross-Database transactions in AlwaysOn AvailabilityGroups

$
0
0

We have a set of databases that are used together frequently from one solution (built using Entity Framework). We have views and stored procs that connect from one database to other databases in the same connection.

In SQL 2016 crossdatabase transactions are supported in an AlwaysON environment when the databases are located on different instances and thus in different availabilitygroups using different connectionstrings.

For us that configuration is not possible without a complete redesign of the software.

The only way we think we can make use of AG’s in SQL 2016 is to move all data from all databases to one single database, but  that too costs a lot of effort.

Can you tell me the roadmap for cross-database transactions in future versions of SQL Server, or even in an upcoming servicepack of SQL 2016?

In case a future release will provide a solution or a good workaround we won’t need to change our application that much.

And maybe you can help us figure out a good alternative,  maybe some handy functionalilty in the Entity Framework we are not yet using?

Thanks in advance,

Arash


Multisite clustering and AGs

$
0
0

Hi all,

I have been researching WIN 2016 features and new AGs enhancements lately. Need your guidance on the following requirement and proposed hypothesis for my virtual lab purpose. I'd like to ensure that my interpretation of AG concepts is accurate. Appreciate further comments and alternate approach if my hypothesis is not applicable.

OS: Win2016; SQL; 2016 EE

Requirement:

Let's assume I have 4 nodes(N1,N2,N3,N4), 2 nodes in Location A (site 1) and other 2 in location B (site 2). App1 is accessing (A,B,C) databases in site1 for all their operations and App2 is accessing (X,Y,Z) databases in site 2. In my case, all sites act as primary to their business apps. All write operations should be independent to each site whereas reads could be load-balanced. 

Following are my proposals based on my understanding about FCI/AGs and Strech Clusters

-- Using FCI and AGs

1) Create single WSFC between 4 nodes 

2) Create and configure FCI-1 on nodes N1 and N2

3) Create and configures FCI-2 on nodes N3 and N4

4) Create AG-1 and AG listener from site1 to site 2 on databases (A,B,C) - readable secondaries (async or sync)

5) Similarly AG-2 and listener on X,Y,Z databases from site2 to site1 

Hypothesis: It has HA between N1 and N2 within site1 and at the same time I have secondary replicas pointing to site2. I could also setup Readable Routing list (FCI-2) to make all reads load- balanced across two FCIs. Vice-versa applies to another set of databases from site2 to site1.



Harsha



Only One Role in a SQL Server 2014 AG failed -Windows Cluster 2012 Triggered Automatic Failover

$
0
0

Hi All,

I have three node windows 2012 cluster configured with node majority. I have two roles in the failover cluster.
Only one role triggered a failover but other node remained as primary replica.

Just wondering if anyone have encountered similar issue. I am running on SQL server 2014 SP2 with Windows Server 2012.

Regards,
Kccrga

-kccrga http://dbatrend.blogspot.com.au/



Adding third node

$
0
0

HI All,

Scenario :  I have two nodes with SQL Server installed and SQL Always on setup done and its all perfect running in VMware EXI VM servers.

Problem - The problem is i have shared drive between two nodes where we place the quorum in the shared drive. We are unable to backup VM servers due to shared drive in between the nodes. So we are planning to get third node and added to AG group.

Question - is it possible to add third node to the AG  and make permanent secondary read only replica ?   

Service account on Cluster

$
0
0

Hi,

I am trying to change service account on a SQL cluster (2008R2), want to set different service account on each node for a testing purpose. It is Active Passive setup. When I change service account on Active/Passive node, it gets reflects on the other node, so not able to make it different on each node. Is it a default behaviour? Or is it because of any Windows level cluster settings? As far as I know and as per below link we should set service account on each node separately. Can somebody please comment. Is there a way to achive this?

https://social.msdn.microsoft.com/Forums/en-US/83b89ce8-723a-42f2-8145-9a11844260d3/changing-the-service-aaccount-in-sql-2008-r2-cluster?forum=sqldisasterrecovery

Thanks,

Ashru


MCTS, http://asharafaliptb.wordpress.com

sql server 2016 alwayson availability groups DR Site

$
0
0

Hello

      Current I am planning to installation sql server as below

       Site DC : 1 SQL server  primary and 1 witness

       Site DR : 1 SQL Server Secondary

     All use Active directory

     I have a some question

       - do I need Witness server ?

      - I can up secondary if Primary and witness failure (SITE DC down)

   please everyone suggest help me

Thanks

 

Multiple Basic Availability Group (BAG) SQL 2016

$
0
0

Hello,

I have a quick question regarding to BAG in SQL server 2016 standard edition. Can i create multiple BAG with multiple databases and fail-over using multiple listener? Or is there any other way to fail-over multiple BAG at the same time?

Service Broker up but not processing after AG failover

$
0
0

We have a 2012 server with SQL Server 2012 sp2 set up with and availability group. If we fail the AG to the B node, service broker comes up, but does not process. All messages sit in the queue.

We have been through all the docs for service broker and availability groups, and all appears to be set up correctly.  Any ideas very welcome!


Dianne


SQL2016 Configuring Always ON to use Round Robin Mechanism for Read queries

$
0
0

I have downloaded evaluation version of SQL2016 to test the Always ON especially the round Robin Mechanism.

Configured Always ON with Two nodes and updated the Always ON to route the read queries to secondary node. . All the read queries from the application are still going to NODE1 after the below changes.  Am i missing some thing..?

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE1.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE2.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE1'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE2')

)

);

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE2'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE1')

)

);


VenkatRaju K

No disks were found on which to perform cluster validation

$
0
0

I'm helping a customer that is having issues setting up a Windows 2012 R2 cluster\SQL Server 2014 FCI. The cluster validation tests indicate that No disks were found on which to perform cluster validation . 

Their storage set up includes a MSAS 2040 array with SAS. They have 2 adapters that appear to be mapped to the same storage pool.  In disk management there are two disks (besides the local)  listed both the same  size and with the same partitions. They did not configure MPIO.

I have not seen this configuration ( SAS) before.  Will configuring MPIO likely fix the issue. Or is something more going on. Is SAS compatible with shared disk?

thanks

Peter


SQL Server 2 node cluster Firewall question.

$
0
0

Hi,

We have a two node sql cluster and a web application server.

i have a question regarding what ports needs to be opened between application server and SQL cluster.

Its a named SQL instance that runs on port 1113

IP Addresses are provided for SQL cluster,Node 1,Node 2, Application Server


My Question is Do I need to open all the ports between Application IP and Individual nodes,SQL Cluster IP?

or

is it just the Application IP and SQL cluster IP?


Vinay Valeti| If you think my suggestion is useful, please rate it as helpful. If it has helped you to resolve the problem, please Mark it as Answer


SQL 2008 R2 mirroring between STD and ENT versions?

$
0
0

Hi, is it possible to setup mirroring between two SQL 2008 R2 servers in that one sql server is on Standard version and the mirror server is on SQL 2008 R2 Enterprise version. The reason is that, we are having performance issues and that we don't want to upgrade to sql 2008 R2 Ent, however, by setting up the mirroring, we hope to test by switching to (making the Ent node as a primary) and see if there are any performance improvements.

we are not yet ready to move to SQL 2016 (as we have tons of stored procs and schema and not sure if it there is an easier way to upgrade.  When we ran the upgrade scripts, it failed so we figured it might be an effort to upgrade. while upgrade may take time, we thought of setting up mirroring and see if we can gain some improvements (which are now impacted with it). Ultimately, we are going to SQl 2016 if there is a quicker way to get there, we would love to hear. Any thoughts are appreciated.

History of Rollback transaction

$
0
0

Hi All,

I had a transaction which was rolled back before 24 hours and need to find out history of what statements where executed during this time and who caused this rollback.

Regards,

kccrga


-kccrga http://dbatrend.blogspot.com.au/



New-SqlAvailabilityGroupListener Infinite Loop

$
0
0

I am trying to create a SQL availability group listener using the SQLPS module however I am having a very strange issue. When the command it was just hanging and doing nothing unless I press ctrl+c at which point it would just break out. After running with -debug switch I was able to see that it is checking object existence on the sqlserver PSDrive and looping forever.....

I've tried with various different combinations with/without staticip etc and nothing seems to produce a successful result.

New-SqlAvailabilityGroupListener -StaticIp "192.168.1.11/255.255.255.0" -Port 1433 -Name AG01Listener -Path 'SQLSERVER:\SQL\2016-2\FifthInstance\AvailabilityGroups' -Verbose -Debug -Confirm:$false

Windows Version: Windows Server 2016

SQL Version: SQL 2016 SP1 Enterprise

SQLPS Version: 1.0. *Seemingly quite old but I don't know if there is a new version. It came preinstalled from SQL Media.

Help is much appreciated


SQL server backup Maintenance Plan is not running

$
0
0

Dear SQL expert,

we are using SQL server 2012 for our NAVISION DB. we have created few maintenance plan to backup our SQL DB. However, recently the plan is refuse to run. I tried to execute it manually, but it is also come with error message. I am thinking is it due to the access credentials that being used by the SQL agent? For instance, I am login as domain admin "admin.test" into the SQL server, but the SQL agent that suppose to execute the Maintenance Plan task are actually run under another service account "sysadmin". please see the attached picture below:

Please advise.

Thanks


Fail over clustering with always

$
0
0

HI ALL,

We are planning to configure the fail-over clustering with always-on mechanization  between Primary DC to Secondary DC for SharePoint applications 

1. Primary SQL fail-over cluster 10.10.10.20 (10.10.10.21 and 10.10.10.22)

2. Secondary SQL Fail-over Cluster 10.10.11.30(10.10.11.28 and 10.10.11.29)

1. Do we need Listener?if how many listeners required for the above scenario

2.without listener can we configure always 

3. Automatic fail-over possible if so how do we configure

4.  What kind of share-point  DB will support always on 

5. MSDTC required?

Sql clustering on two HyperV hosts

$
0
0

 Hi,

 I am configuring a high availability for a customer. The plan is to have two HyperV hosts installed on two different locations.

 The servers that should be running on this setum ar Exchange,SQL, DC and FS. The servers will be tower servers, have their own    disks and will be identical.

 I am a little bit confused with what kind of a setup I need for the SQL servers. Should I use data mirroring or Cluster.

 What a bout licencing? will I have to buy two SQL standard licecense? The plan is to install this on Windows 2016. I have  not  bought the servers yet so this is only on paper jet.

  thanks.


Erro

Change AG readable Secondary from "Read-Intent only" to "Yes" - downside?

$
0
0

I have a 2014 AG that has the readable secondary set to Read-intent only, and I would like to change it to Yes so that a SQL job can connect to it.

Is there a downside or downtime to making this change?

Alternatively, is there a way for my job to specify ApplicationIntent=ReadOnly?

Thanks,

Kevin3NF


22 years of database experience, most with SQL Server. Please 'Mark as answered' those posts that helped you.


Kevin3NF on Twitter
DallasDBAs

Single vs Multiple Availability Groups per instance

$
0
0

What are the Pros/Cons of sticking to a single AG per SQL Server vs setting up multiple AGs?

We have a few servers set up with AlwaysOn Availability Groups (all of them are a single primary and single secondary node) and have gone back and forth between the setup/maintenance complexity of multiple AGs each with their own listener and set of databases (as some of our pairs are configured) vs having a single AG and all the HA databases in it (as some of our other pairs are configured).

For the most part, it seems like multiple AGs are overkill and of little benefit but I want to fully understand the rationale and limitations of both approaches. I've been looking for white papers with pros/cons of both approaches and best practices but have found none.

Can Not Start SQL

$
0
0

SQL 2014 with a 2 member cluster. The data and log path reside on a JBoD device attached to a server via a SaS cable. For some unknown reason, that JBoD device was unaccessible and we had to physically attach it to a different server. Re-attach the storage pools and set permission on the shares. Now the data and log paths are accessible on the "new" server. Now i am trying to tell SQL server where the new data and log path is located. I started SQL config manager and double-click the instance name. In startup parameters tab, change the old path to the new path and click update then apply. Then on the advanced tab, double-click the data and log path and enter the new paths and click apply. I also changed SQL references to the old server to the new server in the registry but can not get the SQL service started. How does 1 change the old references to the new references when you can not start management studio?

I see this in the event viewer:

FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '\\oldserver\Sharename$\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.

Viewing all 4689 articles
Browse latest View live


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