Database Mirroring Login Accounts

I need to setup database mirroring between 2 separate SQL 2012 instances. The documentation states that if the 2 server instances are running under different user accounts then these need to be manually created on both instances. Is this login account the
account that was used when installing SQL or is it the account assigned to run the SQL server service account?
Thanks
Alistair

If the server instances run as different user accounts, user logins on the server instance that hosts the principal server or primary replica must be manually reproduced on the server instance that hosts the mirror server or on every server instance that
hosts a secondary replica. For more information, see Create a Login for a Different Account and Grant
Connect Permission, later in this topic.
I am still unsure what it means when it refers to
'If the server instances run as different user accounts'. Is this the account that shows in services under our instance 'SQL Server (MSSQLSERVER)?
Thanks
Did you read below example(http://technet.microsoft.com/en-us/library/ms366346.aspx#CreateLogin)
For example, for the server instance sqlA, which runs under loginA, to connect to the server instance sqlB, which runs under loginB, loginA must be in the
syslogins table on sqlB, and loginB must be in the syslogins table on sqlA. In addition, for a database mirroring session that includes a witness server instance (sqlC) and in which the three server instances run under different
domain accounts, the following logins must be created:
On instance...
Create logins for and grant connection permission to ...
sqlA
sqlB and sqlC
sqlB
sqlA and sqlC
sqlC
sqlA and sqlB
Note
It is possible to connect with the network service account by using the machine account instead of a domain user. If the machine account is used, it must be added as a user on the other server instance.
Is it still unclear
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • Database mirror between two domain

    I setting up database mirror between two domain that will help me migrate from SQL 2008R2 to SQL 2012 :
    It is set up as follows:
    Domain A(Old domain) - Server A
    Domain B (New Domain for HA/DR setup) - Server B and Server C (Already configured as FCI and AG)
    I want to migrate data from Server A to Server B using database mirror.
    I set up the
    Created Master key, endpoint and certificate on the Server A
    Created Master key, endpoint and certificate on the Server B
    Backup certificate on both sides and copy to each server
    Create inbound connections on both principal and mirror partner. Here I created two SQL logins
    SQLSrvA_login
    SQLSrvB_logi
    Grant connect on endpoint to both logins on both principal and mirror partner.
    Everything seems ok as can be seen below
    Principal partner:
    grantee        endpoint     permission  state_desc
    SQLSrvA_login        Hadr_endpointCONNECT      GRANT
    SQLSrvB_loginHadr_endpointCONNECT GRANT
    Mirror partner:
    grantee        endpoint     permission  state_desc
    SQLSrvA_login        Hadr_endpoint  CONNECT      GRANT
    SQLSrvB_login   Hadr_endpoint  CONNECT GRANT
    Perform a full db backup and log backup on ServerA and restore to  ServerB with norecovery
    When trying to establish the partnership, it succeeded on the mirror partner ServerB   but failed on the principal partner ServerA with the following error
    Msg 1418, Level 16, State 1, Line 2
    The server network address "TCP://ServerB:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.
    The following error is in the SQL errorlog:
    Database Mirroring login attempt failed with error: 'Connection handshake failed. There is no compatible authentication protocol. State 21
    Any ideal why this is occurring?
    Thanks
    Datawarehouse lead Architect

    Hi,
    Please see this link for possible solution.
    http://blogs.msdn.com/b/grahamk/archive/2008/11/21/how-to-configure-database-mirroring-between-2-instances-on-a-standalone-server.aspx
    Hope this helps
    Bhanu

  • Database mirroring and service accounts

    Hi,
    I am trying to configure database mirroring with sql server 2012.
    My principal instance and my mirror instance are on different server.
    Both SQL Server service run with NT SERVICE\MSSQLSERVER.
    Now when I am configuring database mirroring, which service account should I use ?
    database account or server account ?
    Instead of using domain account, can I :
    1- create local account on my two server
    2- Add these 2 logins in my 2 instances.
    3- use these local account for configuring database mirroring.
    regards

    You should use domain account as I consider them more secured. What is database account there is nothing like that account here means valid windows login or domain account having privileges oon system.
    Please read below
    http://msdn.microsoft.com/en-us/library/ms189434.aspx
    Setup a login account for DB Mirroring
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Database Mirroring problem

    I'm getting an error setting up Mirrroring that I cannot seems to fix. I'm using a setup of two SQL servers with no witness, both running SQL Server 2008 R2. I setup the perms on Primary, Backup Full the database in question (MMS Database to test) and then
    restore that using NO Recovery on the Secondary. I then setup the Security Wizard on the Primary, after which it sets up the end-points correctly on both servers using the service account which is local admin and Sysadmin on both boxes. However, when I then
    choose to start mirroring, I consistently get a 1418 error saying that the server cannot be reached or does not exist. I have verified that the FQDN and port 5022 is open using Netstat and using telnet and TCP protocol is enabled on both boxes. 
    Any other suggestions? Any obvious perms I might have forgotten to copy across? I've copied App Pool, CA, Content Access, Cache and Service accounts to the secondary box as logins with no fixed roles. Both End Points for Database Mirroring list as started. 

    Hi Robin,
    According to your description, my understanding is that the error occurred when mirroring the databases.
    Did you use Kerberos authentication in SharePoint?
    If yes, when you run the SQL Server service under a domain account or under a local account, the attempt to create the SPN will fail in most cases because the domain account and the local account do not have the right to set their own SPNs. When the SPN
    creation is not successful, this means that no SPN is set up for the computer that is running SQL Server, so the communication between the servers will fail.
    So I recommend to configure the SPN for SQL, please refer to the link below:
    http://support.microsoft.com/kb/811889/en-us
    Here is a similar issue for you to take a look:
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=191014
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Error in Starting Database Mirroring

    Hai Everyone.. I have an issue in mirroring which i described below.
    I am getting the above error when i click on "start mirroring" button. I turned off firewall in my antivirus. 
    And i also executed the below script in both my principal and mirror server. Because i created both the instances in my system only. And i am accessing those instances with windows authentication.
    Go
    GRANT CONNECT ON ENDPOINT:: EMP1_MIRRORING TO [DEVLAP5170\login];
    Go 
    -- Thanks and Regards Srikar Reddy Gondesi, Trainee SQL Server Database Administrator Miracle Software systems, Inc.

    Hi,
    How’s everything going?
    Also, see prerequisites for database mirroring:
    For a mirroring session to be established, the partners and the witness, if any, must be running on the same version of SQL Server.
    The two partners, that is the principal server and mirror server, must be running the same edition of SQL Server. The witness, if any, can run on any edition of SQL Server that supports database mirroring.
    The database must use the full recovery model.
    Verify that the mirror server has sufficient disk space for the mirror database.
    When you are creating the mirror database on the mirror server, make sure that you restore the backup of the principal database specifying the same database name WITH NORECOVERY. Also, all log backups that were created after
    that backup was taken must also be applied, again WITH NORECOVERY.
    Helpful link:
    Prerequisites, Restrictions, and Recommendations for Database Mirroring
    http://msdn.microsoft.com/en-us/library/ms366349.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Database Mirroring Encryption

    Hi,
     Our security team, scanned database server (SQL 2005) and mentioned that there are two connections (ref: below screenshot) which are not being encrypted. When we looked at the connections, they were database mirroring related. (Engine
    level: we implemented SSL certificate).
    So, we started working on to encrypt these connections as well. We created certificate and assigned it to the Endpoints, successfully. (Ref: http://msdn.microsoft.com/en-us/library/ms191140(v=sql.90).aspx). The only thing that we didn't follow is "CREATE
    LOGIN" part and Database mirroring is running & synchronizing. But we still can see those two connections exists.
    QUESTION: What are we missing? Any ideas will be a great help. Thank you very much.
    If you feel that I have answered your question then please "Mark as Answer".

    Data Encryption in Database Mirroring Transport Security (http://technet.microsoft.com/en-us/library/ms186360.aspx), and
    Encrypting Connections to SQL Server (http://technet.microsoft.com/en-us/library/ms189067.aspx).
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to find out the last time login for a locked login account?

    In ASE 15.4,there are many login account show as locked and unlocked. How to find out the last login time for those locked login account?

    Thank you.  The version of my ASE is 12.5.4.
    This is what I got from select * from syslogins: 
    suid status accdate totcpu totio spacelimit timelimit resultlimit dbname name password language pwdate audflags fullname srvname logincount procid
    1
    30 2 10/25/2012 11:41:10.430 AM 0 0 0 0 0 . . ... us_english 02/24/2.0.08 12:55:38.640 PM 0 [NULL] [NULL] [NULL] [NULL]
    this is what I got from exec sp_displaylogin 'mylogin':
    1 Suid: 46                               
    2 Loginame: mylogin   
    3 Fullname: FN LN
    4 Default Database: mydb
    5 Default Language: us_english   
    6 Auto Login Script:    
    7 Configured Authorization:   
    8 Locked: YES                              
    9 Date of Last Password Change: Apr 17 2010  2:36PM    
    10 Password expiration interval: 0            
    11 Password expired: NO                               
    12 Minimum password length: 6            
    13 Maximum failed logins: 0            
    14 Current failed login attempts:    
    15 Authenticate with: AUTH_DEFAULT                     
    which one is for last login time?

  • IOS 8 - iCloud Keychain with Multiple Login Accounts for a Site

    I use iCloud Keychain to store multiple login accounts for a single website.
    When using Safari on a Mac, the last login account I used for that site is prepopulated in yellow fields. If I want to change the login account, I clear the field with the login ID and I see a dropdown of all of the login accounts available for that site.
    When using Safari on iOS 7, the last login account I used is prepopulated (just like with the Mac), but if I want to use a different login account, I need to enter enough characters in the login ID field for Safari to know which login account I want to use and then it autofills using that account.
    Now, with iOS 8, all I get is the last login account I used. I can't figure out how to autofill any of my other login accounts for that site.
    I'm pretty sure I'm doing something wrong, but I can't figure it out. Any suggestions would be appreciated.
    Thanks.
    Mike

    Mike:
    Did you ever find a solution for this? I just noticed the same behavior.
    -emde

  • How to change login account in icloud

    How to change login account in iCloud on my iPad?
    Appreciate your help. Thanks

    To change the iCloud accoun go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.

  • My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in but not make purchases from the store so I set up a new login/account .  Is there any way to move my music to the new account?

    My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in and see my music but not make purchases from the store or even redeem an itunes gift card so I set up a new login/account with another email account of mine. On the new account I can redeem my gift card and download items onto my ipad2.  Is there any way to move my music to the new account?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Sharing Music from different login accounts on a MacBook Pro

    I just have a quick question. My wife sync's her iPhone to her account login on my MacBook Pro which is different from my login from startup. We share the computer but I got her, her own login so she could add and mess with the features she prefers. Anywho, I am curious if there is any way to share my music folder on my main admin user account on my MacBook Pro with her login account (we switch users, login and logout). Is this possible? Would make life a LOT easier. Hopefully this makes sense...we both just want to be able to sync the same music to our iPhones without having to backup all the music on my external harddrive and then load it onto her login account. I dont use Mobile Me.

    You need a third-party program like one of those discussed here:
    https://discussions.apple.com/message/2901170#2901170

  • Lack of support for FIM database mirroring

    The official line is that database mirroring is not a supported architecture for the FIM deployment. I am not proposing using this, however I'd like to understand 1) What the issues really would be with a mirrored database deployment, 2) Will support
    ever be added for this, and will it come in the form of SQL AlwaysOn?
    Really appreciate help and input.
    Rgds,
    David

    Database mirroring comes has two modes regarding transactions: synchronous or asynchronous.
    Synchronous requires that the data be committed in both places before releasing the transaction. This has a big performance impact on the FIM Service database and to a lesser extent on the FIM Sync Database.
    Asynchronous means that data isn't committed in both places at the same time, the mirror can fall behind and then in failover you could be behind. In order to have automatic failover with Mirroring you have to be able to modify the connection string to include
    the failover partner or the client has to support getting that data at first logon. While you can modify the FIM database connection strings, it is not understood if FIM is using database clients that support mirroring. I believe it is. Even with asynchronous
    you still have performance hit for copying every transaction to the mirror.
    SQL Always On combines the best of mirroring and clustering to allow you to group databases together into an availability set, and then automatic failover the whole group to another server. It should be noted that Always On makes use of a similar underlying
    mechanisms as mirroring to copy the data -- this is evident when you read that Always on also has an asynchronous and synchronous mode. You will most likely run into the same performance quandary.
    Will the product group add support for it? My guess is that it depends on if they find a good way to address the performance issues.
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Firefox doesn't work right under my normal login account, but is fine under another account. How do I clear my account settings in my normal account?

    Shortly after installing FF4.0, it rendered a local (on my hard drive) website incorrectly. One page, with frames, has more than 1000 list entries each containing a link to another page. The links suddenly become plain text after a few hundred lines of rendered text. Other browsers render the page correctly, as FF did earlier as well.
    Then FF began to crash. When I googled "firefox crashes" it crashed as I clicked the mozilla site link provided by google.
    I followed various trouble-shooting pages on the mozilla site, but could not isolate the problem to any extension or plug-in. The problems persisted even with no plugins and no extensions. I backed off to FF3.6.12 and got the same problems. I logged into a different account and the problems disappeared.
    I clearly need to completely uninstall FF in my main login account and reinstall it but I haven't been able to find all the files that need to be trashed.
    What do I do?
    best,
    Lou

    @fernandamagalhaes
    It looks like the article below has the information you are looking for.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn off iCloud completely
    Depending on whether you want to stop using iCloud on all or only some devices, do one or more of the following:
    On your iOS device’s Home screen, go to Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    Note:   If you delete your iCloud account, iCloud will no longer back up your iOS data. You can still back up your device in iTunes (for more information, open iTunes and choose iTunes > Help). 
    On your Mac, open iCloud preferences, then click Sign Out.
    If your Mac has OS X v10.7.5 and you turn off iCloud, your calendar information and reminders aren’t stored locally in iCal. If you want to retain your calendar and reminder information, you need to back it up before turning off iCloud. For more information, see the Apple Support article iCloud: Calendar & reminder data removed from Calendar and Reminders or iCal when disabling iCloud Calendar.
    On your Windows computer, open the iCloud Control Panel, then click Sign Out.
    Note:   If you turned on automatic download of music, app, or book purchases (in iTunes preferences or in Settings on your iOS device), your iTunes purchases are still downloaded to your devices.
    Set up iCloud on your devices

  • Can I add a second login account to my ipad?

    I would like to have 2 passwords and 2 login accounts for my ipad--one for my business content and one for my kids names.  They love to play game with my ipad but I prefer not to give them free rein of my content including my email.  Can I do this somehow?

    No, the iPad is basically a single user device. You can protect your email via the following work-around : https://discussions.apple.com/message/13127632#13127632

  • HT201240 How do I reset my lost login account password on Macbook Pro OS 10.7.4

    How do I reset my lost login account password on Macbook Pro OS 10.7.4.
    Why is there no community checkbox for OS 10.7.3 or 10.7.4 when 10.8 is due within days?

    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/
    http://osxdaily.com/2011/09/19/change-password-mac-os-x-10-7-lion-without-knowin g-current-password/
    Why would there be? There's never been version support, just the OS.

Maybe you are looking for