How to improve the only table has full table scan with a lot of data and without PK

Hello world...



I have YOUR table...
CREATE YOUR TABLE
(
EMPLOYEE_NUMBER VARCHAR2 (30 BYTE) NOT NULL,
ATT_DATE DATE NOT NULL,
DATE OF DATE_TIME_IN,
DATE OF DATE_TIME_OUT,
NUMBER OF DELAY_MINUTES
NUMBER OF EARLY_EXIT_MINUTES
STATUS VARCHAR2 (20 BYTE)
)


This table contains a primary key and no clue on this subject. and coontain around 600 000 recoed.

query this table take about 5 mintes with full table scan

Select * from your.


I create indexes on Employee_No and atta_date, although there is a constarin for bith of them is not zero, but they have a duplciate value...

But even thogh the table always do full table scan...


BR

Thanks for the stats...
Well, your statistics on that table are updated.
The volume taken by the table is consistent with the number of lines you have and the average space taken by each activity.

what I propose (this is not a 'query' problem since you decide to read the ENTIRE contents of the table and you are not satisfied with the performance):
-Try this query in parallel (maybe your server will not parallelize it):

 select /*+ PARALLEL(x) */ * from ta x

- or check what are the events of theses/wait (probably the disk IO rate or the network)

REM: As SY compression could be an option to go in his direction, I repeat:
"change the type data number EMPLOYEE_NUMBER" instead of varchar2 (rebuild the table) in a way you will earn enough space (bytes/line) VS the actual duration of each lines.
Another way to reduce the space and If you insert / select in this table is finally reduce the PCTFREE, but beware the danger of this is that you will lose all the benefit if this table is updated or deleted. (it may not be the case today, but it could be in the future!)

Published by: user11268895 on July 18, 2010 16:15

Tags: Database

