How to disabled all constraints when importing data (urgent)

Hi,
I am running import on my database. It’s dump file size 40GB & I forget to set import parameter constraint=N. due to that import is very slow.
Could any body help me out.
Thanks,
AT

Hi,
>>due to that import is very slow
I'm not sure whether this is the "source" of low performance, because just in the end of the process that integrity constraints are enabled.
1) New tables are created. (Type definitions, Table definitions)
2) Data is imported. (Table data)
3) Indexes are built. (Table indexes)
4) Triggers are imported. (integrity constraints, views, procedures, and triggers)
5) Integrity constraints are enabled on the new tables.
6) Any bitmap, functional, and/or domain indexes are built.
Cheers
Legatti

Similar Messages

  • How to disable  all constraints on a table

    Hi ,
    I want to disable all constraints on a table
    select 'ALTER TABLE '||substr(c.table_name,1,35)||
    ' DISABLE CONSTRAINT '||constraint_name||' ;'
    from user_constraints c
    where c.table_name = MY_table;
    thanks in advance

    What is wrong with query you have?
    Why do you have substr around the table name?
    If you want to execute the output as well, do this,
    SET SERVEROUT ON
    BEGIN
       FOR i IN (SELECT 'ALTER TABLE ' || c.table_name || ' DISABLE CONSTRAINT ' || constraint_name AS l_sql, table_name, constraint_name
                   FROM user_constraints c
                  WHERE c.table_name = my_table_name)
       LOOP
          EXECUTE IMMEDIATE i.l_sql;
          DBMS_OUTPUT.PUT_LINE ('Disabled constraint ' || i.constraint_name || ' on table ' || i.table_name);
       END LOOP;
    END;
    /

  • How to disable all Constraints for a Table

    Hi There,
    So I have a table that I need to delete a significant amount of records from. Using some advice I found it better to select the records that I wanted to keep into a temporary table and then truncate the original table. After that I insert the contents of the temp table into the original table.
    So now I am thinking I could speed this up even more if I disable all the constraints on the original table.
    Is there an easy way to do this or do I need to disable each constraint individually?
    thanks
    John

    http://forums.oracle.com/forums/search.jspa?threadID=&q=disable+all+constraints+&objID=c84&dateRange=all&userID=&numResults=15

  • How to show NULL value when import data into excel

    when retrieve data from sql server and import these data into excel.
    data source  is like : select a ,b c from tab
    if a,b,c is nullable. when import these NULL value into excel, it becomes blank value, there is nothing in the excel cell.
    if i don't want to use select isnull(a,'NULL') as a to convert the values.
    what's else can i do to make it? is there a way to prevent changing the NULL to blank ?
    or is there an easy solution to replace all the blank value to NULL in the excel ?

    help me ~

  • Performance issue with FDM when importing data

    In the FDM Web console, a performance issue has been detected when importing data (.txt)
    In less than 10 seconds the ".txt" and the ".log" files are created the INBOX folder (the ".txt" file) and in the OUTBOX\Logs (the ".log" file).
    At that moment, system shows the message "Processing, please wait” during 10 minutes. Eventually the information is displayed, however if we want to see the second page, we have to wait more than 20 seconds.
    It seems a performance issue when system tries to show the imported data in the web page.
    It has been also noted that when a user tries to import a txt file directly clicking on the tab "Select File From Inbox", the user has to also wait other 10 minutes before the information is displayed on the web page.
    Thx in advance!
    Cheers
    Matteo

    Hi Matteo
    How much data is being imported / displayed when users are interacting with the system.
    There is a report that may help you to analyse this but unfortunately I cannot remember what it is called and don't have access to a system to check. I do remember that it breaks down the import process into stages showing how long it takes to process each mapping step and the overall time.
    I suspect that what you are seeing is normal behaviour but that isn't to say that performance improvements are not possible.
    The copying of files is the first part of the import process before FDM then starts the import so that will be quick. The processing is then the time taken to import the records, process the mapping and write to the tables. If users are clicking 'Select file from Inbox' then they are re-importing so it will take just as long as it would for you to import it, they are not just asking to retrieve previously imported data.
    Hope this helps
    Stuart

  • Error when importing data using DTW template

    Dear All gurus/experts,
    I have a problem when importing data into SBO system using DTW. The error message is "sort error, pls check the prepared data and delimeter. I use SBO 2004 SP 00 PL 41. I don't understand to cope with this problem, I have no idea anymore. I appreciate your answer. TIA
    Rgds,

    Tks for your reply. I have seen it and the error message relates to delimeter. I have tried to correct the error by recreate the file and save as tab delimeted. Right now I am trying to import the files.
    Rgds,

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to disabled mutli desktop when I using Full Screen?

    How to disabled mutli desktop when I using Full Screen?
    Some app have a preferences option to do this which like iTerm2
    In Lion-Style FullScreen windows, I can't use command + tab to  quickly switch between in the apps, I must switch to the  app own desktop which is using fullscreen, It's so trouble. I even think this is a flaw in Apple's design.
    So, How can I have use this  feature in others apps such as Google Chrome, Mail, Safari and so on.
    Please Help me!  Thanks! Thanks! Thanks!

    nobody can help me ?

  • How to disable autostart (application) when managed server restart ?

    Hi Ppl,
    How to disable autostart (application) when managed server restart ?
    I want some of the applications to remain not started. In WebSPhere, we have an option disable auto start for applications.
    I don't find in weblogic.
    Thanks

    Hi,
    I agree with Faisal. When you shutdown your WL server while the application is running, the thing is when you start your server again, it would automatically start the application with it. Now if the application was down when you shutdown the server, it _the application_ won't start with the server.
    So it depends on the application last state, when you start your server.
    Regards,
    Mohab

  • ORA-00926: missing VALUES keyword | when importing data

    Hello,
    I get the missing VALUES keyword error when importing data from an Excel spreadsheet. Until yesterday everything worked fine. Today I'm having this problem because OSD does not build the DML correctly. See:
    insert into WFT_GROEPEN (CODE,OMSCHRIJVING,NIVEAU,INDIC_LAAGSTE_NIVEAU) VALUES('1.1.1.1','- Value of business acquired',4,'N');
    Working with OSD 1.2.1 on Windows XP.
    Anyone got a clue?
    Kind regards,
    Dennis

    Hi,
    Thanks for your reply. I found the problem myself. I got 2 columns in the Excel sheet with the same name. Then OSD creates an insert statement like following which gives the 'missing VALUES keyword' error.
    insert into WFT_GROEPEN (CODE,OMSCHRIJVING,NIVEAU,INDIC_LAAGSTE_NIVEAU)NIVEAU) VALUES('3','Toelichting balans beleggingen',NULL,'N',NULL);
    Regards,
    Dennis

  • Need help when importing data

    Hi All,
    When iam importing data into excel, leading zero's are truncating.
    Eg: I have a column orgid in a table. Data is like 00067509,056429...
    When importing into excel, leading zeros are truncated and orgid data shown in excel as 67509,56429...
    Please help to get zero's in excel.

    you did not post info how you create the data to be available for excel. it is important to us that you also describe how you create the data. i will assume that you create the text file on oracle and i'll try to give an example as a workaround that might work to you. we create a .csv file that can be opened to excel and each of the column is enclosed by double quotes and separated by comma. the column whose values had leading zeroes we added an equal sign before enclosing them to a double quotes (e.g. ="000123456") this way when it is opened on excel it preserves the leading zeroes.
    .

  • Data with "," overflows to the next field when importing data with DTW

    Dear all,
    When I tried to import data with DTW, for the data that includes ",", the data after "," all jumps into the next field after import.
    E.g. Column A(memo): bank, United state
           Column B(project code): blank
           Result in SBO: Memo field : bank
                                  Project code: United state
    I  have tried 2 ways.
    1. Save the file as csv, and adding double quote(") at the beginning and ending of the data. However, it didn't work. It didn't work with single quote as well.
    2. Save the file as txt, without amending the data at all.
    It worked, however, in SBO, double quote is auto added, it becomes "bank, United state".
    Please kindly advise how to handle such case.
    Thank you.
    Regards,
    Julie

    Hi,
    Check this if it is useful :
    Upload of BP Data using DTW
    Rgds,
    Jitin

  • Error occured when importing data from dmp

    Hello friends
    when i am importing data from dmp file
    the following error occured
    Please help me to solve this
    Error message :
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in WE8PC850 character set and AL16UTF16 NCHAR character set
    export client uses US7ASCII character set (possible charset conversion)
    Import terminated successfully without warnings.

    This is not really an error message but a information about possible character conversion from US7ASCII to WE8PC850 which should NOT be an issue since all US7ASCII characters are in most WExxx character sets.
    Message was edited by:
    Pierre Forstmann

  • How I copied all my Outlook Express data to my new Black MacBook

    Hi there!
    I just made the jump to the "Apple side" buying a shiny new Black Macbook, and having already got a lot of usefull information from this forum, I just wanted to give my little contribution...
    Here follows how I managed to copy ALL my Microsoft Outlook Express messages, settings and accounts from my "old" PC to my new MacBook:
    I just installed Mozilla Thunderbird on my PC and let the automated "import" function transfer all my data from Outlook Express; then I installed Thunderbird to the MacBook too (skipping all the setup procedures that start at the first run of the program).
    Then, on the "PC side", I located the folder where all the Thunderbird profile data is stored: it is something like "xxxxxxxx.default" (in my case "voakmfhs.default") and is stored in "C:\Documents and Settings\Windows_User\Application Data\Thunderbird\Profiles"
    So it was just a matter of copying all the "xxxxxxxx.default" folder from the PC to the Mac (on the "Mac side" just search for the "Thunderbird" folder and then open the "Profiles" subfolder where you have to copy all the stuff)
    The last step is to edit the Thunderbird "profiles.ini" file on the Mac, replacing the name of default folder that was assigned during the installation (which you can safely delete), with the name of the one copied from the PC...
    For any further question, feel free to ask
    Hope this is of some help!
    Ciao for now
    Sergio

    Transferring from old to new
    http://support.apple.com/kb/HT2109

  • How to disable 'Save' button when OAF and XML Publisher integrated...URGENT

    Hi,
    I am new to the OA Framework and XML publisher. I have been working on a requirement where I am designing a new page in Manager Self Service with few fields and a submit button. Also designed a RTF template in XML publisher to display the output in PDF format.
    When the details are entered on the page and click on 'Submit' button, the PDF will Open with the data populated. This is working perfectly... thanks to the forum.
    But my issue is: When the submit button is clicked, it displayes a dialog box with Open/Save/Cancel options and if I click the 'Open', the PDF will be opened. But my client is a retail client and they don't want store managers to save this PDF so either I have to skip this dialog box and directly open the PDF or I have to disable the 'Save' on the dialog box.
    Gurus -- Please help me how to achieve this. This is very urgent
    Below is the piece of code I am using in the controller to generate the PDF.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME,
    TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    Thanks in Advance,
    Naren

    Frank, thanks for the update.
    But do you want me to try ControllerContext.getInstance().getCurrentViewPort().isDataDirty(); in button disable property?
    I have written one method in my am like
    public boolean isTransactionDirty(){
    return getDBTransaction.isDity();
    and exposed that method to client side and i try to use this method in my button disable property as
    disable#{bindings.isTransactionDirty.execute} but this is not working.
    Thanks

Maybe you are looking for