Create new connection as SYSDBA with Oracle

Create new connection as SYSDBA

 o1

Create and delete user

 

 0203

04

Grant privileges

You grant user privileges either by system or object

  • GRANT system_privileges TO username
  • GRANT system_privileges ON objectname TO username

 

Create database for user as SYSDBA

CREATE TABLE "HIBERNATEUSER "."EVENTS"

 

Import and Export schema

exp userid=system/manager@prod10 file=my_db.dmp log=my_db.log owner=SCOTT

 

imp userid=system/manager file=my_db.dmp log=imp.log fromuser=SCOTT

 

The highlighted part is actually used to declare the instance that being used.

 

Import and Export Database

imp userid=system/manager file=my_db.dmp log=imp.log full=y

 

exp userid=system/manager file=my_db.dmp log=my_db.log full=y

 

Advertisements
This entry was posted in Database. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s