转至:https://my.oschina.net/wangshengzhuang/blog/785146
一、环境说明
版本:BIEE11g (BIEE_11.1.1.9.0)
OS:CentOS 6.5 64bit (所有的linux服务器都适用)
二、BIEE启动与关闭
BIEE11g 的启动包括三个部分:启动WebLogic的AdminServer和ManageServer、启动BIEE核心组件
2.1、启动
启动WebLogic的AdminServer
/data/biee/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh
启动WebLogic的ManageServer
/data/biee/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1
启动BIEE核心组件
/data/biee/instances/instance1/bin/opmnctl startall
/data/biee/instances/instance1/bin/opmnctl status
2.2、关闭
关闭的顺序和启动的顺序相反
Stop OBIEE System Components(关闭BIEE核心组件)
/data/biee/instances/instance1/bin/opmnctl stopall
Stop OBIEE Managed Server(关闭WebLogic的ManageServer)
/data/biee/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1
Stop Weblogic Admin Server(关闭WebLogic的AdminServer)
/data/biee/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh
三、免密码启动
在生产环境中,我们启动关闭 Weblogic的Server时都需要输入管理员帐户和密码,因此,如果我们需要使用一个脚本来启动和关闭BIEE11g,则需要用到 boot.properties属性文件,我们在其中定义好WebLogic的管理员帐户和密码,启动Server的时候,会自动读取此文件,并自动将文件内容加密。
将以下脚本保存为boot_properties.sh,赋于755权限,并执行此脚本,则会在BIEE的两个Server(AdminServer和bi_server1)上生成boot.properties。
boot_properties.sh
#!/bin/sh
# 产生boot.properties
# 2013.1.8
# version 1.0
#
export BI_INSTALL_DIR=/data/biee
export username=weblogic
export password=webl0gic
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
四、启动BIEE
将以下脚本保存为startBI.sh,赋755权限,一条命令可启动BIEE11g,同时,会在/tmp下创建目录biee_logs_当天日期,在目录中存放AdminServer和bi_server1的启动日志,并且在启动最后会以tail的方式动态加载bi_server1的启动日志。
startBI.sh
# 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
五、关闭BIEE
将以下脚本保存为stopBI.sh,赋755权限,一条命令可关闭BIEE11g
stopBI.sh
# 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
原文地址
本文转载自:http://www.cnblogs.com/xqzt/p/4821061.html