Access Keys:
Skip to content (Access Key - 0)

Installing Oracle and Blackboard on Centos

Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Installing Oracle and Blackboard on Centos

This is a guide for creating a Development installation using Centos. If you want to create a production instance of Blackboard, please refer to the official Blackboard documentation.

  1. Install latest Centos on a machine (6.2 x86_64)
  2. vi /etc/yum/pluginconf.d/fastestmirror.conf
    include_only=mirror.aarnet.edu.au
    
  3. yum update ; reboot
  4. vi /etc/sysconfig/iptables
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 2222 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
    
  5. /etc/init.d/iptables restart
  6. chkconfig --level 2345 sshd on #enable sshd at startup
  7. vi /etc/sysctl.conf
    fs.suid_dumpable = 1
    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmmni = 4096
    # semaphores: semmsl, semmns, semopm, semmni
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 9000 65500
    net.core.rmem_default=4194304
    net.core.rmem_max=4194304
    net.core.wmem_default=262144
    net.core.wmem_max=1048586
    
  8. vi /etc/security/limits.conf
    oracle              soft    nproc   2047
    oracle              hard    nproc   16384
    oracle              soft    nofile  4096
    oracle              hard    nofile  65536
    oracle              soft    stack   10240
    
  9. Install necessary packages
    yum install binutils compat-libcap1 compat-libstdc++-33 elfutils-libelf-devel elfutils-libelf gcc-c++ gcc glibc glibc-common glibc-devel glibc-headers ksh libaio-devel libaio libgcc libstdc++-devel libstdc++ make nss-softokn freebl numactl-devel sysstat unixODBC unixODBC-devel
    
  10. Create groups and users
    groupadd -g 501 oinstall
    groupadd -g 502 dba
    groupadd -g 503 oper
    groupadd -g 504 asmadmin
    groupadd -g 506 asmdba
    groupadd -g 505 asmoper
    useradd -u 502 -g oinstall -G dba,asmdba,oper oracle
    passwd oracle
    
  11. vi /etc/selinux/config
    SELINUX=disabled
    
  12. Reboot
  13. Log in as oracle
  14. vi .bash_profile
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME
    ORACLE_UNQNAME=bb9; export ORACLE_UNQNAME
    ORACLE_BASE=/home/oracle/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=bb9; export ORACLE_SID
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    
  15. Reboot
  16. Install Oracle 11.2 as oracle user
    cd database
    ./runInstaller
    
  17. Create /etc/init.d/dbora
    #!/bin/sh
    # chkconfig: 345 99 10
    # description: Oracle auto start-stop script.
    #
    # Set ORA_HOME to be equivalent to the $ORACLE_HOME
    # from which you wish to execute dbstart and dbshut;
    #
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME.
    export ORACLE_BASE=/home/oracle/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
    export ORACLE_HOME_LISTNER=$ORACLE_HOME
    export ORACLE_OWNR=oracle
    export ORACLE_OWNER=oracle
    export ORACLE_SID=bb9
    export ORACLE_UNQNAME=bb9
    export ORACLE_HOSTNAME=localhost.localdomain
    export PATH=$PATH:$ORACLE_HOME/bin
    if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
    then
        echo "Oracle startup: cannot start"
        exit 1
    fi
    case "$1" in
        start)
            # Oracle listener and instance startup
            echo -n "Starting Oracle: "
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/emctl start dbconsole"
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
            touch /var/lock/subsys/dbora
            echo "OK"
            ;;
        stop)
            # Oracle listener and instance shutdown
            echo -n "Shutdown Oracle: "
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
            su $ORACLE_OWNR -c "$ORACLE_HOME/bin/emctl stop dbconsole"
            rm -f /var/lock/subsys/dbora
            echo "OK"
            ;;
        reload|restart)
            $0 stop
            $0 start
            ;;
        *)
            echo "Usage: `basename $0` start|stop|restart|reload"
            exit 1
    esac
    exit 0
    
  18. Add dbora to startup and shutdown proceedure
    chkconfig --add dbora
    
  19. vi /etc/oratab
    bb9:/home/oracle/app/oracle/product/11.2.0/db_1:Y
    
  20. Add latest Java 1.6 rpm from Oracle
    chmod +x jdk-6u31-linux-x64-rpm.bin
    ./jdk-6u31-linux-x64-rpm.bin
    
  21. Make sure the bbuser account exists. Otherwise your build will fail
  22. Run blackboard installer AS ROOT
    java -jar bb-as-linux-9.1.82223.0.jar
    
  23. Create /etc/init.d/blackboard
    #!/bin/bash
    # chkconfig: 345 99 10
    # description: Blackboard auto start-stop script.
    #
    #       /etc/rc.d/init.d/blackboard
    #
    # This shell script takes care of starting and stopping Blackboard
    #
    #
    BLACKBOARD_DIR=/opt/blackboard
    case "$1" in
        start)
            $BLACKBOARD_DIR/tools/admin/ServiceController.sh services.start
            ;;
        stop)
            $BLACKBOARD_DIR/tools/admin/ServiceController.sh services.stop
            ;;
        status)
            $BLACKBOARD_DIR/tools/admin/ServiceController.sh services.status
            ;;
        restart)
            $BLACKBOARD_DIR/tools/admin/ServiceController.sh services.restart
            ;;
        *)
            echo "Usage:  {start|stop|status|restart}"
            exit 1
            ;;
    esac
    exit $?
    
  24. Add blackboard to startup and shutdown proceedure
    chkconfig \--add blackboard
    
  25. vi /etc/inittab
    id:3:initdefault:
    
  26. reboot
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Adaptavist Theme Builder Powered by Atlassian Confluence