Skip to Main Content

SQL Developer Data Modeler

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.

Same Design Across Multiple Schemas

J-Jan 26 2025

Oracle 19C database with multiple schemas with (nearly) identical designs.

When I update the model, I'd like to update the “main” schema's design and then selectively apply that design to other schemas.

My plan:

  1. Model all tables (and views, procedures, etc.) for all schemas.

    1. schema1.table1, schema2.table1
  2. Edit schema1's table1 design (for example, add a column)

  3. Use a transformation script to copy the schema1.table1 updates to schema2.table1
    1. add a dynamic property on tables which should be copied over.

I know I could just maintain a single model and change the schema in the DDL before running on each schema (I do that with Erwin right now). But SDDM is free and I'd rather have visibility on the entire database model.

Does my plan seem like a good approach, or am I missing a feature in SDDM that I should use instead?

Comments

thatJeffSmith-Oracle Feb 13 2025

Your ENTRA users will get authenticated via JSON Web Tokens, and their Entra roles will determine which ORDS REST APIs they can hit.

When they hit an endpoint, it'll execute code in the database as the database user that owns the schema where the REST API is defined, not as Entra defiend end user. In fact, the Entra users won't have accounts in the database (they could, but wont' need to).

The :current_user field as far as ords is concerned would be the corresponding oauth2 client or JWT issued for the authorizied session.

Your prehook should be able to alter the session to set the context that would put your RLS/VPD security policy in play.

1 - 1

Post Details

Added on Jan 26 2025
3 comments
96 views