Database Link, nice but drops

I have a database link to a remote site (staging server to live server).
All is well until I throw quite a lot of data (some data from a table full of BLOBs), at which point I get, for example...
SQL> insert into MyTable@Myremote select * from MyTable where ROWNUM < 100;
insert into MyTable@Myremote select * from Table where ROWNUM < 100
ERROR at line 1:
ORA-12571: TNS:packet writer failure
ORA-12571: TNS:packet writer failure
Does this indicate a problem with our network in someway (it is happy with transfering small tables of rows etc)? Is there any way I can cause it to 'resume' as FTP would on a transfer, or is there a timeout property I need to set somewhere or something?
Staging server (data being transfered FROM) is 8.1.7 on Win2K (to patch level 8.1.7.0.2), Live server (data being transfered TO) is 8.1.6 on Win2K (to patch level 8.1.6.1.2)
Any help appreciated,
Thanks,
Jason.

Well I would start by checking the O/S event logs to see if it tells you if there is anything up with your protocol, hw, etc ?
I would also turn on the Oracle trace to see what it says ?
You cannot resume your operation in fact Oracle will rollback your insert as soon as it detects an abnormal end to the SQL exec thread which will occur when you lose the TNS connect.
Gut reaction sounds like you are timing out on the network. Just a guess. Have you tried upping the SDU and TDU values in your connect string ?
Have a nice day.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jason Kane ([email protected]):
I have a database link to a remote site (staging server to live server).
All is well until I throw quite a lot of data (some data from a table full of BLOBs), at which point I get, for example...
SQL> insert into MyTable@Myremote select * from MyTable where ROWNUM < 100;
insert into MyTable@Myremote select * from Table where ROWNUM < 100
ERROR at line 1:
ORA-12571: TNS:packet writer failure
ORA-12571: TNS:packet writer failure
Does this indicate a problem with our network in someway (it is happy with transfering small tables of rows etc)? Is there any way I can cause it to 'resume' as FTP would on a transfer, or is there a timeout property I need to set somewhere or something?
Staging server (data being transfered FROM) is 8.1.7 on Win2K (to patch level 8.1.7.0.2), Live server (data being transfered TO) is 8.1.6 on Win2K (to patch level 8.1.6.1.2)
Any help appreciated,
Thanks,
Jason.<HR></BLOCKQUOTE>
null

