| 123456789101112131415161718192021222324252627282930313233343536373839 |
- -- Purpose:
- -- Create a dedicated tablespace and local schema for face collection in ORCLPDB.
- -- Safety:
- -- This script only creates new objects: tablespace FACE_COLLECT_DATA and user FACE_COLLECT.
- -- It does not modify any object under schema C##DC.
- -- Execution:
- -- Run inside PDB ORCLPDB with a DBA-capable account.
- --
- -- Note:
- -- The DATAFILE clause below assumes Oracle Managed Files is available.
- -- If your database does not use OMF, replace it with an explicit file path.
- whenever sqlerror exit failure rollback;
- prompt =========================================================
- prompt Creating tablespace FACE_COLLECT_DATA and schema FACE_COLLECT
- prompt Replace the placeholder password before execution
- prompt =========================================================
- create tablespace FACE_COLLECT_DATA
- datafile size 512M
- autoextend on next 64M
- maxsize 4096M;
- create user FACE_COLLECT
- identified by "ChangeMe_20260725"
- default tablespace FACE_COLLECT_DATA
- temporary tablespace TEMP
- quota 1024M on FACE_COLLECT_DATA
- container = current;
- grant create session to FACE_COLLECT;
- grant create table to FACE_COLLECT;
- grant create view to FACE_COLLECT;
- grant create sequence to FACE_COLLECT;
- grant create procedure to FACE_COLLECT;
- grant create trigger to FACE_COLLECT;
- prompt FACE_COLLECT isolated schema created successfully.
|