To enable logging for Flashback Database, set the DB_FLASHBACK_RETENTION_TARGET initialization parameter and issue the ALTER DATABASE FLASHBACK ON statement.
Ensure the database is operation in ARCHIVELOG mode,To display the status of archiving:
If is not configured make sure you follow this tutorial before you proceed.