Define a view that refers to the tables of 50?

Hello

I have a problem at hand, and I'm not sure what I can adopt the right solution.

There is a demand which has just hit the DB (v11.2) to access a single view "XVIEW. This view has a simple sql & join that is based on two tables XTABLE1 and XTABLE2.

Now, the new version of the schema that has been released has split XTABLE2 into 50 paintings different each with the same structure. For the correction of the question, there are two solutions I could think:

1. create 50 views above 50 paintings and difficulty of enforcement to designate these 50 new views. Note: the app has hundreds of references and it has an important work involved.

2 rewrite XVIEW refer to 50 paintings. You can avoid so modify the application, however I do not know if this is feasible and will have a decent performance.

I would go for solution 2, because it requires a lot less effort, but do not know how to set the view, only the 50 table structure is the same that I can just union of them?

Thanks for the help.

Hello

Hozy says:
Frank, thank you for help out me.

What you are proposing is that I should recreate the XVIEW view what union did all (as the lines will be unique) 50 paintings, however performance will be a problem unless I can create a materialized views.

I know of materialized views, what it is used for static pre-calculated data type.

A materialized view is pre calculated; This is what makes it faster. The time and effort spent, in doing so, the UNION is moved from the moment you make queries at the same time when you refresh the materialized view. If it's more or less total time depends on how many times you query the view and how often you refresh. In any case, the performance when you perform them queries will be as good as possible.
Views materialized ar often used in data wharehouses, where then can only change once a month, but they are also often used in situations like yours, when data changes on a daily basis, or even more frequently.

In my case, the little 50 tables data can change once every 24 hours and all this comes at some point. Queries that hit XVIEW should obtain the most recent data. Is there a way I can define a materialized view that will pick up the new data in the base tables 50?

I see it; you have some job that turns to, say, 02:00 every morning and changes some, or perhaps all, 50 tables. You can refresh the materialized view to, say, 04:00 daily, or at some point, when you are sure that the changes made to the tables of the Basic are completed. Any query that uses the view materialized between 02:00 and 04:00 will get outdated data.
Otherwise, you could do the materilaized view Refresh whenever one of these base tables changes, but it uses more resources, including your time and effort to set up.

Tags: Database

