OLAP help: How to query a table in a OLAP cube

Hello,
I'm completely new in OLAP (even if I participated to cube creations), and I think a know well PLSQL.
We are on 10g v2.
OLAP cubes have been created with dimensions and tables.
It's possible to see and use the cubes under the AWM
I would like to know if it's possible to access a table within a cube directly from SQLPlus?
I thought about querying table all_objects ... but I didn't see anything good !!
I am stuck !!
Are the cubes saved in the same DB as the relational standard objects ?
I hope that you can give me some help... or provide me with good URLs ...
Thanks in advance,
Olivier

Hello Maxim,
Thanks for your reply..
I looked at the doc you gave, and also I am now able to get the names of cubes and dimensions :
The cubesselect aw_owner||'.'||aw_name||'!'||aw_logical_name cube
from olapsys.ALL$OLAP2_AW_CUBES
order by cube;
The dimensionsselect aw_owner||'.'||aw_name||'!'||aw_logical_name dimension
from olapsys.ALL$OLAP2_AW_DIMENSIONS order by dimension;
So, I start to figure out where I would like to go ...
But, in the doc, there is a lot of CREATE commands ....
I'm puzzled !! ... Do I have to create objects in sqlplus (views or something else) prior to query a table ?
Also, when I see the dimensions in table olapsys.ALL$OLAP2_AW_DIMENSIONS ...
Is it possible to DESC these "tables" or make a SELECT ?
Thanks,
Olivier

