How to switch from one user to another in sqlplus

for example, you’re connected as sysdba using “sqlplus / as sysdba”, all you have to do is type “connect”, then enter the desired username and password, and there you go!

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

2 Responses to How to switch from one user to another in sqlplus

  1. pavanpro says:

    CONNECT USER_NAME;
    It’l prompt for password: enter your password

    Liked by 1 person

  2. samajap ni sadnap says:

    Also, you’ll need to make sure the user has been granted the create session privilege:
    GRANT CREATE SESSION TO user_name;
    Without that, the user can’t log on (i.e. create a session), and therefore you can’t log on as that user.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s