This document describes how to set up your IFS Constraint Based Scheduling (CBS) server and/or Communication Bridge and how to prepare your system to support a successful installation.
For a typical installation, only one CBS Bridge per database instance and one CBS Server per scheduled site are required. The optimal installation would have the CBS Bridge and CBS Servers either on separate servers or on separate CPUs of a multi-processor server.
Running other high CPU utilization programs on the same machine as the Scheduling Server and/or Communication Bridge may impact CBS performance and is therefore not recommended.
Note: CBS is a 32bit application. As a result it can only utilize up to 2GB of RAM in a 32bit operating system. This is a limit set by the OS. However in a 64bit platform it can utilize up to 4GB of RAM. For more information please refer Appendix E.
Note: See Appendix C for special instructions on setting up CBS with Oracle Real Application Clusters (RAC).
The following are the major features of the CBS setup program:
Certain systems and configurations must exist on your system before you install IFS Constraint Based Scheduling. The CBS setup program does not install or configure an IFS Applications database or the Oracle setup procedure necessary to connect to a specific database.
The following steps are required before installing the CBS server or Communication Bridge.
Note: CBS/APB is a 32bit application. Therefore it cannot load 64-bit libraries. As a result it will not support a 64-bit Oracle client. In order to work on a 64-bit machine, a 32bit Oracle client should be used. The path of the directory that contains 32bit oci.dll, (usually <32bit Oracle Home>/bin) must be included in system wide path environment variable.
Note: If both 64bit and 32bit Oracle clients are installed on CBS server machine for the use of other applications, path of directory containing 32bit oci.dll do not have to appear before 64bit oci.dll path in the path environment variable.
Note: If CBS, CBS Bridge or CBS installation program is unable to locate oci.dll and crash as a result, you can create a system wide environment variable named 'OCI_PATH_FOR_CBS' containing the path of directory where 32bit oci.dll is located (usually <32bit Oracle Home>/bin). When it is defined, CBS installation program, CBS Server and Bridge will attempt to load 32bit oci.dll from location specified in 'OCI_PATH_FOR_CBS' environment variable. Support for 'OCI_PATH_FOR_CBS' was introduced in LCS patch 143710 and it must be applied for CBS to recognize it. When 'OCI_PATH_FOR_CBS' is used, path of 32bit oci.dll is not required to be included in path environment variable.
For the Scheduling Server or Communication Bridge to be able to communicate with the database, there must be an entry for the database instance in the Oracle client’s tnsnames.ora file. An entry can be added by using Oracle’s Net Configuration Assistant or you may use a text editor to add the entry manually.
Note: Remember that this name is case sensitive when you enter it in the SQL*Net Alias for Database field in the CBS Database Settings dialog box during the CBS server installation. Make this name UPPERCASE in tnsnames.ora, since the CBS installer converts the database alias that you enter during installation to uppercase.
Note: If multiple oracle homes are installed on CBS server machine, make sure to add connection details in the correct tnsnames.ora file depending on which oracle home will be used by CBS and the value of TNS_ADMIN environment variable if defined.
Figure 3-1 Database SQL*Net alias (circled) in tnsnames.ora
For the CBS setup program to configure the database with “Scheduling Server host” and “socket listening port information” for your Scheduling Server site, the site must already exist in the database. The steps for creating your site are as follows:
For the CBS setup program to configure the database with “Scheduling Server host” and “socket listening port information” for your Scheduling Server site, the site must already exist in the database. The steps for creating your site are as follows:
Note: Remember that the site name that you entered in this step must also be entered later during the CBS server installation, in the Site ID field in the CBS Database Settings dialog box (Figure 4-6 or Figure 4-7).
Figure 3-2 Site window
Figure 3-3 Sites per User
The Scheduling Server requires an user with the appropriate permissions granted to be able to access the database. Only one CBS user per database is required. If you are installing more than one Scheduling Server (Scheduling site) against the same database (or more than one Bridge for an Oracle RAC), the user name and access permissions need to be configured only once.
During installation of IFS Applications, when the CBS database files are installed, a user for the CBS Server (CBSSERVER
)
and a role (CBS_SERVER
) containing the all of the required permissions are created. Upon creation, this
user is set to locked
with the password expired.
The user must be created in the company before running the CBS Server Setup.
Before installing the CBS Server, using SQL*Plus, log in to the database and prepare the user by issuing the following commands:
ALTER USER CBSSERVER ACCOUNT UNLOCK; ALTER USER CBSSERVER IDENTIFIED BY <new_password>;
To install IFS Constraint Based Scheduling, follow these steps:
If not installing from an IFS
Applications build, launch the CBS installation program (setup.exe) file from the
\Win32Server\Constraint Based
Scheduling\execute directory.
Note: During installation, the system automatically creates subfolders beneath the root folder for the Bridge and the Manufacturing Scheduling Server if selected in the installation. You are not prompted to choose the names of these folders.
Figure 4-2 Choose Destination Location
Figure 4-4 Server Connection Interface
Figure 4-5 Locate IFS Access Provider
Field Name | Values |
---|---|
Database Alias (required when using the Oracle Call Interface option) |
Enter the name of your database. This name must match the name that exists in the tnsnames.ora file. This should be the specific node alias for RAC installations. |
Extended Server Address (required when using the IFS Access Provider option) | Enter the host of the IFS Extended Server along with the port number used, in the following format. <Host Name>:<Port Number> |
Site ID (Existing) for CBS Server to Connect To | Enter the name of the site against which you will be running the Scheduling Server. This site must exist before you install the server. This field is not shown in this wizard window if you have chosen not to install the server. |
Application Owner | Enter the name of the Application Owner for the database. The application owner name is required as a prefix for function calls that belong to the application owner. It is not used to logon to the database. |
CBS Server Username |
Enter the username that the Scheduling Server and/or Communication Bridge will use to connect to the database. As one of the prerequisite steps outlined earlier, you should have already created an account in IFS Applications and granted the proper permissions using the grant script. The name suggested previously in this document was CBSSERVER. |
CBS Server Password |
Enter the password associated with the CBS Server Username. |
Encrypt logon information in registry |
By enabling this option, the username and password information used to connect to the database will be stored in an encrypted form in the system registry. If this is not selected, then the username and password are stored as plain text in the registry. It is probably a good idea to encrypt the information since the CBS Server user may have additional rights that normal users do not have. |
Note: A utility (PasswordUtility.exe) has been provided to facilitate changing of the CBS Server username and password. This utility is able to locate the settings for an existing Scheduling Server or Communication Bridge and write encrypted username and password entries to the registry. See Appendix A for more information about the Password Utility.
Figure 4-6 CBS Database Settings Used for Scheduling Server and Bridge (OCI option)
Figure 4-7 CBS Database Settings Used for Scheduling Server and Bridge (IFS Access Provider option)
Figure 4-8 CBS Database Settings required for Bridge-only installation.
Field Name | Values |
---|---|
Server Input Log | Select this check box to create a Scheduling Server input log. |
Server Output Log | Select this check box to create a Scheduling Server output log. |
Server Notification Log | Select this check box to create a Scheduling Server notification log. |
Merge logs into a single file | Select this button to put the output of the logs into one file instead of three separate files. This is sometimes useful to gauge relative times that messages were received and responses sent but most of the time it is best to keep the logs in their own files for clarity. |
Manufacturing Log Directory | The folder in which the log files will be placed. By default, this is a subfolder of the folder in which your Manufacturing Scheduling Server will be installed. You can change this setting by entering a new path in this field. |
Maximum Log Size (kb) | The largest size, in kilobytes, to which a log file can grow. Note: The default value, 1024, is equal to one megabyte. |
Figure 4-9 CBS Server Log Settings
Field Name | Values |
---|---|
Log file name | The name of the log file. |
Maximum log size (kb) | The largest size, in kilobytes, to which a log file can grow. The default value, 1024, corresponds to one megabyte. |
Log Directory | The folder in which the log files will be placed. By default, this is a subfolder of the folder in which your Bridge will be installed. You can change this setting by typing in a new path in this field, or by clicking Browse and selecting a folder. |
Maximum idle time for open sessions (hours) | The longest time, in hours, that an idle connection to a database will be left open. |
Logon retry delay (seconds) | The amount of time, in seconds, that must elapse without a response from the database before the logon attempt is considered to have failed. When this happens, the logon must be reattempted. |
Figure 4-11 CBS Installation Settings
Figure 4-12 Setup Status - Database Connection
Figure 4-13 Database Configuration Results
Note: It is no longer recommended to configure the server on port 5000, since this port is reserved on Windows XP. The installer has been changed to start at port number 5100 and increment by 100 until it finds a free port on the host machine.
Figure 4-14 Override Existing Host and Port for Manufacturing CBS Server
Figure 4-16 InstallShield Wizard Complete
The Interactive Client is launched from an IFS Enterprise Explorer; therefore the files for the interactive client must reside in the same directory as the IFS Enterprise Explorer. In a typical installation, this is either a shared runtime folder (containing IFS Enterprise Explorer, Foundation1 DLLs and other runtime files) or a client runtime folder deployed in Application Server.
When the IFS Applications build (using the IFS Configuration Builder) was performed, several CBS files were copied to the client/runtime directory of the build. These files include schedserv.exe, Ifs.Cbs.AccessProviderWrapperBridge.dll, Ifs.Cbs.AccessProviderWrappers.dll, Ifs.Cbs.GraphWrapperBridge.dll, Ifs.Cbs.GraphWrappers.dll, msvcp100.dll, msvcr100.dll, xmllite.dll, ZedGraph.dll, default.xml and all of the language translation files Cbsxx.xml, where “xx” is the language code.
The Scheduling Server looks for language files named xx.xml, so the language files in the runtime folder must be renamed from Cbsxx.xml to xx.xml.
Note: During installation and upgrade of CBS components, care must be taken to ensure that the file schedserv.exe in the runtime directory is the same version and date/time stamp as in each Scheduling Server installation.
To recover from problems encountered during the installation process, uninstall the Bridge and/or Server (Uninstalling IFS Constraint Based Scheduling), correct the underlying problem with the CBS Server machine or database, and run the installation program again.
Figure 5-1 About IFS Communication Bridge
Using an IFS Enterprise Explorer follow the navigator to Scheduling Basic Data. On the Shop Order Scheduling/Scheduling Server tab, click the Get Scheduling Server Date button and verify that a date is returned. There will be a spike displayed on the Bridge activity monitor.
Figure 5-2 Scheduling Basic Data – Shop Order Scheduling/Scheduling Server
To uninstall either the Bridge or the Scheduling Server, or both of these components, follow these steps:
Note: that the list of installed software includes separate entries for the Bridge and the Scheduling Server. This means that you can remove these components separately.
Figure 6-1 Add/Remove Programs