SlideShare a Scribd company logo
1 of 7
OUTBOUND A
On the master database, create the database master key, if needed.
USE master;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1';
GO
Make a certificate for this server instance.
use master;
create certificate HOST_A_CERT with subject ='HOST_A Certificate'
GO
Create a mirroring endpoint for server instance using the certificate.
create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024,
LISTENER_IP=ALL)
FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE
HOST_A_CERT,ENCRYPTION=REQUIRED
ALGORITHMAES,ROLE=ALL);
Backup the HOST_A certificate and copy it to other system HOST-B
BACKUP CERTIFICATE HOST_A_CERT TO FILE='C:backupHOST_A_CERT.cer'
OUTBOUND B
On the master database, create the database master key, if needed.
USE master;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1';
GO
Make a certificate for this server instance.
use master;
create certificate HOST_B_CERT with subject ='HOST_B Certificate'
GO
Create a mirroring endpoint for server instance using the certificate.
create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024,
LISTENER_IP=ALL)
FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE
HOST_B_CERT,ENCRYPTION=REQUIRED
ALGORITHMAES,ROLE=ALL);
Backup the HOST_B certificate and copy it to other systemHOST-B
BACKUP CERTIFICATE HOST_B_CERT TO FILE='C:backupHOST_B_CERT.cer'
OUTBOUND C
On the master database, create the database master key, if needed.
USE master;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1';
GO
Make a certificate for this server instance.
use master;
create certificate HOST_C_CERT with subject ='HOST_C Certificate'
GO
Create a mirroring endpoint for server instance using the certificate.
create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024,
LISTENER_IP=ALL)
FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE
HOST_C_CERT,ENCRYPTION=REQUIRED
ALGORITHMAES,ROLE=ALL);
Backup the HOST_C certificate and copy it to other system HOST-B
BACKUP CERTIFICATE HOST_C_CERT TO FILE='C:backupHOST_C_CERT.cer'
INBOUND A FOR B
To configure HOST_A for inbond connections:
1. create login on HOST-A for HOST-B
use master;
create login HOST_B_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_B_USER FOR LOGIN HOST_B_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_B_CERT AUTHORIZATION HOST_B_USER FROMFILE =
'C:backupHOST_B_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_B_LOGIN];
GO
INBOUND A FOR C
To configure HOST_A for inbond connections:
1. create login on HOST-A for HOST-C
use master;
create login HOST_C_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_C_USER FOR LOGIN HOST_C_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_C_CERT AUTHORIZATION HOST_C_USER FROMFILE =
'C:backupHOST_C_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_C_LOGIN];
GO
INBOUND B FOR A
To configure HOST_B for inbond connections:
1. create login on HOST-B for HOST-A
use master;
create login HOST_A_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_A_USER FOR LOGIN HOST_A_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_A_CERT AUTHORIZATION HOST_A_USER FROMFILE =
'C:backupHOST_A_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_A_LOGIN];
GO
INBOUND B FOR C
To configure HOST_B for inbond connections:
1. create login on HOST-B for HOST-C
use master;
create login HOST_C_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_C_USER FOR LOGIN HOST_C_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_C_CERT AUTHORIZATION HOST_C_USER FROMFILE =
'C:backupHOST_C_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_C_LOGIN];
GO
INBOUND C FOR A
To configure HOST_C for inbond connections:
1. create login on HOST-C for HOST-A
use master;
create login HOST_A_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_A_USER FOR LOGIN HOST_A_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_A_CERT AUTHORIZATION HOST_A_USER FROMFILE =
'C:backupHOST_A_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_A_LOGIN];
GO
INBOUND C FOR B
To configure HOST_C for inbond connections:
1. create login on HOST-C for HOST-B
use master;
create login HOST_B_LOGIN with PASSWORD = 'Motorola1'
2. Create a user for that login
create user HOST_B_USER FOR LOGIN HOST_B_LOGIN;
GO
3. Associate the certificate with the user:
create CERTIFICATE HOST_B_CERT AUTHORIZATION HOST_B_USER FROMFILE =
'C:backupHOST_B_CERT.cer'
4. Grant connect permissions on the login for the remote mirroring end point
Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_B_LOGIN];
GO

More Related Content

Similar to Cert gen-sql-mirroring

Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)남균 김
 
Securing a Web App with Passwordless Web Authentication
Securing a Web App with Passwordless Web AuthenticationSecuring a Web App with Passwordless Web Authentication
Securing a Web App with Passwordless Web AuthenticationFIDO Alliance
 
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB
 
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesNick Maludy
 
Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)ikram_ahamed
 
Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기JeongHun Byeon
 
