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

Mirroring error

$
0
0

Dear all,

I'm trying to set up mirroring and I get the following error, I have run the following to check if the ports are able to open cmd-> telnet servername 5022 but the issue is still there. Would you please let me know what else I can try please?

The server network address "TCP://servername.test.local:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (.Net SqlClient Data Provider)


Replication, Mirroring and Always On - for reporting, not failover.

$
0
0

We have SQL 2005 and 2008 boxes and are moving to 2012. Because we're starting from scratch with a new SQL2012 environment I'm just checking if there's a better way of doing what we've been doing...

Previously we've used replication to copy data from PROD_DB (our production db) to RPT_DB (report DB). And it's proven problematic so I'd like to move away from replication if possible.

RPT_DB is used by SQL SERVER Report Service to provide reports to users. The report db has a different set of indexes etc to ensure max performance for the reports. We don't want to put them on the transactional database because we've inherited some really bad table structures that suffer from too many indexes. We also turn on parrellism in reports environment (improves performance) but not in transactional one (makes some things slower - maybe down to bad design again).

So the structure of RPT_DB isn't quite the same as PROD_DB - but we want to keep the data up-to-date.

I'm trying to work out what's the best option - Replication, Mirroring or Always On. Most discussion on these topics tends to focus on failover scenarios. I just want to see what's recommended for what we are trying to do.

I'm familiar with replication (tho not a fan) so I know it can do what I want but I'd like some input on whether it would be better to use Mirroring (tho soon to be made obsolete !) or Always On instead of replication.

automatic addition of record

$
0
0

hello

I've two databases with different structures, i want to add a record with it's data from the first database into the second database in the place i define, this action must happen automatically as soon as the record is created in the first database.

any suggestions?

Deny permission to run sql agent jobsto sysadmin users.

$
0
0

Hi,

   can we deny users with sysadmin role a permission to run or edit sql server agent jobs.

Requirements for Automatic Failover

$
0
0

Hi,

Quick question regarding database mirroring in SQL 2012. If I set the operating mode to High safety with automatic failover (synchronous) do I then need a 3rd SQL instance to act as the witness or can this be set to the mirror instance?

Thanks

Alistair

Transaction replication

$
0
0

Hi,

I am trying to do a POC on transaction replication. Have created the publisher and when creating the subscriber, getting the below error.

--------------------------------------------------------------------------------------------------------------------------------------------

Cannot connect to IP-ABCDE\DBDB01.

Failed to connect to server IP-ABCDE\DBDB01. (Microsoft.SqlServer.ConnectionInfo)

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

--------------------------------------------------------------------------------------------------------------------------------------------

Have created a port in windows firewall for 1433.

Able to connect from the publisher SSMS. Please do the needful to resolve the same.

Restore database that has mirroring enabled

$
0
0

I apologize, as I'm the default SQL person now and my skill level is pretty much limited to running queries. SQL 2008 R2

We have a Test database that is mirrored and has severely outdated data. I'd like to copy the data in from a recent back up of our Production environment.

I understand I need to break mirroring first by going to the database > tasks > mirror > mirroring > hit "remove mirroring" button.

Then I can do a normal restore, correct? (Databases > Tasks > Restore). On the options page I should select "NORECOVERY".

Then what? I will need to restore the mirroring. Do I just go to database > tasks > mirror > mirroring and uncheck "remove mirroring"?

Any pitfalls I should be aware of?

New Top Support Solutions blog

$
0
0

Hello

