A library is a system object that serves as a directory to other
objects. It groups related objects and allows the user to find objects by
name.
The system-recognized identifier for the object type is *LIB. Before you
can create a database file, you must create a library to store it. You can
create a library in the following ways:
- You can use iSeries™ Navigator
to create a library (in SQL, called a schema).
- You can use the Create Library (CRTLIB) command to create the library.
When creating a library, you can specify the auxiliary storage pool (ASP)
where the library is to be stored. This allows you to create multiple, separate
databases.
Create a library (schema) using iSeries Navigator
Learn
how to create a library (in SQL, called schema) using iSeries Navigator.
- From iSeries Navigator,
expand the system you want to use.
- Expand Databases and the database that you want
to work with.
- Right-click Schemas and click New Schema.
- On the New Schema window, specify a schema name.
- To add this schema to the list of schemas displayed, select Add
to displayed list of schemas.
- To create as a standard schema, select Create
as a standard schema.
- To create a data dictionary, select Create
a data dictionary.
- Specify a disk pool to contain the schema.
- Specify a description.
- Click OK.