Wednesday, July 29, 2015

[ODI 11g] Create XML Dataserver in ODI 11g

  •  Connect to Master data repository from ODI Studio.

  • Go to Topology > Physical Architecture, Right click on navigator icon for XML and create new data source.




 

  • Go to JDBC and Select driver as below,


Where the parameter f=FILE_LOCATION with forward slash and parameter s=SCHEMA_NAME

Go back to definition and Test Connection now. You will be able to successfully connect.

Sunday, June 28, 2015

[BIP 11g] BI Publisher asking for bind variables on changing Dataset SQL

Issue description/Scenario: You are editing a working BIP 11g report dataset to change/add a new column and BIP is prompting you to enter values for the existing parameter and returns error when you give default values. 

For example imagine the following query in a dataset

SELECT CL.CLASS_ID
, STUD.STUDENT_ID, STUD.TOTAL_MARKS
FROM CLASS CL,
STUDENT STUD
WHERE STUD.CLASS_ID = .CLASS_ID
Now imagine you have a change to the TOTAL_MARKS column this has been moved to another column say for example TOT_MARK and you are making the change to the query as below,
SELECT CL.CLASS_ID
, STUD.STUDENT_ID, STUD.TOT_MARKS
FROM CLASS CL,
STUDENT STUD
WHERE STUD.CLASS_ID = .CLASS_ID
You could notice that I have by mistake replaced the TOT_MARK column wrongly with TOT_MARKS. Now when this kind of a column is mapped which doesn't exist in the datasource, BIP will ask you to enter default value for all parameters already present in report.

Solution: Once you correctly change the column name from TOT_MARKS to TOT_MARK, then this issue would be resolved.

Friday, May 22, 2015

[Oracle11g] Materialized View Drop Statement Timeout Issue



Issue:  Unable to Drop Materialized View (Session Timeout).

Description:  DROP Statement not working and session getting timed out

Resolution:
1.       Check whether locks exist on Materialized Views in OLAP Database using the following query:
SELECT LCK.SID , LCK.TYPE,  GVSES.SERIAL#
FROM
V$LOCK LCK,
GV$SESSION GVSES
WHERE
LCK.SID =GVSES.SID(+)
AND LCK.TYPE='JI' 

Note:  V$LOCK – A view lists the locks currently held by the Oracle Database.
GV$SESSION – A view containing Session info.
               
 TYPE Column in V$LOCK implies Type of Object on which Lock exists ‘JI’ is for Materialized View Locks.

Other lock types are as follows: JI (Materialized view)
                                                   TM (DML or Table Lock)
                                                   TX (Transaction)

2.    Get SID and SERIAL# from the first query and run the following query on the database.

Syntax: ALTER SYSTEM KILL SESSION 'SID,SERVICE#' IMMEDIATE;

SID and SERVICE # will be replaced with values from first query.

 Example:  ALTER SYSTEM KILL SESSION '159,87' IMMEDIATE;
3.       After killing all locks on Materialized Views run the DROP Statement again. Worked for us.

[OBIEE11g] nQSError:13041 Not able to login to Analytics with weblogic credentials



Issue: Unable to login to analytics with weblogic user.



Cause: nQSError: 13041 User weblogic does not match user reference GUID at the repository. This is because GUID of user in console and RPD is not matching.



Resolution:  This can be done by deleting reference to weblogic user from RPD.  Steps followed are as below.


Since we were able to log in to console, We did the following,

  •  Created a new user ‘athul’ from the security realms in console and added the same privileges as weblogic user from console.

  • Logged into Repository from Administration tool in online mode using athul user credentials and repository password.

  • Go to Manage > Identity manager and delete reference to the weblogic user.





  •  Now save the repository in online mode and go to analytics and try logging again. You will be able to log in successfully.

Tuesday, April 7, 2015

[OBIEE11g] Find port numbers of EM, Console, Analytics and XMLPServer

 
Here is how to find port numbers of Enterprise Manager, Console and Analytics from an OBIEE installed server.

  1. Go to OBIEE Middleware Home folder (Say MW_HOME)
  2.  Go to MW_HOME/Oracle_BI1/Install
  3. Open ports.properties file -
BISCHEDULER_SCRIPT_RPC_PORT=9707
OPMN_LOCAL_PORT=9500
BISERVER_PORT=9703
WLS_BIFOUNDATION_SSL_PORT=9804
BISCHEDULER_PORT=9705
BICLUSTERCONTROLLER_MONITOR_PORT=9700
BIJAVAHOST_PORT=9810
WLS_BIFOUNDATION_PORT=9704
BISERVER_MONITOR_PORT=9701
OPMN_REMOTE_PORT=9501
OPMN_REQUEST_PORT=9502
DOMAIN_PORT=7001
BISCHEDULER_MONITOR_PORT=9708
NODE_MANAGER_PORT=9556
BIPRESENTATIONSERVICES_PORT=9710
BICLUSTERCONTROLLER_PORT=9706
WLS_BIFOUNDATION_PORT = 9704 is the port number for Analytics. DOMAIN_PORT=7001 is the port number for Enterprise Manager installation.

You can also open up setupinfo.txt file to get the installation details.

Configure Components
        WebLogic Console
            http://HOSTNAME:7001/console
        Oracle Enterprise Manager
            http://HOSTNAME:7001/em
        Business Intelligence Enterprise Edition
            http://HOSTNAME:9704/analytics
        Business Intelligence Publisher
            http://HOSTNAME:9704/xmlpserver

By default 9704, 7001 and 9804 are the port numbers for Analytics, EM and SSL.