SQL*Plus: Release19.0.0.0.0- Production on Fri Sep 1312:49:262024 Version 19.19.0.0.0
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Last Successful login time: Wed Sep 11202413:11:52+00:00
Connected to: Oracle Database 23ai Enterprise Edition Release23.0.0.0.0- Production Version 23.6.0.24.07
SQL>select BANNER_FULL from v$version;
BANNER_FULL -------------------------------------------------------------------------------- Oracle Database 23ai Enterprise Edition Release23.0.0.0.0- Production Version 23.6.0.24.07
SQL>
创建两个用户,执行
1
grantcreateanytable ,alteranytable,dropanytableon schema f001 to f002;
1 2 3 4 5 6 7 8 9 10 11 12 13
SQL>createuser f001 identified by "F100234#a300312C";
User created.
SQL>createuser f002 identified by "F100234#a300312C";
User created.
SQL>grantcreateanytable ,alteranytable,dropanytableon schema f001 to f002;
Grant succeeded.
SQL>
是可以执行的。
而上面说的命令缺少 schema 关键字的时候,报错如下:
1 2 3 4 5 6 7 8
SQL>grantcreateanytable ,alteranytable,dropanytableon f001 to f002; grantcreateanytable ,alteranytable,dropanytableon f001 to f002 * ERROR at line 1: ORA-00990: missing or invalid privilege
SQL>createuser f001 identified by "F001234"; createuser f001 identified by "F001234" * ERROR at line 1: ORA-28219: password verification failed for mandatory profile ORA-20000: password length less than 8 characters
SQL>createuser f001 identified by "F100234#a"; createuser f001 identified by "F100234#a" * ERROR at line 1: ORA-28003: The password chosen did not meet the required complexity rules set by your organization. ORA-20000: password length less than 12 characters
SQL>createuser f001 identified by "F100234#a300312C";