-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
97 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
alter database set TIME_ZONE='Europe/Oslo'; | ||
alter database datafile 1 autoextend on maxsize 2G; | ||
alter system set recyclebin=OFF DEFERRED; | ||
alter system set processes=150 scope=spfile; | ||
alter system set session_cached_cursors=100 scope=spfile; | ||
alter system set session_max_open_files=100 scope=spfile; | ||
alter system set sessions=100 scope=spfile; | ||
alter system set license_max_sessions=100 scope=spfile; | ||
alter system set license_sessions_warning=100 scope=spfile; | ||
alter system set disk_asynch_io=FALSE scope=spfile; | ||
alter system set open_cursors=300 scope=both sid='*'; | ||
alter profile default limit password_life_time unlimited; | ||
alter profile default limit password_verify_function null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
DECLARE | ||
userexists INTEGER; | ||
BEGIN | ||
SELECT count(*) | ||
INTO userexists | ||
FROM SYS.ALL_USERS | ||
WHERE USERNAME = 'FPLOS'; | ||
IF (userexists = 0) | ||
THEN | ||
EXECUTE IMMEDIATE ('CREATE USER FPLOS IDENTIFIED BY fplos PROFILE DEFAULT ACCOUNT UNLOCK'); | ||
END IF; | ||
END; | ||
/ | ||
|
||
DECLARE | ||
userexists INTEGER; | ||
BEGIN | ||
SELECT count(*) | ||
INTO userexists | ||
FROM SYS.ALL_USERS | ||
WHERE USERNAME = 'FPLOS_UNIT'; | ||
IF (userexists = 0) | ||
THEN | ||
EXECUTE IMMEDIATE ('CREATE USER FPLOS_UNIT IDENTIFIED BY fplos_unit PROFILE DEFAULT ACCOUNT UNLOCK'); | ||
END IF; | ||
END; | ||
/ | ||
|
||
DECLARE | ||
userexists INTEGER; | ||
BEGIN | ||
SELECT count(*) | ||
INTO userexists | ||
FROM SYS.ALL_USERS | ||
WHERE USERNAME = 'VL_DBA'; | ||
IF (userexists = 0) | ||
THEN | ||
EXECUTE IMMEDIATE ('CREATE USER VL_DBA IDENTIFIED BY vl_dba PROFILE DEFAULT ACCOUNT UNLOCK'); | ||
END IF; | ||
END; | ||
/ | ||
|
||
-- 1 Role for vl_dba | ||
GRANT DBA TO VL_DBA; | ||
ALTER USER VL_DBA DEFAULT ROLE ALL; | ||
|
||
-- 2 System Privileges for vl_dba | ||
GRANT CREATE SESSION TO VL_DBA; | ||
GRANT UNLIMITED TABLESPACE TO VL_DBA; | ||
|
||
GRANT | ||
CREATE SESSION, | ||
ALTER SESSION, | ||
CONNECT, | ||
RESOURCE, | ||
CREATE MATERIALIZED VIEW, | ||
CREATE JOB, | ||
CREATE TABLE, | ||
CREATE SYNONYM, | ||
CREATE VIEW, | ||
CREATE SEQUENCE, | ||
UNLIMITED TABLESPACE, | ||
SELECT ANY TABLE | ||
TO FPLOS; | ||
|
||
GRANT | ||
CREATE SESSION, | ||
ALTER SESSION, | ||
CONNECT, | ||
RESOURCE, | ||
CREATE MATERIALIZED VIEW, | ||
CREATE JOB, | ||
CREATE TABLE, | ||
CREATE SYNONYM, | ||
CREATE VIEW, | ||
CREATE SEQUENCE, | ||
UNLIMITED TABLESPACE, | ||
SELECT ANY TABLE | ||
TO FPLOS_UNIT; | ||
|
||
ALTER USER FPLOS QUOTA UNLIMITED ON SYSTEM; | ||
ALTER USER FPLOS_UNIT QUOTA UNLIMITED ON SYSTEM; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters