Создание пользователя Oracle

Поменять NEW_USER_NAME и NEW_USER_PASSWORD.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- DROP USER NEW_USER_NAME CASCADE;

CREATE USER NEW_USER_NAME IDENTIFIED BY "NEW_USER_PASSWORD"
 DEFAULT TABLESPACE "USERS"
 TEMPORARY TABLESPACE "TEMP"
 QUOTA UNLIMITED ON "USERS";

GRANT ALTER ANY PROCEDURE TO NEW_USER_NAME;
GRANT ALTER ANY TABLE TO NEW_USER_NAME;
GRANT ALTER ANY TRIGGER TO NEW_USER_NAME;
GRANT ALTER PROFILE TO NEW_USER_NAME;
GRANT CREATE PROCEDURE TO NEW_USER_NAME;
GRANT CREATE SEQUENCE TO NEW_USER_NAME;
GRANT CREATE SESSION TO NEW_USER_NAME;
GRANT CREATE TABLE TO NEW_USER_NAME;
GRANT CREATE TRIGGER TO NEW_USER_NAME;
GRANT CREATE VIEW TO NEW_USER_NAME;
GRANT DELETE ANY TABLE TO NEW_USER_NAME;
GRANT DROP ANY PROCEDURE TO NEW_USER_NAME;
GRANT DROP ANY TABLE TO NEW_USER_NAME;
GRANT DROP ANY TRIGGER TO NEW_USER_NAME;
GRANT DROP ANY VIEW TO NEW_USER_NAME;
GRANT DROP PROFILE TO NEW_USER_NAME;

GRANT "CONNECT" TO NEW_USER_NAME;
ALTER USER NEW_USER_NAME DEFAULT ROLE ALL;

Комментарии