Similar Questions

  • Error: demo.model.AppModule: demo.model.AppModule application module has an instance of the EmpByEmail1 view that refers to an invalid view object.

    • Error: demo.model.AppModule: demo.model.AppModule application module has an instance of the EmpByEmail1 view that refers to an invalid view object.

    Initially, I created view object named EmpByEmail... because this EmpByEmail1 is created in datacontrols... I deleted EmpByEmail in demo.model by mistake and I created again with the same name EmpBYEmail another object view... yet another EmpByEmail2 is created in datacontrols...

    while I'm running I get following error:

    • Error: demo.model.AppModule: demo.model.AppModule application module has an instance of the EmpByEmail1 view that refers to an invalid view object.

    User, please say it is your Jdev version.

    Open the module of the application in source mode and remove the old definition of the use of the source view.

    Timo

  • Dreamweaver CS5, MySQL, PHP: Why the views are listed under the tables in connection

    Using Dreamweaver C5 on a remote server with MySQL and PHP, I notifce the opinion that I defined in the database are the list under tables in the login window, not under views. Probably does not really matter, but I was wondering if there is a way to influence this - keeping views listed separately in the tables.

    Hello

    This has to do with how MySQL stores the view in the database, (a similar problem occurs with procedures) that they are stored as part of the entire database.

    View on there own are not natively supported in dreamweaver.

    PZ

  • Get the error in the event viewer that refers to Repultemtn. How to remove it?

    Original title: Repultemtn

    Every day I receive at least one error in Event Viewer-system that refers to Repultemtn:

    The Repultemtn service failed to start due to the following error:
    The system cannot find the specified file.
    The only trace I can find is the reference to a former pilot of Repultemtn in the registry. When I search online, I don't find any reference to this driver. Someone met by this old driver before?

    I have a last question. The reference to Repultemtn has now disappeared from current control set in the registry, but it is still listed in ControlSet004 and cannot be deleted. Should I be worried?

    Look at the key HKEY_LOCAL_MACHINE\SYSTEM\Select to see what the setting is, if it's a set of failed control, you can skip the whole game, if it's the LastKnownGood game it will be gone once you restart the computer.

    When you start Windows the bootstrapper checks the key HKLM\SYSTEM\Select to see which setting it should load, if 004 is a set of failed control will never be loaded again, if it's the LastKnownGood control set it will be charged only if you use the F8 advanced boot menu and select this option to start the computer to the last good known Configuration.

    After that you start the computer and successfully log on the LKGC is copied over from the set of controls that has been used to start the computer, these entries have been removed from the default (CurrentControlSet) If you restart the computer normally with the control set by default the LastKnownGood (which is a copy of the set of control kick successfully) can no longer contain the entries.  The LastKnownGood game should NEVER be modified manually... otherwise he will not be the same game as the one that was last with success started, that's why in most circumstances you must only change the current setting.  See here for more information about the boot process and control sets and the Select button:

    System and startup settings
    (Written for Windows 2000, but it is the same for Windows XP)

    John

  • Center of spry bar that contained in the table?

    Hey all,.

    I have a spry menu bar I'm trying to focus on the page. Is the installer for a table and the table is centered in the page but I can't get the bar on the center of the table. It should be simple, but I have to do something wrong. I have it aligned middle, Center, I tried to align the right and nothing. Any suggestions would be helpful.

    Also, I can't put any margin on the thing for some reason any. I need that there is at least 20px on the bottom margin. I do not understand why is not letting me style that I like.

    http://www.metrobham.org

    Set your table inside a div and style that div to have a width fixed max according to the total width of your main content area and style div, like this:

    ... Your menu real table should be here...

    Then add to your CSS:

    {.centermenu}

    Width: 960px;

    margin: 0 auto;

    margin-bottom: 20px! important;

    }

    This will contain the menu width 960px and centre it (0 auto) and the margin-bottom: 20px with! important add 20px only to your bottom margin.

  • Columns not null showing that nullable in the table grid

    I use 2.1.0.63 sql developer.
    I ran the following in my diagram
      CREATE TABLE EXCLUDE_DATA 
       (OWNER       VARCHAR2(30), 
        TABLE_NAME  VARCHAR2(30), 
           COLUMN_NAME VARCHAR2(30), 
           CONSTRAINT CK_OWNER CHECK (owner IS NOT NULL) ENABLE, 
           CONSTRAINT CK_TABLE_NAME CHECK (table_name IS NOT NULL) ENABLE
       );
     
     COMMENT ON TABLE EXCLUDE_DATA IS 'Tables and Columns to exclude from the column checker';
     COMMENT ON COLUMN EXCLUDE_DATA.OWNER IS 'The schema that contains the table';
     COMMENT ON COLUMN EXCLUDE_DATA.TABLE_NAME IS 'The table name to be excluded from the column checker';
     COMMENT ON COLUMN EXCLUDE_DATA.COLUMN_NAME IS 'The column on the table to be excluded.  If null then the whole table is excluded';
    
      CREATE UNIQUE INDEX UK_EXCLUDE_DATA ON EXCLUDE_DATA (OWNER, TABLE_NAME, COLUMN_NAME);
    When the name of the table is selected, and the tab for the column that is selected in the main window it's showng columns as nullable (see below)
    OWNER     VARCHAR2(30 BYTE)     Yes          1     The schema that contains the table
    TABLE_NAME     VARCHAR2(30 BYTE)     Yes          2     The table name to be excluded from the column checker
    COLUMN_NAME     VARCHAR2(30 BYTE)     Yes          3     The column on the table to be excluded.  If null then the whole table is excluded
    The constraints are there however, it looks like a potential problem with just this window.

    CeeJay

    Adding a not null to a column check constraint does not have the non-nullable column.

    Try instead this statement

    CREATE TABLE EXCLUDE_DATA
    (THE VARCHAR2 (30) IN OWNER NOT NULL,)
    TABLE-NAME VARCHAR2 (30) NOT NULL,
    COLUMN_NAME VARCHAR2 (30)
    );

    COMMENT on TABLE EXCLUDE_DATA IS "Tables and columns to exclude from the audit of the column;
    COMMENT ON THE EXCLUDE_DATA COLUMN. OWNER IS 'of the schema that contains the table.
    COMMENT ON THE EXCLUDE_DATA COLUMN. Table_name IS "the name of table to be excluded from the audit of the column;
    COMMENT ON THE EXCLUDE_DATA COLUMN. Column_name IS ' column on the table to be excluded. If set to null, then the entire table is excluded. "

    CREATE A UNIQUE UK_EXCLUDE_DATA ON EXCLUDE_DATA (OWNER, TABLE_NAME, COLUMN_NAME) INDEX;

    The database AUTOMATICALLY adds check for columns NOT NULL constraints.

    Hope this helps

    Concerning
    Chris

  • problem with image that disappears into the table-

    It's totally weird and I can't understand why it's happening.

    I'm new to DW8, even if I used a much older version of DW a lot.

    It doesn't matter how to create the header for http://www.amafca.org/convertedindex.htm, the image of the banner of the very top is getting stripped when I put the page online for tests.

    Currently, I use a table, where the img src is correctly listed as data in the table for that cell. Test perfectly locally. Can I use ACE FTP 3 to load the page on the test site. All graphics are where they are supposed to be. BUT... the top of the banner is not displayed! Looking at the source code, the "img src" link so that the cell is completely empty - the code was stripped of the page!

    How is that possible? ACE FTP is it? How and why? (I never even heard of a program ftp stripping code!)

    I guess I have to just move on and wading in get the DW set up ftp in order to use it for this test page and see if the info is always stripped. But everyone knows this sort of thing happening before?

    Thank you

    PAM to amafca

    I guess you run Norton and it freezes the image before he gets to the browser because you called banner. Rename it to something else and see if that helps. I can see the banner very well.

  • View previous transactions in the table citywise

    Hi all

    I have about 2 million transactions in the table of MEASURES. There are thousands of transactions of the cities. I want to return 40 first operations (datewise orderded I mean first transactions when a city was presented in the table) of each city, there are close to 100 cities in the table. Can all help modify the SQL code following it please?
    select citycode,cityname, actiondate, performedaction
    from ACTIONS
    where performedaction=6 and citycode in (select citycode from cities where description is not null)
    order by 2,3 asc
    I would appreciate your help in this regard.

    Thank you

    Try this

    SELECT citycode
          ,cityname
          ,actiondate
          ,performedaction
      FROM (SELECT a.*
                  ,ROW_NUMBER () OVER (PARTITION BY cityname ORDER BY actiondate) row_num
              FROM actions             a
                  ,cities              c
             WHERE performedaction     = 6
               AND a.citycode          = c.citycode
               AND c.description       IS NOT NULL
           )
     WHERE row_num <= 40
     ORDER BY 2,3 ASC
    

    Concerning
    Arun

  • FSG reports: line assignments defined account (view Type to display the account nar

    I have a unwanted FSG. I defined a report with a set of basic lines and a column set. In my set of lines, I used assignments of accounts and the type of display as "Expand" to my natural account. Is it possible to display the narration of the account in the report instead of the natural account number?

    For example, my report displays now "1401 ' - which is the natural account number. I want to view his story which reads "recipes".

    Miranga

    Hi Miranga,

    It is possible to display the description of account code... Infact you can view both account code and description... you need create an ORDER of LINES and attach it to your report of FSG...
    Perform the steps below:

    (1) switch responsibility to the big book
    2) go to reports > define > order
    (3) enter a name for the field in the ORDER of the LINES
    (4) in the display of account section, enter SEQ 1, Segment as ACCOUNT, order VALUE and DISPLAY in the form of DESCRIPTION AND VALUE and the width 15...
    You can increase or decrease the width based on the way the data appeared in the output of your report...
    (5) save the file...
    6) go to reports > define > report
    (7) question your relationship...
    (8) in the optional components section, click the field in the order of the lines, and select the order of the lines that you set up earlier in the list of values...
    (9) save changes to the report...
    (10) run the new report of the FSG and see the result...

    Kind regards
    Ivruksha

  • The list view that stretches with the property of being Non-vmware

    Hello

    I added a custom column on the home page and for this column, I have to pass the value of the property of a custom object (not vmware, Object)

    Is this possible?

    PropertyProviderAdapter and DataProviderAdapter are independent of any UI code.  What are adapters side Java responds to requests for data from the client.

    In your case you don't need any interface class mediator user, just a PropertyProviderAdapter that meets the demand for data sent by the list view.  The query is generated by the platform, do not do anything :-)

  • Symbols nested by referring to the table?

    How I make reference, in a table, the symbols that are nested inside another symbol? What do I have to use variables or something?

    Hey Pedro, in your other thread, the code I gave you is an example of this, but for posterity, see below:

    Table

    var array_options = ['option 1', 'option 2', 'option3'];

    myFunc = function() {}

    Get 'myParentSymbol', then this object (index 0 in 'array_options'), nested inside the 'myParentSymbol '.

    .play("out") sym.getSymbol("myParentSymbol").getSymbol (array_options [0]);

    }

  • Incorrect data that appear on the table of waveform

    I have two cards of waveforms in my vi, two current plot or tension. After that I created an array of data points, I send them to the waveform diagrams. The datapoints are completely incorrect when tracing (scale, no points, no autoscaling) Although, when I export my data to excel, it is perfect. All possible solutions on how to fix this? I have attached my vi for reference (sorry if this is a bit messy). I use the tab control and my problem is statement of the case "Ids vs Vgs.

    You can cheat and use the graph XY Express or use a couple of dice shift registers of Y and build separate X. There is also the example of the graphic called expedition XY.

  • Hi, I want to drag and drop a file in the form (in a grid view of data in the table of attachments in database-type access is incidental)

    I am using visual basic 2010. A shape has a datagridview named in an attachment that is connected to a binding source (access database) named attachments. The columns are attached and description. The attachment is not of type text, this is the type of attachment. How to download files in the access database by using my VB form.

    Can anyone suggest me how do. I'm new to VB. It'll be good if you can provide the code.

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the MSDN Developer audience. Please ask your question in the following forum.

    VB general forum:
    http://social.msdn.Microsoft.com/forums/en-us/vbgeneral/threads

    Concerning

  • small boxes that appear in the table of contents

    There are boxes that appear randomly in some of my titles. How can I get rid of them? and how are they there in the first place?

    Thank you.

    Ah, I see. Yes. This is indicative of the interactivity.

  • The table or view in oracle to Package information

    Please give me the name of the table or view in oracle where the names of all packages are available and their associated procedures or functions... otherwise there is a way to inform
    select text from user_source where  type='PACKAGE';
    

    This query can give you defination all package you can know Members (stored procedures/functions/variables etc.) of a package.
    But I have no idea about any explicit data dictionary view that lists all the members of the package defined by the user. Hope to see here as appropriate.