Install offline Root CA Server 2003
Install offline Root CA Server 2003Install offline Root CA Server 2003
Install offline Root CA Server 2003Ammar Hasayen
 
Chapter 3 overview
Chapter 3 overviewChapter 3 overview
Chapter 3 overviewali raza
 
How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...Tiago Simões
 
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
( 16 ) Office 2007   Create An Extranet Site With Forms Authentication( 16 ) Office 2007   Create An Extranet Site With Forms Authentication
( 16 ) Office 2007 Create An Extranet Site With Forms AuthenticationLiquidHub
 
Security in laravel
Security in laravelSecurity in laravel
Security in laravelSayed Ahmed
 
When Securing Access to Data is About Life and Death
When Securing Access to Data is About Life and DeathWhen Securing Access to Data is About Life and Death
When Securing Access to Data is About Life and DeathHostedbyConfluent
 
How to implement multiple authentication guards in laravel 8
How to implement multiple authentication guards in laravel 8How to implement multiple authentication guards in laravel 8
How to implement multiple authentication guards in laravel 8Katy Slemon
 
Sécurisation de vos applications web à l’aide du composant Security de Symfony
Sécurisation de vos applications web  à l’aide du composant Security de SymfonySécurisation de vos applications web  à l’aide du composant Security de Symfony
Sécurisation de vos applications web à l’aide du composant Security de SymfonyVladyslav Riabchenko
 
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...BlueHat Security Conference
 
Nko workshop - node js crud & deploy
Nko workshop - node js crud & deployNko workshop - node js crud & deploy
Nko workshop - node js crud & deploySimon Su
 
Sp 29 two_factor_auth_guide
Sp 29 two_factor_auth_guideSp 29 two_factor_auth_guide
Sp 29 two_factor_auth_guideHai Nguyen
 

Similar to Cert gen-sql-mirroring (20)

Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)
 
Securing a Web App with Passwordless Web Authentication
Securing a Web App with Passwordless Web AuthenticationSecuring a Web App with Passwordless Web Authentication
Securing a Web App with Passwordless Web Authentication
 
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
MongoDB World 2018: Low Hanging Fruit: Making Your Basic MongoDB Installation...
 
1. device onboarding
1. device onboarding1. device onboarding
1. device onboarding
 
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL CertificatesHashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
Hashitalks 2021 - How the Dynamic Duo of Vault and Puppet Tame SSL Certificates
 
Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)
 
Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기
 
Install offline Root CA Server 2003
Install offline Root CA Server 2003Install offline Root CA Server 2003
Install offline Root CA Server 2003
 
Chapter 3 overview
Chapter 3 overviewChapter 3 overview
Chapter 3 overview
 
How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...How to create a multi tenancy for an interactive data analysis with jupyter h...
How to create a multi tenancy for an interactive data analysis with jupyter h...
 
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
( 16 ) Office 2007   Create An Extranet Site With Forms Authentication( 16 ) Office 2007   Create An Extranet Site With Forms Authentication
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
 
Security in laravel
Security in laravelSecurity in laravel
Security in laravel
 
When Securing Access to Data is About Life and Death
When Securing Access to Data is About Life and DeathWhen Securing Access to Data is About Life and Death
When Securing Access to Data is About Life and Death
 
How to implement multiple authentication guards in laravel 8
How to implement multiple authentication guards in laravel 8How to implement multiple authentication guards in laravel 8
How to implement multiple authentication guards in laravel 8
 
Sécurisation de vos applications web à l’aide du composant Security de Symfony
Sécurisation de vos applications web  à l’aide du composant Security de SymfonySécurisation de vos applications web  à l’aide du composant Security de Symfony
Sécurisation de vos applications web à l’aide du composant Security de Symfony
 
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
 
Azure hands on lab
Azure hands on labAzure hands on lab
Azure hands on lab
 
Nko workshop - node js crud & deploy
Nko workshop - node js crud & deployNko workshop - node js crud & deploy
Nko workshop - node js crud & deploy
 
PhpBB meets Symfony2
PhpBB meets Symfony2PhpBB meets Symfony2
PhpBB meets Symfony2
 
Sp 29 two_factor_auth_guide
Sp 29 two_factor_auth_guideSp 29 two_factor_auth_guide
Sp 29 two_factor_auth_guide
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

