This example creates a specific definer authorization name sales with all external routines that contain the external security clause EXTERNAL SECURITY DEFINER sales. The authorization object name sales is part of the text specified for the external security clause. This specification causes the system to validate the authorization object SYSLIB.sales in the data dictionary and then, once it has been validated, to use the specified user context to run the external routine.
CREATE AUTHORIZATION SYSLIB.sales AS DEFINER USER 'SalesDept' PASSWORD 'ikcerednep';