You can choose to create the schema only without installing the Knowledge Center software. This allows you to create the schema on a dedicated server, and then install the Knowledge Center software on another server. If you choose to do this, you must create the schema before you install the Knowledge Center software. You can create the schema manually by running the scripts provided in the media pack.

 

To create an Oracle schema with all the objects, two scripts must be run. One script, CreateSystemObjects, requires system administrator privileges.  It creates the tablespace, the schema owner and the application user schema that has access to the schema where the Knowledge Center objects are created. The second script, CreateSchemaObjects, creates the schema objects necessary to run Knowledge Center. This script should be run by the schema owner account created from the CreateSystemObjects script.

 

If you are using a Microsoft SQL Server, one script references multiple scripts to create the database and the database user, as well as populate the database with the appropriate objects. The SQL scripts are intended to be run by an SQL administrator with either sysadmin or a combination of securityadmin and dbcreator privileges. The database objects creation do not necessarily require these privileges, and could be performed by the user with db_owner privileges of the database.  This would require modifications to the SQL scripts.


Note: A Microsoft SQL Server must be configured with mixed mode authentication.


Warning! It is necessary to run the SQLPlus command line application for Oracle and the SQLCmd command line application for Microsoft SQL Server from the folder location that contains the script you are running.


ProcedureTo install the database manually on an Oracle Database server:

  1. From the Windows Start menu, open a Command Prompt window.
     
  2. Using the cd command, change into the folder where the scripts are located in the software installation files; for example, if the files are located on the C: drive in a temp folder:
     
    cd c:\temp\setup\db scripts\ORACLE\KnowledgeCenter
     
  3. To create the schema using the CreateSystemObjects.sql script, enter the following at the command prompt:
     
    Warning! The values must be in this order to run correctly
     
    Standard SQL*Plus syntax:
    sqlplus -s <ORACLE_ADMINISTRATOR>/<ORACLE_ADMINISTRATOR_PASSWORD>@<SERVER_INSTANCE> @"<SCRIPT_LOCATION>\<SCRIPT_NAME>" variable_value1 variable_value2 ... variable_valueN

    Note: The -s parameter runs SQL*Plus without SQL*Plus messaging.

    Run the following:

    sqlplus -s <ORACLE_ADMINISTRATOR>/<ORACLE_ADMINISTRATOR_PASSWORD>@<SERVER_INSTANCE> @"CreateSystemObjects.sql" <SCHEMA_OWNER> <SCHEMA_OWNER_PASSWORD> <TABLESPACE_NAME> <TABLESPACE_DATA_FILE> <SCHEMA_USER> <SCHEMA_USER_PASSWORD>

    The variables that need to be replaced are:
    <ORACLE_ADMINISTRATOR> - administrator user login with credentials to create tablespace, user, and so on.
    <ORACLE_ADMINISTRATOR_PASSWORD> - password for the Oracle administrator
    <SERVER_INSTANCE> - name of the Oracle server instance where the tablespace and users will be created
    <SCHEMA_OWNER> - user to be created that is the schema owner
    <SCHEMA_OWNER_PASSWORD> - password to be set for the schema owner
    <TABLESPACE_NAME> - the name of the tablespace to be created that will contain the schema
    <TABLESPACE_DATA_FILE> - the full path (with file name) to the tablespace file (the DBF file to be created)
    <SCHEMA_USER> - the application user that is create to have access to the Developer schema
    <SCHEMA_USER_PASSWORD> - password to be set for the application user with access to the Developer schema

    Example with default install parameters:
    sqlplus -s system/password@xe @CreateSystemObjects.sql KServer password KServer "C:\app\Administrator\oradata\orcl\KContent.DBF" KServer_app password
       
  4. Confirm the parameters and run the script. After the schema is created, enter exit and press ENTER to return to the prompt in the Command Prompt window.
     
  5. Next create the schema objects by running the CreateSchemaObjects.sql script. The script contains variables that are replaced with the text supplied for the values.

    Warning! The values must be in this order to run correctly.

    Standard SQL*Plus syntax:
    sqlplus -s <SCHEMA_OWNER>/<SCHEMA_OWNER_PASSWORD>@<SERVER_INSTANCE> @"<SCRIPT_LOCATION>\<SCRIPT_NAME>" variable_value1 variable_value2 ... variable_valueN

    Note: The -s parameter runs SQL*Plus without SQL*Plus messaging.

    Run the following:

    sqlplus -s <SCHEMA_OWNER>/<SCHEMA_OWNER_PASSWORD>@<SERVER_INSTANCE> @"CreateSchemaObjects.sql" <SCHEMA_OWNER> <SCHEMA_USER>

    The variables that need to be replaced are:
    <SCHEMA_OWNER> - user created that is the schema owner
    <SCHEMA_OWNER_PASSWORD> - password set for the schema owner
    <SERVER_INSTANCE> - name of the Oracle server instance where the tablespace and users are created
    <SCHEMA_OWNER> - user created that is the schema owner
    <SCHEMA_USER> - the application user that has access to the Developer schema

    Example with default install parameters:
    sqlplus -s KServer/password@xe @"CreateSchemaObjects.sql" KServer KServer_app
     
      
  6. Confirm the parameters and run the script. After the script runs, enter exit and press ENTER to return to the prompt in the Command Prompt window.
     
  7. Enter exit and press ENTER to exit the Command Prompt window.

