DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: user creation in 9i

  1. #1
    Join Date
    Jan 2003
    Posts
    141

    user creation in 9i

    hi,
    I have created a user called citiph2 and i have not assigned any privilege for that. but when i try to connect the user as sysdba its getting connected.I am having oracle 9i database in Windows 2000 server.Have anyone faced this problem.

    The following is the user creation procedure

    SQL> create user citiph2 identified by a;

    User created.

    SQL> conn citiph2/a
    ERROR:
    ORA-01045: user CITIPH2 lacks CREATE SESSION privilege; logon denied


    Warning: You are no longer connected to ORACLE.
    SQL> conn citiph2/a as sysdba
    Connected.
    SQL> select tname from tab;

  2. #2
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    When you create new user, to connect to the database using newly created user, you need atleast CREATE SESSION priviledge. In your case you haven't granted any priviledge, so it won't able to connect to database.

    And when you connect as "citiph2/a as sysdba", it actually connets as SYS user and not as "citiph2" user. This behavior is because of your sqlnet.ora setting. i.e SQLNET.AUTHENTICATION_SERVICES =(NTS) parameter. When you set this parameter to NTS, it connects to database even though your newly created user doesn't have any priviledge.

    Try execting SHOW USER when you connet as "citiph2/a as sysdba", it will show you, User is "SYS"

    HTH

    Sameer

  3. #3
    Join Date
    Jan 2003
    Posts
    141
    hi sammer,

    How do i stop the user..then how shouldi set the parameter

    SQLNET.AUTHENTICATION_SERVICES =

    ???

    Thanks,
    Ramesh

  4. #4
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    You can comment this parameter

  5. #5
    Join Date
    Jan 2003
    Posts
    141
    Thanks !! Its working now

    Thanks,
    Ramesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width