Maybe you are looking for

  • Skype is now non-existent for the PlayStation Vita. ;-(

    Hi guys. Have you noticed that "Skype for Vita" does not come to the top? PSN took leave because... I do not know. Probably scored. I want to talk about this concern to Skype Inc. Conact me: marleyparker12 thanks [email removed for privacy and securi

  • HOW TO DISPLAY A TABLE IN THE LISTBOX

    Hi all I USE LABSQL... I ENCLOSE ONE EXAMPLE OF LABSQL... WHERE I CAN READ DATA FROM THE DATABASE... BUT IN THIS EXAMPLE, THE RESULTS OF SQL THAT I GET IN A TABLE, I WANT THE SAME TO BE DISPLAYED IN THE LIST BOX. HOW CAN I MAKE... THNX IN ADVANCE SAK

  • ENVY 17-j067ez: SSD hard drive for hp envy 17-j067ez

    Can I put disc hard patriot ssd in hp envy 17-j067ez as well as my hard drive of 1 TB? And if I can put this ssd what is the top speed of this drive in my laptop? SRY for bad English and tnx a lot. Link to SSD drive hard description https://patriotme

  • Beats Audio keeps crashing

    I hope someone can help - my Beats Audio crashes when I try to open 'listening Experience.  He has previously worked, crashed before and has started working again after that I did some jiggling of things such as uninstall/reinstall driver, driver upd

  • Receive the error under XP "workstation service has not yet started.

    I disabled the administrator account and have no other account with admin rights I did the thing of mode without failure, but when I try to uncheck the box disable when I click on apply I get an error message (the workstation service has not yet star