Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

use alter session set current_schema to set to users default schema

user521233Mar 12 2018 — edited Mar 12 2018

hi there,

I'm trying to determine how to use the alter session command to set the current_schema back to the users default schema. I've tried the USER function and various other things without success.

SQL> show user
USER is "DEPLOYMENT"
SQL> alter session set current_schema = some_other_schema;

Session altered.

SQL> alter session set current_schema = user;
alter session set current_schema = user
                                   *
ERROR at line 1:
ORA-02421: missing or invalid schema authorization identifier

This post has been answered by Solomon Yakobson on Mar 12 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2018
Added on Mar 12 2018
3 comments
2,456 views