Thursday, November 15, 2012

Starting UCM 10g on boot


While this is a bit late, numerous Oracle customers are still installing and running instances of UCM 10g. These instructions refer to the automating of the startup of the UCM 10g service on system boot.

Once the UCM 10g instances are installed, the following process will add these to the init.d  startup process. These instructions are written using Oracle Linux Server release 5.7.

Starting UCM 10g involves starting the IDC Admin Server and the IDC Server. In my examples here, UCM was installed to the “/u01/app/ucm/server” directory.

  1. Log into Linux as root
  2. Copy the idcadmin_ctrl and the idcserver_ctrl files to the .etc/init.d directory. I like to shorten the names to idcadmin and idcserver respectively.

    [root@dev ~] cp /u01/app/ucm/server/etc/idcserver_ctrl /etc/init.d/idcserver
    [root@dev ~] cp /u01/app/ucm/server/admin/etc/idcadmin_ctrl /etc/init.d/idcadmin

  3. Verify that the two files are executable
    [root@dev init.d]# cd /etc/init.d
    [root@dev init.d]# ls -l idc*
    -rwxr-xr-x 1 root root 11201 Nov 12 10:56 idcadmin
    -rwxr-xr-x 1 root root 11204 Nov 12 10:56 idcserver

  4. Edit the idcadmin file and replace the first lines

    #!/bin/sh
    #idc Note: Lines beginning with #idc will be removed from this script
    #idc automatically during the build process.
    #idc

    With
    #!/bin/bash
    #
    #
    # chkconfig:   2345 85 15
    # description: This is a program that is responsible for taking care of
    # starting and stoping the UCM Admin Server.
    #
    # processname: idcadmin
    # Red Hat or SuSE config: /etc/sysconfig/idcadmin
    # Debian or Ubuntu config: /etc/default/idcadmin
    #

    The chkconfig:   2345 85 15 line tells chkconfig to set the run levels at 2345 (same as Oracle database)and it also puts the start at priority 85 and the stop at priority 15 (database is 80 and 05)

  5. Edit the idcserver file and replace the first lines

    #!/bin/sh
    #idc Note: Lines beginning with #idc will be removed from this script
    #idc automatically during the build process.
    #idc

    With
    #!/bin/bash
    #
    #
    # chkconfig:   2345 85 15
    # description: This is a program that is responsible for taking care of
    # starting and stoping the UCM Server.
    #
    # processname: idcserver
    # Red Hat or SuSE config: /etc/sysconfig/idcserver
    # Debian or Ubuntu config: /etc/default/idcserver
    #

    The chkconfig:   2345 85 15 line tells chkconfig to set the run levels at 2345 (same as Oracle database)and it also puts the start at priority 85 and the stop at priority 15 (database is 80 and 05)

  6. Add these to the service list with the following:

    [root@dev init.d]# chkconfig --add idcadmin
    [root@dev init.d]# chkconfig --add idcserver

  7. Verify they were added using the following:
    [root@dev init.d]# chkconfig --list|grep idc
    idcadmin        0:off   1:off   2:on    3:on    4:on    5:on    6:off
    idcserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off

  8. Test the services
    [root@dev init.d]# service idcadmin query
    Success checking Admin Server status. Status:  Stopped
    [root@dev init.d]# service idcserver query
    Success checking Content Server  Content Server status. Status:  Stopped

  9. And finally, restart the linux instance and confirm that the IDC Admin and IDC Server start

No comments:

Post a Comment