Oracle Bi Solutions

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 27 January 2013

[OBIEE11g] - Auto Start OBIEE 11g using Windows Services

Posted on 07:43 by Unknown

After installing OBIEE 11g in a windows environment,the server is stopped and started by using command windows.  This works fine in a Development or Testingenvironment, but in Production, this can cause serious issues. If server maintenanceis preformed or the server is restarted, OBIEE will not automatically come backup. The only way to start a windows program on start, without logging in, is byusing windows services. The following guide is set of steps we used to createand install OBIEE 11g using windows services. After the services are installed,they must be configured to start automatically after each other with delayedstartup to ensure that when one service completes, the next will start afterit. Please feel free to leave any questions or comments.
Set the following environment variables
System variable JAVA_HOME = D:OBI11gOracle_BI1jdk
System variable BI_ORACLE_HOME = D:OBI11gOracle_BI1
installSvc.cmd
Take a backup of ‘installSvc.cmd’ located at ‘D:OBI11gwlserver_10.3serverbin’
Add the following to ‘installSvc.cmd’:
set JAVA_VM=-server
set MEM_ARGS=-Xms512m -Xmx512m -XX:MaxPermSize=512m-XX:+UseSpinning

AdministrationServer
  1. Create a command script called installAdmServer_Service.cmd.
Open a text file and input the following lines [edit for your install]:
SETLOCAL
setDOMAIN_NAME=bifoundation_domain
setUSERDOMAIN_HOME=D:OBI11guser_projectsdomainsbifoundation_domain
setSERVER_NAME=AdminServer
setPRODUCTION_MODE=true
set OPMN_PORT=9500
cd %USERDOMAIN_HOME%
call”D:OBI11guser_projectsdomainsbifoundation_domainbinsetDomainEnv.cmd”
call”D:OBI11gwlserver_10.3serverbininstallSvc.cmd”
ENDLOCAL

2.     Add -delay:120000  in the installSvc.cmd file to the line at thebottom.
ForExample:
rem*** Install the service
“%WL_HOME%serverbinbeasvc”-install -svcname:”beasvc %DOMAIN_NAME%_%SERVER_NAME%”  -delay:120000-javahome:”%JAVA_HOME%”-execdir:”%USERDOMAIN_HOME%”-maxconnectretries:”%MAX_CONNECT_RETRIES%” -host:”%HOST%”-port:”%PORT%” -extrapath:”%EXTRAPATH%” -password:”%WLS_PW%”-cmdline:%CMDLINE%-log:”D:OBI11guser_projectsdomainsbifoundation_domainserversAdminServerAdminServer-stdout.txt”
  1. For troubleshooting / debugging purposes it is helpful to redirect standard out and error to a text file. Although most information is captured in the AdminServer server log files, you will not see all standard out and error when the server is started via a MS Windows Service (unlike when you start an AdminServer in console mode from the command prompt using startWebLogic.cmd). To redirect standard out to a text file, backup and edit installSvc.cmd file and change the line at the bottom of the file so it includes the -log parameter. For example:
“%WL_HOME%serverbinbeasvc”-install -svcname:”beasvc %DOMAIN_NAME%_%SERVER_NAME%”  -delay:120000-javahome:”%JAVA_HOME%” -execdir:”%USERDOMAIN_HOME%”-maxconnectretries:”%MAX_CONNECT_RETRIES%” -host:”%HOST%”-port:”%PORT%” -extrapath:”%EXTRAPATH%”-password:”%WLS_PW%” -cmdline:%CMDLINE% -log:”D:OBI11guser_projectsdomainsbifoundation_domainserversAdminServerAdminServer-stdout.txt”
  1. Next,  run “installAdmServer_Service.cmd” and the service should be installed, it will have a name like “beasvc %DOMAIN_NAME%_%SERVER_NAME%” (e.g. beasvc bifoundation_domain_AdminServer)
The Service “Startup Type” will be ‘Automatic’. Just like any otherMS Windows Service you can change the ‘Startup Type’ to ‘Manual’.
For Managed Server bi_server1
  1. Create a command script called installBIServer_Service.cmd which has lines like:
