0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CREATE USER 文を省略して GRANT 文のみでユーザを作成する

Last updated at Posted at 2018-03-28

わざわざ CREATE USER を実行しなくても、GRANT 文のみでユーザ作成+ロール付与が可能。

SQL> grant dba to TEST identified by oracle;

権限付与が成功しました。

SQL> select * from DBA_ROLE_PRIVS where GRANTEE = 'TEST';

GRANTEE    GRANTED_ROLE         ADMIN_OPT DEFAULT_R
---------- -------------------- --------- ---------
TEST     DBA                  NO        YES

検証で取り敢えず DBA ロール付与したユーザを作成したい場合なんかで手間が省ける。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?