Similar Messages

  • How to query a table and result together with autonumber

    Hi all
    How to query a table and the result return autonumber for each row together with the table values.
    I have tried rowid but it provide me with characters.
    Tj

    What is your exact requirement?
    If you want the number of rows selected, you can use rownum.
    select rownum, a.* from <table> a;
    Cheers
    Deepak

  • How can query the table MARD using the parameters

    Hi,
    I have inputs as material number , sales organization , distribution chanel and plant , using this i have query the table MARD . in MARD table material number and plant is available , how can i relate sales organization and distribution chanel to query the table, please help.
    Regards,
    Ratheesh

    Hi,
    MVKE table contains the relationship between material, sales org. and distribution channel.
    You can hence create a join between MARD and MVKE tables and create a query.
    Regards,
    Aditya

  • How to query the table

    hi all,
    where to find the enterpraise manager url....i forgot it
    i need to know the enterprasie manager url,how to check this one from table.
    how to query this,from which table it will be fetch...
    pl share ur updates;

    gk wrote:
    hi all,
    where to find the enterpraise manager url....i forgot it
    i need to know the enterprasie manager url,how to check this one from table.
    how to query this,from which table it will be fetch...What's the db version? AFAIK there is no table in which the EM's url is kept. You can see it from the command though emctl status dbconsole .
    >
    pl share ur updates;Please write proper words in a professional forum like this one.
    Aman....

  • Help, how to Query database using pagination

    hi,
    how to Query database using pagination for the large data,
    any API to do this?
    thank you in advance!

    Hi,
    You can specify XmlQueryContext::Lazy as your evaluation type, and only call XmlResults::next() as many times as you need results from it.
    John

  • Help on how to query 11g table with XMLType column

    To all,
    We have this table:
    DESC MESSAGE
    Name Null Type
    MESSAGE_ID NOT NULL NUMBER(38)
    REQUEST_UU_ID NOT NULL VARCHAR2(50)
    MESSAGE_TYPE_CD NOT NULL CHAR(3 CHAR)
    EMPLOYEE_NUM NOT NULL VARCHAR2(8)
    SEQUENCE_NUM VARCHAR2(20)
    REVERSAL_SEQUENCE_NUM VARCHAR2(20)
    TRANSACTION_TS TIMESTAMP(6)
    MESSAGE_CONTENT_TXT NOT NULL XMLTYPE()
    CREATE_BY_NM NOT NULL VARCHAR2(50 CHAR)
    CREATE_BY_TS NOT NULL TIMESTAMP(6)
    LAST_UPDATE_BY_NM NOT NULL VARCHAR2(50 CHAR)
    LAST_UPDATE_BY_TS NOT NULL TIMESTAMP(6)
    Given we have multiple columns and one is XMLType how do I query to find rows in the db that match this XPath
    Here is a fragment of XML that is held in MESSAGE_CONTENT_TXT XMLType column:
    <?xml version="1.0" encoding="UTF-8"?>
    <cfg-env:Envelope xmlns="http://www.co.com/schemas/CFX/" xmlns:cfg-env="http://www.co.com/schemas/cfg-env/" xmlns:cfg-hdr="http://www.co.com/schemas/cfg-hdr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.co.com/schemas/cfg-env/" >
         <cfg-env:Header>
              <cfg-hdr:MessageHeader xmlns:cfg-hdr="http://www.co.com/schemas/cfg-hdr/" xmlns:cfg-env="http://www.co.com/schemas/cfg-env/" xmlns="http://www.co.com/schemas/CFX/">
                   <cfg-hdr:Service>
                        <cfg-hdr:ServiceName>process</cfg-hdr:ServiceName>
                        <cfg-hdr:MessageType>Request</cfg-hdr:MessageType>
                        <cfg-hdr:ServiceVersion>1</cfg-hdr:ServiceVersion>
                   </cfg-hdr:Service>
                   <cfg-hdr:From>
                        <cfg-hdr:PartyId>13-175-8724</cfg-hdr:PartyId>
                        <cfg-hdr:CostCenter>2009065</cfg-hdr:CostCenter>
                        <cfg-hdr:System>
                             <cfg-hdr:Application>[email protected]</cfg-hdr:Application>
                             <cfg-hdr:Version>1.0</cfg-hdr:Version>
                             <cfg-hdr:Channel>TLR</cfg-hdr:Channel>
                        </cfg-hdr:System>
                        <cfg-hdr:OrigReplyToQMgr>QMBKRD01</cfg-hdr:OrigReplyToQMgr>
                        <cfg-hdr:OrigReplyToQ>Q1</cfg-hdr:OrigReplyToQ>
                   </cfg-hdr:From>
                   <cfg-hdr:UserSession>
                        <cfg-hdr:SignonRole>User</cfg-hdr:SignonRole>
                        <cfg-hdr:LogonId>R099999</cfg-hdr:LogonId>
    I'm trying to find rows in the database that are /Envelope/Header/MessageHeader/UserSession/LogonId/R099999.
    Thanks for the assistance. I'm new to XML DB. I appreciate the help.
    Eric

    Hi Eric,
    You can use XMLExists, like this :
    select *
    from message t
    where xmlexists(
          'declare namespace env = "http://www.co.com/schemas/cfg-env/"; (: :)
           declare namespace hdr = "http://www.co.com/schemas/cfg-hdr/"; (: :)
           /env:Envelope/env:Header/hdr:MessageHeader/hdr:UserSession[hdr:LogonId=$id]'
           passing t.message_content_txt
                 , 'R099999' as "id"
    );

  • How to query / list table name with certain data type?

    Hi all spatials,
    Sorry for the dumb question. I need to make a query that list all table name that contain certain data type, eg. SDO_georaster. How to do this ?
    Many thanks in advance
    damon

    Skip it. I figured it : using USER_TAB_COLUMNS will definitely help.
    Cheers
    damon

  • How to Query from table and insert into another table.

    Hi
    I am using the following query in VO and all the columns are attached to EO ( table name emp_temp)
    select a.npw_number, a.person_id,b.assignment_id,a.title,a.last_name,a.first_name,a.date_of_birth,a.sex,
    b.organization_name,b.organization_id,b.job_id,b.job_name,b.position_id,b.position_name,b.supervisor_id,
    b.supervisor_name,b.location_id,b.effective_start_date,b.effective_end_date
    from per_all_people_f a,per_assignments_v b
    where a.person_id=b.person_id
    and a.npw_number=:1
    I can query the data in screen. I need into insert the data into the emp_temp.
    I don't know how to do this . Please help me.
    Thanks
    Subra

    You can create a VO based on EO on emp_temp table.....
    And u have attached a Different VO on the page... Right...
    Now what u can do is....once u click on apply....
    u can set the each attributes of EO based VO explicitly via code, from the values of second VO.... and then commit.....
    Perhaps this might help...

  • How to query a table join in SAP?

    Hi,
    We are rolling out SAP and our abapers are wondering how to debug production problems.  From our experience with PeopleSoft, there is often a need to query tables directly in production.  These queries are often joins.  SAP provides SE16 to query a single table, but how to SDN'ers query a join in PROD?
    For a basic example, how would you join a sales item and sales header?  We are thinking of using Oracle OpenSQL to have direct table access.  Solutions that somehow use SAP security for developers to access production are good!
    Any suggestions are welcome and points will be rewarded!!
    Peter

    Peter,
    Be careful if your company is large enough to have been impacted by Sarbanes-Oxley 404.  Your external auditing firm should be engaged in whatever approach you take.
    This type of information/querying is now much more monitored/controlled for SOX 404-impacted organizations.
    Example - SQVI has been removed from all PRD instances in our company b/c of SOX 404.

  • How to query on tables with certain name?

    Hi,
    I need to programmatically query some logging tables and then generate a report. These logging tables are all named E$_*. These E$_* tables have some common columns and some non-common columns. I don't know how many tables and what their full names are before hand.
    What is the best way to do the query? And ideally, the query is database platform independent.
    Thanks in advance!

    Hi,
    I need to programmatically query some logging tables
    and then generate a report. These logging tables are
    all named E$_*. These E$_* tables have some common
    columns and some non-common columns. I don't know how
    many tables and what their full names are before
    hand.
    What is the best way to do the query? And ideally,
    the query is database platform independent.Hi,
    What do u mean by database platform independent? What are your expectations. Any examples? Also please post what you tried, so that we can try to correct it.
    Jithendra

  • How to query TSTC table ..on oracle db

    Is it possible  to query TSTC or TSTCT tables ??
    to find possible T-codes in SAP ??
    please guide ..how ??

    Thanks !!
    But still ..to query TSTC or TSTCT table can be a genuine requirement ..
    When you have no idea if the Tcode is existing ..And want to see it from TTEXT
    Isn't it ??
    Happiness Always !!

  • How to query for tables referenced to a certain table by a FK?

    Hello -
    I have a table called "SERVICE". i can't drop the table because it is referenced via a foreign key by other tables. What view(s) can I query to find the referenced tables?
    Thanks in advance!

    Does this query help?
    select /*+ parallel(4) */
    pk.table_name parent_table_name, pk.constraint_name pkey_constraint,
    fk.table_name child_table_name, fk.constraint_name fkey_constraint, fk.r_constraint_name
    from
    user_constraints pk,
    user_constraints fk
    where
    pk.constraint_name = fk.r_constraint_name
    and pk.constraint_type='P'
    and fk.constraint_type='R'

  • How to query from tables?

    Hi!
    I have two table, and I want to execute a query statement from them. How to do this?
    Thanks so much!

    Hi,
    If you go to otn.oracle.com/products/jdev you find tutorials and Oracle By Example (OBE) instructions.
    These get you started
    Frank

  • How to Query Internal tables in PCR

    Hi Experts,
    When I tried by using operation u201CVAKEYu201D to query the Internal tables, but it was not working
    I would like to write one PCR in the Indian Payroll
    Please can anyone help me on the same?
    The requirement as below;
    u201CIf the DDNTK table filled with amount (Assume that DDNTK table may contains more than one WT)u201D
    u201CAdd this total amount (with same sign) to WT /110 net deductionsu201D
    Thanks in Advance!
    Thanks and Regards
    Cheera

    I have never worked with Indian Payroll and I am not aware of a function or operation that allows to check on table DDNTK,
    but you could check PCR XDPR and function PRDNT.

  • Plz help, A select query for table giving foll o/p

    A table has a single column with following data
    Col1
    170
    10
    140
    520
    20
    60
    70
    The select query should return the data in the following format
    Col1 Col2 Col3 Col4
    170 3 1 0
    10 0 0 1
    140 2 2 0
    520 10 1 0
    20 0 1 0
    60 1 0 1
    70 1 1 0

    Using my awesome puzzle solving brain I note that Col2 = 50 Col3 = 20 Col4 = 10.
    But you should be telling US that.
    select col1, floor(col1/50) col2, floor(mod(col1,50)/20) col3, floor(mod(mod(col1,50),20)/10) col4
    from mytable.
    I win the internets!
    Edited by: Dave Hemming on Dec 19, 2008 11:35 AM

Maybe you are looking for

  • Adobe acrobat reader 9 problem saving forms and copying photos

    I used adobe acrobat reader 6 at work and I have a form that I save with new data. I am also able to copy text and photos using version 6. When I try to save edited forms and copy files from versiion 9 It wont allow me to do that. Is their any way th

  • No information retained

    Hi- I copied my photos from 'My Pictures' on my old pc onto my external hard drive. Then I imported those photos from the HD into iPhoto on my MacBook. However, the dates on the PC photos say 1/1/2000 for a whole slew of photos. When I look at the Ph

  • Invoice Different Vendors

    Hi Experts, I'm trying to rack my brain around a certain issue I'm having: So we create a purchase order lets say we buy parts from company "ABC" in which we pay with our credit card through US Bank. We Use the Copy to function to copy it over to a G

  • A lock icon on my iTune

    why there is a lock on the iTune next to the free space? How can I take it off,'cause I can't control my ipod on this situation does the restart can solve this problem?

  • How to change "default" application?

    How can I change the "default" application? I meen how to redirect http://host/apex to http://host/apex/f?p=100 instead of http://host/apex/f?p=4550? Thanks for answers.