Oracle tuning question or any alternate solution

All Oracle Guru – I need your help in solving this problem. I am simplifying this problem to make it easy to understand. Let's start. For example we have two Tables.
Table one which stores data when one user access any dir on Unix sever has following columns
Table one     
Request Date          Server Name     Dir Accessed     User ID
8/1/2005 12:00:00 PM     COBRA-65     root          conny
8/2/2005 13:00:00 PM     PANTHER-98     opt          conny
8/9/2005 23:00:00 PM     COBRA-965     opt          conny
6/4/2005 22:00:00 PM     COBRA-73     shared          conny
10/7/2005 23:00:00 PM     PANTHER-98     bin          conny
10/7/2005 23:00:00 PM     PANTHER-98     bin          conny
This table gets around 6 to 8 Million records every day and we have data for around 3 months. Total around 650 M Records. Now our users want to access this data and find out who is accessing what on a monthly basis. Requirement is that user will define a application and tell us server name and dir he wants to associate to that application name. So we created another table: - Table two and here is column list for this table.
Table Two
Application Name     Server Name     Dir Accessed
COBRA-ROOT          COBRA73          shared
PANTHER-OPT          PANTHER-98     opt
PANTHER-BIN          PANTHER-98     bin
Now we can not let user run ad hock queries on a table with 650 M records so we decided to create a aggregation table and store monthly data into this table where user can query them .
AGGR_TABLE
Application Name     Request Month     User ID      Total Hits
COBRA-ROOT          Jun-05          conny          1
PANTHER-OPT          Aug-05          conny          1
PANTHER-BIN          Oct-05          conny          2
Now to fill this aggregation table we need to run a monthly aggregation query and her is that query
SELECT B.Application_name APPLICATION_NAME,
TO_DATE(TO_CHAR(A.REQUEST_DATE,'MON-YYYY'),'MON-YYYY') REQUEST_DATE,
A.User ID ,
count(*) TOTAL_NUMBER_OF_HITS
FROM Table Two Table One A
WHERE A.REQUEST_DATE >= trunc(sysdate,'DD')
AND A.REQUEST_DATE < truncadd_Month(sysdate,1),'DD')
AND A.Server Name = B.Server Name
AND A.Dir Accessed = B.Dir Accessed
GROUP BY B.APPLICATION_SECTION,
B.DATA_SOURCE,B.Application_name ,
TO_DATE(TO_CHAR(A.REQUEST_DATE,'MON-YYYY'),'MON-YYYY'),
A.PMDS_PERSON_NUM_SSO
ORDER BY B.Application_name
Now the problem is that this query takes forever too return. Sometime more then 72 hours.. We cannot do incremental updates as minimum we can do is month and if we do increment then we will not be able to collect historical data. This data will grow and we are planning to have 12 month retention..
Any help on query optimizing or any alternate direction will be real help.. Ones again because of company confidentiality I have to change the real table names and query and it is little bit more complicated then I showed you in above example but concept is the same. I will appreciate if any one can help us in any way.
Thanks
TK

You'll need an pk/fk relationship between your tables for a fast refresh to be possible.

