How can we improve the rebuid script in 10g

Hi
Plateform solaris = SunOS 5.9
current database version is = 9.2.0.7
Our client ir migrating database to oracle 10g. I don't have much knowledge on 10g
for reorg of indexes I have been using following scripts in 9.2.0.7
alter index GMOWNER.INDEX_34FG rebuild tablespace MAINIDX01_MEDIUM;
please suggest if this script will work fine in 10g too. if not what change is required.
is there any 10g feature which make index Rebuild process fast.
Regards
mahesh

If you're rebuilding all the indexes at a time when the database is not doing anything, then you may as well carry on using the same command - it's probably not doing much harm and it might be doing a little good.
If you need the rebuilds to go faster because you have a limited window when the database is idle, the best way to speed up the command is to stop doing it for all indexes except the ones you know are in need of house-keeping for some reason.
If you're talking about just the odd handful of indexes that you can identify as problem indexes because of the nature of the application, you might check to see if [*the coalesce command*|http://jonathanlewis.wordpress.com/2008/09/26/index-analysis/] is more appropriate.
As it stands, your rebuild command locks the underlying tables - you've seen one suggestion to use the ONLINE option, but that does more work because it has to scan the table whilst the older option MAY be able to scan the existing index to build the new copy (online also needs to lock the table briefly twice); you've also seen one suggestion to use a parallel build, but building several indexes concurrently may be more effective than using parallelism to build each in turn, there is no generic strategy that is the best in all circumstances.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How can I Improve the Performance using Global Temo Tables ??

    Hi,
    Can anyone tell me , How can i make use of Global Temporary Tables to improve the Performance.
    I have few sample scripts ,
    Say i have the View based on some Complex query like ,
    CREATE OR REPLACE VIEW Profile_values_view AS
    SELECT d.Profile_option_name, d.Profile_option_id, Profile_option_value,
    u.User_name, Level_id, Level_code
    FROM Profile_definitions d, Profile_values v, Profile_users u
    WHERE d.Profile_option_id = v.Profile_option_id
    AND ((Level_code = 'USER' AND Level_id = U.User_id) OR
    (Level_code = 'DEPARTMENT' AND Level_id = U.Department_id) OR
    (Level_code = 'SITE'))
    AND NOT EXISTS (SELECT 1 FROM PROFILE_VALUES P
    WHERE P.PROFILE_OPTION_ID = V.PROFILE_OPTION_ID
    AND ((Level_code = 'USER' AND
    level_id = u.User_id) OR
    (Level_code = 'DEPARTMENT' AND
    level_id = u.Department_id) OR
    (Level_code = 'SITE'))
    AND INSTR('USERDEPARTMENTSITE', v.Level_code) >
    INSTR('USERDEPARTMENTSITE', p.Level_code));
    Now i have created the Global temp Table as ,
    CREATE GLOBAL TEMPORARY TABLE Profile_values_temp
    Profile_option_name VARCHAR(60) NOT NULL,
    Profile_option_id NUMBER(4) NOT NULL,
    Profile_option_value VARCHAR2(20) NOT NULL,
    Level_code VARCHAR2(10) ,
    Level_id NUMBER(4) ,
    CONSTRAINT Profile_values_temp_pk
    PRIMARY KEY (Profile_option_id)
    ) ON COMMIT PRESERVE ROWS ORGANIZATION INDEX;
    Now I am Inserting the Records into Temp table as
    INSERT INTO Profile_values_temp
    (Profile_option_name, Profile_option_id, Profile_option_value,
    Level_code, Level_id)
    SELECT Profile_option_name, Profile_option_id, Profile_option_value,
    Level_code, Level_id
    FROM Profile_values_view;
    COMMIT;
    Now what my doubt is, when do i need to execute the Insert Statement.
    Say , if the View returns few millions of records , then loading such a data into Global Temporary table takes lot of time.
    Then what is the use of Global Temporary tables and how can i improve the Performance using the same.
    Raj

    Thanks for the responce ,
    There are 2 to 3 complex views in our database, and there always be more than 5000+ users will be workinf on the application and is OLTP application. Those complex views are killing the application performance.
    I what i felt was, if i create the Global Temporary tables for thow views and will be able to load the one third million of records returned by the views in to cache and can improve the application performance.
    I have created the Global Temporary tables for 2 views with the option On Commit Preserve , But after am inserting the records into the Temp table and when i Issue the commit statement, the Temp table is getting Cleared.
    I really got surpised of this behaviour as i know that with the Option On Commit Preserve , the rows should retain in the Temp Table, Instead , it's getting cleared.
    Pelase suggest , what to do ??
    Raj

  • How can I improve the stability of itunes64bit 8.0.2 on my Vista system?

    Vista Home Premium: iTunes64bit: application crashes after adding album photos and then changing views (list, Album, split) or clicking on different playlists and back to the entire music library.
    The library has 42,000 items (mostly music) so it is quite large. At launch it takes a long time for itunes to load and display. There is no user cues telling me it is running. It simply displays after 60 or more seconds.
    Then I start working in the library, pasting pictures to multiple items, modifying album titles.
    After doing a few management tasks on my music items and navigating back and forth between the music library and playlist (changing views), the application stop being responsive and according to the log, the app just plainly crashes.
    Sometimes I can restart successfully but most of the times, I need to stop the itunes service or log-out before I can restart it successfully.
    I am using itunes64bit 8.0.2
    I am running it on a machine equipped with 4GB of ram and the library lives on a 500GB external hard drive plugged-in through USB 2.0.
    How can I improve the stability of itunes64bit on my system?
    Message was edited by: JF Boisvert

    This VI can be convert to labview 8.0 because subvi are not compatible with old version.
    I post a screenshot.
    Aurélien J.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe...
    Attachments:
    image.jpg ‏38 KB

  • How can I flip my iphone videos on my PC? My videos from my iphone are horrible when I transfer them to my PC. How can I improve the video on my PC? Can I just convert the files to WMV? When the video plays the speed is off, it's half slow-motion

    My videos from my iphone are horrible when I transfer them to my PC. How can I improve the video on my PC? Can I just convert the files to WMV? When the video plays the speed is off, it's half slow-motion and staggers into normal play. The clips are slightly cut as well, the clips do not roll continuously.  I'm taling about videos that are no more than 2 minutes long.  I'm frustrated and I could really use some advice-my kids basketball games is what I'm recording and I'm trying to send them to my family (they are not very tech savvy). Thanks

    Not it's only function but one for which it was most admirably suited, which is why I really hope someone can find a work around. I am hoping my post to the Apple feedback may prompt a useful response from Apple and I live in hope that my post here will elicit a useful response from another user. I did not miss the the text at the top of the feedback form but you presumably missed my initial text, 'someone here can explain' or my subsequent 'work around from another user'
    Just in case anyone reading this has a large collection of music videos, video podcasts or iTunes U then DO NOT upgrade your iPad to iOS 5. If you are considering purchasing the iPad as a useful mobile device to experience these media organised in your iTunes please don't as you will be wasting your money. (unless someone on this forum knows of a way to undo the mess created by those infallible folks at Apple)
    Yes I know it does other things but the purpose I bought it for doesn't work anymore

  • How Can we improve the report performance..?

    Hi exports,
    I am learning the Business Objects XIR2, Please let me know How Can we improve the report performance..?
    Please give the answer in detailed way.

    First find out why your report is performing slowly. Then fix it.
    That sounds silly, but there's really no single-path process for improving report performance. You might find issues with the report. With the network. With the universe. With the database. With the database design. With the query definition. With report variables. With the ETL. Once you figure out where the problem is, then you start fixing it. Fixing one problem may very well reveal another. I spent two years working on a project where we touched every single aspect of reporting (from data collection through ETL and all the way to report delivery) at some point or another.
    I feel like your question is a bit broad (meaning too generic) to address as you have phrased it. Even some of the suggestions already given...
    Array fetch size - this determines the number of rows fetched at a single pass. You really don't need to modify this unless your network is giving issues. I have seen folks suggest setting this to one (which results in a lot of network requests) or 500 (which results in fewer requests but they're much MUCH larger). Does either improve performance? They might, or they might make it worse. Without understanding how your network traffic is managed it's hard to say.
    Shortcut joins? Sure, they can help, as long as they are appropriate. [Many times they are not.|http://www.dagira.com/2010/05/27/everything-about-shortcut-joins/]
    And I could go on and on. The bottom line is that performance tuning doesn't typically fall into a "cookie cutter" approach. It would be better to have a specific question.

  • How can I improve the sound in final cut express using my mic?

    How can I improve the sound in final cut express using my mic?

    I think you're in the wrong forum. This is the LiveType forum. There is no sound in LT.

  • How can i improve the speed of my mac?

    my mac has 667 MHz, how can i improve the speed?

    Sorry if that sounded not very helpful, but basically it comes down to that. Not much can improve the performance of machine of that vintage, to stand up to a current model, unless you spend almost as much on upgrades (some of which to consider are listed below).
    Some thought should be given to the budget (money and time and effort) one is willing to spend. The G4 Digital Audio is possibly a good candidate for upgrading for someone who is interested in do-it-yourself computer stuff and bargain hunting for parts. It can even be a fun hobby. But even max-ing out all possible upgrades will still be lacking in performance compared to the current Mac models, I don't actually have any specific benchmarks, just my gut feel. And you may spend a good portion of the cost of a new machine on all those parts for the old machine.
    Is this the 667MHz machine (G4 Digital Audio) in question?
    http://www.lowendmac.com/ppc/digital-audio-power-mac-g4.html
    http://eshop.macsales.com/Descriptions/specs/Framework.cfm?page=g4da.html&title= Power%20Macintosh%20G4%20Digital%20Audio
    or is it some other model?
    Here are some CPU upgrades, for example:
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?sort=pop&model=162&type=Processor&T I=2420&shoupgrds=Show+Upgrades
    you can even get a small rebate for your original CPU
    http://eshop.macsales.com/Service/rebate-program/
    Any of those CPUs should double your processing speed, but you may also need more RAM...or the CPU will just be waiting for data to be read from the virtual memory on the hard drive.
    http://eshop.macsales.com/item/Other%20World%20Computing/133SD512328/
    you could max it out with a whopping 1.5 GB, with 3 of these.
    and you may need a better video card...
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?sort=pop&model=162&type=Video&TI=29 34&shoupgrds=Show+Upgrades
    To add larger and faster hard drives than the original Ultra ATA/66 can handle you would need a PCI ATA133 or PCI SATA card...
    http://eshop.macsales.com/item/ACARD/AEC6280MOB/
    http://eshop.macsales.com/item/Sonnet%20Technology/TSATA/
    And if you need to install OS X from a DVD, and want to burn your own DVD, you may need a new optical drive, if one hasn't been installed already, to replace the CD-RW:
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?Model=162&Type=InternalOpticalDrives&sort=pop
    Also, check out the Power Macintosh G4 forums if you have any questions about that particular model, (if I guessed correctly)
    http://discussions.apple.com/category.jspa?categoryID=113
    Even while I am trying to build a case to convince someone not to waste their money on this project, I am thinking to myself, where can I pick up one of these G4 towers to take on this project myself. Maybe a Quicksilver, no a FW400 MDD dual-boot for sure, I still have some OS 9 software. I did about all I can with my G3 Desktop, and spent more than my MacBook cost.

  • How can I improve the rate of success in Siri recognizing what I am sayin (rate of success nil, to date).

    How can I improve the rate of success in Siri recognizing what I am saying (rate of success nil, to date)?

    justjesper wrote:
    Excelent question.
    I have been searching around, and it looks like a lot of users is asking this question.
    Where can I make Siri learn my accent ? Some users was talking about a feature where you could correct Siri so it would learn, but I have not been able to find it.
    Nor have I, but it does seem to get better as I go along, so maybe it learns.

  • How can I improve the performace of this?

    I have two tables - TableA and TableB. TableB is having 500,000,000 rows. I need to insert these rows, after some processing on them, into tableA. My insert statement is like this -
    Insert into tableA
    select A,B,C,...
    from TableB
    How can I improve the performace of this?
    Here it will select 500,000,000 rows from TableB and store the result in cache and then start inserting.
    Do I have any way so that the select statement starts releasing the records (and not wait upto 500,000,000 record ) and in parallel insert statement start inserting the records?

    Shirish,
    You need to insert more than 500 millions of rows in a table, right ?
    But one point can be a problem, this is when you said "I need to insert these rows, after some processing on them". What does that means after some processing ?
    Please give us more information about all your process, maybe the problem doesn't come from the insert itself ?
    And why the APPEND hint cannot be an answer ?
    And why create table cannot be an answer ?
    What time did you expected for insert of these 500 millions of rows ?
    Nicolas.

  • HT1338 how can I improve the speed of my Macbook?  It's become incredibly slow...

    how can I improve the speed of my Macbook?  It's become incredibly slow...

    Hi,
    Troubleshooting Steps are... Restart...  Reset...  Restore from Backup...  Restore as New...
    Try a Reset of the Phone... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    The Apple logo will Appear and then Disappear...
    Usually takes about 10 - 15 Seconds...
    Turn the Phone On...
    If that does not help... See Here:
    http://support.apple.com/kb/HT1414
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    iPhone Syncing
    http://www.apple.com/support/iphone/syncing/

  • How can i improve the battery life of my iphone 5s, it drains to fast and i don't know what to do?

    how can i improve the battery life of my iphone 5s, it drains to fast and i don't know what to do?

    http://www.apple.com/batteries/iphone.html
    Take a look at this to make sure your settings are optimized to the best it can be.
    If all else fails, try and restore through iTunes, set up as a new iPhone and manually sync your apps and media back to your iPhone.
    If still persists after this, you might call Applecare and see if they can run a battery diagnogstics..

  • How can i save the Visual script in other drive

    Hello
    I'm new in this Forum and i'm just started working on Oracle functional tool.
    In Oracle functional tool , i can't save the visual script in the different path ...
    For example:
    I have installed this suite in drive C: and all the scripts are saved with in it..But i want to save the script in other drive whereas E: drive ...........
    How can i do.....
    Regards
    Deepika

    hi
    you can store the scripts in one of the workspace available in OATS.
    you wont get a chance to create the work space in other drive then in which OATS is installed.
    but if you need to make a back up of scripts then simply copy and paste it wherever you want them,and whenever you need to run the script then copy it and paste to one of the workspace of OATS.
    hope will help you
    regards
    Umesh
    Edited by: USoni on May 15, 2009 3:41 AM

  • How can I improve the performance of SSO in BOE XI R2?

    I have SSO AD single sign-on setup for infoview but it takes very long for a user to get into infoview once they select the hyperlink to infoview.  How can I decrease the amount of time it takes a user to get into infoview when having SSO AD configured?

    SSO is actually handled outside of business objects, either challange-response (ntlm,kerberos) or a trusted username (trusted authentication, siteminder, etc) is passed.
    In challange response the client negotiates with AD directly and then a ticket/token is passed to BO for authorization. To verify if the problem is with AD or BO just create an enterprise alias for a slow user, and login manually (after logging out if you don't have any manual links). If it's still slow then the problem is likely with the BO CMS or web/app. IF manual login with enterprise is fast then the problem is likely with AD or the connectivity (DNS, network lag, etc) and should be troubleshot with a packet scanner.
    If it's a trusted connection I will need more details of how it is set up.
    Regards,
    Tim

  • How can i view the Streams process through 10g OEM

    I have successfully configured OEM on Oracle 10.1.0.3
    My question is:
    How can i view the Streams processes and queues so that i could monitor its functionality.
    In 9i Java Console OEM I was able to monitor Streams using the <Distributed> tab but I don't find any such option in 10g. Please help.
    Thanks in Advance.
    Regards,
    Raj

    There's a message on the Database Administration page of EM10g.
    "TIP      Use the Enterprise Manager 10g Java Console to manage Streams, Advanced Replication, Advanced Queues, XML Database, Spatial and Workspace."
    At present there is no way through the EM10g Web Interface, and I understand the Java version which comes with 10g doesn't contain any 10g new features.
    So I am still using OEM 9.2 in addition to EM10g
    Thanks,
    Alan...

  • How Can I improve the time it takes to start PSE 9's Back up?

    PSE's backup to external HDD has always seemed to be clunky.
    For example, when the process starts and you are taken step-by-step through browsing for your HDD and then creating your next incremental backup file and then browsing again to your last backup file, I have gotten used to this taking ages. e.g. often up to 45 minutes.
    Because of this, I ignore the fact that the application shows no user sign of carrying out the task, but looks like the application has hung. (just the windows blue circle revolving!). Indeed, if I mouse click on the button again (or anywhere else on the open PSE Organizer window), then Windows provides the message that Elements is not responding. However, if I wait, and wait eventually the next stage kicks in. Tonight, I started this process and it took 2.5 hours to reach the point that Elements would start the backup.  It then took only just over 5 minutes to complete the backup!!
    I am probably at least part of the cause of this problem.  My Catalogue has 38,103 images in it (+ 1, 804 items not shown) - What are these and are they additional to the 38, 103?
    Can I do something to improve the process of backing up? 
    I really like PSE and its organizer and this catalogue enables me to find any image very, very quickly which, for my work, is brilliant and incredibly useful and impressive.  This catalogue has been in existence for a number of years now back from PSE 6 through, 7, 8 and now, PSE 9, since last September.  Maybe this is part of the problem? 
    When I upgraded to PSE 9, I did restart the back up process with a full backup. I am now up to incremental backup 5.  My images are spread out on my PC's HDD (2.95 gb on the internal partitioned drive C with 60.2 gb on its other partition D). The remainder 144 gb is on an external HDD. 
    Whilst PSE finds any image quickly, as already stated, it IS getting very slow at generating the thumbnails when new images are downloaded into PSE.
    Are there any steps that I can take to refresh PSE to speed up the backuyp process and generating the thumbnails?
    Thanks for reading and considering all the above.
    Elemt

    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))}elemt wrote:
    Arising out of our discussion yesterday and my stated intention to replace the current internal HDD with one that has a significantly larger capacity, I wonder if you, Ken, or dj_paige, or both, have any suggestions as to if I should keep my copy of PSE 9 activated when I make a mirror copy of the existing internal HDD or deactivate it before I make the mirror copy?
    Since installing PSE fresh is relatively quick and painless, I wouldn't bother with keeping it in a mirrored copy.  I don't know if activation is based on an ID  derived from the hard drive or not, but based on my conversations with Adobe when I replaced mine I think it is (at least in part).   The bottom line is that you'll need to deactivate your old copy before running the new copy (and activating that new copy), so to be on the safe side, I'd
    Deactivate the old copy of PSE.
    Uninstall that old copy.
    Get your new primary hard drive set up.
    Install PSE.
    Activate PSE.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))}elemt wrote:
    Then, I would copy across from the temporary external HDD, the 60.2 gb of images previously stored on the old E partition.
    From both your comments, I am thinking that this might well screw up the database and PSE Organizer would be thrown by this.  (maybe I could reconnect manually, but even if I could, that would be a massive task).  It would probably mean my back up of my catalog that I made yesterday, unusable?
    It might screw things up.  I've never used the catalog Backup/Restore, so I'll defer to others who have, but I do know that Organizer's database (the catalog) stores a unique serial number ID for each volume that's used (C:, D:, etc.).  I suspect that that serial number is derived from the serial number of the unit, but I could be wrong.  I don't know how the database handles the situation where, e.g., photos on a Hitachi drive E: are then transferred to a Western Digital drive E:.  It probably will involve "re-connecting" all the photos, but this is just speculation on my part.
    I suggest you ignore, for the moment, PSE and set up your new hard drives in the way that makes the most sense to you.  Then work in PSE to accommodate that setup.
    Ken

Maybe you are looking for

  • Direct Path Read

    Hi everyone, I am experiencing High Direct path reads and every time i run the query I see there is no decrease in physical reads. I have come across in the docs that this could be if the blocks are directly read into PGA instead of SGA, what will be

  • Syncing issues with Outlook when I add a contact to my iphone

    I'm using the icloud to sync my calendar and contacts to my iphones and Outlook. Everything seems to be working perfect except one thing. When I add a contact to my phone it will not show up on my husbands phone or Outlook. I have checked my defaults

  • How do we create a promotion which is not out of the box?

    hello, how do we create a promotion which is not out of the box?

  • The customized link on CRM screen opens URL in a new window

    Hello CRM gurus I have customized the main CRM screen by adding a link on the left hand menu bar. When I click on this link, it starts the right URL but it is opening it in a seperate window. I want that to be displayed on the right hand side of the

  • New Moment type and Assignment to Order Type

    Dear Experts I want to create a new moment type with same functions as 261 and i want to assign this moment type to new order type PPIR(For Semi Finish Orders), Because our raw material can be directly issued to finish orders as well as semi finish o