Estimate time to enable all constraints and create all indexes

Hi,
To prepare a project to export/import for a whole database,
How can I estimate time required to enable all constraints and create all indexes
* Assume one full table scan per one FK constraint
* Assume one full table scan plus one sort/merge operation per one index
* Check it out whether we can use parallel DDL feature to speed up enabling of FK constraints
how can I use core schema (which will be exp/imp) in the production db to get needed metric for the calcualtion?
thanks
Jerry

There is no definative way to find the time it takes to enable a constraint / create a Index
It toatally depends on the Size of the table / execution plan / resources available (In terms of CPU and Physical Memory ) /
Amount of Temporary tablespace

Similar Messages

  • In terms of account lock outs due to security reasons, when is time to delete the account and create a new one?

    In terms of account lock outs due to security reasons, when is time to delete the account and create a new one?

    iCloud accounts and Apple IDs can't be deleted.
    (79882)

  • Enable for Commenting and Create Links from URL (JS, Acrobat Pro)

    I need to change a PDF's settings to Enable for Commenting and Annotation and then Create Links from the document's URLs.  I can do it manually, but I don't see where these properties can be adjusted with Javascript.
    Please help!

    Regarding converting URL's to real links, this script (created by me) can do
    that:
    http://try67.blogspot.com/2009/06/acrobat-add-hyperlinks-based-on-partial.html

  • What is the difference between the drop and create the index and rebuild index ?

    Hi All,
    what is the difference between drop and create index & rebuild index ? i think both are same...Please clarify if both are same or any difference...
    Thanks in Advance,
    rup

    Both are same. Rebuilding an index drops and re-creates the index. 
    Ref:
    SSMS - https://technet.microsoft.com/en-us/library/ms187874(v=sql.105).aspx
    TSQL - https://msdn.microsoft.com/en-us/library/ms188388.aspx
    I would suggest you to also refer one of the best index maintenance script as below:
    https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html

  • IWeb '09 and creating an "Index" page for two separate sides of my website

    I'm redesigning my website with iWeb '09 seeing that I've recently switched to Mac from being a life-long PC/Windows user. I'm not too web programming savvy so iWeb fits my needs as a very good program that redesigns my site very nicely (and quite inexpensively, as well).
    My current incarnation of my website (http://www.jeffreykern.com) was designed by a professional web designer on Dreamweaver for PC a couple of years ago. Some time ago when I was trying to update my PC with XP SP 3 (bad idea as it turned out), my connection to my web hosting service got completely fouled up and I lost the ability to update the site and haven't updated my site since. Knowing that I was going to be switching to Mac (with my new Mac Pro) I never had the desire, or energy, to patch things up to update my site with my PC. Plus, I was in need of a redesign so I eventually got my site ready to go with iWeb 09. That's where I stand right now...
    So, as you can see on my current site I have a main index page that splits up into the two sides of my life: the triathlete side and the writer side. I've already redesigned both sides of my site with iWeb, I'm ready to update it thru my web hosting via FTP and Transmit 3, but I cannot find how to create a main "Index" page on iWeb that will let me branch off into two different directions. By having that "Index" page intact I will be able to keep my domain of jeffreykern.com as it currently stands. I don't mind having to get two different domains for each of my two sides of my site but would like to avoid that extra step -- if, at all, possible.
    Thanks in advance for your help,
    Jeff

    Building three websites on three separate domain files would be my choice.
    Its important to realize that you cannot have a page called "index" using iWeb because the associated index.html file will conflict with the one that iWeb creates.
    As has been suggested, the first site would be one page. The site name would be jeffreykern.
    This site will publish as jeffreykern_files and an index.html file. Inside this folder is another index.html file. This is the one your domain name will be directed at if you don't need an RSS feed.
    If your server allows it, create a root folder on it called "jeffreykern" and upload the contents of the local folder to this and ignore the separate index.html file. Note that I said contents and not the folder itself.
    A lot of servers require that you upload to a pre existing folder. In this case you will have to upload the index.html file and the jeffreykern _files folder.
    The two other sites are named and published as writer and triathlete. The external index files of these two sites are renamed writer.html and triathlete.html.
    These two files and their corresponding folders are uploaded to your root folder on the server after adding tags and optimizing.......
    http://www.iwebformusicians.com/SearchEngines/SEO.html
    Now you have a main (one page) site with two sub sites.
    The domain name http://www.jeffreykern.com/ is directed at the index.html file so that when this is entered into the browser, the main page will appear.
    The links to the two main sections, whether they be text and/or image, are created and selected as external hyperlinks.
    http://www.jeffreykern.com/triathlete/
    http://www.jeffreykern.com/writer/
    Clicking these links will open the first page of their respective sites.
    If you do the sensible thing and trash the iWeb default navigation to replace it with a custom one, you can include external hyperlinks to the landing page and the other site in this.
    The website - iWeb for Musicians - is created like this and is built on 9 separate domain files for ease of updating and publishing. The whole site is tied together with a Main navigation to get to each section which has a Sub navigation to jump around that section.
    For more on navigation see.....
    http://www.iwebformusicians.com/WebMusic/Navigation.html
    Also refer to Fonts, Colors and Navigation on this page ......
    http://www.iwebformusicians.com/WebMusic/iWebandInternetExplorer.html

  • Capturing video and creating an index

    How can i handle the capture routine to get the actual recording frame to create a king of index with some data, like:
    Frame 1 - "Scene X"
    Frame 2 - "Scene Y"
    I'm tinking about create a file to associate an "index" and search in the video.
    Does someone have another idea?

    How can i handle the capture routine to get the actual recording frame to create a king of index with some data, like:
    Frame 1 - "Scene X"
    Frame 2 - "Scene Y"
    I'm tinking about create a file to associate an "index" and search in the video.
    Does someone have another idea?

  • How to create clustered index?

    When working with Relational model I do not see how to make index clustered? All indexes (as well as primary keys) are created non clustered so far...

    In an Oracle Physical Model, you can create a Cluster and create an Index on that ClusterI am designing for SQL Server, not for Oracle. So Oracle specific approaches would not help me.
    Even for the Oracle (which I do not know much but I can guess) I think that this is not what I was asking for. I simply need to create a clustered index, not to include column into some cluster. In other words I need that generated DDL looks like
    create clustered index...
    Now it always looks like
    create nonclustered index...

  • Call a procedure in a function to create an Index

    Hi,
    i want to doing a text search and have to create some index
    to doing that. I have to choose between create two index according to
    what a search i want to doing.
    The function, which call the sql-statement to search the text is:
    CREATE OR REPLACE FUNCTION SEARCHTEXT(textToSearch IN VARCHAR2)
    RETURN utilities.resultset_ft PIPELINED AS
    BEGIN
    BEGIN
    INDEXTEST;
    END;
    DBMS_OUTPUT.PUT_LINE('get the data');
    -- search the Text in the database Documents
    FOR i in
    (SELECT extract(Document, '/*/*/*/*/location[1]/uri/text()').getStringVal() as location, score(1) as score_nbr
    FROM Mydocuments
    WHERE contains(Document, textTosearch, 1) > 0
    ORDER BY score_nbr)
    LOOP
    PIPE ROW(i);
    END LOOP;
    RETURN;
    END ;
    This function call the procedure "INDEXTEST", which create the index.
    CREATE OR REPLACE PROCEDURE INDEXTEST
    AS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE INDEX FTS_INDEX ON Mydocuments (DOCUMENT)' || ' ' ||
    'INDEXTYPE IS CTXSYS.CONTEXT' || ' ' ||
    'PARAMETERS (''' || 'stoplist Doc_stoplist' || ' ' ||
    'section group CTXSYS.PATH_SECTION_GROUP'')';
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(sqlerrm);
    END INDEXTEST;
    I call the statement:
    select *
    from TABLE(searchtext('%Let%'))
    and i get this error:
    Error starting at line 1 in command:
    select *
    from TABLE(searchtext('%Let%'))
    Error report:
    SQL Error: ORA-14552: DDL-, Commit- oder Rollback-Vorgang kann innerhalb einer Abfrage oder DML nicht durchgeführt werden
    ORA-06512: in "INDEXTEST", Zeile 5
    ORA-06512: in "SEARCHTEXT", Zeile 15
    14552. 00000 - "cannot perform a DDL, commit or rollback inside a query or DML "
    Cause:    DDL operations like creation tables, views etc. and transaction<br /><br />control statements such as commit/rollback cannot be performed<br /><br />inside a query or a DML statement.<br /><br />Action: Ensure that the offending operation is not performed or
    use autonomous transactions to perform the operation within
    the query/DML operation.
    <p>
    Can someone help me?
    </p>
    Thanks for help

    So, in answer to your question, how to do this....
    Create the necessary indexes before you issue the query to do the search.
    Yes, that means you need to have some intermediate steps to do it, but you should be able to control that from your application level.
    e.g.
    1. User enters search criteria
    2. Application processes criteria and creates necessary indexes
    3. Application queries the results
    4. Application drops the indexes.
    Or, alternatively, it may be an idea to have a look at your overall design and solve the issue why you are actually having to try and create indexes on the fly. If the database structure was correct in the first place then you shouldn't have to create any more indexes than the permanent ones you will have already determined.

  • Creating an Index

    Hi,
    I have imported a multipage PDF using the multipage script I downloaded from Adobe.
    I multipage PDF imports ok, but I cant Highlit any text withing the document to create an index.
    Can you advise how i can use the text tool to highlight text and create an index.
    Thanks

    I have not used the plugin, but it is supposed to create a fully editable InDesign file from the PDF, which means you should be able to make an index.
    Do you have a lot of entries you need to make? It might work to place the PDF on one layer, then add a second layer to the file and add text frames above the PDF. Enter the index terms in these new layers (lots of hand typing) and add the index markers. You can make the second layer non-printing and still include it in the indexing, I think. You might also be able to extract the text from the PDF in Acrobat Pro and flow that (in fact you could rebuild the whole document this way if you were so inclined, extracting both the text and the images).
    But the larger question is why you are trying to work from the PDF instead of the original layout, which should b e relatively simple to index.
    Peter

  • Error creating spatial indexes

    I'm using oracle 10g2.
    I retrieve the following error message during spatial index creation:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13236: internal error in R-tree processing: [failed to cluster in memory]
    ORA-13232: failed to allocate memory during R-tree creation
    ORA-13236: internal error in R-tree processing: [failed to allocate memory
    4387752 (mdrtsalloc)]
    ORA-04031: unable to allocate ORA-04031: unable to allocate 4387800 bytes of
    shared memory ("large pool","unknown object","koh-kghu sessi","kpmalloc")
    bytes of shared memory ("","","","")
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    I've already tried to increase memory, shared and large pool, actually I have the following settings:
    Shared pool 500
    Buffer cache 200
    Large pool 200
    Pool Java 20
    I've already installed data and created spatial indexes on other machine correctly with the same data with less memory use, and I can't find any difference.
    Could anybody help me?

    Andre,
    I didn't think the , and ; in the sdo_geom_metadata would be causing the problem because he indicated that he could build indexes on other data - I assume he uses the same diminfo values for these as well. But, one can never be too sure!
    But certainly, follow what the error messages indicate.
    The Oracle Error message manual says:
    "ORA-13232: failed to allocate memory during R-tree creation
    Cause: This feature assumes a minimum of 64K memory for bulk creation.
    Action: Create the index for a small subset of the data. Then, use transactional insert operations for the rest of the data."
    The spatial manual says:
    "Before you create a spatial index, be sure that the rollback segment size and the SORT_AREA_SIZE parameter value are adequate, as described in Section 4.1.1."
    One way to change the sort area size is to alter your existing session before
    executing the create index statement. So, from 4.1.1. this can be done via:
    ALTER SESSION SET SORT_AREA_SIZE = 20000000;
    Also, do what Andre suggests. On my laptop with 1G of memory as a matter of course I change the SGA from the default to being much larger.
    regards
    S

  • ALTER TABLE privilege and CREATE/DROP/ENABLE/DISABLE constraint privilege

    Hi,
    I am looking for some detailed info regarding the below previleges
    ALTER TABLE, CREATE CONSTRAINT, DROP CONSTRAINT, ENABLE CONSTRAINT AND DISABLE CONSTRAINT PRiVILEGES.
    I have two schemas 'A' and 'B', I want to provide user 'A' with Alter table, create or drop constraint,Enable or Disable constraint on schema B.
    Please let me know how to make this work.
    Thank you

    I got the answer for my second question, I have an option to grant 'Alter ANY table' privilege to the user.Yes, but you should not do that.
    Regarding question one, Suppose I have two schemas A and B and I want Schema A to have alter table privilege on all tables of Schema B.
    Can I do this in one command No
    or I need to grant alter on each table saperately?Yes
    If I am chosing the second option for each table saperately then whenever a table is added in schema B we need to grant privilege on that table as well.Yes. But nothing strange there. Designing and creating objects includes the privileges on them.
    If user A is granted with alter table privilege on a table which user B owns then can user A drop/create/enable/disable constraints for that table?Yes, isn't that what all this about?
    Again, letting one user alter the objects of another user is generally not such a good idea. Hope you see this from our discussion.
    Alter table privilege includes adding and dropping columns. This is why I suggested writing a procedure that does exactly what you need. And then grant execute on that to A.
    The best thing of course would be NOT TO disable the constraints, they are probably there for a reason.
    I am currently handling an issue where one session doing this, deadlocks with another session doing only selects - From other tables, that is!
    Regards
    Peter

  • All share functions except email are NOT enabled. I can create and print but order prints is also not working. HELP!

    All share functions except email are NOT enabled. I can create and print but order prints is also not working. HELP!

    Hello
    Please see notes and 4 attachments for your reference. Hopefully this information helps.
    Maureen
    what version of iPhoto are you using? 9.5.1
    what system version are you running? OSX 10.9.4
    what happens when you try to order? See attached picture. I want to share pics to FB & FLICKR etc
    did you make sure you've selected the correct Print Products store in iPhoto's Advanced preference pane? YES
    what fixes have you tried? Restarted computer. I'm not very computer savy. I have had no problems with this in the past.
    where is your library located? I have not moved anything for iphoto.
    did you apply any updates or upgrades just prior to the problem occurring? I can't remember
    are you running a "managed" or "referenced" library? Not sure how to find this out
    what type of Mac? iMac 2.5 GHz Intel Core i5
    how much free space on your boot drive? 12 GB 1333 MHz DDR3 - I have an external hard drive 1 TB

  • Every time I try and create a new folder on my desktop, it is never empty, but contains all my existing files. Am I doing something stupid?

    Every time I try and create a new folder on my desktop, it is never empty, but contains all my existing files. Am I doing something stupid?

    Is this what it looks like when you open the new untitled folder:
    The left column always shows unless you choose 'hide sidebar' in the Finder View menu drop down options and, on mine,  it shows two items on my desktop - the new folder and a previously created folder.

  • Unable to enable security and create admin user after reset - px4-300d

    Our px4-300d became inaccessible a few days ago.  I couldn't get to any shares from any machine, and I couldn't get to the admin console.  When I checked the unit, there was no indication that anything was wrong (ie - the panel didn't show any failure, I didn't get any emails indicating a failure, and there were no lights offering a clue to what was wrong).  However the unit was completely frozen...the buttons on the front would not scroll through the different information on the panel.
    I attempted to reset the device using the pinhole on the back, but the device wouldn't respond, so I had to power it down using the button on the front.  When I tried to power it back up, it would come on for about one second, then immediately power off.  I pulled all 4 drives out and powered it on again without any drives.  This time it came up completely and I got a message on the panel that drives were missing.  I started putting the drives in one at a time and the device recognized them all and I was able to login to the admin console.  However, all the shares were missing and I received an email that the Storage Pool was degraded.  I rebooted the device from the admin console and when it came back up, it started reconstruction.  After a few hours, it completed, but I still had no shares and couldn't create any new shares.  I also did not see any of my users, including the admin account I was logged in with.  I tried to create a new user, and also tried creating a user I knew existed and neither one worked.  The screen would just flash but nothing would show up.  At this point, I decided to try to reset using the pinhole on the back of the device to reset the admin user so I could just create a new one.  So, now I'm stuck at the 'Enable Security' screen.  Every time I try to create an admin account, it just flashes and returns me to the same 'Enable Security' window.  
    Now what?
    Solved!
    Go to Solution.

    If you are unable to get into it you will not be able to do the factory reset. You can try booting in buy removing one disk at a time. If you are still unable to then tech support should be able to supply you with the imager and try flashing it. I would keep it at 4.0.8 also,

  • ITunes update removes quicklaunch icons and creates new folder each time

    Everytime I install an iTunes update, it removes my quicklaunch icon and creates a new start menu folder.  I keep the iTunes start menu folder in a 'Media' subfolder (to keep things organized), but each time I update iTunes on each of my computers it creates a new iTunes folder in the main start menu. Any way to make it stop doing this? Since I work on multiple machines, it can be really irritating to have to redo icons and move folders each time.
    Working on PCs (Dell work laptops) running Windows 7.
    Thanks!

    Unfortunately it won't go into disk mode. Even tried the "put your ipod on a flat surface" trick. I'm wondering if the battery hasn't stopped holding a charge. But it seems the symptoms would be more like a constant battery icon. Instead I'm getting the sad face everytime I try to put it in disk mode or reset. Ideas? Throw ipod against wall? Blow on it like old-school Nintendo cartridges?
    Oh, and yes, it is Windows formatted.
    Any and all help would be appreciated.

Maybe you are looking for