Uses of force view

Hi All,
Can you tell me what are the uses of force view?
Thanks in advance.

It's relatively common to find in install scripts (and/or in import & export). If you're going to create dozens of different views which depend on various other views and/or tables, figuring out the proper order to drop and/or create each view and ensuring that the build script is updated with that information every time can be rather painful and tedious. It's much easier to FORCE the creation of the views in some human-reasonable order (i.e. alphabetically) and compile everything at the end.
Justin

Similar Messages

  • Sql retrives record but fails when used in a view

    Hi,
    I have a unique problem. I am able to retrive a record based on a certain criteria using a SQL.
    When the same sql is used in a create view statement the records do not show up.
    I did a count on records using the sql and get 54,521 where
    a count on the number of records from a view created using the same sql gives a lower number 40,967
    Here is the script
    /* Formatted on 2009/10/07 16:22 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE FORCE VIEW ssvsec2_js (term_code_key,
    crn_key,
    seq_number_key,
    active_section_ind,
    active_course_ind,
    course_coreq_ind,
    course_prereq_ind,
    section_coreq_ind,
    section_prereq_ind,
    course_eff_term_code,
    coll_code,
    dept_code,
    levl_code1,
    levl_code2,
    levl_code3,
    levl_code4,
    divs_code,
    subj_code,
    crse_number,
    ceu_ind,
    csta_code,
    credit_hours,
    credit_hours_low,
    credit_hours_high,
    credit_hours_ind,
    billing_hours,
    billing_hours_low,
    billing_hours_high,
    billing_hours_ind,
    ssts_code,
    camp_code,
    gmod_code,
    title,
    sapr_code,
    census_enrollment1,
    census_enrollment_date1,
    census_enrollment2,
    census_enrollment_date2,
    projected_enrollment,
    maximum_enrollment,
    actual_enrollment,
    seats_available,
    ptrm_code,
    ptrm_start_date,
    ptrm_end_date,
    link_identifier,
    begin_time1,
    end_time1,
    bldg_code1,
    room_code1,
    schd_code_meet1,
    monday_ind1,
    tuesday_ind1,
    wednesday_ind1,
    thursday_ind1,
    friday_ind1,
    saturday_ind1,
    sunday_ind1,
    begin_time2,
    end_time2,
    bldg_code2,
    room_code2,
    schd_code_meet2,
    monday_ind2,
    tuesday_ind2,
    wednesday_ind2,
    thursday_ind2,
    friday_ind2,
    saturday_ind2,
    sunday_ind2,
    begin_time3,
    end_time3,
    bldg_code3,
    room_code3,
    schd_code_meet3,
    monday_ind3,
    tuesday_ind3,
    wednesday_ind3,
    thursday_ind3,
    friday_ind3,
    saturday_ind3,
    sunday_ind3,
    begin_time4,
    end_time4,
    bldg_code4,
    room_code4,
    schd_code_meet4,
    monday_ind4,
    tuesday_ind4,
    wednesday_ind4,
    thursday_ind4,
    friday_ind4,
    saturday_ind4,
    sunday_ind4,
    begin_time5,
    end_time5,
    bldg_code5,
    room_code5,
    schd_code_meet5,
    monday_ind5,
    tuesday_ind5,
    wednesday_ind5,
    thursday_ind5,
    friday_ind5,
    saturday_ind5,
    sunday_ind5,
    begin_time6,
    end_time6,
    bldg_code6,
    room_code6,
    schd_code_meet6,
    monday_ind6,
    tuesday_ind6,
    wednesday_ind6,
    thursday_ind6,
    friday_ind6,
    saturday_ind6,
    sunday_ind6,
    begin_time7,
    end_time7,
    bldg_code7,
    room_code7,
    schd_code_meet7,
    monday_ind7,
    tuesday_ind7,
    wednesday_ind7,
    thursday_ind7,
    friday_ind7,
    saturday_ind7,
    sunday_ind7,
    begin_time8,
    end_time8,
    bldg_code8,
    room_code8,
    schd_code_meet8,
    monday_ind8,
    tuesday_ind8,
    wednesday_ind8,
    thursday_ind8,
    friday_ind8,
    saturday_ind8,
    sunday_ind8,
    begin_time9,
    end_time9,
    bldg_code9,
    room_code9,
    schd_code_meet9,
    monday_ind9,
    tuesday_ind9,
    wednesday_ind9,
    thursday_ind9,
    friday_ind9,
    saturday_ind9,
    sunday_ind9,
    begin_time10,
    end_time10,
    bldg_code10,
    room_code10,
    schd_code_meet10,
    monday_ind10,
    tuesday_ind10,
    wednesday_ind10,
    thursday_ind10,
    friday_ind10,
    saturday_ind10,
    sunday_ind10,
    attr_code1,
    attr_code2,
    additional_attributes_ind,
    primary_instructor_id,
    primary_instructor_last_name,
    primary_instructor_first_name,
    primary_instructor_middle_init,
    instructor_id2,
    instructor_last_name2,
    instructor_first_name2,
    instructor_middle_init2,
    instructor_id3,
    instructor_last_name3,
    instructor_first_name3,
    instructor_middle_init3,
    additional_instructors_ind,
    coll_code_override,
    divs_code_override,
    dept_code_override,
    schd_code1,
    schd_workload1,
    schd_max_enrl1,
    schd_adj_workload1,
    schd_code2,
    schd_workload2,
    schd_max_enrl2,
    schd_adj_workload2,
    schd_code3,
    schd_workload3,
    schd_max_enrl3,
    schd_adj_workload3,
    schd_code4,
    schd_workload4,
    schd_max_enrl4,
    schd_adj_workload4
    AS
    SELECT ssbsect_term_code, ssbsect_crn, ssbsect_seq_numb,
    SUBSTR (f_active_section_ind (ssbsect_ssts_code), 1, 1),
    SUBSTR (f_active_course_ind (a.scbcrse_csta_code), 1, 1),
    SUBSTR (f_check_for_course_coreqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    SUBSTR (f_check_for_course_prereqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1,
    1
    SUBSTR (f_check_for_section_coreqs (ssbsect_term_code, ssbsect_crn),
    1,
    1
    SUBSTR (f_check_for_section_prereqs (ssbsect_term_code,
    ssbsect_crn,
    1,
    1
    a.scbcrse_eff_term, a.scbcrse_coll_code, a.scbcrse_dept_code,
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    1,
    2
    a.scbcrse_divs_code, ssbsect_subj_code, ssbsect_crse_numb,
    a.scbcrse_ceu_ind, a.scbcrse_csta_code,
    NVL (ssbsect_credit_hrs, a.scbcrse_credit_hr_low),
    a.scbcrse_credit_hr_low, a.scbcrse_credit_hr_high,
    a.scbcrse_credit_hr_ind,
    NVL (ssbsect_bill_hrs, a.scbcrse_bill_hr_low),
    a.scbcrse_bill_hr_low, a.scbcrse_bill_hr_high,
    a.scbcrse_bill_hr_ind, ssbsect_ssts_code, ssbsect_camp_code,
    NVL (ssbsect_gmod_code,
    SUBSTR (f_default_gmod (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    NVL (ssbsect_crse_title, a.scbcrse_title), ssbsect_sapr_code,
    ssbsect_census_enrl, ssbsect_census_enrl_date,
    ssbsect_census_2_enrl, ssbsect_census_2_date, ssbsect_proj_enrl,
    ssbsect_max_enrl, ssbsect_enrl, ssbsect_seats_avail,
    ssbsect_ptrm_code, ssbsect_ptrm_start_date, ssbsect_ptrm_end_date,
    ssbsect_link_ident, k.ssrmeet_begin_time, k.ssrmeet_end_time,
    k.ssrmeet_bldg_code, k.ssrmeet_room_code, k.ssrmeet_schd_code,
    k.ssrmeet_mon_day, k.ssrmeet_tue_day, k.ssrmeet_wed_day,
    k.ssrmeet_thu_day, k.ssrmeet_fri_day, k.ssrmeet_sat_day,
    k.ssrmeet_sun_day, l.ssrmeet_begin_time, l.ssrmeet_end_time,
    l.ssrmeet_bldg_code, l.ssrmeet_room_code, l.ssrmeet_schd_code,
    l.ssrmeet_mon_day, l.ssrmeet_tue_day, l.ssrmeet_wed_day,
    l.ssrmeet_thu_day, l.ssrmeet_fri_day, l.ssrmeet_sat_day,
    l.ssrmeet_sun_day, m.ssrmeet_begin_time, m.ssrmeet_end_time,
    m.ssrmeet_bldg_code, m.ssrmeet_room_code, m.ssrmeet_schd_code,
    m.ssrmeet_mon_day, m.ssrmeet_tue_day, m.ssrmeet_wed_day,
    m.ssrmeet_thu_day, m.ssrmeet_fri_day, m.ssrmeet_sat_day,
    m.ssrmeet_sun_day, n.ssrmeet_begin_time, n.ssrmeet_end_time,
    n.ssrmeet_bldg_code, n.ssrmeet_room_code, n.ssrmeet_schd_code,
    n.ssrmeet_mon_day, n.ssrmeet_tue_day, n.ssrmeet_wed_day,
    n.ssrmeet_thu_day, n.ssrmeet_fri_day, n.ssrmeet_sat_day,
    n.ssrmeet_sun_day, o.ssrmeet_begin_time, o.ssrmeet_end_time,
    o.ssrmeet_bldg_code, o.ssrmeet_room_code, o.ssrmeet_schd_code,
    o.ssrmeet_mon_day, o.ssrmeet_tue_day, o.ssrmeet_wed_day,
    o.ssrmeet_thu_day, o.ssrmeet_fri_day, o.ssrmeet_sat_day,
    o.ssrmeet_sun_day, p.ssrmeet_begin_time, p.ssrmeet_end_time,
    p.ssrmeet_bldg_code, p.ssrmeet_room_code, p.ssrmeet_schd_code,
    p.ssrmeet_mon_day, p.ssrmeet_tue_day, p.ssrmeet_wed_day,
    p.ssrmeet_thu_day, p.ssrmeet_fri_day, p.ssrmeet_sat_day,
    p.ssrmeet_sun_day, q.ssrmeet_begin_time, q.ssrmeet_end_time,
    q.ssrmeet_bldg_code, q.ssrmeet_room_code, q.ssrmeet_schd_code,
    q.ssrmeet_mon_day, q.ssrmeet_tue_day, q.ssrmeet_wed_day,
    q.ssrmeet_thu_day, q.ssrmeet_fri_day, q.ssrmeet_sat_day,
    q.ssrmeet_sun_day, r.ssrmeet_begin_time, r.ssrmeet_end_time,
    r.ssrmeet_bldg_code, r.ssrmeet_room_code, r.ssrmeet_schd_code,
    r.ssrmeet_mon_day, r.ssrmeet_tue_day, r.ssrmeet_wed_day,
    r.ssrmeet_thu_day, r.ssrmeet_fri_day, r.ssrmeet_sat_day,
    r.ssrmeet_sun_day, s.ssrmeet_begin_time, s.ssrmeet_end_time,
    s.ssrmeet_bldg_code, s.ssrmeet_room_code, s.ssrmeet_schd_code,
    s.ssrmeet_mon_day, s.ssrmeet_tue_day, s.ssrmeet_wed_day,
    s.ssrmeet_thu_day, s.ssrmeet_fri_day, s.ssrmeet_sat_day,
    s.ssrmeet_sun_day, t.ssrmeet_begin_time, t.ssrmeet_end_time,
    t.ssrmeet_bldg_code, t.ssrmeet_room_code, t.ssrmeet_schd_code,
    t.ssrmeet_mon_day, t.ssrmeet_tue_day, t.ssrmeet_wed_day,
    t.ssrmeet_thu_day, t.ssrmeet_fri_day, t.ssrmeet_sat_day,
    t.ssrmeet_sun_day, e1.ssrattr_attr_code, e2.ssrattr_attr_code,
    SUBSTR (f_more_attributes (scbcrse_subj_code,
    scbcrse_crse_numb,
    scbcrse_eff_term
    1,
    1
    x.spriden_id, NVL (x.spriden_last_name, 'STAFF'),
    x.spriden_first_name, SUBSTR (x.spriden_mi, 1, 1), y.spriden_id,
    y.spriden_last_name, y.spriden_first_name,
    SUBSTR (y.spriden_mi, 1, 1), z.spriden_id, z.spriden_last_name,
    z.spriden_first_name, SUBSTR (z.spriden_mi, 1, 1),
    DECODE (u.spriden_pidm, NULL, 'N', 'Y'), ssbovrr_coll_code,
    ssbovrr_divs_code, ssbovrr_dept_code, f1.scrschd_schd_code,
    f1.scrschd_workload, f1.scrschd_max_enrl, f1.scrschd_adj_workload,
    f2.scrschd_schd_code, f2.scrschd_workload, f2.scrschd_max_enrl,
    f2.scrschd_adj_workload, f3.scrschd_schd_code, f3.scrschd_workload,
    f3.scrschd_max_enrl, f3.scrschd_adj_workload, f4.scrschd_schd_code,
    f4.scrschd_workload, f4.scrschd_max_enrl, f4.scrschd_adj_workload
    FROM scbcrse a,
    ssbovrr,
    spriden x,
    spriden y,
    ssrmeet k,
    ssrmeet l,
    ssrmeet m,
    ssrmeet n,
    ssrmeet o,
    ssrmeet p,
    ssrmeet q,
    ssrmeet r,
    ssrmeet s,
    ssrmeet t,
    scrschd f1,
    scrschd f2,
    scrschd f3,
    scrschd f4,
    ssrattr e1,
    ssrattr e2,
    spriden z,
    spriden u,
    ssbsect
    WHERE x.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn,
    ssbsect_term_code,
    'Y',
    AND y.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 1)
    AND z.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 2)
    AND u.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 3)
    AND ssbovrr_term_code(+) = ssbsect_term_code
    AND ssbovrr_crn(+) = ssbsect_crn
    AND a.scbcrse_subj_code = ssbsect_subj_code
    AND a.scbcrse_crse_numb = ssbsect_crse_numb
    AND a.scbcrse_eff_term =
    (SELECT MAX (b.scbcrse_eff_term)
    FROM scbcrse b
    WHERE b.scbcrse_subj_code = ssbsect_subj_code
    AND b.scbcrse_crse_numb = ssbsect_crse_numb
    AND b.scbcrse_eff_term <= ssbsect_term_code)
    AND k.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    1
    AND l.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    2
    AND m.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    3
    AND n.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    4
    AND o.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    5
    AND p.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    6
    AND q.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    7
    AND r.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    8
    AND s.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    9
    AND t.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    10
    AND f1.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    AND f2.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    AND f3.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    AND f4.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    AND e1.ssrattr_term_code(+) = ssbsect_term_code
    AND e1.ssrattr_crn(+) = ssbsect_crn
    AND e1.ssrattr_attr_code(+) = 'SWS'
    AND e2.ssrattr_term_code(+) = ssbsect_term_code
    AND e2.ssrattr_crn(+) = ssbsect_crn
    AND e2.ssrattr_attr_code(+) LIKE 'TM%';
    Thanks ,
    Irene

    Welcome to the forums !
    If this issue is not related to a database upgrade, pl post the question in the "SQL and PL/SQL" or "Database - General" forums for a better/faster response.
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    HTH
    Srini

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • Create Force View

    Hi all,
    When I import the dumpfile I get the follwing errors...
    IMP-00041: Warning: object created with compilation warnings
    "CREATE FORCE VIEW "uni"."V_F_OFS_REQUEST_DETAIL" "
    " ("RECID","XMLRECORD","APPLICATION","NAPPLICATION","VERSION","NVERSION","F"
    "UNCTION","NFUNCTION","TRANS_REFERENCE","NTRANS_REFERENCE","USER_NAME","NUSE"
    "R_NAME","COMPANY","NCOMPANY","DATE_TIME_RECD","NDATE_TIME_RECD","DATE_TIME_"
    "QUEUE","NDATE_TIME_QUEUE","DATE_TIME_PROC","NDATE_TIME_PROC","STATUS","NSTA"
    "TUS","MSG_IN","NMSG_IN","MSG_OUT","NMSG_OUT","ACTION","NACTION","GTS_CONTRO"
    "L","NGTS_CONTROL","NO_OF_AUTH","NNO_OF_AUTH") AS "
    "SELECT x.RECID, x.XMLRECORD.getClobVal() "XMLRECORD""
    ",NVL(extractValue(x.xmlrecord,'/row/c1'),'^A') "APPLICATION",NVL(NUMCAST(ex"
    "tractValue(x.xmlrecord,'/row/c1')),0) "nAPPLICATION",NVL(extractValue(x.xml"
    "record,'/row/c2'),'^A') "VERSION",NVL(NUMCAST(extractValue(x.xmlrecord,'/ro"
    "w/c2')),0) "nVERSION",NVL(extractValue(x.xmlrecord,'/row/c3'),'^A') "FUNCTI"
    "ON",NVL(NUMCAST(extractValue(x.xmlrecord,'/row/c3')),0) "nFUNCTION",NVL(ext"
    "ractValue(x.xmlrecord,'/row/c4'),'^A') "TRANS_REFERENCE",NVL(NUMCAST(extrac"
    "tValue(x.xmlrecord,'/row/c4')),0) "nTRANS_REFERENCE",NVL(extractValue(x.xml"
    "record,'/row/c5'),'^A') "USER_NAME",NVL(NUMCAST(extractValue(x.xmlrecord,'/"
    "row/c5')),0) "nUSER_NAME",NVL(extractValue(x.xmlrecord,'/row/c6'),'^A') "CO"
    "MPANY",NVL(NUMCAST(extractValue(x.xmlrecord,'/row/c6')),0) "nCOMPANY",NVL(e"
    How to overcome this? and how to avoid this? Pls suggest me
    Thanks in advance..

    Yes, force view command never gives an error, its always a warning. And if you are getting this error during import, dont worry, view have been created in your schema by import command. This might happen when view is refers to any table that actually is not present. In your case it might be a case when view in the current schema refers table in another schema. So i think you should just try to query that view in the schema where you have just done the import.
    Also to verify that why error came, you can go to the source schema and check for the base table of the view under consideration. From there you can get useful information about the actual base table and why import showing up the warning.

  • Force view

    Hello Guys,
    Can you tell me what is the use of view when we create with FORCE option if underliying table is not available ?
    CREATE OR REPLACE FORCE VIEW MY_VIEW AS SELECT * FROM EMP;
    Now View My_View will be created even if the emp table is not available. But where we can use this view ?. What is the applicatin of My_View when we know that EMP table is not available ?.
    Thanking you.

    Simple demonstration...
    SQL> create or replace view my_view as select * from empdept;
    create or replace view my_view as select * from empdept
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> create or replace force view my_view as select * from empdept;
    Warning: View created with compilation errors.
    SQL> select * from my_view;
    select * from my_view
    ERROR at line 1:
    ORA-04063: view "SCOTT.MY_VIEW" has errors
    SQL> create table empdept as select ename, deptno from emp;
    Table created.
    SQL> select * from my_view;
    ENAME          DEPTNO
    SMITH              20
    ALLEN              30
    WARD
    JONES              20
    MARTIN             30
    BLAKE
    CLARK              10
    SCOTT              20
    KING               10
    TURNER             30
    ADAMS              20
    JAMES              30
    FORD               20
    MILLER             10
    14 rows selected.
    SQL>

  • Very high parse times for query rewrite using cube materialized views

    We recently upgraded to version 11.2.0.2 (both AWM and Oracle database server). We are using cube materialized views with query rewrite enabled. Some observations of changes that took place when we rebuilt all the dimensions and cubes in this version:
    1. Queries against the base tables take about 35 seconds to parse. Then they execute in a tenth of a second. Even simple queries that just get a sum of the amount from the fact table (which is joined to all the dimensions) takes that long to parse. Once parsed, the queries fly.
    2. I noticed that the materialized views used to use grouping sets in the group by clause in version 11.2.0.1, but now they use group by rollup, rollup, rollup...
    If we disable query rewrite on the MV or for my session, parse times drop to less than a second. Ideas?

    There does appear to be a slow down in parse times between 11.1.0.7 and 11.2. We are still investigating this, but in the meantime here is a way to force the code in 11.2 to generate a GROUPING SETS clause instead of the new ROLLUP syntax.
    The trick is to create a dummy hierarchy containing only the leaf level. This is necessary for all dimensions that currently have a single hierarchy. As a simple example I created a dimension, PROD, with three levels, A, B, and C, in a single hierarchy. I then created a one dimensional cube, PC. Here is the SELECT statement for the MV in 11.2. Note the ROLLUP clause in the GROUP BY.
    SELECT
      GROUPING_ID(T3."CLASS_ID", T3."FAMILY_ID", T3."ITEM_ID")  SYS_GID,
      (CASE GROUPING_ID(T3."CLASS_ID", T3."FAMILY_ID", T3."ITEM_ID")
       WHEN 3
       THEN TO_CHAR(('A_' || T3."CLASS_ID") )
       WHEN 1
       THEN TO_CHAR(('B_' || T3."FAMILY_ID") )
       ELSE TO_CHAR(('C_' || T3."ITEM_ID") )  END)     "PROD",
      T3."CLASS_ID" "D1_PROD_A_ID",
      T3."FAMILY_ID" "D1_PROD_B_ID",
      T3."ITEM_ID" "D1_PROD_C_ID",
      SUM(T2."UNIT_PRICE")     "PRICE",
      COUNT(T2."UNIT_PRICE")  "COUNT_PRICE",
      COUNT(*)  "SYS_COUNT"
    FROM
      GLOBAL."PRICE_AND_COST_FACT" T2,
      GLOBAL."PRODUCT_DIM" T3
    WHERE
      (T3."ITEM_ID" = T2."ITEM_ID")
    GROUP BY
      (T3."CLASS_ID") ,
      ROLLUP ((T3."FAMILY_ID") , (T3."ITEM_ID") )Next I modified the dimension to add a new hierarchy, DUMMY, containing just the leaf level, C. Once I have mapped the new level and re-enabled MVs, I get the following formulation.
    SELECT
      GROUPING_ID(T3."CLASS_ID", T3."FAMILY_ID", T3."ITEM_ID")  SYS_GID,
      (CASE GROUPING_ID(T3."CLASS_ID", T3."FAMILY_ID", T3."ITEM_ID")
       WHEN 3
       THEN ('A_' || T3."CLASS_ID")
       WHEN 1
       THEN ('B_' || T3."FAMILY_ID")
       WHEN 0
       THEN ('C_' || T3."ITEM_ID")
       ELSE NULL END)  "PROD",
      T3."CLASS_ID" "D1_PROD_A_ID",
      T3."FAMILY_ID" "D1_PROD_B_ID",
      T3."ITEM_ID" "D1_PROD_C_ID",
      SUM(T2."UNIT_PRICE")     "PRICE",
      COUNT(T2."UNIT_PRICE")  "COUNT_PRICE",
      COUNT(*)  "SYS_COUNT"
    FROM
      GLOBAL."PRICE_AND_COST_FACT" T2,
      GLOBAL."PRODUCT_DIM" T3
    WHERE
      (T3."ITEM_ID" = T2."ITEM_ID")
    GROUP BY
      GROUPING SETS ((T3."CLASS_ID") , (T3."FAMILY_ID", T3."CLASS_ID") , (T3."ITEM_ID", T3."FAMILY_ID", T3."CLASS_ID") )This puts things back the way they were in 11.1.0.7 when the GROUPING SETS clause was used in all cases. Note that the two queries are logically equivalent.

  • I can't launch Safari. When I right click on the icon, the "Application not responding" is grey and no matter what method I use to Force quit, I get no response.

    I can't launch Safari. When I right click on the icon, the "Application not responding" is grey and no matter what method I use to Force quit, I get no response.

    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.Safari.plist. Move the .plist to your desktop.
    Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • How to use a Table View in AppleScriptObjC

    How can I use a table view and add data to it? And how can I display a button cell and image cell in the table? Thanks.

    Hi all,
    Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
    for ex : select * from (tab_name) where....?
    Can we do inner join on such select statements? If so how?
    Thanks & Regards,
    Mallik.

  • Re: [SunONE-JATO] How to use a tiled view without a model

    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Re: [SunONE-JATO] Re: How to use a tiled view without a model

    I'm not sure what is different for you now. You still parse the string
    and put it into a data structure. Before the data structure was a
    vector, in JATO its just a model with a "hidden" data structure (a hash
    map).
    MVC only really comes into play when you talk about where your write
    this code, and where the data structure is being stored. So really, JATO
    takes care of half of the MVC'ness of it all (where the data is store).
    You just decide where to be the code to populate the model.
    Make sense?
    Is there something different required of you in JATO in this scenario
    that I am not grasping?
    c
    Hoskins, John D. wrote:
    Thanks for the feedback.
    The problem I was solving involved a single string, which contained
    delimited subsets of information.
    The string looked like
    this:"time|analyst|description|time|analyst|description|..."
    In ND, I parsed it apart into it's components (time vector, analyst vector,
    description vector), populated the repeated.
    With JATO, how would I make a model for something that doesn't have a
    database component like this?
    I'm pretty new to this MVC thing, so bear with me.
    John D. Hoskins
    Telephone & Data Systems
    Application Development & Support
    Voice: 608.664.8263
    Fax: 608.664.8288
    Email: john.hoskins@t...
    -----Original Message-----
    From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent: 6/26/2002 3.22 PM
    Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
    I guess the only thing "weird" (for lack of a better term) about what
    you are doing is that your are populating the model on the "display
    cycle". Typically, the cycle goes like this:
    Request -> populate model -> update data store -> retrieve data to
    populate model -> display data
    some of the above steps are optional but hopefully you get the point I
    am making.
    So what you are doing is:
    Request -> populate model/display data
    If it works for you, then it's not necessarilly wrong. But I would
    probably have my model populated before I forwarded to the target
    (displaying view bean) or at a minimum, in the begin display event of
    the view bean or the tiled view, but not during the iteration of the
    tiled view.
    c
    jhoskins wrote:
    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- Craig V. Conover wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • I am trying to open a website that is using Microsoft content viewer, and the page does not show. Any ideas on how to view this site using firefox. It works on IE.

    I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • HT3053 I have a 13inch MacBook Pro and when I switch it on the apple logo appears then a slot and the circular symbol which is turning and then before opening the home screen it switches off again. Is there a sequence that I can use to force it to load.

    I have got a 13 inch MacBook Pro and it got stuck in a loop so I switched it off by holding the power button down and now when I switch it on the apple logo appears then I get a blank slot at the bottom of the screen then the circle appears and rotates and then it switches off again, I have tried starting it again with the system disc that came with it when it was new but it makes no difference. Is there a sequence that I can use to force it to start.

    Sorry. We can't help you. It's no longer an iPhone. Apple won't touch it.
    Take it to whoever replaced the screen and see if they can help you.
    iPhones are not user servicable and Apple does not sell iPhone parts at all. I'd be surprised if you were actually able to back it up at this point. It sounds like it's completely borked.

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

Maybe you are looking for

  • Cannot get node count to work

    I have an xslt that processes data which results in the following xml: <filteredCollegeList> <filteredCollegeList> <Index indexKey="COLLEGE" text="College"> <IndexEntry entryKey="College of Agriculture & Life Sciences" processCollege="Yes" CollegeCod

  • How to delete empty Last Import albums on Ipad2

    This is both a question and a partial solution to anyone who has found empty Last Import albums on their Ipad2 after upgrading to IOS 5.1.  I ended up with three Last Import albums on my Ipad under the Photos App after the upgrade to 5.1 and Iphoto a

  • Double byte characters turn into squares at PDF export use Unicode font

    Hi all, We developing with Visual Studio 2008, .NET 2.0 and Crystal Report XI Release 2 SP5 an international windows application. We use the font Arial Unicode MS in the rpt file. We translate the fix texts with the Crystal Translator (3.2.2.299). On

  • Printing with Adobe Air and Flex

    Hi I have an Advanced printing application, developped using C++. we want to port it to the web; we are studying Flex and Adobe Air to see if we can have what we want. the most important thing is to be capable to print automatically I mean without ch

  • Problems after updating to 4.2.1

    Hi, I cant sync aby apps or music since I updated to 4.2.1. Tells me an internal error has occurred. I tried to restore my phone back to factory setting multiple times. Any tips on what to try next ?