Quantcast
Channel: Database Mirroring forum
Viewing all 1024 articles
Browse latest View live

SQL 2016 : Unable to start mirroring

$
0
0

Hello,

I have a SQL 2016 (13.0.1601.5) with 3 instance of SQL server running on it. 

Instances:

1. DBMirror (to hold the principal DB)

2. ALWAYSON2016 (to hold the mirror DB)

3. SQLWITNESS (to be the witness server)

I have attached security configuration of the 3 instances. The configuration completes successfully. 

All the 3 instances of SQL server and SQL agent is running under the same domain administrator account. The DB has been restored(no recovery) with DB and the transaction log

Once i start mirroring, i get the error: Database <name> cannot be opened. It is in the middle of a restore. (Microsoft SQL Server, Error: 927)

I have attached the screenshot



Linked server performance issue.

$
0
0

i'm trying to Update a table in server B from server A.

for this which on is best 

1) Updating Server B table Directly server A.

2) Write a stored procedure in Server B which contains the update statement and execute it from Server A.

3) any other options were available for this ?

Does Restarting SQL server will increase the Performance of SQL server ?

$
0
0

restarting the SQL server or the box which installed SQL server, will increase the SQL server performance ? does it really works  ?, else what are the tips to increase the SQL server performance without restarting the SQL server or SQL installed BOX. ?

Subscriber - Failover Mirroring

$
0
0

Hi,

I am in the progress implementing database mirroring for our SQL server to achieve HA.

There are some of our SQL are replication subscriber and as per googling can't find the steps to implement mirroring on subscriber sql server. 

Please help to advise if anyone have implement subscriber server failover mirroring.

Will appreciate your reply.

Always on Latency Alert

$
0
0
Hi,

I have an always-on AG that has 2 replicas. So ServerA(primary) has ServerB and ServerC as replicas.

ServerA and ServerB are in the same data center and ServerC is on a remote data center.


However, Since ServerC is on a different data center, we face latencies due to bandwith issues in network. We are working on that on a separate issue with the network folks.
So say for some reason, we have huge logs at a time where lot of inserts happen on ServerA, we see ServerB catch up in 2-3 minutes while serverC takes 1 hour or so. 

So We have set ServerC only as a DR and ServerB for reporting.

I have created policies that alerts me if the estimated data loss exceeds 30 minutes. However we get alerted if the threshold is exceeded for either of the replicas.
I want to be alerted for just the latency on ServerB. Is there a way?

"Database Replica State" facet has been used to create the policy and condition expression @EstimatedDataLoss < 1800

Regards,
Gummy

Copy tables from one database to another daily

$
0
0

Hi

We need to overwrite some tables on one database from another database once a day. The databases are hosted on two separate servers connected via a WAN.

The master database where the tables will be copied from is running SQL Server 2014 Standard.

What is the best way to do this?

Thanks

V2V a SQL Mirror (2 servers)

$
0
0

Hi ,

We have 2 SQL servers set up as mirrors , 1 in one DC and the other in other DC.

