dbTalk Databases Forums  

Database Mirroring - Witness Server

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Database Mirroring - Witness Server in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Database Mirroring - Witness Server - 01-30-2009 , 11:41 AM






Hello Guys,

I would appreciate if you can provide me step by step configuring Witness
Server for Database Mirroring.

Quick question, let's say we have three Servers.

DBServer1
DBServer2
Witness1

We would like to create database mirroing from DBServer1 ---> DBServer2 and
witness1 Server reposonsible for failover.

The question here is application point to which Server, Witness1 or DBServe1 ?

If DBServer1 goes down we have to manually change the application connection
string to DBServer2?

Please advice.

Thanks


Reply With Quote
  #2  
Old   
Manpreet Singh
 
Posts: n/a

Default RE: Database Mirroring - Witness Server - 02-03-2009 , 05:47 AM






please follow this to configure mirror server

1. Connect to the instance hosting the main database that you plan to
use as the principal database.
2. Right-click the main database and choose Properties.
3. Select the Mirroring page.
4. Click Configure Security to launch the Configure Database Mirroring
Security
Wizard.
5. On the first screen, the splash screen, select the Do Not Show This
Starting Page
Again check box. Click Next. You will now define endpoints for all three
database mirroring roles: principal, mirror, and witness.
6. On the Include Witness Server page, verify that Yes is selected. This
option
enables you to configure an endpoint’s security for the witness server
instance.
Click Next.
7. On the Choose Servers To Configure page, you see that the Principal Server
check box is selected and unavailable because it is assumed that you are
running
the wizard from that instance. Verify that the Mirror Server Instance and
Witness
Server Instance check boxes are also selected. Click Next.
8. On the Principal Server Instance page, by default, the Principal Server
instance is already selected. In the Listener Port text box, specify a port
number. In the Endpoint Name text box, type a name for the endpoint. Also
verify that the Encrypt Data Sent Through This Endpoint check box is selected
to ensure secured communications. Click Next.

9. On the Mirror Server Instance page, click Connect, specify the instance
name
and login credentials for the instance on which you want to host the mirror
database, and then click Connect. This creates a connection to the instance
hosting
the mirror. Specify the port number and a name for the endpoint, and select
the
Encrypt Data Sent Through This Endpoint check box to ensure secure
communications. Click Next.
10. On the Witness Server Instance page, connect to the witness server
instance the same way you connected to the mirror instance in step 9. Specify
the port number and endpoint name, and then select the Encrypt Data Sent
Through This Endpoint check box to ensure secure communications. Click Next.

11. On the Service Accounts page, you specify service accounts. This step is
optional.

If all the instances that you are configuring endpoints for have the SQL
Server
service running under the same service account, you do not have to specify
anything here. Otherwise, specify the service account for the SQL Server
service on all three instances. Click Next.

12. On the Complete The Wizard page, review the configuration settings that
the
wizard will implement. If you have any changes to make, click Back until you
reach the appropriate page and then make the necessary changes. If the
configuration is correct, click Finish.

13. When the wizard completes, click Close. Click OK to close the Database
Properties message box. This message box serves to remind you that mirroring
does not begin until you click Start Mirroring on the Mirroring page of the
Database Properties dialog box for the primary database. Click OK to close
the Database Properties


also sql server native client can save mirroring information . it means if u
are using sql server native client then your application is automatically
compatable with db mirroring .

manpreet singh
MCITP (DBA,DB Dev)

Rogers" wrote:

Quote:
Hello Guys,

I would appreciate if you can provide me step by step configuring Witness
Server for Database Mirroring.

Quick question, let's say we have three Servers.

DBServer1
DBServer2
Witness1

We would like to create database mirroing from DBServer1 ---> DBServer2 and
witness1 Server reposonsible for failover.

The question here is application point to which Server, Witness1 or DBServe1 ?

If DBServer1 goes down we have to manually change the application connection
string to DBServer2?

Please advice.

Thanks


Reply With Quote
  #3  
Old   
Rogers
 
Posts: n/a

Default RE: Database Mirroring - Witness Server - 02-18-2009 , 03:34 PM



Thanks..

"Manpreet Singh" wrote:

Quote:
please follow this to configure mirror server

1. Connect to the instance hosting the main database that you plan to
use as the principal database.
2. Right-click the main database and choose Properties.
3. Select the Mirroring page.
4. Click Configure Security to launch the Configure Database Mirroring
Security
Wizard.
5. On the first screen, the splash screen, select the Do Not Show This
Starting Page
Again check box. Click Next. You will now define endpoints for all three
database mirroring roles: principal, mirror, and witness.
6. On the Include Witness Server page, verify that Yes is selected. This
option
enables you to configure an endpoint’s security for the witness server
instance.
Click Next.
7. On the Choose Servers To Configure page, you see that the Principal Server
check box is selected and unavailable because it is assumed that you are
running
the wizard from that instance. Verify that the Mirror Server Instance and
Witness
Server Instance check boxes are also selected. Click Next.
8. On the Principal Server Instance page, by default, the Principal Server
instance is already selected. In the Listener Port text box, specify a port
number. In the Endpoint Name text box, type a name for the endpoint. Also
verify that the Encrypt Data Sent Through This Endpoint check box is selected
to ensure secured communications. Click Next.

