Re: Where are Views, stored procedures, stored?
- From: CRPence <crpence@xxxxxxxxxxxx>
- Date: Thu, 16 Aug 2007 07:38:22 -0500
SQL VIEW and TABLE are objects of type *FILE; a VIEW is implemented as a LF [Logical File] extended attribute, and the TABLE is implemented as a PF [Physical File] extended attribute. The SQL INDEX in DB2 for i5/OS is also of type *FILE, implemented as a keyed LF.
SQL Stored Procedures are objects of type *PGM
SQL Functions are modules as part of object type *SRVPGM
External Stored Procedures and External User Defined Functions are entries in an SQL Catalog TABLE [the SYSROUTINE TABLE stores procedure and function entries as rows, SYSPROCS VIEW and SYSFUNCS VIEW divide those rows] which may or may not have a self-describing *PGM or *SRVPGM associated. If the external/referenced object exists before the CREATE statement, and the reference object is capable of becoming self-described [a message is issued during CREATE if not], then future save and restore activity will enable the object to self-register upon [create at/for] restore. This does not attempt to explain REXX nor JAVA, which may be different.
The aforementioned External Object Types [*FILE, *PGM, *SRVPGM] are stored in *LIB objects, in the /QSYS.LIB file system. The SAVLIB and SAVOBJ commands are used to save almost any external object type, such as *FILE. RSTLIB and RSTOBJ commands are the counterparts, used to restore the objects. SAV and RST commands can be used to save and restore objects from that, and the other file systems; maybe not for /QDLS, but if not, it has SAVDLO and RSTDLO.
Regards, Chuck
--
All comments provided "as is" with no warranties of any kind whatsoever and may not represent positions, strategies, nor views of my employer
CENTRINO wrote:
Where are stored procedures, views etc, stored? Are they objects for the.
OS/400 as Logical files or Physical files? how to save and restore them?
- References:
- Where are Views, stored procedures, stored?
- From: CENTRINO
- Where are Views, stored procedures, stored?
- Prev by Date: Re: Where are Views, stored procedures, stored?
- Next by Date: Looking for left outer join help on this sql.
- Previous by thread: Re: Where are Views, stored procedures, stored?
- Next by thread: Looking for left outer join help on this sql.
- Index(es):
Relevant Pages
|