Datenbank-Benutzer
Um einen Benutzer in Oracle (Datenschema) anzulegen führen Sie folgendes SQL Statement aus. Ersetzen Sie hier den Platzhalter 'schema_name' durch die gewünschte Bezeichnung ihres Schemas. Den Platzhalter 'Schema_password' entsprechend durch ihr gewünschtes Kennwort.
<syntaxhighlight lang="xml" line="GESHI_NORMAL_LINE_NUMBERS" highlight="0">
-- USER SQL -- CREATE USER schema_name IDENTIFIED BY schema_password
DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP";
-- ROLES -- GRANT "RESOURCE" to schema_name ; GRANT "CONNECT" to schema_name ; ALTER USER schema_name DEFAULT ROLE "RESOURCE","CONNECT";
-- SYSTEM PRIVILEGES -- GRANT ALTER ANY INDEX TO schema_name ; GRANT ALTER ANY PROCEDURE TO schema_name ; GRANT ALTER ANY TABLE TO schema_name ; GRANT ALTER ANY TRIGGER TO schema_name ; GRANT CREATE ANY INDEX TO schema_name ; GRANT CREATE ANY INDEXTYPE TO schema_name ; GRANT CREATE ANY PROCEDURE TO schema_name ; GRANT CREATE ANY SEQUENCE TO schema_name ; GRANT CREATE ANY TABLE TO schema_name ; GRANT CREATE ANY TRIGGER TO schema_name ; GRANT CREATE ANY VIEW TO schema_name ; GRANT CREATE SESSION TO schema_name ; GRANT DROP ANY INDEX TO schema_name ; GRANT DROP ANY PROCEDURE TO schema_name ; GRANT DROP ANY TABLE TO schema_name ; GRANT DROP ANY TRIGGER TO schema_name ; GRANT DROP ANY VIEW TO schema_name ; GRANT EXECUTE ANY PROCEDURE TO schema_name ; GRANT SELECT ANY TABLE TO schema_name ; GRANT UNLIMITED TABLESPACE TO schema_name ; GRANT UPDATE ANY TABLE TO schema_name ;