DELETE in dblink on 10g

Hi,
on 10g we have created DBLINKS toward some other DBs. Insert in remote tables using DBLINK is enough fast but the deletes are very slow. Any idea ? Any oracle bugs for DBLINK in 10g ?
Thanks.

user522961 wrote:
Thank you justin.
We can have more information from client but the question is that if there is any known bug on DELETE via DBLINK in ORACLE 10g.I am sure that if you scour Metalink, you will find at least one bug that involves a database link and a DELETE statement on whatever version of Oracle you are using (10g might mean 10.1.0.2 or 10.2.0.4 or anything in between). It is relatively unlikely, however, that you are actually hitting a bug. It is substantially more likely that you are encountering the far more common situation of a complex system not behaving the way you would want, in which case the information I asked for will help narrow down the source of the problem. Distributed DML is always extremely difficult for the optimizer to handle, so any performance issues that involve distributed queries make me suspect that the optimizer has made a poor decision.
Justin

Similar Messages

  • How to delete client from oracle 10g ASM

    Hi,
    I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
    However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
    Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    Thanks and regards,
    shaan

    Hi Deepak,
    Pls see the result from the view, i wanted to delete stby
    SQL> select * from v$asm_client;
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    2 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    regards,
    shaan

  • Dblink from 10g to 8.17

    Hello,
    Dblink from 10g to 8.17 does not work. Is there a workaround or a patch?
    Thanks.
    gk

    The base 10.1 release had problems connecting to 8.1.7 databases prior to 8.1.7.4. You should be able to either apply the latest 10.1 patchset to the 10.1 database or to apply the 8.1.7.4 patchset to the 8.1.7 database.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • DbLink between 10g and 8i databases

    Hi all
    I have a little problem. I have two different databases in two different versions 10.6 and 8.1.7. Some forms (developer 6.i) use the dblink and i get a crash to desktop when i try to compile. Developer exit with abnormal termination.It is due to tables with the dblink aren´t recognized because if i comment the select where these tables are used the programm compiles perfectly.
    But when I go to SQL plus,for instance, and use a DESC, the tables are recognize in this case. All the synonym are created correctly.
    Any help? Maybe it's due to the different database versions?
    Thanks in advance

    Hi,
    Maybe you should post this problem in a Forms Forum too.
    DbLink between 10g and 8i databases
    Cheers

  • How to delete duplicates in oracle 10g ( strange behaviour)

    Recently we migrated from oracel 8i to oralce 10g and we face this problem.
    When we try to delete duplicates using rowid ( analytical functions row_number()/
    or normal delete ) and commit the same , still we find some duplicates to be existing because of which we are not able to enable costriants and resulting in process failure.
    When we run the same delete statement next time it removes more duplicates than the required or sometimes required duplicates resulting in abnormal behaviour.
    I don not understand this strange behaviour after upgrading to oracle 10g.
    It'd be great if some one who has idea on this can throw light on the same.
    thanks

    Gasparotto,
    Thanks a lot for letting me know a new procedure to delete duplicates sing lead function.
    I've tried this code on a temp table and it worked, let me use the same query on the prodn side and test the same.
    Procedure for deletion of duplicates using lead analytical function.
    create table temp ( col1 number(2) , col2 number(2) , col3 number(2));
    insert into temp values ( 1,2,10);
    insert into temp values ( 1,2,20);
    insert into temp values ( 1,2,30);
    insert into temp values ( 3,2,10);
    insert into temp values ( 3,4,12);
    insert into temp values ( 3,4,45);
    commit;
    COL1 COL2 COL3
    1 2 10
    1 2 20
    1 2 30
    3 2 10
    3 4 12
    3 4 45
    select col1,col2 , col3, LEAD(rowid) OVER (PARTITION BY col1,col2 order by null) from temp;
    COL1 COL2 COL3 LEAD(ROWID)OVER(PA
    1 2 10 AAAVBjAApAAAFyGAAB
    1 2 20 AAAVBjAApAAAFyGAAC
    1 2 30
    3 2 10
    3 4 12 AAAVBjAApAAAFyGAAF
    3 4 45
    6 rows selected.
    select rowid , temp.* from temp ;
    ROWID COL1 COL2 COL3
    AAAVBjAApAAAFyGAAA 1 2 10
    AAAVBjAApAAAFyGAAB 1 2 20
    AAAVBjAApAAAFyGAAC 1 2 30
    AAAVBjAApAAAFyGAAD 3 2 10
    AAAVBjAApAAAFyGAAE 3 4 12
    AAAVBjAApAAAFyGAAF 3 4 45
    SQL> DELETE temp
    WHERE rowid IN
    ( SELECT LEAD(rowid) OVER (PARTITION BY col1, col2 ORDER BY null)
    FROM temp ); 2 3 4
    3 rows deleted.
    SQL> select rowid , temp.* from temp ;
    ROWID COL1 COL2 COL3
    AAAVBjAApAAAFyGAAA 1 2 10
    AAAVBjAApAAAFyGAAD 3 2 10
    AAAVBjAApAAAFyGAAE 3 4 12
    Thanks for the reply

  • How to delete Workarea in Designer 10g R2?

    I have created so many workareas. I have exported the application systems from a Workarea and I wish to delete the Workarea permanently.
    Does anyone know how the Workarea could be deleted?

    I have tried to delete all application systems and SYSTEM FOLDER in RON and then force delete the Workarea.
    Then I force-deleted the Workarea. Although it says "Cannot Force Delete/Purge Workareas", if I logon Designer 10g again, the workares is actually deleted.
    Thanks. It works.

  • Help: Transfer of data via DBLink from 10g to 8i (ORA 02068)

    Hello,
    I read many threads on this issue, either in OTN or Metalink.
    We have an old 8i DB (8.1.7.1.0) that we still use, and a brand new 10gR2 DB ...
    - The 8i is with character set UTF8
    - The 10g is with character set AL32UTF8
    I create a DBLink in the 8i DB...
    When I only try to select 10g data from the 8i DB... I get error :
    - ORA-02068: following severe error from my10gDB
    - ORA-24365: error in character conversion
    From the different notes I saw, there is a problem because of the 8i DB version and its character set. I accept this as a statement.
    Furthermore, we cannot ask for any upgrade or change of our 8i DB.
    So, my question is there any work around that I can use ?
    I firstly did this, on one of the tables to transfer ... :
    -1) extract the 10g data into a file
    -2) transfer the file into the 8i Unix machine
    -3) insert the data from the file into the 8i DB.
    but it seems a long process and I don't know how to automatize this idea !!!
    and I feel stuck !Do you have any advice that could make this data transfer easier ?
    Thanks a lot,
    Olivier

    for the performance side direct path read and write and buffer sizes may help, how do you unload the data?
    Below you will find a shell script to handle a similar task for two databases which are in the same server using unix pipes(if disk space is limited this also helps) -
    #!/bin/ksh
    PATH=...
    ORACLE_BASE=...
    ORACLE_HOME=..
    NLS_LANG=..
    NLS_DATE_..
    ORA_NLS32=..
    ORA_NLS33=..
    export PATH ORACLE_BASE ...
    cd /export/home/oracle/...
    for i in $(cat set1.tables)
    do
    /usr/sbin/mknod mknod.$i p
    export ORACLE_SID=FROM-DB
    /u01/app/../some-unloader user/passwd data=mknod.$i table=$i delim='~' trunc=y control=$i.ctl bad=$i.bad TERMINATED=y DATEFMT='dd/mm/yyyy hh24:mi:ss' recsep='|' buffer=1048576 &
    /usr/bin/sleep 1
    export ORACLE_SID=DEST-DB
    /u01/app/oracle/.../bin/sqlldr user/passwd readsize=1048576 control=$i.ctl direct=y log=$i.log bad=$i.bad
    /usr/bin/rm mknod.$i
    done
    Best regards.

  • Deleting application systems in 10g

    Hi all,
    I'm trying to get rid of some unwanted application systems from designer 10g.
    What I'm doing is "Force purge" on the desired application system folder but I always get the same error: "CDR-02000 - cannot delete table definition..."
    I would appreciate any help.
    Many thanks

    I'm afraid that doesn't work either.
    Any other suggestions?
    Thanks

  • How to find who has deleted the objects in 10g

    All,
    On 10th feb i have created a sequence (M_KEY_SEQ) as per my user request.
    But i could not find the sequence in the database now, Could any one please tell me
    how to find out ..who has dropped the sequence, (looks like some drop actions has been carried out from my user side, we suspect those drop jobs might dropped this sequence but we dont have correct information about who has dropped it..so we cant tell them that you have dropped).
    Any suggestions please...
    No auditing enabled in our database.

    If you dont mind ..could you please explain me how to use DBMS_LOGMINER to find out the deleted sequences

  • Delete Directory in owb 10g

    Hi,
    I hope, that I found the correct forum for my issue.
    I use the OWB 10g2 and I want to delete an oracle directory, which was created with a wrong name. But it is write protected. I tried with the OWB and with OMB Plus.
    Can somebody help me?
    Thank you
    Mark

    There is a specific Warehouse Builder forum here:
    Warehouse Builder
    You can also post questions to this forum as this forum covers all BI products. To answer your question, I am not sure what you are trying to do. Are you trying to delete the object via "Control Center"? It should be possible to deploy the job as a delete job to remove the directory from your target/source database.
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Delete/Insert in OWB 10g

    hai,
    I wanted to use delete/insert option so that i can selectively delete data and insert
    the new set of records.But what i found is that all the existing records get deleted
    ie selective delete is not happening. Can anyone pls let me know how this can be achieved with the help of delete/insert option(in operator properties of table)
    Thanks And Regards,
    Ashir

    There is a specific Warehouse Builder forum here:
    Warehouse Builder
    You can also post questions to this forum as this forum covers all BI products. To answer your question, I am not sure what you are trying to do. Are you trying to delete the object via "Control Center"? It should be possible to deploy the job as a delete job to remove the directory from your target/source database.
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Can't uninstall or reinstall oracle 10g express edition in w/server 2003

    Hi,
    I need help from all of you, i already install oracle 10g express edition in
    windows server 2003 in D drive. but i can't remove because the oracle not in
    the add remove program so i download the windows install clean up to remove
    but after remove it still in the all program i still can start and stop the
    database but can't go to the database home page.The error message (the install
    cannot proceed as service OracleServiceXE is present on the system. Remove the
    service , reboot the systemand retry the installation) can any one guide me to use
    command prompt to remove.
    My email address [email protected]
    Thanks

    Hi,
    Perform the following steps, this will solve your problem and can go with new installation. :-)
    (Only perform the steps 7.2 section and here is the link : http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#BABDJDCD
    Manually Removing Oracle Database XE
    If the deinstallation is interrupted, follow these steps to manually remove Oracle Database XE from your computer:
    Step 1: Stop the Oracle Database XE Services
    Step 2: Remove the Oracle Database XE Registry Editor Settings
    Step 3: Update the System Variable Path
    Step 4: Remove Oracle Database XE from the Start Menu and Desktop
    Step 5: Remove the Oracle Database XE Directories
    Step 6: Install and Run the Windows Installer CleanUp Utility
    7.2.1 Step 1: Stop the Oracle Database XE Services
    Follow these steps:
    1. Open the Windows Services utility: From the Start menu, select All Programs, then Administrative Tools, and then Services.
    2. If any of the following Oracle services exist and have the status Started, then select each of the services, and click Stop:
    OracleXE
    OracleXETNSListener
    OracleJobSchedulerXE
    OracleXEClrAgent
    OracleMTSRecoveryService
    3.
    Exit Services.
    See also the Microsoft online help for more information on stopping services.
    7.2.2 Step 2: Remove the Oracle Database XE Registry Editor Settings
    Follow these steps:
    1.
    Log on to Windows with Windows administrative privileges.
    2.
    Ensure that you followed the instructions under "Step 1: Stop the Oracle Database XE Services" to stop the Oracle Database XE services.
    3.
    Start the Registry Editor at a command prompt:
    SYSTEM_DRIVE:\> regedit
    4.
    Go to HKEY_CLASSES_ROOT.
    5.
    Delete the following keys:
    NEED TO CONFIRM THE XE-SPECIFIC ONES.
    6.
    Go to HKEY_CURRENT_USER\Software.
    7.
    Under Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs, delete the Oracle Database 10g Express Edition key.
    8.
    Go to HKEY_LOCAL_MACHINE\SOFTWARE and search for the ORACLE group key.
    9.
    Expand the ORACLE group key and then delete the KEY_XE and OracleMTSRecoveryService keys.
    10.
    Go to HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI.
    11.
    Expand the ODBCINST.INI key and remove the Oracle in XE key.
    12.
    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
    13.
    Delete the following keys:
    OracleServiceXE
    OracleXEClrAgent
    OracleXETNSListener
    14.
    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application.
    15.
    Delete the Oracle.xe key.
    16.
    Exit the Registry Editor.
    17.
    Restart your computer.
    Thanks,
    Rams...
    Edited by: user10888288 on May 3, 2010 5:58 AM

  • GROUP BY error executing a dblink querie on 11g

    Hi all,
    I would appreciate your help.
    Thanks in advance.
    Best regards, Cristina.
    Our customer is upgrading DB from 10g to 11g (11.2.0.3) and the querie that used to work on 10g does not work on 11g throwing the following error.
    The querie uses a dblink to a 10g instance (ORAHIS)
    SELECT to_char(DTLMCBR,'ddmmyyyy'), sum (valor_doc) FROM [email protected] (dblink to 10g) GROUP by to_char(DTLMCBR,'ddmmyyyy');
    ERROR:
    ORA-00979: Not a GROUP BY expression
    ORA-02063: preceding ORAHIS line

    user607378 wrote:
    SELECT to_char(DTLMCBR,'ddmmyyyy'), sum (valor_doc) FROM [email protected] (dblink to 10g) GROUP by to_char(DTLMCBR,'ddmmyyyy');
    Hi Christina, maybe you oversimplyfied the statement. But what you posted should work (apart from the (dblink to 10g) which I think is just a comment.
    Are DTLMCBR and VALOR_DOC columns in this table? If it is a local function and/or synonym then this can be one reason.
    SELECT to_char(DTLMCBR,'ddmmyyyy'), sum (valor_doc)
    FROM [email protected]
    GROUP by to_char(DTLMCBR,'ddmmyyyy');I would write the query differently. But this wouldn't explain any error.
    SELECT to_char(trunc(DTLMCBR),'ddmmyyyy'), sum (valor_doc)
    FROM [email protected]
    GROUP by trunc(DTLMCBR);Is there any chance that during the upgrade your table and/or column names where changed into lowercase logic?
    SELECT to_char(trunc("DTLMCBR"),'ddmmyyyy'), sum ("valor_doc")
    FROM "isbtdofi00"@ORAHIS.CLI.PT
    GROUP by trunc("DTLMCBR");

  • Can't Deinstall 10G

    I can't deinstall 10G from WIN 2000. Checking the Oracle Home results in nothing happening.
    I managed to deinstall some individual components, but others just hang or I get a "Service can't be stopped, overlapping I/O" dialog.

    First of all, use the Oracle Universal Installer to uninstall. You almost have to select a level or two down to verify that everything in your OraHome10 or whatever you called your home is selected. Make sure you actually have check-marks in all the open boxes by everything.
    Secondly, go into your services and verify that you no longer have any Oracle 10g services existing or running. If you still see some, stop them. I would then try uninstalling again via the Uninstaller.
    If that does not remove the services, you can go into your registry and look inside the "ORACLE" services folder in the HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE folder. Look inside ALL_HOMES and delete any reference to 10g. If you have a "KEY_OraDb10g_home1" folder or something similar in there, delete it. This is tricky business, so if you have any previous versions of Oracle, they will be in here in different HOMES but will also be listed under ALL_HOMES, so make sure you only delete 10g-related items if you have a previous verson of Oracle. If you only have 10g installed, then you can pretty much delete the whole dang ORACLE folder in there--but try to uninstall first so this doesn't impede a safe uninstall, right?
    Once you have deleted any trace of Oracle 10g, I recommend going to Windows Explorer and finding your C:\Oracle folder and deleting the 10G product folder manually. This is what I had to do.
    Also, make sure you don't have an unzipped version of 10g residing in your DOCUMENTS AND SETTINGS or TEMP folder which could still be referenced by Oracle. Do a search for the word ORACLE on your hard drive. Then re-boot and that should be that.
    Good luck.

  • Capturing deletes in the source -best practices

    What are best practices to capture deletes in the source (10g)? I need to bring the data into the data warehouse. Asynchronous CDC can do the job, but is there anything I should be aware of? Can somebody speak of the best practices of how to implement this? Other options?
    Thanks in advance.
    Edited by: Rinne on Sep 23, 2010 11:05 AM

    Rinne wrote:
    Deletes don't happen often at all. Just about 10 records in a month. But I do need to track them daily. I have a daily job that goes against the source and gets the data out. Currently, I'm relying on a timestamp, but I need to change this to get the deletes.If you can afford (i.e. you have control over the application that uses the source database), you may want to only mark the records as "DELETED" (for e.g. add a flag to the table that is set to indicate that record is deleted). That way you change a DELETE to an UPDATE.

Maybe you are looking for

  • PL/SQL Cursor function

    I want to return all rows where the act_No is less than 3 (act_No's). However I am using row count, but this will allow the first two rows to be printed out and nothing else. The problem is act_No should be accepted whether the values are 1 and 2 or

  • How to active my iphone?

    ​Dear Apple! My name is Long. I come from Ha Noi city, Viet Nam. In working trips in Fance, i bought a iphone 5s, model: ME435F/A. Their imei is ***** and seri: F2*******FGD. which is grey and 32Gb. After i came back Viet Nam. My iphone has a trouble

  • Major Help Needed....

    Not exactly sure what is going on. I got an Ipod 40 gb with dock. Plugged into USB and transfered some of my music to my Ipod. Then I added more CD's to my library and even bought one from the apple store total about 150 songs added. When I plug in m

  • NullPointerException Updating BAM exception

    Hello, I got this exception while the engine was updating BAM database. After this exception I noticed that the process data were not stored into the database. Since this executes many times per day I've to find out what went wrong. This began to hap

  • How to open the contributor window

    i've designed a site in designer put some contributor regions in that and also assigned already existing files to those contributor regions, but in the contributor pdf i read that to open the contributor window i have to press CTRL+SHIFT+F5 but when