ProcedureTo install the database manually on a Microsoft SQL Server:

  1. From the Windows Start menu, open a Command Prompt window.
     
  2. Using the cd command, change into the folder where the scripts are located in the software installation files; for example, if the files are located on the C: drive in a temp folder:
     
    cd c:\temp\setup\db scripts\MSSQL\KnowledgeCenter
     
  3. To create the database using the CreateDB.sql script. The script contains variables that are replaced with the text supplied for the values. 
     
    Warning! All variable names must be referenced for the script to run successfully.
     
    Standard sqlcmd syntax:
    sqlcmd -E -S <SERVER_NAME> -i <SCRIPTFILE> –v VARIABLE1="<VALUE1>" -v VARIABLE2="<VALUE2>"
     
    Note: The -E parameter means use an entrusted connection to the SQL Server. To use a login and password, use -U <LOGINID> and -P <PASSWORD> parameters.
     
    Run the following:
    sqlcmd -E -S <SERVER_NAME> -i CreateDB.sql -v DBName="<DATABASE_NAME>" -v DBPath="<DATABASE_FILE_LOCATION>"
     
    The variables that need to be replaced are:
    <SERVER_NAME> - the server instance to connect to
    <DATABASE_NAME> - the name of the database to be created that contains the tables, procedures, etc.
    <DATABASE_FILE_LOCATION> - the path (without file name) to the database file folder (where the MDF and LDF files will be created).
     
    The initial size of the database will be 20 MB with the database log size of 10 MB.
     
    Example with default install parameters:
    sqlcmd -E -S "sqlserver" -i "CreateDB.sql" -v DBName="KMaster" -v DBPath="C:\database"
     
  4. Confirm the parameters and run the script.
     
  5. Create the database objects by running the CreateDBObjects.sql script. The script contains variables that are replaced with the text supplied for the values.
     
    Warning! All variable names must be referenced for the script to run successfully.
     
    Standard sqlcmd syntax:
    sqlcmd -E -S <SERVER_NAME> -i <SCRIPTFILE> –v VARIABLE1="<VALUE1>" -v VARIABLE2="<VALUE2>"
     
    Note: The -E parameter means use an entrusted connection to the SQL Server. To use a login and password, use -U <LOGINID> and -P <PASSWORD> parameters.
     
    Run the following:
    sqlcmd -E -S <SERVER_NAME> -i CreateDBObjects.sql -v DBOwner="<DATABASE_OWNER>" -v Password="<DATABASE_OWNER_PASSWORD>" -v DBName="<DATABASE_NAME>"
     
    The variables that need to be replaced are:
    <SERVER_NAME> - the server instance to connect to
    <DATABASE_OWNER> - database user to be created that is the primary owner of the database
    <DATABASE_OWNER_PASSWORD> - password to be set for the database owner
    <DATABASE_NAME> - the name of the database to be updated
     
    Enter the fully qualified path of the script file.
     
    Example with default install parameters:
    sqlcmd -E -S "sqlserver" -i "CreateDBObjects.sql" -v DBOwner="KUser" -v Password="password" -v DBName="KMaster"
     
  6. Confirm the parameters and run the script.
  7. Enter exit and press ENTER to exit the Command Prompt window.

Table of Contents  Back

Install_the_KCenter_Database_Manually