creating User & assign Role [message #383337] |
Wed, 28 January 2009 06:10  |
panyam
Messages: 146 Registered: May 2008
|
Senior Member |
|
|
Hi All,
I am creating a user in the DB as follows.
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> show user
USER is "SYS"
SQL> ed
Wrote file afiedt.buf
1* create user ravi identified by secure
SQL> /
User created.
Following are the privilages i am granting to the user.
SQL> GRANT CONNECT,RESOURCE,CREATE SESSION,CREATE DATABASE LINK,CREATE PUBLIC SYNONYM,CREATE SYNONYM
,CREATE TYPE,CREATE MATERIALIZED VIEW,CREATE ROLE,CREATE TABLE,CREATE VIEW,CREATE PROCEDURE,CREATE
SEQUENCE,CREATE TRIGGER, QUERY REWRITE TO RAVI;
Grant succeeded. ;
when i am trying to loggin as a user "ravi" . the db is hanging and i am not able loggin.
any help would be appreciated.
|
|
|
|
|
Re: creating User & assign Role [message #383355 is a reply to message #383345] |
Wed, 28 January 2009 07:38  |
 |
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
For "hanging" problem:
- check alert.log
- check trace files
- query v$session_wait and v$lock to see if the session is waiting on something
- activate trace on this session
Regards
Michel
|
|
|