Create the database link

Hi guys!

I'm having problems creating a data link...
I enter something like < IP >: < PORT > / < SID > in the SERVICE NAME field and the Assistant returns me error message.
This structure for THE SERVICE NAME is correct?

Thank you.

Hello

I think the nomenclature might be a little better. During create/edit the entry box is marked but the Service name in outdoor, HOMEtab, and in fact both are misleading.

Looks like you want to use the format EZConnect [host: port / service name].
http://www.orafaq.com/wiki/EZCONNECT

Service_name is generally SID.domain, but you can get away with only SID since many products add the local domain name. It can work if you leave off of the area, but local and remote domain names are the same.

It's really much easier to use a TNS alias if you have a local listener running with the appropriate entry in the tnsnames.ora file. Thus, for example, in my environment my sqlnet.ora file contains this line:

NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

My remote database THAT SID is ora1122 on, say, xyz1234567 to the remote computer and I have a TNS alias entry of the xyz1122 in my local tnsnames.ora file. Given these parameters, I am able to create the database to help link

xyz1122

or

xyz1234567:1521/ora1122.us.Oracle.com

Thus the first case depends on all: the local listener running, the tnsnames.ora and sqlnet.ora parameters. The second case only on rethinking the host, port, and service. And, in my environment, I actually couldn't give up the domain name. us.Oracle.com.

I hope that this more detailed example is aid,
Gary

Tags: Database

