Knowledgebase Installation Faq

  • View
    239

  • Download
    29

Embed Size (px)

DESCRIPTION

Knowledgebase Installation Faq

Text of Knowledgebase Installation Faq

  • Technical Bulletin

    dptechnology.com 1

    KnowledgeBase Installation and Management FAQ

    This Technical Bulletin answers common questions asked by customers and resellers about the installation of the KnowledgeBase as well as its management (backup, serving, etc...)

    SQL Express 2005 ............................................................................................................................................. 2

    What is the file SQLExpressSetup.exe in the folder SQLExpress2005 ..................................................... 2

    I copy the SQLExpress2005 Folder on my local computer and now I have an error message ...................... 3

    The installation of SQL Express 2005 returns a Strong SA Password required error .................................. 3

    Installing SQL Express 2005 on VISTA ........................................................................................................... 6

    Installing ESPRIT 2008 on a local Machine that will use a remote server for the KBM running with SQL Server 2005 ..................................................................................................................................................... 7

    Manually install SQL Express 2005 and the KBMSS instance ........................................................................ 8

    Miscellaneous .................................................................................................................................................. 15

    How to check my Password Policy? .............................................................................................................. 15

    Connection Failed when selecting a remote server....................................................................................... 16

    Could not Connect to the KBM Error ............................................................................................................. 17

    KnowledgeBase Database Management ...................................................................................................... 18

    How to select a remote KnowledgeBase Database ...................................................................................... 18

    I moved the location of ESPRIT between two installs and now the KnowledgeBase Database Setup is returning an error on creating the kbm user .................................................................................................. 21

    Manually attach the KnowledgeBase Database to the KBMSS Instance...................................................... 22

    How do I backup the KBM.mdf and KBM.ldf files using MSQL Server Management? ............................ 24

    How do I backup/copy the KBM.mdf and KBM.ldf files manually? ........................................................... 25

    How do I update the KnowledgeBase Database on the KBM Server to the latest version? ......................... 26

  • dptechnology.com 2

    SQL Express 2005 The SQL Express 2005 is a prerequisite for ESPRIT 2007 and greater. SQL Server Express Edition is a free product based on SQL Server 2005 technology used by the KnowledgeBase to serve the database.

    For more information, visit the Microsoft website, http://msdn2.microsoft.com/en-us/library/ms345154.aspx.

    What is the file SQLExpressSetup.exe in the folder SQLExpress2005

    To install SQL Express 2005, the user needs to run the file SQLExpressSetup.exe which will execute the installation of SQL Express 2005.

    SQLExpressSetup.exe is a DP program that will run the installation program (Distribution Files\setup.exe) of SQL EXPRESS 2005 with the required settings. SQLExpressSetup is a batch file that will execute the following command:

    "D:\Prerequisites\SQLExpress2005\Distribution Files\setup.exe" /QB REBOOT=REALLYSUPPRESS ADDLOCAL=ALL SQLBROWSERACCOUNT="NT AUTHORITY\SYSTEM" SQLBROWSERPASSWORD= SQLACCOUNT="NT AUTHORITY\SYSTEM" SQLPASSWORD= AGTACCOUNT="NT AUTHORITY\SYSTEM" AGTACCOUNT= SECURITYMODE=SQL INSTANCENAME=KBMSS SAPWD=kbmsa64 DISABLENETWORKPROTOCOLS=0 SQLAUTOSTART=1 SCCCHECKLEVEL=IncompatibleComponents:1 ERRORREPORTING=2

    Pause

    The batch file can be generated on the local computer (it cannot be run from the CD, therefore the folder SQLExpress2005 must be copied on the local machine, see the section copy SQLExpress2005 on the local machine) using the command line.

    From the folder SQLExpress2005, execute the command SQLExpressSetup.exe /makebat, as shown below:

  • dptechnology.com 3

    The SQLExpressSetup.exe will then create a batch file RunSetup.bat at the root of the SQLExpress2005 folder.

    The batch file RunSetup.bat will do exactly the same as SQLExpressSetup.exe.

    Note: Do not change any parameter in the RunSetup file unless you know exactly what you are doing; using an incorrect setting may corrupt the SQL Express 2005 installation.

    I copy the SQLExpress2005 Folder on my local computer and now I have an error message

    If you are copying the prerequisite folder in your local machine to speed up the installation, make sure the access path of the folder is not too deep for windows.

    For example, when copying the prerequisite folder on the desktop, on some computers, the path will be too deep for Microsoft SQL server install, and you may have the following message

    If you have this message, copy the prerequisite folder at the root of the computer, or in a folder that does not have a deep path (you will have to copy the folder again from the CD, since the corruption happened during the copy).

    The installation of SQL Express 2005 returns a Strong SA Password required error

    The password used by the installation of SQL Express is a strong password. However, on some machines it is not detected as a strong password (the sa password must meet the SQL Password policy. kbmsa64 does not meet complexity requirements, see Password Policy section)

    It is possible to install SQL Express 2005 with a different password for the sa account. However, the KnowledgeBase Database setup will fail and ESPRIT 2008 will not be able to create the required kbm user, and ESPRIT 2008 will not be able to connect to the KnowledgeBase.

    Using a new sa password

    Using the command line, create the batch file RunSetup.Bat (see What is SQLExpressSetup.exe?), edit the file, and change the sa password account to something that will be recognized as strong by your system (example KBMsa642008) by changing the option SAPWD=kbmsa64

  • dptechnology.com 4

    "D:\Prerequisites\SQLExpress2005\Distribution Files\setup.exe" /QB REBOOT=REALLYSUPPRESS ADDLOCAL=ALL SQLBROWSERACCOUNT="NT AUTHORITY\SYSTEM" SQLBROWSERPASSWORD= SQLACCOUNT="NT AUTHORITY\SYSTEM" SQLPASSWORD= AGTACCOUNT="NT AUTHORITY\SYSTEM" AGTACCOUNT= SECURITYMODE=SQL INSTANCENAME=KBMSS SAPWD=KBMsa642008 DISABLENETWORKPROTOCOLS=0 SQLAUTOSTART=1 SCCCHECKLEVEL=IncompatibleComponents:1 ERRORREPORTING=2

    Pause

    Save the file and run the batch file from Windows Explorer; it will install SQL Express 2005 with the sa account set to your strong password.

    Change the sa password back to the required KnowledgeBase password

    The KnowledgeBase Setup application is creating a kbm user in the KBMSS database using SQL command. In order to create a new user, the KnowledgeBase Setup needs to access the SQL database using the sa account; therefore the password for this account must be set back to kbmsa64.

    First you need to download and install the Microsoft SQL Server Management Studio Express from Microsoft Web Site (http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en ).

    Run the Microsoft SQL Server Management Studio Express, and then connect to the KBMSS server using the Windows Authentication:

    When the connection with the SQL database is done, select the login sa under Security\Logins, then display the Properties of the user.

  • dptechnology.com 5

    In the Login Properties sa dialog, you can change the password of the sa account back to kbmsa64 (the password is case sensitive). In some case, you may also have to uncheck Enforce password policy

    Close the Microsoft SQL Server Manager Studio Express and run the KnowledgeBase Database Setup again.

  • dptechnology.com 6

    Installing SQL Express 2005 on VISTA

    SQL Express 2005 supports Windows VISTA. However, in most computers, the Windows Vista User Account Control (UAC) will be in conflict with SQL Express 2005 for security reasons.

    It is highly recommend to Turn Off this option while installing SQL Express 2005 as well as during the installation of ESPRIT.

    You can access the User Account Control in the Control Panel/User Account of VISTA

    In the User Accounts, select Turn User Account Control on or off.

    In the dialog Turn User Account Control On or Off, uncheck the setting Use User Account Control (UAC) to help protect your computer

  • dptechnology.com 7

    This option can be turned ON afterward, but you will have to validate every file access ESPRIT will do and windows VISTA may find suspicious.

    Installing ESPRIT 2008 on a local Machine that will use a remote server for the KBM running with SQL Server 2005

    ESPRIT 2008 requires the use of Microsoft SQL Server 2005 installed either on the local machine (usually Microsoft SQL Express 2005) or on a remote server (Microsoft SQL Server 2005).

    The installation package of ESPRIT 2008 requires having an instance of the KBMSS to continue the installation. Therefore the install will fail if it does not detect a local instance of th