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

SQL Mirroring - Connectivity Loss

$
0
0

Hi Team,

I have configured Pricipal / Mirror setup between two servers. connection is symmetric. some times the connection goes down and it starts synchronize automatically.

My Question is ..

1. Need to identify which end principal / Mirror which one loose its connection first.


Different Replication types in best used situations

$
0
0

Hello everyone,

There is a different types of Replications one can use in Sql 2008/sql 2012 but I want to have an Idea in which
situation a particular type will fit in best that will be advantageous to use that particular type??If possible if one can give
proper real time example for types of replication to be used???

Thanx in advance


srm_2010

Mirror Database shows Recovery state in Database mirroring in sql 2012

$
0
0

Hi I am working on DBmirroring and have encountered problem of mirror database showing recovery state.

I tried to resolve issue by removing database mirroring from principal ,removing endpoints from both the nodes and
finally firing alter database db1 set partner off statement also.But when reconfigure dbmirroring on principal it does not allow
start dbmirroring and mirror database db1 comes in to recovery state from restoring stage.


srm_2010

Availability Groups with different collations ??

$
0
0

Hello,

Is it possible to create several Availability Groups with different collations  ?

I want to use a common SQL infrastructure for System Center.

Thank you.

Jérémy

Install SQL Server

$
0
0

Hello,

I try installed SQL Server 32 -bit  Developer Edition 2005 on Window Server 2012 64-bit, But I face an error during installation at the point of start sql service, as below error :

"The SQL Server service failed to start. For more information, see the SQL Server Books online topics, “How to: View SQL server 2005 setup log files” and “starting SQL Server Manually.”

Does this version OS support above SQL server version?

another one thing I want to know, if I have installed different edition of SQL (supposed SQL Server Developer & Standard ) whether It can configure mirroring?

Best Regards,

mirroring issue on sql server 2008 R2

$
0
0
TITLE: Database Properties
------------------------------

One or more of the server network addresses lacks a fully qualified domain name (FQDN). To start mirroring without using a FQDN, click "Yes." To specify the FQDN, click "No." Then, specify every TCP address by using the syntax for a fully qualified TCP address, and click Start Mirroring again.

This syntax is:
TCP://<computer_name>.<domain_segment>[.<domain_segment>]:<port>

------------------------------
BUTTONS:

&Yes
&No
------------------------------

ad ds security for domain account for windows clustering

$
0
0

Hi I am practicing Sql Clustering on vmware workstation 7.0 for two node cluster with third as DC..I am getting :invalid network name" error while installing Sql server 2012 ent on windows server 2008 R2 sp1..

I want to know wheteher it is AD security related problem or it is due to vmware tools that get installed on cluster node?
how to add a domain user in SQL-policy under Global policy object in AD???/

where is computer configuration\windows setting\local settings\Global policy object\Sql-Policy????where you have to add domain user..any help???


srm_2010

Can't Mirror a database

$
0
0

Hi,

I was hoping someone might be able to help me with a SQL Database Mirroring issue I have. I haven't dealt much with SQL but I have done this on a different network once about a year ago and i have tried following the same guide, it worked last time but isn't this time.

the 2 SQL servers are just on workgroup not a domain,

I right click the database > all tasks > Mirror... click on the 'Configure Security...' button and ran through the wizard.
At the end of the wizard it points out i'm not using FQDNs but i click to continue anyway.
I then clicked the start mirroring button and get the error

An error occured while starting morroring
Alter failed for database 'Name of my database'. (Microsoft.Sqlserver.Smo)
An exception occurred while executing a transact-sql statement or batch.
(Microsoft.Sqlserver.ConnectionInfo)
The server network address 'TCP://SQLServer: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. (Microsoft Sql Server, Error: 1418)

I have checked both server can resolve and ping each other, both servers have firewalls disabled. I have checked and both servers can open a connection to each other on port 5022 using telnet so it seems its probably not a network issue.

Any ideas?

Thanks

Daniel


Snapshot synonym

$
0
0
Is there anyway to make it so you don't have to change your code to match the snapshot name?

Alan

