Oracle Export, Import using sqlplus

I will write here about oracle export,import using sqlplus. I assumed that you have basic idea about oracle, sql.

There may situation like follows:-
  • You want to copy some tables from one schema to another schema
  • You want to copy a schema into another database
  • You want to copy table rows from one schema to another schema
You can do this using oracle export, import facilities. These two facilities are really powerful to smooth data transfer. Usually I do this using sqlplus command facilities.

ExportProcess :
At first you need to create dump file. Enter command prompt then type exp in the prompt. It will ask for userid and password of the schema. Suppose your schema is ab and listener name is biis and password is ab. Then type mak@iis and then password makiis.


Then choose the dump file location. You may choose default directory by just entering file name or choose any other location say c:\\ab.dmp. The dump file will be stored in C drive. There are some dump options that is
  1. dump full database
  2. dump a user
  3. dump tables
Here we dump all object(tables,grants,constraints,function,procedures,view,materialized view etc) under user ab. sqlplus will ask for U for user, T for tables and E for entire database. Then enter other options such as export grants, export table data, compress extend etc. After entering all the options export will start and if you see a message at the end stating that "Export terminated successfully without warnings" then dump is 100% successful.

Import Process:
Now you import all objects of ab to another user say xyz. For this purpose
  1. First create the user xyz.
  2. Then enter in cammand prompt and type imp.
  3. Then type username and password of the user on which you want to import objects.
  4. Then type location of dump file (c:\\ab.dump)
  5. Enter dump options
All objects from ab to xyz will be imported successfully.


I accepted the default dump options for import and export.

For any queries plz contact me at khaer_mohammad@yahoo.com

Comments

obaidul said…
Thank you for your post. It was useful for me. Can you post something on RMAN backup?
Khaer said…
Welcome. OK I will try to write asap.
Unknown said…
exp is not recognizable as an internal command , i have already installed oracle 8
Anonymous said…
thank u for given information,its really helpful to me
sravs said…
mayshi i am not able to import my schema into oracle database,can u tell me in detail!
Anonymous said…
Hi Mohammad. Is there any connection to SQL*Plus. All mentioned and displayed is provided within Windows command window. Just wonder while your title says "...using SQLPlus."
Thanks
Unknown said…
đồng tâm
game mu
cho thuê nhà trọ
cho thuê phòng trọ
nhac san cuc manh
số điện thoại tư vấn pháp luật miễn phí
văn phòng luật
tổng đài tư vấn pháp luật
dịch vụ thành lập công ty trọn gói

Người khác lâm vào một loại cảnh giới tinh thần đặc đị, nhiều nhất không quá nửa ngày liền có thể siêu thoát đi ra. Nhưng Sở Dương lại giữ lại trong loại cảnh giới kỳ diệu này, lâu suốt một tháng!

Đợi thời điểm Sở Dương lại từ đáy nước đi ra mới phát hiện, hồ Hà Hoa này đã thay đổi.

Trên mặt hồ, đã có lá cây tràn đầy, bên bờ, từ lâu cỏ hoa tươi nở, Du khách bên bờ, nối liền không dứt trên hồ vạch mạn thuyên, xuyên qua, xuyên lại, hoặc có tiếng đàn du dương, hoặc cô tiếng sáo thanh nhã, hoặc có mùi son bay theo cùng gió...

Đã là tháng tư mùa xuân!

Khoảng cách hoa sen tam tuyệt tháng sáu sẽ chỉ có nửa tháng nữa.

Thần thức của Sở Dương vừa động, rõ ràng cảm thấy trong đan điền mũi kiếm cùng kiếm phong của Cửu kiếp kiếm nhảy mạnh lên một cái! Lập tức ngay tại ở chỗ sâu trong hồ Hà Hoa này, một luồng kiếm ý tựa như là xa lâu ngày gặp lại ngạc nhiên vui mừng, liền như vậy bỗng nhiên trổi lên rõ ràng, ổn định.

Con mắt của Sở Dương sáng lên, quả nhiên người xuất hiện rồi.

Trước mắt mặc dù có cảm ứng nhưng còn không phải thời khắc đến thu hồi!

Sở Dương có thể cảm giác được tu vi của mình, còn chưa đến, cho nên hắn chỉ có lập tức xoay người rời xa cái địa vực kia làm cho bản thân chịu đủ dụ hoặc vô cùng! Sau khi đột phá, ta lập tức đến, chờ!
Anonymous said…
Nice work, it's helping me a lot Thank you.
Anonymous said…
Thank you for the post. Thumps up.

Popular posts from this blog

Custom Request Processor in Struts

Preventing Duplicate Form Submission in Struts using TOKEN