Error When Using DataBase LINK in pl/sql

I have cursor fetching some values from remote db and i m trying to store values in local table (see code below) I can run the select query alone succefully but when i use it inside plsql it fails with error.
DECLARE
TYPE MY_CURSOR
IS
     REF
     CURSOR;
          THE_CURSOR MY_CURSOR;
          V_CT          NUMBER(18);
          V_PSN_ID      VARCHAR2(30);
          V_INTERNET_ID VARCHAR2(75);
     BEGIN
          V_CT                                                                           :=0;
          OPEN THE_CURSOR FOR SELECT PSN_ID, 'TEST' FROM TABLE_A@PRO1 WHERE TABLE_A.SEQ_A<=1000;
          LOOP
               FETCH THE_CURSOR INTO V_PSN_ID, V_INTERNET_ID;
          EXIT
     WHEN THE_CURSOR%NOTFOUND;
           INSERT INTO PSN_EMAIL_SENT_TO@local
                    (PSN_ID, LAST_UPDT_DT
                    ) VALUES
                    (V_PSN_ID, SYSDATE
          V_CT:=V_CT+1;
     END LOOP;
     CLOSE THE_CURSOR;
     DBMS_OUTPUT.PUT_LINE
          TO_CHAR(V_CT)
END;
Error report:
ORA-04052: error occurred when looking up remote object  TABLE_A@PRO1
ORA-00604: error occurred at recursive SQL level 1
ORA-04029: error ORA-1775 occurred when querying ORA_KGLR7_DEPENDENCIES
ORA-00604: error occurred at recursive SQL level 1
ORA-01775: looping chain of synonyms
ORA-02063: preceding 3 lines from PRO1
04052. 00000 -  "error occurred when looking up remote object %s%s%s%s%s"
*Cause:    An error has occurred when trying to look up a remote object.
*Action:   Fix the error.  Make sure the remote database system has run
           KGLR.SQL to create necessary views used for querying/looking up
           objects stored in the database.

You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
To create these views, connect "/ as sysdba" and run:
$ORACLE_HOME/rdbms/admin/catproc.sql
which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
It is best to run the whole catproc.sql script (and not just the catrpc script).
You can run and rerun catproc.sql several times quite safely.
Cheers

Similar Messages

  • Broken Pipe Error when using database link

    We are using WebLogic 6.1 sp2 / oracle database 8.1.6. / thin drivers.
    The connection works fine, unit I try to access a view that has a union and db links
    in it.
    We have used one or the other (view or a dblink) and it works, but when used together,
    we get broken pipe error.
    I haven't proven that this is the cause, I will try to setup a test, but I was wondering
    if this is a known issue or what ??
    thanks
    Rich

    You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
    To create these views, connect "/ as sysdba" and run:
    $ORACLE_HOME/rdbms/admin/catproc.sql
    which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
    It is best to run the whole catproc.sql script (and not just the catrpc script).
    You can run and rerun catproc.sql several times quite safely.
    Cheers

  • TNS-12666 error occures when using database link

    When I am trying to use database link
    defined in my database the following error occures:
    TNS-12666 Dedicated server: outbound transport protocol different from inbound.
    In documentation is stated to resolve such an error to
    specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
    I have in tnsnames.ora defined network service name
    by which I can connect to such a database by SQL*Plus
    without any problems, why can I not do such a thing
    via database link?
    Thanks a lot for advise, ...

    Could you change the following entry in your 'sqlnet.ora' file and try?
    SQLNET.AUTHENTICATION_SERVICES = (NONE)

  • ORA-01406 error encountered when using database link

    I am moving data between two different databases using a database link on Oracle 8.1.5. The database statement looks like:
    insert into TABLE@DATABASELINK
    (COLUMNS)
    select (COLUMNS) from TABLE
    One of the database columns is defined as varchar2(4000) on both the source and target database tables. When the data in this column on the source database is greater than 2000 characters, the database query generates the message:
    ORA-01406: fetched column value was truncated
    I have verified that the target column is defined as varchar2(4000), and have also verified that it is this varchar2(4000) column that is causing the problem. I have also tested out that this error only occurs when the varchar field is more than 2000 characters; if I remove characters so that the source field is less than or equal to 2000 characters, this error is no longer generated and the data is inserted to the target database table.
    Is this a limit with database links or some other database parameter that is not set up correctly?
    Thanks...Theresa Tucci

    Could you change the following entry in your 'sqlnet.ora' file and try?
    SQLNET.AUTHENTICATION_SERVICES = (NONE)

  • Fatal two-task communication protocol error (when using  db link)

    I have created the db link betwen two databases of oracle version 9i 9.0.2
    the db link connects to specific user
    when i access the table with same name as user then recieve following message
    ORA-03106: fatal two-task communication protocol error
    when i access the other tables having different name that the user to which the db link connects
    that works alright
    so what is solution of problem in this particular case?

    What is your Oracle release? Is it 9.0.1.2 or 9.2.0?
    What version of Sql*Plus client are you using?

  • Shuttle Demo errors when using DB link

    The Shuttle demo is awesome. Let me just start there.
    I have a table that is accessible over a database link. We're talking a simple select here that does return correctly within APEX SQL Commands.
    select "company_name", "company_num" from pmd.company@CORP
    However, when I paste that statement into the Shuttle Wizard pSQL_1 and pSQL_2 the following error is returned.
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Debug:
    1: begin
    2: &P4_PLSQL_REGION.
    3: end;

    Carl,
    Ok. Here's the results. Using a PL/SQL region with the function throws the same error (string buffer too small).
    So I checked the length of company_name and the longest string value is 47.
    Then I checked the _XL function and got the same error.  This is even showing in SQL Workshop's SQL Commands.
    SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY_XL(
    1,
    company_num,
    'SELECT company_num, company_name FROM pmd.company@CORP'
    FROM pmd.company@CORP
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Thank you,
    Ben

  • Timeout when using database link connecting to a remote database

    Hi,
    I have another strange problem. I have two computers A and B. Both have an Oracle database server instance. I manage the one in B (which is my local computer) but not the one in A (which is a computer where I have a user account and an Oracle account but I don't own or manage).
    I tried to establish a database link on the database in B pointing to the one in A. This works.
    When I try the opposite, that is, establish a database link on the database in A pointing to the one in B I cannot get it work. I can create the database link but then when I try to use it (e.g., by submitting a "SELECT") it blocks for a long time and finally returns "ORA-12535: TNS:operation timed out". I tried to execute telnet from A to B using the port of the Oracle database server in B and it seems that the connection is established. I tried something similar with tnsping but this does not work, as I get again the timeout. I tried deactivating the firewall on my computer B, but it does not work either (besides, the telnet passes through even if I have the firewall activated).
    Any idea?
    My TNSPING looks like this:
    tnsping '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = XE)
    I also tried with:
    tnsping '(ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))';
    I'm lost... Any ideas are very much appreciated.
    Thanks!

    From A to B and from B to A can you ping ... post the output surrounded by tags for formatting.
    Do the same thing for TNSPING.
    What do these computers have in the way of firewalls and antivirus products installed and how are they configured?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ORA-12154 when using Database Link

    We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
    The primary (and thus the standby) have a PUBLIC database link to a third db server.
    When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
    When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
    I check that the db link exists on the standby. It does.
    I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
    I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
    What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
    Thanks

    893968 wrote:
    We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
    The primary (and thus the standby) have a PUBLIC database link to a third db server.
    When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
    When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
    I check that the db link exists on the standby. It does.
    I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
    I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
    What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
    ThanksMost people with this problem don't understand that the dblink is just another client, no different than sqplus running on the same machine - and therefore the link uses the tnsames in the ORACLE_HOME of the database containing the link. But it seems from the steps you've described that you've grasped that. The only thing I can think of off the top of my head is when you try sqlplus from the standby server you are hitting a different tnsnames than the one the database is using.

  • Use Database link connect to SQL Server

    I have a database link from Oracle to SQL Server using user cdit and this user connects to database "northwind".How can i get data from another database use this database link?

    Just add the @<<db link name>> to the table name in your SELECT
    SELECT *
      FROM <<table name>>@<<db link name>>Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Warp Stabilizer error when using dynamic link

    Hey guys,
    So I'm very new to video editing, and not surprisingly, I'm running into problems.  I'm trying to use dynamic link to allow me to Warp Stabilize and color correct video clips in a Premiere Pro project.  When I try to apply the Warp Stabilizer (through dynamic link) in After Effects, I get this error message:
    After Effects error: Stabilization analysis doesn't work with Collapse Transformations (514)
    (25 :: 101)
    I read the only other thread on this which linked to the following page:
    http://help.adobe.com/en_US/AfterEffects/9.0/WS064964FC-424C-4e5a-A5C3-2160B3DFBCA4a.html
    Unfortunately, that didn't help me much.  Maybe the answer is in there somewhere, but if so, its way over my head.  Can anyone give me a simple explanation of why this doesn't work?  I feel like it should be a simple solution so I don't have to go through the process of importing into AE, render, export, import to Premeire Pro, and replace the clip there, blah blah.  This is what dynamic link is for, right??  Thanks for any advice you guys have!

    Not sure I properly understand you...
    As for me, the solution is in AE warning message - just disable Collapse Transformations switch in your AE precomp...

  • ORA805.dll error when using DB Links

    Hi
    Every time I try to use a db link I get the following error: "Access violation at address 67690153 in module 'ORA805.dll'. Read of address 00000000" (using toad or sql plus)
    Already try to use it in a simple query like: "select * from table@dblink" or even to create a new one but I always get the same error.
    If I test the dblink in toad, the connection is successfully.
    Database version is 9i.
    Thanks in advance

    If your database is 9i, you shouldn't have the central 8.0.5 dll on your system.
    You need to investigate what is on your system and whether or not 8.0.5 dlls aren't first in your PATH.
    Sybrand Bakker
    Senior Oracle DBA

  • Stange error when using dbms_metadata.get_ddl in PL/SQL procedure

    Basic info:
    Oracle 10.2.0.4.0 on linux.
    I'm trying to extract ddl of indexes that I drop and recreate frequently during monthly loads and store it in a table.
    This statement works on the command line:
    insert into saved_indexes
    select index_name,dbms_metadata.get_ddl('INDEX',index_name,owner_name)
    from sys.all_indexes
    where owner = owner_name
    and table_name = table_name;
    commit;
    The table 'saved_indexes' is a two column table with a varchar2(40) and a CLOB.
    When I use the following procedure, I get 'ORA-04044 procedure, function, package, or type is not allowed here -4044' every time.
    PROCEDURE SAVE_INDEXES (v_table IN VARCHAR2, v_owner IN VARCHAR2) IS
    v_errorcode number(8);
    v_errortext varchar2(1000);
    v_start_time date;
    BEGIN
    insert into saved_indexes
    select index_name,dbms_metadata.get_ddl('INDEX',index_name,v_owner)
    from sys.all_indexes
    where owner = v_owner
    and table_name = v_table;
    commit;
    EXCEPTION
    WHEN others THEN
    v_errorcode := sqlcode;
    v_errortext := substr(sqlerrm, 1, 1000);
    dbms_output.put_line(v_errortext || ' ' || v_errorcode);
    END;
    Alternatively I have tried it this way:
    PROCEDURE SAVE_INDEXES (v_table IN VARCHAR2, v_owner IN VARCHAR2 ) IS
    v_errorcode number(8);
    v_errortext varchar2(1000);
    v_index_ddl CLOB;
    BEGIN
    for x in (select index_name
    from sys.all_indexes
    where owner = v_owner
    and table_name = v_table)
    loop
    select dbms_metadata.get_ddl('INDEX',x.index_name,v_owner) into v_index_ddl from dual;
    insert into saved_indexes
    values(v_table,v_index_ddl);
    end loop;
    commit;
    EXCEPTION
    WHEN others THEN
    v_errorcode := sqlcode;
    v_errortext := substr(sqlerrm, 1, 1000);
    dbms_output.put_line(v_errortext || ' ' || v_errorcode);
    END;
    Always with the same result. I have poured over the documentation on this and have not found anything. All objects are in the same schema, so there is not an issues with invokers rights, or privileges.
    Any suggestions would be helpful...

    qwe11126 wrote:
    When I use the following procedure, I get 'ORA-04044 procedure, function, package, or type is not allowed here -4044' every time.There is nothing wrong with SP. Post a snippet of SQL*Plus code showing how you call SP along with errors.
    SY.

  • Oracle giving Block corruption errors when using CDC for sending the data to SQL Server 2012

    Hello Friends,
    We are facing an error while using CDC with Oracle. It is a "Block corruption" error, which indicates at some level of data corruption. We ran RMAN validate command to scan the database for corruption but it returned with no errors, however he
    Alert Log in Oracle is still coming up with the following error. Has anyone experienced this error when using Oracle Standard Edition and SQL 2012 ?
    Trace file e:\app\pulse-ad\diag\rdbms\orcl\orcl\trace\orcl_ora_5992.trc
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU                 : 4 - type 8664, 4 Physical Cores
    Process Affinity    : 0x0000000000000000
    Memory (Avail/Total): Ph:6782M/24575M, Ph+PgF:12203M/30844M
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 151
    Windows thread id: 5992, image: ORACLE.EXE (SHAD)
    *** 2013-12-12 03:04:33.655
    *** SESSION ID:(1281.3832) 2013-12-12 03:04:33.655
    *** CLIENT ID:() 2013-12-12 03:04:33.655
    *** SERVICE NAME:(orcl) 2013-12-12 03:04:33.655
    *** MODULE NAME:(xdbcdcsvc.exe) 2013-12-12 03:04:33.655
    *** ACTION NAME:() 2013-12-12 03:04:33.655
    Lost-write detected for sequence 70856. The lost-write starts occurring in block 11193. The current block being validating is 12930.
    Block dump of the first lost-write block:
    Flag: 0x1 Format: 0x22 Block: 0x00002bb9 Seq: 0x000114bf Beg: 0x94 Cks:0x68ee
    Dump of memory from 0x0000000598D06C00 to 0x0000000598D06E00
    598D06C00 00002201 00002BB9 000114BF 68EE8094  [."...+.........h]
    598D06C10 00085BF1 0023BDA1 000DE19C 000DE19C  [.[....#.........]
    598D06C20 0000000C 00000000 2209160A 5BF10000  [..........."...[]
    598D06C30 3EB10502 00C0F5CA 0031BDA1 00010205  [...>......1.....]
    598D06C40 02B22C6A 038A6D69 00000001 00000000  [j,..im..........]
    598D06C50 4D554407 30373230 35BB0206 001100AE  [.DUM0270...5....]
    598D06C60 0001040A 000D000E 038A6D69 56B25735  [........im..5W.V]
    598D06C70 729C0003 E19C0001 000C0006 000D0006  [...r............]
    598D06C80 02BB0502 00C0F5CD 0023BDA1 000A0002  [..........#.....]
    598D06C90 00C00013 000000D0 00030201 56B25736  [............6W.V]
    598D06CA0 03890001 00000000 00000000 002E0105  [................]
    598D06CB0 FFFF0003 00C0F5CD 56B25736 3EB10003  [........6W.V...>]
    598D06CC0 FFFF0024 0014000C 000C0018 00120014  [$...............]
    598D06CD0 09CC0058 E75B0022 0009000F 00085BF1  [X...".[......[..]
    598D06CE0 0024BDA1 000DE19D 000DE19D 0000000C  [..$.............]
    598D06CF0 00000000 2309160A 5BF10000 3EB10502  [.......#...[...>]
    598D06D00 00C0F5CD 0020BDA1 00010205 02B22C72  [...... .....r,..]
    598D06D10 03900974 00000019 00000000 3030300A  [t............000]
    598D06D20 33303030 06323132 AE35BB02 0B441100  [0003212...5...D.]
    598D06D30 0001040A 000D000E 03900974 56B25736  [........t...6W.V]
    598D06D40 729C0003 E19D0011 000C0006 000D0006  [...r............]
    598D06D50 02BB0502 00C0F5CD 0024BDA1 00EA0002  [..........$.....]
    598D06D60 00270016 000001FC 00032C01 56B25736  [..'......,..6W.V]
    598D06D70 00000001 00000000 30393007 002E0105  [.........090....]
    598D06D80 FFFF0003 00C0F5CD 56B25736 00000003  [........6W.V....]
    598D06D90 FFFF0025 00140052 000C0018 00070035  [%...R.......5...]
    598D06DA0 0003000A 00070003 0001001D 00030001  [................]
    598D06DB0 00010001 00010001 00010001 00010001  [................]
    598D06DC0 00010001 00010001 00010001 00010001  [................]
    598D06DD0 00010001 00000001 00010001 00010001  [................]
    598D06DE0 00010001 00000014 09720174 00000022  [........t.r."...]
    598D06DF0 0009000F 00085BF1 0025BDA1 000DE19A  [.....[....%.....]
    Block dump of the current block being validating:
    Flag: 0x1 Format: 0x22 Block: 0x00003282 Seq: 0x000114c8 Beg: 0x0 Cks:0x312a
    Dump of memory from 0x0000000598DDFE00 to 0x0000000598DE0000
    598DDFE00 00002201 00003282 000114C8 312A8000  [."...2........*1]
    598DDFE10 50424703 31303607 34353335 69745319  [.GBP.6015354.Sti]
    598DDFE20 6E696C72 72502067 6375646F 4C207374  [rling Products L]
    598DDFE30 4E206474 C3025650 0380013D 0457454E  [td NPV..=...NEW.]
    598DDFE40 4E1E09C2 1E09C204 10C2024E 1E09C204  [...N....N.......]
    598DDFE50 09C2044E C2024E1E 03C30510 021B0929  [N....N......)...]
    598DDFE60 C3053DC3 0F192602 2602C305 C3050F19  [.=...&.....&....]
    598DDFE70 0C1A6203 5102C105 C2041F4E 044E1E09  [.b.....QN.....N.]
    598DDFE80 4E1E09C2 0410C202 4E1E09C2 1E09C204  [...N.......N....]
    598DDFE90 10C2024E 2903C305 78071B09 011D0B71  [N......)...xq...]
    598DDFEA0 BF020101 1FBF0215 4E018001 53014E01  [...........N.N.S]
    598DDFEB0 0723002C 0B0C7178 0A3C3C18 30303030  [,.#.xq...<<.0000]
    598DDFEC0 33373030 4D033337 47034255 36075042  [007373.MUB.GBP.6]
    598DDFED0 38333936 4E113331 2065776B 74616C50  [693813.Nkwe Plat]
    598DDFEE0 6D756E69 56504E20 0B0AC303 4E038001  [inum NPV.......N]
    598DDFEF0 C2045745 0459512E 59512EC2 5253C203  [EW...QY...QY..SR]
    598DDFF00 512EC204 2EC20459 C2035951 C3055253  [...QY...QY..SR..]
    598DDFF10 1B092903 0B0AC303 3C04C305 C3053239  [.).........<92..]
    598DDFF20 32393C04 4F08C305 C105114F 1F4E5102  [.<92...OO....QN.]
    598DDFF30 512EC204 2EC20459 C2035951 C2045253  [...QY...QY..SR..]
    598DDFF40 0459512E 59512EC2 5253C203 2903C305  [.QY...QY..SR...)]
    598DDFF50 78071B09 01190A71 C0030101 C0034709  [...xq........G..]
    598DDFF60 8001330A 4E014E01 002C5301 71780723  [.3...N.N.S,.#.xq]
    598DDFF70 3C180B0C 30300A3C 30303030 33373337  [...<<.0000007373]
    598DDFF80 42554D03 50424703 31304207 344C5131  [.MUB.GBP.B011QL4]
    598DDFF90 6F725020 63657073 614A2074 206E6170  [ Prospect Japan ]
    598DDFFA0 646E7546 64724F20 44535520 30302E30  [Fund Ord USD0.00]
    598DDFFB0 04C30331 03800133 0557454E 5B1603C3  [1...3...NEW....[]
    598DDFFC0 03C30521 04215B16 1F4004C3 1603C305  [!....[!...@.....]
    598DDFFD0 C305215B 215B1603 4004C304 03C3051F  [[!....[!...@....]
    598DDFFE0 031B0929 043304C3 4D245AC2 245AC204  [).....3..Z$M..Z$]
    598DDFFF0 02C3054D 040A1A18 494002C1 1603C305  [M.........@I....]
    *** 2013-12-12 03:05:07.984
    ** LOGMINER WARNING - Invalidated 6 LCRs **
    Complete dump of first invalid START LCR follows:
    ++  LCR Dump Begin: 0x0000000532C004E0 - CANNOT_SUPPORT
         op: 255, Original op: 3, baseobjn: 0, objn: 233316, objv: 1
         DF: 0x00000002, DF2: 0x00000000, MF: 0x00000000, MF2: 0x00000000
         PF: 0x40000001, PF2: 0x00002000
         MergeFlag: 0x00, FilterFlag: 0x00
         Id: 0, iotPrimaryKeyCount: 3, numChgRec: 4
         NumCrSpilled: 0
         RedoThread#: 1, rba: 0x0114c8.0001c6ce.00d4
         scn: 0x0003.56b593be, xid: 0x0008.00c.00100d85, pxid: 0x0008.00c.00100d85
         ncol: 0newcount: 0, oldcount: 0
         LUBA: 0x3.c109c0.c.15.38f64
    Thanks
    Dee

    Hi Dee,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Mike Yin
    TechNet Community Support

  • Error using database link

    Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
    I then created a database link using the following:
    create public database link cindy_link
    connect to system identified by syspswd
    using 'PRECISEI';
    My link was created, but when I attempt to use it, I get the error:
    ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
    Here is the entry from my tnsnames.ora file:
    PRECISEI =
    (DESCRIPTION =
    (ADDRESS_LINK =
    (ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = precisei.world)
    Here is the entry from my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = precisei.world)
    (ORACLE_HOME = E:|oracle\ora81)
    (SID_NAME = precisei)
    (I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
    Do I have a problem in one of my files?
    I would really appreciate any help.
    Thanks.

    Well, I was facing the same problem but corrected it later on. Let me describe the solution is little detail.
    You need to check few things before creating db link.
    1) db_name and db_domain in init.ora file
    2) global_name in listener.ora file
    3) service name in tnsnames.ora file.
    It seems to me that you have not specified the db_domain in init.ora file. And in that case, you need to follow these steps.
    I am considering here that you have database A on server X and database B on server Y.
    Go to the first server (server X).
    set the global name in init.ora file by following
    Global_name=true
    db_domain=usa.com
    Start and open the database.
    connect as system user.
    (if your oracle sid is orcl then)
    svrmgr30>alter database rename global_name
    to orcl.usa.com;
    this will set the global_name as specified in init.ora file. Here, your SID is orcl and db_domain is usa.com so global_name will be orcl.usa.com.
    svrmgr30>Select * from global_name;
    You get the answer like this.
    Orcl.usa.com
    Now, go to Listener.ora file and change global_name to the new name (orcl.usa.com)
    restart the listener.
    WE WILL SEE ABOUT THE CHANGES OF TNSNAMES.ORA LITTLE LATER.
    Now, go to second server(server Y) and perform the same operation as defined above. i.e. Specify the db_name, db_domain in init.ora file, execute "alter database.." command for setting global_name and edit listener.ora file for new global name.
    Once you do all these you need to create service on server 1 to connect to server 2 and on server2 to connect to server1.
    Go to server X.
    Open tnsnames.ora file and create an entry like this.
    P =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of B)(Port= 1521)))
    (CONNECT_DATA = (SID = P))
    Here, P is global name of P ( at both the places).
    Now, go to server Y.
    Open tnsnames.ora file and create an entry like this.
    Q =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of A)(Port= 1521)))
    (CONNECT_DATA = (SID = Q))
    Here, Q is global name of Q ( at both the places).
    you are all set now.
    Create database link between 2 servers now.
    Say these are all your settings..
    Server X is having database A with global_name orcl.usa.com and server Y is having database B with global_name orcl2.us.com
    Now go to server X and create db link to server Y
    Create public database link orcl2.us.com using 'orcl2.us.com'
    (Note. don't miss to create a service 'orcl2.us.com' in server X's tnsnames.ora file)
    And go to server Y and create db link there.
    Create public database link orcl.usa.com using 'orcl.usa.com'
    (Note. don't miss to create a service 'orcl.usa.com' in server Y's tnsnames.ora file)
    hope this helps,
    If this doesn't work, feel free to contact me.
    Kalpen
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by cindy spearman ([email protected]):
    Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
    I then created a database link using the following:
    create public database link cindy_link
    connect to system identified by syspswd
    using 'PRECISEI';
    My link was created, but when I attempt to use it, I get the error:
    ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
    Here is the entry from my tnsnames.ora file:
    PRECISEI =
    (DESCRIPTION =
    (ADDRESS_LINK =
    (ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = precisei.world)
    Here is the entry from my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = precisei.world)
    (ORACLE_HOME = E:|oracle\ora81)
    (SID_NAME = precisei)
    (I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
    Do I have a problem in one of my files?
    I would really appreciate any help.
    Thanks.<HR></BLOCKQUOTE>
    null

  • Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)

    I'm trying to migrate a Sql Server 2k database to an Oracle 8i schema using OMWB. After using BCP to collect metadata information on the source database, I tried to capture the source data model and got a "Capture aborted" message on the progress screen (even though then it appears a dialog window reporting "0 errors and 0 warnings", funny!). Down there is the error log OMWB generated. After reading some posts, I changed some columns of the OMWB dictionary that holds the source database name, but still got the same error. If someone can enlighten me on this toppic, I'd greatly appreciated it.
    Here's the error log of OMWB:
    ** Oracle Migration Workbench
    ** Production
    ** ( Build 20050629 )
    ** OMWB_HOME: D:\Datos\Download\Oracle\Oracle Migration Workbench\omwb
    ** user language: es
    ** user region: null
    ** user timezone:
    ** file encoding: Cp1252
    ** java version: 1.4.2_04
    ** java vendor: Sun Microsystems Inc.
    ** o.s. arch: x86
    ** o.s. name: Windows 2000
    ** o.s. version: 5.0
    ** Classpath:
    ..\lib\boot.jar
    ** Started : Fri Feb 23 17:18:48 GMT-03:00 2007
    ** Workbench Repository : Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Repository Connection URL: jdbc:oracle:thin:@ServerCms:1521:sigcewbc
    ** The following plugins are installed:
    ** Microsoft Access 2.0/95/97/2000/2002/2003 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 2000 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 6.5 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 7.0 Plugin, Production Release 10.1.0.4.0
    ** Active Plugin : SQLServer2K
    EXCEPTION :SQLServer2KDisconnSourceModelLoad.loadSourceModel(): oracle.mtg.migration.MigrationStopException: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
    ** Shutdown : Fri Feb 23 18:00:50 GMT-03:00 2007

    Duplicate thread
    Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)

Maybe you are looking for

  • Can't send or receive texts on iPhone 5c

    I used to be able to send texts to some people, but not others.  Now after extensive reading and searching online over the last week, I have turned iMessage off, have MMS Messaging turned on, have reset network settings, restarted phone numerous time

  • Superdrive is no longer recognized

    I just tried to pop in my brand spanking new Six Feet Under vol.2 soundtrack to rip to itunes....and the superdrive no longer grabs the cd, and when i checked out "about this mac" and looked under "disc burning", there is no longer any optical drive

  • Photoshop CC 2014 - Window Libraries Missing

    Watched the Adobe Keynote and looked at Help files about using this new feature. In my Photoshop CC 2014 under Window I should have a Libraries option. I don't. It just goes from Layers to Measurement Log, nothing in between. I checked for updates th

  • How to change BPM process message mode

    Hi, I use JDeveloper 11.1.1.6 + BPM plugin. I created synchronous process with some activities. How to change it to asynchronous ? Kuba

  • File Manager & Bluetooth?

    Hallo. I have searched for a File Manager and a Bluetooth app but cant find any good one. When i hade a undroid phone, there was very good file managers who showed the root of the phone and the bluetooth was great. The only file managers i found for