Fastest way to access a partition with which has no indexes and has 74 mill

hi ,
with 73 million data i am scared to even query the partition.Can u suggest me some ways to access the data in the minimum possible time.there are no indexes at present.
this is the query i want to run
SELECT RECONID,SOURCE,TXN_TYP,TRANSACTIONDATE,SFN_FILTER_TO_NUMBER(CARDNUMBER) CARDNUMBER,LPAD(TRIM(TRACENUMBER),4,0) TRACENUMBER,
TERMINALID,DBCR_FLG,TRAN_AMOUNT,BUSINESSDATE,TO_ACCOUNTNUMBER,RECON_TYPE FROM APP_1 PARTITION (PART_1)
WHERE BUSINESSDATE BETWEEN '06-JAN-2012' AND '08-JAN-2012' AND SOURCE = 'BRN'
AND DBCR_FLG IN ('D','C') AND TXN_TYP='T1';
AT PRESENT THERE ARE NO INDEXES ON THE PARTITION.

Hi
user8731258 wrote:
i queried the dba_tables and the average row length is 696 bytes.
this means 696*73 million bytes. so this is equal to APPROX 51 GB (700*73 MILLION) / (10 TO THE POWER 9)actually, there's a more direct way to find the amount of data to be returned:
SELECT bytes
FROM DBA_SEGMENTS
WHERE SEGMENT_NAME = :your_segment_name
AND PARTITION_NAME = :partition_name
now what do u suggest?There's not much that can be suggested here. Do the full table scan of that partition, wait however long it takes to return results. Use parallelism to make your query faster, if you have enough spare CPU on your database.
And learn from this experience to avoid such situations in the future: you should've indexed that table long before it got tens or even hundreds (that's just one partition that's 50Gb big, right?) of gigabytes of data.
Best regards,
Nikolay

