SampleApp 一个简短的引论:

SampleApp这是一个一站式服务,几乎证明OBIEE不管顶的特征可想而知。

它安装了大量的应用(数据库,OBIEE,的Endeca。TimesTen的。Essbase的,等等)的VirtualBox虚拟机,并通过对仪表盘,移动应用程序设计师,使用D3,ADF,JavaScript。分析可视化演示了基本分析技术等等。

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGljaGFuZ3phaQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

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

OBIEE SampleAppv406 自己主动启动配置的更多相关文章

  1. Oracle 最简单的随系统自己主动启动

    Oracle 最简单的随系统自己主动启动 俗话说用户是上帝,他们有时候提出一个问题很的简单,就仅仅须要一句话,一分钟就完事了.可是拿到我们DBA来说,可能至少得半个小时甚至半个月才干满足他的一句话.有 ...

  2. ABP(现代ASP.NET样板开发框架)系列之5、ABP启动配置

    点这里进入ABP系列文章总目录 基于DDD的现代ASP.NET开发框架--ABP系列之5.ABP启动配置 ABP是“ASP.NET Boilerplate Project (ASP.NET样板项目)” ...

  3. ABP框架 - 启动配置

    文档目录 本节内容: 配置ABP 替换内置服务 配置模块 为一个模块创建配置 ABP在启动时,提供基础框架和模型来配置和模块化. 置ABP 在预初始化事件中进行配置,示例: kid1412注:XmlL ...

  4. ABP理论学习之启动配置

    返回总目录 本篇目录 配置ABP 配置模块 为模块创建配置 为了在应用启动时配置ABP和模块,ABP提供了一个基础设施. 配置ABP 配置ABP是在模块的PreInitialize事件中完成的.下面的 ...

  5. 【推荐】CentOS安装Tomcat-7.0.57+启动配置+安全配置+性能配置

    注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. #准备工作# 在安装Tomcat之前,请确保已经安装了JDK-1.7环境,具体见<CentOS安装JDK-1.7>. ...

  6. 基于DDD的.NET开发框架 - ABP启动配置

    返回ABP系列 ABP是“ASP.NET Boilerplate Project (ASP.NET样板项目)”的简称. ASP.NET Boilerplate是一个用最佳实践和流行技术开发现代WEB应 ...

  7. 适合最新版docker自定义启动配置

    docker不断发布新版本,以前默认的在 /etc/default/docker里修改,但是新版已经不推荐了 注意: 一些文章推荐在 /lib/systemd/system/docker.servic ...

  8. MongoDB启动配置等

    目录: 一.mongoDB 启动配置 二.导出,导入,运行时备份 三.Fsync锁,数据修复 四.用户管理,安全认证 一.启动项 mongod --help C:\Windows\system32&g ...

  9. 14.6.1 InnoDB Startup Configuration 启动配置

    14.6.1 InnoDB Startup Configuration 启动配置 首先描述关于InnoDB 配置设计数据库文件,日志文件,page size 和内存buffer 的配置. 推荐你定义数 ...

随机推荐

  1. Java 并发专题 : CyclicBarrier 打造一个安全的门禁系统

    继续并发专题~ 这次介绍CyclicBarrier:看一眼API的注释: /** * A synchronization aid that allows a set of threads to all ...

  2. 同一路由器不同vlan之间的通信(一)

    还是废话不多说,第一步,看拓扑图. 先把pc上的ip都配好.開始设置 switch0: >en >conf t >vlan 2 >exit >int fa 0/1 > ...

  3. Ios 该图显示其出现的相关问题定义UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:&#39;

    解决这个问题 在 加上个 标示符 Cell 自己定义 customCell .h 代码例如以下 ViewController.m 文件里 代码例如以下 执行结果 吕 图坚持直接在这里 不行

  4. Linux下PS命令详解 (转)

    要对系统中进程进行监测控制,查看状态,内存,CPU的使用情况,使用命令:/bin/ps (1)ps :是显示瞬间进程的状态,并不动态连续: (2)top:如果想对进程运行时间监控,应该用 top 命令 ...

  5. HDU 1695 GCD 欧拉函数+容斥原理+质因数分解

    链接:http://acm.hdu.edu.cn/showproblem.php?pid=1695 题意:在[a,b]中的x,在[c,d]中的y,求x与y的最大公约数为k的组合有多少.(a=1, a ...

  6. 《深入了解mybatis原则》 MyBatis架构设计和案例研究

    MyBatis这是现在很流行ORM框架,这是非常强大.事实上现却比較简单.优雅. 本文主要讲述MyBatis的架构设计思路,而且讨论MyBatis的几个核心部件.然后结合一个select查询实例.深入 ...

  7. PDE_DATA 定义

    PDE_DATA 定义 Location: /fs/proc/internal.h static inline struct proc_dir_entry *PDE(const struct inod ...

  8. QlikView同button控制转换图表类型(例如,变成一个垂直的条形图)

    QlikView图表可以通过检查一些可以为图表类型的转换非常方便进行配置,允许用户选择上面的图就是看条形图或柱状图或垂直方向图detail数据. 在Fast Type Change中选中如上图所看到的 ...

  9. HDU 4333 Revolving Digits 扩张KMP

    标题来源:HDU 4333 Revolving Digits 意甲冠军:求一个数字环路移动少于不同数量 等同 于的数字 思路:扩展KMP求出S[i..j]等于S[0..j-i]的最长前缀 推断 nex ...

  10. ASP.NET跨平台

    ASP.NET跨平台最佳实践 前言 八年的坚持敌不过领导的固执,最终还是不得不阔别已经成为我第二语言的C#,转战Java阵营.有过短暂的失落和迷茫,但技术转型真的没有想象中那么难.回头审视,其实单从语 ...