10

I created database in oracle 11g this database name are "test". and then i created new user in test database. i connect to created new user and password and then create table, procedure and triggers in SQL Developer. i will backup this test database and restore in another pc. please help me step by step how to backup and restore.

3
  • Actually a simple google search would have given the answer you required Commented Sep 14, 2012 at 6:48
  • 4
    Actually a simple Google search gives this page as a result, Google does not store the answers to questions, websites like StackOverflow do! Commented Aug 22, 2014 at 9:11
  • Actually a simple google search did only return pretty complicated results, videos and how to do it from Windows, Gnome or KDE. Commented Jun 2, 2015 at 15:08

1 Answer 1

16

To transfer your user(schema) with all related objects(table, triggers and so on) to another computer with Oracle 11g installed on, you can do the following:

On a first computer (where you have your user created) use exp command line utility to unload user's(schema's) data to an OS file(dump file).

exp userid=yourusername/youruserpassword@Connect_Identifier File=OSPath
Example
Exp userid=scott/tiger@ORCL file=c:\scott.dmp

transfer created *.dmp file to another computer with Oracle 11 installed on and use imp command line utility to load *.dmp file into a NEW (it means you have to create a user id it doesn't exist already ) created schema(users)

 imp userid/password@Connect_identifier fromuser=user_name_you_have_data_unloaded_from touser=new_user_name file=Path_to_*.dmp file

As you are using Oracle 11g you can use Data pump Export and Data Pump Import utilities to do the same thing. Exp and Imp are there for backward compatibility but the will work as expected.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.