Replies: 2 comments 2 replies
-
I don't know if SQLAlchemy supports setting the default schema with the Oracle driver. The python-oracledb documentation can be found here. You'll have to ask the SQLAlchemy team that question! |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks for the advice.
…On Fri, Nov 24, 2023 at 3:13 PM Anthony Tuininga ***@***.***> wrote:
Oracle does not have the ability to have a schema *independent* of a
user. You can create a user that lacks create session privilege and use its
schema for your application (and connect as a different user which has no
schema objects). You can then prefix the other schema on all of your
queries or set the value of current_schema as mentioned earlier. So the
answer depends on the application and how you intend to connect to the
database. I don't think you can make any assumptions without that knowledge!
—
Reply to this email directly, view it on GitHub
<#240 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKSG36H4TNG4SCN6UXYL3TYGESYHAVCNFSM6AAAAAA54INYA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMNRUGAYTM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My understanding of Oracle is minimal, but I am unclear how to use SQLAlchemy to open a specific schema.
For example, MySQL allows you to designate a schema such as classicmodels:
But I have not found similar options for Oracle:
This does work, since the
hr
user has thehr
schema as their default-schema.So my question is:
Beta Was this translation helpful? Give feedback.
All reactions