How do i create a user without password in oracle

2019-07-17 06:25发布

问题:

I am trying to create a user without any password by using queries-

create user abc;
create user 'abc'@'localhost';

but neither of them works. It is given on oracle docs that it is valid to create user with no password by including no IDENTIFIED BY clause.

Please help me with this query.

回答1:

Either use:

  • Oracle wallet. User is identified via password, but the password is not prompted manually.
  • External authentication. CREATE USER XY IDENTIFIED EXTERNALLY; The user XY must then have OS account on the DB server.


回答2:

you can create user without password by using externally keyword OS authentication of that user is used as password,user should have access permission on database .



标签: sql oracle10g