9. On the Mirror Server Instance page, click Connect, specify the instance
name
and login credentials for the instance on which you want to host the mirror
database, and then click Connect. This creates a connection to the instance
hosting
the mirror. Specify the port number and a name for the endpoint, and select
the
Encrypt Data Sent Through This Endpoint check box to ensure secure
communications. Click Next.
10. On the Witness Server Instance page, connect to the witness server
instance the same way you connected to the mirror instance in step 9. Specify
the port number and endpoint name, and then select the Encrypt Data Sent
Through This Endpoint check box to ensure secure communications. Click Next.

11. On the Service Accounts page, you specify service accounts. This step is
optional.

If all the instances that you are configuring endpoints for have the SQL
Server
service running under the same service account, you do not have to specify
anything here. Otherwise, specify the service account for the SQL Server
service on all three instances. Click Next.

12. On the Complete The Wizard page, review the configuration settings that
the
wizard will implement. If you have any changes to make, click Back until you
reach the appropriate page and then make the necessary changes. If the
configuration is correct, click Finish.

13. When the wizard completes, click Close. Click OK to close the Database
Properties message box. This message box serves to remind you that mirroring
does not begin until you click Start Mirroring on the Mirroring page of the
Database Properties dialog box for the primary database. Click OK to close
the Database Properties


also sql server native client can save mirroring information . it means if u
are using sql server native client then your application is automatically
compatable with db mirroring .

manpreet singh
MCITP (DBA,DB Dev)

Rogers" wrote:

Hello Guys,

I would appreciate if you can provide me step by step configuring Witness
Server for Database Mirroring.

Quick question, let's say we have three Servers.

DBServer1
DBServer2
Witness1

We would like to create database mirroing from DBServer1 ---> DBServer2 and
witness1 Server reposonsible for failover.

The question here is application point to which Server, Witness1 or DBServe1 ?

If DBServer1 goes down we have to manually change the application connection
string to DBServer2?

Please advice.

Thanks


Reply With Quote
  #4  
Old   
greg
 
Posts: n/a

Default RE: Database Mirroring - Witness Server - 02-24-2009 , 02:07 PM



I have a similar question regarding connection strings for BizTalk

If I failover, do I manually have to go in and change the BizTalk config
files? Is biztalk compatible with db mirroring?

"Manpreet Singh" wrote:

Quote:
please follow this to configure mirror server

1. Connect to the instance hosting the main database that you plan to
use as the principal database.
2. Right-click the main database and choose Properties.
3. Select the Mirroring page.
4. Click Configure Security to launch the Configure Database Mirroring
Security
Wizard.
5. On the first screen, the splash screen, select the Do Not Show This
Starting Page
Again check box. Click Next. You will now define endpoints for all three
database mirroring roles: principal, mirror, and witness.
6. On the Include Witness Server page, verify that Yes is selected. This
option
enables you to configure an endpoint’s security for the witness server
instance.
Click Next.
7. On the Choose Servers To Configure page, you see that the Principal Server
check box is selected and unavailable because it is assumed that you are
running
the wizard from that instance. Verify that the Mirror Server Instance and
Witness
Server Instance check boxes are also selected. Click Next.
8. On the Principal Server Instance page, by default, the Principal Server
instance is already selected. In the Listener Port text box, specify a port
number. In the Endpoint Name text box, type a name for the endpoint. Also
verify that the Encrypt Data Sent Through This Endpoint check box is selected
to ensure secured communications. Click Next.

9. On the Mirror Server Instance page, click Connect, specify the instance
name
and login credentials for the instance on which you want to host the mirror
database, and then click Connect. This creates a connection to the instance
hosting
the mirror. Specify the port number and a name for the endpoint, and select
the
Encrypt Data Sent Through This Endpoint check box to ensure secure
communications. Click Next.
10. On the Witness Server Instance page, connect to the witness server
instance the same way you connected to the mirror instance in step 9. Specify
the port number and endpoint name, and then select the Encrypt Data Sent
Through This Endpoint check box to ensure secure communications. Click Next.

11. On the Service Accounts page, you specify service accounts. This step is
optional.

If all the instances that you are configuring endpoints for have the SQL
Server
service running under the same service account, you do not have to specify
anything here. Otherwise, specify the service account for the SQL Server
service on all three instances. Click Next.

