Skip to content

No authorized routine named "RDSADMIN.BACKUP_DATABASE" of type "PROCEDURE" having compatible arguments was found. SQLCODE=-440, SQLSTATE=42884, DRIVER=4.33.31

0

Hi AWS Support Team,

I am trying to back up my RDS for Db2 database using the rdsadmin.backup_database stored procedure as described in the official AWS documentation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-managing-databases.html#db2-backing-up-database


ERROR: SQL Error [42884]: No authorized routine named "RDSADMIN.BACKUP_DATABASE" of type "PROCEDURE" having compatible arguments was found. SQLCODE=-440, SQLSTATE=42884, DRIVER=4.33.31


STEPS I FOLLOWED:

  1. Connected to the rdsadmin database using master username and password: db2 "connect to rdsadmin user <master_username> using <master_password>"

  2. Called the backup stored procedure: db2 "call rdsadmin.backup_database(?, 'database_name', 's3_bucket_name', 's3_prefix', 'backup_type', 'compression_option', 'util_impact_priority', 'num_files', 'parallelism', 'num_buffers')"


ENVIRONMENT DETAILS:

  • Service: Amazon RDS for Db2
  • Db2 Version: [your Db2 engine version]
  • RDS Instance ID: [your instance ID]
  • Region: [your AWS region]
  • JDBC Driver version: 4.33.31

QUESTIONS:

  1. Is the rdsadmin schema and BACKUP_DATABASE procedure available on my current RDS for Db2 instance?
  2. Are there any prerequisites (IAM roles, S3 integration, parameter group settings) that need to be configured before this procedure becomes available?
  3. Is there a minimum RDS for Db2 engine version required to use this procedure?

Please advise on the correct steps to resolve this.

Thank you.

1 Answer
0

Based on the error you're encountering, there are a few important points to address:

Connection Requirement: Before calling rdsadmin.backup_database, you must be connected to the rdsadmin database. The procedure is only available when you're connected to this specific database. After completing your backup operation, you should terminate the connection.

Correct Procedure Syntax: The rdsadmin.backup_database stored procedure has specific required and optional parameters. The required parameters are:

  • out_task_id (output parameter for the task ID)
  • database_name (the name of the database to back up)
  • s3_bucket_name (the Amazon S3 bucket name)
  • s3_prefix (the Amazon S3 prefix)

Optional parameters include:

  • backup_type (ONLINE or OFFLINE, default is ONLINE)
  • compression_option (YES or NO, default is YES)
  • util_impact_priority (1-100, default is 50)
  • num_files (number of backup files, default is 1)
  • parallelism (degree of parallelism, default is 1)
  • num_buffers (number of buffers, default is 2)

Prerequisites: To use the backup functionality, you need to:

  1. Ensure your DB instance has backups enabled with a retention period of at least 1 day
  2. Have the appropriate Amazon S3 integration configured for your RDS for Db2 instance
  3. Verify that you have the necessary IAM roles and permissions set up for S3 access

Checking Task Status: After initiating a backup, you can check its status using the rdsadmin.get_task_status stored procedure with the task ID returned from the backup operation.

If you continue to experience issues after verifying these requirements, you may want to check for any stored procedure errors specific to your configuration or contact AWS Support for further assistance with your specific instance setup.
Sources
Troubleshooting for Amazon RDS for Db2 - Amazon Relational Database Service
Stored procedures for databases for RDS for Db2 - Amazon Relational Database Service

answered 2 months ago
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.