当oracle密码含有特殊字符时,在创建的时候,必须要用双引号把密码包起来才能创建成功
例子:
SQL> create user wj identified by oracle@123;
create user wj identified by oracle@123
*
ERROR at line 1:
ORA-00922: missing or invalid option
必须把密码包起来:
SQL> create user wj identified by "oracle@123";
User created.
SQL>
SQL> grant connect,resource to wj;
Grant succeeded.
SQL*Plus: Release 11.2.0.4.0 Production on Fri Dec 8 16:48:44 2023
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options