oracle grant 語句的GRANT privilige TO user IDENTIFIED BY password 語法
在D:oracleproduct10.2.0db_1RDBMSADMINutlsampl.sql下,有如下的語句:
DROP USER SCOTT CASCADE;
DROP USER ADAMS CASCADE;
DROP USER JONES CASCADE;
DROP USER CLARK CASCADE;
DROP USER BLAKE CASCADE;
GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY TIGER;
DROP PUBLIC SYNONYM PARTS;
CONNECT SCOTT/TIGER
CREATE TABLE DEPT
(DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY,
DNAME VARCHAR2(14) ,
LOC VARCHAR2(13) ) ;
這個GRANT privilige TO user IDENTIFIED BY password 語法,其實是會建立user使用者並且設定其密碼為password,請參考oracle官方的sql reference:
IDENTIFIED BY Clause
Use the IDENTIFIED
BY
clause to
specifically identify an existing user by password or to create a
nonexistent user. This clause is not valid if the grantee is a role or PUBLIC
. If the user specified in the grantee_clause
does not exist, then the database creates the user with the password
and with the privileges and roles specified in this clause.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1055512/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle grant 語句的GRANT privilige TO user IDENTIFIED BY password 語法的再次試驗-user已經存在但是賦予不同密碼OracleIDE密碼
- oracle grant 授權語句Oracle
- GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION;報錯IDE
- 使用skip-grant-tables啟動庫後不能執行grant語句
- grant with admin/grant option
- Oracle Grant / REVOKE 正解Oracle
- Mysql8.0不支援grant all privileges on *.* to root@“%“ identified by “.“;MySqlIDE
- Oracle/PLSQL: Grant/Revoke PrivilegesOracleSQL
- Oracle 許可權(grant、revoke)Oracle
- Oracle sql with 語句語法與例子OracleSQL
- Oracle檢視授權(with grant option)Oracle
- Oracle users / 許可權 / grant privOracle
- SQL__GRANTSQL
- mysql grant 命令MySql
- MySQL Grant命令MySql
- ORACLE UPDATE 語句語法與效能分析Oracle
- grant_type為client_credentials和password二者的區別client
- 關於GRANT賦權時,WITH GRANT OPTION和WITH ADMIN OPTION的使用
- grant 操作硬解析
- 關於WITH GRANT OPTION
- ERROR 1410 (42000): You are not allowed to create a user with GRANTError
- oracle update語句的幾點寫法Oracle
- mysqld --skip-grant-tablesMySql
- JS的語句及語法(轉)JS
- oracle語句Oracle
- Elasticsearch查詢語句語法Elasticsearch
- oracle的sql語句OracleSQL
- oracle受權與回收許可權grant和revokeOracle
- Grant Owens:2017年語音互動和 AI 發展的 7 種預測AI
- 常用的DUMP語句ORADEBUG語法
- python基礎語法—語句Python
- orcale 語句基本語法縮寫
- ORACLE常用語句:Oracle
- 常用oracle語句Oracle
- oracle sql語句OracleSQL
- the --skip-grant-tables option so it cannot
- Import all grant statement of users in mysql schema !ImportMySql
- Oracle Hints語句的用法Oracle