Similar Questions

  • How to create the database link between the production and the test server

    You will need to create a link between Test and prod DB access. We need only select access from user@prod to user1@test.

    Could someone please answer for example?




    Thank you
    sRII

    You will need to create a link between Test and prod DB access. We need only select access from user@prod to user1@test.

    Could someone please answer for example?

    If test for prod

    create public database link to_prod connect to the user identified by password using 'to_prod ';

    Check that to_prod is directed to your production database.

  • How to create the database links

    Hello

    We have two databases on two servers differenet and we want both of the databases to be synchronized and application runs only on a single server.

    It is possible through links DB if yes then how.

    If a better solution than DB links is pl tell.

    Hello

    Edit the tnsmaes.ora file and add the entry to the database and verify the connection using tnsping .if connection is ok and then create a database link in oracle

    CREATE DATABASE LINK link_name - name of the link
    CONNECT username - user name
    IDENTIFIED BY password - password of the user
    With the HELP of "Database_sid" - name of the database

    Created database link

    Select * from owner.table_name @ link_name

  • strange problem with the database link

    Hello world

    I have a strange problem with the link of database in Oracle 11 g Express Edition;
    There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.

    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = XE)
    )
    )

    I created the database link:

    Create database link zdalny
    Connect to < user_id > identified by < password >
    using "CT".

    Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.

    Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?

    Thanks in advance and apologize me for my English.

    Rgds
    Krzysztof

    Here's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
    However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
    To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
    In your case

    c:\tnsping CT
    

    Krzysztof Szymaniak wrote: CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
    Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
    Always in the opposite case, refer to the documentation.

    See you soon.

    Published by: Spongebob December 14, 2011 09:30

  • create the database with Oracle Client link

    Hello together,

    on my machine Windows 7 with Oracle Client installed 12.0.1.0, I'm trying to create a database link to a database server, which runs on Oracle Standard Edition1 11.2.0.2.

    When I connect to sqlplus on the client with "sqlplus/nolog" and type the command:

    SQL > create SID of the database link

    connect to the user identified by passwd

    using "tnsnames.ora connection."

    I have a SP2-0640: not connected. OK, it is clear, because I use sqlplus with option/nolog. But client-side normally I have no database, where I can connect. So I think, there is no user, or?

    The database to which I want to connect is located in tnsnames.ora.

    Generally: Is it possible to use the Oracle Client to create a database link? Maybe there's another way to do this?

    A big thank you and best regards,

    David

    You don't seem to understand the concept of a database link.

    A database link connects two databases. Not a client and a database.

    You need to link up in a data source to a target database.

    The only thing you need is a client of sqlplus in sqlplus client, you need to connect to the source database.

    If you can't connect to the source database, you must present the statement to someone.

    Sybrand Bakker

    Senior Oracle DBA

  • creating user using the database link

    Hello

    I have 11g installed on one of the server
    I created the database BUGAU to bugau.us.oracle.com link
    link works fine

    "Select * from table@"Bugau "gives the expected result

    I ran the Sub statement to my server using the dblink.but do not know how to use the dblink to that effect. Please sat down

    CREATE USER ABC IDENTIFIED BY welcome TEMPORARY by DEFAULT TABLESPACE USERS_001 temp123 TABLESPACE;

    GRANT DEFAULT TO abc;

    ALTER USER abc PROFILE LEVEL_1;

    Thank you
    Archana

    Bravid wrote:

    You cannot create a user on a remote database using a database link.

    You can, but it is not a good design:

    SQL> exec dbms_utility.exec_ddl_statement@orcl('CREATE USER ABC IDENTIFIED BY ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.exec_ddl_statement@orcl('GRANT CREATE SESSION TO ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> connect abc@orcl/ABC
    Connected.
    SQL> 
    

    Of course, the user in the database unite ORCL must have EXECUTE on DBMS_UTILITY privilege.

    SY.

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • Using the database link in the applications

    Hello
    I just configured and created a PUBLIC database link on my oracle 10g. Can I use it with success of sqlplus do some like select simple:

    "SQL > select * from table"@dblink ".

    The query returns the result as expected.

    Now, I would like to use this public link in my applications, but the problem is that the link seems to be only available in the SYS schema.

    Ho can I access to a schema?

    In other words, to do some select (and insert) of my applications APEX by using the link to the db. If I try to select said, all I get is

    ORA-02019: description of the connection to the remote database not found

    OK, thanks all for the help, I found the problem.
    It seems that I created the link of database public and not public.

    I gave both of them and re - create public database link and now it works.

    Thanks for the help.

  • Using the database link to connect to two databases

    Hi guys,.
    Here's my question. I need to give to a Select rights contractor on the tables located in two schemas located on two different servers. A dev server and a prod. Let's say we have a user schema: EMPLOYEE on the dev and user schema: DEPARTMENT on prod. The outside contractor needs certain rights on all the tables in the schema DEPARTMENT but just select on a few (4 to be exact) tables from a diagram of the EMPLOYEE.

    My first train of thougth is: CREATE a named user: TEST (of course, only used for an example of random name) for contractor on prod. Give some rights to TEST user on all the tables in the schema of DEPARTMENT.
    Create the link of database to the dev server so user TEST can access the EMPLOYEE schema.

    How can I go to limit the user TEST link database to display only 4 tables to EMPLOYEE instead of all the tables?

    Should I also do this scenario backwards? Creating user TEST on dev, giving rights TEST for 4 tables in the FRAMEWORK, and then creating the database for you link connect to schema Department on production database?

    Any help will be appreciated. Thanks in advance.

    Just set up a new DEV scheme to be used by the link of database connection string.

    -create synonyms in this schema@DEV for these four tables.
    -grant select access on these four tables to this schema@DEV.

  • a doubt on the database link

    Hi all

    I use 10.2.0.1.0 oracle.

    I had 2 databases named ( ora1, ora2 ).
    in fact, I have to connect to ora1 and to use tables, procedures exist in ora2.

    So, I've created database ora2 as database link:

    CREATE DATABASE LINK ora2_test
    CONNECT to ora1_user
    IDENTIFIED BY ora1_password
    Using of "ora1";

    Here is ora2_test name of the database link.

    Am I wrong?

    I am connected to ora1 as
    connect ora1_user/ora1_password@ora1;
    Select * from redg@ora2_test;

    but I get the error message.

    Any help please.
    Thank you

    Please post the answer as correct/useful.

    Asif kabir

  • try to reduce the database links

    Hello. Thank you for helping.


    I think my basic question is this:


    I can connect and create database links that can be used by all other users (and tablespaces?) on the server?


    I have a bad understanding of how the areas of storage, dblinks and users go together, so I'll briefly describe my setup process so you can see how I have things that can be part of the cause of my confusion, possibly in a subtle way.


    For this example, I have 2 servers with Oracle 11 g Enterprise.


    After you create a database, I then create tablespaces, users and links like this:


    On server 1:


    create storage my_app1
    create the user my_app1
    create storage my_app2
    create the user my_app2


    and so on for all areas of storage and users on the server.


    Then log in as my_app1 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Then log in as my_app2 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Same process on server2:


    create storage my_app3
    create the user my_app3
    create storage my_app4
    create the user my_app4


    and so on to server2.


    Then log in as my_app3 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    Then log in as my_app4 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    It operates well for me, except that I have to create four dblinks.


    Is everything I see how this can be simplified to create dblinks less?


    Any suggestions are greatly appreciated.

    Hello..

    Why not create a public database link.

    Documents: -.

    Specify the PUBLIC to create a public database link available to all users. If you omit this clause, the database link is private and is only available to you.
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#sthref6315]

    Anand

  • error "invalid character" using the database link

    Hello!

    I use db 9.2 and trying to connect to a 10g database.
    I created the db link... when I use it (select * from table@dblink), an error occurred: ORA-00911 invalid character. It does not accept the '@'!

    I tried to use it on sql * plus, worked well...

    Any ideas?
    Thank you!

    Can you try to set America/America in preferences - Database - NLS?

    Hope that helps,
    K.

  • create the database in the mobile without SD card

    Hi, I want to create the database in a mobile blackberry without SD card. I mean in local memory. Is this possible? If it is possible how can I change the URI? Thank you URI.create ("file:///SDCard/databases/database.sqlite")

    file:///store/home/user/databases/database.SQLite

  • Oracle cloud virtual image, I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud... But could please at least use us dbconsole?

    On oracle cloud virtual, image I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud. But could please at least use us dbconsole?


    I tried to start dbconsole, and it did not work:

    [oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.


    According to the oracle help doc center - "creating a database on an instance of virtual image service" (http://docs.oracle.com/cloud/latest/dbcs_dbaas/CSDBI/GUID-29290A81-8798-4988-848E-77A1BE0CF08A.htm#GUID-4851560B-D4B6-42...)

    database was created with the option as:

    emConfiguration - NONE - storageType FS


    I guess we have to manually configure the em console, but when I tried to create it, he told me that "' Dbcontrol repository already exists." "

    When I try to start it, it exports the error

    [Oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.

    Could someone could give me help with this problem?


    Thanks Brian. I tried your command, and it works. Now I've encountered another problem, how can I browse the URL?

    I created the access rule for access remote on port 1521 and 1158. but when I try to browse the EM console URL, it does not work. all the configurations that I need to do?

  • DBCA cannot create the database in 12 c in Windows

    Hello

    After the installation of Oracle 12 c on R2 Windows Server 2012 and successfully running the netca command to configure the listener, I run with the DBCA tool question

    It throws an error message of "Recovery Manager could not restore the data files"

    I looked at the log files, here is some information:

    Corrupt block 1 found during the backup piece, reading file=C:\ORACLE\PRODUCT\12.1\DBHOME_1\ASSISTANTS\DBCA\TEMPLATES\SEED_DATABASE. DFB, corr_type = 4

    Review of blocknum = 1, file=C:\ORACLE\PRODUCT\12.1\DBHOME_1\ASSISTANTS\DBCA\TEMPLATES\SEED_DATABASE. DFB, found the same corrupted data

    Not sure if this helps, but I am attaching several log files to help debug the problem.

    I read the post DBCA cannot create the database in 12 c, but it doesn't quite have an answer.

    Any help is appreciated.

    Thank you

    Pranav

    Looks like a bad installation or a bad block on your disk. Have you tried creative using the "Custom Database" model in the wizard dbca (one that does not come with the data files)? It will take more time to create, but shouldn't read the dbca reported as corrupted file

Maybe you are looking for

  • SMART hard disk error after replacing HD

    Hello! I SO hope that this someboidy is able to help me. I'm NOT a novice but I am confused. I replaced with the same model HD HD CQ58 provided with COMPAQ because the old HD was shot - how it happened escapes me. Anyhoo, after screwing a new HD I wa

  • OfficeJet 8500 a909g Wireless will print yet all the lights show that everything is OK.

    HP Officejet Pro 8500 A909g wireless.  Windows 7. None of the buttons on the printer works.  I unplug the printer and plug it in again.  After the printer through its controls, I can print.  Leave it for a few minutes and try printing again and every

  • Sansa Clip + 8 GB not recognized, windows 7

    Hello My new Sansa Clip + 8 GB is not recognized on my computer laptop windows 7. the message "Windows has stopped this device because it has reported problems. (Code 43) "is displayed when I click on the notification that appears any suggestions?

  • Audio Device ADS Instant HDTV PCI cannot start (Code 10)

    I have a Toshiba computer installed with Windows Vista Home Basic and it worked well until 2 months ago. It was cracked sound coming out of my speakers and so I went before the restart. Yet, when I restarted, I saw a red cross next to the sound icon

  • WAP2 instead of wap

    hp 6600 printer use only (standard wap) and my router to aid (wap2) no connection possible: how to change the settings of the printer to remove wap and replace it with the standard wap2? use the computer window 7 Thanks for help