Similar Questions

  • How to improve the performance of Windows 7 64-bit with 2 TB of data?

    How can I improve my computer with hush 2 t discs full of stuff?

    I 8Giga ram and cpu I7 2600 always search or avg scan takes a long time.

    Yes - well - you said you have 2 TB of stuff and research/research of virus could affect all the files you have / designate to the touch.  Defragment and CHKDSK would take time as well - because you have 2 TB of things.  However, every day use applications, etc. should not be affected by your disks are.

    It's like having a nice, well-made workbook... Opening the drawers is not really more difficult as long as the drawers are not too filled where something can hang on a mechanism - but when you start to look for a certain file or find another reason to finger - per each page in a certain drawer (or the entire workbook) - it takes time.

    Can help your processor speed, the amount of memory can help, have indexed the whole disc will help with research (just as with applications other than those built into Windows - there are better there, IMHO) - but analysis all virus files - this isn't something you can accelerate much and will be determined by the speed of the drive the size and the location/organizing files and tastes.

    Wants best performance on a drive - get a SSD, or three or more quickly from SATA and RAID them together.  This will help the speed of these things.

  • How to revive the operation which has full status?

    It seems funny, but here is my scenario:

    I got 10 operations in a process. In the 6th grade, it retrieves the user name in the 7th level of the DB customized using JDBC service.

    Unfortunately, the user name is not maintained correctly (with some errors of typing in the DB). In step 7, I use affect the service that takes the user name obtained in step 6. As it cannot find the user name (as it was a misspelled name), the stalls of exploitation.

    If I see the State of the process,

    I see

    Step 1 - COMPLETE

    .

    .

    .

    step 5 - COMPLETE

    step 6 - FULL (DB recovery disk)

    step 7 - to the point of DEATH (with the error - user name doesnot exist)

    I realized the error and corrects the Custom DB with the right username.

    Now my question is, how do I re - run the whole process of step 6?

    I checked it, but /AdminUI doesnot allow to re - run operations with FULL State. If I rerun the step 7, it is useless but keeps the wrong username.

    Only option I see is asking users to trigger again in step 1 which makes no sense for the user because they think that it is a re-work for them again and also there is many users between the process that approves the form and they are all working on that.

    very much appreciate your help on this.

    Thank you

    KC

    This can be done!

    Do not let the operation because no valid main stall. Because this cannot be retried using /AdminUI.

    Instead, stall the branch so that you can retry the branch through /AdminUI.

    Catch invalid Exception of the observed activity and connect to an activity of stall (as illustrated in the attached screenshot).

    This will cause your branch to stall. After correcting the user name in DB, you can retry the branch which will resume execution of step 6.

    Hope that helps...

    Nith

  • How to improve the performance of the import

    I'm converting a database of its current WE8ISO88591 character set AL32UTF8
    I use NLS_LENGTH_SEMANTICS to TANK so I don't have to increase the length of the column.

    I followed the instructions in the Oracle:
    144808.1
    313175.1

    Except import that takes too long.

    I took a full database export WE8ISO8859p1 and now its importation in AL32UTF8.

    It is always difficult to prove slow source; but I think it has to do something with NLS_LENGTH_SEMANTICS. On the same
    Server; If the new database was in WE8ISO8859P1, a 5 million row table import took 2 hours; but in Al32UTF8 with NLS_LENGTH_SEMANTICS it takes 1 day!

    No idea how to improve the performance of the import.

    DOUBLE WIRE!

    Please, don't post duplicate discussions.

    Mark this thread ANSWER and continue to use your original thread where you are already helped.

    You have NOT given the info that has been ask in your other thread.
    Re: NLS_LENGTH_SEMANTICS = CHAR import is too slow

  • How to create the logical tables & how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • How to identify the Basic Tables?

    Hi all

    We have a SAP applications running on Oracle 11 g server.

    I want to identify the base table being accessible from each page form applications without studying the application code.

    I want to know what picture was the data inserted to or comes from.

    My strategy is therefore:

    1. turn off the cache buffers db, Alter system RAS sqlarea.
    2 identifying the apps as a unique user. No one else allowed to recorded in the applications and the database.
    3. open the desired data entry form/page and encode a record. engage.
    4. check the V$ sqlarea what tables are saved.

    Are the steps above accurate or useful? Any other suggestions please...


    Thank you very much.

    Not necessarily / it depends.
    1 SQL trace is useless after the problem if it has not been activated during the problem
    2. While AWR is sampled, it is rare that only sampled data are not sufficient to provide lighting on an important issue.
    3. unless you do an extended follow-up 10046, sql trace only gives you information on the expectations, etc..
    4 AWR will present a better overview of who does what, blocking sessions etc.

    Your original question around to find all of the tables involved in a call from the app.
    It would be better than awr for it to make a sql trace.

    Published by: Dom Brooks on September 23, 2011 14:16
    Sorry - was talking about ASH not AWR. My mistake.
    If we are talking about AWR then reports using a report at the level of the system to diagnose a problem session or sql is probably not the right approach. See my comment below.

  • Satellite A300-1PH - how to improve the battery life

    I want to get an extended battery...
    How to improve the battery life?
    I have the Satellite A300-1PH.

    Hello

    You want to extend the battery work in order to use the laptop longer with the battery power?

    Well, in order to extend the battery work, you should check the Vista power settings.
    Here, you can assign some settings like brightness etc. who would save the energy of the battery of the screen.

    For more details, see this document how:
    + How to manage Windows Vista power management features? +
    http://forums.computers.Toshiba-Europe.com/forums/Ann.jspa?annID=41

    If you want to know wow to get the most out of the battery, consult this FAQ from Toshiba:
    http://forums.computers.Toshiba-Europe.com/forums/Ann.jspa?annID=20

    See you soon

  • How to read the color table in a subvi?

    How to read the color table in a subvi? Is it made by a reference to the table or with a global variable? For a better understanding of the problem, I added to vi. Run the "run.vi." I want to see

    the background color of the table "run.vi" in the subvi called "read color.vi".

    How can I do?

    Thanks in advance

    Norick

    pop up on the wire table refernece and establishes 'control '. Add this control to the icon of the sub - VI decision-making and then wire ref of the appellant to this Terminal VI so the calling VI move the ref to the Subvi.

    Ben

  • How to configure the partition table for SSD?

    Drive: 32 GB SSD

    I accidentally delete without backup partition table information and would like to know how to put the partition table, I can access the tools of partition table, but do not know how to define.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hello

    Thanks for posting your query in Microsoft Community.

    The SSD could be seen in the disk management window, and you could name and set up as another hard drive internal. To create a partition or volume on a hard disk, you must be logged in as an administrator, and there must be unallocated disk space or free space in an extended hard disk partition. To repartition your hard drive, please consult the following link and check if it helps.

    I can I repartition my hard disk?

    Additional information:

    Create a new Partition on a hard disk in Windows 7

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • How to solve the questviewer.exe has stopped working windows 7

    How to solve the questviewer.exe has stopped working windows 7

    using the analysis

    http://www.Malwarebytes.org/

    Make sure your system is clean first. use ccleaner to get rid of junkfiles http://www.piriform.com/ccleaner/download

    Also look for viruses either using avast and spyware using superantispyware

    go to msconfig (type in the search box in startmenu or run in xp, and then press enter) then prepare your computer to clean boot by disabling all startup items and any of the services of windows, and then restart your computer. See if it makes a difference? If it did then you know who caused the problem.

    you will also need to know is that "questviewer.exe"? It belongs to a program? If the answer is Yes try to update or reinstall the program, but before that make sure that the program is not hamful to your pc.

  • How to check the windows firewall has the stealth mode on and how he check actaully work

    I have windows 8.1 with all updated.

    Can someone tell me how to check the firewall windows has stealth mode?

    Also, can someone tell me how I could actually check that, if it is then how can I check that it actually works against someone trying to find open ports to exploit?

    Rich

    Go to GRC.com here https://www.grc.com/lt/leaktest.htm

    Read how to use it here https://www.grc.com/lt/howtouse.htm

    Run the LeakTest

  • Get the only table name in model executing the revese engineer but columns do not come

    Get the only table name in model executing the revese engineer but columns do not come. I used the standard procedure.  Please let me know why I am not getting column in my model.

    I have attached the screen shot for the same thing.

    This is a table or a synonym? In the case of synonym or try to add the property as it appears below thread.

    Reverse engineering a synonym in ODI 11 G.

    Or maybe go with personal setbacks.

  • How to get the underlying tables

    Hi all

    EBS R12.2

    How can I get the underlying tables of the following form?

    Capture.PNG

    Thank you very much

    Jen

    Hello

    Go to help-> review-> properties-> point.

    That's how you get the base table (FND_USER_RESP_GROUPS_INDIRECT):

    Kind regards

    Bashar

  • How to improve the rendering time on MacBook Air

    Hi all

    Processor: Intel Core i7-4650U @ 1.70 GHz, 2.30 GHz
    Installed memory (RAM live): 8.00 GB
    System type: 64-bit, x 64 processor operating system
    Operating system: 8.1 Enterprise, 64-bit Windows (boot to the Windows partition with bootcamp, work is not as a virtual machine)

    Any ideas how to improve the rendering performance of a YouTube video that I created. I realize that the rendering is not ideal on a MacBook Air, however, there are free of RAM and CPU capacity according to the directives of the screenshot:

    Adobe Media Encoder v2.png

    For example, I put that he should leave 1.5 GB of RAM for other programs, but there are still 3 GB free.

    (FYI at 01:24 popped it up to 100% of the CPU)

    Any help much appreciated.

    Kind regards

    Ben

    This isn't a very powerful machine.  It is probably not much to do.

  • How to improve the resolution of the image with the help of filters

    How to improve the resolution of the image with the help of filters?

    resolution of the image, please check the links below. They should give you a clear idea about the resizing and resampling of images.

    http://helpx.Adobe.com/Photoshop/KB/Advanced-cropping-resizing-resampling-Photoshop.html#m ain_Resizing_and_resampling_images

    Understanding vs Resample resize | Learn Photoshop CS6 | Adobe TV

    See you soon!

    ~ David

Maybe you are looking for