For sure you can either use net trace or sql trace.
With the net trace one can generate log on the client side or the server side.
With the SQL trace you can generate a log only on the server side.
Read the documentation for further details
(I suggest the Master Index to start with)
or look for these terms “Oracle tracing” “Oracle net tracing” “oracle sql trace” in your preferred web search site.