Oracle 9i 9.2.0.5 olap api

HI guys
i patched my oracle9i 9.2.0.1 to 9.2.0.5
and run catpatch.sql to upgrade olap
but when i try to use olap api
MdmMetadataProvider mp = null;
mp = (MdmMetadataProvider) dp.getDefaultMetadataProvider();
it always throws that its mp is null
althougth i validate all cubes and dimensions
(note : i try my code from oracle olap api book
and on sales history schema )
so what is wrong.
note: when i try to use jdev 9.0.3.3 and BI
to build olap connection it do it and it sees all
DIMS and CUBES...., so the problem in olap pi
and u said that this patch will solve all my problems
thanks.

Oracle Multimedia is now image, DICOM image, audio and video. You want the Oracle Text Forum
Text

Similar Messages

  • Oracle BI Spreadsheet Add-in 10g 's API has forgotten what OLAP is !

    Hello,
    Did you know that since the 10g, the news API to reach AW is in SQL language?
    Never mind, after all, since one obtains what one wishes!
    The problem is that this interface generates an SQL request BY Excels cell!!
    100 cells = 100 sql requests!!!
    Forgotten the OLAP operations where one LIMITS the axes according to what one wishes to post! :o((
    Did you note the same thing as me? For example, during all the Excel session, the STATUS of dimensions remains with ALL STATUT…
    The old ones which know the multidimensional will wonder what you can make in a multidimensional system which cannot manage the STATUT of dimensions any more, and well, not large thing….
    Oracle noted that an OLAP server could not summarized with SQL and has to preserve Oracle OLAP. It is the same thing for an OLAP API, we hope that Oracle awakes and corrects quickly this error!

    Yes, BUT :
    In SQL would you send an SQL statement for each cell? No, you would have WHERE clauses like this: (for 2 columns and 3 lines)
    WHERE -
    DIMENSION_IN_PAGE = "CODE1" and -
    DIMENSION_IN_COLUMN in ("CODE2", "CODE3")
    DIMENSION_IN_LINE in ("CODE4", "CODE5", "CODE6")
    This WHERE clause would be translated in OLAP like this:
    LIMIT DIMENSION_IN_PAGE to 'CODE1'
    LIMIT DIMENSION_IN_COLUMN to 'CODE2' 'CODE3'
    LIMIT DIMENSION_IN_LINE to ‘CODE4’ 'CODE5' 'CODE6'
    What API does is 5 sql statements for all the combinations of column and line, it's crazy don't you think? (Clause where with only one code for each dimension...)
    An SQL API does not excuse this. I really think there's a "bug" in this API
    Don't you think?
    If you use a "heavy" cube with "on the fly calculations" and "HOLAP architecture" this API is a catastrophe (90% of elapse to loop over cells and 10% of elapse for fly calculations and HOLAP...).
    Hope I'll be understand.

  • An error occurred during olap API metadata retrieval. This is probably caus

    this is what i have done so far. i really nead some help asap!!!
    1. Install Oracle 9i Release 2 (9.2.0.1) Enterprise Edition with the General purpose database configuration (Data warehouse works as well). At the end of the installation I chose the password management button to change passwords for the few necessary accounts: SYS, SYSTEM, OLAPSYS, SH.
    2. Download the p3948480_9206_WINNT.zip from metalink, the 9.2.0.6 patchset
    3. Shut down any existing Oracle9i database instances with normal or immediate priority. Stop all listener and other services running in the Oracle home directory where you want to install the patch set.
    4. unzip the content of thepatch to a temp directory
    5. start setup.exe under the temp directory (it will start the Oracle Universal installer 10.1.0.3)
    6. install the patchset to your Oracle home, selecting the source in the temp_dir\stage\products.jar file
    7. review carefully the post-installation tasks for the patchset:
    Review the following sections before upgrading a database (quote from the patchset html readme):
    8.2.1.1If JServer is part of the installation ensure that there is at least 10 MB of free space allocated to the SYSTEM tablespace.
    8.2.1.2 Check XDB Tablespace Size
    For RAC installations, ensure that there is at least 50 MB of free space allocated to the XDB tablespace.
    8.2.1.3 Set the SHARED_POOL_SIZE and JAVA_POOL_SIZE Initialization Parameters
    Set the value of the SHARED_POOL_SIZE and the JAVA_POOL_SIZE initialization parameters as follows:
    Start the database:
    SQL> STARTUP
    If necessary, enter the following command to determine whether the system uses an initialization parameter file (initsid.ora) or a server parameter file (spfiledbname.ora):
    SQL> SHOW PARAMETER PFILE;
    This command displays the name and location of the server parameter file or the initialization parameter file.
    Determine the current values of these parameters:
    SQL> SHOW PARAMETER SHARED_POOL_SIZE
    SQL> SHOW PARAMETER JAVA_POOL_SIZE
    If the system is using a server parameter file:
    If necessary, set the value of the SHARED_POOL_SIZE initialization parameter to at least 150 MB:
    SQL> ALTER SYSTEM SET SHARED_POOL_SIZE='150M' SCOPE=spfile;
    If necessary, set the value of the JAVA_POOL_SIZE initialization parameter to at least 150 MB:
    SQL> ALTER SYSTEM SET JAVA_POOL_SIZE='150M' SCOPE=spfile;
    If the system uses an initialization parameter file, if necessary, change the values of the SHARED_POOL_SIZE and the JAVA_POOL_SIZE initialization parameters to at least 150 MB in the initialization parameter file (initsid.ora).
    Shut down the database:
    SQL> SHUTDOWN
    8.2.2 Upgrade the Database
    After you install the patch set, you must complete the following steps on every database associated with the upgraded Oracle home:
    Log on as a member of the Administrators group to the computer where the Oracle components are installed.
    Use SQL*Plus to login to the database as the SYS user with SYSDBA privileges:
    sqlplus /NOLOG
    CONNECT SYS/password AS SYSDBA
    Enter the following SQL*Plus commands:
    SQL> STARTUP MIGRATE
    SQL> SPOOL patch.log
    SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catpatch.sql
    SQL> SPOOL OFF
    Restart the database:
    SQL> SHUTDOWN
    SQL> STARTUP
    Run the utlrp.sql script to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.
    SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\utlrp.sql
    12. Install JDeveloper 9.0.4 (download it from OTN and just unzip it in a directory ... it doesn't require an oracle home)
    13. Install BI Beans 9.0.4 (download it from OTN as well), run the setup.exe that comes with it and in the destination oracle home select the directory where you installed JDeveloper and give an oracle home name to it)
    14. Install the BIBDEMO schema:
    Create a directory on the computer that is running the Oracle9i database. This install_home directory is the location to which you will upload the data files that are required to build the BIBDEMO schema.
    On the computer where BI Beans is installed, locate the bibeans_home\bibdemo_schema folder (where bibeans_home is the root folder of your BI Beans installation). Copy all of the files found in this folder to the install_home folder on your server machine.
    Open a DOS prompt and navigate to the install_home folder.
    Run bibdemo.bat to install the schema, using the following syntax:
    bibdemo.bat <path to Oracle database files >
    For example, for an instance named my9iService, enter the following:
    bibdemo.bat D:\OraHome1\oradata\my9iService
    You are prompted for the password for the sys as sysdba user.
    The script takes approximately 15 minutes to run, depending on the machine specifications. It is normal to see some error messages while the script is running. In addition, when materialized views are being created in the database, the script will appear to stop; this is also normal. A clear message will tell you when the script has completed.
    The log files (*.log) that are generated by the installation script are stored in the folder from which you ran the script.
    Here's what
    bi_checkconfig.bat -h ana -po 1521 -sid proiect -u bibdemo -p bibdemo -q
    returned:
    BI Beans Diagnostics(v1.0.2.0) 2/28/05
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = E:\OraDS
    JAVA_HOME ................................. = E:\OraDS\jdk
    JDeveloper version ........................ = 9.0.4.1.1.1436
    BI Beans release description .............. = BI Beans 9.0.4 Production Release
    BI Beans component number ................. = 9.0.4.23.0
    BI Beans internal version ................. = 2.7.5.32
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 9.2.0.4.0
    JDBC JAR file location .................... = E:\OraDS\jdev\lib\patches
    Database version .......................... = 9.2.0.6.0
    OLAP Catalog version ...................... = 9.2.0.1.0
    OLAP AW Engine version .................... = 9.2.0.1.0
    OLAP API Server version ................... = 9.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in bibdemo
    OLAP API JAR file version ................. = 9.2
    OLAP API JAR file location ................ = E:\OraDS\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    Number of metadata folders ................ = 2
    Number of metadata measures ............... = 12
    Number of metadata dimensions ............. = 8
    Testing sample query for measures and dimensions
    (S=Schema, C=Cube, M=Measure, D=Dimension)
    1/21) Measure Budget ................... = Successful
    S=BIBDEMO, C=BIBDEMO_BUDGET_CUBE, M=BUDGET
    2/21) Measure Actual ................... = Successful
    S=BIBDEMO, C=BIBDEMO_ACTUAL_CUBE, M=ACTUAL
    3/21) Measure Close Price .............. = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_CLOSE
    4/21) Measure Open Price ............... = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_OPEN
    5/21) Measure Low Price ................ = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_LOW
    6/21) Measure High Price ............... = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_HIGH
    7/21) Measure Stock Volume ............. = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_VOLUME
    8/21) Dimension Division ............... = Successful
    S=BIBDEMO, D=DIVISION
    9/21) Dimension Line Items ............. = Successful
    S=BIBDEMO, D=LINE
    10/21) Dimension Time ................... = Successful
    S=BIBDEMO, D=TIME
    11/21) Dimension Day .................... = Successful
    S=BIBDEMO, D=DAY
    12/21) Dimension Stock .................. = Successful
    S=BIBDEMO, D=STOCK
    13/21) Measure Costs .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.COSTS
    14/21) Measure Promotion ................ = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.PROMO
    15/21) Measure Quota .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.QUOTA
    16/21) Measure Units .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.UNITS
    17/21) Measure Sales .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.SALES
    18/21) Dimension Channel ................ = Successful
    S=BIBDEMO, D=CHANNEL
    19/21) Dimension Geography .............. = Successful
    S=BIBDEMO, D=GEOGRAPHY
    20/21) Dimension Product ................ = Successful
    S=BIBDEMO, D=PRODUCT
    21/21) Dimension Time ................... = Successful
    S=BIBDEMO, D=TIME
    Metadata output location .................. = E:\OraDS\bibeans\bi_checkconfig\bi
    _metadata.txt
    To interpret this output, see the "Displaying Information about your Oracle9i Bu
    siness Intelligence Beans Client Configuration" technical note, whose file name
    is bi_checkconfig_tn.html
    These diagnostics are captured in: E:\OraDS\bibeans\bi_checkconfig\bi_checkconfi
    g.xml
    now: i have created some new stuff:
    1). user ana with roles:
    -dba
    -olap_dba
    -connect
    -resource
    (same roles as bibdemo)
    2).schema ana; tablespace ana (permanent), tablespace anatemp (temporary)
    3).i have created some relational tables and i have inserted some data in them:
    agent, aparat (cofee machines), beneficiar (clients), locatii (city), raport (REPORT), timp (time), tipaparat (types of cofee machines), tipbautura (products : types of cofee made by all the cofee machines), zone (state)
    4). one fact table with:
    - sold cantity (measure)
    - id_bautura (id_product) primary key
    - id_timp(id_time) primary key
    - id_beneficiar (id_client) primary key
    - id_agent primary key
    - id_locatie (id_city) primary key
    - id_aparat (id_cofee_machine)primary key
    i have inserted some data also
    5).dimensions:
    AGENT_DIM :levels: codag(id_agent), numeag (agent name), telefag (agent phone number)from relational table agent
    BENEFICIAR_DIM :levels: codben (id_client), denumire (client name), adresa (adress) ,codl (id_city) etc from relatinal table beneficiar (clients)
    TIMP_DIM :levels: id, year, month from relational table timp (time)
    TIPBAUTURA_DIM :levels: codbautura (id_product), numebautura (product name)from relational table tipbautura (products)
    ZONA_DIM :levels: codzona (id state), numezona (state name), codoras (id city), numeoras (city name) with ierarhy id_state---id_city FROM 2 RELATINAL TABLES CITY AND STATE!!!!!!!! AM I ALOUD TO DO THAT?????
    DO I NEED TO CREATE A DIMENSION FROM ONLY ONE TABLE???????
    APARAT_DIM :LEVELS: codben (id client), codtip (id machine type), denumireap (machine type name), matricolap ((machine id) (FROM 2 RELATIONAL TABLES ALSO!!!!!!! FROM TYPES OF COFEE MACHINES AND COFEE MACHINES!!!!!
    6). I HAVE NOW CREATED THE CUBE FROM THE FACT TABLE AND WITH ALL THE DIMENSIONS
    7). summary advisor wizard NOT WORKING! IT NEVER STOPS!
    8). I HAVE CREATED ALSO ONE materialized view FOR THE CUBE
    IF I COMPILE IT... NO ERRORS
    9). CUBE VIEWER NOT WORKING!!!!!!! IT ONLY APEARS A BELL!!!
    NOW IF I RUN BI_CHECK CONFIG ON ANA AND ALSO ON BIBDEMO!!!!!!!!!!!!
    IT SAYS:
    1) An error occurred during olap API metadata retrieval. This is probably caused by inconsistent metadata.
    ============================================================================
    oracle.express.ExpressServerExceptionError class: Unknown Error
    Server error descriptions:
    INI: System failure, Generic at TxsOqConnection::getDefaultDatabase
    at oracle.express.olapi.data.full.ExpressDataProvider.getMetadataProviderInterface(ExpressDataProvider.java:1003)
    at oracle.olapi.metadata.MetadataFetcher.initialize(MetadataFetcher.java:73)
    at oracle.olapi.metadata.MetadataFetcher.<init>(MetadataFetcher.java:45)
    at oracle.olapi.metadata.BaseMetadataProvider.<init>(BaseMetadataProvider.java:47)
    at oracle.olapi.metadata.mdm.MdmMetadataProvider.<init>(MdmMetadataProvider.java:130)
    at oracle.express.olapi.data.full.ExpressDataProvider.getDefaultMetadataProvider(ExpressDataProvider.java:964)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.getMdmMetadataProvider(MDMMetadataDriverImpl_92.java:1133)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.attach(MDMMetadataDriverImpl_92.java:810)
    at oracle.dss.metadataManager.server.drivers.mdm.MDMMetadataDriverImpl.attach(MDMMetadataDriverImpl.java:125)
    at oracle.dss.metadataManager.server.MetadataManagerImpl.buildObjectModel(MetadataManagerImpl.java:1092)
    at oracle.dss.metadataManager.server.MetadataManagerImpl.attach(MetadataManagerImpl.java:969)
    at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:876)
    at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:799)
    at BICheckConfig.checkConnection(BICheckConfig.java:277)
    at BICheckConfig.main(BICheckConfig.java:1348)
    I TRYED ALSO WITH USER ANA WITH ROLES:
    - DBA
    - CONNECT
    -RESOURCE
    - OLAP_USER
    NOT WORKING! AND ALSO BIBDEMO NOT WORKING!
    WHAT AM I MISSING? SHOULD I USE AW MANAGER? OR DO I NEED TO CREATE AN AMNALITIC WORKSPACE???
    WHAT ARE THE STEPS TO CREATE A GOOD METADATA????

    Hi,
    The issue here is if the whole catalog is corrupt or just one schema. So to try and determine the status of the catalog I would try:
    1) Using OEM remove all the objects you created
    2) I presume you created your database using the Database Configuration Assistant? You should have used the warehouse template
    3) Make sure the following accounts are unlocked and also not expired : SH, OLAPSYS
    4) Make sure the password for the SH schema is SH
    5) Make sure the password for the OLAPSYS account is manager
    6) Install the BIBDEMO schema that is shipped with BI Beans. This in the jdev_home/bibeans/bibdemo_schema
    The installation process will remove SH schema from the OLAP catalog.
    7)Once this is installed use JDeveloper to see if you can create a crosstab or graph.
    8) If the BIBDEMO schema works try creating your new schemas one at a time.
    9) Make sure the if you define the a dimension as type time it has END_DATE (column type DATE) and TIME_SPAN (column type number) defined. Otherwise don't define the dimension as type time.
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • XML Sax Exception with 9.2.0.5 express*.jar files for Olap API

    I was using the olap_api_92.jar that
    came with jdeveloper for the olap api and having a coding problem.. In trying to see
    if I could resolve the previous problem, I set my classpath to use the jar files provided with the 9.2.0.5
    install for AiX.. all beginning with express*.jar
    I now get an XML parsing error that I can't fix..
    which jar is good, the olap_api_92.jar seems to work..
    Help!
    thanks,
    Lisa Cox
    OCLC Inc.
    java.lang.RuntimeException: org.xml.sax.SAXParseException: <Line 179, Column 18>: XML-0124: (Fatal Error) An attribute cannot appear more than once in the same start tag.
    at oracle.olapi.metadata.MetadataFetcher.processXML(MetadataFetcher.java:237)
    at oracle.olapi.metadata.MetadataFetcher.fetchBaseMetadataObjects(MetadataFetcher.java:180)
    at oracle.olapi.metadata.BaseMetadataProvider.fetchMetadataObject(BaseMetadataProvider.java:150)
    at oracle.olapi.metadata.BaseMetadataProvider.fetchMetadataObject(BaseMetadataProvider.java:107)
    at oracle.olapi.metadata.mdm.MdmMetadataProvider.getMetadataObject(MdmMetadataProvider.java:147)
    at oracle.olapi.metadata.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvider.java:174)
    at oracle.express.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvider.java:144)
    at org.oclc.xwc.olap.OlapClient.main(OlapClient.java:494)

    The OLAP component versions are empty.
    <Check key="OLAP Catalog version" value=""/>
    <Check key="OLAP AW Engine version" value=""/>
    <Check key="OLAP API Server version" value=""/>
    Please doublecheck that the catpatch.sql script ran without any errors.
    Aneel Shenker
    Senior Product Manager
    Oracle Corp.

  • Does the user have to be the owner of CWM2 objects to access them via OLAP API?

    Hi,
    What are required for RDBMS users to use OLAP API? Regarding page 6-9 of Oracle9i OLAP User's Guide 9.2.0.1, following access rights are required.
    CONNECT role
    QUERY REWRITE system privilege
    SELECT privilegs on the database objects containing the data to be analyzed
    So, I created a new user TEST1 and granted all the priviges above. Then I tried to create a new crosstab using New Crosstab Wizard in JDev903_pre(OLAPConnecton is using TEST1). When I choose a measure that is created in CWM1, I could create a crosstab without problem. But when I tried to create a crosstab from a measure that is created in CWM2 by OLAPSYS user, I recieved the following error.
    BIB-9509 Oracle OLAP did not create cusor.
    oracle.express.ExpressServerExceptionError class:OLAPI
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::createCursorManager
    OES: ORA, Generic at TxsRdbSelectStatement:execute()
    The curious thing is that I can create a crosstab from the same measure if I use another connection that uses OLAPSYS. Does the user that connects to CWM2 using OLAP API have to be the owner of those CWM2 objects?
    Thank you.
    Best Regards,
    Seiji

    The user does not have to be the owner of the cwm2 objects to access them. Access to cwm2 objects is based on database security. Therefore, if the user is not the owner of the object (if user is the owner, they obviously have access to the object), then as long as the user has been granted access to the underlying physical object (i.e., the table the dimension or cube has been mapped to), the user will be able to access the object.

  • Unable to select OLAP API metadata

    I am using oracle rdbms 9.2.0.5
    Initially I was able to view BIBDEMO schema cubes using cubeviewer. I also created my own cubes using CWM2 API and was able to view through the bibeans. All of sudden it stopped working and I am currently unable to even view the demo cubes in BIBDEMO schema using cube viewer, it throws a "red bell with no error message" dialog.
    I validated the entire OLAP catalog using the CWM2 API, all the objects are valid.
    I do not have a time dimension and any AW cubes.
    The bi_checkconfig utility returned the following results.
    <?xml version="1.0" encoding="UTF-8" ?>
    <BICheckConfig version="1.0.0.0">
    <Check key="JDEV_ORACLE_HOME" value="d:\Program Files\JDev_903"/>
    <Check key="JAVA_HOME" value="D:\JDK\1.3.1_11"/>
    <Check key="JDeveloper version" value="9.0.3.4.1247"/>
    <Check key="BI Beans version" value="9.0.3.6.0A"/>
    <Check key="BI Beans internal version" value="2.7.0.14"/>
    <Check key="host" value="199.254.233.44"/>
    <Check key="port" value="1521"/>
    <Check key="sid" value="config3"/>
    <Check key="user" value="kaisernw"/>
    <Check key="Connecting to the database" value="Successful"/>
    <Check key="JDBC driver version" value="9.2.0.3.0"/>
    <Check key="JDBC JAR file location" value="d:\Program Files\JDev_903\jdbc\lib"/>
    <Check key="Database version" value="9.2.0.5.0"/>
    <Check key="OLAP Catalog version" value="9.2.0.5.0"/>
    <Check key="OLAP AW Engine version" value="9.2.0.5.0"/>
    <Check key="OLAP API Server version" value="9.2.0.5.0"/>
    <Check key="BI Beans Catalog version" value="N/A; not installed in kaisernw"/>
    <Check key="OLAP API JAR file version" value="9.2"/>
    <Check key="OLAP API JAR file location" value="d:\Program Files\JDev_903\jdev\lib\ext"/>
    <Check key="OLAP API Metadata Load" value="Unsuccessful"/>
    <Check key="Failure Point" value="MDMLoadFailed"/>
    <Check key="StackTrace">
    <![CDATA[
    ============================================================================
    1) An error occurred during olap API metadata retrieval. This is probably caused by inconsistent metadata.
    1) An error occurred during olap API metadata retrieval. This is probably caused by inconsistent metadata.
    ============================================================================
    oracle.express.ExpressServerExceptionError class: Unknown Error
    Server error descriptions:
    INI: System failure, Generic at TxsOqConnection::getDefaultDatabase
         void oracle.olapi.metadata.BaseMetadataProvider.<init>(oracle.olapi.data.source.DataProvider)
              BaseMetadataProvider.java:68
         void oracle.olapi.metadata.mdm.MdmMetadataProvider.<init>(oracle.olapi.data.source.DataProvider)
              MdmMetadataProvider.java:127
         oracle.olapi.metadata.MetadataProvider oracle.express.olapi.data.full.ExpressDataProvider.getDefaultMetadataProvider()
              ExpressDataProvider.java:912
         oracle.express.mdm.MdmMetadataProvider oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.getMdmMetadataProvider()
              MDMMetadataDriverImpl_92.java:1134
         oracle.dss.metadataUtil.PropertyBag oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.attach(oracle.dss.metadataUtil.PropertyBag)
              MDMMetadataDriverImpl_92.java:811
         oracle.dss.metadataUtil.PropertyBag oracle.dss.metadataManager.server.drivers.mdm.MDMMetadataDriverImpl.attach(oracle.dss.metadataUtil.PropertyBag)
              MDMMetadataDriverImpl.java:133
         void oracle.dss.metadataManager.server.MetadataManagerImpl.buildObjectModel()
              MetadataManagerImpl.java:1085
         oracle.dss.metadataManager.common.MDRoot oracle.dss.metadataManager.server.MetadataManagerImpl.attach(oracle.dss.metadataManager.common.MDRoot, oracle.dss.metadataUtil.PropertyBag)
              MetadataManagerImpl.java:962
         int oracle.dss.metadataManager.client.MetadataManager.attach(oracle.dss.metadataUtil.PropertyBag)
              MetadataManager.java:866
         int oracle.dss.metadataManager.client.MetadataManager.attach()
              MetadataManager.java:792
         oracle.dss.metadataUtil.OrderedHashtable BICheckConfig.checkConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.io.OutputStream, boolean)
              BICheckConfig.java:250
         void BICheckConfig.main(java.lang.String[])
              BICheckConfig.java:1172
    ]]>
    </Check>
    </BICheckConfig>
    How can I debug this issue.
    Thank you,
    Senthil

    I figured what the problem is, I missed one of the invalid objects in my OLAP validation log file when I scanned before.
    As part of another issue (Issue #1), I dropped and recreated some dimensions. But did not reattach those dimensions to the cube. So in the log, that particular cube was marked as invalid with the error "no dimensions".
    FYI - (Issue #1)
    When creating dimensions, by mistake I mapped some of the fields using CWM2 map table API to a VIEW. The CWM2 validation API, validated these dimensions and marked them as valid.
    But from the query builder I was not able to progress forward from the layout panel to the dimension panel, it will just sit there without throwing any errors. Once I changed the view to the base table in the dimension definition, the querybuilder started working.
    Thank you,
    Senthil

  • Data access through the OLAP API

    We have created a number of Cubes from the AWM, and access the cubes from a web based application through the OLAP API. The cubes have both base measures and custom measures. Custom Measures are computed by creating the source object for given Formula Expression. The application works fine for a single user, but when a same cube is accessed concurrently by multiple users, we get the TransactionalObjectInvalidException when we call the MdmMeasure.getSource() function for the custom measures.
    Since each individual users have individual contexts and the static methods are properly sunchronized, we havent not been able to trace this error so far. The exception is thrown by oracle.olapi.data.source.ImmutableDefinition.checkValidity() API method. Error Trace is:
    oracle.olapi.transaction.TransactionalObjectInvalidException
    at oracle.olapi.data.source.ImmutableDefinition.checkValidity(Loracle.olapi.transaction.Transaction;)V(ImmutableDefinition.java:40)
    at oracle.olapi.data.source.SourceDefinition.getCurrentTransaction()Loracle.olapi.transaction.Transaction;(SourceDefinition.java:206)
    at oracle.olapi.data.source.SourceDefinition.getSource()Loracle.olapi.data.source.Source;(SourceDefinition.java:320)
    at oracle.olapi.metadata.mdm.MdmSource.getSource()Loracle.olapi.data.source.Source;(MdmSource.java:141)
    Any help will be highly appreciated.
    --Saajan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    We have created a number of Cubes from the AWM, and access the cubes from a web based application through the OLAP API. The cubes have both base measures and custom measures. Custom Measures are computed by creating the source object for given Formula Expression. The application works fine for a single user, but when a same cube is accessed concurrently by multiple users, we get the TransactionalObjectInvalidException when we call the MdmMeasure.getSource() function for the custom measures.
    Since each individual users have individual contexts and the static methods are properly sunchronized, we havent not been able to trace this error so far. The exception is thrown by oracle.olapi.data.source.ImmutableDefinition.checkValidity() API method. Error Trace is:
    oracle.olapi.transaction.TransactionalObjectInvalidException
    at oracle.olapi.data.source.ImmutableDefinition.checkValidity(Loracle.olapi.transaction.Transaction;)V(ImmutableDefinition.java:40)
    at oracle.olapi.data.source.SourceDefinition.getCurrentTransaction()Loracle.olapi.transaction.Transaction;(SourceDefinition.java:206)
    at oracle.olapi.data.source.SourceDefinition.getSource()Loracle.olapi.data.source.Source;(SourceDefinition.java:320)
    at oracle.olapi.metadata.mdm.MdmSource.getSource()Loracle.olapi.data.source.Source;(MdmSource.java:141)
    Any help will be highly appreciated.
    --Saajan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to i get the connect to database with OLAP API 9.2.0.0

    hi all,
    when i use the OLAP API (9.2.0..0) to connect the database,i gained the message of the following:
    java.lang.NoClassDefFoundError: com/sun/java/util/collections/HashMap
    void oracle.express.olapi.transaction.ExpressTransactionProvider.<init>()          ExpressTransactionProvider.java:40
         void mypackage3.APPEX.init()
              APPEX.java:51
         void sun.applet.AppletPanel.run()
              AppletPanel.java:344
         void java.lang.Thread.run()
              Thread.java:484
    JDev=9.0.3
    OLAP API=9.2.0.0
    Oracle 9i 9.2.0.1
    and how can i get the OLAP API 9.2.0.4.1?
    anyone can help me !
    thanks!!!

    Hi, yes, there are at least two known ways:
    1. if you happen to have a UCCX premium, you can create an HTTP application that serves up the prompt file,
    2. you can try to access the prompt file like this: http://<uccxip>:9080/prompts/dirname/promptfilename.wav
    G.

  • How to use olap api

    i have generated cube with oracle 9.2.0.1.0 with star schema and now i want use directly access olap api from java programs ,what is the steps pls suggest me?
    i am little bit confused about that
    is there any examples with java progarams

    Wrong forum, refer to the OLAP forum:
    OLAP

  • Error getting schema root with OLAP API

    I am getting the following error:
    java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
         void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
         void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
         void oracle.jdbc.dbaccess.DBError.throwSqlException(java.io.IOException)
         void oracle.jdbc.driver.OracleStatement.executeNonQuery(boolean)
         void oracle.jdbc.driver.OracleStatement.doExecuteOther(boolean)
         void oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()
         int oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()
         boolean oracle.jdbc.driver.OraclePreparedStatement.execute()
         oracle.express.idl.ExpressMdmModule.MetadataPropertyBagUnion[] oracle.express.idl.ExpressMdmModule.MetadataProviderInterfaceStub.getMetadataPropertyBags(java.lang.String[])
         oracle.express.mdm.MetadataPropertyBag[] oracle.express.mdm.MetadataPropertyBagFetcher.fetchMetadataPropertyBags(java.lang.String[])
         oracle.express.mdm.MdmObject oracle.express.mdm.MdmMetadataProvider.getMetadataObject(java.lang.String)
         oracle.express.mdm.MdmSchema oracle.express.mdm.MdmMetadataProvider.getRootSchema()
         void mypackage3.olaptest.<init>()
         void mypackage3.olaptest.main(java.lang.String[])
    java.lang.NullPointerException
         oracle.express.mdm.MetadataPropertyBag[] oracle.express.mdm.MetadataPropertyBagFetcher.fetchMetadataPropertyBags(java.lang.String[])
         oracle.express.mdm.MdmObject oracle.express.mdm.MdmMetadataProvider.getMetadataObject(java.lang.String)
         oracle.express.mdm.MdmSchema oracle.express.mdm.MdmMetadataProvider.getRootSchema()
         void mypackage3.olaptest.<init>()
         void mypackage3.olaptest.main(java.lang.String[])
    ***Exception encountered : java.lang.NullPointerException
    Process exited with exit code 0.
    ... when running the following code
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@jonm2000:1521:jonm";
    String user = "sh";
    String password = "sh";
    oracle.jdbc.OracleConnection conn = (oracle.jdbc.OracleConnection)java.sql.DriverManager.getConnection(url, user, password);
    ExpressTransactionProvider tp = new ExpressTransactionProvider();
    ExpressDataProvider dp = new ExpressDataProvider(conn, tp);
    dp.initialize();
    MdmMetadataProvider mp = null;
    mp = (MdmMetadataProvider) dp.getDefaultMetadataProvider();
    MdmSchema root = mp.getRootSchema();
    dp.close();
    conn.close();
    catch(Exception e) {
    System.out.println("***Exception encountered : " + e.toString());
    e.printStackTrace();
    It is also brings down the Oracle database.
    I am running:
    JDeveloper 9.0.2.822.0
    Oracle Database 9.0.2.1.0
    The code I am running is pretty much copied from the Oracle OLAP API guide - does anyone know why I am getting problems?

    It appears to be missing metadata. Since you are trying to get the schema, this is most likely a field that is required but not present (something silly, like labels). Try the following scripts posted below that verify metadata.
    When creating solved level hierarchies, all of these dimensions require 4 special dimension attributes. All 4 of these dimension attributes require a level attribute to be mapped to a populated column in each of the solved hierarchies.
    The 4 special attributes are:
    GID
    PARENT_GID
    ET
    PARENT_ET.
    You can check if these attributes exist with the following query:
    SELECT DA.OWNER,\n\
    DA.DIMENSION_NAME,\n\
    DA.ATTRIBUTE_NAME,\n\
    NVL(DA.DISPLAY_NAME, DA.ATTRIBUTE_NAME),\n\
    NVL(DA.DESCRIPTION, DA.ATTRIBUTE_NAME),\n\
    (CASE WHEN D.DESCRIPTOR_VALUE = 'Long Description' THEN 4\n\
    WHEN D.DESCRIPTOR_VALUE = 'Short Description' THEN 5\n\
    WHEN D.DESCRIPTOR_VALUE = 'End Date' THEN 1\n\
    WHEN D.DESCRIPTOR_VALUE = 'Time Span' THEN 2\n\
    WHEN D.DESCRIPTOR_VALUE = 'Year Ago Period' THEN 3\n\
    WHEN D.DESCRIPTOR_VALUE = 'Grouping ID' THEN 6\n\
    WHEN D.DESCRIPTOR_VALUE = 'Parent Grouping ID' THEN 7\n\
    WHEN D.DESCRIPTOR_VALUE = 'ET Key' THEN 8\n\
    WHEN D.DESCRIPTOR_VALUE = 'Parent ET Key' THEN 9\n\
    ELSE 0\n\
    END)\n\
    FROM ALL_OLAP2_DIM_ATTRIBUTES DA,\n\
    all_olap2_entity_desc_uses edu,\n\
    all_olap_descriptors d\n\
    where\n\
    DA.OWNER = EDU.ENTITY_OWNER (+)\n\
    AND DA.DIMENSION_NAME = EDU.ENTITY_NAME (+)\n\
    AND DA.ATTRIBUTE_NAME = EDU.CHILD_ENTITY_NAME (+)\n\
    AND EDU.DESCRIPTOR_ID = D.DESCRIPTOR_ID (+)\n\
    ORDER BY DA.OWNER, DA.DIMENSION_NAME, DA.ATTRIBUTE_NAME
    For these 4 attributes, it's not enough that they just exist, (note you can name them whatever you want) but they also have to be marked as the appropriate type as per the above SQL.
    Note also that the above SQL checks for other specially marked attributes such as Long/Short Description and End Date/Time Span. These attributes can exist without being marked as such (and can even be missing completely), and OLAP API will still function. However, I believe the OLAP API functions "better" if these attributes exist and are marked as special.
    The below SQL will check your column mappings for all attributes. (As a general rule, you shouldn't have to worry too much about mapping any CWMLITE logical entity to a valid table/column, because the CWMLITE API should catch if you don't use a valid table/column.)
    select owner,\n\
    dimension_name,\n\
    hierarchy_name,\n\
    level_name,\n\
    attribute_name,\n\
    table_owner,\n\
    table_name,\n\
    column_name,\n\
    (case when dtype = 'NUMBER' then 0\n\
    when dtype = 'DOUBLE' then 5\n\
    when dtype = 'FLOAT' then 4\n\
    when dtype = 'DATE' then 7\n\
    else 1 end)\n\
    from\n\
    all_olap2_dim_level_attr_maps\n\
    ORDER BY OWNER, DIMENSION_NAME, HIERARCHY_NAME, ATTRIBUTE_NAME
    Finally, note that any hierarchy which you map as coming from an AW will be a solved level hierarchy.

  • Read existing cubes with Java OLAP API

    Hi,
    i am new to the Oracle OLAP API and i have a question for which a do not find the answer in the documentation..
    I need to access all existing cubes in a database, get the names, the corresponding dimensions etc.
    There is no problem in reading the dimensions their hierarchies, the measures an so on. But i found no method or class to read out the information about cubes (names, dimension).
    The only thing i found in the documentation to get a cube was over a MtmMeasureMap, but when i call this method i get the exception: Not supported by server version ORAOLAP10.2.0.1.0
    Any hints?
    Thanks

    In current releases, the OLAP API is primarily a query API. Queries can include measures from multiple cubes, so there is no real purpose for a cube object. Therefore there is no Cube class in the Mdm logical metadata package.
    Cubes are useful in OLAP mappings, and there is an MtmCube class in the Mtm mapping metadata package. It is possible to navigate between Mdm and Mtm objects. The code that follows prints out the names of all of the cubes and the names of their dimensions.
    I don't understand the "Not supported by server version" error that you got. This sample code works for me in 10.1.0.4, and I expect it would work in 10.2, too.
    Geof
    MdmMetadataProvider mdp; // given
    Hashtable cubes = new Hashtable();
    MdmSchema rootSchema = mdp.getRootSchema();
    Iterator subSchemas = rootSchema.getSubSchemas().iterator();
    collectCubes(rootSchema, cubes);
    while (subSchemas.hasNext())
    collectCubes((MdmSchema) subSchemas.next(), cubes);
    // enumerate cubes
    Enumeration cubeList = cubes.keys();
    while (cubeList.hasMoreElements())
    MtmCube cube = (MtmCube) cubes.get(cubeList.nextElement());
    System.out.print(cube.getName() + ": ");
    Iterator dimensionMaps = cube.getDimensionMaps().iterator();
    boolean first = true;
    while (dimensionMaps.hasNext())
    MtmDimensionMap dimensionMap = (MtmDimensionMap) dimensionMaps.next();
    MdmDimension dimension = (MdmDimension) dimensionMap.getMdmSource();
    if (first)
    first = false;
    else
    System.out.print(", ");
    System.out.print(dimension.getName());
    System.out.println();
    void collectCubes(MdmSchema schema, Hashtable cubes)
    Iterator measures = schema.getMeasures().iterator();
    while (measures.hasNext())
    MdmMeasure measure = (MdmMeasure) measures.next();
    MtmMeasureMap measureMap = measure.getMeasureMap();
    MtmCube cube = measureMap.getCube();
    // See if we have already visited this cube for another measure
    String id = cube.getID();
    if (null == cubes.get(id))
    cubes.put(id, cube);
    }

  • OLAP API to get child nodes ?

    Hi, I am new to OLAP API (Java), I spend some months in Hyperrion Essbase JAPI, now turn to Oracle but feel quite confused about a lot of concept. Here is a task in my hand that is to present the dimension tree in XML format, just like:
    <?xml version="1.0" encoding="GBK"?>
         <Member name="Market" gen="1">
              <Member name="East" gen="2">
                   <Member name="New_York" gen="3" />
                   <Member name="Boston" gen="3" />
                   <Member name="Chicago" gen="3" />
              </Member>
              <Member name="West" gen="2">
                   <Member name="San_Francisco" gen="3" />
                   <Member name="Seattle" gen="3" />
                   <Member name="Denver" gen="3" />
                   <Member name="Los_Angeles" gen="3" />
              </Member>
              <Member name="South" gen="2">
                   <Member name="Dallas" gen="3" />
                   <Member name="Houston" gen="3" />
                   <Member name="Phoenix" gen="3" />
              </Member>
         </Member>
         <Member name="Product" gen="1">
              <Member name="Audio" gen="2">
                   <Member name="Stereo" gen="3" />
    I didn't find ways on how to get child nodes for a given node, for example, how can I get East,West,South,North nodes (called "member" in Essbase) from "Market" node?

    Hi, I am new to OLAP API (Java), I spend some months in Hyperrion Essbase JAPI, now turn to Oracle but feel quite confused about a lot of concept. Here is a task in my hand that is to present the dimension tree in XML format, just like:
    <?xml version="1.0" encoding="GBK"?>
         <Member name="Market" gen="1">
              <Member name="East" gen="2">
                   <Member name="New_York" gen="3" />
                   <Member name="Boston" gen="3" />
                   <Member name="Chicago" gen="3" />
              </Member>
              <Member name="West" gen="2">
                   <Member name="San_Francisco" gen="3" />
                   <Member name="Seattle" gen="3" />
                   <Member name="Denver" gen="3" />
                   <Member name="Los_Angeles" gen="3" />
              </Member>
              <Member name="South" gen="2">
                   <Member name="Dallas" gen="3" />
                   <Member name="Houston" gen="3" />
                   <Member name="Phoenix" gen="3" />
              </Member>
         </Member>
         <Member name="Product" gen="1">
              <Member name="Audio" gen="2">
                   <Member name="Stereo" gen="3" />
    I didn't find ways on how to get child nodes for a given node, for example, how can I get East,West,South,North nodes (called "member" in Essbase) from "Market" node?

  • Oracle9i 9.0.1 olap api

    hi guys
    i tried to write my first olap api program using oracle9i release 1 9.0.1 and when i tried to create connection it faild and i don't understand the code which in document (oracle9i olap users guid) and it uses corba to make connection
    and there is line in code ( object name =/bi/olapService) is this line is constant or i should use or it depends on my PC)
    can any one explain it and exaplain the connectionj code
    thanks

    hi oracle guys
    thanks , but i can't do this at all.
    did u mean i can patch olap engine to newer one
    and keep my DBMS oracle9i release 1
    but i need to solve to my proplem, and how to make
    the connection not to change my oracle because
    this not just joke to change my oracle release
    so did any one tried to connect to olap oracle9i 9.0.1
    please help ,my project depends on this project

  • UnmatchedInputsException in 9i OLAP API

    Hi All
    I'm using 9206 OLAP API now. Everything was working fine(I can't get all dimension value) but I have getted this exception when querying cube data:
    oracle.olapi.data.source.UnmatchedInputsException
    At the following program:
    private void getMeasureData(MdmMeasure mdmMeasure)
    System.out.println("===========getMeasureData(Source source)");
    TransactionProvider tp = dp.getTransactionProvider();
    StringSource timeSource = (StringSource)timesDim.getSource();
    Source timeSel = timeSource.selectValue("1997");
    Source source = mdmMeasure.getSource();
    source = source.join(timeSel);
    try
    tp.prepareCurrentTransaction();
    catch (NotCommittableException e)
    e.printStackTrace();
    System.out.println("Caught exception " + e + ".");
    tp.commitCurrentTransaction();
    CursorManagerSpecification cursorMngrSpec = dp.createCursorManagerSpecification(source);
    SpecifiedCursorManager cursorMngr = dp.createCursorManager(cursorMngrSpec); ////// Here occurred exception/////
    Cursor cursor = cursorMngr.createCursor();
    ValueCursor values = (ValueCursor) cursor;
    values.setPosition(1);
    String value = values.getCurrentString();
    System.out.println("time value:" + value);
    cursorMngr.close();
    Can anyone can shared your experience to me or let me know what the problem is...
    Thks!

    correct:
    I can get all dimension values!
    With the same exception in my 10g program that I tyied.
    Help me pleeeeezzzzzzzzzzz!
    Where are u, Sharon?

  • Java olap api

    hi all,
    my application uses SQL queries to pull data from Oracle10g.
    now i'm going to enhance it with OLAP support
    don know how to use JAVA OLAP APIs to pull data from relational tables
    after reading documents provided in www.oracle.com/.... i could see that there are a many ways to do. don know how to start. no document gives a step by step procedure.
    the main problem is i want to pull data from existing relational tables only using my JAVA code thru OLAP APIs.
    not able to understand the sample codes available in oracle web site.
    anyone can help me with simple java olap codes
    regards
    swetha

    You should post this question to the OLAP forum.

