2026-07-25_face_collect_create_schema_isolated.sql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- Purpose:
  2. -- Create a dedicated tablespace and local schema for face collection in ORCLPDB.
  3. -- Safety:
  4. -- This script only creates new objects: tablespace FACE_COLLECT_DATA and user FACE_COLLECT.
  5. -- It does not modify any object under schema C##DC.
  6. -- Execution:
  7. -- Run inside PDB ORCLPDB with a DBA-capable account.
  8. --
  9. -- Note:
  10. -- The DATAFILE clause below assumes Oracle Managed Files is available.
  11. -- If your database does not use OMF, replace it with an explicit file path.
  12. whenever sqlerror exit failure rollback;
  13. prompt =========================================================
  14. prompt Creating tablespace FACE_COLLECT_DATA and schema FACE_COLLECT
  15. prompt Replace the placeholder password before execution
  16. prompt =========================================================
  17. create tablespace FACE_COLLECT_DATA
  18. datafile size 512M
  19. autoextend on next 64M
  20. maxsize 4096M;
  21. create user FACE_COLLECT
  22. identified by "ChangeMe_20260725"
  23. default tablespace FACE_COLLECT_DATA
  24. temporary tablespace TEMP
  25. quota 1024M on FACE_COLLECT_DATA
  26. container = current;
  27. grant create session to FACE_COLLECT;
  28. grant create table to FACE_COLLECT;
  29. grant create view to FACE_COLLECT;
  30. grant create sequence to FACE_COLLECT;
  31. grant create procedure to FACE_COLLECT;
  32. grant create trigger to FACE_COLLECT;
  33. prompt FACE_COLLECT isolated schema created successfully.