Wednesday 25 November 2015

load plan error: Caused By: oracle.odi.jdbc.datasource.ConnectionTimeoutException: A login timeout occured while connecting to the database

Error: Load plan failed due to login time out error.
Sol:
  1. Add the below parameter in Listener.ora 
CONNECT_TIMEOUT_LISTENER=0

  1. Add the below parameters in  Sqlnet.ora  
SQLNET.EXPIRE_TIME = 0
SQLNET.OUTBOUND_CONNECT_TIMEOUT = 0

SQLNET.INBOUND_CONNECT_TIMEOUT = 0

Tuesday 24 November 2015

ORA-32001: write to SPFILE requested but no SPFILE specified at startup


Sol:
SQL> show parameter spfile

NAME TYPE                VALUE
------------------------------------ ----------- ------------------------------
spfile                             string

SQL> show parameter pfile

NAME TYPE                VALUE
------------------------------------ ----------- ------------------------------
spfile                            string
SQL> show parameter dump
NAME TYPE                     VALUE
------------------------------------ ----------- ------------------------------
background_core_dump  string partial
background_dump_dest string /slot/oracle/11.2.0/log/diag/rdbms/oracledb1/oracledb1/trace
core_dump_dest string /slot/oracle/11.2.0/log/diag/rdbms/oracledb1/oracledb1/cdump
max_dump_file_size string 10M
shadow_core_dump string PARTIAL
user_dump_dest string /slot/oracle/11.2.0/log/diag/rdbms/oracledb1/oracledb1/trace
SQL> CREATE SPFILE FROM PFILE;
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup

ORACLE instance started.
Total System Global Area 2154590208 bytes
Fixed Size 2230112 bytes
Variable Size 1325402272 bytes
Database Buffers 805306368 bytes
Redo Buffers 21651456 bytes
Database mounted.
Database opened.

SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /slot/oracle/11.2.0/dbs/spfileoracledb1.ora
SQL> ALTER SYSTEM SET processes = 5000 SCOPE=SPFILE;

System altered.

Friday 20 November 2015

Redeploy the Java EE ODI Agent in WebLogic


    1. In WLS Console, navigate to Deployments and select oraclediagent from the list. Click on the Delete button at the top of the table to delete the deployment of the oraclediagent enterprise application. Click on Activate Changes.
    2. Still on the Summary of Deployments page, click on Lock and Edit and then click on the Install button.
    3. On the Application Install Assistant, provide the path to the oraclediagent.ear file. This path should be <ODI Home>/setup/manual/oracledi-agent. Select oraclediagent.ear using the radio button displayed:


    1. Click Next. Accept the default selections on the screen:



 
    1. Click Next. Select the ODI Managed Server as the deployment target:


    1. Click Next. Accept the defaults on the Option settings page:



    1. Click Next. Review the choices and then click Finish.


    1. Click on Activate Changes.
    2. On the Summary of Deployments page, select the oraclediagent enterprise application and then click on the Start button: Servicing All Requests. (Click Lock & Edit, if necessary). 
The oraclediagent should successfully start.

Wednesday 18 November 2015

Configure Initial Extract Date in obia 11g

Initial Extract Date is required when you extract data for a full load. It reduces the volume of data in the initial load. The specified initial extract date will be used as a filter on the creation date of the transactional data in the selected full extract mapping. The date format is YYYY-MM-DD, for example, 2014-12-31. The default date is January 01, 1970.

  1. Select Manage Implementation Projects in FSM
  2. Select configure Initial Extract Date
  3. Click on GO to Task button
  1. Click on Date on Global Parameter Value. Warning window will appear click on OK

  1. Set the required date, Save and Close

Tuesday 17 November 2015

Configuring Global Currencies

Currency conversions are required because your business might have transactions involving multiple currencies. To create a meaningful report, you have to use a common currency.

