Orchadmin
is a command line utility provided by datastage to research on data sets.
Using this command, you can view,copy,delete,modify the dataset through Command.
The
general callable format is : $orchadmin
[options] [descriptor file]
1.
Before using orchadmin, you should make sure that either the working directory
or the $APT_ORCHHOME/etc contains the file “config.apt” OR
The
environment variable $APT_CONFIG_FILE should be defined for your session.
Orchadmin commands
The
various commands available with orchadmin are
1. CHECK: $orchadmin check
Validates
the configuration file contents like , accesibility of all nodes defined
in the configuration file, scratch disk definitions and accesibility of all the
nodes etc. Throws an error when config file is not found or not defined
properly
2. COPY : $orchadmin copy
Makes
a complete copy of the datasets of source with new destination descriptor file
name. Please not that
a.
You cannot use UNIX cp command as it justs copies the config file to a new
name. The data is not copied.
b.
The new datasets will be arranged in the form of the config file that is in use
but not according to the old confing file that was in use with the source.
The
unix rm utility cannot be used to delete the datasets. The orchadmin delete or
rm command should be used to delete one or more persistent data sets.
-f
options makes a force delete. If some nodes are not accesible then -f forces to
delete the dataset partitions from accessible nodes and leave the other
partitions in inaccesible nodes as orphans.
-x
forces to use the current config file to be used while deleting than the one
stored in data set.
No comments:
Post a Comment