Created
November 13, 2023 12:56
-
-
Save juarezjuniorgithub/7cf3ef6927af5e8f8c44cfc78af7a253 to your computer and use it in GitHub Desktop.
23c-SpringBoot-JPA_Hibernate-UCP.sql
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
CREATE USER ORACLE_23C_USER IDENTIFIED BY <YOUR_PASSWORD>; | |
GRANT DB_DEVELOPER_ROLE TO ORACLE_23C_USER; | |
GRANT CREATE SESSION TO ORACLE_23C_USER; | |
GRANT UNLIMITED TABLESPACE TO ORACLE_23C_USER; | |
CREATE TABLE Employee | |
(id NUMBER(10) CONSTRAINT pk_employee PRIMARY KEY, | |
name VARCHAR2(20), | |
job VARCHAR2(20), | |
salary NUMBER(10), | |
commission NUMBER(10)); | |
INSERT INTO Employee VALUES(7369,'JOHN','CLERK',7902,NULL); | |
INSERT INTO Employee VALUES(7499,'PETER','SALESMAN',7698,300); | |
INSERT INTO Employee VALUES(7521,'JEFF','SALESMAN',7698,500); | |
INSERT INTO Employee VALUES(7566,'MARK','MANAGER',7839,NULL); | |
INSERT INTO Employee VALUES(7654,'MARTIN','SALESMAN',7698,1400); | |
INSERT INTO Employee VALUES(7698,'ADAM','MANAGER',7839,NULL); | |
INSERT INTO Employee VALUES(7782,'CLARK','MANAGER',7839,NULL); | |
INSERT INTO Employee VALUES(7788,'SCOTT','ANALYST',7566,NULL); | |
INSERT INTO Employee VALUES(7839,'KING','PRESIDENT',NULL); | |
INSERT INTO Employee VALUES(7844,'TURNER','SALESMAN',0); | |
INSERT INTO Employee VALUES(7876,'ADAMS','CLERK',7788,NULL); | |
INSERT INTO Employee VALUES(7900,'JAMES','CLERK',7698,NULL); | |
INSERT INTO Employee VALUES(7902,'FORD','ANALYST',7566,NULL); | |
INSERT INTO Employee VALUES(7934,'MILLER','CLERK',7782,NULL); | |
COMMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment