OBIEE SampleAppv406 Auto-start configuration

Source: Internet
Author: User


SampleApp Introduction:

SampleApp is a one-stop service that demonstrates virtually any conceivable top-level feature in OBIEE. It is a VirtualBox virtual machine that installs many applications (databases, OBIEE, Endeca,timesten, Essbase, etc.), and through the dashboard, mobile application designers, using D3,adf,javascript, The analysis visualization demonstrates basic analysis techniques and so on.

SampleApp is great, but without the auto-start feature for each service, we create and configure startup scripts to facilitate the management of OBIEE with the following steps.

The OBIEE init.d Service script shown here can be used on any Linux installation OBIEE, or it can be viewed in the following places: Https://github.com/RittmanMead/scripts/tree/master/obi/service

1. Preparatory work

Assuming that we have completed the installation and configuration of the 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

For a complete SampleApp installation guide, see Sampleapp_quickdeploymentguide–406.pdf, which can be found SampleAppv406 the download page:

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


2. Set up Database Auto-start

In order for the OBIEE to start automatically, first make sure that the database starts first, by setting it as a service (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

# won't 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

In SampleApp v406, there is a oracle12c container database (CDB), in which there are two "pluggable" databases (PDB). Assuming you do not start the database, the RCU mode that attempts to connect to PDBs will fail:

[Email protected] ~]$ Sqlplusbiee_biplatform/[email PROTECTED]:1521/PDBORCL

Sql*plus:release 12.1.0.1.0Production on Tue June 17 03:03:51 2014

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

ERROR:

Ora-12541:tns:no Listener

Start the service now:

sudo service Dbora start

Check the status again:

[Email protected] ~]$ Sqlplusbiee_biplatform/[email PROTECTED]:1521/PDBORCL

Sql*plus:release 12.1.0.1.0Production on Tue June 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. Configure auto-start OBIEE

Now, we can set the service that OBIEE starts automatically when the system starts. In SampleApp v406 installation requires two scripts for changes to the environment's path and dependencies. GitHub Commons Script Library:

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, just neeed

# "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

Run the following command to view the running status of the OBIEE:

sudo service OBIEE status

Start OBIEE:

sudo service OBIEE start

If there is a service that started unsuccessfully on the first boot, you can run the command again to start

Close OBIEE:

sudo service OBIEE stop

To set the system runtime to start automatically OBIEE:

sudo chkconfig--add OBIEE

You can now restart the system to check that the settings are valid

sudo shutdown-r now


Reference:

SampleAppv406 Auto-start configuration:

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

SampleAppv406 Virtual Machine installation configuration:

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

OBIEE SampleAppv406 Auto-start configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.