2017-01-04 55 views
0

讓說,我有一個密碼名T @家MP甲骨文改變密碼,其中舊密碼包含@ -signs

我想將其更改爲你好

但如果我使用下面的查詢我的用戶,它不會編譯我的舊密碼包含@ -signs

alter user MYUSER identified by Hello replace [email protected] 

我使用的蟾蜍

enter image description here

我改變我的密碼正常字符,因爲,@ -signs也創造了SQL裝載機問題

sqlldr myuser/[email protected]@prodcms control=loading.ctl 
+3

嘗試'更改用戶MYUSER由Hello標識替換「T @ mp」',resp。 'sqlldr myuser /「T @ mp」@prodcms control = loading.ctl' –

+0

它正在工作,感謝您的回覆,請將您的評論作爲答案 –

回答

2

由於@Wernfried Domscheit已經表明,你必須用雙引號作爲舊密碼如下所示。

SQL> alter user sales_hr identified by password replace [email protected]; 
alter user sales_hr identified by password replace [email protected] 
                 * 
ERROR at line 1: 
ORA-00922: missing or invalid option 


SQL> alter user sales_hr identified by password replace "[email protected]"; 

User altered.