In this step we pull the ready-made Oracle 19c schema repository from the Github location and dump it into the local volume. This repository contains a copy of the Oracle Database sample schemas that are installed with Oracle Database Enterprise Edition. From the repository, we import the HR schema into the Oracle 19c database by running the script @mksample.
To pull the sample schemas from GitHub, do the following:
[root@12c-docker ~] # git clone https://github.com/oracle/db-sample-schemas.git
[root@12c-docker oracle_sample_schema] # cp -R db-sample-schemas/ /home/oracle/
[root@12c-docker db-sample-schemas] # perl -p -i.bak -e 's#__SUB__CWD__#'/opt/oracle/oradata/db-sample-schemas'#g' *.sql */*.sql */*.dat
sql>alter session set container=ORCLPDB1;
sql>@mksample