Network Packet Size Or Bandwidth Restriction in Database Mirroring

$
0
0

Hi Everyone,

I tried finding online but couldn't get answer to the below question.

Is it possible to restrict the packet size for the SQL Database Mirroring? Is it possible to tell database mirroring what size packets it should send to the mirrored database? Is it possible to define the bandwidth or packets per second for mirroring? If yes, is it possible at the server level or database level? If yes, how to do this?

The reason that I want to know this is because, if I have N number of databases on a server and I'm mirroring them on other server in a separate location, how will I get to know the bandwidth constraint and if there is a bandwidth constraint can I control the data sent through database mirroring to ensure that the bandwidth is not affected?

Thanks
Mayur Kashikar

Deployment Question

$
0
0

Hi, I built software as website using VS2013 asp.net with sqlserver 2008 R2 and hosted on production server. Also, my customers are using the software for last one year. I usually deploy the new feature build in every month after 7 pm on last Friday of every month. I am planning to do the deployment during office hours(b/w 8 to 6) which should not impact the customers. I wanted to do the deployment and parallely my customers can use the website . I can create separate VD on IIS to have my latest code deployed and tested then i will point it to it when testing is done. Hope no issue will come on Application server side. But how do i maintain my database

because i should not execute the schema changes and other DDl and DML changed on the Production database as it is live and used by the customers.

 What is the best way to achieve this scenario?  How do i maintain the transaction?

Do i need to have another database instance and once the deployment over should i need to sink? I don't have any idea as of now how to proceed with this. Any suggestions please how to implement this. how do i achieve this concept. please suggest me


loving dotnet

mirror database not syncronizing

$
0
0

Hi ,

i have configured principal --> mirror --> witness

everything is fine.

but i launch the mirror monitor everything synchronized. but in real it could not. i took mirror database take snapshot database.

that is not updating.

please advice me .

thanks in advance

vijay

Receiving error message "Login failed for user 'NT AUTHORITY\SYSTEM'" every minute on server which is the mirror

$
0
0

Hello,

I have 2 SQL Server 2008 R2 machines that are configured with database mirroring (using certificates as authentication), there is no witness configured.  My issue is that the mirror server is receiving at least one of the below pared messages every second and filling up my sql error log quickly.

SYSTEM is the service account user for the MSSQLSERVER service. 

[298] SQLServer Error: 4060, Cannot open database "<databasename>" requested by the login. The login failed. [SQLSTATE 42000]
[298] SQLServer Error: 18456, Login failed for user 'NT AUTHORITY\SYSTEM'. [SQLSTATE 28000]

The database has a status of: Affected database state is: Mirror, Synchronized/Restoring...

When I checking the database mirror monitor, it shows that its mirroring ok and everything has green checkboxes.

Is there a way to stop all these errors being logged, I'm assuming this isn't normal.

Marcus


SQL 2005 mirroring : Abrupt Automatic failover

$
0
0
hi All, 

We have a SQL 2005 SP4 mirroring  setup of 15 DBs with Principal(P), Mirror(M) & Witness (W).

We have now seen abrupt DB failovers for some of the databases (yest it was 4 out of 15) from P to M.

Errors were seen on Witness server as follows for all Dbs that failed over:

Date07/01/2015 11:07:48 PM
LogSQL Server (Current - 08/01/2015 12:00:00 AM)
Sourcespid19s

Message
The mirroring connection to "TCP://<server.domain.com>:5022" has timed out for database "<DBName>" after 10 seconds without a response.  Check the service and network connections.

Actions taken:

1. Network and Firewall team reverted that no error detected and no network traffic between the witness server and db server during the db auto failover period.

2. On the system side, we have verified that no hardware error found on either VM or SAN storage, and no Symantec SQL backup jobs running nor anti virus scanning during the db auto failover period too.

3. We did see some high amount of IO activity on P server around failover time. Some IO errors similar to below were seen, however point to note is these errors were not only for the DBs that failed over, but for others including TEMPDB:

Date07/01/2015 11:07:38 PM
LogSQL Server (Current - 08/01/2015 4:06:00 AM)

