Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

dbmirrroring Expand / Collapse
Author
Message
Posted Sunday, March 3, 2013 7:38 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, May 23, 2014 7:58 AM
Points: 115, Visits: 210
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
Posted Sunday, March 3, 2013 1:53 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 7:41 PM
Points: 23,031, Visits: 31,555
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
Posted Monday, March 4, 2013 4:19 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 6,178, Visits: 13,323
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
Posted Monday, March 4, 2013 6:20 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, May 23, 2014 7:58 AM
Points: 115, Visits: 210
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
Posted Monday, March 4, 2013 6:32 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 6,178, Visits: 13,323
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
Posted Monday, March 4, 2013 7:14 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 7:41 PM
Points: 23,031, Visits: 31,555
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
Posted Tuesday, March 5, 2013 11:46 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, May 23, 2014 7:58 AM
Points: 115, Visits: 210
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
Posted Tuesday, March 5, 2013 12:04 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 7:41 PM
Points: 23,031, Visits: 31,555
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 »

Add to briefcase

Permissions Expand / Collapse