Any precautions before importing old statistic?

Hello All,
On my Oracle 9i database I exported statistics of a schema in a table using following commands:
exec dbms_stats.create_stat_table(ownname => 'SCHEMA', stattab => 'STAT_TABLE');
exec dbms_stats.export_schema_stats(ownname => 'SCHEMA', stattab => 'STAT_TABLE');I need to import them back for the schema. I will use following steps:
exec dbms_stats.import_schema_stats(ownname => 'SCHEMA', stattab => 'STAT_TABLE');Do I need to delete existing STATs before I import old one? or I shuold above import command directly?
Thanks,

The precautions would really depend on when & why you exported the statistics. In general, I would probably delete the existing statistics first.
Be aware that when you import the statistics, Oracle is going to invalidate all your cached SQL plans, so the database is going to start hard parsing like crazy. Query plans should change back to the plans that were present with the old statistics, assuming the data was the same. If you have monotonically increasing columns with histograms (i.e. a create_date column with a histogram), old statistics with new data may generate new, bad query plans because queries would be passing in bind values greater than the histogram's top value. If there are new objects, new columns, or new histograms since the statistics were exported, those objects/ columns/ histograms would now be missing and would need to be collected again.
Justin

Similar Messages

  • FIXED ASSET : Import old asset in SBO ?

    Hi,
    I'm trying to import old asset in SBO which have been totally amortized for end 1998, and it seems impossible to do it.These assets are used and net to be in the Assets Book with one resdual value equal to 1.
    Is there any limits for importing old assets ?

    post in SBO forum

  • I connected a digital camera memory chip with approximately 100 photos on it. The photos showed up in iPhoto. I believe I deleted the photos from the memory chip before importing them. Is there any way I can get the photos back?

    I connected a digital camera memory chip with approximately 100 photos on it to import into iPhoto. The photos showed up in iPhoto. I believe I deleted the photos from the memory chip before importing them to iPhoto. Is there any way I can get the photos back?

    Terence, thanks that site is a gem...have to explore it more fully at home as it drove security here crazy
    Looks like just the ticket for saving mistakes.

  • HT4236 I was trying to Import photos to my computer and was asked to upgrade my Iphone before importing. In restoring my Iphone, it deleted all of my 200 new photos and they are now gone. Is there any way to retrieve them?

    I was trying to Import photos to my computer and was asked to upgrade my Iphone before importing. In restoring my Iphone, it deleted all of my 200 new photos and they are now gone. Is there any way to retrieve them?

    You should ALWAYS import all pics ( and anything selse for that matter) before any update. 
    If you failed to do this, then the pics are likely gone.  You can try restoring from backup.

  • Imported old family video, I seperated different events, how can I save event to put together in a menu like family, vacation, christmas.

    Imported old family video, I seperated different events and named each event, how can I save event to put together in a menu like family, vacation, christmas to make a DVD

    revdhayes wrote:
    I imported 5 1 hour old video in Final Cut Pro X. I spent all day seperating clips with Start and end then naming each clip in properties..
    Sorry, but I don't understand  what "5 1 hour video" means.
    I do understand that you have a lot of clips that you want to group by various subjects, like vacation, etc. That's a perfect job for keywords, which perhaps is what you used when you named them?
    If you did use keywords, go to that TL Index and click Tag at the top and then the keyword icon at the bottom. It should give you a list of only clips in that category. Select clip from the menu and it should highlight them. You could then copy and paste them to a new project for export. Repeat as necessary.
    If you're going to do a lot of these, I'd suggest doing this from the event browser, applying keywords and then the clips into separate projects.  But there are always more than one way to do things, and to each his/her own.
    Again, I don't have any idea how long your footage is and whether it is even possible (or desirable) to fit it on to a single DVD. I mentioned iDVD because of its menu and sub menu capabilities. You will need another app like Compressor to do the chapter makers (unless Apple updates FCP before you finish your project and adds that capability. That would be nice,)
    Good luck.
    Russ

  • Import old Library to the last version of Apperture

    Hello
    I have a trouble about import old library. I have one done in a version 3.0... and I would like to import it to the Aperture last version. I obtain only an error message that I have to update the library before to import. How can I do to be able to import it without to reinstall an old version in my actual Mac.
    Thanks for your help
    Philippe

    What is the message like, that you see? Do you see the message below? That is not an error message, just an information that your library is outdated.
    If it is this message, then press the "quit" button and do first a "rebuild library", to ensure that your Aperture library does not have any inconsistencies that might cause problems.
    Hold down the "⌥⌘"-key combination (press firmly) and double click the Aperture Library to launch Aperture into the "First Aid" mode. Select "Rebuild Database" from the "First Aid" panel.
    Now Aperture should upgrade and rebuild the Library in one go - that may take a while for a large Library - do not get impatient and force quit Aperture, unless you do not see any progress at all for hours.
    If you see a different message, and Aperture crashes or does not launch at all, please explain what you see exactly and post the full error message.
    Regards
    Léonie

  • Import old playlists

    Ok, first off i know this might seem weird but.
    I upgraded my computer awhile back by getting a 160GB external hard drive. I then decided to backup all my itunes songs by exporting all the songs to the hard drive. I then deleted my whole library and added all the songs again, so itunes would know that they are on my computer now.
    Heres the tricky part. while discussing about my ipod, i noticed all my play lists were erased. Now these were not normal play lists to me. The one play list contains songs i have listened to before every game i pitch in. I am very superstitious. I also had a play list i listened to after my games while i ran. I remember most of the songs, but not all or the order. This is very important to me.
    Also when i goto my documents\ my music\previous itunes libraries There is a .itl file that is dated from when i did all this updating. but when i click to load the old library, itunes opens with the new library.
    Is there any way to import my old play lists. or just somehow find out what songs were in that play list.
    Thanks so much to everyone that helps,
    I greatly appreciate it,
    Robert "Rammer"

    You copy everything from your old comuter, or your backup copy of your old computer, to your new one.

  • How do I rename the iphoto library on one computer before importing it to another location with other iphoto libraries?

    How do I rename the iphoto library on one computer before importing it to another location with other iphoto libraries?

    How do I rename the iphoto library on one computer before importing it to another location with other iphoto libraries?
    Quit iPhoto.
    Select the Library in the Finder, click the name,  and edit the name like for any file.

  • Imported old computer via time machine into new 2012 macbook pro, but its still running ilife 09 instead of 11?

    imported old computer via time machine into new 2012 macbook pro, but its still running ilife 09 instead of 11?

    I am assuming you had iLife 09 on the old computer - when you moved everything over, that came along with it.
    I also have older versions of iLife (on install disks) and just recently got a new 2012 Macbook Pro. I noticed that iMovie 11, iPhoto and Garageband (I think) are listed in my Mac App Store Purchases with a notation to "accept". So you might want to check MAS to see if the apps are sitting there.
    Now, I have chosen not to accept them for now for two reasons: I have iLife 11 on a disk and prefer that rather than having it tied to MAS/Apple ID and as long as I have my disk version installed, I also still have iDVD which I use a lot. I'm not sure if "accepting" those three from MAS would wipe out my iLife 11 installs including iDVD (which would be unacceptable for me). So, since I already have the latest version, I've opted to ignore the "accept" and, in fact, will leave it like that - if I ever sell this machine, the buyer can then accept them if they want with their own Apple ID. So before accepting the apps (if they are listed in MAS), you might want to check to make sure that your iLife install isn't wiped out - that is, if you have iDVD and want to keep it.

  • Trouble importing old photo library to iPhoto 06

    I just updated to iLife/iPhoto 06. When importing old photo library which is 7-8,000 photos, I got 24,000 + images incl. images of computer icons, demo photos, images that look like pieces from web pages (headers, part of photos etc), 4-5 copies of my own photos, some look like they are "pixilated", which the original wasn't. Any idea of what happened and how to fix this, short of manually deleting each image that doesn't belong?
    iMac G5   Mac OS X (10.4.9)  

    Terence,
    Tks, I kind of suspected that. I'm new to Macs and more used to PCs, and by no means good at either system, so it sometimes gets confusing.
    Anyway - Here's the list from the iPhoto Library folder - I did copy & paste, but it didn't paste in the same order it is listed in the iPhoto Library window. I guess it should all be there though.
    CIMG0933.JPG
    01000008.JPG
    CIMG0991.JPG
    CIMG0985.JPG
    CIMG0984.JPG
    CIMG0981.JPG
    CIMG1309.JPG
    IMG_0703.JPG
    IMG_0704.JPG
    IMG_0705.JPG
    IMG_0706.JPG
    iPhoto.ipspot
    iPod Photo Cache
    Library6.iPhoto
    CIMG1307.JPG
    CIMG1308.JPG
    CIMG1312.JPG
    CIMG1313.JPG
    CIMG1314.JPG
    CIMG1315.JPG
    CIMG1316.JPG
    CIMG1317.JPG
    IMG_0682.JPG
    IMG_0683.JPG
    IMG_0684.JPG
    IMG_0685.JPG
    IMG_0686.JPG
    IMG_0687.JPG
    IMG_0688.JPG
    IMG_0689.JPG
    IMG_0690.JPG
    IMG_0691.JPG
    IMG_0692.JPG
    IMG_0693.JPG
    IMG_0694.JPG
    CIMG1286.JPG
    CIMG1291.JPG
    CIMG1285.JPG
    D.CTG
    Data
    Dir.data
    IMG_0645.JPG
    IMG_0646.JPG
    IMG_0647.JPG
    IMG_0648.JPG
    IMG_0649.JPG
    IMG_0650.JPG
    IMG_0652.JPG
    IMG_0653.JPG
    IMG_0654.JPG
    IMG_0655.JPG
    IMG_0695.JPG
    IMG_0696.JPG
    IMG_0697.JPG
    IMG_0698.JPG
    IMG_0699.JPG
    IMG_0700.JPG
    IMG_0701.JPG
    IMG_0702.JPG
    IMG_0677.JPG
    IMG_0678.JPG
    IMG_0679.JPG
    iPhotoLock.data
    Library.data
    Library.iPhoto
    MauiJan.2006055 Folder.2
    Modified
    Originals
    Richardito politicing
    scan-2.jpg
    Thumb32Segment.data
    Thumb64Segment.data
    ThumbJPGSegment.data
    CIMG1005.JPG
    CIMG1006.JPG
    CIMG1007.JPG
    CIMG1008.JPG
    CIMG1009.JPG
    CIMG1010.JPG
    CIMG1011.JPG
    CIMG1024.JPG
    CIMG1025.JPG
    CIMG1026.JPG
    CIMG1027.JPG
    CIMG1028.JPG
    CIMG1029.JPG
    CIMG1030.JPG
    CIMG1035.JPG
    CIMG1277.JPG
    CIMG1278.JPG
    CIMG1279.JPG
    CIMG1280.JPG
    CIMG0965.JPG
    CIMG0966.JPG
    CIMG0967.JPG
    CIMG0968.JPG
    CIMG0969.JPG
    CIMG0970.JPG
    CIMG0971.JPG
    CIMG0972.JPG
    CIMG0973.JPG
    CIMG0975.JPG
    CIMG0976.JPG
    CIMG0977.JPG
    CIMG0978.JPG
    IMG_0643.JPG
    CIMG0979.JPG
    CIMG0980.JPG
    CIMG0960.JPG
    CIMG0961.JPG
    CIMG0962.JPG
    CIMG0963.JPG
    CIMG0964.JPG
    IMG_0681.JPG
    CIMG0988.JPG
    CIMG0989.JPG
    CIMG0987.JPG
    CIMG0929.JPG
    IMG_0675.JPG
    IMG_0680.JPG
    CIMG1300.JPG
    CIMG1301.JPG
    CIMG1302.JPG
    CIMG1303.JPG
    CIMG1292.JPG
    CIMG1293.JPG
    CIMG1294.JPG
    CIMG1295.JPG
    CIMG1296.JPG
    CIMG1297.JPG
    IMG_0661.JPG
    IMG_0668.JPG
    IMG_0670.JPG
    IMG_0672.JPG
    IMG_0673.JPG
    IMG_0708.JPG
    IMG_0709.JPG
    01000022.JPG
    CIMG0982.JPG
    IMG_0658.JPG
    CIMG1034.JPG
    CIMG0943.JPG
    CIMG1281.JPG
    01000007.JPG
    CIMG0997.JPG
    CIMG1287.JPG
    CIMG0930.JPG
    CIMG1017.JPG
    01000001.JPG
    CIMG0999.JPG
    CIMG0923.JPG
    CIMG1284.AVI
    CIMG0917.JPG
    CIMG0935.JPG
    IMG_0666.JPG
    IMG_0707.JPG
    CIMG1282.JPG
    2001
    CIMG0916.JPG
    CIMG0950.JPG
    CIMG1000.JPG
    CIMG0931.JPG
    CIMG0918.JPG
    CIMG0941.JPG
    CIMG1306.JPG
    CIMG0913.JPG
    CIMG0944.JPG
    01000004.JPG
    CIMG0920.JPG
    CIMG0998.JPG
    01000017.JPG
    CIMG0942.JPG
    CIMG1289.JPG
    01000005.JPG
    1999
    CIMG1023.JPG
    CIMG0986.JPG
    01000014.JPG
    01000011.JPG
    IMG_0662.JPG
    2000
    2004
    IMG_0710.JPG
    IMG_0659.JPG
    CIMG0953.JPG
    CIMG1018.JPG
    2002
    IMG_0671.JPG
    CIMG0932.JPG
    106.CTG
    CIMG0952.JPG
    CIMG1022.AVI
    CIMG0937.JPG
    CIMG1019.JPG
    CIMG1288.JPG
    01000021.JPG
    107.CTG
    01000027.JPG
    CIMG0983.JPG
    CIMG0947.JPG
    AlbumData.xml
    CIMG0992.JPG
    CIMG1032.JPG
    CIMG0957.JPG
    01000002.JPG
    CIMG1020.JPG
    CIMG0958.JPG
    01000009.JPG
    2007
    CIMG0959.JPG
    CIMG1001.JPG
    01000023.JPG
    CIMG0928.JPG
    01000020.JPG
    CIMG0934.JPG
    01000003.JPG
    IMG_0676.JPG
    IMG_0660.JPG
    01000012.JPG
    2006
    CIMG1033.JPG
    CIMG0911.JPG
    1969
    CIMG0919.JPG
    CIMG1283.JPG
    CIMG0938.JPG
    01000026.JPG
    2003
    CIMG0940.JPG
    01000010.JPG
    01000019.JPG
    CIMG0925.JPG
    2005
    01000025.JPG
    CIMG1290.JPG
    CIMG0951.JPG
    CIMG1021.JPG
    CIMG1013.JPG
    CIMG0915.JPG
    CIMG1012.JPG
    01000024.JPG
    CIMG0994.JPG
    01000013.JPG
    CIMG0948.JPG
    CIMG0993.JPG
    CIMG1031.JPG
    01000006.JPG
    CIMG0939.JPG
    CIMG0910.JPG
    CIMG0914.JPG
    CIMG1016.JPG
    CIMG0909.JPG
    CIMG0949.JPG
    CIMG0924.JPG
    01000018.JPG
    CIMG0946.JPG
    CIMG0945.JPG
    CIMG0936.JPG
    CIMG1015.JPG
    01000015.JPG
    CIMG0926.JPG
    CIMG0921.JPG
    CIMG0912.JPG
    01000016.JPG
    CIMG0927.JPG
    CIMG0996.JPG
    CIMG0922.JPG
    04
    08
    By the way, here's another question, a bit off the current subject: Sometimes we have trouble playing video clips downloaded from our camera. Sometimes iPhoto will play the audio but no picture, sometimes the other way around, and there don't seem to be any common thread one way or the other. Recently a bunch of clips that used to play audio only "repaired themselves" and are not playing fine. But others are only playing video with no sound. Any idea of whats going on?
    Thanks
    Marianne

  • Can't import old CD's, Help!!!!!!

    I can't import old CD's. I've upgraded my dvd drive, I've reinstalled itunes, I've upgraded to the latest version of itunes and I still can't get all my CD's in my library. Whenever I try to import songs from CD's from 2000 and older itunes freezes and I have to unplug my computer. For the amount of money you spend on this thing and all the hype about it it surely isn't worth the money. No one at apple seems to know what the problem is, they claim they never heard this problem, but this message board is full of people with the same problem. Do anyone have any answer to this nagging problem?

    Thanks for the suggestion. CD's are clean; no finger prints or dust. Still can't import into iTunes. A little background-- I had iTunes on a PC previously. When I transferred the library to my MacBook, I noticed some CD's were not transferred. This is one of the CD's I had in iTunes on my PC, but is now not in iTunes on my MacBook. Why can I not add this and some other CD's to iTunes on my MacBook?

  • Starting Lion Mail without importing old mails?

    with the upgrade to Lion OSX, I lost access to my mails!
    Starting Lion Mail it asks to import old mails. Only other choice is cancelling the process.
    It then spends around 1hour loading (invisibly) old mails into new Lion mail (ca. 260,000 mails.)
    Right before the end of the importing process, it breaks up and send error message that some index has been distroyed.... should restart mail... and it would then repair the index... THIS IS NOT THE CASE.
    I am stuck.
    Can anyone please tell me, if it is possible to start Lion Mail from scratch preventing it from importing old mails automatically?
    I have erased com.mail.plist as well as all folders related to my old emails, but it manages to find the old mails somewhere in the invisible parts of the computer (MacBook Pro).
    Thanks for helping out

    Those Mail messages are in the Mail folder of your user's Library folder.  With Mail not running, in the Finder hold down an "option" key while you pull down the "Go" menu.  Select Library from the menu list.  In the resulting Finder window move the folder Mail to the Desktop.  You should now be able to launch Mail without that import problem.  This is a guess, but you may be able to import the contents of specific mailboxes from the saved Mail folder.

  • [solved]gpg: listing keys in keyfile before import

    Alice runs
    gpg --export -a -o pub.asc
    to export her public keys to pub.asc.
    How can Bob list the keys in pub.asc without importing them?
    So far the best solution that I've found is
    gpg --list-only --import pub.asc
    but that seems kludgy because it's still running through the entire import process. Is there any way to inspect the keyfile directly (and maybe extract a subset of keys from it to another file)?
    Last edited by Xyne (2012-03-20 04:10:14)

    Thanks.
    What search terms did you use? I tried several variations of:
    gpg list keys in key file (and keyfile)
    gpg list before import
    gpg inspect key file
    gpg examine key file
    gpg show me the keyfile's secrets
    gpg just list the *%$#%^ keys already
    Nowhere in the man page do I see anything that indicates that "--with-fingerprint" would accept a file argument.
    --fingerprint
    List all keys (or the specified ones) along with their finger‐
    prints. This is the same output as --list-keys but with the
    additional output of a line with the fingerprint. May also be
    combined with --list-sigs or --check-sigs. If this command is
    given twice, the fingerprints of all secondary keys are listed
    too.
    --with-fingerprint
    Same as the command --fingerprint but changes only the format of
    the output and may be used together with another command.
    EXAMPLES
    gpg --list-keys user_ID
    show keys
    gpg --fingerprint user_ID
    show fingerprint
    I had tried "gpg --list-keys <file>" but that doesn't work, so I had no reason to think that --with-fingerprint  would work, as it is really just a modified version of "--list-keys".
    Last edited by Xyne (2012-03-20 04:10:53)

  • Transport Management: Syntax Pre-Check before Importing

    Hello experts,
    Today we imported a new transport in the productive system; after import we got syntax errors in the system. The transported report includes a function call; this function module does not yet exist in the productive system; other transport including the function module was not yet imported in the productive system.
    Using SE09 we can determine conflicts in different transports, however it is not possible to determine missing objects called from other objects (such as calling of function module).
    Is there any possibility to do a syntax pre-check (or type of simulation) of objects in target system before importing the object?
    Thank you very much in advance.
    Best regards,
    Kurt

    Hello Vikas,
    Thank you for your reply.
    Before releasing the transport we do all checks, such as syntax-check, consistency and for inactive objects.
    This is not the issue; what I need is a check against the target system (Productive system).
    Development system --> Quality system --> Productive system.
    Before importing the transport I will check, if there any object called in my report/program, that is not yet existing in the productive system.
    Thank you & best regards,
    Kurt

  • How do i show date and time info of videos in Iphone as they appeare before import in iPhoto?

    How do i show date and time info of videos in Iphone as they appeare before import in iPhoto? or even as they appear on the iPhone itself? The selection on tool bar for show info is greyed out.

    Welcome T G Brown to the  iMovie boards..
    the socalled timestamp is within the imports.. if you select a clip in iM and hit the key combo Apple-I, you can see recording time and date.
    unfortunately, this info isn't delivered to any software. Bruce Gee (geethree.com, excellent plug-in maker) told us, there's no 'API' he could use for such a feature...
    same on the pro side, read this discussion at the FinalCutExpress boards:
    http://discussions.apple.com/message.jspa?messageID=7982935
    Forum member Ian offers a solution with a 3rd party app ....
    so: pen&pencil and typing timestamp manually into any 'Title' seems to be your only option...

Maybe you are looking for