Oracle更改密码,其中旧密码包含@ -signs

时间:2017-01-04 06:44:38

标签: database oracle change-password

假设我有一个密码名称 T @ mp

我想将其更改为 Hello

但如果我使用以下查询与我的用户,它将不会编译,因为我的旧密码包含@ -signs

alter user MYUSER identified by Hello replace T@mp

我正在使用TOAD

enter image description here

我正在将密码更改为普通字符,因为@ -signs还在SQL加载程序中创建问题

sqlldr myuser/T@mp@prodcms control=loading.ctl

1 个答案:

答案 0 :(得分:2)

正如@Wernfried Domscheit所示,您必须将旧密码用双引号括起来,如下所示。

SQL> alter user sales_hr identified by password replace p@assword;
alter user sales_hr identified by password replace p@assword
                                                        *
ERROR at line 1:
ORA-00922: missing or invalid option


SQL> alter user sales_hr identified by password replace "p@ssword";

User altered.
相关问题