Skip to content

How to Change UNDO Tablespace in Oracle Multitenant (AWS RDS)?

0

I am working with an Oracle multitenant database (CDB/PDB) hosted on AWS RDS.

I would like to understand the correct approach to change or switch the UNDO tablespace.

Specifically:

  1. Is it possible to create and switch to a new UNDO tablespace in AWS RDS for Oracle?
  2. Are there any limitations in RDS compared to on-premise Oracle for UNDO management?
  3. What is the recommended approach if local undo mode is enabled in a multitenant environment?
  4. Are there any best practices to follow when modifying UNDO tablespaces in RDS?

Any guidance or documentation references would be helpful.

asked 2 months ago103 views

2 Answers
1
Accepted Answer
  1. Yes it is possible to change the UNDO tablespace in Oracle RDS multitenant database.

If you are using CDB config ,RDS for Oracle provides procedures for changing the UNDO tablespace for each PDB.

Changes are possible according to the following procedure, so please check that there are no problems with the test environment, etc., and then consider applying it to the prod instance.

  1. Creating a new UNDO tablespace

SQL> create undo tablespace <"NEW_UNDO">;

  1. Switch to the newly created UNDO tablespace

SQL> exec rdsadmin.rdsadmin_util.set_pdb_undo_tablespace('<"NEW_UNDO">');

  1. Delete the original UNDO tablespace

SQL> drop tablespace <"OLD_UNDO">;

If a transaction exists at the time of deleting the original UNDO tablespace, the deletion will result in an error. Also, if an UNDO tablespace is deleted by drop tablespace in a situation where a query requiring rollback information (SELECT statement that has been running for a long time, etc.) is being executed, the query may lead to an error [1]. Therefore, we hope you can consider deleting it when the query has not been executed.

  • Are there any limitations in RDS compared to on-premise Oracle for UNDO management? There is no major limitation apart from the procedure is bit different in Oracle RDS.

[1] Managing UNDO https://docs.oracle.com/cd/F19136_01/admin/managing-undo.html#GUID-825E2A2F-7AEB-4D7A-B8BA-B1533D7BE512

AWS
SUPPORT ENGINEER

answered 2 months ago

EXPERT

reviewed 2 months ago

0

Based on the available information about AWS RDS for Oracle, I need to provide some important context about UNDO tablespace management in RDS environments.

AWS RDS for Oracle uses Oracle Managed Files (OMF) for database file management, which affects how tablespaces are created and managed. While RDS provides specific procedures through the rdsadmin package for various database administration tasks, the sources available don't contain specific information about creating or switching UNDO tablespaces in RDS for Oracle.

What I can confirm from the documentation:

General Tablespace Management in RDS for Oracle:

  • RDS provides Amazon RDS-specific methods for common DBA tasks through the rdsadmin.rdsadmin_util package
  • You can create and manage permanent tablespaces, temporary tablespaces, and set default tablespaces using RDS procedures
  • RDS doesn't provide shell access to DB instances and restricts access to certain system procedures and tables

Key Limitations: Since AWS RDS is a managed service, you don't have full administrative access like you would in an on-premise environment. This means certain low-level database operations may be restricted or need to be performed through specific RDS procedures.

Recommended Approach: For specific guidance on UNDO tablespace management in your RDS for Oracle multitenant environment, I recommend:

  1. Checking the AWS RDS for Oracle documentation specifically for UNDO management procedures
  2. Contacting AWS Support through the AWS Support Center (https://console.aws.amazon.com/support/) for detailed guidance on UNDO tablespace operations in multitenant configurations, as this is a specialized administrative task that may have specific RDS procedures or limitations

The management of UNDO tablespaces in a multitenant CDB/PDB environment on RDS may require specific procedures that aren't covered in the general tablespace management documentation.
Sources
Working with tablespaces in RDS for Oracle - Amazon Relational Database Service
Administering your RDS for Oracle DB instance - Amazon Relational Database Service

answered 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.