بتاريخ: 28 يونيو 201312 سنة comment_238022 السلام عليكم ورحمة الله عندي قاعدة بيانات على سيرفر وعايز اتصل بيها من قاعدة بيانات اخرى ارجوا لو حد من يساعدني فى طريقة الاتصال علما اني دورت على النت مش عايزه تظبط معايا بيانات السيرفر DESCRIPTION =ADDRESS =(PROTOCOL = TCP)(HOST = ahmed.gacadd.ad)(PORT = 1521)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = 192.130.20..30/apexxx) User=userPw=password انا جرب الكود ده SQL >user/[email protected]:1521/192.130.20.30/apex وشكرا تقديم بلاغ
بتاريخ: 28 يونيو 201312 سنة comment_238031 ايه المقصود انك تتصل بقاعده البيانات الاخري عايز تعمل عليها كونكت ببرنامج sqlplus connect user/[email protected]:1521/ur_dbname انما لو عايز تعمل جمل سيلكت من القاعدتين استخدم ال db link تقديم بلاغ
بتاريخ: 28 يونيو 201312 سنة كاتب الموضوع comment_238034 جزاك الله خيرا نفذت الكود ولكن ليظهر لي هذا الخطأ ora-12638 : gredential retrieval failed تقديم بلاغ
بتاريخ: 29 يونيو 201312 سنة كاتب الموضوع comment_238073 جزاك الله خيرا تم الاتصال بنجاح طلب اخير احتاج مثال عن DbLINK لتفيذ جمل select وشكرا تقديم بلاغ
بتاريخ: 29 يونيو 201312 سنة comment_238075 ادخل علي الداتا بيز الاولي ونفترض انها علي السيرفر الاول واسمها 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]; تم تعديل 29 يونيو 201312 سنة بواسطة HELL-BOY تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.