Use the installsp stored procedure to distribute a package to all nodes of an MPP system.
Syntax
REPLACE PROCEDURE installsp (IN name VARCHAR(250) CHARACTER SET LATIN, IN version VARCHAR(250) CHARACTER SET LATIN, IN filename VARCHAR(250) CHARACTER SET LATIN, IN path VARCHAR(250) CHARACTER SET LATIN, IN source BLOB(200000), IN operation VARCHAR(250) CHARACTER SET LATIN, OUT pform VARCHAR(20) CHARACTER SET LATIN, OUT cfgpath VARCHAR(200) CHARACTER SET LATIN )
Syntax Elements
- name
- Name for the package.
- version
- Version you assign to the package.
- filename
- Name to use for the server-side destination file.
- path
- Optional path to use for the server-side destination file. The path you specify is relative to the following fixed path:
- source
- USING variable name preceded by a COLON character.
- operation
- Operation to perform on the package. Valid values follow (they are case insensitive):
- 'CREATE', which specifies to copy the contents of the package specified by source to all nodes in the location specified by path with the name specified by filename. If the file already exists, do not overwrite it.
- 'REPLACE', which specifies to copy the contents of the package specified by source to all nodes in the location specified by path with the name specified by filename. Overwrite the target file if it exists.
- 'DROP', which specifies to delete the file named filename in the location specified by path.
- 'CHECK', which specifies to not perform an operation on the package, but simply return the target platform type in the pform argument.
- pform
- Target platform type, for example LINUX64.
- cfgpath
- Full path on the server where the package has been distributed, formed by appending the relative path specified by path to the fixed path for the target platform.