Examples Installation Guide
12c Release 2 (12.2)
This document describes how to install and configure the products available on the Oracle Database Examples media. It includes the following sections:
Oracle Database Examples include a variety of examples and product demonstrations that you can use to learn about the products, options, and features of Oracle Database.
Many of these examples are designed to work with the sample schemas, which you can install in any Oracle Database. Many documents in the Oracle Documentation Library use the example programs and scripts provided with the Oracle Database Examples.
This section contains the following topics:
Oracle Data Mining Demos include Data Mining sample programs that can help you in learning about Oracle Data Mining APIs.
The Data Mining sample programs illustrate typical approaches to data preparation, algorithm selection, algorithm tuning, testing, and scoring. Each program creates a mining model in the database. All the programs include extensive inline comments to help you understand the code.
Oracle Globalization Demos showcase the features and APIs of the Oracle Globalization Development Kit.
Oracle Globalization Development Kit (GDK) offers a complete framework to ease the development of globalized internet applications. The GDK Example demo illustrates individual functionalities such as, locale-sensitive data formatting, linguistic sorting, locale mapping, locale determination, and language detection. The Oracle Store demo illustrates how the GDK features can be integrated to build a complete multilingual J2EE web application that serves users with vastly different locale preferences.
Oracle Messaging Gateway enables communication between applications based on non-Oracle messaging systems and Oracle Database Advanced Queuing.
Oracle Database Advanced Queuing provides propagation between two Oracle Database Advanced Queuing queues to enable e-business (HTTP through IDAP). Messaging Gateway extends this to applications based on non-Oracle messaging systems. The samples provided for Messaging Gateway illustrate message propagating with Oracle AQ, WebSphere MQ Series, and Tibco Rendezvous using message formats that include JMS, LCR, and XML.
There are seven different samples provided with Messaging Gateway, each located in their own subdirectory. Each sample includes a README file that contains detailed information for setting up and executing the samples.
Oracle Multimedia (formerly Oracle interMedia) is a feature that enables Oracle Database to store, manage, and retrieve images, audio, video, or other heterogenous media data in an integrated fashion with other enterprise information.
Oracle Multimedia extends Oracle Database reliability, availability, and data management to multimedia content in traditional, Internet, electronic commerce, and media-rich applications. It includes several scripts and sample applications that you can use. These consist of OCI, SQL, Java, PL/SQL, and ASP/VBScript sample applications (demos).
Oracle Precompiler Demos show application programmers how to embed SQL operations in C/C++ and COBOL code in a way that is compatible with ANSI standard.
A Pro*C program is a C program containing embedded SQL statements. Oracle Pro*C/C++ and Pro*COBOL Demos offer extensions to support dynamic SQL operations, which are operations that can change in real time. It is also possible to use dynamic SQL operations through PL/SQL code (known as anonymous PL/SQL block) with a Pro*C/C++ and Pro*COBOL application. Typical applications contain much more static SQL than dynamic SQL. The precompiler translates each embedded SQL statement into calls to the Precompiler run-time library (SQLLIB).
Oracle Spatial and Graph Demos provide SQL schema and functions that facilitate the storage, retrieval, update, and query of collections of spatial features in an Oracle database.
Oracle Spatial and Graph is an integrated set of functions and procedures that enables spatial data to be stored, accessed, and analyzed quickly and efficiently in an Oracle database. Spatial data represents the essential location characteristics of real or conceptual objects as those objects relate to the real or conceptual space in which they exist.
Oracle Internet Directory Client Demos show application programmers how to use LDAP C and PL/SQL APIs.
All LDAP operations based on the C API, require clients to establish an LDAP session with the LDAP server. For LDAP operations based on the PL/SQL API, a database session must first initialize and open an LDAP session. The DBMS_LDAP package enables PL/SQL applications to access data located in LDAP servers. The names and syntax of the function calls are similar to those of the C API.
Oracle XML Demos showcase the features of the Oracle XML Developer's Kit (XDK), which is a versatile set of components that enables you to build and deploy C, C++, and Java software programs that process XML.
Oracle Call Interface (OCI) demos include sample C programs to use the OCI APIs.
These programs provide examples of the data types, calling conventions, syntax, and semantics of C.
Oracle C++ Call Interface (OCCI) demos provide database access APIs for applications written in C++. The control classes enable the applications to connect to the database and create resources like statements and resultsets. The data classes contain various types of data. The object classes and methods provide a navigational interface to access and manipulate objects. The Object Type Translator (OTT) can be used to generate the C++ class headers for the data types defined in Oracle database. The installed demos illustrate the use of classes and methods for OTT and OCCI.
Oracle ODBC Driver demos provide basic structure of an ODBC application which can be extended to make a full-fledged ODBC application.
ODBC being a standard, plenty of sample applications may be found in books which discuss the concept of ODBC driver. For Oracle ODBC Driver specific options, see Help while setting up Data Source Name on Windows.
Oracle Database Examples media installs two Oracle Text knowledge bases, English and French. You can extend the supplied knowledge bases depending on your requirements. Alternatively, you can create your own knowledge bases, in languages other than English and French.
The following topics contain details about determining free disk space on UNIX and Windows platforms:
Explains how to check free disk space on UNIX platforms.
oracle_home_pathis the path to the Oracle home directory.
Explains how to determine free disk space on Windows systems.
Explains the products that are required to use Oracle Database Examples.
Before you can use the Oracle Database Examples, you must install the sample schemas in an Oracle Database. When you install Oracle Database, or use Database Configuration Assistant to create a database, you can choose to include the sample schemas. You can also manually install the sample schemas in an existing database.
Starting with Oracle Database 12c Release 2 (12.2), only the HR sample schema is automatically installed after a database installation. All sample schemas, including HR, are distributed on GitHub:
Explains how to identify the Oracle home directory used by Oracle Database installation.
Oracle Database Installation Guide for information about installing Oracle Database
Identify the Oracle home directory used by the Oracle Database installation.
On UNIX platforms, the
oratab file is located in the
/etc directory or in the
/var/opt/oracle directory. Use the
more command to check the contents of the
oratab file. For example:
# more /etc/oratab
On Windows platforms:
You must download and install Oracle Database Examples in an existing Oracle home to view the product demonstrations.
Oracle Database Examples installs the product demonstrations in the Oracle home directory and the SQL scripts for the sample schemas in the
$ORACLE_HOME/demo/schema directory. To use these product demonstrations, you must install the sample schemas in the database. If the sample schemas are not included during an Oracle database installation or during database creation using Database Configuration Assistant, then you can manually install them by running the SQL scripts.
Use one of the following methods to install Oracle Database Examples:
You must install Oracle Database Examples in an existing Oracle Database 12c Oracle home.
On UNIX platforms, log in as the Oracle software owner user (
oracle) and set the
DISPLAY environment variable.
On Windows platforms, log in as an Administrator or as a member of the Administrators group to the computer on which you want to install Oracle components. If you are installing on a Primary Domain Controller (PDC) or a Backup Domain Controller (BDC), log on as a member of the Domain Administrators group.
unziputility to extract the contents of the zip file.
The Oracle base directory is a top-level directory for Oracle software installations.
If you try to install Oracle Database Examples in an Oracle Database home that is different from the current release, then the installation fails with an error.
You must install Oracle Database Examples in an existing 12.2 Oracle Database home.
See Also:“Accessing the Installation Software” for more information about finding the Oracle home.
Note:On an Oracle RAC installation, the software is installed on all the cluster nodes.
Note:The Fix & Check Again option generates a script (UNIX only) that sets some system parameters to Oracle-recommended values. You must run the script as the
rootuser. Oracle recommends that you do not modify the contents of this script.
Note:Click Save Response File to save all the installation steps into a response file. Later, you can use this file for a silent installation.
A silent installation runs in the background and does not require input from the user. The interactive dialogs normally seen by the user are not displayed. Silent installations can be useful if you have to install an Oracle product multiple times on multiple computers.
$ /directory_path/runInstaller [-silent] -responseFile responsefilename
Note:Do not specify a relative path to the response file. If you specify a relative path, then Oracle Universal Installer fails.
directory_pathis the path of the database directory on the DVD or on the hard drive.
-silentruns Oracle Universal Installer in silent mode.
responsefilenameis the full path and file name of the installation response file that you configured.
DRIVE_LETTER:\setup.exe_location setup [-silent] "variable=setting" [-nowelcome] [-noconfig] [-nowait] -responseFile
DRIVE_LETTER: Identifies the full path of the response file.
setup.exe_location: Indicates the location of
"variable=setting"refers to a variable within the response file that you may prefer to run at the command line rather than set in the response file. Enclose the variable and its setting in quotes.
-noconfig: Suppresses running the configuration assistants during installation.
-nowait: Closes the console window when the silent installation completes.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.
Oracle® Database Examples Installation Guide , 12c Release 2 (12.2)
Copyright © 2011, 2017, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.