Considerations for Amazon RDS for Db2 stored procedures
Before using the Amazon RDS system stored procedures for RDS for Db2 DB instances running the Db2 engine, review the following information:
-
Before running the stored procedures, you must first connect to the
rdsadmindatabase as the master user for your RDS for Db2 DB instance. In the following example, replacemaster_usernameandmaster_passwordwith your own information.db2 "connect to rdsadmin usermaster_usernameusingmaster_password" -
The stored procedures return the
ERR_MESSAGEparameter, which indicates whether the stored procedure ran successfully or not and why it didn't run successfully.Examples
The following example indicates that the stored procedure ran successfully.
Parameter Name : ERR_MESSAGE Parameter Value : - Return Status = 0The following example indicates that the stored procedure didn't run successfully because the Amazon S3 bucket name used in the stored procedure wasn't valid.
Parameter Name : ERR_MESSAGE Parameter Value : Invalid S3 bucket name Return Status = -1006For error messages returned when calling stored procedures, see Stored procedure errors.
For information about checking the status of a stored procedure, see rdsadmin.get_task_status.