OBA warehouse stores amounts in the following currencies:
1.      Document currency: The document currency is the currency of the transaction.
a.      Ex: if you purchase a chair from a supplier in Mexico, then the document currency is probably the Mexican peso. Or, if you made a business trip to the United Kingdom and filed an expense report for meal expenses in the UK, then the document currency of the expense report will most likely be in GBP.
2.      Local currency: The local currency is the base currency of your ledger, or the currency in which your accounting entries are recorded in.
3.      Global currencies: Oracle BI Applications provides three global currencies, which are the common currencies used by Oracle Business Analytics Warehouse.
a.      Ex: if your organization is a multinational enterprise that has its headquarters in the United States, you probably want to choose US dollars (USD) as one of the three global currencies.The global currency is useful when creating enterprise-wide analyses. For example, a user might want to view enterprise-wide data in other currencies. For every monetary amount extracted from the source, the load mapping loads the document and local amounts into the target table. It also loads the exchange rates required to convert the document amount into each of the three global currencies. For fact tables, there are two amount columns covering the Local currency amount and the Document currency amount. In addition, there are three columns covering the Global currency (for example, global _amount1) and their corresponding exchange rate columns. In most cases, the source system provides the document currency amount, which is the default setting for handling currency. If the source system provides only the document currency amount, then the source adapter performs lookups to identify the local currency codes based on the source system to which the appropriate currencies are assigned. After the lookups occur, the extract mapping provides the load mapping with the document currency amount and the document and local currency codes. The load mapping will then use the provided local currency  codes and perform currency conversion to derive the local amount. The load mapping will also fetch the global currencies setup and look up the corresponding exchange rates to each of the three global currencies.
b.      To specify global currencies, use the parameters GLOBAL1_CURR_CODE, GLOBAL2_CURR_CODE, and GLOBAL3_CURR_CODE.

Before you configure global currencies using parameters GLOBAL1_CURR_CODE, GLOBAL2_CURR_CODE and so on, you must configure the Currency domain, as follows:

1.      In Oracle BI Applications Configuration Manager, select the Manage Externally Conformed Domains link in the Tasks pane to display the "Manage Externally Conformed Domains dialog".
2.      In the Product Line drop down list, select Not Specified Product Line.
3.      In the Externally Conformed Domains list, select Currency, then click Configure Domain to start the configuration wizard.
4.      Follow the on-screen instructions on the configuration wizard.
5.      Click Save.
                                                    

Sunday 8 November 2015

Start/Stop Oracle BI Services in Linux

Starting Oracle BI 11g Services: 
start Node manager
cd /u01/Oracle/Middleware/wlserver_10.3/server/bin
nohup ./startNodeManager.sh > NodeMgr.log &
tail -f NOD.log
Start Admin Server
switch to the user who owns BI installation.
cd /u01/Oracle/Middleware/user_projects/domains/bifoundation_domain/bin
nohup ./startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=welcome1>Admsrvr.log &
tail -f Admsrvr.log
Start managed Server

cd /u01/Oracle/Middleware/wlserver_10.3/common/bin
./commEnv.sh
cd /u01/Oracle/Middleware/user_projects/domains/bifoundation_domain/bin
./setDomainEnv.sh
nohup ./startManagedWebLogic.sh bi_server1 t3://servername:7001 > obis1_start.log &
tail -f obis1_start.log
nohup ./startManagedWebLogic.sh odi_server1 t3://servername:7001 > odis2_start.log &
tail -f odis2_start.log
start OPMN

cd /u01/Oracle/Middleware/instances/instance1/bin
./opmnctl startall
./opmnctl status

Stopping Oracle BI 11g Services

Stop OPMN
cd /u01/Oracle/Middleware/instances/instance1/bin
./opmnctl stopall
./opmnctl status
Stop Managed server
cd /u01/Oracle/Middleware/user_projects/domains/bifoundation_domain/bin
./stopManagedWebLogic.sh bi_server1 t3://servername:7001 weblogic welcome1
./stopManagedWebLogic.sh odi_server1 t3://servername:7001 weblogic welcome1
Stop Admin Server
cd /u01/Oracle/Middleware/user_projects/domains/bifoundation_domain/bin
sh stopWebLogic.sh
 Stop Node manger
kill the Node Manager process
ps -ef|grep node  –to find nodemanger pid
kill -9 <nodemanager_pid>

Redeploy the Java EE ODI Agent in WebLogic

