SQL> alter user test1 identified by 123; alter user test1 identified by 123 * ERROR 位于第 1 行: ORA-00988: 缺少或无效口令
SQL> alter user test identified by '11111'; alter user test identified by '11111' * ERROR 位于第 1 行: ORA-00988: 缺少或无效口令你测试过么我这里不行
11可以 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> alter user scott identified by 123456 2 ;用户已更改。SQL> conn scott/123456 已连接。
可是使用pl/sql进去,这个是支持数字的,我估计你用的sqlplus
用数字可以是百分百,不知道lz用的是什么设置。SQL> Create user test identified by "123";用户已创建。SQL> grant connect,resource to test;授权成功。SQL> conn test/123@Ora10g ; 已连接。 SQL> spool off
1.10g支持密码是全数字的;2.无论是更改还是登陆,加个双引号就好了 SQL> alter user zftang identified by "111";用户已更改。SQL> conn zftang/"111"@zftang 已连接。 SQL>
补充一点,SQLPLUS登陆需要双引号,如果使用PLSQL登陆,可以直接输入密码登陆
SQL> connect system/system; 已连接。 SQL> alter user scott identified by tiger;用户已更改。SQL> alter user scott identified by 123456; alter user scott identified by 123456 * 第 1 行出现错误: ORA-00988: 口令缺失或无效确实不支持纯数字的,至于21楼22楼说的 "123456" 这种,系统把"" 也当成了密码字符,因此可以通过。这样的话,你的密码就不是123456 而是"123456"
你连接sys用户进去然后用alter user 用户名 identified by 密码密码处直接填写你的新密码就行了
请问楼上大侠
是不是修改用户密码一定要在sys用户下才能修改?
在一般用户下可不可以修改密码?
alter user test1 identified by 123
*
ERROR 位于第 1 行:
ORA-00988: 缺少或无效口令
alter user test identified by '11111'
*
ERROR 位于第 1 行:
ORA-00988: 缺少或无效口令你测试过么我这里不行
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> alter user scott identified by 123456
2 ;用户已更改。SQL> conn scott/123456
已连接。
已连接。
SQL> spool off
SQL> alter user zftang identified by "111";用户已更改。SQL> conn zftang/"111"@zftang
已连接。
SQL>
补充一点,SQLPLUS登陆需要双引号,如果使用PLSQL登陆,可以直接输入密码登陆
已连接。
SQL> alter user scott identified by tiger;用户已更改。SQL> alter user scott identified by 123456;
alter user scott identified by 123456
*
第 1 行出现错误:
ORA-00988: 口令缺失或无效确实不支持纯数字的,至于21楼22楼说的 "123456" 这种,系统把"" 也当成了密码字符,因此可以通过。这样的话,你的密码就不是123456 而是"123456"