Home | Previous Page | Next Page   Utility Reference > onutil: Check, Define, and Modify Storage Objects > How to Invoke onutil >

Running onutil with Interactive Input

To invoke onutil for interactive input, enter the onutil command with no arguments. The onutil command collects input lines until you either include a semicolon to indicate that you have entered a complete onutil command or type quit or the end-of-file character (typically CTRL-D) to exit.

Every new line starts with a prompt that consists of the line number and the > symbol. The line numbers help you locate the position of syntax errors. You can enter any number of commands during a single invocation of onutil.

As each command completes successfully, onutil sends a completion message to the standard output. If a syntax error or internal database server error occurs during interactive operations, onutil displays an error message and prompts for a new command.

The following example shows onutil running with interactive input:

% onutil
1> CREATE DBSPACE acctgdbsp_1
2> CHUNK "/dev/bdbs_1" SIZE 1500;
DBspace successfully added.
3> QUIT;
%

Warning:
The onutil utility cannot check objects that are named "IN," "WITH," and "DATABASE," because they are onutil keywords. Before you invoke onutil, rename any objects that contain these keywords. For example, if your database is named with, rename the database before you check it with onutil.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]