|
1 |
| -Rem Copyright (c) 2016 by Oracle Corporation |
2 |
| -Rem |
3 |
| -Rem You may not use the identified files except in compliance with The MIT |
4 |
| -Rem License (the "License.") |
5 |
| -Rem |
6 |
| -Rem You may obtain a copy of the License at |
7 |
| -Rem https://github.com/oracle/Oracle.NET/blob/master/LICENSE |
8 |
| -Rem |
9 |
| -Rem Unless required by applicable law or agreed to in writing, software |
10 |
| -Rem distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
11 |
| -Rem WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 |
| -Rem |
13 |
| -Rem See the License for the specific language governing permissions and |
14 |
| -Rem limitations under the License. |
15 |
| -Rem |
16 | 1 | Rem NAME
|
17 |
| -REM scott.sql |
| 2 | +Rem scott.sql |
18 | 3 | Rem
|
19 | 4 | Rem DESCRIPTION
|
20 | 5 | Rem SCOTT is a database user whose schema is used for Oracle code demonstrations
|
21 |
| -Rem Be sure to replace <PASSWORD> on lines 31 and 34 with your preferred password. |
| 6 | +Rem Be sure to replace <PASSWORD> on lines 12 and 15 with your preferred password. |
22 | 7 | Rem Historically, "tiger" has been SCOTT schema's password.
|
23 | 8 |
|
24 |
| -
|
25 | 9 | SET TERMOUT OFF
|
26 | 10 | SET ECHO OFF
|
27 | 11 |
|
28 |
| -rem CONGDON Invoked in RDBMS at build time. 29-DEC-1988 |
29 |
| -rem OATES: Created: 16-Feb-83 |
30 |
| -
|
31 | 12 | GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY <PASSWORD>;
|
32 | 13 | ALTER USER SCOTT DEFAULT TABLESPACE USERS;
|
33 | 14 | ALTER USER SCOTT TEMPORARY TABLESPACE TEMP;
|
@@ -69,13 +50,13 @@ INSERT INTO EMP VALUES
|
69 | 50 | INSERT INTO EMP VALUES
|
70 | 51 | (7782,'CLARK','MANAGER',7839,to_date('9-6-1981','dd-mm-yyyy'),2450,NULL,10);
|
71 | 52 | INSERT INTO EMP VALUES
|
72 |
| -(7788,'SCOTT','ANALYST',7566,to_date('13-JUL-87')-85,3000,NULL,20); |
| 53 | +(7788,'SCOTT','ANALYST',7566,to_date('13-07-87','dd-mm-rr')-85,3000,NULL,20); |
73 | 54 | INSERT INTO EMP VALUES
|
74 | 55 | (7839,'KING','PRESIDENT',NULL,to_date('17-11-1981','dd-mm-yyyy'),5000,NULL,10);
|
75 | 56 | INSERT INTO EMP VALUES
|
76 | 57 | (7844,'TURNER','SALESMAN',7698,to_date('8-9-1981','dd-mm-yyyy'),1500,0,30);
|
77 | 58 | INSERT INTO EMP VALUES
|
78 |
| -(7876,'ADAMS','CLERK',7788,to_date('13-JUL-87')-51,1100,NULL,20); |
| 59 | +(7876,'ADAMS','CLERK',7788,to_date('13-07-87','dd-mm-rr')-51,1100,NULL,20); |
79 | 60 | INSERT INTO EMP VALUES
|
80 | 61 | (7900,'JAMES','CLERK',7698,to_date('3-12-1981','dd-mm-yyyy'),950,NULL,30);
|
81 | 62 | INSERT INTO EMP VALUES
|
@@ -104,3 +85,18 @@ COMMIT;
|
104 | 85 |
|
105 | 86 | SET TERMOUT ON
|
106 | 87 | SET ECHO ON
|
| 88 | +
|
| 89 | +Rem Copyright (c) 2016, 2024 by Oracle Corporation |
| 90 | +Rem |
| 91 | +Rem You may not use the identified files except in compliance with The MIT |
| 92 | +Rem License (the "License.") |
| 93 | +Rem |
| 94 | +Rem You may obtain a copy of the License at |
| 95 | +Rem https://github.com/oracle/dotnet-db-samples/blob/master/LICENSE.txt |
| 96 | +Rem |
| 97 | +Rem Unless required by applicable law or agreed to in writing, software |
| 98 | +Rem distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 99 | +Rem WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 100 | +Rem |
| 101 | +Rem See the License for the specific language governing permissions and |
| 102 | +Rem limitations under the License. |
0 commit comments