March 3, 2013 at 7:38 am
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?
March 3, 2013 at 1:53 pm
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.
March 4, 2013 at 4:19 am
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" 😉
March 4, 2013 at 6:20 am
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.....????
March 4, 2013 at 6:32 am
sej2008 (3/4/2013)
when I create mirror endpoint I define the port number in it now if only oneendpoint 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" 😉
March 4, 2013 at 7:14 am
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.
March 5, 2013 at 11:46 am
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....
March 5, 2013 at 12:04 pm
sej2008 (3/5/2013)
let me make it clear what I want is u haveServer1 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.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply