zoukankan      html  css  js  c++  java
  • 【biee】BIEE启动关闭服务

    转至:http://blog.sina.com.cn/s/blog_7e04e0d00101k5r8.html

    版本:BIEE11g (11.1.1.6.0-11.1.1.6.7)

    OS:RHEL 5.5 64bit (所有的linux服务器都适用)

    key words:startBIEE stopBIEE  BIEE11g

    BIEE11g 的启动包括三个部分,启动BIEE核心组件、启动WebLogic的AdminServer和ManageServer,而在生产环境中,我们启动关闭 Weblogic的Server时都需要输入管理员帐户和密码,因此,如果我们需要使用一个脚本来启动和关闭BIEE11g,则需要用到 boot.properties属性文件,我们在其中定义好WebLogic的管理员帐户和密码,启动Server的时候,会自动读取此文件,并自动将文 件内容加密。

    将以下脚本保存为boot_properties.sh,赋于755权限,并执行此脚本,则会在BIEE的两个Server(AdminServer和bi_server1)上生成boot.properties。

    boot_properties.sh

    #!/bin/sh

    # Sunny.Zhang

    # 产生boot.properties

    # 2013.1.8

    # version 1.0
    #

    export BI_INSTALL_DIR=/data/biee

    export username=weblogic

    export password=sunny123

    export DOMAIN_HOME=$BI_INSTALL_DIR/user_projects/domains/bifoundation_domain

    cd $DOMAIN_HOME/servers/AdminServer/security

    echo username=$username >>boot.properties

    echo password=$password >>boot.properties

    cd $DOMAIN_HOME/servers/bi_server1/security

    echo username=$username >>boot.properties

    echo password=$password >>boot.properties

    ls $DOMAIN_HOME/servers/AdminServer/security/boot.properties

    cat $DOMAIN_HOME/servers/AdminServer/security/boot.properties

    ls $DOMAIN_HOME/servers/bi_server1/security/boot.properties

    cat $DOMAIN_HOME/servers/bi_server1/security/boot.properties

    ==================================华丽丽的分割线=================================

    将以下脚本保存为stopBI.sh,赋755权限,一条命令可关闭BIEE11g

    stopBI.sh

    #!/bin/sh
    # Sunny.Zhang

    # stop oracle biee 11g

    # 2012.12.17
    # version 1.0
    #

    export BI_INSTALL_HOME=/data/biee
    export ORACLE_INSTANCE=$BI_INSTALL_HOME/instances/instance1
    export DOMAIN_HOME=$BI_INSTALL_HOME/user_projects/domains/bifoundation_domain
    export WL_HOME=$BI_INSTALL_HOME/wlserver_10.3
    export BISERVER=bi_server1

    echo "Stop OBIEE System Components ......"
    $ORACLE_INSTANCE/bin/opmnctl stopall

    echo "Stop OBI Managed Server ......"
    $DOMAIN_HOME/bin/stopManagedWebLogic.sh $BISERVER

    echo "Stop Weblogic Admin Server ......"
    $DOMAIN_HOME/bin/stopWebLogic.sh

    ==================================华丽丽的分割线=================================

    将以下脚本保存为startBI.sh,赋755权限,一条命令可启动BIEE11g,同时,会在/tmp下创建目录biee_logs_当天日期,在目录中存放AdminServer和bi_server1的启动日志,并且在启动最后会以tail的方式动态加载bi_server1的启动日志。

    startBI.sh

    #!/bin/sh
    # Sunny.Zhang

    # start oracle biee 11g

    # 2012.12.17
    # version 1.0
    #

    export BI_INSTALL_HOME=/data/biee
    export ORACLE_INSTANCE=$BI_INSTALL_HOME/instances/instance1
    export DOMAIN_HOME=$BI_INSTALL_HOME/user_projects/domains/bifoundation_domain
    export WL_HOME=$BI_INSTALL_HOME/wlserver_10.3
    export BISERVER=bi_server1
    export DATE=`date +%Y%m%d`
    export TIME=`date +%Y%m%d%H%M%S`

    mkdir /tmp/biee_logs_$DATE
    export BIEE_LOGS=/tmp/biee_logs_$DATE

    nohup $DOMAIN_HOME/bin/startWebLogic.sh > $BIEE_LOGS/start_AdminServer_$TIME.log &
    echo "Starting BIEE WebLogic Admin server ......"
    sleep 60

    nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh $BISERVER > $BIEE_LOGS/start_bi_server1_$TIME.log &
    echo "Starting BIEE Managed server ......"
    sleep 120

    echo "Starting OBIEE server ......"
    $ORACLE_INSTANCE/bin/opmnctl startall
    $ORACLE_INSTANCE/bin/opmnctl status

    echo "Starting BIEE Managed Server Log....."
    tail -f $BIEE_LOGS/start_bi_server1_$TIME.log

  • 相关阅读:
    [Java123] 方法重载中遇到的编译器错误: both methods have same erasure => 引入Java泛型type erasure
    [Java123] 认识JavaBean
    [Java123] HashMap实现和应用
    [Java123] 开源工具guava比较器链ComparisonChain (附加比较null空值的实现方法)
    [Java123] Java的异常处理机制
    [ORACLE123] sysdate处理
    Linux进程实时可视化监控
    【Java123】ThreadLocal学习笔记
    【XML123】了解XMLUnit
    字符串%s
  • 原文地址:https://www.cnblogs.com/my-first-blog-lgz/p/13954644.html
Copyright © 2011-2022 走看看