Oracle Solution for Error ora-01509

Solution for Oracle Error ORA-01509

ORA-01509: specified name 'string' does not match actual 'string'

What triggered the Error:

The database name specified in ALTER DATABASE does not match the name of the currently mounted database.

What should we do to fix it:

Correct the database name spelling or DISMOUNT the mounted database.