Similar Messages

  • Is there any alternate solution for MDM setup without following Device Enrollment Program (DEP) ?

    Hi,
    Is there any alternate solution  for setting up the MDM Process, without following the Device Enrollment Program (DEP) and managing the devices by creating our own setup controlling through the server, Please let me know.
    Thanks for the help.

    Finally I found the solution for the MDM, after doing some research work with the Apple Configurator, iPhone configuration utility and came across with the Profile Manager after installing Mac OS Server and able to manage, configure, remote access and send the commands using push notifications.

  • Any alternate solution to using Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' for mulit-plot color problem on PDA?

    Hello,
        On a waveform chart, 4 signals need to be plotted based on the status of 4 boolean inputs. Eg. if the first boolean input is true, the first signal needs
    to be visible on the waveform chart; if the first boolean input is false, the first signal should not be visible on the waveform chart and so on. This can be
    done on LabVIEW desktop using the Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' - a sample VI "BundleSignals_Select_Desktop.vi" is attached for
    reference.
        But on PDA, since the Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' are not supported, some other method has to be used. I have done the
    selection/de-selection of these signals using 'Insert', 'Delete' array functions as shown in the attached VIs "BundleSignals_PDA.zip" which works, but the
    problem is that the colour of these signals do not work as desired when the selection/de-selection of these signals is done - It is required that the first
    signal should always appear in White color, the second signal should always appear in Red color, the third always in Green color & the fourth always in Blue
    color.
        I hope i have made myself clear of the problem. Has anyone faced this problem before & is there a solution?
    Note: Version of LabVIEW that we are using: LabVIEW 8.5 Professional Development System for Windows Vista/XP/2000 and LabVIEW 8.5 PDA Module for Windows
    Mobile.
    Thanks & Regards,
    Subhashini
    Attachments:
    BundleSignals_Select_Desktop1.vi ‏25 KB
    BundleSignals_PDA.zip ‏26 KB

    Unfortunately the only alternative to using property nodes is to set the properties manually on the development environement. The limited size of memory does limit us in terms of features for the module.
    Mehak D.

  • Work around/Alternate solution for Oracle error  ORA-01460 and ORA-02063

    After the installation of Oracle.DataAccess version 2.111.7.20, I get the following error.(the code worked fine with Oracle.DataAccess version 9.2.0.700 )
    I have attached the error as well as the sample code.
    ORA-01460 and ORA-02063 are known bugs in the new ODP but would like to know if there is any Work around/Alternate solution for this problem(other than
    the use of stored procs)..
    Thanks!
    Error:
    ORA-01460: unimplemented or unreasonable conversion requested
    ORA-02063: preceding line from BSREAD_STAGINGRO at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader()
    SampleCode
    private bool isValidFieldData(string clientName, string fieldNumber, string uniqueID, string clientID)
    using (OracleConnection mBSConnection = new OracleConnection(mBSConnectionString))
    OracleDataReader oRdr = null;
    OracleCommand Valid_FieldData_Command = null;
    try
    Valid_FieldData_Command = new OracleCommand();
    Valid_FieldData_Command.Connection = mBSConnection;
    Valid_FieldData_Command.CommandText = "SELECT uniqueid FROM EXTDB.BSData WHERE agencyid = :agencyid and agencyname=:agencyname AND fieldnumber =:fieldnumber AND uniqueid = :uniqueid";
    Valid_FieldData_Command.Parameters.Add(":agencyid", OracleDbType.Varchar2, 255).Value = agencyID;
    Valid_FieldData_Command.Parameters.Add(":agencyname", OracleDbType.Varchar2, 255).Value = agencyName;
    Valid_FieldData_Command.Parameters.Add(":fieldnumber", OracleDbType.Varchar2, 255).Value = fieldNumber;
    Valid_FieldData_Command.Parameters.Add(":uniqueid", OracleDbType.Varchar2, 255).Value = uniqueID;
    mBSConnection.Open();
    oRdr = Valid_FieldData_Command.ExecuteReader(); ->Error occurs here
    The error occurs whenever the length of any of the parameter is increased. But there is no specific length where it is breaking down.
    For example in this case, it breaks down with the given error if
    agencyID > 8
    agencyName > 6
    fieldNumber > 9
    uniqueid > 6

    The problem was mapping input parameter type.
    VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't.

  • Everything I buy any application wants me to enter confidential questions and I've forgot and I forgot email alternative to'm doing reset to questions What is the solution?

    Everything I buy any application wants me to enter confidential questions and I've forgot and I forgot email alternative to'm doing reset to questions What is the solution?

    You need to contact AppleCare for assistance.
    Apple ID: Contacting Apple for help with Apple ID account security

  • Hi there. A common question but I can not get any of our iphone/touch/pad to be recognised as a device on itunes on a PC with XP. ANy quick solutions?

    Hi there. A common question but I can not get any of our iphone/touch/pad to be recognised as a device on itunes on a PC with XP. ANy quick solutions?

    jrburrows wrote:
    Ok, fair enough.  But since Job's death - Apple's control on leaks has been terrible.  I got the new iPhone, and I like it - but it hasn't made nearly as big as an impression as previous ones.  Because of the vast ammount of leaks.  With the iPad mini leaks, it's 99% sure to come out next week.
    Apple uses many manufacturers and it's massive also websites prefer to report on Apple whether true or false because it brings more hits.
    Amd by "others" I meant other people on iPads - not other devices/manufacturers.  It's possible to do so, I just want to know how.  I honestly don't think we'll ever be in a Post-PC era until all tablets allow us to use USB in the way computers do.
    No, USB is not the future, you missed the memo about cloud and wireless computing?

  • Performance doubt: Manual tuning or Oracle tuning features?

    Hi all,
    I'm reading some docs regarding performance, and most of then mention and recommend the use of the Oracle tuning features, as SQL Access Advisor, SQL Performance Analyzer, SQL Tuning Sets and so on. What i want to know from the most experienced dbas here is if you use these performance features from Oracle, or if you prefer to perform tuning tasks "by hand"?. By hand i mean checking the explain plan, checking statistics, index seletivity, histograms and so on.
    Thanks in advance.

    Fabricio_Jorge wrote:
    Another simple doubt/question: What would be your tuning strategy? For example, what a commonly do is:
    1) Check the object statistics.Yes, make sure statistics are current. The tricky part is that I have heard enough stories (not seen this myself) about new stats messing up performance that I prefer to save off the old stats before generating new ones - just in case
    2) Check if the columns used in the predicates are indexed, and if not, i check the seletivity of then to see if an index creation would be efficient.This is probably my most effective tuning technique. I check the selectivity but create the index anyway to see what happens with it in place. Sometimes even though a new index is created the optimizer won't use it, and in other cases the index does not help performance even when the optimizer uses it. Any changes must be carefully checked.
    3) If it is possible, create a materialized view with the query rewrite feature.I use MVs, but as a later resort. I prefer instead to recode SQL if possible to get better results to avoid having yet another database object to keep track of. With luck the optimizer can use the automated query rewrite capability to avoid changing the original SQL.
    >
    4) If it is a RAC env, i try to increase the CACHE value of the sequencesI have not worked on many RAC environments and when I have did not have much to do with sequences. I did learn that select list inline views often perform poorly compared to equivalent queries using table joins (not specifically a RAC issue)
    >
    5) Check the Memory and Segment Advisors and hit ratios, taking the necessary procedures, if the advisors indicate so.I am not usually given privileges to use these tools. I have gotten good results from the SQL tuning advisor when I can use it but have seen it miss things so I prefer to manually analyze SQL.
    >
    6) After all of this, i would try to tune the query by rewriting it. I leave this as a last option because generally you must know the data/env of the company that you are allocated. If you don't know the env very well, you can make bad recommendations about a specific
    query.Doing the rewrite is something I do earlier in the process due to the fact that I rarely get DBA privilege on my projects and don't get access to some of the tools you mentioned. I can (hopefully) control SQL so I focus on it. Sometimes I cannot control SQL and have to rely on materailzed views, indexes, and other environmental factors to help SQL run faster.
    >
    OBS: All of this is done in parallel with the Statspack/AWR report "on hand"AWR is a great tool to use for tuning. OEM (which I rarely get access to) is another.

  • Is there any alternate transaction for ME05 ?

    Hi All,
              In ME05, i will have to input material and plant data. Is there any alternater transaction where the input data would include - Vendor as well as purchasing organisation ?
    Thanks & Regards,
    PSS

    Dear PSS,
    ME01 if you want to maintain Source List
    ME11 if you want to maintain Infor Record
    <b>Source List</b>
    A source list specifies the possible sources of supply for a material over a given period of time. It shows the time period in which a material may be ordered from a given vendor or under a certain long-term purchase agreement.
    The source list supports the user in answering the question: "Which vendors or internal suppliers can supply a material at a given point in time?" It is also used in the automatic selection of vendors for a material.
    <b>Info Record</b>
    Info record is short for information record. The info record contains concise information about a vendor and a material that Purchasing already procures from that vendor. An info record thus represents a material-vendor relationship.
    For example, the info record indicates the units of measure in which materials are ordered from the vendor, and the applicable reminder levels. It also shows price changes affecting the material in question. This information can be useful in the process of evaluating quotations to determine the successful bidder.
    Info records are created automatically when you order a material. You can also create, change, and delete info records.
    Hope this will help.
    Regards,
    Naveen.

  • Any temporary solutions to the washed out colors issue?

    **Note: I posted this in the Boot Camp forum, but I received no response. So, I'll give this forum a try.**
    I have a question about Windows XP and washed out colors on the display. I hear that there are some display driver issues with the new unibody MacBook Pros when using either XP or Vista on a Boot Camp partition. Just to be clear, when I say "washed out colors", I mean to say that the colors have a blue-ish, faded look to them. I know that this issue lies with the type of color gamma (or whatever it's called) that Windows uses versus what Mac OS X uses. So, now for the 2 main questions I want to ask:
    1)Is there any permanent solution to this weird color problem?
    And, if not, then:
    2)Is there any temporary solution, such as maybe a program that can apply a color profile for you? For example, I read on another forum that programs like LUT Manager (http://www.exactscan.com/lutmanager/) can help apply an .icc color profile that you have in Mac OS X and apply it to Windows (you can even have it apply it automatically when you start up Windows). Do any of you know something that might be even better?
    Also, how do you make an ICC color profile in Mac OS X without actually applying it?

    Does anyone even know what I'm talking about? I'll be glad to elaborate further if necessary...

  • Is there Any alternate software available for the zen microphoto that allows me to

    <SPAN class=postbody>I can only view the contents of my Zen microphoto as folders and files (i.e. it gives me a "Windows Explorer" type view of the contents) - I cannot view my Zen microphoto library in the same way as my PC Music Library (i.e. by Genre, Artist or Album) Is there Any alternate software available that allows me to see and organize my Zen microphoto library in the same way as my PC Music Library (i.e. by Genre, Artist or Album)

    There is program in the App Store called Bookpedia that seems tailor-made for your situation.
       http://itunes.apple.com/us/app/bookpedia/id408505152?mt=12
    Bento is another easy to use database solution.
    Or GoogleDocs has a spreadsheet application, free online, although not really specific to your application.
    If you really are using OS8.6, as your signature states, you may look for an old version of FileMaker on eBay.
    Good Hunting!

  • Project Tuning Questions

    I would like create a new project and set the tuning in the project to a tuning that I heard about recently that I would like to experiment with and try and create compositions using the frequencies. - I'm just a piddler and I am not trying to break any boundaries or anything like that, It is more a curiosity. - I read and article recently and saw a couple of youtube videos about something called "Sacred Geometry" and I would like to see if there is something to these claims. - Can anyone help me by instructing me in how I can go about setting the Project Tuning settings to these frequencies, so that my virtual instruments will play them? -
    Here is what is said about these frequencies.- You can find a little information about this by searching 528Hz/Sacred Solfeggio online.- I don't know what much about the history of this stuff and cannot vouch for its validity. -
    74 Hz 285 Hz 396 Hz 417 Hz 528 Hz 639 Hz 741 Hz 852 Hz 963 Hz
    UT - 396 Hz -associated with releasing emotional patterns after: see RE-417Hz below.
    RE - 417 Hz -associated with breaking up crystallized emotional patterns
    MI - 528 Hz - relates to crown chakra; Dr. Puleo suggests an association with "DNA integrity" Transformation and Miracles
    FA - 639 Hz - associated with whole brain quadrant interconnectedness. Connecting Relationships
    SOL - 741 Hz - associated with intuitive states, non linear knowing. Awakening Intuition
    LA - 852 Hz - associated with a pure love frequency: unconditional love and returning to Spiritual Order
    P.S. I am not a religious nut or anything. - But the claims do intrigue me. Thank you

    +"P.S. I am not a religious nut or anything. - But the claims do intrigue me. Thank you "+
    — Whew! For a moment you had me worried. But scientific experimentation is never wrong. You can in fact tune your instruments to a scale which you can define — but you'll have to do a bit of maths. Ask again if you need help with that. Here's the gen:
    p948, Chapter 40:
    _Alternate Tuning Scales_
    Activation of alternate tuning scales is achieved by clicking the appropriate radio button in the Software Instrument Scale section. The selected tuning scale is saved with the project when saved, and reloaded the next time the project is opened.
    User
    Each semitone can be detuned (moved away) from equal temperament in semitone steps. To do so, just click-drag—vertically—on each semitone box until the desired value is reached.
    Alternately, you can double-click in each semitone box, and type in a value. Press Enter or click on another box to exit the text entry mode.

  • Any new solutions to playing HDV files on the PC Quicktime?

    Any new solutions to playing HDV files on the PC version of Quicktime Pro?
      Windows XP Pro  

    It all depends a bit on how & what you backed up, and how you restored it. Select an affected track. Press CTRL-I to Get Info. Click Cancel when asked to locate the file. Look at the location given on the summary tab. Now look through your computer for file in question. What are the two paths? iTunes could be using the wrong layout (pre or post iTunes 9) in error. Or your library could have been split on the previous system, and not restored to preciesly the same path. Posting back the two paths should make things clearer.
    tt2

  • Oracle Wallet question

    I have an interesting situation. I need a way to basically take a pre-existing SSL certificate and ram it down the throat of an Oracle Wallet as we run a wildcard certificate for our domain and there will not be a matching certificate request fore each server. I have the certificate in an already existing JKS but I have components in my domain that require wallets. In 10 IAS there was a tool that would allow me to basically build the wallet in a way that would let me totally bypass any kind of checks that would stop me from doing just this but I have yet to find a way to do so in the 11g envrioment. Can anyone provide any tips?
    I still have my 10gR2 OID wallet but when following the metalink (309627.1) tip for moving them, the password still gets mangled after it is copied to my other servers and OWM is unable to access them.
    I am not sure if this is the best place to ask this question but it seemed ok as this deals specifically with Oracle Wallets and not any particular product.

    David
    This seems to cover your questions :
    "Configuring Wallet Manager to enable HTTPS connect with Oracle 11g database"
    http://oraclepoint.com/oralife/2010/10/08/configuring-wallet-manager-to-enable-https-connect-with-oracle-11g-database/
    Best Regards
    mseberg
    My own rough notes are : ( I already had the ACL for Oracle setup )
    Step 1
    create the needed file
    vi newwallet.crt
    And insert the cert information into it.
    Watch out for white space left by vi
    Step 2
    As root under /etc create the folder ORACLE
    As root under /etc create the folder WALLETS
    Set the owner as follows
    chown -R oracle.oinstall /etc/ORACLE
    ( You can put this where it make the most sense on your system )
    Step 3
    Try to create a new Wallet using owm
    If the wallet exists owm will bark.
    If own asks you if you want to create a certificate click no.
    If you created a new Wallet make sure to save it in owm.
    Step 4
    Select "Import Trusted Certificate" in owm.
    Pick the file you saved before, you should get "The trusted certificate has been successfully imported"
    Step 5
    Add the following to the sqlnet.ora file on the server:
    WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = %PATH_TO_WALLET%)))
    Note: adding extra lines like #SQLNET.WALLET_OVERRIDE = TRUE will override everything and your database will not connect!!!
    What was added
    WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = /etc/ORACLE/WALLETS/oracle)))
    Step 6
    Restart Listener
    Step 7
    Try to create a SELECT utl_http.request from dual and use it to check.
    Sorry, my example is worthless to you.
    But this may help
    Configuring Wallet Manager To Enable HTTPS Connections Via UTL_HTTP.REQUEST [ID 169768.1]
    Edited by: mseberg on Aug 1, 2011 3:10 PM

  • Oracle tuning questionnaire

    I'm doing my dissertation about Oracle tuning,
    and I need your help to fill in my questionnaire,
    if you would like to participate in my website questionnaire,
    the questionnaire in http://www.abubaker.co.uk

    okei, I will have a try ....till weekend Don't bother. The questionnaire is naively phrased and structured. More fundamentally it is broken - no box for answer to question 13, no further questions, no submit button or additional navigation. Please can I have my five minutes back?
    Cheers, APC

  • Oracle tuning

    Other than googling which I will do, you guys know any good resources about
    Oracle Tuning. I'm a complete beginner on the topic.

    The proper place to start tuning is with understanding the architecture and therefore understanding what can, and can not, be tuned.
    Personal recommendation - in order:
    - docco: Concepts manual;
    - docco: Database Administration Guide;
    - Tom Kyte's books (see http://www.apress.com)
    - docco: Performance TUning guide;
    - Cary Milsap's "Optiminzing Oracle Performance" pub by O'Reilly
    - anything by Jonathan Lewis
    - anything by any of the Oak Table members (http://www.oaktable.net)
    BTW: Tuning is simply 3 generic steps
    1) 'identify what important use activity is slow', followed by
    2) 'identify all the things that makes the activity slow', followed by
    3) 'speed up the part(s) that gives you the best improvement'.
    Keep those in mind when you (or the writers of the books, people assisting you, etc.) jump to conclusions. A LOT of people jump (myself included) from 1) directly to 3) too often and simply waste time. The real trick is understanding, in ever-increasng detail, all the litttle parts that slow the use action - hence the need to understand the architecture, and especially the recommendation for Tom Kyte's books.