Redeploy the Java EE ODI Agent in WebLogic:
    1. In WLS Console, navigate to Deployments and select oraclediagent from the list. Click on the Delete button at the top of the table to delete the deployment of the oraclediagent enterprise application. Click on Activate Changes.
    2. Still on the Summary of Deployments page, click on Lock and Edit and then click on the Install button.
    3. On the Application Install Assistant, provide the path to the oraclediagent.ear file. This path should be <ODI Home>/setup/manual/oracledi-agent. Select oraclediagent.ear using the radio button displayed:

Friday 6 November 2015

Refreshing Presentation Catalog GUIDs in OBIEE11g

Error: After migrating the rpd and catalog from dev to prod. unable to login rpd onlinemode.

Solution:
The process of synchronizing the GUIDs revolves completely around the fact that user identities are stored atomically within the Presentation Catalog, not by username but by a globally unique identifier (GUID). While moving between environments with different identity providers or changes to users within those providers are made, the GUIDs can get out of synchronization. Following this process of GUID synchronization allows the catalog to stay organized.

Two core configuration files NQSConfig.INI and instanceconfig.xml needs to modify to refresh the GUID.

1. Stop obiee services
2. Navigate to <ORACLE_INSTANCE>/config/OracleBIServerComponent/coreapplication_obis1/ and open the NQSConfig.INI file for editing.
3. Locate the text FMW_UPDATE_ROLE_AND_USER_REF_GUIDS parameter andchange its value to YES as follows:
FMW_UPDATE_ROLE_AND_USER_REF_GUIDS = YES;
4. Save and close the file.

5. Open the instanceconfig.xml file for editing. This file is located at, <ORACLE_INSTANCE>/config/OracleBIPresentationServicesComponent/coreapplication_obips1/.
6. Locate the Catalog XML element which should contain only theUpgradeAndExit subelement.
7. Add a new subelement to the Catalog element called UpdateAccountGUIDs with a value of UpdateAndExit.
<Catalog>
<UpgradeAndExit>false</UpgradeAndExit>
<UpdateAccountGUIDs>UpdateAndExit</UpdateAccountGUIDs>
</Catalog>
8. Save and close the file.

9. Start all Oracle BI system components.

10. Presentation Services should fail to come up but should not throw any errors. If an error is presented to you in the resulting start-up prompt, you most likely have a syntax error resulting from editing of the configuration files.

11. While the other services are started and the Presentation Services system component is down, open the NQSConfig.INI file again for editing.
12. In the NQSConfig.INI file change the value of FMW_UPDATE_ROLE_AND_USER_REF_GUIDS = YES;to FMW_UPDATE_ROLE_AND_USER_REF_GUIDS = NO.
13. Save and close the NQSConfig.INI file.
14. Open the instanceconfig.xml file again for editing.
<Catalog>
<UpgradeAndExit>false</UpgradeAndExit>
<UpdateAccountGUIDs>none</UpdateAccountGUIDs>
</Catalog>
15. Save and close the file.
16. Restart all system components u
17. Once the system components have been started, open the analytics portal using the default URL, http://server_name:9704/analytics/.
18. Login with the WebLogic administrator’s credentials.

BI Apps ODI Load Plan Execution Error due to CREATE UNIQUE INDEX; duplicate keys found

Sometimes there are duplicate data rows in the source tables, due to this while running a ODI Load Plan (LP) in BI Applications 11.1.1.7.1 the ODI sessions may error out while creating the unique indexes.

Error:
ODI-1228: Task TABLE_MAINT_PROC (Procedure) fails on the target ORACLE connection BIAPPS_DW.
Caused By: java.sql.SQLException: ORA-20000: Error creating Index/Constraint : W_FLEX_SQL_G_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

Solution:
1. Finding the duplicate rows:
select domain_code, domain_member_code, column_expression, datasource_num_id, count(*)
from w_flex_sql_g
group by  domain_code, domain_member_code, column_expression, datasource_num_id
having count(*)>1;

2. Execute the delete command on the duplicate rows
ex: DELETE FROM table_name A
    WHERE a.rowid >
    ANY (SELECT B.rowid FROM table_name B WHERE
A.col1 = B.col1
      AND
        A.col2 = B.col2);

Wednesday 4 November 2015

obiee12c client tool installation error (INST-07545)

While Installing obiee12c client tool got below error