SETLOCAL
setDOMAIN_NAME=bifoundation_domain
setUSERDOMAIN_HOME=D:OBI11guser_projectsdomainsbifoundation_domain
setSERVER_NAME=bi_server1
setJAVA_HOME=D:OBI11gOracle_BI1jdk
setPRODUCTION_MODE=true
setADMIN_URL=http://localhost:7001
set OPMN_PORT=9500
setBI_ORACLE_HOME=D:OBI11gOracle_BI1
cd %USERDOMAIN_HOME%
call”D:OBI11guser_projectsdomainsbifoundation_domainbinsetDomainEnv.cmd”
call”D:OBI11gwlserver_10.3serverbininstallSvc.cmd”
ENDLOCAL
Notes:
    • Before running, add
-depend:”beasvcbifoundation_domain_AdminServer” -delay:180000
To thelast line at the bottom of the installSvc.cmd. For Example:
rem ***Install the service
“%WL_HOME%serverbinbeasvc”-install -svcname:”beasvc %DOMAIN_NAME%_%SERVER_NAME%” -depend:”beasvcbifoundation_domain_AdminServer” -delay:180000-javahome:”%JAVA_HOME%” -execdir:”%USERDOMAIN_HOME%”-maxconnectretries:”%MAX_CONNECT_RETRIES%” -host:”%HOST%”-port:”%PORT%” -extrapath:”%EXTRAPATH%”-password:”%WLS_PW%” -cmdline:%CMDLINE% -log:”D:OBI11guser_projectsdomainsbifoundation_domainserversAdminServerbi_Server1-stdout.txt”
    • Before running, change the -log parameter in the installSvc.cmd file to the new location. For example:
“%WL_HOME%serverbinbeasvc” -install -svcname:”beasvc %DOMAIN_NAME%_%SERVER_NAME%” -depend:”beasvc bifoundation_domain_AdminServer” -delay:180000 -javahome:”%JAVA_HOME%” -execdir:”%USERDOMAIN_HOME%” -maxconnectretries:”%MAX_CONNECT_RETRIES%” -host:”%HOST%” -port:”%PORT%” -extrapath:”%EXTRAPATH%” -password:”%WLS_PW%” -cmdline:%CMDLINE% -log:”D:OBI11guser_projectsdomainsbifoundation_domainserversAdminServerbi_Server1-stdout.txt”
  • The ADMIN_URL value should reference the AdminServer hostname and listen port
  • The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as ‘wls_ods1′ then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.
  • Be careful that there are no trailing spaces after each line in the command file – trailing spaces will cause the managed server to fail at startup. For example a trailing space in the ADMIN_URL value will result in the errorbeasvcbifoundation_domain_AdminServer
    3)   beasvcbifoundation_domain_bi_server1
    4)   OracleProcessManager_instance1
    SettingDependencies:
    In RegistryEditor navigate to HKEY_LOCALMACHINE->SYSTEM->CurrentControlSet->service
    For OracleProcessManager_instance1 Serviceset
    ‘DependOnService’= beasvc bifoundation_domain_bi_server1
    For beasvc bifoundation_domain_bi_server1 Serviceset
    ‘DependOnService’= beasvc bifoundation_domain_AdminServer
    Note: This should already be set as wecreated the dependency while creating the service
    For beasvc bifoundation_domain_AdminServer Serviceset
    ‘DependOnService’= Oracle WebLogic NodeManager (D_OBI11g_wlserver_10.3)
    Note: The startup type for all the aboveservices should be ‘Manual’
    Starting OBIEE Services after the Database is Up andRunning
    The Admin ServerService(beasvc bifoundation_domain_AdminServer) and Managed Server Service(beasvcbifoundation_domain_bi_server1) requires the database to be up and running forthem to start properly.
    In order forOBIEE services to start after the database is up and running, we create a batchfile and set this as Startup Scripts to delay start OBIEE services after systemstartup.
    Batch File:
    NET STOP”OracleProcessManager_instance1″
    TIMEOUT /T 300/NOBREAK
    NET START”OracleProcessManager_instance1″
    Setting batchfile as Startup Script:
    Run-> gpedit.msc
    In Local GroupPolicy Editor:
    ComputerConfiguration->Windows Settings->Scripts (Startup/Shutdown)->Startup

     Add the Batchfile as startup script.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in OBIEE | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Upper Function
    In Oracle/PLSQL, the  upper function  converts all letters in the specified string to uppercase. If there are characters in the string that ...
  • OBIEE 11g Hide/Show Sections based on Dashboard Prompt
    allow a user’s interaction to hide/show certain sections of a dashboard. In this particular case the user wanted to choose either ‘Quarterly...
  • [OBIEE11g] - OBIEE Dashboard for Informatica Metadata Reporting
    The metadata that Informatica Power Center 8 retains in its repository can be exposed via OBIEE reports and dashboards. This metadata includ...
  • [ODI] - Frequently Asked Questions (FAQ)
    Here is a list of FAQs about Oracle Data Integrator 1) What is Oracle Data Integrator (ODI)? 2) What is E-LT? 3) What components make up Ora...
  • OBIEE 11g not showing new dashboard in the drop down menu
    When creating New dashboard in  OBIEE 11g, I have faced with issue that dashboard name did not show up in drop down dashboard menu. 1. When ...
  • Data Modeling: Schema Generation Issue with ERwin Data Modeler 7.3
    We are using Computer Associate’s ERwin Data Modeler 7.3 for data modeling. In one of our engagements, we are pushing data model changes to ...
  • Installation Informatica Powercenter 9.1 on Oracle Enterprise Linux 5.6
    Ingredients: Program Version Filename Oracle Express 11G 11.2.0 oracle-xe-11.2.0-0.5.x86_64.rpm SQL Developer 3.0 sqldeveloper-3.0.04.34-1.n...
  • Informatica Powercenter Workflow Manager Repository Navigator docking float issue
    In case you’re also experiencing where your Repository Navigator is not dock or attached and it seems just floating within Workflow Manager ...
  • [OBIEE11g] - Creating Dashboard Traversing Through Graph
    The general requirement asked for by customers is that they want to Click on the Main Dashboard Page’s Graph and be transferred to the other...
  • OBIEE 11g - Query Limit
    Query limit and number of minutes a query can run per physical layer database connection, follow the below steps. > Login to Repository u...

