Oracle Database Link קישור מסד נתונים אורקל
In distributed Oracle environments, database links can be used to define a communications path between two databases. בשנת מבוזרות בסביבות אורקל, קישורים באתר ניתן להשתמש כדי להגדיר את נתיב התקשורת בין שני מסדי נתונים. 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. קישור מסד נתונים מגדיר החיבור לרשת, לחלופין, שם משתמש וסיסמה, להשתמש כאשר כניסות Oracle ו קובע פגישה מסד נתונים באתר מרוחק מטעם לבקשת יישום מקומי.
Database link enable SQL statements to be isolated from the underlying physical network topology. קישור מסד נתונים כדי להפעיל משפטי SQL להיות מבודדת את טופולוגיית הרשת הפיזי הבסיסי. 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. לכן, בכל פעם את המיקום של שינויים באתר מרוחק, רק את הקישור צריך להיות מעודכן, ולא כל שאילתות SQL, באופן משמעותי את הפעילויות של מתכנת.
Oracle database link is defined in a specific database, and may be used only by users of that database. קישור מסד הנתונים של Oracle מוגדר באתר מסוים, וניתן להשתמש רק על ידי משתמשים באתר זה. 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. אם אותו שם הקישור באתר היה לשמש מכל מסדי נתונים ברשת, את הקישורים חייב להיות מוגדר בצורה זהה עם השם הזה בכל אחד בכל מסדי נתונים. For this scenario, the easier way is to be global database link. עבור תרחיש זה, הדרך קלה יותר היא להיות קישור באתר העולמי.
Database Link Creation יצירת מסד קישור
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: התחברות למסד הנתונים אורקל (עם SQL * Plus, למשל) בתור משתמש בעל הרשאת ליצור קישור באתר ולבצע את הפקודה הבאה:
CREATE DATABASE LINK link_name CREATE DATABASE LINK link_name
CONNECT TO user_name IDENTIFIED BY password התחבר אל user_name חדש ע"י מזוהה
USING 'connection_string'; Using '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. איפה connection_string היא הכניסה tnsnames.ora (בדרך כלל ממוקם $ ORACLE_HOME / רשת / admin), המאפשר אורקל לדעת את נתיב הרשת למסד נתונים מרוחק.
connection_string has the following structure: connection_string יש את המבנה הבא:
(DESCRIPTION = (DESCRIPTION =
(ADDRESS = (כתובת =
(PROTOCOL = TCP) (Host = host_name/ip_address) (Port = 1521) (Protocol = TCP) (Host = host_name / ip_address) (Port = 1521)
) )
(CONNECT_DATA = (= CONNECT_DATA
(SERVER = DEDICATED) (SERVER = DEDICATED)
(SERVICE_NAME = database_name) (= Service_name database_name)
) )
) )
Database Link Deletion מחיקת מסד קישור
To delete a database link: כדי למחוק קישור באתר:
DROP DATBASE LINK link_name; DROP DATBASE LINK link_name;
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- View and Retrieve Oracle Database Link Details הצג ולאחזר קישור מסד הנתונים Oracle פרטים
- Change Oracle Database User Password שינוי Oracle Database משתמש סיסמא
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error צור, הוספה או פיצול Oracle Database החלוקה נכשל עם שגיאה ORA-14080
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile איך זרוק Tablespace ולשחזר Oracle Database כאשר בטעות מחק Datafile
- Oracle EXP-00091 Error When Export Database אורקל EXP-00091 שגיאה בעת ייצוא מסד נתונים
- How to Remove and Drop Datafiles from Tablespace in Oracle Database כיצד להסיר ושחרר Datafiles מ Tablespace ב Oracle Database
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 תווים חובה הגדר המרות שגיאה לא נתמכות כאשר ייבוא כדי Oracle Database
- Check Oracle Version בדוק אורקל גירסה
- Oracle JDeveloper Reviews Oracle JDeveloper סקירות










































June 6th, 2008 05:19 6 יוני 2008 05:19
Need help : זקוק לעזרה:
I want to access my SQL server 2005 database from Oracle 10G, but I have a problem. אני רוצה את הגישה שלי שרת SQL 2005 מסד נתונים Oracle 10g, אבל יש לי בעיה. Could you guide me how to do it? אתה יכול להדריך אותי איך לעשות את זה?
Thank you תודה