Oracle HR Sample schema 설치하기
https://github.com/oracle-samples/db-sample-schemas
1. 다운로드한 파일 oracle 설치 폴더
( C:/app/Administrator/product/21c/dbhomeXE/demo/schema )에 복사

2. main.sql 파일을 열어서 제일 아래부분 경로 수정
@__SUB__CWD__ --> @?/demo/schema
C:\\Users\\user1>sqlplus
SQL*Plus: Release 21.0.0.0.0 - Production on 월 2월 10 14:33:56 2025
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
사용자명 입력: sys as sysdba
비밀번호 입력:
다음에 접속됨:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
SQL> alter session set"_oracle_script"=true;
세션이 변경되었습니다.
SQL> @?/demo/schema/human_resources/hr_main.sql
specify password for HR as parameter 1:
1의 값을 입력하십시오: hr
specify default tablespeace for HR as parameter 2:
2의 값을 입력하십시오: users
specify temporary tablespace for HR as parameter 3:
3의 값을 입력하십시오: temp
specify password for SYS as parameter 4:
4의 값을 입력하십시오: oracle
specify log path as parameter 5:
5의 값을 입력하십시오: C:\\app\\user1\\product\\21c\\dbhomeXE\\demo\\schema\\log\\hr\\
specify connect string as parameter 6:
6의 값을 입력하십시오: localhost:1521/xe