Backup And Restore Oracle 10 Express
July 20, 2009 at 7:30 am | Posted in Database | Leave a commentBACKUP
Open Command prompt / Cmd then type “exp grips_front/grips123 @dyware-valkiry/xe file=”test.dmp” ”
The Pattern was “exp [username]/[passpowrd] @[your host name]/[your database instance] file=”[ the dmp file that store database backup ]” .
The Details were:
- exp was the command to export the scheme of database.
- grips_front was the user name/owner of the current database scheme that already have administrator privilege.
- grips123 was the password of the current user name.
- file=”test2.dmp” was the target file that will store all data and scheme of the database that belong to the current user.
- @dyware-valkiry/xe, @dyware-valkiry was your computer name and xe was the name of the database instance.

Export Oracle Database scheme
RESTORE
Like to backup the Database, the command was almost same
Open Command prompt / Cmd then type “imp grips_front/grips123 file=”test.dmp” @dyware-valkiry/xe “
The single different of this Restore command was just only it’s command, by calling “imp” file.
sometimes if we would to update current of the database scheme, we should to delete the current user of the current database owner, this is automatically delete the scheme that belong to the that user.
The hierarchy steps were like this:
- Log in as system to the database “sqlplus system/hikari @xe” the pattern was like this “sqlplus [database administrator]/[password of administrator] @[your database instance]“.
- Call the delete user command “drop user grips_front cascade“, you should call cascade after user name, unless the system will request for it.
- Create the same user by “create user grips_front identified by grips123“, by doing this, we were still lack privilege of importing database scheme, so type this command “grant dba to grips_front” after we have created that user, then Exit from sqlplus by type “Ctrl+c” or “Exit” on Command Prompt, then type “imp grips_front/grips123 file=”grips.dmp” full=y, the pattern was equal to export command.

Importing Oracle Database Scheme
Leave a Comment »
RSS feed for comments on this post. TrackBack URI
Leave a Reply
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.