الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

اتصال من قاعدة بيانات الى قاعدة بيانات اخرى

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله

 

عندي قاعدة بيانات على سيرفر وعايز اتصل بيها من قاعدة بيانات اخرى ارجوا لو حد من يساعدني فى طريقة الاتصال علما اني دورت على النت مش عايزه تظبط معايا

 

 

بيانات السيرفر

 

DESCRIPTION =
ADDRESS =(PROTOCOL = TCP)
(HOST = ahmed.gacadd.ad)
(PORT = 1521)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = 192.130.20..30/apexxx)
 
User=user
Pw=password

 

 

انا جرب الكود ده

 

SQL >user/[email protected]:1521/192.130.20.30/apex

 

 

وشكرا

بتاريخ:

ايه المقصود انك تتصل بقاعده البيانات الاخري عايز تعمل عليها كونكت ببرنامج sqlplus

connect user/[email protected]:1521/ur_dbname

انما لو عايز تعمل جمل سيلكت من القاعدتين استخدم ال db link

بتاريخ:
  • كاتب الموضوع

جزاك الله خيرا

 

نفذت الكود ولكن ليظهر لي هذا الخطأ

 

ora-12638 : gredential retrieval failed

بتاريخ:

امسح ملف ال sqlnet.ora وجرب تاني

بتاريخ:
  • كاتب الموضوع

جزاك الله خيرا

 

تم الاتصال بنجاح

 

 

طلب اخير احتاج مثال عن  DbLINK  لتفيذ جمل select 

 

وشكرا

بتاريخ:

ادخل علي الداتا بيز الاولي ونفترض انها علي السيرفر الاول واسمها  orcl1والداتا بيز التانيه علي السيرفر رقم2 اسمها orcl2

 

connect scott/tiger@orcl1

 

انشئ dblink عن طريق الامر

create PUBLIC database link test
connect to scott
identified by tiger
using 'orcl2'--comment

اعمل سيكت بعد كدا

select * from emp@test

ممكن تستفيد من الموقع دا شارح بردو الداتا بيز لينك

 

http://www.orafaq.com/wiki/Database_link

 

من knowledge expert toad

CREATE DATABASE LINK - Examples
CURRENT_USER Example
The following statement defines a current-user database link:

CREATE DATABASE LINK sales.hq.acme.com
   CONNECT TO CURRENT_USER
   USING 'sales';
Fixed User Example
The following statement defines a fixed-user database link named SALES.HQ.ACME.COM:

CREATE DATABASE LINK sales.hq.acme.com
   CONNECT TO scott IDENTIFIED BY tiger
   USING 'sales';
Once this database link is created, you can query tables in the schema SCOTT on the remote database in this manner:

SELECT *
   FROM [email protected];
You can also use DML statements to modify data on the remote database:

INSERT INTO [email protected](acc_no, acc_name, balance)
   VALUES (5001, 'BOWER', 2000);
UPDATE [email protected]
   SET balance = balance + 500;
DELETE FROM [email protected]
   WHERE acc_name = 'BOWER';
You can also access tables owned by other users on the same database. This statement assumes SCOTT has access to ADAM's DEPT table:

SELECT *
   FROM [email protected];
The previous statement connects to the user SCOTT on the remote database and then queries ADAM's DEPT table.

A synonym may be created to hide the fact that SCOTT's EMP table is on a remote database. The following statement causes all future references to EMP to access a remote EMP table owned by SCOTT:

CREATE SYNONYM emp
   FOR [email protected];

تم تعديل بواسطة HELL-BOY

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.