الانتقال إلى المحتوى

استيراد وتصدير قاعدة البيانات


ahmad48

Recommended Posts

السلام عليكم
اخواني الاحباء قمت بعمل برنامج للمبيعات واكملته، وقد انشأت جداول القاعدة في داخل مستخدم اسمه mis .

والان اريد ان انقل قاعدة البيانات هذه الى حاسبة اخرى.

كيف ممكن اعمل تصدير لجداول قاعدة بيانات المبيعات، كيف ممكن اصدر جداول هذا المستخدم واستوردها في الجهاز الثاني

رابط هذا التعليق
شارك

hi
it is simple steps to do that
just create the specified tablespace and user you want in the new db
backup the user you want in the old db using export utility
exp username/password@old_db file='backup file path and name' log='log file path and name' statistics=none
then in new db
imp username,/password file='same backup path and name you edit in exp action ' log='log file path and name' ignore=y fromuser=username touser=username


then check grant and public synonyms and invalid objects rebuild it


$ export ORACLE_HOME="path of your old oracle home '
$ export ORACLE_SID=db1
$ cd /ORACLE_HOME/bin
$ exp scott/tiger@db1 file='/exp/scott.dmp' log='/exp/scott.log' statistics=none
$ export ORACLE_SID=db2
$export ORACLE_HOME='new oracle home db'
$cd /$ORACLE_HOME/bin
$imp scott/tiger@db2 file=/exp/scott.dmp log=/exp/scimp.log fromuser=scott touser=scott ignore=y

رابط هذا التعليق
شارك

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

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

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

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