How to enable/start log trace/tracing in Oracle database

Use the following commands to enable trace in Oracle database, which generates logs that contains useful information for troubleshooting and debugging.