Sourcespid2s

Message
SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [R:\SQLDATA\MSSQL.1\MSSQL\Data\<DBName>.mdf] in database [DBName] (5).  The OS file handle is 0x000000000000095C.  The offset of the latest long I/O is: 0x0000054ff22000


Questions:
1. I assumed that the Witness keeps polling P & M on DB mirroring endpoints (in our case 5022) to check that the DBs are online, but Network team says there is no activity on that port, is my understanding correct?
2. Is there any other reason for DB failover ? 

Link referred:  
http://dba.stackexchange.com/questions/22402/what-can-cause-a-mirroring-session-to-timeout-then-failover-sql-server-2005
http://msdn.microsoft.com/en-us/library/ms179344(v=sql.90).aspx



Any help is highly appreciated!!!

Regards,
Mandar


having issues with setting up witness

$
0
0

Hi,

I am setting up a new mirroring session, everything went correct but while setting up the witness, i got an error message: 

The ALTER DATABASE command could not be sent to the remote server instance 'TCP://xxx:abc'. The database mirroring configuration was not changed. Verify that the server is connected, and try again.

1. I have all servers separate and the same sql server version : sql server enterprise 2012;

2. I can resolve their FQDN names and ping each other.

3. I can successfully telnet to the endpoint's port from any of the servers to the other;

4. the mirroring session is up and synchronized between principal and mirror. I used certificates;

5. on the witness server, i have the following error logs: 

Database mirroring connection error 2 'DNS lookup failed with error: '11004(The requested name is valid, but no data of the requested type was found.)'.' for 'TCP://xxx:abc'. 

An error occurred in a Service Broker/Database Mirroring transport connection endpoint, Error: 8474, State: 11. (Near endpoint role: Target, far endpoint address: '')

Error: 9642, Severity: 16, State: 3.

any solution??


how to apply service pack in always on?

$
0
0

Hi Team,

in my environment we have always on. our management person asked me about the document service pack installation steps and pros and cons.

could you please guide me on this

thanks in advance

vijay

remote and local database syncronization

$
0
0

Dear Team,

I have a small question, basically i am working in NGO as MIS specialist and i have a question i.e. we have our central database (SQL server 2008) over cloud and users connect from our application(Windows base software) to that , we have different offices in different countries , sometime it happens user dont have internet or they have some problem with the internet so we like to have local Sql server in their premises and it should sync with realtime central database always so whenever internet get fail or some problem occur and internet stop working so they can work with the local sql server database and once internet start working we want to update our records what they entered during offline to central database. please suggest how can we achieve this.

Regards
Eli

 

Cannot remove Mirroring due to Error 3456? SQL 2012

$
0
0

I have a database that was a mirrored partner and went into suspended state. (Mirror Server was shut down).

I took the principal database out of mirroring using SSMS. But now I am unable to restore the mirror database so that I can set up the mirroring again.

When I run ALTER DATABASE X SET PARTNER OFF on the Mirror, SQL logs Error 3456 (Could not redo log record)

When I run RESTORE on this database from a backup - SQL tells me I cannot because the database is involved in mirroring.

Is there any other way to drop this database safely? I cannot take it offline and cannot delete it for the same reasons. It seems I cannot remove mirroring on the Mirror, for some reason. Thank you

How To Recover Data From A Corrupt Mdf File?

$
0
0
Hi All,
By mistake i delete database from sql server. Due to which the the mdf and ldf file of the datbase are removed from my system. Then i used file recover utility and retrived my mdf and ldf files.But now i am not able to attach those files into databse. These mdf and ldf files has been corrupted. Now how can i recover my data from those mdf and ldf files.Please answer me if you have any solution on this problem. 

How to Increase database / log size of mirrored database

$
0
0

Hi All,

I have been asked to increase the default database and log size of two databases, both of which are mirrored.

I have been trying to find out what else I need to do in this case other than the standard resizing.

Are there extra steps I need to perform as these dbs are mirrored (SQL Mirroring)?

Farren

Viewing all 1024 articles
Browse latest View live


Latest Images