Appendix B – Getting Started with Oracle Database XE
TEACHING SUGGESTIONS
• For individual student personal use on their own computer, we recommend (and use
in this book) Oracle Database Express Edition 11g Release 2. Oracle Database 12c
can be used instead, but we recommend that only if the student does not have to
install or configure the software.
• When you are using Oracle Database XE, the best text editor to use is the text editor
built into Oracle SQL Developer. Take some time to show your students how to use
it.
• It may be helpful to head off some confusion and frustration by listing some of the
differences between SQL Server and Oracle early on, specifically:
• The DATE format (default, TO_DATE, etc.)
• Use of sequences to achieve autonumber fields
• Lack of “ON UPDATE CASCADE” option
• Disallowing of “AS” keyword in range variable declarations
• Padding of CHAR fields with blanks and its effect on LIKE semantics (trailing
blanks are not ignored)
• Make sure that your students work through Appendix B in conjunction with other
material presented in the text by working through Appendix B in the following
sequence:
• Before starting Chapter 3 on SQL, install Oracle Database XE and Oracle SQL
Developer by working through this appendix up to and including “Installing Oracle
SQL Developer.”
• When studying the Chapter 3 sections on how to create and populate database
tables, work up to and including “How Do I Use SQL Statements to Insert
Database Data?” Both Chapter 3 and this appendix use the same WP database,
and this work will show you how to create your own copy of the WP database.
• When studying the Chapter 3 sections on how to use SQL Data Manipulation
Language (DML) and SQL Data Definition Language (DDL), work through the
section named “How Do I Work with SQL Queries in Oracle Database XE?” Both
Chapter 3 and this appendix use the same WP database, and you can run the
SQL Statements shown in Chapter 3 yourself, and see the results.
• When studying the Appendix E material on SQL Views, you can run the SQL
Statements shown in Appendix E yourself and see the results.
• When studying the Appendix E material on SQL Persistent Stored Modules
(SQL/PSM), you can run the Oracle versions of the SQL Statements, which can
be found in the IRC Oracle files for Appendix E, yourself and see the results.
• Work through the section “How Do I Import Microsoft Excel Data into an Oracle
Database XE Table?” in this appendix to understand how to import Microsoft
Excel data into a database table.