First_value in Oracle olap based on non - time dimension

Hi Experts,
I am trying to figure out to do first_value kind of calculation in Oracle OLAP.
Here is the requirement -
Fact table -
cust_id valid_flag balance
1 y 1000
1 y 1500
2 N 0
2 y 2000
2 y 2500
If valid_flag ='N' and balance =0, then set balance =0 for other cells for the customer. This needs to be done for all the dimensions.
Any pointer would be useful.
Regards, Neelesh

If the switch is really based on a dimension attribute (named particular_value), then it should be easy to create a derived measure.
CASE
  WHEN particular_dim.particular_value = 'N'
  THEN 0
  ELSE my_cube.balance
ENDBut perhaps what you mean is that there is another measure, IS_VALID say, and you need to get the value of IS_VALID for the current cust_id and the member named 'particular_value' of the particular_dim. In this case it would look something like this.
CASE
  WHEN my_cube.is_valid[particular_dim = 'particular_value'] = 'N'
  THEN 0
  ELSE my_cube.balance
ENDI expect that neither of the above expressions is right, but it should give you some pointers as to the kinds of tricks you can use.

Similar Messages

  • Semi additive Measures across non time dimensions

    Hello,
    I need to make my measure semi additive across a non time dimension (Since I am getting totals at each level and I cant roll up the children to the parent, instead create a dummy member at the lower level for total and use FirstChild). Is it advisable to change the dimension type to time to achieve this functionality?
    Thanks
    Arun

    I had followed exactly the same approach specified in the paper without using parent child dimensions. I had created "blank" members instead of the same name as the parent member. Now, the issue is, I have to make the measure's aggregation as "FirstChild" so that it takes the "blank" member's value for the parent.
    Another issue is, I have multiple dimensions in the cube and I have aggregated data across dimensions in my source. For Example,
    Col1                                                          Col2
    Dimension A Level1 Member1           Dimension B Level 1 Member 1           1000
    Dimension A Level1 Member1           Dimension B Level 2 Member 1           500
    Dimension A Level1 Member1           Dimension B Level 2 Member 2           500
    Dimension A Level2 Member1           Dimension B Level 1 Member 1           2000
    Dimension A Level2 Member1           Dimension B Level 2 Member 1           1000
    Dimension A Level2 Member1           Dimension B Level 2 Member 2           1000
    Thanks
    Arun

  • Oracle OLAP:Same member values across dimensions

    We had an enquiry from a client which mentions:
    Per Essbase the same dimension member value cannot exist across multiple dimensions. e.g. if we have a account dimension with member 1001 , it is not possible to have product dimension with same member value 1001. This is essentially because Essbase implements it like a shared member. Apparently Essbase Excel-addin will not know what dimension to search for if both have same values.
    As per our understanding there is no such limitation in Oracle OLAP both during cube build or querying via Excel Add-in. i.e we can have account dimension with member 1001 and same member value can exist in a product dimension. Please advise and if anybody has any reference to any documentation in this regard please let us know.

    Hi there,
    You are correct - there is no such limitation in Oracle OLAP.
    A dimension value must be unique in any given dimension but can be repeated in other dimensions.
    I do not have any documentation but this is really easy to prove using the OLAP worksheet in AWM, eg:
    aw create test
    define dim1 dimension text
    maintain dim1 add 'MEMBER1'
    report dim1
    define dim2 dimension text
    maintain dim2 add 'MEMBER1'
    report dim2
    aw detach test
    aw delete testI hope this helps
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Oracle Warehouse Builder 11GR2 -no time dimension wizard?

    Hi,
    I am running OWB 11GR2 on top of a 11GR2 database (OEL 5.4 64 bit).
    I don't have a time dimension wizard, just a normal wizard. What I do is right-click, new dimension....but no time wizard. How can I activate it?
    I have installed everything several times, but no luck...
    Can anyone help, please?

    Hi
    Right Johnny. This happened when we moved to the new UI, all objects can be created using the New 'gallery' style approach, not exactly intuitive for how you remember time dimensions being created but it's still all there.
    Cheers
    David

  • ORACLE OLAP: trying to read french dimension attributes fails

    We have set up the CHANNEL dimension of the GLOBAL AW to have a french translation for the attributes CHANNEL_SHORT_DESCRIPTION and CHANNEL_LONG_DESCRIPTION. Using the AW Manager we had verified that the french values are output correctly. Also when using the OLAP Worksheet we got the correct output. Unfortunately issuing the same sequence of commands via ODP.NET does not output the dimension attribute in the appropriate language. Does anybody know about this problem or have the same experience?
    Here is the command stack of the Olap Worksheet
    ->RPR DOWN CHANNEL CHANNEL_SHORT_DESCRIPTION SKIP
    --------------ALL_LANGUAGES--------------
    ----------------AMERICAN-----------------
    CHANNEL_SHORT_DESCRI
    CHANNEL PTION
    1 All Channels
    4 Internet
    2 Direct Sales
    3 Catalog
    ->LOCK_LANGUAGE_DIMS=no
    ->LMT ALL_LANGUAGES TO 'FRENCH'
    ->RPR DOWN CHANNEL CHANNEL_SHORT_DESCRIPTION SKIP
    --------------ALL_LANGUAGES--------------
    -----------------FRENCH------------------
    CHANNEL_SHORT_DESCRI
    CHANNEL PTION
    1 All Channels
    4 Internet
    2 Ventes Directes
    3 Catalogue

    Just to update this thread: while preparing a little test program, which should make this problem reproducable, I found an ALLSTAT command in our lengthy command stack. This caused the ALL_LANGUAGES_DIM to loose its limit on the selected language. Our parser in turn didn't have any trouble with this, but output the first language, which was the default. The problem was on our side and is solved now.

  • OBIEE and Oracle OLAP Value Based Hierarchies

    Hi there...
    I have a value based dimension built on Oracle OLAP and want to map it on OBIEE Administration tool.
    I've been using the above link as reference:
    http://www.oracle.com/technology/obe/olap_biee/CreateBIEEMetadata.htm
    There's no option to import from Oracle Multi-dimensional Database. Either to import/configure the view created by OLAP as an Unballanced or Ragged Dimension.
    I also checked this example, but it uses ESSBASE as the multi-dimensional source....
    http://www.rittmanmead.com/2008/08/27/ragged-hierarchy-handling-in-obiee/
    How to map this Ragged Dimension created in OLAP workspace in OBIEE? Any suggestions or directions will be highly appreciated...
    Thanks in advance
    Marcos

    Mark and others,
    You can create OLAP_TABLE views with level columns on top of value-based hierarchies. BI Beans used to do that too behind the scenes in Discoverer Plus OLAP. If you trace the Discoverer session, where you are querying data from Value-based hierarchies, you will see that it also generates OLAP_TABLE views with level columns in it.
    So the question is how to do it. Internally, even for Value-based hierarchies Oracle OLAP keeps track of the "depth" of each value by using a structure called GID_DIMENSION (i.e., Grouping Dimension). Here is an example of a view on top of a value-based hierarchy (CFC_ACCT_GAPP) for RPT_ACCOUNT dimension. You have to know how "deep" your value-based hierarchy is.
    Similar kind of a thing is done by OLAP View Generator application, which I never use - since I always prefer to define my own OLAP_TABLE views.
    This kind of a view can then be used in the RPD of OBIEE.
    select *
    FROM table(OLAP_TABLE ('AW duration session',
    *'DIMENSION RPT_ACCT_ID FROM RPT_ACCOUNT WITH*
    HIERARCHY RPT_ACCOUNT_GAAP_PARENT   FROM RPT_ACCOUNT_PARENTREL(RPT_ACCOUNT_HIERLIST ''CFC_ACCT_GAAP'') INHIERARCHY RPT_ACCOUNT_INHIER
    HATTRIBUTE RPT_ACCOUNT_GAAP_LVL_NUM FROM RPT_ACCOUNT_DEPTHVAL
    FAMILYREL RPT_ACCOUNT_GAAP_LVL1,
    RPT_ACCOUNT_GAAP_LVL2,
    RPT_ACCOUNT_GAAP_LVL3,
    RPT_ACCOUNT_GAAP_LVL4,
    RPT_ACCOUNT_GAAP_LVL5,
    RPT_ACCOUNT_GAAP_LVL6,
    RPT_ACCOUNT_GAAP_LVL7,
    RPT_ACCOUNT_GAAP_LVL8
    FROM RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 127),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 63),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 31),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 15),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 7),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 3),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 1),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 0)
    FAMILYREL RPT_ACCOUNT_GAAP_LVL1_DSC,
    RPT_ACCOUNT_GAAP_LVL2_DSC,
    RPT_ACCOUNT_GAAP_LVL3_DSC,
    RPT_ACCOUNT_GAAP_LVL4_DSC,
    RPT_ACCOUNT_GAAP_LVL5_DSC,
    RPT_ACCOUNT_GAAP_LVL6_DSC,
    RPT_ACCOUNT_GAAP_LVL7_DSC,
    RPT_ACCOUNT_GAAP_LVL8_DSC
    FROM RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 127),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 63),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 31),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 15),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 7),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 3),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 1),
    RPT_ACCOUNT_FAMILYRELVAL(GID_DIMENSION 0)
    LABEL RPT_ACCOUNT_LONG_DESCRIPTION
    ATTRIBUTE ACCOUNT_LDSC    FROM RPT_ACCOUNT_LONG_DESCRIPTION
    ATTRIBUTE ACCOUNT_SDSC    FROM RPT_ACCOUNT_SHORT_DESCRIPTION
    ATTRIBUTE ACCOUNT_TYPE    FROM RPT_ACCOUNT_TYPE
    ATTRIBUTE SOURCE_LEVEL    FROM RPT_ACCOUNT_LEVEL
    ATTRIBUTE CALCULATION     FROM RPT_ACCOUNT_CALCULATION
    ATTRIBUTE CALC_DATA       FROM RPT_ACCOUNT_CALC_DATA
    ATTRIBUTE GAAP_SORT_ORDER FROM RPT_ACCOUNT_GAAP_SORT_ORDER
    ATTRIBUTE RATIO           FROM RPT_ACCOUNT_RATIO
    ATTRIBUTE ACCOUNT_LEVEL   FROM RPT_ACCOUNT_LEVELREL'))

  • Oracle 9i OLAP Time Dimension

    I have got a problem with my cube in Oracle 9i R2 OLAP Services.
    I would like to create time dimension with hour level. But, time type have
    only day level.How I can create dimension with hour level ?
    user cwm2 or OWB

    Hi Jiaxu,
    Are u a Chinese?
    I find that you are learning OracleR2 OLAP.
    I just take a project about OracleR2 OLAP.
    Could we talk about the technology?
    My mail is [email protected]
    Best Regards
    Chen Qizhuan

  • Getting parent-child data into an Oracle level-based OLAP hierarchy

    We have some organisational data which we need to represent in an Oracle OLAP 10g dimension, preferably populated using Warehouse Builder.
    The organisational hierarchy is listed as parent-child pairs, and is both ragged (unbalanced) and skip-level (noncovering). This would lend itself to a value-based hierarchy, but our client would rather we use ROLAP rather than MOLAP, i.e. avoid the use of an Analytical Workspace, which rules out the use of a value-based hierarchy.
    Is there a straightforward way to populate a level-based hierarchy using parent-child pair data, and if so how can it be done?
    Pointers to tutorials would be welcome, especially if they use Warehouse Builder.

    If you have an Oracle DB have a look on the CONNECT BY PRIOR functionality.
    regards
    John
    http://obiee101.blogspot.com

  • Whitepaper/Info Budgeting/Planning/Writeback via Oracle OLAP DML

    Hi,
    does anyone know of any whitepaper, manual section, general information regarding writeback, planning, budgeting using Oracle OLAPs DML API? We would like to upgrade our proprietary DataAccess-Layer, which interfaces to Oracle OLAP via the DML-API, to allow writeback.
    As said the documentation for this topic seems to be scarce to none.
    Just to give an example: it is not possible to write back values to the base measures UNITS_CUBE_SALES/COST/UNITS of the UNITS_CUBE in global AW, since all of them are FORMULA objects. The underlying variable to which you can assign values is in 10g UNITS_CUBE_SALES_STORED, whereas in 11g you would limit the ALL_MEASURES_DIM object to the SALES measure and assign a value to a variable named UNITS_CUBE_STORED. Basically this is information I was fishing out of this forum, but didn't find documented in the Oracle manuals.
    Therefor I am wondering, if writeback via the Oracle OLAP DML API is something, which is officially not supported? Or maybe I just didn't look in the right places to find documentation.
    BTW: I am looking at this topic from an ISV point of view.
    Best regards
    Ralf
    Edited by: Ralf Steinstraesser on Aug 18, 2009 5:15 AM

    hello,
    i can only speak about 10 G
    There are 2 modes to attach an aw for writing data.
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_x_arcsin011.htm#i1016126
    1)In rw mode
    Only one user can have an analytic workspace open in read/write at a time
    2)in multi mode
    A workspace that is attached in multiwriter mode can be accessed simultaneously by several sessions
    you find documentation for multi write
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_appcats003.htm#CHDJFJHD
    hope this help you
    jean marc

  • HOLAP - using OBIEE and Oracle OLAP

    Hi
    How to implement HOLAP in OBIEE (with Oracle OLAP cubes) as below –
    1. For an aggregate table, there are 3 dimensions each one having 4 levels within its hierarchy.
    2. We create an aggregate table at the lowest level of each dimension.
    3. We create a cube for rest of the levels and its combination for the same measure.
    Can we implement this and how?
    Thanks

    Thanks Nazar for your reply.
    On Cube based MV usage - The idea is to have lowest level summaries in relational. Higheer level in cube based on MV. So in case there are queries that can get rewritten , they will retrieve data from the cube itself.
    On hierarchies -
    If we take the example of oracle provided GLOBAL application and check the product dimension -
    ========================================================================
    CREATE TABLE "GLOBAL"."PRODUCT_DIM"
    (     "ITEM_ID" VARCHAR2(12 BYTE) NOT NULL ENABLE,
         "ITEM_DSC" VARCHAR2(31 BYTE) NOT NULL ENABLE,
         "ITEM_DSC_FRENCH" VARCHAR2(60 BYTE),
         "ITEM_DSC_DUTCH" VARCHAR2(60 BYTE),
         "ITEM_PACKAGE" VARCHAR2(20 BYTE),
         "ITEM_MARKETING_MANAGER" VARCHAR2(20 BYTE),
         "ITEM_BUYER" VARCHAR2(20 BYTE),
         "FAMILY_ID" VARCHAR2(4 BYTE) NOT NULL ENABLE,
         "FAMILY_DSC" VARCHAR2(20 BYTE) NOT NULL ENABLE,
         "FAMILY_DSC_DUTCH" VARCHAR2(60 BYTE),
         "CLASS_ID" VARCHAR2(4 BYTE) NOT NULL ENABLE,
         "CLASS_DSC" VARCHAR2(15 BYTE) NOT NULL ENABLE,
         "CLASS_DSC_FRENCH" VARCHAR2(60 BYTE),
         "CLASS_DSC_DUTCH" VARCHAR2(60 BYTE),
         "TOTAL_ID" VARCHAR2(15 BYTE) NOT NULL ENABLE,
         "TOTAL_DSC" VARCHAR2(15 BYTE) NOT NULL ENABLE,
         "TOTAL_DSC_FRENCH" VARCHAR2(30 BYTE),
         "TOTAL_DSC_DUTCH" VARCHAR2(30 BYTE),
         CONSTRAINT "PRODUCT_DIM_PK" PRIMARY KEY ("ITEM_ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ;
    ========================================================================
    Now , if this was TYPE 2 dimension and if you had possibility of late arriving sales data where you need to pick up "point in time" attributes of the product. How can I model dimension hierarchy in that case in OLAP?
    In the Oracle example, they have kept it simple TYPE 1 so ITEM_ID can be kept as the key. However, if I had the PRODUCT_DIM as a TYPE 2 dimension table and i was using sequence generated surrogate key as the PK of the dimension table, how do i model it in OLAP?
    Thanks

  • OLAP time dimension - how are the weeks allocated

    Could someone please help me understand what logic Oracle uses when one makes use of Oracles OLAP time dimension based on weeks.
    I am use Oracle OLAP 11.2
    I have a Time dimension that has the following hierarchy:-
    YEAR
    QUARTER
    MONTH
    WEEK
    For calculating the weeks ID I make use ISO week and year i.e. IYYYIW
    For calculating the end date I use the following:- NEXT_DAY( l_date, 'MON' ) -1
    i.e. the weeks end date is the Sunday.
    According to me this is the required result.
    Problem is that for some months there are 3 weeks allocated which makes no sense to me.
    I cannot understand the logic used in allocating the weeks.
    The following is an example:-
    the following weeks were allocated to the month February
    201306 (end date= 10-2-2013)
    201307 (end date= 17-2-2013)
    201308 (end date= 24-2-2013)
    but the following week was allocated to January which makes no sence to me,
    I would have expected it to be found in February
    201305 (end date= 3-2-2013)
    Week 201309 (end date= 3-3-2013) was allocated to March which according to me is correct..
    Another example is week *201030 (end date= 1-8-2010)* that is allocated to July while I would have expected that it should be August.
    I would have thought that it uses the end date that is placed in the mapping to determine the month to place it in.
    Could some one please explain what the reason for this could be.

    Oracle OLAP model/design (in this case, at least) cannot compensate to coverup existing flaws in the relational model/design.
    I dont think this is a valid hierarchy even considering relational model/design.
    Weeks do not fit in below Months (calendar months).
    You can force fit them by making Weeks the source of truth and making all Months logical Months like "Business Month", "Business Quarter", "Business Year" etc. which will be composed of whole weeks but differ significantly from the calendar definition of Month, Quarter, Year etc.
    You are better off modeling time as composed of two hierarchies:
    H1: DAY -> MONTH -> QUARTER -> YEAR and
    H2: DAY -> WEEK
    Alternately if you dont want to introduce DAY level (lower granularity), you can split up the Time dimension into 2 different dimensions. And also modify your star schema to add an additional time dimension key to fact table - one key pointing to WEEK and another pointing to MONTH (independently).
    TIME_MO: MONTH -> QUARTER -> YEAR
    TIME_WK: WEEK
    The fact data will need to be split up to correctly identify the coirrect MONTH-WEEK combination for the relational record.
    E.g:
    Fact table should have 2 dimension Fks for WK_KEY as well as MO_KEY so that a fact figure of 1000 evaluated over 7 days is split up into 300 from 29-31st of previous month and attached to MO_KEY of previous month and another record of 700 covering days from 1-4 and recorded/tied to same WK_KEY but next month (next month's MO_KEY).
    HTH
    Shankar

  • Will Oracle OLAP handle our case(s).

    We are about to build a cube to roughly handle following dimensions and facts:
    15 dimensions ranging from a couple of members to 40,000+ members.
    A fact table holding 200,000,000+ rows
    So my question is: Does anybody has a sense of whether OLAP has a chance of handling this data? We are pretty certain that the data will be sparse.
    A second item relates to whether Oracle OLAP cubes give us the ability to compute what we refer to as "Industry" data. We serve a number of companies and we compute metrics that applies to their data. In order to allow these companies to see what they are doing against the other companies we provide the metrics for every other company; this metrics are considered Industry. So my question is: Do OLAP cubes have any structure or mechanism that allows to compute these metrics within the same cube or do we have to create a cube to hold Industry metrics?
    Thanks,
    Thomas

    Thomas,
    I cannot advise you for or against based on the small amount of information I have. I will not deny that at 15 dimensions you are at the upper limit of what you can achieve using the current (11.1) OLAP technology, but I have seen cubes of this size built and queried, so I know it is possible.
    The answer would depend on many things: hardware, query tools, expectations for query and build performance, and whether you have a viable alternative technology (which will determine how hard you will work to get past problems). It even depends on your project time frames, since release 11.2 is currently in beta and will, we hope, handle greater volumes of data than 11.1 or 10g.
    One important factor is how you partition your cube. At what level do you load the data (e.g. DAY or WEEK)? What is your partition level (e.g. MONTH or QUARTER)? A partition that loads, say, 10 million rows, is going to be much easier to build than a partition with 50 million rows. To decide this you need to know where your users will typically issue queries, since queries that cross partitions (e.g. ask for data at the YEAR level but are partitioned by WEEK) are significantly slower than those that do not cross partitions (e.g. ask for data at WEEK when you are partitioned by MONTH).
    Cube-based MVs can offer advantages for cubes of this size even if you define a single, 15-dimensional, cube. One nice trick is to only aggregate the cube up to the partition level. Suppose, for example, that you load data at the DAY level and partition by QUARTER. Then you would make QUARTER be the top level in you dimension instead of YEAR or ALL_YEARS. The trick is to make YEAR be an ordinary attribute of QUARTER so that it appears in the GROUP BY clause of the cube MV. Queries that ask for YEAR will still rewrite against the cube, but the QUARTERS will be summed up to YEAR using standard SQL. The result will generally be faster than asking the cube to do the same calculation. This technique allows you to lower your partition level (so that there are fewer rows per partition) without sacrificing on query performance.
    Cube-based MVs also allow you to raise the lowest level of any dimension (to PRODUCT_TYPE instead of PRODUCT_SKU say). Queries that go against the upper levels (PRODUCT_TYPE and above) will rewrite against the cube, and those that go against the detail level (PRODUCT_SKU) will go direct to the base tables. This compromise is worth making if your users only rarely query against the detail level and are willing to accept slower response times when they do. It can reduce the size of the cube considerably and is definitely worth considering.
    David

  • How to configure oracle 6i report server run time component with application server

    we got oracle 6i report server for developing the web based reports for our undergoing product. we r succesed in developing the web based reports using oracle 6i report server.But we r facing problems while deploying the product with oracle reports at clients place,why because the client does not have the oracle 6i report server. To solve this problem we have to configure the oracle 6i report server run time component with application server at client side , but we are unable to configure this component(that is CGI handler).

    You can run multiple instances of Reports Server in 6i.
    In tnsnames.ora, for each server, have a different name and each listening to different port.
    For example,
    server1.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1949))
    server2.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1950))
    Also, if you want to know about Reports Server Clustering, you may refer to "Publishing Reports" document on OTN:
    http://otn.oracle.com/docs/products/reports/pdf/A73173_01.pdf

  • Using oracle text on a non-materialized view

    I'm having trouble tracking down an error when using oracle text on a non-materialized view (indexes are on the referenced columns). My database has a users table and a user history table which saves the old values when a user profile changes. My view performs a "union all" so I can select from both at once.
    I would like to use oracle text to perform a "contains" on the view whenever someone signs up to see if any current users or historical entries contain the desired username.
    The following works fine:
    contains(user_history_view, 'bill')but when I reference anything in the contains clause, i get a "column is not indexed" error:
    contains(user_history_view, signup.user_name) --signup.username is 'bill'Here is a stripped-down demonstration (I am using version 10.2.0.4.0)
    create table signup (
      signup_id   number(19,0) not null,
      signup_name varchar2(255),
      primary key (signup_id)
    create table users (
      user_id   number(19,0) not null,
      user_name varchar2(255),
      primary key (user_id)
    create table user_history (
      history_id number(19,0) not null,
      user_id    number(19,0) not null,
      user_name  varchar2(255),
      primary key (history_id),
      foreign key (user_id) references users on delete set null
    create index user_name_index on users(user_name)
    indextype is ctxsys.context parameters ('sync (on commit)');
    create index user_hist_name_index on user_history(user_name)
    indextype is ctxsys.context parameters ('sync (on commit)');
    create index signup_name_index on signup(signup_name)
    indextype is ctxsys.context parameters ('sync (on commit)');
    create or replace force view user_history_view
    (user_id, user_name, flag_history) as
    select user_id, user_name, 'N' from users
    union all
    select user_id, user_name, 'Y' from user_history;
    --user bill changed his name to bob, and there is a pending signup for another bill
    insert into users(user_id, user_name) values (1, 'bob');
    insert into user_history(history_id, user_id, user_name) values (1, 1, 'bill');
    insert into signup(signup_id, signup_name) values(1, 'bill');
    commit;
    --works
    select * from user_history_view users, signup new_user
    where new_user.signup_id = 1
    and contains(users.user_name, 'bill')>0;
    --fails
    select * from user_history_view users, signup new_user
    where new_user.signup_id = 1
    and contains(users.user_name, new_user.signup_name)>0;I could move everything into a materialized view, but querying against real-time data like this would be ideal. Any help would be greatly appreciated.

    Hi,
    this is to my knowledge not possible. It is hard for Oracle to do, think about a table with many rows, every row with that column must be checked. So I think only a single varchar2 is possible. Maybe for you will a function work. It is possible to give a function as second parameter.
    function return_signup
    return varchar2
    is
      l_signup_name signup.signup_name%type;
    begin
      select signup_name
      into l_signup_name
      from signup
      where signup_id = 1
      and rownum = 1
      return l_signup_name;
    exception
      when no_data_found
      then
        l_signup_name := 'abracadabra'; -- hope does not exist
        return l_signup_name;
    end;Now you can use above function in the contains.
    select * from user_history_view users --, signup new_user
    --where new_user.signup_id = 1
    where contains(users.user_name, return_signup)>0;I didn't test the code! Maybe you have to adjust the function for your needs. But it is a idea how this can be done.
    Otherwise you must make the check by normaly check the columns by simple using a join:
    select * from user_history_view users, signup new_user
    where new_user.signup_id = 1
    and users.user_name = new_user.signup_name;Herald ten Dam
    htendam.wordpress.com

  • BIB-9509 Oracle OLAP doesn't have  created the cursor

    Hello,
    I'm using Oracle Analytic Workspace Manager 10.1.0.4 on a database 10g enterprise edition 10.1.0.3.0.
    When I create a cube with more then 10 dimensions, it gives me the error:
    BIB-9509 Oracle OLAP non ha creato il cursore.
    oracle.express.idl.util.OlapiException
    oracle.dss.dataSource.common.OLAPException: BIB-9509 Oracle OLAP non ha creato il cursore.
    oracle.express.idl.util.OlapiException
    oracle.express.idl.util.OlapiException
    at oracle.dss.dataSource.QueryEvaluator.setUpCursors(QueryEvaluator.java:3645)
    at oracle.dss.dataSource.QueryEvaluator._setUpCursorsForMainQuery(QueryEvaluator.java:2547)
    at oracle.dss.dataSource.QueryEvaluator.getCursorForCube(QueryEvaluator.java:2579)
    at oracle.dss.dataSource.QueryEvaluator.createCubeAndCursor(QueryEvaluator.java:940)
    at oracle.dss.dataSource.MainQueryEvaluator.createCubeAndCursor(MainQueryEvaluator.java:144)
    at oracle.dss.dataSource.QueryServer.createCubeAndCursor(QueryServer.java:3698)
    at oracle.dss.dataSource.QueryServer._createCommonQuery(QueryServer.java:3681)
    at oracle.dss.dataSource.QueryServer._initCubeQuery(QueryServer.java:3561)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at oracle.dss.util.Operation.execute(Operation.java:72)
    at oracle.dss.dataSource.OperationQueue.update(OperationQueue.java:68)
    at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
    at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
    at oracle.dss.dataSource.QueryServer.queueOperation(QueryServer.java:6966)
    at oracle.dss.dataSource.QueryServer.initCubeQuery(QueryServer.java:3511)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at oracle.dss.util.Operation.execute(Operation.java:72)
    at oracle.dss.dataSource.QueryManagerServer.sendQueue(QueryManagerServer.java:1991)
    at oracle.dss.dataSource.common.OperationQueue.update(OperationQueue.java:207)
    at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
    at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
    at oracle.dss.dataSource.client.QueryClient._initCubeQuery(QueryClient.java:2335)
    at oracle.dss.dataSource.client.QueryClient.initCubeQuery(QueryClient.java:2318)
    at oracle.olap.awm.dataobject.dialog.modelview.measure.MeasureDataViewer.doQueryTop3(MeasureDataViewer.java:340)
    at oracle.olap.awm.dataobject.dialog.modelview.measure.MeasureDataViewer.showCrosstab(MeasureDataViewer.java:214)
    at oracle.olap.awm.dataobject.dialog.modelview.measure.MeasureDataViewer.showData(MeasureDataViewer.java:115)
    at oracle.olap.awm.navigator.node.modeler.cube.ModelerCubeNode.actionPerformed(ModelerCubeNode.java:334)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Thank you.

    the patch for HP-UX is
    4163362      Oracle Database Family: Patchset
    10.1.0.4 PATCH SET FOR ORACLE DATABASE SERVER      10.1.0.4      18-MAY-2005      841M      View Readme
    you can download this from metalink
    Regards

Maybe you are looking for

  • Strange Value in DISPLAY variable

    Hello all, in order to access remote Linux machines, I am running X11 on my iMac. For some reason this does not work anymore when connecting (ssh) from a "regular" bash (application Terminal) but it still works when I am accessing from the xterm-bash

  • Newbie needs suggestions as to what to purchase

    Hi, I'm lost & would appreciate suggestions. I have to link together two photo kiosks running on Win 2000, with a Kodak professional printer. I also need to link to a Canon Large format printer, a HP Scanner, and a Canon laser printer. My main puta i

  • FUNCTION and OUT %ROWTYPE

    Best Regards. I tried running an Oracle function in. Net this function has an OUT parameter of type ROWTYPE, when I try to run the function always takes me the following error and ORA-06550: line 1, column 15: PLS-00306: wrong number or types of argu

  • Unable to use copied iRecruitment Create Vacancy Functions

    Hi, I am trying to create 2 versions of the iRecruitment 'Create Vacancy' process, so I want to duplicate the standard functions and do function level personalizations to amend my new process (i.e. remove some of the train steps and others). I have c

  • How to display header detail in more than one page of smartforms

    Hi abapers, I want to print the  smartforms. My header window should conatin only one belnr (accounting number ) in each page.and its detail in main window. how will i do this. Regards, Priya