Error: INST-07545: Unexpected Error. The distribution setup_bi_client 12.2.1.0.0 contains incompatible features with the following: 
bi_platform 12.2.1.0.0 [bi_client 12.2.1.0.0->BI Enterprise Edition 12.2.1.0.0 (oracle.bi.commandline.tools 12.2.2.0.0->[oracle.bi.commandline.tools 12.2.1.0.0], oracle.bi.nls.data 12.1.2.0.0->[oracle.bi.nls.data 12.2.1.0.0])]

Cause: This error occurs if the obiee 12c client is installed into an existing oracle home directory.


Solution: Choose a unique directory location such as c:\obiee12cclient for install and this error should go away.

Start, Stop and Status of obiee12c services

Stopping Oracle Business Intelligence Component Processes in a Domain
  1. Enter an appropriate command to run the stop script located in:
DOMAIN_HOME/bitools/bin
On UNIX | Windows:
./stop.sh | stop.cmd {-i <list of instances>} {-r}
-r (optional) Starts the remote Node Managers
Starting Oracle Business Intelligence Component Processes in a Domain
  1. Enter an appropriate command to run the start script located in:
DOMAIN_HOME/bitools/bin
On UNIX | Windows:
./start.sh | start.cmd {-noprompt} {-i <list of instances>} {-r}
For example, ./start.sh -i obis1,obips1
If no instances are specified as arguments in the command, the administration server, managed server, all system components, and local node manager are started by default.
  1. A list of the inactive components to be started is displayed.
Viewing the Status of Oracle Business Intelligence Components in a Domain
  1. Enter an appropriate command to run the status script located in:
DOMAIN_HOME/bitools/bin
On UNIX | Windows:
status.sh | status.cmd {-v}
where {-v} is verbose

./ The command displays component name, type, status, and machine name.

Migrating from Oracle Business Intelligence 11g to 12c

1. Analyzing and Optimizing the Existing 11g System
2. Generating the BI Migration Tool jar File
a. Creating the Export Bundle
b. Importing the Export Bundle Using the BI 12c Configuration Assistant
c. Performing an Import Using the BI Migration Script
d. Next Step After Migration
e. Validating the Oracle BI Deployments
3. Post Migration Steps for OBIEE
a. Migrating Catalog Groups
b. Migrating Configuration of OBIEE 
c. Adding Roles and Permissions

Tuesday 3 November 2015

Oracle Business Intelligence Enterprise Edition(OBIEE) 12c Tutorial

Oracle Business Intelligence Enterprise Edition 12c Tutorial Available. Download Here

Modeling Bridge Tables in obiee 11g

A bridge table enables you to resolve many-to-many relationships between tables. For example, you might hold information about employees in an Employees table, and information about the jobs they do in a Jobs table. However, an organization's employees can have multiple jobs, and the same job can be performed by multiple employees. This situation would result in a many-to-many relationship between the Employees table and the Jobs table.
To resolve the many-to-many relationship, you can create a bridge table (or intermediate table) called Assignments. Each row in the Assignments table is unique, representing one employee doing one job. If an employee has several jobs, there are several rows in the Assignments table for that employee. If a job is done by several employees, there are several rows in the Assignments table for that job. The primary key of the Assignments table is a composite key, made up of a column containing the employee ID and a column containing the job ID.
By acting as a bridge table between the Job and Employee tables, the Assignments table enables you to resolve the many-to-many relationship between Employees and Jobs into:
  • A one-to-many relationship between Employees and Assignments
  • A one-to-many relationship between Assignments and Jobs
Example Bridge and Associated Tables in the Physical Layer
Description of Figure 8-4 follows

Note that "Weight Factor" should be included as an additional column in the bridge table and calculated during ETL for efficient query processing.

Monday 2 November 2015

OBIEE 12c new features

