alter database Sample.Basic set io_access_mode direct;
Example:
create user 'O\'Brian' identified by 'password';
See complete quoting and escape-sequence rules for both MaxL and the MaxL Shell.
The MaxL Shell has invocation flags that can be used to accomplish various tasks in advance before the shell is launched; for example, the -l flag allows you to specify a login host as an argument to the shell. With Release 6.5, setting the message level returned by the shell is also available as an invocation option, the -m flag.
Example:
essmsh -m error
Sets error messages as the only type of message to be returned by the MaxL Shell.
Values for the -m flag include: default, all, warning, error, and fatal. The default value is all (same as default).
In the MaxL Shell, you can use variables as placeholders for any data that is subject to change or to which you refer often. Prior to Release 6.5, the MaxL Shell allowed variables to be either positional parameters or environment variables. In Release 6.5, the flexibility of positional parameters is increased; also, a new type of variable can be used: locally defined shell variables.
Positional Parameters:
These variables are passed in to the shell at invocation time as arguments, and can be referred to generically by the subsequent script or interactive MaxL Shell session using $n, where n is the number representing the order in which the argument was passed on the command line.
For example, if the shell is started with the variable values provided,
essmsh -a arg1 arg2
The MaxL statements in the subsequent session can use $1 to refer to arg1, $2 to refer to arg2.
Additionally, with Release 6.5, you can change $1 to mean arg_new in the same MaxL Shell session, using the following syntax:
set 1 = arg_new;
In other words, you can reset the value associated with the positional parameters, without needing
to exit the shell and start again, passing new arguments.
Note: If you nest MaxL Shell scripts or interactive sessions, the nested shell does not recognize positional parameters of the parent shell. The nested shell should be passed separate arguments, if positional parameters are to be used.
Locally Defined Shell Variables:
With Release 6.5, you can create variables of any name in the MaxL Shell without the use of arguments or positional parameters. These variables persist for the duration of the shell session, including in any nested shell sessions.
Example:
MaxL>login user1 identified by password1;
MaxL>set var1 = sample;
MaxL>echo $var1; /* see what the value of $var1 is */
sample
MaxL>display application $var1; /* MaxL displays application "sample" */
Note: Locally defined variables can be named using alphabetic characters, numbers, and the underscore (_). Variable values can be any characters, but take note of the usual quoting and syntax rules that apply for the MaxL Shell.
display function on system;
Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.