12. On the Complete The Wizard page, review the configuration settings that
the
wizard will implement. If you have any changes to make, click Back until you
reach the appropriate page and then make the necessary changes. If the
configuration is correct, click Finish.

13. When the wizard completes, click Close. Click OK to close the Database
Properties message box. This message box serves to remind you that mirroring
does not begin until you click Start Mirroring on the Mirroring page of the
Database Properties dialog box for the primary database. Click OK to close
the Database Properties


also sql server native client can save mirroring information . it means if u
are using sql server native client then your application is automatically
compatable with db mirroring .

manpreet singh
MCITP (DBA,DB Dev)

Rogers" wrote:

Hello Guys,

I would appreciate if you can provide me step by step configuring Witness
Server for Database Mirroring.

Quick question, let's say we have three Servers.

DBServer1
DBServer2
Witness1

We would like to create database mirroing from DBServer1 ---> DBServer2 and
witness1 Server reposonsible for failover.

The question here is application point to which Server, Witness1 or DBServe1 ?

If DBServer1 goes down we have to manually change the application connection
string to DBServer2?

Please advice.

Thanks


Reply With Quote
  #5  
Old   
Brett
 
Posts: n/a

Default Re: Database Mirroring - Witness Server - 03-22-2009 , 11:30 AM



On a side note, once you get the witness configured you might find when you
have a "hickup" in your network the witness will take that as a failure.
The next thing you know you are running your production systems off of the
mirror. So I would watch the mirror closely after you get it configured.

SQL Squirrel
http://www.lockergnome.com/sqlsquirrel/

"greg" <greg (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a similar question regarding connection strings for BizTalk

If I failover, do I manually have to go in and change the BizTalk config
files? Is biztalk compatible with db mirroring?

"Manpreet Singh" wrote:

please follow this to configure mirror server

1. Connect to the instance hosting the main database that you plan to
use as the principal database.
2. Right-click the main database and choose Properties.
3. Select the Mirroring page.
4. Click Configure Security to launch the Configure Database Mirroring
Security
Wizard.
5. On the first screen, the splash screen, select the Do Not Show This
Starting Page
Again check box. Click Next. You will now define endpoints for all three
database mirroring roles: principal, mirror, and witness.
6. On the Include Witness Server page, verify that Yes is selected. This
option
enables you to configure an endpoint's security for the witness server
instance.
Click Next.
7. On the Choose Servers To Configure page, you see that the Principal
Server
check box is selected and unavailable because it is assumed that you are
running
the wizard from that instance. Verify that the Mirror Server Instance and
Witness
Server Instance check boxes are also selected. Click Next.
8. On the Principal Server Instance page, by default, the Principal
Server
instance is already selected. In the Listener Port text box, specify a
port
number. In the Endpoint Name text box, type a name for the endpoint. Also
verify that the Encrypt Data Sent Through This Endpoint check box is
selected
to ensure secured communications. Click Next.

9. On the Mirror Server Instance page, click Connect, specify the
instance
name
and login credentials for the instance on which you want to host the
mirror
database, and then click Connect. This creates a connection to the
instance
hosting
the mirror. Specify the port number and a name for the endpoint, and
select
the
Encrypt Data Sent Through This Endpoint check box to ensure secure
communications. Click Next.
10. On the Witness Server Instance page, connect to the witness server
instance the same way you connected to the mirror instance in step 9.
Specify
the port number and endpoint name, and then select the Encrypt Data Sent
Through This Endpoint check box to ensure secure communications. Click
Next.

11. On the Service Accounts page, you specify service accounts. This step
is
optional.

If all the instances that you are configuring endpoints for have the SQL
Server
service running under the same service account, you do not have to
specify
anything here. Otherwise, specify the service account for the SQL Server
service on all three instances. Click Next.

12. On the Complete The Wizard page, review the configuration settings
that
the
wizard will implement. If you have any changes to make, click Back until
you
reach the appropriate page and then make the necessary changes. If the
configuration is correct, click Finish.

13. When the wizard completes, click Close. Click OK to close the
Database
Properties message box. This message box serves to remind you that
mirroring
does not begin until you click Start Mirroring on the Mirroring page of
the
Database Properties dialog box for the primary database. Click OK to
close
the Database Properties


also sql server native client can save mirroring information . it means
if u
are using sql server native client then your application is automatically
compatable with db mirroring .

manpreet singh
MCITP (DBA,DB Dev)

Rogers" wrote:

Hello Guys,

I would appreciate if you can provide me step by step configuring
Witness
Server for Database Mirroring.

Quick question, let's say we have three Servers.

DBServer1
DBServer2
Witness1

We would like to create database mirroing from DBServer1 ---> DBServer2
and
witness1 Server reposonsible for failover.

The question here is application point to which Server, Witness1 or
DBServe1 ?

If DBServer1 goes down we have to manually change the application
connection
string to DBServer2?

Please advice.

Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.