Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 High Availability
»
dbmirrroring
dbmirrroring
Rate Topic
Display Mode
Topic Options
Author
Message
sej2008
sej2008
Posted Sunday, March 03, 2013 7:38 AM
SSC Journeyman
Group: General Forum Members
Last Login: 2 days ago @ 1:12 AM
Points: 82,
Visits: 134
can two mirroring sessions on single production server between diferrent sql instances use same endpoint and same port numbers
eg:
DBprincipal1....DBMirroring1 endpoint name is Mirroring on server1 and server2
DBprincipal2.......DBMirroring2 endpoint name Mirroring .can both session use same port number as 5022 on principle server and 5023 on mirroring server?
and what is Listerner_IP=all means in mirroring endpoint create statement?
Post #1425946
Lynn Pettis
Lynn Pettis
Posted Sunday, March 03, 2013 1:53 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
First answer, yes. You can only have one mirroring endpoint per instance.
Regarding the second question, from
MSDN
:
LISTENER_IP = ALL | (4-part-ip ) | ( "ip_address_v6" )
Specifies the IP address that the endpoint will listen on. The default is ALL. This means that the listener will accept a connection on any valid IP address.
If you configure database mirroring with an IP address instead of a fully-qualified domain name (ALTER DATABASE SET PARTNER = partner_IP_address or ALTER DATABASE SET WITNESS = witness_IP_address), you have to specify LISTENER_IP =IP_address instead of LISTENER_IP=ALL when you create mirroring endpoints.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1426010
Perry Whittle
Perry Whittle
Posted Monday, March 04, 2013 4:19 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 10:11 AM
Points: 5,242,
Visits: 11,262
If you're mirrirong between instances on the same server you cannot use the same port number, the port number must be different.
With regards to an endpoint it is instance wide and used by all mirror sessions on that instance.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
Post #1426171
sej2008
sej2008
Posted Monday, March 04, 2013 6:20 AM
SSC Journeyman
Group: General Forum Members
Last Login: 2 days ago @ 1:12 AM
Points: 82,
Visits: 134
when I create mirror endpoint I define the port number in it now if only one
endpoint allowed per instance then how can i use different port number for two mirroring session on an instance still confused.....????
Post #1426207
Perry Whittle
Perry Whittle
Posted Monday, March 04, 2013 6:32 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 10:11 AM
Points: 5,242,
Visits: 11,262
sej2008 (3/4/2013)
when I create mirror endpoint I define the port number in it now if only one
endpoint allowed per instance then how can i use different port number for two mirroring session on an instance still confused.....????
That is not what i said. If the instances you are mirroring between are on the same server you must use different ports!
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
Post #1426210
Lynn Pettis
Lynn Pettis
Posted Monday, March 04, 2013 7:14 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
Lynn Pettis (3/3/2013)
First answer, yes. You can only have one mirroring endpoint per instance.
Regarding the second question, from
MSDN
:
LISTENER_IP = ALL | (4-part-ip ) | ( "ip_address_v6" )
Specifies the IP address that the endpoint will listen on. The default is ALL. This means that the listener will accept a connection on any valid IP address.
If you configure database mirroring with an IP address instead of a fully-qualified domain name (ALTER DATABASE SET PARTNER = partner_IP_address or ALTER DATABASE SET WITNESS = witness_IP_address), you have to specify LISTENER_IP =IP_address instead of LISTENER_IP=ALL when you create mirroring endpoints.
I do stand corrected on this one as I missed that both instances were on the same server. In that case each end point does need to be on a different port. Thanks Perry.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1426231
sej2008
sej2008
Posted Tuesday, March 05, 2013 11:46 AM
SSC Journeyman
Group: General Forum Members
Last Login: 2 days ago @ 1:12 AM
Points: 82,
Visits: 134
let me make it clear what I want is u have
Server1 and two seperate instances
wherein db1 is mirroring with db2 ( endpoint MIrroring1)
now you have db3.....db4 mirroring session on same server(machine)endpoint(Mirroring1)
port number is 5022 for db1 ,portnumber for db2=5023
then what port number should be there for db3 and db4 that uses same endpoint (Mirroring1)for their mirroring session
Pls explain....
Post #1426965
Lynn Pettis
Lynn Pettis
Posted Tuesday, March 05, 2013 12:04 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
sej2008 (3/5/2013)
let me make it clear what I want is u have
Server1 and two seperate instances
wherein db1 is mirroring with db2 ( endpoint MIrroring1)
now you have db3.....db4 mirroring session on same server(machine)endpoint(Mirroring1)
port number is 5022 for db1 ,portnumber for db2=5023
then what port number should be there for db3 and db4 that uses same endpoint (Mirroring1)for their mirroring session
Pls explain....
Yes.
You can only have one database mirroring endpoint per instance.
Each database will use the same endpoint on the instance it is installed.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1426976
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.