Optimizer Statistics collection after upgrade from 8i to 10R2

I just upgraded database from 8.1.7 to 10R2 .
What would the best approach for Optimizer Statistics collection. We would like to open database for test , but I afraid some quries going to run slow without latest stats. Should I run it manually or let Oracle run it’s default stats collection job later on.
Any suggestions?

user594143
You really need a strategy before an upgrade like this, but you have two options -
a) try to make the 10g stats collection identical to the 8i stats collection. Check the code you used to run, check the 8i default values for the parameters in your current dbms_stats() calls, and write them in explicitly when you run the code under 10g.
OR
b) do a full 10g conversion. Get rid of your own collection code, clear out most of the old settings you had in your parameter file for fiddling with the optimizer, do a 'gather_schema_stats' then leave 10g to do its default thing and fix any problems that appear.
If you have testing time on a non-production system, then (b) is the strategic option - although personally I think it tends to collect too many histograms and still needs some refinement; if you don't have any testing time and you're going straight into production then (a) is the least threatening option (and if someone's made you do that, you might also set the optimizer_features_enable to 8.1.7 until you can do some proper upgrade tests).
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk

Similar Messages

  • The optimizer changed after upgrade from 8i to 10g

    I have upgraded my Oracle database from 8i (8.1.7.3) to 10g (10.2.0.3). After upgraded, there's some SQLs are with performance issue that the response time is very slow. The SQL can run very fast (around 1 seconde) in the pre-upgrade environment. Also, after generating the execution plan, there's different from the original enivronment (8i) which the query using some full table scan instead of index scan originally used in 8i.
    The optimizer_mode of 8i is RULE and it's CHOOSE when upgraded.
    My questions are:
    1. Do I have any init.ora parameters setting in 10g environment which differ from 8i?
    2. What method of analyzing tables is appropriate to use in 10g? Will this affect the performance like my case?
    Thanks,
    Wai

    Please have a look to following threads:
    Re: Optimizer Statistics collection after upgrade from 8i to 10R2
    Re: DB upgrade from oracle 8.1.7 to oracle 10.2.0.2

  • How to change table defnition after upgrade from 9 to 10 ?

    after upgrade from 9 to 10, tables ddl still like 9i:
    .................PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255..........
    ................ inndex PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS..........
    Is there a method to convert it all tables to new 10g style without re-create thousands tables then emp/imp one by one?
    Thanks

    What do you mean by "10g style"? Do you want tables to be using ASSM? If that's the case, that's a feature of tablespace itself. So it means that your tables need to be in those tablespace which are having Segment Space management auto set in them.I don't think that there is any automatic package which can do the same on the fly.
    One way ,which may not be very less time consuming but still can help is to convert the segment space management using EM.But again,this does recreate teh tablespace so I don't think that this is any different from exp/imp.
    HTH
    Aman....

  • Automatic Optimizer Statistics Collection Enabled still tables not analyzed

    Hello,
    We have Oracle 11g R1 database. Our automatic Optimizer Statistics Collection settings are enabled, still I don't see the tables being analyzed, any suggestions if I am missing any settings. All tables do get analyzed if I do manual statistics gathering.
    SQL> select CLIENT_NAME ,STATUS from DBA_AUTOTASK_CLIENT;
    CLIENT_NAME STATUS
    auto optimizer stats collection ENABLED
    auto space advisor ENABLED
    sql tuning advisor ENABLED
    Thanks,
    SK

    user599845 wrote:
    Hello,
    We have Oracle 11g R1 database. Our automatic Optimizer Statistics Collection settings are enabled, still I don't see the tables being analyzed, any suggestions if I am missing any settings. All tables do get analyzed if I do manual statistics gathering.
    SQL> select CLIENT_NAME ,STATUS from DBA_AUTOTASK_CLIENT;
    CLIENT_NAME STATUS
    auto optimizer stats collection ENABLED
    auto space advisor ENABLED
    sql tuning advisor ENABLED
    Thanks,
    SK
    still I don't see the tables being analyzed, post SQL & results that lead you to this conclusion.
    realize that statistics can be "collected" without updating LAST_ANALYZED column.
    if data within table does not change, the nothing would be gained by "updating" statistics to same values as now/before.

  • After upgrade from 10.2.0.1 to 10.2.0.4 enterprise manager not working

    after upgrade from 10.2.0.1 to 10.2.0.4
    on windows enterprise manager is not working
    Edited by: 830525 on Mar 24, 2012 9:44 AM

    F:\Documents and Settings\hakem>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://M1C3:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoleor
    cl service is starting..........................................................
    The OracleDBConsoleorcl service could not be started.
    A service specific error occurred: 1.
    More help is available by typing NET HELPMSG 3547.
    F:\Documents and Settings\hakem>NET HELPMSG 3547
    A service specific error occurred: ***.
    EXPLANATION
    A service-specific error occurred.
    ACTION
    Refer to the Help or documentation for that service to determine the problem.
    that's what happen while trying to start db console

  • File- Export not working after upgrade from 11i to R12

    Hi,
    File -> Export not working after upgrade from 11i to R12.1.3 in few systems. Can you please let me know what could be the issue.
    If export record count more than 200 it is working fine in all the systems and if change the profile option "Export MIME type” value to ‘text/tab-separated-values’ from application/excel also it is wokring.
    Thanks and Regards,
    Jagadeesha

    Enabled the FRD. Below are few last lines. Can you please let me know what i can in this log file contents.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing GET_ITEM_PROPERTY/FIELD_CHARACTERISTIC Built-in:
    In Argument 0 - Type: Integer Value: 196613
    In Argument 1 - Type: Number Value: 54
    Out Argument 0 - Type: String Value: 12
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_MENU_ITEM Built-in:
    In Argument 0 - Type: String Value: FILE.EXPORT
    Out Argument 0 - Type: Integer Value: 19
    Executing GET_MENU_ITEM_PROPERTY Built-in:
    In Argument 0 - Type: Integer Value: 19
    In Argument 1 - Type: Number Value: 79
    Out Argument 0 - Type: String Value: TRUE
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_synch.menu_toolbar_sync. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: NULL
    In Argument 1 - Type: String Value: GLOBAL.OUT
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND GETPROFILE NAME="UPK_RECORDING_ENABLED" FIELD="GLOBAL.OUT" N
    FNDCPVCM, 11, Built-In, Entry, 316509814, USER_EXIT
    FNDCPVCM, 11, Built-In, Exit, 316509814, USER_EXIT
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.OUT
    Out Argument 0 - Type: String Value: N
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing GET_APPLICATION_PROPERTY Built-in:
    In Argument 0 - Type: Number Value: 75
    Out Argument 0 - Type: String Value: IHR40P
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed call_all_libraries. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_standard.event. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    FNDCPVCM, 10, Prog Unit, Exit, 316509814, /FNDCPVCM-3/P45_30_DEC_201223_28_33
    FNDCPVCM, 9, Trigger, Exit, 316509814, WHEN-NEW-ITEM-INSTANCE
    FNDCPVCM, 8, Prog Unit, Exit, 316509814, /DMU-4/P8_30_DEC_201223_23_12
    # 15 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301498413820
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3
    # 16 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301512613925
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3

  • Lost Developer Toolbar after upgrade from 4.1 to 4.2

    After upgrading from 4.1 to 4.2.1.00.08, we have lost the Developer Toolbar.
    Have others run into this with the upgrade or fresh installation of 4.2.1?
    If so, what suggestions are there for fixing, short of reinstallation mentioned in this other thread:
    {message:id=10692572}
    Following the guidance there to look at the instance ID and other preference settings, I compared our three instances. The two that are not having the problem are both at 4.2.0.00.27.
    Here are the preferences that exist on our other instances but are null on the problem instance:
    APEX_4_1_0_PATCH_12920544
    APEX_4_2_0_PATCH_14777994
    APP_EXPORT_TO_DB_ENABLED
    HPROF_DIRECTORY
    INSTANCE_ID
    MOBILE_DEVELOPMENT_ENABLED
    PRINT_SVR_HOST
    PRINT_SVR_PORT
    PRINT_SVR_SCRIPTI have asked our support team to review the upgrade log. Re-installation from scratch is an option.
    Any advice is welcome.
    Skip

    Thanks, Joel.
    You inspired me to take a closer look, and look beyond the upgrade.
    After the upgrade, my application passed a superficial checkout. Later, I exported my application and in the export file, the Instance ID was not NULL. I had not noticed any problems with how APEX was working.
    The problems of the missing Developer Toolbar, Instance ID = NULL, and a new one, did not occur until I removed my application and tested a clean installation of the workspace and application. This is the sequence of events. The immediate triggering cause is clearly one of the following:
    1. Deinstall application (ID 820) from APEX 4.2.1.00.08 instance, running 11g (11.1.0.7.0).
    2. Remove workspace (PVA_AH9_R12)
    3. (drop the parsing schema, xxpva, and related tablespace)
    4. (create tablespace and schema user, xxpva)
    5. Import workspace (PVA_AH9_R12) from an APEX 4.2.0.00.27 instance.
    6. Import application (ID 820) including supporting objects from an APEX 4.2.0.00.27 instance, running 11g (11.2.0.1.0).
    The next day I noticed the Developer Toolbar missing problem, and found that Instance ID is NULL.
    Also, after Exporting an application in Database format, I cannot download the file from the Export Repository. When I click the filename link, I get 'Access Denied' instead of the normal download dialog.
    Does this suggest anything else I should look into?
    Do you think I should post this as a new problem/question with more detail about the sequence of events?
    Skip

  • SSO and Portal down after upgrade from AS 10.1.2.0.2 to 10.1.2.3

    SSO and Portal is down after upgrade from AS 10.1.2.0.2 to 10.1.2.3. All others are running fine. Any similiar experience and solution?
    Thanks.
    Andy

    cn=XXX information is missing for the SSO Server (orasso) when going to http://servername:7777/pls/orasso/orasso.home. Is that causing the problem? If so, how can I resolve it?
    Thanks.
    Andy

  • Remote Desktop Connection stop working after upgrade from 10.5.8 to 10.6.1

    I too could not connect to a W2K3 server with RDC 2.0.1 after upgrading from Mac OS X, 10.5.8 to 10.6/10.6.1. I have another Mac which is on 10.5.8 and connect fine with the same version of RDC 2.0.1 as well as other PC with Terminal Service Clients.
    There is no change on the server side. I have uninstalled and reinstalled RDC 2.0.1 several time and it did not resolve the issue. To rule out firewall/network, I tested with another remote desktop application called CoRD (for Mac) on the same laptop running SL 10.6.1 and it connected to the same W2K3 server fine.
    One thing that is worth mentioning (in my case), when it does not connect, RDC totally quit (not running anymore. Not minimize, no cannot connect error message, no little dot on the Dock for RDC, nothing) right after I put in the credential in. When looking at the log entries that are related to RDC in the Console application, I see the following
    machine 10.6.1. with RDC 2.0.1 (non-working)
    9/22/09 1:17:16 PM [0x0-0x3a03a].com.microsoft.rdc[468] objc[468]: Class NLAssertionHandler is implemented in both /Applications/Remote Desktop Connection.app/Contents/MacOS/../Frameworks/Netlib.framework/Versions/12/Netlib and /Applications/Remote Desktop Connection.app/Contents/MacOS/../Frameworks/RDCPAL.framework/Versions/12/RDCPAL . One of the two will be used. Which one is undefined.
    On the 10.5.8 machine with RDC 2.0.1 (working), I see the following entries
    9/22/09 1:13:23 PM [0x0-0x24f24f].com.microsoft.rdc[5502] objc[5502]: Class NLAssertionHandler is implemented in both /Applications/Remote Desktop Connection.app/Contents/MacOS/../Frameworks/Netlib.framework/Versions/12/Netlib and /Applications/Remote Desktop Connection.app/Contents/MacOS/../Frameworks/RDCPAL.framework/Versions/12/RDCPAL . Using implementation from /Applications/Remote Desktop Connection.app/Contents/MacOS/../Frameworks/RDCPAL.framework/Versions/12/RDCPAL .
    9/22/09 1:13:39 PM Remote Desktop Connection[5502] * _NSAutoreleaseNoPool(): Object 0x16a25c20 of class NSCFArray autoreleased with no pool in place - just leaking
    Stack: (0x9277af4f 0x92687432 0x93062bf5 0x926ce0fb 0x9723dff5 0x9268d52c 0x92fd447a 0x92fd4753 0x92fd4a48 0x930375da 0x530bac 0x4831a2 0x483750 0x483c0b 0x47a811 0x4796ac 0x485dad 0x47d475 0x5099dc 0x574c70 0x4ade03 0x4ae65d 0x4ae6f7 0x4ac8dd 0x53260c 0x534187 0x4ae76a 0x4ae7d0 0x4ae88e 0x493925 0x4ae13d 0x533b1a 0x53da6c 0x94a48057 0x934b3155 0x934b3012)
    Any help would be appreciated

    Doing some more troubleshooting after my post above as I saw a couple of entries referencing Stop Light keep popping up in the log of the Console. I removed Stoplight and Cocoa Gesture (for good meausre) and RDC 2.0.1 started working. I think it is Stop Light which causes RDC stop working, but I don't have to time right now to put Cocoa Gesture back to confirm that. I might if I have the time or post here if you have Stop Light installed as well and removing it resolved the RDC issue for you.

  • ITunes Not Recognizing my iPod Touch after Upgrading from Tiger to Leopard

    After upgrading from Tiger (10.4.x) to Leopard (10.5.0=>10.5.6), my iPod Touch is no longer recognized by iTunes 8.0.2. The iPod Touch no longer appears in iTunes' "source list" (left side pane in iTunes' GUI).
    Immediately prior to that upgrade, my iPod Touch was working great with Tiger (10.4.x). iTunes 8.0.2 recognized it (listed it in sources) and always synchronized with it successfully.''
    My iPod Touch is also not shown in the Finder. However, it does show up as recognized in iPhoto.
    Any ideas on how to get the iPod recognized again in iTunes under Leopard?

    Thanks to a posting by Jim in a different Apple Discussions (forum), my problem is now resolved. Read on for the details.
    iPods & Finder. Some other postings incorrectly lead me to believe that the iPod would show up in the "Finder". Jim's posting set me straight on this.
    iTunes Not Recognizing iPod Touch. Prior to Jim's posting, I had already read the article that Jim referenced (to remove and reinstall the Apple Mobile Device Service per article "http://support.apple.com/kb/HT1747").
    Prior to Jim's posting, I had also read other articles in various "Apple Discussions" (forums) that suggested this recognition problem could be resolved by uninstalling/re-installing iTunes 8.0.2. Some implied that you could just re-install iTunes 8.0.2 right over the currently installed one without bothering to uninstall it.
    Based on those postings, I "gambled" last night and simply downloaded and re-installed iTunes 8.0.2 (without uninstalling it first). I noticed during the installation that the Apple Mobile Device agent was also re-installed. Well, my gamble paid off! After the installation (and a reboot?), iTunes onces again RECOGNIZED my iPod Touch.

  • My iPhone 4S no longer syncs after upgrading from 10.5.8 to Snow Leopard 10.6.3

    y iPhone 4S no longer syncs after upgrading from 10.5.8 to Snow Leopard 10.6.3 - any solutions out there?

    Thanks - got stuck with the upgrade to 10.6.8, but Apple Support was able to navigate me through that, the date settings caused a problem here.

  • After upgrading from Win 8 to 8.1 my DVD RAM GT80N SATA Drive is no longer working

    After upgrading from Win 8 to 8.1 my  DVD RAM GT80N SATA Drive is no longer recognizing discs. When I first put a disc in the drive runs for a bit and then stops. I've tried updating the driver but it says it has the most current driver. Under manage, it does not show any error codes and it says it is working correctly. I've looked at the regedit and it does not have any of upper and lower filters. I've tried disabling, rebooting, and reenabling. What am I missing? Another issue I've had since upgrading is that my network adapter needs reset several times a day in order to remain connected to wifi.

    Hey hvbnfrgvn,
    Thank you for the information on your HP Pavilion g7-2270us Notebook PC.
    I suggest following the steps in this document for Drive Cannot Read Discs (Windows 8).
    If your CD/DVD Drive Is Not Detected (Windows 8), follow the steps in this document.
    I hope this information helps, please keep me posted on how it goes.
    Best of luck and have a great day!
    I worked on behalf of HP.

  • Problems after upgrading from 10.2.3 to 10.2.8

    After upgrading from 10.2.3 to 10.2.8, itunes "unexpectedly quits" when I try to purchase a song, and safari "unexpectedly quits" when I visit certain websites. Before upgrading, no such problems.

    Hello rick,
    First of all, welcome to the Apple discussions.
    * How did you upgrade the OSX 10.2.3??
    * Did you use the combo update?
    * Did you run the dick repair permissions before an after
    Here is the Combo Update for OSX 10.x
    Combo Update
    An here is how you use the disc repair permissions
    About Disck Repair Permissions
    Applications Quits
    Let me know if so ...
    Discussions is a ongoing process. Hope to see you around anytime you need us, or can offer help to others.
    Dimaxum <]:~))

  • After upgrading from 8 to 9.0.1 I no longer have any search engines installed. I would like to install Google as my default search engine. When I click on "get more search engines" I cannot find Google or Bing or -

    Problem with search
    After upgrading from 8 to 9.0.1 I no longer have any search engines installed. I would like to install Google as my default search engine. When I click on “get more search engines” I cannot find Google or Bing or …

    I resolved my issue. Renamed search.sqlite and reinstalled Firefox 9.0.1
    All default search engines are now available.

  • I have a big problem with Lion and PGP. After upgrading from snow leopard to lion I cannot access my PGP drive which was generated under snow leopard. PGP does not start but gives a notion that lion cannot work with my PGP version. Solution?

    After upgrading from Snow Leopard to Lion I cannot access a PGP drive which was generated under snow leopard. PGP does not start. When I try to start I just receive a message that Lion cannot work with PGP. How can I now access important and confifential informatio which I have stored in PGP (snow leopard). Do I have to move back to snow leopard. If so, how can I do this? 

    If you have this product,
    http://www.symantec.com/business/support/index?page=content&id=TECH165159
    you have to go back to Snow Leopard.
    To re-install SL, back up your home directory, format and re-install.

Maybe you are looking for

  • System failure during locking GL account 5555 by 13113910 Message no. 8I076  and the time of saving out going excise invoice.

    Hi SAP Gurus, We are configuring the CIN Settings for our client and at the time of testing, while saving the Out going excise invoice the system is giving the error as "Balance in Transaction Error" and when pressed enter the system displays the err

  • Web services access from PL/SQL. It is possible?

    Hello, I need to access some data from one database, using a Web Services (it's the only way I have permisson). It's possible to do that from an PL/SQL function/procedure from another database? Thanks, XaM

  • Date Field (MON-YYYY)

    Can somebody help me to display and enter in date field like MON-YYYY.So it will save also like that in database.

  • Ext HD will not mount

    My lacie HD - forwire 200 gig will not mount. It shows up in disk utilities but not on the desktop. In the info section of disk utility, the smart status is not verified. It seemed to go wacky after the last security update.

  • 9860 software corrupted!?

    I downloaded thru bb9860 the OS 7.1 and it was successfull,it says. After a few days,I can't use it anymore! I can recive messages but I can't read them! The touch screen is not working anymore and right now I really can't use it!