Oracle 11g:为什么“grant create session”不允许用户login?

我正在使用Oracle 11g数据库,只需创build一个用户并使用它login即可。 我成功地创build了用户,但是在运行下面的第二行之后,我仍然无法login。是否有我丢失的东西?

create user "oskar" identified by "oskar_pass"; grant create session to "oskar"; select * from DBA_USERS; --oskar is there, but can't log in 

(我厌倦了“连接”,无济于事。)

这对我有用(10.2.0.3)

 SQL> connect dbauser/dbauser Connected. SQL> CREATE USER johndoe IDENTIFIED BY johndoe 2 DEFAULT TABLESPACE "USERS" 3 TEMPORARY TABLESPACE "TEMP"; User created. SQL> GRANT CREATE SESSION TO johndoe; Grant succeeded. SQL> connect johndoe/johndoe Connected. 

如果你使用双引号来创build用户并给出密码,那么情况就变得很重要。 我在这里没有11g数据库,但10g允许我以小写forms创build用户,然后使用双引号将其卡入以下位置:

 sqlplus /nolog SQL> connect "test"@db Enter password: Connected.