Home | Previous Page | Next Page   Developing a User-Defined Routine >

Planning the Routine

When you write a UDR, consider the following:

The routine name and routine parameters make up the routine signature for the routine. The routine signature uniquely identifies the UDR in the database. For more information, see The Routine Signature.

Consider the following questions about routine naming and design:

The maximum size of a UDR depends on the language in which it is written in and the platform where it is used. For UDRs written in C, you can create very large shared objects. The limit depends on the compiler and the machine architecture. The size limit for UDRs written in Java is similarly high, depending on the size of the .jar files that you can create. For SPL you are limited to the maximum size of an SQL statement at 64 kilobytes.

If you plan to enable the implicit or explicit execution of a UDR across databases, all user-defined data types and casts must be defined in all of the participating databases of the same database server instance.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]