As part of our efforts to keep our communities informed about the most relevant content that address the top questions that we are getting in out forums and other support channels we want to introduce the new “Top Solution Content” blog (http://blogs.technet.com/b/topsupportsolutions).

In this blog you will find up-to-date and valuable information about Microsoft top support solutions for several of our popular products in the Server and Tools portfolio. You can use the tags (http://blogs.technet.com/b/topsupportsolutions/archive/tags) to easily locate the product of your preference or visit the home page to see what’s going on for the different Microsoft Enterprise and developer products. As a blog you can also subscribe to post and comments using the RSS feeds.

We hope this will reduce time and effort when you are looking for relevant content. Enjoy it!

Thanks

Microsoft Support team


Elvis Long
TechNet Community Support


When you establish mirroring, you must establish a (n) ____________ on each server, principal, and mirror.

$
0
0

When you establish mirroring, you must establish a (n) ____________ on each server, principal, and mirror. 

Time out Error

$
0
0

Hi all,

Last night  we found below fatal error in our production box

The client was unable to reuse a session with SPID 135, which had been reset for connection pooling. The failure ID is 51. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message

Logs:

Error Message:The update to the database failed. Reason: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.

Requesting to you exports please suggest me for the above errors what action i had to take.


subu

Database Mirroring Encryption

$
0
0

Hi,

 Our security team, scanned database server (SQL 2005) and mentioned that there are two connections (ref: below screenshot) which are not being encrypted. When we looked at the connections, they were database mirroring related. (Engine level: we implemented SSL certificate).

So, we started working on to encrypt these connections as well. We created certificate and assigned it to the Endpoints, successfully. (Ref: http://msdn.microsoft.com/en-us/library/ms191140(v=sql.90).aspx). The only thing that we didn't follow is "CREATE LOGIN" part and Database mirroring is running & synchronizing. But we still can see those two connections exists.


QUESTION: What are we missing? Any ideas will be a great help. Thank you very much.


If you feel that I have answered your question then please "Mark as Answer".



Database Mirroring Issue

$
0
0

I manually failed over to the mirrored server,

jobs that were setup on Mirrored server were disabled

but later i realized that the Jobs Ran when this server became principal.

Reason? 


k

How to get the SQL Primary and Mirrored Database Server Name from Witness Server

$
0
0

Hello,

                Can Someone help me with the way to get SQL Primary and Mirrored server name from Witness server?

Any Powershell script/SQL Query..etc or share the alternative?

Regards,

Julie

Log Shipping Not Working

$
0
0

I have been trying to setup Log Shipping between two servers in our domain. I have followed the steps in the documentation, but the final step of restoring the transaction logs on the Secondary Server Instance database never happens. We are using the pubs database to setup this initially. The Secondary Instance/database is in Stand-by/Read-Only mode

Now there are 3 jobs that are mentioned during setup.

- (LSBackup_pubs)  This job backs up the trans log files (I always get job succeeded and it does)

- (LSCopy_mlst4_pubs) This copies over the trans log files to the other server (I always get job succeeded and it does)

- (LSRestore_mlst4_pubs) This is the job that is suppose to do the restoration (I always get job succeeded but there is no restoring of the Transaction Log Files on the Secondary Server).

So there is no problem in taking the backup and copying the files. It is in the final step of restoring on the database on the Secondary Instance.

Thanks for any and all help

Adding memory to virtual machine caused automatic sql server failover

$
0
0

We are running 3 sql servers on 3 virtual machines. On first instance we have some dbs mirrored on second instance by using third one as witness.

Recently we decided to add some memory to the VM machines but it caused automatic failover on sql server mirrored DBs.

I checked the sql server log and I saw some timeouts on TCP port used for mirroring and the automatic failover.

Question is why it happened? I know that if timeout happens on mirrored servers, witness will automatically does the faliover, but why adding memory to VM machines caused timeout?


Transaction Log size doesnt reduce after backup

$
0
0

Hi, 

 we have a sql db that is around 95 gb and the transaction log is around 87 gb. The mdf has a weekly full backup but the ldf didnt seem to have a backup scheduled. I did go through the forums and most of the recommendation i got was to take a full backup of the transaction log to reduce its size. I did take the backup , but the size has gone down by only 2 gb. 

Unfortunately the recovery model is set to FULL and i cannot change it to SIMPLE as this DB is mirrored in a DR site so only FULL model is acceptable. Please let me know if there is any other way to have a sizable reduction in the transaction log by tens of gig atleast. This is a 2008 model.

I am thinking of a DBCC shrinkfile to a specific value but really scared if that might mess up the main data file.

Thanks.

Database Mirroring

$
0
0

i want to do a quick mirroring/Application test,

i want to break the mirroring and point my application to the broken Mirrored version of database on DR server,

would the database still communicate to my application,


k


logs for 'Operating mode' change in mirroring

$
0
0

Logs for 'Operating mode' change in mirroring

Hi Everyone,

Is there any log,that shows when the Operating mode of a database involved in mirroring(SQL SERVER 2008 R2) has been changed from asynchronous to synchrous(or vise versa).

Regards,
Aspet


A.G

An error occurred while starting mirroring-Alter failed for Database 'AdventureWorks'. (Microsoft.SqlServer.Smo)

$
0
0

Hi Guys ,

 I am trying to set up Mirroring on my local machine to test SQL2008R2. And when Ever I am trying to start getting this error..

IS anyone has idea?

On Mirror Server Error log has this details

: Database Mirroring login attempt by user.' failed with error: 'Connection handshake failed. The login 'NT AUTHORITY\NETWORK SERVICE' does not have CONNECT permission on the endpoint. State 84.'. 




Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

Restore the backups of all the databases at a time

$
0
0

Hi all,

I have a task where i need to configure database mirroring for 400 databases at a time. I need a single TSQL Script to restore all the databases full backups with no recovery mode at a time.

QUick answer will be really appreciated. 

Viewing all 1024 articles
Browse latest View live


Latest Images

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