Cert gen-sql-mirroring

  • 1. OUTBOUND A On the master database, create the database master key, if needed. USE master; CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1'; GO Make a certificate for this server instance. use master; create certificate HOST_A_CERT with subject ='HOST_A Certificate' GO Create a mirroring endpoint for server instance using the certificate. create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024, LISTENER_IP=ALL) FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE HOST_A_CERT,ENCRYPTION=REQUIRED ALGORITHMAES,ROLE=ALL); Backup the HOST_A certificate and copy it to other system HOST-B BACKUP CERTIFICATE HOST_A_CERT TO FILE='C:backupHOST_A_CERT.cer' OUTBOUND B On the master database, create the database master key, if needed. USE master; CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1'; GO
  • 2. Make a certificate for this server instance. use master; create certificate HOST_B_CERT with subject ='HOST_B Certificate' GO Create a mirroring endpoint for server instance using the certificate. create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024, LISTENER_IP=ALL) FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE HOST_B_CERT,ENCRYPTION=REQUIRED ALGORITHMAES,ROLE=ALL); Backup the HOST_B certificate and copy it to other systemHOST-B BACKUP CERTIFICATE HOST_B_CERT TO FILE='C:backupHOST_B_CERT.cer' OUTBOUND C On the master database, create the database master key, if needed. USE master; CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Motorola1'; GO Make a certificate for this server instance. use master; create certificate HOST_C_CERT with subject ='HOST_C Certificate' GO
  • 3. Create a mirroring endpoint for server instance using the certificate. create ENDPOINT Endpoint_Mirroring STATE=STARTED AS TCP(LISTENER_PORT=7024, LISTENER_IP=ALL) FOR DATABASE_MIRRORING(AUTHENTICATION=CERTIFICATE HOST_C_CERT,ENCRYPTION=REQUIRED ALGORITHMAES,ROLE=ALL); Backup the HOST_C certificate and copy it to other system HOST-B BACKUP CERTIFICATE HOST_C_CERT TO FILE='C:backupHOST_C_CERT.cer' INBOUND A FOR B To configure HOST_A for inbond connections: 1. create login on HOST-A for HOST-B use master; create login HOST_B_LOGIN with PASSWORD = 'Motorola1' 2. Create a user for that login create user HOST_B_USER FOR LOGIN HOST_B_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_B_CERT AUTHORIZATION HOST_B_USER FROMFILE = 'C:backupHOST_B_CERT.cer'
  • 4. 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_B_LOGIN]; GO INBOUND A FOR C To configure HOST_A for inbond connections: 1. create login on HOST-A for HOST-C use master; create login HOST_C_LOGIN with PASSWORD = 'Motorola1' 2. Create a user for that login create user HOST_C_USER FOR LOGIN HOST_C_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_C_CERT AUTHORIZATION HOST_C_USER FROMFILE = 'C:backupHOST_C_CERT.cer' 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_C_LOGIN]; GO
  • 5. INBOUND B FOR A To configure HOST_B for inbond connections: 1. create login on HOST-B for HOST-A use master; create login HOST_A_LOGIN with PASSWORD = 'Motorola1' 2. Create a user for that login create user HOST_A_USER FOR LOGIN HOST_A_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_A_CERT AUTHORIZATION HOST_A_USER FROMFILE = 'C:backupHOST_A_CERT.cer' 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_A_LOGIN]; GO INBOUND B FOR C To configure HOST_B for inbond connections: 1. create login on HOST-B for HOST-C use master; create login HOST_C_LOGIN with PASSWORD = 'Motorola1'
  • 6. 2. Create a user for that login create user HOST_C_USER FOR LOGIN HOST_C_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_C_CERT AUTHORIZATION HOST_C_USER FROMFILE = 'C:backupHOST_C_CERT.cer' 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_C_LOGIN]; GO INBOUND C FOR A To configure HOST_C for inbond connections: 1. create login on HOST-C for HOST-A use master; create login HOST_A_LOGIN with PASSWORD = 'Motorola1' 2. Create a user for that login create user HOST_A_USER FOR LOGIN HOST_A_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_A_CERT AUTHORIZATION HOST_A_USER FROMFILE = 'C:backupHOST_A_CERT.cer'
  • 7. 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_A_LOGIN]; GO INBOUND C FOR B To configure HOST_C for inbond connections: 1. create login on HOST-C for HOST-B use master; create login HOST_B_LOGIN with PASSWORD = 'Motorola1' 2. Create a user for that login create user HOST_B_USER FOR LOGIN HOST_B_LOGIN; GO 3. Associate the certificate with the user: create CERTIFICATE HOST_B_CERT AUTHORIZATION HOST_B_USER FROMFILE = 'C:backupHOST_B_CERT.cer' 4. Grant connect permissions on the login for the remote mirroring end point Grant CONNECT on ENDPOINT::Endpoint_Mirroring TO [HOST_B_LOGIN]; GO