Similar Messages

  • Database link create but not fatch data from link database give me this err

    Sir I create database link with this command system create link
    but when I user query then system give me this error you see in blow
    SQL> create database link xyz connect to mfatest identified by mfa786 using 'aamir';
    Database link created.
    SQL> select * from accbal@xyz;
    select * from accbal@xyz
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02068: following severe error from XYZ
    ORA-03113: end-of-file on communication channel
    this is same database but diffrent user
    scott user
    mfatest user
    please give me idea how i fatch data from link database/link other user
    thank
    aamir

    On the machine where you get that error does this work ?
    SQL> connect mfatest/mfa786@aamir
    SQL> select count(*) from accbal;
    If it doesn't, please post tnsnames.ora and sqlnet.ora from local machine, and the result, on remote machine, of
    C:\> lsnrctl services

  • Drop database link & ORA-02082 Error

    Hello,
    I have created db link. Now, I would like to DROP it but I got "ORA-02082 a loopback database link must have a connection qualifier".
    I have tried every possible combination but without success.
    Thanks for help
    sasa

    Hello Barbara,
    I agree with you that if db link exist I should be able to drop it. If you look into my first reply there is complete select from user_db_links. Select from dba_db_links are the same because I haven't any others db links. I try to drop the db link as owner or as sys. I do not need to think about drop with name "qwer.cscargo.cz" because is wrong (our inner domain is "in.cscargo.cz"). The only difference among others db links is that qwer have "current_user".
    DB_LINK USERNAME HOST
    CARGODB.IN.CSCARGO.CZ CARGO_ADM cargodb
    LMDB.IN.CSCARGO.CZ CARGO_ADM lmdb
    QWER.IN.CSCARGO.CZ CURRENT_USER speisdb
    SPEISDB.IN.CSCARGO.CZ CARGO_ADM speisdb_rac
    There could be one problem. I created the db link when my db have name "speisdb". I rename my db (using rman - duplicate db) to "speisdev". Could be this source of problems?
    Here is output of your drop script:
    drop database link qwer
    ERROR at line 1:
    ORA-02082: a loopback database link must have a connection qualifier
    drop database link qwer.cscargo.cz
    ERROR at line 1:
    ORA-02024: database link not found
    drop database link qwer.in.cscargo.cz
    ERROR at line 1:
    ORA-02084: database name is missing a component
    drop database link qwer@loopback
    ERROR at line 1:
    ORA-02024: database link not found
    drop database link qwer.cscargo.cz@loopback
    ERROR at line 1:
    ORA-02024: database link not found
    drop database link qwer.in.cscargo.cz@loopback
    ERROR at line 1:
    ORA-02084: database name is missing a component
    drop public database link qwer
    ERROR at line 1:
    ORA-02082: a loopback database link must have a connection qualifier
    drop public database link qwer.cscargo.cz
    ERROR at line 1:
    ORA-02024: database link not found
    drop public database link qwer.in.cscargo.cz
    ERROR at line 1:
    ORA-02084: database name is missing a component
    drop public database link qwer@loopback
    ERROR at line 1:
    ORA-02024: database link not found
    drop public database link qwer.cscargo.cz@loopback
    ERROR at line 1:
    ORA-02024: database link not found
    drop public database link qwer.in.cscargo.cz@loopback
    ERROR at line 1:
    ORA-02084: database name is missing a component
    Thanks SASA

  • Cann't Drop public database link

    I am not able to drop public database link .
    Oracle Version - 11.2.0.1.0 - 64bit Production
    Os Version - Sun Solaris .
    When I am going to drop a public database link it's give a error :
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: Can not drop Object
    ORA-06512: at line 2
    00604. 00000 - "error occurred at recursive SQL level %s"
    Can anyone help to resolve this problem? It is a Production Database and it's a Urgent .
    Thanks,
    Dip Sankar Rana

    You say:
    I already given syntax of creating Public database link.
    But you should give real details (exact statements and exact results) to make it clear what you are attempting and what your problem is.
    Please show:
    - The CREATE PUBLIC DATABASE LINK statement (obscuring the password, of course) and its result (i.e. success or failure message)
    - From each of schema1 (working) and schema2 (not working):
    - - The result of SELECT USER FROM DUAL;
    - - The result of SELECT USER FROM DUAL@DB_TST;
    - - The result of SELECT COUNT(*) FROM ALL_OBJECTS@DB_TST WHERE OWNER = 'B1';
    In the meantime, an observation.
    You said:
    I create a public db link from schema1 to other database using below command --
    CREATE PUBLIC DATABASE LINK DB_TST
    CONNECT TO B1 IDENTIFIED BY password
    USING 'SPPROD'Note that any user (in caps: ANY USER) on this database can use this link to connect to database SPPROD as B1 without knowing the password - because you put the credentials in the link.
    If you have a PUBLIC database link with credentials, like you do here, you have a serious, glaring security exposure. You really, REALLY should not do this. Use a private database link (available only to the user that created it) or do not put credentials on the link (so that any user using that link is using his own credentials to connect to the remote database).
    Edited by: mtefft on Jan 14, 2011 4:14 AM

  • How to refresh a created database link?

    I have created a database link with the command:
    CREATE DATABASE LINK mydb.net CONN TO STRMADM IDENTIFIED BY strmadm_pw USING 'mydb.net'
    and then i changed strmadm_pw at the remote database, which may cause the database link inactive. but how to activiate the link again?

    The best thing is always to try it :
    SQL> show user
    USER is "SCOTT"
    SQL> create database link test connect to test identified by test using 'orcl';
    Database link created.
    SQL> create synonym test_tab for test_tab@test;
    Synonym created.
    SQL> select count(*) from test_tab;
      COUNT(*)
             1
    SQL> create or replace function test_func return number is
      2     counter number;
      3  begin
      4     select count(*) into counter from test_tab@test;
      5     return counter;
      6* end;
    SQL> /
    Function created.
    SQL> select test_func from dual;
    TEST_FUNC
             1
    SQL> conn / as sysdba
    Connected.
    SQL> alter user test identified by test1;
    User altered.
    SQL> conn scott/tiger
    Connected.
    SQL> select count(*) from test_tab;
    select count(*) from test_tab
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TEST
    SQL> select test_func from dual;
    select test_func from dual
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TEST
    ORA-06512: at "SCOTT.TEST_FUNC", line 4
    SQL> drop database link test;
    Database link dropped.
    SQL> create database link test connect to test identified by test1 using 'orcl';
    Database link created.
    SQL> select count(*) from test_tab;
      COUNT(*)
             1
    SQL> select test_func from dual;
    TEST_FUNC
             1
    SQL>                                                                                                                                                                                                                

  • Change Ownership of Database Link

    Hi Gurus,
    How would I alter the ownership of a newly created database link to another owner (schema) ?
    Thanks,

    Hello;
    Drop and recreate the link in the correct schema.
    Its as simple as that.
    DROP PUBLIC DATABASE LINK <LINK_NAME>;
    or
    DROP DATABASE LINK <LINK_NAME>;
    Create database link ""
    connect to
    identified by ""
    using '(DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS =
         (COMMUNITY = tcp.world)
         (PROTOCOL = TCP)
         (Host = )
         (Port = 1521)
       CONNECT_DATA = (SID = )
    )';Best Regards
    mseberg

  • The database link contains invalid connection information

    I am working on owb10.1, oracle db 10g release 2
    As i try to create a new module through the New Module Wizard, everything is fine until setting the connection information step. Since this is the first time to create a module, I pick the option "Oracle Data Dictionary" and also create a new database link successfully. After choosing the new database link, when i click the next button, an error occurs
    *"API4006: The database link contains invalid connection information.*
    *API2414: Cannot determine version information for the specified database link.*
    *Check the database link and try again."*
    I could create and test the new database link successfully. but here why I can't choose this db link to do the next step?
    Any thoughts?
    please help me out.
    Thanks

    database link name works well now. i changed the global_name parameter.
    after that i try to create a new db link, but still can't go to the next step and the same error occurs.
    The details of the database link:
    Database Link:    Test
    Owner:     GINO_OWNER
    User Name:     SCOTT
    Connect String:  127.0.0.1:1521:orcl
    Schema:      SCOTT
    any thought?
    Edited by: gino2009 on Nov 20, 2009 6:31 AM

  • Database Link question ! Please help me ....

    Hi everybody,
    I have some question about database link.
    For example, I have 3 database, database 1 and database 2 connect together by database link db_link1, database 2 and database 3 connect together by database link db_link2.
    I want to ask: Can I connect from database 1 to database 3 ? ( Of course don't use database link between database 1 and 3, just use database db_link1 and db_link2 )
    Both db_link1 and db_link2 are public database link.
    Can I restrict user access by 2 these public database link ?
    Thanks a lot.

    A database link has directionality-- it connects from one database to another database. It is not a bi-directional link.
    Assuming db_link1 exists in database 1 and connects to database 2 and db_link2 exists in database 2 and connects to database 3, it should be possible to read data that is in database 3 from database 1 without creating a new database link. But you'd need some sort of intermediate layer in database 2 (i.e. a view in database 2 that queries an object in database 3) because you can't nest database links in a single SQL statement. Of course, you would almost never actually do this for a variety of reasons. The only time I've ever heard of someone using this sort of setup is if database 1 is a very recent version of Oracle and database 3 is a very very old version of Oracle such that a database link between 1 and 3 is not possible.
    If you create a public database link, you cannot restrict access to that link short of potentially doing something with VPD. If you're creating a database link using a fixed username & password that would create a security issue, it would make far more sense to create private database links.
    Justin

  • Drop database link

    I'm having trouble dropping a database link. In SQLPlus I get:
    SQL> SELECT db_link FROM USER_DB_LINKS where db_link like 'PROD%';
    DB_LINK
    PROD.CBS.STATE.OR.US
    PROD.CBS.STATE.OR.US
    PROD_DB.CBS.STATE.OR.US
    PROD_RI.CBS.STATE.OR.US
    SQL> drop database link PROD_RI.CBS.STATE.OR.US;
    drop database link PROD_RI.CBS.STATE.OR.US
    ERROR at line 1:
    ORA-02084: database name is missing a component
    This is the method identified in the 10g manual: http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10739/ds_admin.htm#sthref3729
    When I try to drop the same link using OEM, I get the message:
    ORA-02024: database link not found
    In the case of OEM, I'm logging on as a different user then the owner of the link. In the case of SQLPlus, I get the same error whether or not I'm logged in as the owner of the db link, or myself.
    Thanks,
    Chuck

    Using the quotes worked:
    drop database link "PROD_RI.CBS.STATE.OR.US";
    but only if I own the database link. How, as the DBA, can I get rid of a link that someone else created (our DEV system is littered with experiemental links).
    The same above doesn't work if it's owned by someone else:
    SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
    DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
    ERROR at line 1:
    ORA-02024: database link not found
    I tried changing the schema context to no avail either:
    SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
    DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Thanks,
    Chuck

  • Drop or alter database link question...

    I have a database that uses a dblink to connect to a remote database to use a sequence for id's. The remote database is a 12 node rac cluster and when the database link was initially created the admin that created it only specified one of the nodes in the rac cluster in the comnnection description for the database link.
    We want to change the link to include both rac nodes but we have a bunch of synonyms that point to the database link and I do not want to invalidate the synonyms.
    If I alter the dblink as opposed to drop and recreate then will the synonyms become unusable or invaildated?
    Thanks.

    First, you cannot change the connection information for a database link using the ALTER DATABASE LINK statement. You'll need to drop and recreate the database link to do so. From the documentation
    You cannot use this statement to change the connection or authentication user associated with the database link. To change user, you must re-create the database link.Second, are you saying that the TNS entry was specified explicitly in the CREATE DATABASE LINK statement rather than specifying a TNS alias (i.e. an entry in a tnsnames.ora file)? Normally, you'd specify a TNS alias when you create the database link in which case you could simply modify that alias rather than changing the database link.
    Third, synonyms do not become unusable or invalid just because the underlying object does not exist
    SQL> create synonym invalid_synonym
      2    for not_a_user.not_a_table@not_a_link;
    Synonym created.
    SQL> select status from dba_objects where object_name = 'INVALID_SYNONYM';
    STATUS
    VALIDYou'll get an error if you try to use the synonym, of course, but it won't be invalid. As long as you fix the database link before someone tries to use the synonym, there is no issue.
    Justin

  • ORA-02081 error while trying to drop a database link

    Hello,
    I am trying to drop a database link but getting ORA-02081. How do you drop a database link if it is not open? Any help will be much appreciated.
    Mustafa

    Try this:
    COMMIT;
    alter session close database link dbl1;
    drop database link dbl1;
    Regards,

  • Database link from XE to 8i - Ok for XE, but error ORA-12705 for ApEx

    I have oracle 8.1.7.4 (8i) with these settings:
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    {color:#ff0000}NLS_CHARACTERSET CL8MSWIN1251{color}
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT dd-mon-rr
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    {color:#ff0000}NLS_NCHAR_CHARACTERSET CL8MSWIN1251{color}
    NLS_RDBMS_VERSION 8.1.7.4.0
    And oracle XE:
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    {color:#ff0000}NLS_CHARACTERSET AL32UTF8{color}
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    {color:#ff0000}NLS_NCHAR_CHARACTERSET AL16UTF16{color}
    NLS_RDBMS_VERSION 10.2.0.1.0
    I create database link from XE to 8i - it works fine:
    I create view in XE based on table from 8i
    and using SQL Developer {color:#0000ff}I can Select/Insert{color} into this view {color:#0000ff}from XE{color}.
    BUT when I login {color:#0000ff}to Application Express{color} and try the same SELECT from the view - {color:#0000ff}I get error:{color}
    ORA-12705: ORA-12705: invalid or unknown NLS parameter value specified
    ORA-02063: preceding line from LINKED8i
    What should I do to make Application Express work with the view based on table in remote database correctly - i.e. allow me to Select/Insert/... ?

    Hi,
    i don't have a solution for your problem but i want to share with you my research in using Database Links with XE/Apex.
    I have done it a in a lot of projects and in most of all cases it shows a strange behavior when using Database Links via Apex. As far as i know SQL-Request in Apex are executed via the DBMS_SQL-Package. And that seems to be source for all errors and strange behaviors you get.
    If you post a SQL-Request directly from your XE, everything's fine. If you do the same from APEX, sometimes it is very slow and sometimes it fails.
    So, my approach to this issue is to work with Materialized Views. Your can create MV's on your XE to reference your remote tables and even schedule refreshes. In Apex, you only work with these MV's instead of the remote tables. And everything's going to be fine!
    Hope this helps!
    Regards, Jens

  • I would select a link from the drop down on the address bar but the page would not open. I would select it again but the page does not open. I could only reach website by selecting google on most visited list.

    After updating AVG anti-virus, I encountered a problem on Firefox. I would select a link from the drop down on the address bar but the page would not open after clicking on it. I would select it again, even double click, but the page does not open. I could only reach website by selecting google or yahoo from my dropdown on the most visited list and then click the website that I want to visit. I would like to do this in one step by just selecting a link from my history on the address bar and select a link instead of going to google and then writing the page I want to visit. What could be the problem? When going to the address bar to select a link to open, why does the site not open? Any help would be appreciated.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode.]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • OWB-Location for Sybase is defined through database link but not working.

    Hi,
    HS details are configured and database link from oracle to sybase database is working fine. In OWB, table list of sybase database is also displayed. Location defined for sybase database through connector which refers to database link created from oracle to sybase. While defining location on clicking of "Test" it gives result as successful. But when validation program is run for that location, it gives error that validation failed, specify correct host name, port number etc.. now, i am not able to solve this as database link is working fine and it is displaying list of table from sybase database. All the heterogeneous settings are done. I tried but sybase database doesn't allow direct connectivity so i define the location using connector which points to database link. Is there any thing missing in the setting of HS and do sybase allow connectivity direct from owb ?
    Please help.
    (If problem is not clear, please spare time to ask a question, i will reply immediately.)
    With Regards,
    Amit Shah.

    Amit - did you get anywhere on this?

  • Database link works for form but not report

    I have created a database link to the scott.emp table in a remote database then created a local synonym in my Portal.
    I then created a Form and a Report referencing the local synonym. The for works and allows me to insert record but the form does not. The report compiles fine but I get a message that Portal can't find the underlying table. It seems that if the form works then the report should too. Does anyone have a recommended solution?
    Thank you.
    Sam Masias

    There is a bug filed for this issue. And it should be taken up for fixing most probably in next release.

Maybe you are looking for

  • Find and remove duplicate photos

    I recently copied or imported a large number of photos from external drives to iphoto, but the process seems to have peppered many duplicates of photos throughout my collection.  Usually I iphoto asks if duplicates should be deleted, but it didn't in

  • An error occurred while processing option SAP NetWeaver 7.0 including Enhancement Package 3

    I have error when I try to install  SAP NetWeaver Application Server ABAP 7.03 64-bit Trial. can someone help me???

  • MSS team calender

    Hi All, When I access MSS team calender MSS --> team. I could view my direct subordinate and team members but I would like my name(manager name) to be displayed in team calender. How could be acheive this. Could please advice.

  • Error on launch

    I have both adobe audition 2 and 3 and when I launch either I get a message "to continue where you left off, please restart audition". I did NOT rename the my documents folder as some similar threads suggest this might be the cause. I run win xp x64

  • Why does the Roto Brush tool keep crashing?

    Whenever I'm Rotoscoping using this tool (love it by the way), it works it's magic for a few seconds and then just stops. It then continues playing the video without Rotoscoping. Now I can't just hit enter and walk away while it does its job, I have