Maybe you are looking for

  • Substitution rule does not work in SAP CRM

    Hi, In our client, we have work flow set up for substitutions. Manager A has specified B as his substitute for approving work flow items during his absence. I checked the table T77S0, WFLOW AUTOF is set to 'X'. I checked the table HRUS_D2, here the e

  • Mx Components displaying wrong the embedded Font

    Hi, I'm developing with Adobe Flash Builder 4.5 and I have a problem that the mx components displaying wrong the embedded font which is embedded in a css-file. But spark components have no problems with displaying the embedded font. thanks

  • Batch management requirement indicator

    Dear experts, Due to an error during test-conversion, I have a number of materials that should have gotten the Batch management requirement indicator. At this moment the system does not allow me to change this indicator, because it detects stockposti

  • Enabling/ Disabling UI Elements using Web Dynpr Java

    Hi Experts, I have certain UI Elements in the view layout, and i want to disable it based on conditions. I want only certain users to be able to edit the fields and the other set of users should only be able to view the data in the UI Elements and no

  • Dll created in visual studion with /CLR option won't load by cvi

    i have created a small dll, which holds 1 exported function. The dll is created in VisualStudio2008, sp1 With option /CLR, targetting .NET framework 2.0 The export is like below: extern "C"  int __declspec(dllexport) __stdcall testHelloWorld(void)