For a complete syntax description of the Loader commands for importing, see Importing: Loader Commands in the Loader manual. The following are some examples of key import commands.
You can use the demo databases DEMODB and TESTDB. You have exported the required data from demo database DEMODB (Exporting).
In the demo database TESTDB create the database administrator MONA, if he/she does not exist yet. Start the Loader and log on to the demo database TESTDB as database administrator MONA with the password RED. Use the session mode: loadercli -d testdb -u mona,red.
Create the schema TESTDB in the demo database HOTEL. Import the database catalog data you exported from the demo database DEMODB into the schema HOTEL of the demo database TESTDB.
IMPORT TABLE hotel.city
CATALOG INSTREAM 'city_ddl.catalog'
This means:
Import (IMPORT)
a table (TABLE)
called CITY (hotel.city)
Import the database catalog data (CATALOG)
from the input file (INSTREAM)
called city_ddl.catalog
All objects (such as view tables, indexes) dependent on the CITY table that are listed in city_ddl.catalog are imported. If additional objects are necessary for the creation of a dependent object (for example, additional tables for creating a view table), the dependent objects are only imported if the additional objects are available.