Cannot rename databases that use the secondary access method

You cannot rename a database if the database has any tables that were created using the primary access method (also known as virtual table interface) or indexes using the secondary access method (also known as virtual index interface). R-tree indexes are implemented using the secondary access method. Therefore, you cannot rename databases with R-tree indexes.