Similar Messages

  • Is there a way to access my iTunes Library, which is stored on a (PC) External Hard Drive, on a MacBook Air (through an Apricorn Universal Hard Drive Adapter), without transferring the music files off of the external hard drive?

    Is there a way to access my iTunes Library, which is stored on a (PC) External Hard Drive, on a MacBook Air (through an Apricorn Universal Hard Drive Adapter), without transferring the music files off of the external hard drive?
    In other words, because the MacBook Air only has 120 gbs of hard drive space & my old hard drive, from a Lenovo, has 500 gbs of hard drive space (and I have over 120 gbs of music), I’m looking to manage my iTunes music from the external hard drive permanently. Upon attempting to access the iTunes library held on the external hard drive the following message comes up: “The iTunes Library.itl file is locked, on a locked disk, or you do not have write permission for this file”.  Is there a way to get around this?
    Any advice would be greatly appreciated, thanks so much!

    You will have to engage a split library which means you will have to start answering questions on this forum because you will need to learn a lot about how iTunes works in order not that have a big mess at the end of it all.  It also won't be easy when the time comes to relocate it all to different drives.
    You can go to advanced preferences and turn off organize media and copy to items to media folder when adding items to library.  Next read about how to selectively consolidate items to the external drive.
    Sept. 2010, Consolidate selected content - https://discussions.apple.com/thread/2589812 and April 2014, https://discussions.apple.com/message/25414357
    "...selected the new tracks directly in iTunes, Control-clicked on the selection, and saw that now you can consolidate selected items." - http://hints.macworld.com/article.php?story=20090919000326840
    Remember that when you start iTunes without the external drive turned on iTunes will present you with a bunch of broken links.  If you have automatic downloads enabled with iCloud you may have to turn that off to prevent iTunes from repopulating your drive trying to deal with those "missing" tracks.
    If you add tracks in bunches to iTunes and want them to go to different media folders you will need to either add them by holding down the option key while dragging if the desired media folder is not the one set in preferences, or by changing the media folder in preferences.  Changing media folder preferences only applies to new files added, not old ones.
    Okay, I am going to stop typing because you might just reply to me, "Oh, okay, forget it," and I don't need the exercise.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • Can you still access Windows partition with open firmware password installed?

    Can you still access Windows partition with open firmware password installed? If so, do you still use the Option key upon restart?

    I don't use Bootcamp.  However, I do know that with a firmware password, pressing the option key at startup will cause the password entry screen to come up; after entering the password, you will get the boot device choice screen.
    So, if Bootcamp partitions normally show up on that screen then it should work just fine, or so I'd imagine.

  • I have CS 6 which requests I sign in to access my serial numbers, which I have already, and it fails to connect so that I cannot use the programs. How do I get past this, is there a direct line to customer support?

    I have CS 6 which requests I sign in to access my serial numbers, which I have already, and it fails to connect so that I cannot use the programs. How do I get past this, is there a direct line to customer support in the UK?
    Thanks

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Fastest way to access data between String and char[]

    Hi all,
    I've been programming a small String generator and was curious about the best and fastest way to do so.
    I've done it in two ways and now hope you can tell me if there is a "more java version" or fastest way between those two or if I'm totally wrong as some classe in the API already does that.
    Here are the codes:
    version 1:
            //describe the alphabet
         String alphabet = "abcdefghijklmnopqrstuvwxyz";
         //The "modifiable String"
         StringBuffer stringBuffer = new StringBuffer();
         //Just put the temporary int declaration outside the loop for performance reasons
         int generatedNumber;
         //Just do a "for" loop to get one letter and add it the String
         //Let's say we need a 8 letters word to be generated
         for (int i=0; i < 8; i++)
             generatedNumber = (int)(Math.random() * 26);
             stringBuffer.append(alphabet.charAt(generatedNumber));
         System.out.println(stringBuffer.toString());
         stringBuffer =null;version 2:
            //describe the alphabet
         char[] alphabetArray = {'a', 'b', 'c', 'd', 'e', 'f',
                        'g', 'h', 'i', 'j', 'k', 'l',
                        'm', 'n', 'o', 'p', 'q', 'r',
                        's', 't', 'u', 'v', 'w', 'x',
                        'y', 'z'}
         //The "modifiable String"
         StringBuffer stringBuffer = new StringBuffer();
         //Just put the temporary int declaration outside the loop for performance reasons
         int generatedNumber;
         //Just do a "for" loop to get one letter and add it the String
         //Let's say we need a 8 letters word to be generated
         for (int i=0; i < 8; i++)
             generatedNumber = (int)(Math.random() * 26);
             stringBuffer.append(alphabetArray[generatedNumber]);
         System.out.println(stringBuffer.toString());
         stringBuffer =null;Basically, the question is, what is the safest, fastest and more "to the rules" way to access a char in a sequence?
    Thanks in advance.
    Edited by: airchtit on Jan 22, 2008 6:02 AM

    paul.miner wrote:
    Better, use a char[] instead of a StringBuffer/StringBuilder, since you seem to know the size of the array in advance.
    Although I imagine making "alphabet" a char[] has slightly less overhead than making it a String
    1. It's a lot clearer to write it as a String.
    2. You can just call toCharArray() on the String to get a char[], instead of writing out each char individually.
    3. Or if you're going to be using a plain alphabet, just use (randomNumber + 'a')
    And use Random.nextInt()Hello and thx for the answers,
    I know I shouldn't put constants in my code, it was just a piece of code done in 1 minute to help a colleague.
    Even if it was just a one minute piece of code, I was wondering about the performance problem on large scale calculating, I mean something like a 25 characters word for billions of customers but anyway, once again, the impact should be minimal.
    By the way, I didn't know the Random Class (shame on me, I still don't know the whole API) and, I don't understand why I should be using this one more than the Random.Math which is static and thus take a few less memory and is easier to call.
    Is it because of the repartition factor?
    According to the API, the Random.Math gives (almost) a uniform distribution whether the Random.nextInt() gives a "more random" int.
    I

  • Rented movie stopped half way through,"Accessing itunes store" with revolving loader symbol

    FIrst nite with ATV2, it suddenly stopped working, didnt recognize my password, and ultimately i had to change my password. Then went to bed and tried again this morning. It worked.
    Second nite with ATV2, we rented a movie. 2/3 of way through movie, the loading circle appeared. cannot access the movie, though it recognizes that we have 22 hrs left on the movie.  cannot access other itunes content.
    --turned ATV off and back on--didnt work
    --checked network--no problems
    --reset ATV2--still cannot see anything but loading circle.
    Tried to see a tv show we'd watched earlier today. "accessing itunes store" with the loading circle appeared.
    HELP?
    I have spent more hours trying to make the device work than enjoying it.
    Thinking that I want to return this product. it works like a PC device.
    If you dont know how to fix it, can you tell me,
    HOW do i return it?

    are you guys watching TV late at night. I've noticed that the shows stop working at around 11 to 11.30 pm pacific time. I suppose that iTunes updates their catalogue to include the latest shows that are new and cleared for sale after the night's TV schedule. I think it's poor iTunes judgement to do that. Most people watch TV at night. They should update their catalogue some time in the morning hours.
    I usually just unplug my apple TV, restart and then wait for a while to make it work.
    If you guys get stuck because you put the show on pause then the remedy is to turn the screen saver off. Switch it to never because then when you pause and iTunes server goes out you don't have to re-authorize the show to continue watching it. That's if you purchased and the show was sownloaded to your apple TV

  • Is there a way to create a heading with shading behind the text and thin lines above and below?

    I'm working with InDesign CS6, Windows 7.
    Is there a way, using paragraph rules, to create a heading with shading behind the text and thin lines above and below the text?
    I'd like to create headings that look like these:
    Thank you!

    I have a document where I almost do such, but without the fill. I use a Head Style which Spans Columns for this instance; it allows the haeds to flow and fill the width.
    Paragraph Rules above and below are turned on with plenty of offset.
    I tweaked my setting to accomodate your need - It required only one instance, not above and below, and changing the stroke to a double stroke. 
    It may be necessary to create a custom stroke to modify the proportion of stroke vs fill. There is a difference of thin-thin and  thick-thick, neither of which seemed perfect but might be dependent on the Character height.
    Creating custom strokes is accomplished via the Strokes Panel.

  • Fastest way to install windows 8 with windows 7 or vice versa

    Hi
    How much time did it take for you install windows 8 on your pc as a dual boot? It took me 5m56s!!!
    The only difference between you all and me would be the method via which we installed. This method does requires legal windows 8 copy or the one which you re installing. This process is far better than installing by booting from cd.
    In this method, we use the install.wim of windows installation to install windows. I found this because i was actually preparing for a project on wim images on school. Basically, windows installer also uses the install.wim file to install windows. It was first introduced in windows vista i believe and from then, the trend continued. WIM stands for Windows Imaging Format. . These images are also used in one key recovery for the factory backup. These images can be managed by dism comand line and imagex tool
    I know that i have been dragging it for a bit long, so lets start then. It can be done by two programs, gimagex or imagex. The differnce between the two is that imagex works on command line only but the gimagex is like an imagex with user interface-much easier. So, we would use gimagex here, download from below
    http://www.autoitscript.com/site/autoit-tools/gimagex/
    So lets move into the steps
    Insert the windows 8/windows 7 dvd or mount the respective iso.
    Clear a partition for the new os
    Run gimagex, go to the info tab. Select the image file there. Navigate to the setup directory and enter the soruces folder. Then select the install.wim file and then pressget info. It would display the os version it has. See the index number after the title of the version name.
    Select the source first. The source is the install.wim image. Navigate to the setup directory and enter the soruces folder. Then select the install.wim file. 
    Now select the destination. Select the drive which you cleaned for the installation of the os. Then choose the index number of the os version you want to install.
    Click apply and then it would be a matter of 5-6 minutes.
    After the process is finished, dont reboot. Now, you have to install Easy Bcd since the windows 8 installation wont be registered in the bot configuration data. Download from here. Just download the non-commercial free copy of the software. Instal it and then run. Go to add new entry, select windows 8/7 and name it as windows 8 and lastly select the drive leter in the drive it was installed and press add entry.
    Now it is the time to reboot. You would see windows 8 in the boot menu. Boot into it.
    Setup windows 8 and download the drivers from here before hand.
    With the help of this, you will be able to easily dual boot windows 8 and windows 7 without messing up anything. This is by far the easiest and fasted method to install windows i have witnessed till now
    If you want to clean( only kep one os) install, you will have to use imagex in windows pe mode or in cmd in windows 8 install disk.
    After these proesses, i cannot assure if one key reocvery would work, so make backup before hand.
    And if you have any questions, feel free to ask
    Hope this helps
    Regards
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

    Btw, is it possible this becomed a sticky thread?
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • Is there a way to increase the speed with which Acrobat X Standard opens a form?

    I have several PDFs stored on my computer.  If Acrobat is not open on my system, the first form that I open takes forever to load.  It opens; however, I cannot access the text/check boxes for sometimes upwards of 30 to 45 seconds.  This is extremely frustrating.  Is there something that I am doing wrong or something that I can reset to prevent this from happening?  Once the first form of the day is open, the subsequent forms don't seem to suffer this problem.  I am working on Windows 7 Pro. 

    Hey guys, Gt this problem nailed. There is an add-on called "yet Another Smooth Scrolling" which is terrific and even works with keyboard up/down keys as well. Take a peek at it and this should resolve your problem.
    So far I have been using Google Chrome and recently moved to FireFox for its better stability. The things that I found lacking are
    1) "Web Applications" like in chrome "Web Store",
    2) Google Instant search through its address bar.
    3) Quick Start-up.
    Otherwise, I love Fire Fox and I hope people help survive this open community.
    Thanks.
    P.S: I use Firefox 7 (A Beta version). Let me know if anybody has questions.

  • Easiest way to access shared album with Lion only

    one of my friends is still using Lion only and she's want to make a photobook on her Mac with the pictures from a shared album (not photo stream) that I created. She also has an iPhone and iPad that have iOS6 (she's willing to update to iOS7 if that helps) and thus can view the shared album.
    under this situation, what's the easiest way for her to get the pictures over to her Mac? There are over 100 photos so email is something she wants to avoid. Apps that are not very expensive (<$10) is ok if they can do the job quickly. and high resolution preferred (doesn't have to be the full resolution)
    and she's using aperture to create the photobook, not that i think it's too relevant to the question
    thanks much in advance.

    You might be thinking of Crossover. Not sure if Windows Media Player works under it, but their website has info on requested and working apps.
    Best of luck.

  • New Serial - ATA Hard Drive Partitioned with OS 10.5.4 and OS 10.3.9

    Dear forum,
    I'm looking at this Internal Hard Drive - 609480 Hitachi T7K500 320GB 7200RPM SATA 3GB/s 16MB Cache - OEM - I need to obtain the 4 guide screws before I fit it in the lower bay of my G5. Is this hard drive approved by Apple?
    I need to verify with the forum that if I partition the new 320GB HD in two (2 x 160 GB partitions) and run OS 10.3.9 Classic environment on one partition and 10.5.4 on the other partition that this will present no technical problems for my G5 Dual Processor computer.

    There should have been screws already in your G5.
    I would not mix Leopard and Panther on the same drive. Even Tiger used a different partition table than Leopard now does. Could run Panther from 2nd drive or FW800 as an option.
    Best drive I have come across for now:
    http://www.barefeats.com/harper14.html
    Sells for $79 @ www.macsales.com and lower than Newegg
    As long as it is a bare or white box drive it should be fine (sometimes Dell and HP get customized drives that are more system specific though usually not a problem).

  • My MacBook pro won't turn on all the way gets to the apple with the spinning wheel underneath and that's all I need help asap

    My MacBook pro won't turn on it just gets 2 the spinning wheel and keeps spinning

    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.
    If this doesn't work then you will need to erase the drive and install Snow Leopard from scratch:
    Erase and Install Snow Leopard
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. When completed quit DU and complete the Snow Leopard installation.

  • TS2755 I have 3 phones on one Icloud account. It has been this way for over a year with no issues. After and update on of the lines started getting text messages from all 3 phones. We fixed the send and receive and it was fixed. It is doing it again.

    I have 3 phones on one Icloud account. They have been this way for over a year. After an update last week one of the phones started getting messages for all of the other lines. We fixed this under the send and receive under settings. It was fine for a few days. Suddenly it started happening again. Yesterday after two hours on the phone I changed my apple id and it is still happening. Before that Verizon had told me to turn off my imessage when that happened I could not get any texts at all from other Iphone users.

    Make 3 different iCloud accounts and use ONLY for iMessage.   That will permanently fix your issue.

  • Is there a way to make movies open with the same screen size and position?

    Hello, I'm a new mac guy having just bought an i-mac a few months ago.
    I have a bunch of saved movies that open in quick time. Each time I open a separate movie by double clicking the file, the window opens in the upper right hand corner in a fairly small window. I must then drag the window size and location to a much larger size. I do this every time.
    I saw under quicktime, preferences, a section about preferences for full screen. This seems to work one time, for that movie, but all subsequent movies (even in full screen) or their same size.
    Is there a way to make the window size and/or location permanent?
    Thanks.

    this would have seemed like an easy thing to do but i've had no luck; one more attempt at a solution?

  • I have a mini iPad with which I take pictures and capture video. In order to see them on my home tv I bought an Appletv and HDMI cable  and connected it to my home tv, Now I can see the pictures but not the video.Solution please?

    How can I view on my home TV videos that I captured with my mini iPad?

    Hey andrikos175,
    Thanks for the question, and welcome to Apple Support Communities.
    You are on the right track, you'll want to AirPlay these videos to your Apple TV. If you are having issue with AirPlay, please see the following troubleshooting resources:
    Using AirPlay
    http://support.apple.com/kb/HT4437
    Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS4215
    Thanks,
    Matt M.

Maybe you are looking for