Maybe you are looking for

  • Best Practice: JavaFX pattern for "Catching all Exceptions"

    Hi, what is on the current JavaFX Standard the best way to catch all Exceptions (centralized) within my JavaFX application... I read thread outside this Oracle Forum who recommend following: 1. Thread.setDefaultUncaughtExceptionHandler(new MyExceptio

  • Times New Roman Font Not Working In PDF

    I have created a template that uses the Times New Roman (bold) font in Word 2007. When I generate the report, it is converting the font (and all other fonts for that matter) to Arial. From reading the documentation, it sounds like Times New Roman is

  • What's wrong with these code?

    Hi, i made the below snippet of code for retriving data from a table in database. but it doesnt work property when i run the program. Could anyone tell me what's wrong with it? Thanx in advance. //rs is object of type ResultSet //url is one of the co

  • OEM stopped working

    Hi, I have a Test-RAC-Sytem (release 11.2.0.3 ) on 2 Linux RH 5.4/X86-64 and managed is until one week ago with a working Oracle Enterprise Manager (OEM/IE9), Today I tried to start the OEM again! It worked no more! No information of the cluster and

  • How to know what is the everage time ???

    hi, i have a table with 1 million rows in it and i takes 5 minute to scan a table.i wanted to know is there any function or procedure that i am able to know in advance what is the mean it will take to scan a table .. thanka a lot ......