Create DBlink.

Hi all

My version of DB: 11g R1

Why the dblink is not created using the command below


SQL > create database public link testdb.xyz.local using 'TEST '.

ERROR on line 1:

ORA-00933: SQL not correctly completed command.

She was successful, if I jump the domain name in the command,

Example: create the database public link test_db using 'TEST'

What is the difference? Why the dblink is not created when using the domain name.

Kindly help.

Kind regards

Krish.

A period is a special character in an identifier as an all lowercase letters of the space.

You must put the name of the link between double quotes.

Sybrand Bakker

Senior Oracle DBA

Tags: Database

Similar Questions

  • create dblink to asm of the RDBMS instance

    Have a metric solution on a database that queries all RDBMS instances for different indicators, applications, and administration and reported to the users/admins via apex.

    You want to use to report the news datagroup ASM but need a dblink to ASM to run the query of the RDBMS instance, is it possible?   I can check it in EM or run a query on the host itself or the same sqlplus via sysasm connection but would like to do if possible a procedure, but would need a link

    You can do that, because a link needs a dictionary of data at the other end to authenticate.

    I did it using Java in the RDBMS instance to connect to the instance of the ASM, and then run any query/DML/DDL. I can't give you the (intellectual property) code, but you could contact my employer (details in my profile) to see if he would release it.

    --

    John Watson

    Oracle Certified Master s/n

  • Create a view of RDF in Oracle 12 c of tables in an Oracle 11 g Server

    Hello!

    I have a relational database in Oracle 11 g server, but I need to create the view of RDF model in Oracle 12 c in the base tables.

    I created a database connection to connect to the server of Oracle 11 g Oracle 12 c, using the statement:

    CREATE DATABASE LINK myDBLink

    CONNECT to user_test

    IDENTIFIED BY test123

    WITH THE HELP OF '(DESCRIPTION=)

    (ADDRESS = (PROTOCOL = TCP)(HOST=192.0.56.158) (PORT = 1521))

    (CONNECT_DATA = (SID = orcl)))';

    The works of the SELECT statement:

    Select * from EMP@myDBLink;

    I also created a SYNONYM:

    CREATE the SYNONYM MY_EMP FOR EMP@myDBLink;

    The SELECT statement with the synonym also works:

    Select * from EMP@MY_EMP;

    Well, to create the view of RDF, I use a sem_apis.create_rdfview_model function. Now, I wrote the statement of the following two ways:

    BEGIN

    () sem_apis.create_rdfview_model

    Model_name = > "test_linked"

    tables = > SYS. ODCIVarchar2List ('MY_EMP', 'MY_DEPT'),

    prefix = > ' http://GrDF/ ',

    Options = > ' COMPLIANCE = you

    );

    END;

    BEGIN

    () sem_apis.create_rdfview_model

    Model_name = > "test_linked"

    tables = > SYS. ODCIVarchar2List('EMP@myDBLink','DEPT@myDBLink'),

    prefix = > ' http://GrDF/ ',

    Options = > ' COMPLIANCE = you

    );

    END;

    And I get the following error:

    ORA-13199: fetchTabIDList: not found in tables:

    ORA-06512: at the 'MDSYS. SDO_RDF_INTERNAL', line 14308

    ORA-06512: at the 'MDSYS. SDO_RDF', line 3616

    ORA-06512: at the 'MDSYS. RDF_APIS', line 1253

    ORA-06512: at line 2


    I use examples of book of the Oracle tables.


    Thank you


    Yenier

    Yenier,

    Could you please try creating a view rather than a synonym? Here is an example:

    SQL >-create dblink

    SQL > create public database link

    2 mylink

    3 connect to

    Scott 4

    5 identified by

    6 Tiger

    using a 7 ':/';

    Database link created.

    SQL >

    SQL >-create view local using queries involving remote database objects

    SQL > create view dblink_scott_EMP in select * from EMP@mylink;

    Created view.

    SQL >

    SQL >-add the primary key (help requests on Direct mapping according to models RDFView to have shorter SubjectMaps)

    SQL > alter view dblink_scott_EMP add constraint pk_EMPNO primary key (EMPNO) disable;

    Altered view.

    SQL >

    SQL > - create model DM - based RDFview

    SQL > exec sem_apis.create_rdfview_model ('dblink_test_rv', sys.odcivarchar2list ('DBLINK_SCOTT_EMP'), "http://dm/");

    PL/SQL procedure successfully completed.

    SQL >

    Thank you

    -Smiled.

  • DBLINK 11g to 8i

    Hi all

    I can create dblink 11g to 8i?
    I want to copy data from 8i to 11 g.

    Thank you

    Yes, but we do not want to use exp/IMP.

    Why?

    If you have 9.2.0.8 or 10 gr 2 database, you ETG via 9iR2 or 10 gr 2 DB.
    E.g. On 10 gr 2 DB,

    SQL> create table tableA@11g as select * from tableA@8i;
    

    Kind regards

  • Confusion of DBLINK

    Hello
    I get an error on the throughput of the Insert in I have no table of $ during execution.
    I connect two database of two different hosts, both are in oracle.
    I have two logical schema established for the two database.
    should I have mentioned these patterns in a physical topology? What should be placed in the schema of schema and work option.
    I used Oracle LKM to Oracle (DBLINK) km.
    Help, please
    Best regards
    Manish

    Hi Manish,

    You access the target DB remote computer, if yes, you need to create DBLink machine target DB and you even specify in the topology manager > Oracle technology > physical Architecture > tab in definition Instance / dblink (Data Server)

    I hope that you are not provided DBLink details Instance / dblink (Data Server) when the target DB in the topology manager configuration

    I think you have error "" * caused by: java.sql.SQLSyntaxErrorException: ORA-01729: expected database link name * "when you use Oracle LKM to Oracle (DBLINK) km"

    Kind regards
    Phanikanth

  • Dblink 11 = > 9 - possible?

    Hello


    I have a 11.2.0.1.0 database where I need to create a link to 9.2.0.5.0 database.

    Is this possible, if so someone can tell me if there is no special syntax, I need to be aware of when I try the SQL code crashes for centuries - without error - but on selection tests * of dual@my_new_link crashes just the link...


    Thank you

    Robert.

    Hello

    Yes, you can create dblinks from 9i to 11g and vice versa...

    It might the problem with response time of connection string, if you know what tns shot it uses so that you can check or extract the DDL and

    Publish

    tnsping

    You can check the compatibility * Client / Server / Support of interoperability between different Versions of Oracle [207303.1 ID] *.

    Thank you

  • DELETE in dblink on 10g

    Hello
    on 10g, we created DBLINKS to some other DBs. inserting into remote tables using DBLINK is fast enough, but deletions are very slow. Any idea? Oracle DBLINK in 10 g bugs?

    Thank you.

    You have more information about the problem?

    -The number of lines you delete?
    -You are referencing local tables, but also remote tables? You are referencing multiple remote tables?
    -Can you quantify "very slow"? For example, deleting a single line takes 1 second? 10 seconds? 10 minutes?
    -What is the query plan?

    There are a number of possible explanations - without more information, however, it is difficult to grasp more straws.

    Justin

  • DBlinks and APEX problem

    Hello.

    I have a problem related to the APEX and DBlinks, I need to connect to the databases of the same application, I created dblinks in order to do so, now in my report, I can access the other databases table by typing something like this:

    SELECT * FROM table@mylink;

    OK, but now the problem, the use of data binding must be dynamic, for this I created a 0 page that contains a component called P0_LINK, this point stores the name of the link, in this case 'mylink '.

    I need to use the value of this element in my query, I think that normally might look like:

    SELECT * FROM table@:P0_LINK;

    but it returns me an ORA-01729: database link name expected.

    I tried selecting the analysis during execution only, but it does not work.

    Please help me.

    Thank you.

    Your report must be of type SQL query that returns a PL/SQL function:

    DECLARE
       v_query   VARCHAR2 (4000);
    BEGIN
       v_query := 'SELECT * FROM table@' || :p0_link;
       RETURN v_query;
    END;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Access to the view of the Oracle Applications via Dblink

    Hi gurus,

    Here's my problem:

    I installed on my local machine to apex and I created dblink to my applications remote oracle DB. Now, if I try to access all the views in the db to oracle applications, iam not getting data from the org context is not set.

    I tried to set the org context using below:

    exec dbms_application_info.set_client_info@appsdblink ('100');

    but still iam not received all data. I hope that there should be a way to do it.

    Thank you
    Sirot

    SK:

    What return the test script?
    You will need to run the context give code as a process before header or have the query of the report be returned by a pl/sql function in which you can set the context.

    CITY

  • Access to an external table via the display in the UCM configuration manager problem

    Hi all

    I know that this question is already asked here: to access the external tables in DB / in UCM Applet configuration manager but the conversation has already been archived, and I can't comment there. I'm following approach given by William Phelps in above said archived thread.

    I am able to create dblink with data remote and created the view by using the linked table in my diagram of the Complutense University of Madrid. The problem that I face is that this point of view such as told by William is not visible in the configuration manager. Although I tried to give (create view and create all views) system diagram University Complutense of MADRID user privileges, but I'm not sure that it will also provide access rights. I am using the SQL Developer and working at the University Complutense of MADRID 11 g.

    All comment or suggestion will be a great help.

    Stéphane yapi

    The value of this configuration variable: EBRIncludeViewsInTableList = 1

    https://jonathanhult.com/blog/2013/11/use-database-view-WebCenter-content-schema-view/

    Jonathan

    http://jonathanhult.com

  • Insert and update records to MySQL from Oracle

    Hello

    Our application will be insert/update new records in the Oracle database, but I need to insert/update new records in the MySQL database. Oracle and MySQL tables have the same columns.

    Right now, we intend to create DBLink between Oracle and MySQL. The question is to know how to write code to insert/update new records to MySQL from Oracle. I'm a new guy in this area.

    Please give us some examples of code, thanks!

    With Oracle, you should be able to just write the same thing as usual, except for the include link database when you reference the table for example your SQL

    insert into tablename@mysqldblink...

    updating of the game tablename@mysqldblink...

    Services gateway through the database link (odbc drivers or anything else that is used) must make the most of the necessary conversions for you.

  • Incorrect SQL % RowCount value

    Hello.

    I created dblink of Oracle 11 g (11.2.0.4.3) for Sybase ASE database (15.5) using gateway of Oracle database for Sybase (11.2.0.4.3) on x 64 OEL (6.5).

    When I make changes to a remote table with triggers and use the variable in the WHERE clause, SQL % RowCount value is miscalculated.
    Found the antidote on the side of Sybase - the use of "set nocount on" within a trigger.
    Is there a solution on the side of Oracle (database or gateway)?

    Detailed description is given below:

    Description table and relaxing 1) (Sybase)
    create table test_TR)
    identity of whole ID,
    oper_id integer not null,
    counter integer not null,
    constraint XPKtest_TR primary key clustered (id))
    go
    insert into test_TR (oper_id, meter) values (1,10)
    insert into test_TR (oper_id, meter) values (2.21)
    insert into test_TR (oper_id, meter) values (2.36)
    go

    create trigger tUtest_TR on test_TR for UPDATE as
    Start
    declare @numrows int
    Select @numrows = @@rowcount
    return
    error:
    RAISERROR 31000 "UPDATE."
    ROLLBACK transaction statement
    end
    go

    (2) description gateway (gateway)
    HS_FDS_CONNECT_INFO=xxx.xxx.xxx.xxx.xxx:XXXX/test
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = *.
    HS_FDS_TRANSACTION_MODEL = COMMIT_CONFIRM
    HS_FDS_TRANSACTION_LOG = HS_TRANSACTION_LOG
    HS_FDS_RESULTSET_SUPPORT = TRUE
    HS_FDS_PROC_IS_FUNC = FALSE

    (3) description Dblink (Oracle)
    CREATE DATABASE LINK PUBLIC 'SYB_TEST' CONNECT TO ' * ' IDENTIFIED by ' * ' using 'SYB_TEST ';

    (4) test query (Oracle)
    declare per_id digital;
    Start
    Update "test_TR"@SYB_TEST "counter" value = "counter" + 1 where 'oper_id' = 0;
    dbms_output.put_line ('0 rows =' |) SQL % number of lines);
    PER_ID: = 0;
    Update "test_TR"@SYB_TEST "counter" value = "counter" + 1 where 'oper_id' = per_id;
    dbms_output.put_line ('0 rows =' |) SQL % number of lines);
    Rollback;
    end;
    /

    0 rows = 0
    0 line = 1

    Thanks in advance for any information!

    filed Bug 19844303 - SQL % ROWCOUN RETURNS a VALUE INCORRECTE

  • Public connected user database link creation

    Hello, DBA

    I tried to create the user database link connected audience.
    I have two databases (orcl, orcltest)

    Orcltest database, I created dblink

    SQL > grant create public database to u1 link;
    Grant succeeded.

    SQL > conn u1
    Enter the password:
    Connected.

    SQL > create sequoia link of public database using "orcl".
    Database link created.


    In orcl, I tried to access

    SQL > select * from u1.tab1@redwood;
    Select * from u1.tab1@redwood
    *
    ERROR on line 1:
    ORA-02019: description of the connection to the remote database not found

    QUESTION: what is the error?
    Note: tns, earphone works very well. No problems.
    Prod: 1 0.2.0.4.0
    OS: rhel 5.1

    Thanks in adnvance...

    Hello

    Orcltest database, I created dblink

    SQL > grant create public database to u1 link;
    Grant succeeded.

    SQL > conn u1
    Enter the password:
    Connected.

    SQL > create sequoia link of public database using "orcl".
    Database link created.

    Here, you create a DBLINK on the ORCLTEST to the ORCL database, sort of source database is ORCLTEST and target is ORCL.

    In orcl, I tried to access

    SQL > select * from u1.tab1@redwood;
    Select * from u1.tab1@redwood
    *
    ERROR on line 1:
    ORA-02019: description of the connection to the remote database not found

    It will not work because you created the dblink on the source database, which is ORCLTEST.

    DBLINKS give you a way to access resources (tables, indexes, packages, etc.) in a remote database.

    What you do is:

    1. create a dblink on ORCLTEST. This dblink will provide access to ORCL via the ORCLTEST.

    2 instead of this, you you connect directly to ORCL. That won't work, your DBLINK is not here, you can create another one here pointing to the ORCLTEST.

    DBLINKS act as a bridge, a connection between two databases. They are only available in the source database to create a link to a database remotely (target).

  • Need sybase client after install oracle gateway?

    Dear all,

    I'm all new to this portal oracle to sybase, I try to create dblink Oracle EBS to sybase.
    Is there a step before or after this step of the installation:

    Universal Oracle install: the available product components

    a. select Oracle to Sybase 11.1.0.6.0 database gateway.

    b. click Next.

    Oracle to Sybase database gateway

    The database server host Sybase name - specify the host name of the machine hosting the database Sybase server.

    Sybase database server Port number - to specify the port number of the Sybase database server

    Database Sybase name - specify the Sybase database name

    Click next to continue.

    Should install us some sybase client or maybe set up some files before and after the installation?

    Help, please

    Concerning

    JOE

    Hey Joe,
    If you have installed the DG4Sybase you don't need to install Sybase software.
    The information requested during the installation are used to created ainit .ora file which is then used by the gateway to connect to the database Syabse.
    You can put in fake information and then manually change when the installation is complete.

    Also, you say you have installed Dg4Syabse 11.1.0.6, but it would be better to install and use the latest 11.2.0.3 version as suggested by Klaus in your other thread.

    The latest version of the software is currently 11.2.0.3 and it can be downloaded (and installed from scratch) of "My Oracle Support". Simply open the patches & updates section, look for Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER and make sure you choose the platform you want to use. Then check out the readme file it lists, which of these download CD contains the gateway software.
    BTW, the CD contains DG4ODBC and DG4SYBS and it is up to you to decide during installation of which product you want to use.

    Kind regards
    Mike

    Published by: mkirtley on October 22, 2012 08:12

  • on heterogeneous Services of Oracle and Oracle Gateway

    Hi all


    I am very new at this, I want to know:
    (1) heterogeneous services of oracle and Oracle Gateway even or not? Need to license or not?
    (2) want to creating link database to Oracle 11 g to Sybase 15.5 heterogeneous Oracle using the SERVICES what drivers should I install to my pc (windows 7) and my server (Linux red hat 5)? Please give me the link for this
    (3) is there a step by step link to configure odbc to create dblink?
    (4) what's more convenient connection of heterogeneous Oracle or Oracle Gateway Services sybase?

    Thank you very much for your help

    Concerning

    JOE

    Joe,
    Let the copy/paste your questions and comments online:

    (1) heterogeneous services of oracle and Oracle Gateway even or not? Need to license or not?
    Let me first clarify one thing, heterogeneous services is the generic mechanism in the database Oracle used by all gateways. The product you are talking about is database for ODBC bridge or the bridge of Sybase database.
    Database for ODBC bridge is available for Linux and Windows. It is the free product that does not require a license of Oracle. The license is included in your license data. It's a generic gateway which allows you to connect with any suitable part 3 ODBC driver to a corresponding foreign database. As this is a generic connectivity what words connect to real data, but also to MS Excel or text files as long as you have an appropriate ODBC, capacity driver is very limited.
    More powerful bridge is the bridge of Sybase database. It covers the same functionality as DG4ODBC but it also allows you to work with distributed transactions, you can call procedures stored remote Sybase etc.. This gateway is design for Sybase ASE connections, so it is also able to map some Oracle Sybase equivalent functions. This gateway for Sybase database is NOT free, it requires an additional license.

    (2) want to creating link database to Oracle 11 g to Sybase 15.5 heterogeneous Oracle using the SERVICES what drivers should I install to my pc (windows 7) and my server (Linux red hat 5)? Please give me the link for this
    It depends on your preferences. Two entry doors are available for Linux and Windows. When you use DG4ODBC, you must only be careful that you get a suitable 3rd party ODBC driver for this platform with the size of the corresponding word (64 bits for 64-bit DG4ODBC and 32-bit ODBC driver for DG4ODBC installations on 32-bit platforms).
    The latest version of the software is currently 11.2.0.3 and it can be downloaded (and installed from scratch) of "My Oracle Support". Simply open the patches & updates section, look for Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER and make sure you choose the platform you want to use. Then check out the readme file it lists, which of these download CD contains the gateway software.
    BTW, the CD contains DG4ODBC and DG4SYBS and it is up to you to decide during installation of which product you want to use.

    (3) is there a step by step link to configure odbc to create dblink?
    Installation of the ODBC driver is different from one provider to another, and from platform to platform - so we didn't not a note specifies how to configure the ODBC driver. This kind of question is best managed by the provider of the ODBC driver.
    Regarding the implementation of DG4ODBC on Windows, you will find the appropriate information in the knowledge base on My Oracle Support. Just look:
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 Document]

    and to DG4SYBS:
    How to set up DG4SYBS (Oracle to Sybase database entry door) on 64-bit Unix (AIX, HP - UX Itanium, Linux and Solaris) Post Install [437696.1 Document]
    How the installer DG4SYBS (bridge of Sybase database) on a 64-bit Windows [Document 1319852.1]

    (4) what's more convenient connection of heterogeneous Oracle or Oracle Gateway Services sybase?
    It really depends on your needs. DG4SYBS is sullen more easy to install because this gateway comes with everything you need and you don't have to find an appropriate ODBC driver or get the working ODBC driver. It is also more powerful as you can for example use triggers that replicate changes to data in an Oracle database on the Sybase database in the same transaction. When you want to call Sybase stored procedures, you can also do this with DG4SYBS. So it really depends on your needs.

    -Klaus

Maybe you are looking for

  • The alarm not

    My alarms are visible but silent despite the fact that the sound is turned on and the volume is turned up.  Does anyone else have this problem, if so, the solutions found? Thank you

  • How can I stop videos of Weather Channel to play automatically?

    An answer to a similar question refers us to the add-on 'stop auto play '. This add-on, however, has been removed. Is there another solution? PS: I use Firefox 18.0 for Windows XP.

  • Satellite P500 is not the start - stop screen Toshiba

    Hey everybody, I spent hours scouring the Internet to see if anyone has had a similar problem and I found nothing. When I turn on my laptop, I hear the fan starts and the screen on the Toshiba load screen startup - and stays there. I tried a drain of

  • Satellite M10 and update BIOS

    Hello trying to make my first laptop BIOS update on my BIOS 1.40 M10. Date of 2003.I downloaded version 1.50 updated windows and where to extract the zip file and it starts to run I get "Toshiba common modules is not installed. But back to the driver

  • When you type in a text field on a Web site, why the cursor jumps behind the already typed text?

    This problem only occurs when text is entered into a form on site (not in the address bar). The cursor jumps randomly a letter to the left, thus making it rather impossible entry. Device: HTC Vision Android 2.2 (= HTC Desire Z in North America)