OBIEE 12c new features:
  1. Easy to upgrade:  BI 12c offers a radically simple and robust upgrade from 11g, saving customers time and effort in moving to the new version.  BI 12c includes a free utility to automate regression testing, the Baseline Validation Tool, which verifies data, visuals, catalog object metadata, and system-generated SQL across 11g and 12c releases.
  2. Faster:  Sophisticated in-memory processing includes BI Server optimizations and support for multiple in-memory data stores, while in-memory Essbase on Exalytics offers enhanced concurrency and scalability, as well as significant performance gains.
  3. Friendlier:  Usability updates throughout BI 12c demonstrate Oracle’s continued commitment to making analytics as fast, flexible, and friendly as they are powerful and robust.  A new user interface simplifies the layout for the homepage, Answers, and Dashboards, making it easier for users to quickly see what’s important; HTML-5 graphics improve view rendering; and it’s easier for users to create new groups, calculations, and measures, for simpler, more direct interaction with results.
  4. More Visual:  A consistent set of Data Visualization capabilities are now available across Oracle BI Cloud Service and Oracle BI 12c, as well as the upcoming Oracle Data Visualization Cloud Service, offering customers a continuity of visual experience unmatched by our competitors.  Business users can point and click to upload personal data and blend it with IT-managed data in BI 12c, which automatically infers connections between data sets.  Visualizing data is as easy as dragging attributes onto the screen, with optimal visualizations automatically displayed – no modeling or upfront configuration required.  Related data is automatically connected, so highlighting data in one visual highlights correlated data in every other visual, immediately showing patterns and revealing new insights.  These insights, along with narrative comments, can be shared as interactive visual stories, enabling seamless collaboration that drives fact-based decisions.
  5. More Advanced:  Predictive analysis is more tightly integrated, enabling customers to more easily forecast future conditions based on existing data points, group elements that are statistically similar, and expose outliers.  BI 12c includes the ability to run the free Oracle R distribution on BI Server, and extend existing analytics with custom R scripts, which can point to any engine (R, Oracle Database, Spark, etc.) without needing to change the BI RPD to deliver results.
  6. More Mobile:  Keyword search (“BI Ask”) empowers users to literally talk to their data, asking questions and having visualizations automatically created as responses, opening up an easy entry point for authoring.  Additionally, the interface for iOS has been completely redesigned; and Mobile BI for Android offers sharing and following for nearby devices, as well as the ability to project any dashboard or story to GoogleCast-enabled devices.
  7. Bigger Data:  BI 12c enables customers to use new data, from local, Oracle, and Big Data sources, including personal files uploaded by users; direct access to data in Hyperion Financial Management and Hyperion Planning applications; and ODBC access to Cloudera Impala.  Apache Spark will be accessible via native Spark SQL in an upcoming update.
  8. Higher ROI, Lower TCO:  Streamlined administration and life cycle management reduce the time and resources required to manage BI 12c, decreasing costs and increasing value for this and future releases.  Enhancements include separating metadata from configuration; simpler, more robust security; easier backup, restore, and disaster recovery; hot patching of metadata; and many more.
Source: Oracle Doc Id 2070474.1


Error while starting OBIEE servers- [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied

Error: While starting obiee servers i got below error

Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied

<Nov 2, 2011 3:22:38 AM CDT> <Critical> <Security> <BEA-090403> <Authentication for user  denied>
<Nov 2, 2011 3:22:38 AM CDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user  denied
weblogic.security.SecurityInitializationException: Authentication for user  denied
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:965)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        Truncated. see log file for complete stacktrace
 
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User  javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
        at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:250)
        at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
        at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        Truncated. see log file for complete stacktrace

Cause: This error is because of the corrupt or missing boot.properties. 

Solution:
a. Open boot.properties file (location would be <bea_home>/user_projects/domains/<domain>/servers/<admin server name>/security)
b. Add the following in the boot.properties
username=<weblogic admin user name>
password=<weblogic admin password>
c. Restart the server.

Unable to access Oracle Data Integrator repository. You will not be able generate or execute load plans

Cause: "This OPSS user BIAppsSystemUser has different GUID than the one found in Oracle Data Integrator repository"

Solution:
1. First Unlock the user in the external LDAP server if it is still locked.
2. Update the password of that BIAppsSystemUser in WebLogic credential store.
Steps:
a. Sign in to the Enterprise Manager (http://hostname:7001/em) with the Weblogic account
b. Navigate to Weblogic Domain > bifoundation_domain > Security > Credentials
c. Expand oracle.odi.credmap
d. Select and edit the SUPERVISOR account.
e. Update this account with the same password that is specified in OID for the BIAppsSystemUser account