How To Create A Oracle User

I like show a other way to create a user in Oracle database, usually people use the next sentence to create a new user;

CREATE USER XXX IDENTIFIED BY YYY;

It is okay and it is accord to ISO 9075/ANSI SQL but other way in Oracle is with GRANT statement. I post below a pair of examples;

 
REMARK -- This create a single user ---
GRANT CONNECT  TO USER1 IDENTIFIED BY USER1;

REMARK -- This create multiple users ---
GRANT CONNECT TO USER1,USER2,USER3 IDENTIFIED BY USER1,USER2, USER3;

For mor information, please, refer the next link (from Oracle Documentation);

Oracle Documentation (12.1c)

HTH – Antonio NAVARRO

 

Advertisements

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