Views or MV in 11g for dataware house database

Hello All,
I would like to know which is better option to go with Views or Materialised views in DWH. I have read that views should not be used. I need to know the pros & cons for views before I propose to scrap views to my team. Which is better in terms of performance?
Thanks

Views are not designed to improve query performance: http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/schemaob.htm#i20690.
Materialized views are designed to improve query performance: http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/schemaob.htm#CFAIGHFC

Similar Messages

  • DataWare Housing Database Optimization Parameter

    Hi,
    Does any one have any standard on Oracle optimized parameter value with small DataWare housing enviornment?
    Any suggestions are welcome.
    thanks

    As with any tuning problem, there is no "one size fits all" approach. The standard tuning methodology applies here as it does anywhere
    - Figure out how quickly something needs to run
    - If it isn't running quickly enough, figure out what is taking so much time
    - Once you know what is taking so much time, figure out how to reduce the time required. That may involve a global configuration change, it may involve tuning SQL, etc.
    In addition, specifying at least the Oracle version would be critical-- there's a world of difference between an 8.1.7 database and an 11.1 database. If you are managing SGA & PGA separately, data warehouses generally allocate a larger fraction of the RAM to PGA than their OLTP cousins. They generally make greater use of parallelism. They more commonly use compression, bitmap indexes, and partitioning.
    Justin

  • Support::Rebuild SCOM 2012 R2 Dataware house Database

    Hi Folks,
    We have 2 Management server, 1 opsmanager, 1 datawarehousedb + reporting server, 1 acs server. Unfortunately our datawarehousedb server took a hit and database got corrupted. To add to injury we don’t have a valid database backup. We have tried to repair
    the database and it repair all the errors expect catalog errors due to which database keep going into suspect mode. I would like to know if there is a way to rebuild datawarehouse database component of the scom 2012 r2 environment. Any assistance in this matter
    will be very helpful.
    Regards,
    nav
    Regards, Navdeep [a.k.a v-2nas]

    Hi There,
    1. Uninstall Report Server role.
    2. Blow away ReportServer and ReportServerTempDB and the reporting services website (or do ssrs reset)
    3. Uninstall the Data Warehouse component (i.e., Delete the Data Warehouse database)
    4. Install the Data Warehouse (i.e., create the data warehouse database)
    5. Ensure SSRS is working in default state (you can get to http://localhost/reports without error). You'll need to use SSRS Configuration Tool.
    6. Install the Report Server role
    Refer : https://social.technet.microsoft.com/Forums/systemcenter/en-US/ca03b455-8c13-42a7-a810-8a63c913b527/scom-data-warehouse-database-uninstall-and-reinstall-procedures-in-production?forum=operationsmanagerreporting
    Gautam.75801

  • Blog post : "Bug in Create/Edit View Criteria Wizard (JDeveloper 11g)"

    hi
    Using steps 1 to 13 from the blog post "Bug in Create/Edit View Criteria Wizard (JDeveloper 11g)" by Andrejus Baranovskis, I have been able to reproduce the issue he describes.
    see http://andrejusb.blogspot.com/2008/12/bug-in-createedit-view-criteria-wizard.html
    I the blog post comments he writes "... there was no time for me to fill bug in Metalink ...".
    Maybe someone from Oracle can pick it up from this forum post and file it as a bug if it is one (and if possible post the bug number here).
    many thanks
    Jan Vervecken

    The mechanism is to create a reproduceable test case, create a Service Request in metalink.oracle.com, post the test case, and convince the analyst to file it as a bug.
    It may be not efficient at some time, but this the way it is handled.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Install Dataware House on SUSE linux 9.3 with Oracle Rel 2 (9.2.0.4)

    Dear All
    One of my customer needs dataware house on SUSE linux and i am a core DBA working on Prod and development servers upto now. So i want to know the necessary things i need to keep in mind before going to configure datawarehouse for the customer. Can you guys please suggest me the things i need to take care?
    Any URL's PDF's
    Thanks in Advance
    Ravi

    But when i don't give the oracle user all rights, it isn't possible to proceed with theinstallation
    But if you give that rights then it's a security hole. According to your words I guess you have similar enviroment settings:
    ORACLE_BASE=/
    ORACLE_HOME=/<directory_name>
    Why you not installing on deeper directory such as /opt or some your own directory? For example
    ORACLE_BASE=/myoracledir
    ORACLE_HOME=$ORACLE_BASE/<directory_name>
    Then chown -R oracle:dba /myoracledir.
    Then oracle will be owner just for /myoracle directory and all its subdirectories.
    i just could look at the error details, but they didn't described the erroranyway.
    That's not so true. Error log you could find in /tmp/OraInstallYYYY-MM-DD_HH_MI_SS..

  • FI12 Bank Account Reference Info field doesn't show for all house banks

    We are storing some information in the Reference info. field (T012K REFZL) for bank accounts. We have several house banks defined and this field is available for edit for the accounts for those house banks. We are setting up a new house bank, but the reference field does not show up so we cannot edit its value.
    I cannot find any config that allows me to define conditions that would affect the availability of that field. The only difference I can see between the new house bank, is it has a different country than the existing house banks. Existing house banks are in FR and PL, new house bank is in NL.
    Any help would be appreciated.
    Thanks,
    Ellen

    I received one other option from outside this forum that also solves the issue.
    Based on OSS Note 1009154 the below record has to be inserted into the u201CV_TFIBLSCREENu201D data view by using SM30:
    SAPLFHBANKC, 3, 002, NL, 3.

  • Dataware House Slow Down

    Hi,
    We are having some maping on our dataware housing system. When we shutdown that database then it is taking 2-3 hours more to finish.
    What my thinking is when we shutdown database all sql needs to compile again. I dont know whether i am right or wrong.
    Can any one highlight on this? It would be great if some one suggest possible solution for this.
    Platform: Oracle8i on HP UX
    Thanks
    Chetan

    Which shutdown option are you using?
    SHUTDOWN NORMAL is a system quiesce that waits for all sessions to log off - this can take a LONG time
    SHUTDOWN TRANSACTIONAL will wait for all transactions to complete. If you are doing a large load transaction, this can take a long time
    SHUTDOWN IMMEDIATE will terminate all users sessions, roll back any uncommitted transactions and shutdown. If there is a long running transaction that needs to be rolled back, this can take a long time.
    SHUTDOWN ABORT will crash the instance, requiring instance recovery upon startup. This will shut the database quickly.
    NORMAL and TRANSACTIONAL are the cleanest options, but may take too long.
    If your shutdown is taking too long, you can connect via another session, do a SHUTDOWN ABORT and then let the transactions roll back during the instance recovery on startup.

  • Dataware house question

    Hello Everyone,
    In dataware housing what needs to be higher the SGA or PGA? I have read it that it was suppose to be PGA? Can any1 clearify this for me.
    Thanks in advance

    For any database, the amount of RAM allocated to SGA and to PGA will depend heavily on the database workload and the application(s) connecting to the database. There is no rule that states that the SGA should always be bigger than the PGA or vice versa.
    In general, data warehouses allocate a greater percentage of the available memory to PGA than would OLTP databases because data warehouses are generally supporting queries that involve doing relatively large sorts, hash joins, etc for relatively few concurrent users, and those sorts of operations require more PGA. Since data warehouses are commonly doing table scans and blocks read by one query aren't commonly re-read by other queries, the benefit of a lot of SGA tends to be less than for an OLTP system.
    Whether these generalities mean that a particular warehouse allocates more RAM to PGA than to SGA in absolute terms rather than merely in relative terms compared to an OLTP database on the same hardware, though, depends entirely on the specifics of the system.
    Justin

  • Dataware house Daily Maintenance + up and running 24/7

    Hello fellows
    I start working in dataware house environment, need suggestion regarding daily maintenance + running the db 24/7 , & what should be steps to acconmplish this , or forward me good notes .

    You'll need to manage loads into the Warehouse so I would suggest some metric capturing tables to assist there. Backups and monitoring of the backups will need to be in place. Statistics gathered on a predetermined schedule. Aggregations calculated via materialized views. General monitoring of the environment (disk space, CPU, memory).

  • 4EA2 the Detail display for views does not show comments for the view

    I am running in an Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production environment.
    The Detail tab for a View does not show comments added for the view. I would like to request that the Detail tab be modified to display any comments added for the view.
    This is important for me because I want to use the Generate DB doc function (from the right-click menu linked to schemas), to generate documentation, and that function uses the same format as the Detail Tab. The View Comments are important for my users.  

    Hi Penny Halsall,
    Kindly check if that Facebook page can be followed by the public. If the profile can't be followed by the public, then the widget won't work as accepted.
    Facebook provides instructions to check/do this here: https://www.facebook.com/help/201148673283205
    OR
    You can generate the associated HTML code from this page :
    https://developers.facebook.com/docs/plugins/
    Regards
    Sonam

  • Dataware house

    Hello all,
    I am looking for extracting data from Kalido dataware house for reporting in BI 7.0.
    Could any one help me on quick set up tools and steps for UD connect as well as any other method you could suggest specifically for Kalido.
    Points will be rewarded on merit.
    Thanks
    Message was edited by:
            Shail

    make sure there is a JDBC driver available for Kalido, if the drivers are available you can configure it like other UD connect datasources

  • Creating view to get first row for each table !!

    I am having tables(more than 10) which are related using foreign key and primary key relationship.
    Example:
    Table1:
    T1Prim T1Col1 T1Col2
    Table2
    T2For T2Prim T2Col1 T2Col2 T2Col3
    (here T2For will have value same as T1Prim and in my design it has same column name i.e. T1Prim)
    Table3
    T3For T3Prim T3Col1 T3Col2 T3Col3
    (here T3For will have value same as T2Prim)
    and so on.
    The data in the tables is like For table1 there will be one record, for table2 there will be one record and for table 3 there are more than one records.
    Can i view either the first record for each of them or all records from each of them by writing the following view.
    I have written a view like this:
    Create or replace view test (T1Prim,T1Col1, T1Col2,T2Prim,T2Col1 T2Col2, T2Col3, T3Prim,T3Col1, T3Col2, T3Col3)
    As
    Select
    Table1.T1Prim,
    Table1.T1Col1,
    Table1.T1Col2,
    Table2.T2Prim,
    Table2.T2Col1,
    Table2.T2Col2,
    Table2.T2Col3,
    Table3.T3Prim,
    Table3.T3Col1,
    Table3.T3Col2,
    Table3.T3Col3
    From
    Table1,
    Table2,
    Table3
    where
    Table1.Prim = Table2.For
    and Table2.Prim = Table3.For
    When i ran the select statement on the view I am not getting any data. Whereas there is data when select is ran on individual table.
    Can someone please tell me where i am goofing.
    Thanks in the anticipation that i will get some hint to solve this.
    Eagerly waiting for reply.
    Thanks !!

    I mean use a collection :
    Collection Methods
    A collection method is a built-in function or procedure that operates on collections and is called using dot notation. The methods EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, NEXT, EXTEND, TRIM, and DELETE help generalize code, make collections easier to use, and make your applications easier to maintain.
    EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, and NEXT are functions, which appear as part of an expression. EXTEND, TRIM, and DELETE are procedures, which appear as a statement. EXISTS, PRIOR, NEXT, TRIM, EXTEND, and DELETE take integer parameters. EXISTS, PRIOR, NEXT, and DELETE can also take VARCHAR2 parameters for associative arrays with string keys. EXTEND and TRIM cannot be used with index-by tables.
    For more information, see "Using Collection Methods".
    Syntax
    Text description of the illustration collection_method_call.gif
    Keyword and Parameter Description
    collection_name
    This identifies an index-by table, nested table, or varray previously declared within the current scope.
    COUNT
    COUNT returns the number of elements that a collection currently contains, which is useful because the current size of a collection is not always known. You can use COUNT wherever an integer expression is allowed.
    For varrays, COUNT always equals LAST. For nested tables, normally, COUNT equals LAST. But, if you delete elements from the middle of a nested table, COUNT is smaller than LAST.
    DELETE
    This procedure has three forms. DELETE removes all elements from a collection. DELETE(n) removes the nth element from an index-by table or nested table. If n is null, DELETE(n) does nothing. DELETE(m,n) removes all elements in the range m..n from an index-by table or nested table. If m is larger than n or if m or n is null, DELETE(m,n) does nothing.
    EXISTS
    EXISTS(n) returns TRUE if the nth element in a collection exists. Otherwise, EXISTS(n) returns FALSE. Mainly, you use EXISTS with DELETE to maintain sparse nested tables. You can also use EXISTS to avoid raising an exception when you reference a nonexistent element. When passed an out-of-range subscript, EXISTS returns FALSE instead of raising SUBSCRIPT_OUTSIDE_LIMIT.
    EXTEND
    This procedure has three forms. EXTEND appends one null element to a collection. EXTEND(n) appends n null elements to a collection. EXTEND(n,i) appends n copies of the ith element to a collection. EXTEND operates on the internal size of a collection. So, if EXTEND encounters deleted elements, it includes them in its tally. You cannot use EXTEND with index-by tables.
    FIRST, LAST
    FIRST and LAST return the first and last (smallest and largest) subscript values in a collection. The subscript values are usually integers, but can also be strings for associative arrays. If the collection is empty, FIRST and LAST return NULL. If the collection contains only one element, FIRST and LAST return the same subscript value.
    For varrays, FIRST always returns 1 and LAST always equals COUNT. For nested tables, normally, LAST equals COUNT. But, if you delete elements from the middle of a nested table, LAST is larger than COUNT.
    index
    This is an expression that must yield (or convert implicitly to) an integer in most cases, or a string for an associative array declared with string keys.
    LIMIT
    For nested tables, which have no maximum size, LIMIT returns NULL. For varrays, LIMIT returns the maximum number of elements that a varray can contain (which you must specify in its type definition).
    NEXT, PRIOR
    PRIOR(n) returns the subscript that precedes index n in a collection. NEXT(n) returns the subscript that succeeds index n. If n has no predecessor, PRIOR(n) returns NULL. Likewise, if n has no successor, NEXT(n) returns NULL.
    TRIM
    This procedure has two forms. TRIM removes one element from the end of a collection. TRIM(n) removes n elements from the end of a collection. If n is greater than COUNT, TRIM(n) raises SUBSCRIPT_BEYOND_COUNT. You cannot use TRIM with index-by tables.
    TRIM operates on the internal size of a collection. So, if TRIM encounters deleted elements, it includes them in its tally.
    Usage Notes
    You cannot use collection methods in a SQL statement. If you try, you get a compilation error.
    Only EXISTS can be applied to atomically null collections. If you apply another method to such collections, PL/SQL raises COLLECTION_IS_NULL.
    You can use PRIOR or NEXT to traverse collections indexed by any series of subscripts. For example, you can use PRIOR or NEXT to traverse a nested table from which some elements have been deleted.
    EXTEND operates on the internal size of a collection, which includes deleted elements. You cannot use EXTEND to initialize an atomically null collection. Also, if you impose the NOT NULL constraint on a TABLE or VARRAY type, you cannot apply the first two forms of EXTEND to collections of that type.
    If an element to be deleted does not exist, DELETE simply skips it; no exception is raised. Varrays are dense, so you cannot delete their individual elements.
    PL/SQL keeps placeholders for deleted elements. So, you can replace a deleted element simply by assigning it a new value. However, PL/SQL does not keep placeholders for trimmed elements.
    The amount of memory allocated to a nested table can increase or decrease dynamically. As you delete elements, memory is freed page by page. If you delete the entire table, all the memory is freed.
    In general, do not depend on the interaction between TRIM and DELETE. It is better to treat nested tables like fixed-size arrays and use only DELETE, or to treat them like stacks and use only TRIM and EXTEND.
    Within a subprogram, a collection parameter assumes the properties of the argument bound to it. So, you can apply methods FIRST, LAST, COUNT, and so on to such parameters. For varray parameters, the value of LIMIT is always derived from the parameter type definition, regardless of the parameter mode.
    Examples
    In the following example, you use NEXT to traverse a nested table from which some elements have been deleted:
    i := courses.FIRST; -- get subscript of first element
    WHILE i IS NOT NULL LOOP
    -- do something with courses(i)
    i := courses.NEXT(i); -- get subscript of next element
    END LOOP;
    In the following example, PL/SQL executes the assignment statement only if element i exists:
    IF courses.EXISTS(i) THEN
    courses(i) := new_course;
    END IF;
    The next example shows that you can use FIRST and LAST to specify the lower and upper bounds of a loop range provided each element in that range exists:
    FOR i IN courses.FIRST..courses.LAST LOOP ...
    In the following example, you delete elements 2 through 5 from a nested table:
    courses.DELETE(2, 5);
    In the final example, you use LIMIT to determine if you can add 20 more elements to varray projects:
    IF (projects.COUNT + 20) < projects.LIMIT THEN
    -- add 20 more elements
    Related Topics
    Collections, Functions, Procedures
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_elems7.htm#33054
    Joel P�rez

  • When attempting to view the date track history for one employee, errors out

    Hi All
    When I attempt to view the date track history for one employee, it gives errors.
    To get the details, the navigation is :
    1. Search for employee xxxxxx
    2. click on Assignment button
    3. click on Date Track History.
    4. Receive error APP-DT-52554.
    5. Click OK on error message
    6. click on Full History button.
    7. Receive error APP-PAY-06153
    What could be the problem and how to solve this?
    Regards
    Rahman

    Sounds as if there is an inconsistency with the date tracked records. Can you check the records through TOAD or SQL Plus?
    Have alook at MetaLInk article 343070.1 which refers to the second error message.
    Regards
    Tim

  • To view reports in new page for each cutomer using Report Designer

    HI all
    I have a requirement to view the data (key figures) for each customer in a new page.
    I have created the same using the Report Designer tool.
    Now there is setting for this Group Header 'Customer' i have selected the option 'repeat group header on each page'
    still the query when generated, gives fine results for certain cases but not for all.
    like it will show the each customers in a fresh page for some pages , then in midst there would some 2-3 customers in the same page.
    There is no relation between these customers , they are same as the other customers, no difference at all.then i am not able to figure out the reason why it is behaving so odd.
    Thanks
    Ramesh

    Ramesh,
    right now there really is no way to solve what you are looking for.  There partial solutions, but you will not be able to force a page break in a dynamic report.
    Here is what I have faced, and what I have come up with so far:
    I have a series of reports that have the same column heading, but spread over 5 pages in a fixed structure.  I need to be able to re-use the header and the general report design with 6 reports.  Here is my solution:
    1. Create an outline of the report.  I did all the formatting by creating a report section for each page.  You can force page breaks between the pages.  Upgrade to patch 1502 (came out last week) and you will see some new functionality (such as fit to page, page numbers, etc).
    2. Insert all you page breaks and do all the formatting.
    3. Insert an infoprovider.  Once in, you can just drag and drop the key figure cells into your formatted report.
    4. Create additional modification for formatting as needed.
    This fixes my problem (for now), but I had to do a lot of work to come up with this.  Also, the latest patch (1501 and 1502) has created an issue for me - there is a null exception when I try to use a variable or a filter value in the report body - I can't save the report.  I have an OSS message out, but our BASIS guys are going to be taking the lead on troubleshooting this.
    The reason that you are seeing some customers on the new pages is probably because of "how the cookie falls" - they just fit that way.
    I am trying to be positive and overcome the limitations that are in place right now. If my technical issue is solved, I would recommend upgrading to the new patch (1403 is the latest stable one in my opinion)
    good luck
    Pavel

  • How can I view my full billing history for the app and music stores without iTunes installed?

    I just received an email receipt from Paypal showing a $12.99 purchase from iTunes. I almost NEVER purchase anything over around five dollars in the app or music store. Since PayPal does not show what this purchase was for, I have not received the receipt from Apple yet, and I cannot find anyway to look up online what this purchase was for....I need help to find out ASAP what this purchase was. If my account has been compromised or if I have been incorrectly charged for something, I would like to get the issue handled immediately. I do not want to install iTunes on my PC (nor should I have to for Pete's sake), but I cannot see anything recent at all in my app or music history on my iPad (not that I would ever purchase anything for $12.99 anyway...I just don't). Thanks in advance for any tips!

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

Maybe you are looking for