Categories

  • BI Publisher
  • DAC
  • DataWarehouse
  • Hyperion
  • Informatica
  • OBIEE
  • ODI
  • Oracle Applications EBS 12.1.3
  • Oracle Database
  • PL/SQL
  • SQL
  • Unix/Linux

Blog Archive

  • ▼  2013 (500)
    • ►  November (8)
    • ►  October (1)
    • ►  July (4)
    • ►  June (9)
    • ►  May (15)
    • ►  April (24)
    • ►  March (43)
    • ►  February (73)
    • ▼  January (323)
      • Uninstalling Obiee 11g instance on a linux red hat
      • OBIEE 11g not showing new dashboard in the drop d...
      • OBIEE11g Installation
      • Starting OBIEE 11g Services on Linux
      • OBIEE11g Timestamp differencess
      • DAC11g Installation on Windows Server 2008R2.
      • BI Apps 7.9.6.4 Installation in widows server 2008R2
      • [OBIEE11g] - Eventually succeeded, but encountered...
      • [OBIEE11g] - Blue Screen Error While Login With Bi...
      • [OBIEE11g] - No Log Found Error
      • [OBIEE11g] - Stream Closed Error when Click on cor...
      • OBIA 7.9.6.4 RPD And Catalog Shared
      • [OBIEE11g] - Destination Path too Long error while...
      • [OBIEE11G] - Lookup table is a new feature in obie...
      • [OBIEE11g] - Create Veriable in OBIEE11g.
      • [OBIEE11g] - Configuring LDAP Server to provide OB...
      • [OBIEE11g] - Authentication Failure in OBIEE 11g
      • [OBIEE11g] - Bing Map Integration with OBIEE 11g
      • [OBIEE11g] - OBIEE Dashboard for Informatica Metad...
      • Informatica PowerCenter Upgrading from Version 8.6...
      • Data Modeling: Schema Generation Issue with ERwin ...
      • [OBIEE11g] - DAC Reporting in OBIEE11g
      • [OBIEE11g] - Publisher 11g – Performance Monitorin...
      • [OBIEE11g] - Auto Start OBIEE 11g using Windows Se...
      • [OBIEE11g] - Upgrade OBIEE 11.1.1.5 To Latest Vers...
      • OBIEE11g - User Right Click Interaction Control w...
      • [OBIEE11g] - Customizing Prompts ‘All Column Value...
      • [OBIEE11g] - Choosing the Right OBIEE Visualization
      • OBIEE11g - 11.1.1.6 New Features
      • [OBIEE11g] - Certification with Siebel Marketing f...
      • [OBIEE11g] - Creating a Stacked Bar Chart.
      • [BI EE11g] – Managing Host Name Changes
      • [DAC] - Multi Source Loads With OBIA
      • [Informatica] - ERROR CODES: [CNX_53021 ],[DOM_100...
      • [Informatica] - Informatica PowerCenter Repository...
      • [Informatica] - Processing UNICODE Characters in I...
      • [Linux] - Unix/Linix Commands
      • [DAC] - Full Load Vs Incremental Load
      • [Informatica] - Installation of Informatica 9.0.1 ...
      • [Informatica] - SF_34004- Service initialization ...
      • [Oracle Database] - Linux OS and Oracle database S...
      • [Oracle Database] - Installion Oracle database11g ...
      • [Informatica] - RR_4053 : Row error occurred while...
      • [OBIEE11g] - Change the placement of currency name
      • [OBIEE11g] - Exception Occuring During OBIEE 11.1....
      • What is Indexing in a Database
      • [OBIEE11g] - Setting up OBIEE11g Admin Tool for OD...
      • [OBIEE11g] - Getting Top-N Sales Reps Using the TO...
      • [OBIEE11g] - Getting Top-N Sales Reps Using Result...
      • [OBIEE11g] - Getting Top-N Sales Reps for Year and...
      • [OBIEE11g] - Analyzing Sales for “N Years Top-10 S...
      • [OBIEE11g] - Drill Down to Sub Reports Passing Mul...
      • [OBIEE11g[ - Configuring BI Scheduler for iBots on...
      • [OBIEE 11g] - How Application Roles, Groups and Us...
      • [OBIEE11g] - Setting up Access Permissions to Repo...
      • [OBIEE11g] - Fixing Weblogic and bi_server1 startu...
      • [OBIEE11g] - Deleting and Re-Creating Users in We...
      • [OBIEE 11g] - Backup and Restore of OBIEE Filesyst...
      • [OBIEE11g] - Creating Effective Bar Graphs
      • [OBIEE] - Useful SQL statements in Business Intell...
      • [OBIEE11g] - Creating Dashboard Traversing Throug...
      • [OBIEE11g] - Database Connection Failure while cr...
      • [DAC] - Admin password recovery
      • [Oracle 11g] - Oracle Database 11g installation on...
      • [OBIEE11g] - Variables in Oracle OBIEE 11g
      • [OBIEE11g] - Installing OBIEE 11g on Linux Fedora 17
      • [OBIEE11g] - Table view Date Column controlled by...
      • [OBIEE11g] - Adding Tooltips and conditional colo...
      • [OBIEE11g] - Show top-N Sales Persons in BI Publi...
      • [OBIEE11g] - Creating Scrolling Ticker Views
      • [OBIEE11g] - Authentication first with LDAP then ...
      • [OBIEE11g] - Relocation of OBIEE MetaData Reposit...
      • [OBIEE11g] - Hierarchical Roll-Up and Individual T...
      • [OBIEE11g] - Creation of Sales Reps Hierarchy wit...
      • [OBIEE11g] - Using external table to Filter BI Ans...
      • [OBIEE11g] - Configuring of RPD deployed on Linux...
      • [OBIEE11g] - Configuring an ODBC DSN for the Oracl...
      • [ODI] - Frequently Asked Questions (FAQ)
      • [OBIA] - Oracle BI Applications - Frequently Asked...
      • [OBIEE 11g] - Maps - Frequently Asked Questions (FAQ)
      • [OBIEE11g] - The 11g Features You Maybe Didn't Know!
      • [OBIEE11g] - New Features with OBIEE 11.1.1.6
      • [OBIEE11g] - Dashboard Prompt - "Prompt User"
      • [OBIEE11g] - [46153] The configuration file (O:\us...
      • [Informatica] - Multiple Chart of Accounts Configu...
      • [OBIEE11g] - Customizing Pivot Table Error
      • [OBIEE11g] - How to get Month Start Date and Month...
      • [OBIEE11g] - How to get Week Start Date and Week E...
      • [OBIEE11g] - How to rename My Dashboard
      • Table Organization in OBAW (Oracle Business Analyt...
      • [OBIEE11g] Uninstall OBIEE 11g
      • [OBIEE11g] - Command Line Merging in OBIEE 10g/11g
      • BI Publisher report is showing incorrect date(Show...
      • [OBIEE11g] - Connectivity issue from OBIEE (in Sol...
      • [OBIEE 11g] - Installation on Red Hat Linux
      • [OBIEE11g] - Different ToolTip for different rows ...
      • [OBIEE11g] - Integrating OBIEE 11g with EPM worksp...
      • [DAC] Fail to create indices during DAC execution ...
      • [DAC] Oracle DAC issue in 64 Bit Machine
      • [OBIEE11g] Connection Pool Select Button is Disabl...
Powered by Blogger.

About Me

Unknown
View my complete profile