From c234232bf74f392baf9d0079f152cc8c004eb73e Mon Sep 17 00:00:00 2001 From: Alex Keh Date: Sat, 20 Jul 2024 18:23:47 -0700 Subject: [PATCH] Update scott.sql Fixed script to address error that arises if the NLS_DATE_FORMAT is different. https://github.com/oracle/dotnet-db-samples/pull/360 Updated the license text to point to the updated link. --- schemas/scott.sql | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/schemas/scott.sql b/schemas/scott.sql index f843ba32..bed223a7 100644 --- a/schemas/scott.sql +++ b/schemas/scott.sql @@ -1,33 +1,14 @@ -Rem Copyright (c) 2016 by Oracle Corporation -Rem -Rem You may not use the identified files except in compliance with The MIT -Rem License (the "License.") -Rem -Rem You may obtain a copy of the License at -Rem https://github.com/oracle/Oracle.NET/blob/master/LICENSE -Rem -Rem Unless required by applicable law or agreed to in writing, software -Rem distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -Rem WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -Rem -Rem See the License for the specific language governing permissions and -Rem limitations under the License. -Rem Rem NAME -REM scott.sql +Rem scott.sql Rem Rem DESCRIPTION Rem SCOTT is a database user whose schema is used for Oracle code demonstrations -Rem Be sure to replace on lines 31 and 34 with your preferred password. +Rem Be sure to replace on lines 12 and 15 with your preferred password. Rem Historically, "tiger" has been SCOTT schema's password. - SET TERMOUT OFF SET ECHO OFF -rem CONGDON Invoked in RDBMS at build time. 29-DEC-1988 -rem OATES: Created: 16-Feb-83 - GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY ; ALTER USER SCOTT DEFAULT TABLESPACE USERS; ALTER USER SCOTT TEMPORARY TABLESPACE TEMP; @@ -69,13 +50,13 @@ INSERT INTO EMP VALUES INSERT INTO EMP VALUES (7782,'CLARK','MANAGER',7839,to_date('9-6-1981','dd-mm-yyyy'),2450,NULL,10); INSERT INTO EMP VALUES -(7788,'SCOTT','ANALYST',7566,to_date('13-JUL-87')-85,3000,NULL,20); +(7788,'SCOTT','ANALYST',7566,to_date('13-07-87','dd-mm-rr')-85,3000,NULL,20); INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL,to_date('17-11-1981','dd-mm-yyyy'),5000,NULL,10); INSERT INTO EMP VALUES (7844,'TURNER','SALESMAN',7698,to_date('8-9-1981','dd-mm-yyyy'),1500,0,30); INSERT INTO EMP VALUES -(7876,'ADAMS','CLERK',7788,to_date('13-JUL-87')-51,1100,NULL,20); +(7876,'ADAMS','CLERK',7788,to_date('13-07-87','dd-mm-rr')-51,1100,NULL,20); INSERT INTO EMP VALUES (7900,'JAMES','CLERK',7698,to_date('3-12-1981','dd-mm-yyyy'),950,NULL,30); INSERT INTO EMP VALUES @@ -104,3 +85,18 @@ COMMIT; SET TERMOUT ON SET ECHO ON + +Rem Copyright (c) 2016, 2024 by Oracle Corporation +Rem +Rem You may not use the identified files except in compliance with The MIT +Rem License (the "License.") +Rem +Rem You may obtain a copy of the License at +Rem https://github.com/oracle/dotnet-db-samples/blob/master/LICENSE.txt +Rem +Rem Unless required by applicable law or agreed to in writing, software +Rem distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +Rem WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +Rem +Rem See the License for the specific language governing permissions and +Rem limitations under the License.