设为首页 加入收藏

TOP

OBIEESampleAppv406自动启动配置(一)
2015-07-24 10:45:04 来源: 作者: 【 】 浏览:1
Tags:OBIEESampleAppv406 自动 启动 配置

SampleApp 简介:

?

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

\

?

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

?

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<>/home/oracle/scripts/shutdown.sh</tmp/dbora<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安装需要两个对环境的路径和依存关系变化的脚本。

# 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.
首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇13.赫夫曼树及其应用 下一篇在Tomcat上安装部署SAIKU

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)
·[ Linux运维学习 ] (2025-12-26 02:52:27)
·HTTPS 详解一:附带 (2025-12-26 02:20:37)
·TCP/IP协议到底在讲 (2025-12-26 02:20:34)