The HOTEL demo schema represents a very basic hotel administration system with information on the hotel’s visitors, location, vacancies, room prices, and so on.
This HOTEL schema allows you to examine all the examples in this SQL tutorial.
You can modify the HOTEL demo schema to suit your needs. However, your results may then deviate from the example results given in this tutorial.
...
1.
Install the
database software and tools.
To make this setting, proceed as described in Installation
Manual.
2.
Create a database
instance with the name DEMODB. You can use the Installation Manager or the
Database Manager to do so.
Do NOT load the tutorial data.
Installation Manual, Using the Installation
Manager
Database
Manager GUI, Creating a Database
Instance
Database
Manager CLI, Example for Creating
and Configuring a Database Instance
You can use different tools to create database users (Loader, Database Manager, for example, Database Manager GUI or CLI, query tools, such as SQL Studio, SQLCLI). The following sections describe how to enter the SQL statements for creating the MONA database user with the SQL Studio tool.
...
1.
Log on to the
database instance DEMODB as a database system administrator using the SQL
Studio.
If you copied the default values when you created the database instance
DEMODB, the database system administrator has the following user data:
user name: DBADMIN, password: SECRET
2.
Create the database
user MONA with the following SQL statement:
CREATE USER mona PASSWORD red DBA NOT EXCLUSIVE
3. Log off SQL Studio.
You can use various tools to create objects in the DEMODB database instance and populate them with data (Loader, Database Manager CLI, Query Tools, such as SQL Studio, SQLCLI).
The following sections explain how to execute the SQL statements specified for the HOTEL schema for creating the database objects and their contents with the SQL Studio tool.
4. Using the SQL Studio, log on to the database instance DEMODB as user MONA with the password RED.
5.
Create the HOTEL
schema and the required tables and fill these with values.
Use the SQL statements as specified in SQL Statements for the
HOTEL Schema.
Database user MONA has been created in the DEMODB database instance as a database administrator (DBA) with the password RED. The database administrator MONA can open several database sessions at once (NOT EXCLUSIVE).
The HOTEL schema has been created. A series of simply-structured tables have been assigned to the HOTEL schema. The tables are filled with data.
See also:
Explanation of the Tables in the HOTEL Schema
If you want to learn to administer database instances using the DEMODB or test SQL statements using existing data, you can load a more extensive set of catalog and application data from the HOTEL demo schema into the database instance DEMODB by executing specified scripts.
To do so, select the corresponding Load Tutorial option when creating a database instance in the Installation Manager and the Database Manager GUI.