Deleting database objects
After you create database objects on your system, you might want to delete them to save system resources. You need delete authority to perform these tasks.
To keep the information in these tables, create a third schema and copy the tables and views to it.
- To delete the INVENTORY_LIST table from the LIBRARY1 schema, follow these steps:
- From iSeries™ Navigator, expand the system that you want to use.
- Expand Databases and the database that you want to work with.
- Expand Schemas and select LIBRARY1.
- Select Tables.
- Right-click INVENTORY_LIST and select Delete or press the Delete key.
- In the Object Deletion Confirmation window, select Delete. The INVENTORY_LIST table is deleted.
- To delete the SUPPLIERS table from LIBRARY1 and delete LIBRARY1, follow these steps:
- Right-click SUPPLIERS and select Delete or press the Delete key.
- In the Object Deletion Confirmation window, select Yes. A new window opens, indicating that the view LOWER_COST is dependent on SUPPLIERS. The view should also be deleted.
- Click Delete. SUPPLIERS and LOWER_COST are deleted, and LIBRARY1 is empty.
- Right-click LIBRARY1 and select Delete.
- In the Object Deletion Confirmation window, select Yes. LIBRARY1 is deleted.
- To delete the SAMPLELIB schema, follow these steps:
- Navigate to SAMPLELIB in the Schemas menu.
- Right-click SAMPLELIB and select Delete.
- In the Object Deletion Confirmation window, select Delete. A new window opens, indicating that SAMPLELIB contains the INVENTORY_LIST table and the RECENT_ORDERS view and that RECENT_ORDERS is dependent on INVENTORY_LIST.
- Click Yes to delete SAMPLELIB, INVENTORY_LIST, and RECENT_ORDERS.
Parent topic:
Getting started with iSeries Navigator