6
4

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.

CDBに共通ユーザを作るときの注意事項

Last updated at Posted at 2018-03-14

使用環境はOracle12c。

CDBに共通ユーザを作成するときは、
ユーザ名の頭に「C##」を入れる必要があるので注意、という話です。

ユーザの作成方法は下記。
sqlplusでログインし、CREATE USER文を実行します。

[oracle@sample ~]$ sqlplus / as sysdba
SQL> create user c##test00 identified by welcome1;

ユーザーが作成されました。


※「C##」を入れないと、下のようなエラーが出ます。

ORA-65096: 共通ユーザーまたはロール名が無効です

作成したユーザを確認するときは、dba_usersからselectします。

SQL> select username from dba_users order by 1;

USERNAME
----------------------------------------

C##TEST00

6
4
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
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?