Informix Error -25785: Cannot create external routine (%s) without the EXTEND role.
Cause and resolution
Cannot create external routine (%s) without the EXTEND role.
You cannot create an external function or a procedure without the privileges of the EXTEND role.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25785 fires when a user without the EXTEND role tries to create an external function or
procedure — per the official guidance.
- A user lacking the
EXTENDrole creating an external function/procedure, per the official guidance — the direct, only cause.
Solutions / Resolution
- Have a DBSA grant the user the
EXTENDrole, per the official guidance, before creating the external routine.
Examples
N/A
No specific triggering statement is documented beyond a user without EXTEND creating an
external routine.
Diagnostic Checks
- Check whether the executing user has the
EXTENDrole, and have a DBSA grant it if not.
Related Errors / Related Topics
- -25786 — "Only DBSA can grant/revoke permissions for the EXTEND role." A related
EXTEND-role error, on who can manage the role's grants. - -25788 — "Cannot unload or reload module without the EXTEND role." A related
EXTEND-role restriction, on module unload/reload rather than routine creation. - -25791 — "Cannot execute privileged built-in Java routine without the EXTEND role
or DBSA authority." A related
EXTEND-role restriction, on specific built-in Java routines.
A user without the EXTEND role tried to create an external routine — have a DBSA grant
the role first.