OBIEE SampleAppv406 自动启动配置


SampleApp 简介:

 

SampleApp是一个一站式的服务,几乎演示了OBIEE中任何可以想象的顶级的功能。它是一个安装了许多应用(数据库,OBIEE,的Endeca,TimesTen的,Essbase的,等等)的VirtualBox虚拟机,并通过对仪表盘,移动应用程序设计师,使用D3,ADF,JavaScript,分析可视化演示了基本分析技术等等。

 

SampleApp是非常棒的,但缺少各个服务的自动启动功能,我们通过下面的步骤创建和配置启动脚本,方便管理OBIEE。

 

这里展示的OBIEE init.d服务脚本可以在任何安装OBIEE的Linux上使用,也可以下面的地方查看下载:https://github.com/RittmanMead/scripts/tree/master/obi/service

 

1. 准备工作

假设之前我们已经完成VirtualBox VM的安装和配置

 

●  downloaded the28GB worth of zip files

●  Unpacked them using 7zip

●  Found 70+GB of disc space freeand imported the OVF into VirtualBox

●  Started up the VM

 

完整的SampleApp安装指南见SampleApp_QuickDeploymentGuide–406.pdf,可以SampleAppv406下载页找到:

 http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html


2.   设置数据库自动启动

为了使OBIEE自动启动,首先要确保数据库先要启动,通过设置它作为一个服务(init.d)

 

# Create startup/shutdownscript files

mkdir -p /home/oracle/scripts

chown oracle.oinstall/home/oracle/scripts

cat>>/home/oracle/scripts/startup.sh<<EEOF

#!/bin/bash

 

# Start Listener

lsnrctl start

 

# Start Database

sqlplus / as sysdba <<EOF

STARTUP;

ALTER PLUGGABLE DATABASE ALLOPEN;

EXIT;

EOF

EEOF

 

cat>>/home/oracle/scripts/shutdown.sh<<EEOF

#!/bin/bash

 

# Stop Database

sqlplus / as sysdba <<EOF

ALTER PLUGGABLE DATABASE ALLCLOSE IMMEDIATE;

SHUTDOWN IMMEDIATE;

EXIT;

EOF

 

# Stop Listener

lsnrctl stop

EEOF

 

# Make them executable

chmod u+x/home/oracle/scripts/startup.sh /home/oracle/scripts/shutdown.sh

chown oracle.oinstall/home/oracle/scripts/startup.sh /home/oracle/scripts/shutdown.sh

 

# Create service script

cat>/tmp/dbora<<EOF

#!/bin/sh

# chkconfig: 345 90 25

# description: Oracle autostart-stop script.

#

# Set ORA_OWNER to the user idof the owner of the

# Oracle database software.

 

ORA_OWNER=oracle

 

case "\$1" in

    'start')

        # Start the Oracle databases:

        # The following command assumes thatthe oracle login

        # will not prompt the user for anyvalues

        su - \$ORA_OWNER -c"/home/oracle/scripts/startup.sh >>/home/oracle/scripts/startup_shutdown.log 2>&1"

        touch /var/lock/subsys/dbora

        ;;

    'stop')

        # Stop the Oracle databases:

        # The following command assumes thatthe oracle login

        #will not prompt the user for any values

        su - \$ORA_OWNER -c"/home/oracle/scripts/shutdown.sh >>/home/oracle/scripts/startup_shutdown.log 2>&1"

        rm -f /var/lock/subsys/dbora

        ;;

esac

EOF

sudo mv /tmp/dbora/etc/init.d/dbora

sudo chown root./etc/init.d/dbora

 

# Make the service scriptexecutable

sudo chmod 750/etc/init.d/dbora

 

# Associate the dbora servicewith the appropriate run levels and set it to auto-start using the followingcommand.

sudo chkconfig --add dbora

 

在SampleApp v406中,有一个Oracle12c的容器数据库(CDB),在它当中有两个“可插拔”数据库(PDB)。假设你没有启动数据库,尝试连接到PDBS的RCU模式将会失败:

 

[oracle@demo ~]$ sqlplusBIEE_BIPLATFORM/Oracle123@localhost:1521/pdborcl

 

SQL*Plus: Release 12.1.0.1.0Production on Tue Jun 17 03:03:51 2014

 

Copyright (c) 1982, 2013,Oracle.  All rights reserved.

 

