首頁 > 資料庫 > mysql教程 > 如何创建Oracle新用户(新schema)

如何创建Oracle新用户(新schema)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 17:14:21
原創
1544 人瀏覽過

Oracle中创建新的user, 也就相应地创建了一个新的schema, 用来区别其他目录的同时, 还保存所有相关user的数据对象以及user的表.

Oracle中创建新的user, 也就相应地创建了一个新的schema, 用来区别其他目录的同时, 还保存所有相关user的数据对象以及user的表.

How to create a new user? (create a new db)

首先用system(默认密码为manager)用户登陆连接数据库.

The statement create user creates a user.
In the most simple form, the create user statement is one of the following three:

The first one creates a local user, the second one creates an external user while the last one creates global user.

How to create locked users?

A user can be created locked, that is, the user cannot connect to the database.

SQL> create user alfredo identified by passw0rd account lock;

The user is now created, he can be granted some rights, for example the right to connect to the database:

Now, if the user tries to connect to the database, he will get ORA-28000:

The user can now be unlocked with an alter user statement:

Which allows Alfredo to log on to the database now:

  • Connected.  
  • linux

    來源:php.cn
    本網站聲明
    本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
    最新問題
    tp5運行oracle儲存程序報錯errpr:24374
    來自於 1970-01-01 08:00:00
    0
    0
    0
    java - springboot新手學習
    來自於 1970-01-01 08:00:00
    0
    0
    0
    spring - JavaWeb中 Service 層的事務問題
    來自於 1970-01-01 08:00:00
    0
    0
    0
    java - C語言演算法題-韓信點兵 解法?
    來自於 1970-01-01 08:00:00
    0
    0
    0
    熱門教學
    更多>
    最新下載
    更多>
    網站特效
    網站源碼
    網站素材
    前端模板