Bookshelf Home | Contents | Index | Search | PDF |
Siebel Server Installation Guide for UNIX > Installing the Siebel Server > Post-Installation Tasks for Siebel Server >
Configuring the Siebel Server for Automatic Start
If, during your UNIX installation, you elected automatic restart of the Siebel Server, you must follow the procedure below to enable it.
The procedure that you use will depend on whether or not you have a copy of
siebel_server
in your/etc/init.d
(Solaris and HP-UX) or/etc/rc.d
(AIX) directory. If, for example, your Siebel Gateway and this Siebel Server are on different machines, you probably will not have one and in this case you will use the second procedure.Editing the siebel_server Script
The
siebel_server
script requires you to set the appropriate environment variables for database connectivity before it can start the Siebel system services.Locate the
siebel_server
script under$
SIEBEL_SERVER_ROOT
/bin.
Review and, if necessary, edit the section of the script called "Setting Up Database Connectivity" to make sure that the appropriate commands are invoked.
If you have multiple
$
SIEBEL_ROOT
directories on the server for which you want to enable automatic startup, you must edit the script by adding the new
$
SIEBEL_ROOT
to the
SIEBEL_SERVER_ROOT
variable. (Use spaces to separate the directories.) For example, suppose that the first Siebel Server in the directory/usr/local/siebel
has the following variable value for$
SIEBEL_SERVER_ROOT
:
SIEBEL_SERVER_ROOT
= "/usr/local/siebel"If, after following the steps described above, you later decide that you want to install a new server in the directory
/vol1/siebel
and enable it for Autostart feature, you must modify the$
SIEBEL_SERVER_ROOT
variable as follows:
$
SIEBEL_SERVER_ROOT=
"/usr/local/siebel /vol1/siebel"NOTE: Remember that the host where the Siebel Gateway is installed must be the first to be started and the last to be shut down.
Configuring the Siebel Server for Automatic Start If You Have No Script
If you do not have a copy of the script
siebel_server
in the appropriate location, follow the procedure below.To configure the Siebel Server to start automatically under Solaris and HP-UX
- Log on as root to the machine on which the Siebel Server was installed.
- Copy the file
siebel_server
to the/etc/init.d
directory as shown below:
cp $
SIEBEL_ROOT
/bin/siebel_server /etc/init.d
- Set the appropriate permissions by executing the command:
chmod 744 /etc/init.d/siebel_server
- Create a hard link to
/etc/rc3.d/S72siebel
from
/etc/init.d/siebel_server
by executing the command:
ln /etc/init.d/siebel_server /etc/rc3.d/S72siebel
NOTE: The command above assumes that you bring up your Siebel Server in init state 3.
- Create a hard link to
/etc/rc0.d/K32siebel
from
/etc/init.d/siebel_server
by executing the command:
ln /etc/init.d/siebel_server /etc/rc0.d/K32siebel
To configure the Siebel Server to start automatically under AIX
- Log on as root to the machine on which the Siebel Server was installed.
- Navigate to
$
SIEBEL_ROOT
/bin/
where:
$
SIEBEL_ROOT =
the installation directory for the Siebel Server.- Using any text editor, open the file
siebel_server
. Edit the database environment variable as described below:Oracle
- Uncomment the line
#ORACLE_HOME=
and enter the location for$
ORACLE_HOME
.
- Uncomment the line
#export ORACLE_HOME.
- Add the following two lines:
TNS_ADMIN=
$tns_admin
NOTE: You will need to ask your database administrator for the value of
$tns_admin
.export TNS_ADMIN
DB2
- Add a line to execute the
db2profile
, for example:. /home/eng-sm/db2v7aix/sqllib/db2profile
NOTE: You will need to ask your database administrator for the location of
$
db2profile
.
- Save and close the file.
- Log in as root and execute the following command on a single line:
mkitab "start_server:2:once:su - $USER -c \"$
SIEBEL_ROOT
/bin/siebel_server start\""where:
$
USER is the user name of the Siebel administrator.
$
SIEBEL_ROOT is the installation directory for the Siebel Gateway.- Verify if the file
/etc/rc.shutdown
exists. If it does not exist, create it and change the permissions:touch /etc/rc.shutdown
chmod 744 /etc/rc.shutdown- Edit the file
/etc/rc.shutdown
add the following command to it:su - $USER -c "$SIEBEL_ROOT/bin/siebel_server stop"
where:
$
USER is the user name of the Siebel administrator.
$
SIEBEL_ROOT is the installation directory for the Siebel Gateway.- Save and close the file.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Server Installation Guide for UNIX Published: 24 June 2003 |