ERROR:

ORA-12541: TNS:no listener

 

现在启动服务:

sudo service dbora start

 

再次检查状态:

[oracle@demo ~]$ sqlplusBIEE_BIPLATFORM/Oracle123@localhost:1521/pdborcl

 

SQL*Plus: Release 12.1.0.1.0Production on Tue Jun 17 03:06:12 2014

 

Copyright (c) 1982, 2013,Oracle.  All rights reserved.

 

Last Successful login time: TueJun 17 2014 03:02:09 -04:00

 

Connected to:

Oracle Database 12c EnterpriseEdition Release 12.1.0.1.0 - 64bit Production

With the Partitioning, OLAP,Advanced Analytics and Real Application Testing options

 

SQL>

 

 

3.   配置自动启动OBIEE

现在,我们可以设置OBIEE在系统启动时自动启动的服务。在SampleApp v406安装需要两个对环境的路径和依存关系变化的脚本。github共公的脚本库:

https://github.com/RittmanMead/scripts/tree/master/obi/service

 

 

# lsof is used in the scriptand isn't installed by default, so let's install it:

sudo yum -y install lsof

 

# Now fetch the init.d scriptitself and configuration file

sudo wget--no-check-certificate https://raw.githubusercontent.com/RittmanMead/scripts/master/obi/service/init.d/obiee-O /etc/init.d/obiee

sudo wget--no-check-certificatehttps://raw.githubusercontent.com/RittmanMead/scripts/master/obi/service/sysconfig/obiee-O /etc/sysconfig/obiee

 

# Update the FMW_HOME path inthe script

# If you're doing thismanually, you just neeed to change the line

# "FMW_HOME=" and putin the FMW_HOME path for your installation.

# In the case of SampleApp v406it is /app/oracle/biee

sudo sed -i -e's/FMW_HOME=.*$/FMW_HOME=\/app\/oracle\/biee/g' /etc/sysconfig/obiee

 

# Make the script executable

sudo chmod 750/etc/init.d/obiee

 

运行下面命令查看OBIEE的运行状态:

sudo service obiee status

 

 

 

启动OBIEE:

sudo service obiee start

 

如果第一次启动时有启动失败的服务,可以再次运行命令启动

 

关闭OBIEE:

sudo service obiee stop

 

设置系统运行时自动启动OBIEE:

sudo chkconfig --add obiee

 

现在可以重新启动系统,检查设置是否有效

sudo shutdown -r now

 


参考:

SampleAppv406自动启动配置:

http://www.rittmanmead.com/2014/06/sampleapp-v406-automatic-startup-of-obiee/

SampleAppv406虚拟机安装配置:

http://www.slideshare.net/lravikumarvsp/step-by-step-deployment-of-sample-appv406

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
资源包主要包含以下内容: ASP项目源码:每个资源包中都包含完整的ASP项目源码,这些源码采用了经典的ASP技术开发,结构清晰、注释详细,帮助用户轻松理解整个项目的逻辑和实现方式。通过这些源码,用户可以学习到ASP的基本语法、服务器端脚本编写方法、数据库操作、用户权限管理等关键技术。 数据库设计文件:为了方便用户更好地理解系统的后台逻辑,每个项目中都附带了完整的数据库设计文件。这些文件通常包括数据库结构图、数据表设计文档,以及示例数据SQL脚本。用户可以通过这些文件快速搭建项目所需的数据库环境,并了解各个数据表之间的关系和作用。 详细的开发文档:每个资源包都附有详细的开发文档,文档内容包括项目背景介绍、功能模块说明、系统流程图、用户界面设计以及关键代码解析等。这些文档为用户提供了深入的学习材料,使得即便是从零开始的开发者也能逐步掌握项目开发的全过程。 项目演示与使用指南:为帮助用户更好地理解和使用这些ASP项目,每个资源包中都包含项目的演示文件和使用指南。演示文件通常以视频或图文形式展示项目的主要功能和操作流程,使用指南则详细说明了如何配置开发环境、部署项目以及常见问题的解决方法。 毕业设计参考:对于正在准备毕业设计的学生来说,这些资源包是绝佳的参考材料。每个项目不仅功能完善、结构清晰,还符合常见的毕业设计要求和标准。通过这些项目,学生可以学习到如何从零开始构建一个完整的Web系统,并积累丰富的项目经验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值