6

How to execute a SQL script(.sql) in a different schema in SQLPLUS. I do have all permissions on the schema.

1 Answer 1

9

try:

ALTER SESSION SET CURRENT_SCHEMA = different_schema
Sign up to request clarification or add additional context in comments.

2 Comments

Getting the below error: ERROR at line 1: ORA-02248: invalid option for ALTER SESSION
probably should have mentioned, you need the ALTER SESSION privilege

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.