Appendix F. Installing the ACME Database
This appendix explains how to install the sample ACME database on the RDBMS of your choice. Refer to the section that corresponds to the database platform you've created.
Installing the ACME Database on Oracle 11g Using SQL*Plus
Following are instructions on how to install the ACME sample database on Oracle 11g using the SQL*Plus utility (explained in Appendix E, "Accessing RDBMS").
Linux / Unix
Start your Oracle instance. Make sure that your session's
ORACLE_SIDenvironment variable points to the correct instance:# echo $ORACLE_SID ACME #
Note
The Unix/Linux environment variables required to run the
sqlplusutility are listed in Table D-2 of Appendix D, "Installing RDBMS Software."Create your directory:
/home/oracle/sqlbib/oracle_acme.Download corresponding scripts from the accompanying SQL Bible website to the directory you created.
Change your current directory to
/home/oracle/sqlbib/oracle_acmeand start SQL*Plus by typing the following:# sqlplus /nolog
If you want to create the log file, use the
spoolcommand (described in Appendix E, "Accessing RDBMS"). For example, if you want the resulting log fileload.logto be created in the same directory as your other files, type:SQL> spool load.log
Run the
sqlbib/oracle_acme/load.sqlscript:SQL> @load.sql
This script creates your Oracle ACME database. Stop spooling (if started) by issuing the following command:
SQL> spool off
Type
quitto exit SQL*Plus.Check the file
load.logfor possible errors.
Microsoft ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access