Creating Dblink

Dear Experts,
I am using given bellow Query to create remote Dblink
create public database link TEST
connect to home
identified by <pwd>
using 'dbhome.WORLD';
when i try to retrieve rows from a table exist in home user thats giving me error
ORA-12154: TNS:could not resolve the connect identifier specified
waiting

Hi,
you should check youre tnsnames.ora file where that connect string should be.
You wrote wrong name of db to which you ar trying to connect.
Maybe is not dbhome.WORLD but just dbhome.
Try tnsping dbhome.WORLD from command prompt on machine where is the database on which you are trying to create db link, and paste the output here if you wish.

Similar Messages

  • How to create dblink from oracle to sqlserver

    sqlserver:10.5.0.61
    sqlserver 2005
    windows server 2003
    oracle:10.30.16.19
    9.2.0.6
    solaris
    i installed oracle 9i transparent gateway on 10.5.0.61, and the follows are my config files :
    10.5.0.61:
    D:\oracle\ora92\tg4msql\admin\initvatdata.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Transparent Gateway for SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO="SERVER=10.5.0.61;DATABASE=vatdata"
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\ora92\network\admin\listener.ora
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = vatdata)
    (PROGRAM = tg4msql)
    (SID_NAME = vatdata)
    (ORACLE_HOME = d:\oracle\ora92)
    then i create dblink on 10.30.16.19:
    CREATE PUBLIC DATABASE LINK "DB_SQLVAT"
    CONNECT TO "vatsfc" IDENTIFIED BY "guest"
    USING '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    (CONNECT_DATA =
    (SID = vatdata)
    (HS = OK)
    sys@BARORA> select * from dbo.tb_result@DB_SQLVAT;
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from DB_SQLVAT
    can you give me some advice? thanks very much!

    when run lsnrctl stat on 10.5.0.61:
    C:\Documents and Settings\Administrator>lsnrctl stat
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-1月 -2011 12:54
    :16
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    LISTENER 的 STATUS
    别名 LISTENER
    版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    启动日期 13-1月 -2011 12:54:13
    正常运行时间 0 天 0 小时 0 分 3 秒
    跟踪级别 off
    安全性 OFF
    SNMP OFF
    监听器参数文件 D:\oracle\ora92\network\admin\listener.ora
    监听器日志文件 D:\oracle\ora92\network\log\listener.log
    监听端点概要...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.5.0.61)(PORT=1521)))
    服务摘要..
    服务 "vatdata" 包含 1 个例程。
    例程 "vatdata", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    命令执行成功

  • Steps to create dblink?

    I have two separate Oracle 10g Database windows server and i want to create dblink in between them please let me know the complete steps to accomplish successful dblink
    Thanks,
    Waheed.

    there are several types of dblinks so you better read
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_concepts.htm#i1007888
    and find the type you will use
    regards
    roman

  • How to create dblink between oracle 10G and mysql

    I want to create dblink between oracle 10G and mysql
    I create it in ECC6.0 using DBCO transaction tcode,which database type can choose?Microsoft sql server?Because there have no mysql item.
    I choosed MSS  so that I can test it, but it failed,there is an error that 'ORA-12569:TNS:packet checksun failure'.
    I configured the oracle tnsnames.ora file like this:
         CW.WORLD =
               (DESCRIPTION =
                    (ADDRESS_LIST =
                          (ADDRESS =
                                  (COMMUNITY = SAP,WORLD)
                                  (PROTOCOL = TCP)
                                  (HOST = XX.XX.XX.XX)
                                  (PORT = XXXX)
                   (CONNECT_DATA =
                        (SID = XXX )
                   (HS = ok )
    When I tnsping CW,it will fail,like this " TNS-12569:TNS:packet checksum failure"
    How can I do.

    I want to know if this possible?

  • Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?

    Hi,
    Can anyone share me the procedure to Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?
    Thanks

    Hi,
    to access non-Oracle systems you must use Oracle Heterogeneous Services.
    You have to follow the instructions from Heterogeneous Connectivity Administrator's Guide to perform it.
    Regs,
    Acr

  • Create dblink to a non-domain db

    How can i create a dblink from a domain db to a non-domain db.
    I keep getting the usual error:
    ORA-02085: database link DISP.world connects to DISP
    If i alter session set global_names = false
    then i can get DISP dblink to work but i mess up all the others.
    I have no control over the non-domain db i am trying to connect to so i cannot add this to a domain. Is there any way to work around this.
    My domain db is 8i while the other non-domain db is 9i
    James.

    What kind of objects are you creating over the dblink. If these are views or synonyms try the following:
    1) Alter system set global_names=false;
    2) CReate dblink;
    3) Create objects;
    4) alter system set global_names=true;
    Though 'select * from global_name@dblink' will not work but you will be able to select from the objects.

  • How to create dblink to sqlserver in unix?

    I have a oracle database(9i) running in unix server(AIX).
    and I need to create a dblink to sqlserver. So all clients can use this dblink to query data from sqlserver.
    Q:
    How to create dblink to sqlserver in unix?
    Thanks for your replys

    Hi dear ,
    I installed oracle db 10g R2 in Linux 4.
    then installed the Oracle client in Win2k3 Server.
    then made a odbc system dns for existing Sqlserver.
    Now setting a Heterogeneous connection in that for that
    my oracle service is orcl
    ssql service is sqlserver
    i started the listner
    checked tnsping , it was successful,
    then i created a link in oracle database
    when i make select query for a table i get the following error,
    can anyone give some idea why this error comes??
    ERROR:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    Thanks in Advance
    Regards
    Raja Kumar

  • Can a dblink be created with select only privilege

    I have created dblink from one instance to another instance.With dblink we can perform dml operations on a table.But i want to restrict insert,update,delete rights and grant only select.Is this possible

    my problem is there is a user named ABC in mango instance with >insert,update,delete privs.
    there is another user CDE in apple instance with insert,update,delete privs.
    Now i have created a dblink on user ABC to CDE as a fixed user.So now user >ABC can do all insert,update,delete operations on user CDE tables.This I want to >restrict.I want user ABC to just view CDE tables instead of update,insert and >delete operations. Create a new user CDE1 and grant select only privilege on all tables of CDE.
    create a dblink using CDE1 this will solve the issue?
    Justin explains the same in his previous reply.
    HTH

  • Error in Executing Procedure through DBLink

    Hi,
    I am facing some problems in executing a procedure through DBLink.
    I have two schema A and B in two different database.
    In schema A I am having one procedure X in package Y and my requirement is that I want to execute this procedure in schema B. So in schema B i have created one DBLink ABC and trying to execute procedure X using this DB link.
    begin
    A.Y.X@ABC;
    end;
    But I am getting below error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'A.Y.X@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Any help would be greatly appreciated!
    Thanks In Advance..
    Regards,
    Sachin Bansal

    Hi,
    Yes, I am connecting to user A of DB1 and in this user I am having procedure X in Package Y. My DBLink in Schema B of DB2 is pointing to user A of DB1.
    I have created DBLINK using below script:
    create public database link abc
    connect to A
    identified by A
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX)(PORT=1521)))(CONNECT_DATA=(service_name=XXX)))';
    Above DBLInk is working fine..I am able to access all the table of schema A in schema B using this DBLink. But when I trying to execute any procedre of schema A in schema B then i am getting error.
    Regards,
    Sachin

  • Want to create custom report under report field in OEM 11G

    Dear all
    I would like to create custom report on OEM 11G. I have query which is executed and verified from TOAD. But after placed report element it shows an error that table/view not exits. But it doesn't ask any database user name and password.So let me like to know how to do this. I want add more and more reports after the success of this.. Ho can it be done?Please advice.
    Note:-
    The data is getting from OEM repository i think so.. But i need a report which is get data from various apps and system tables. So how to display result from this table and shown to EBS reports.
    Regards,
    Gobinath.R
    Associate consultant
    Petrofac Information Services Private Limited
    Chennai.
    Edited by: Gopinath on May 18, 2012 4:23 AM

    Report should be based on tables in repository database. Mostly sysman tables we will be using for reporting. If you need other database tables then you need to create dblink to those targets in sysman schemas. To my knowledge that's the only way you can refer to other db tables in reports.
    Regards,
    Satheesh Shanmugam

  • No DBLinks in the the generated code

    Hi guys,
    I am facing a strange problem. The code generated for my mapping does NOT have the dblinks. My OWB version is 10.1.0.4
    This is my problem in brief.
    I have installed OWB recently and started to do a sample task. I created a very simple one to one table population mapping from source to the target schema. Both are in the same database. When i generated the code for the mapping, it gave a warning 'VLD-2771: System privileges may not allow extraction from source EMP'.
    And the mapping gave an error when i deployed the code.
    When i checked the code which was generated, i couldnot see any dblinks associated with my source table( which seems strange)
    CURSOR "INGRP_c" IS
    SELECT
    "EMP_SRC_TRG_CONN"."EMPNO" "EMPNO",
    "EMP_SRC_TRG_CONN"."ENAME" "ENAME",
    "EMP_SRC_TRG_CONN"."JOB" "JOB",
    "EMP_SRC_TRG_CONN"."MGR" "MGR",
    "EMP_SRC_TRG_CONN"."HIREDATE" "HIREDATE",
    "EMP_SRC_TRG_CONN"."SAL" "SAL",
    "EMP_SRC_TRG_CONN"."COMM" "COMM",
    "EMP_SRC_TRG_CONN"."DEPTNO" "DEPTNO"
    FROM "SCOTT"."EMP" "EMP_SRC_TRG_CONN" ;
    In brief this is the process i have done.
    Source schema : SCOTT & Target schema : TRG_SCHEMA
    1) I have created source (for SCOTT) and target(for TRG_SCHEMA) modules.
    2) I have also created DBLinks, Locations and Connector from source to the target locations.
    3) I registered both the source location and target locations.
    4) Validated, Generated and Deployed the Connector from source to the target.
    I was unable to trace the error. Did i miss anything in the configuration? or during the installation of OWB.
    Though it is a very old post, i hope someone can help me out here.
    Thanks in Advance,
    Sri
    Edited by: SriGP on Jul 2, 2009 6:34 AM

    If they are in the same db then you don't need dblink and error you're getting says that schema from witch you're trying to fetch the data does not have select privlige set on emp table.
    Grant select rights on the object, deploy it and see if it works. If it does, then just ignore this error.

  • Problem in accessing DBlink

    Hi,
    I have two database running on my local machine..
    I logged in one of the database and create DBlink for another database as
    Create DATABASE LINK <dbname>
    when I tried to access that another database as
    select *from <tname>@<dbname>
    it giving the error
    ERROR at line 1:
    ORA-02019: connection description for remote database not found

    CREATE DATABASE LINK dblinkname CONNECT TO dblinkschema IDENTIFIED BY dblinkpassword USING 'netservicename';
    From the above example, the dblinkname is the database link I am creating. dblinkschema is the schema I want to connect to (if I want specific schema). netservicename is the entry in my TNSNAMES.ora for the target database (which could be the full dbname or anything else I called it)
    So I need the dblinkname in my SQL instead of the netservicename:
    e.g select * from test_table@dblinkname;

  • Dblink poor performance with varchar(4000) after upgrade 11g

    Hi
    Since a long time we connected from a 10g database via dblink to another 10g database to copy a simple table with four columns. Tablesize at about 500MB
    column1 (varchar(100))
    column2/3/4 (varchar(4000)).
    After the upgrade of the source database to 11g the dblink performance is poor with the big varchar columns. If I copy (select column1 from ) only column1 then I get the data within minutes. If I want to copy the whole table (select column1, column2, column3, column4 from...) then the performance is poor. It didn't finish within days.
    Does anyone know about dblink issues with 11g and big varchar columns?
    Thank you very much

    Use DBlink to pull data from table(s) using IMPDP:
    #1 Create DBlink in the Target database
    create database link sourceDB1_DBLINK connect to system identified by password10 using 'SourceDB1';
    [update tnsnames.ora appropriately]
    #2
    select DIRECTORY_PATH from dba_directories where DIRECTORY_NAME=’DATA_PUMP_DIR’;
    create DATA_PUMP_DIR directory if not exists
    #3
    impdp system/pwdxxx SCHEMAS=SCOTT NETWORK_LINK=ORCL10R2 JOB_NAME=scott_import LOGFILE=data_pump_dir:network_imp_scott.log
    That's all

  • Strange dblink - works only from sqlplus

    Hi,
    I've created dblink. When I tested it from SQL*Plus everything was OK. But when I PASTED my select to procedure and compile this procedure, compiler return an error that table doesn't exist... Could anybody explain my why this dblink couldn't work from PL/SQL code?
    Best.

    This is problematic line:
    select count(1) into number_variable from TABLE_NAME@dblink_name;
    But when I execute this one on SQL*Plus everything is OK:
    select count(1) from TABLE_NAME@dblink_name;
    Procedure belong to the same user as dblink.

  • Create database link

    hi guys.
    I need help to create database link with this scenario
    i want to create database link between database A ,database B i want to access something inside B i have problems with command and i need help to create database link .
    also does i need owner on both database to create DBlink.
    Regards.

    there is no scenario for creating database link except the prerequisite for having privlileges create database link for private link while for public is create public database link.
    You can create database link in database A for the database B using its string and its username and password
    Khurram

Maybe you are looking for

  • How to get the list of actie users in the moss website !!

    Hello Everybody, I need to get the list of active users with access in the moss websites like following format. User name         User mailid       permission one of the project manager requested to find list of active users with user accesses in the

  • Problem with barcode font in Forms9i

    I need urget help with the following matter: I'm using a barcode font to display a text item. In developer everything is ok, but when i run the form in the web browser, the barcode font is replaced with another normal font (arial i think)! I don't kn

  • Table of contents in Pages

    I am writing my master thesis right now and the structure is as follows: two cover pages, acknowledgments, abstracts and then i would like to put a table of contents. previous pages are done with the appropriate style (heading 1) but when i insert th

  • Inquiry quantity comparison with last week same day

    hi, i have a report to generate in BW, which needs to compare today's inquiry quantity with last week's same day quantity. for example. week2 monday comparison with week1 monday comparison. how to achieve in BEx to generate this report? regards venus

  • Can my secondary email address be used to receive invitations to share a calendar?

    I currently have an @me.com email address for my ID. I never use this address, but have another address that is widely known. Some colleagues want to share calendars via private sharing. They sent the invitation to my usual address, so I cannot conne