We Plan to V2V this (we have to move from one platform/offering (VMWARE) to another which is also VMWARE

will the below plan work

1. v2v offline 2st (passive) node - offline - bring up --> test mirroring.

2. once completed, make second node primary --> switch of the 1st node

3. V2V the 1st node - offline --> bring it online after v2v complete --> test mirroring --> make it primary

is there anything else we need to / should consider ?

Thanks

Reg Licence for SQL Server / Windows OS

$
0
0
Hi,

We have Production databases with mirroring configured in different server and location. Now we are going to upgrade our Production Database Server as follows:

Existing 
 
01. Windows 2008 R2 Ent 

02. SQL server 2008 Ent 

Upgrade

Windows 2012 Ent 

SQL SERVER 2014 CORE

Do we require the license in DR Server  for OS and SQL as well?. I heard that in SQL 2014 there is an option for 'always on ' where we don't require the license for SQL. Kindly suggest.






Replication from SQL Server 2008 R2 to Azure

$
0
0

Hello everybody,

I've a new customer who requested me to do replication between an on-premise SQL Server 2008 R2 Standard Edition Database and a new SQL Azure Database, that will hold a copy of the DB.

I've been investigating around and it seems this feature is not supported by 2008 R2 and Azure. The customer is not willing to migrate the SQL server on-premise because "it is working just fine". But they want to replicate transactional or "every some minutes" in order to avoid losing data if a disaster happens.

I also read about Azure Synch, but it seems it does not work very well with large databases (it does not seem to replciate deltas, it just checks all de rows)

I would appreciate any help on this topic, being a solution or suggestions to cover this requirement with the explained components.

Regards

GV

Unable to drop database which was in Mirroring

$
0
0

Hi, I have database with mirroring, before 1 month I remove the mirroring on primary server. So now I want to drop the mirrored DB on mirrored server. But I'm unable to do this. It shows 

the command failed because the database mirror is busy. reissue the command later

So I tried the below commands,

alter database dbname set partner off;

Drop database dbname; 

alter database dbname set partner force_service_allow_data_loss;

restore database dbname with recovery.

I tried to drop manually, but no use. Please help me to fix this. 

Database Mirroring

$
0
0

Hi,

I am facing an issue while configuring the mirror after restoring the database. Below error i am receiving.

The server network address cannot be reached or does not exist. check the network address name that points for the local and remote endpoints are operational.

But the mirror database is operational and seems no issue.

Web Application Connection to Mirrored Database

$
0
0
I know this is a deprecated feature but we are interested in using SQL Mirroring use SQL 2012 Standard for some in house web applications. My developer came from a place where he just used a SQL Cluster IP to configure his web applications to connect to. How is this done in a mirrored database for the application to be aware of the mirrored server and database? I have searched the forums and I haven't found a definite answer yet. Thanks for any assistance!

Problem to start mirroring with SQL 2016

$
0
0

I have experienced SQL Server mirroring the commissioning problems with the 2005 version several years ago. (2 servers + witness)
I feel reliving the same situation without finding a solution.
I spent many hours (days), peel the forums on the subject of mirroring (unsuccessfully).
Project specifications:
2 Windows Server 2012 R2 64-bit servers
1 pc Windows 7 64-bit (witness)
The 2 servers run SQL Server Standard 2016 and the witness SQL Server 2014 Express.
Here is what has been tried:
- Setting the mirroring from a Windows authentication.
- Setting the mirroring according to the certificates (many tutorials found)
- Added the witness + servers on a domain (because trying in a workgroup before)
- SQL Server Service running with the same domain user.
- Opening the necessary ports on Firewall ...
- disable firewall on all machines ..
- Ping IP and machine name = ok
- Netstat -an (listening of the port=ok)
- The Endpoints exists on the 2 servers (and testing with or without encryption options)
- connexion tests for SQL Server services from other partners ...
- Mirroring configuration via the wizard and... test via t-sql scripts (many found on internet)
- Encoding domain service account via the wizard (or not)
- Etc., etc
-

Currently, after dozens of tests, I get this error if I try a configuration via the wizard: (FULL backup From the first BD + restore to Server 2 with NORECOVERY option!) when I start the mirroring.

! => WIzard tell the partners + witness well configured.



I get this error if I try to set mirroring via the T-sql command:




I turn around, I'm all delete, which restart the servers again ... .. I get the same errors.

1) error : I can ping all partners (name, ip), the Listening of the Endpoint exists, the access are granted to the same user (who run the SQL services)

2) DB restore state ... yes, the DB on server 2 is in restoring states, yes, the LOG has been restored too (NORECOVERY option)..



If you have any tracks, thank you in advance!

Sincerely,

 

A critical database corruption due to disk IO Drop table by mistake Unresponsive SQL Server

$
0
0

A critical database corruption due to disk IO

Drop table by mistake 

Unresponsive SQL Server 

How to capture all SQL statements executed by sysadmin in SQL2008R2 Standard

$
0
0
I'm using SQL2008R2 Standard. I wanna capture all SQL statements executed by any sysadmin members. Actually I have a SQL Trace running now which captures all SQL statements executed by specific LoginName, e.g. sa account, but sysadmin is a server role which seems cannot be set as a trace filter. Or any other features or tools can do this?

How to view file locations of a mirrored DB

$
0
0

Can we view file locations of a DB in restoring mode?

Plz don't suggest me to restore DB with recovery and use sp_helpdb <db_name> or sys.master_files.

Central Management Servers

$
0
0
How to add a new server to CMS using SQL login in SQL2012?

Mirror History: High Unrestored Log, but Zero Mirror Commit Overhead

$
0
0

I have a SQL2008R2 database mirrored in high-safety mode. I feel strange when I found something in the database mirroring history as below screenshoot:

The "Unrestored Log" was very high, but the "Mirror Commit Overhead" only zero.
According to the BOL, "The principal server waits for an acknowledgement from the mirror server". So I think in my case the Mirror Commit Overhead should also be high too. Or my understanding is wrong?

Querying Central Management Severs

$
0
0

Is there a way to insert the result of a query ran in central management server to a table?

Recently working on a project which needs data from multiple servers inserted to a table, stuck at this point.

any help will be really appreciated. 

Migrating MS SQL Database to another SQL server Instance

$
0
0

Hi,

I have got an MS SQL Database with 150 GB in size. I need to migrate this database to another location/Instance with the faster way possible .

Note that the database is in a production environment and my RTO is 1 hours, also I have a bandwidth limitation through the network.

What is the optimum method to follow in order to migration the database with the minimum loss of data and in timely manner?

Regards,

Tarek 



Viewing all 1024 articles
Browse latest View live


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