Oracle Database Link Oracle Database Nuoroda
In distributed Oracle environments, database links can be used to define a communications path between two databases. Pasklidųjų Oracle aplinkoje, duomenų bazės ryšiai gali būti naudojami siekiant nustatyti ryšių kelias tarp dviejų duomenų bazių. A database link defines a network connection, and, optionally, a username and password, to use when Oracle accesses and establishes a database session in the remote database on behalf of the local application request. Duomenų ryšys apibrėžia tinklo ryšį, ir, pasirinktinai, vartotojo vardą ir slaptažodį, kad naudojant "Oracle", kai atidaro ir nustato duomenų bazės sesijos nuotolinio duomenų bazės vardu vietinio taikymo straipsniuose.
Database link enable SQL statements to be isolated from the underlying physical network topology. Duomenų bazė leidžia susieti SQL būti izoliuotos nuo pagrindinės fizinės tinklų topologijos. Thus, whenever the location of a remote database changes, only the link need be updated, and not each and every SQL queries, significantly the tasks of programmer. Taigi, kai dėl nuotolinio duomenų pokyčius vieta, tik nuorodą reikia atnaujinti, o ne kiekvieną SQL užklausų, žymiai programuotojas užduotis.
Oracle database link is defined in a specific database, and may be used only by users of that database. Oracle duomenų bazės ryšys yra apibrėžtas konkrečių duomenų bazę, ir gali būti naudojami tik vartotojams iš duomenų bazės. If the same database link name was to be used from all databases in the network, the links must be defined identically with that name in each of each databases. Jei vienoje duomenų bazės ryšį vardas turėjo būti naudojamas iš visų tinklų, duomenų bazių, nuorodos, turi būti apibrėžtos vienodos ir kad kiekvienas kiekvienos duomenų bazės pavadinimą. For this scenario, the easier way is to be global database link. Šis scenarijus, paprastesnis būdas yra pasauline duomenų ryšį.
Database Link Creation Duomenų bazės ryšio sukūrimas
Login into Oracle database (with SQL*Plus, for example) as a user who has the privilege to create a database link and execute the following command: Prisijunkite prie "Oracle" duomenų bazių (SQL * Plus ", pavyzdžiui), kaip vartotojo, kuris turi privilegiją kurti duomenų bazę nuorodą ir įvykdykite šią komandą:
CREATE DATABASE LINK link_name CREATE DATABASE LINK link_name
CONNECT TO user_name IDENTIFIED BY password Ry user_name atpažįstamas slaptažodį
USING 'connection_string'; Naudojant "connection_string";
where connection_string is an entry is tnsnames.ora (usually located in $ORACLE_HOME/network/admin), which enables the Oracle to know the network path to remote database. kur connection_string yra įrašas tnsnames.ora (paprastai esančių $ ORACLE_HOME / network / admin), kurie leidžia Oracle žinoti kelią tinklo nuotolinio duomenų bazės.
connection_string has the following structure: connection_string turi tokią struktūrą:
(DESCRIPTION = (Description =
(ADDRESS = (Address =
(PROTOCOL = TCP) (Host = host_name/ip_address) (Port = 1521) (Protocol = TCP) (host = host_name / adres_ip) (Port = 1521)
) )
(CONNECT_DATA = (CONNECT_DATA =
(SERVER = DEDICATED) (Server = dedicated)
(SERVICE_NAME = database_name) (SERVICE_NAME = database_name)
) )
) )
Database Link Deletion Database Nuoroda Naujausi
To delete a database link: Norėdami ištrinti duomenų bazę, nuoroda:
DROP DATBASE LINK link_name; DROP DATBASE LINK link_name;
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- View and Retrieve Oracle Database Link Details Peržiūrėti ir atsiimti Oracle Link Details
- Change Oracle Database User Password Keisti Oracle Vartotojas Slaptažodis
- Oracle Database Import Error 3113/3114 Oracle Database Importo Klaida 3113/3114
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Kurti, Pridėti arba neskaldytos Oracle Pasiskirstymo fails su klaida ORA-14080
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kaip Drop Tablespace ir susigrąžinti Oracle "duomenų bazę, kai netyčia ištrynėte Datafile
- Oracle EXP-00091 Error When Export Database Oracle Tinka-00091 Klaida Eksporto duomenų bazė
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kaip pašalinti ir Drop Datafiles iš Tablespace Oracle duomenų bazė
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Privalomas Character Set konversijos Not Supported klaidą Importas į duomenų bazę Oracle
- Check Oracle Version Patikrinkite Oracle versija
- Oracle JDeveloper Reviews Oracle JDeveloper Atsiliepimai










































June 6th, 2008 05:19 6 birželis 2008 05:19
Need help : Need help:
I want to access my SQL server 2005 database from Oracle 10G, but I have a problem. Noriu gauti My SQL Server 2005 duomenų bazę Oracle 10g, bet turiu problema. Could you guide me how to do it? Ar galite man gidas kaip tai padaryti?
Thank you Ačiū