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.
There are two ways to perform Oracle backup and recovery: Recovery Manager and user-managed backup and recovery. Recovery Manager (RMAN) is an Oracle utility that can back up, restore, and recover database files. It is a feature of the Oracle database server and does not require separate installation.
Overview of the RMAN Environment Recovery Manager (RMAN) is an Oracle Database client that performs backup and recovery tasks on your databases and automates administration of your backup strategies. It greatly simplifies backing up, restoring, and recovering database files.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With