Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


same role name for mirroring setup?


same role name for mirroring setup?

Author
Message
SQL Galaxy
SQL Galaxy
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1576 Visits: 3465
Hi,

1. Principal & mirror server result the same role, Is it correct for FULL safty configuration without wittness?

SELECT role 
FROM sys.database_mirroring_endpoints;



Role = 1 (partner)

2. Grantor is different on principal & mirror server, also same domain account running for SQL service account & Login account,

SELECT EP.name, SP.STATE,
CONVERT(nvarchar(38), suser_name(SP.grantor_principal_id))
AS GRANTOR,
SP.TYPE AS PERMISSION,
CONVERT(nvarchar(46),suser_name(SP.grantee_principal_id))
AS GRANTEE
FROM sys.server_permissions SP , sys.endpoints EP
WHERE SP.major_id = EP.endpoint_id
ORDER BY Permission,grantor, grantee;

--Principal server result

--Name : Mirroring
--STATE : G
--GRANTOR: servername\Administrator
--PERMISSION: co
--GRANTEE: domainname\mydomain account

(Grantee filed- SQL service account should display instead of my domain id)

--Mirror server result

--Name : Mirroring
--STATE : G
--GRANTOR: sa
--PERMISSION: co
--GRANTEE: domainname\mydomain account

(Grantee filed- SQL service account should display instead of my domain id)




Pl. suggestion me what could be issue display same role name and different grantor, grantee name?

thanks
Perry Whittle
Perry Whittle
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11157 Visits: 16830
ananda.murugesan (9/5/2012)
Hi,

1. Principal & mirror server result the same role, Is it correct for FULL safty configuration without wittness?

SELECT role 
FROM sys.database_mirroring_endpoints;



Role = 1 (partner)

both instances are partners in the mirror session so this is valid




ananda.murugesan (9/5/2012)
2. Grantor is different on principal & mirror server, also same domain account running for SQL service account & Login account,

SELECT EP.name, SP.STATE,
CONVERT(nvarchar(38), suser_name(SP.grantor_principal_id))
AS GRANTOR,
SP.TYPE AS PERMISSION,
CONVERT(nvarchar(46),suser_name(SP.grantee_principal_id))
AS GRANTEE
FROM sys.server_permissions SP , sys.endpoints EP
WHERE SP.major_id = EP.endpoint_id
ORDER BY Permission,grantor, grantee;

--Principal server result

--Name : Mirroring
--STATE : G
--GRANTOR: servername\Administrator
--PERMISSION: co
--GRANTEE: domainname\mydomain account

(Grantee filed- SQL service account should display instead of my domain id)

--Mirror server result

--Name : Mirroring
--STATE : G
--GRANTOR: sa
--PERMISSION: co
--GRANTEE: domainname\mydomain account

(Grantee filed- SQL service account should display instead of my domain id)




Pl. suggestion me what could be issue display same role name and different grantor, grantee name?

thanks

Not sure what the question is here, this query details users who have been granted connect to the mirroring endpoint

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Robert Davis
Robert Davis
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1916 Visits: 1623
To be a mirror or principal partner, the endpoint's role has to be either "partner" or "all". Both can be "partner, both can be "all" or one can be "partner" while the other is "all". That's all fine.

Grantor is informational only and has no net effect on the mirroring session. It does not matter who granted it.



My blog: SQL Soldier
Twitter: @SQLSoldier
My book: Pro SQL Server 2008 Mirroring
Microsoft Certified Master, SQL Server MVP
Database Engineer at BlueMountain Capital Management
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search