Closed freeNestor closed 10 months ago
What parameter are you trying to set? Is it already an option in the connect string?
Take a look at: https://github.com/sijms/go-ora/blob/47c72957312fce73efac1a4cb51d322a651880b1/v2/connection_string.go#L405
What parameter are you trying to set? Is it already an option in the connect string?
I want to set events and cursor_sharing etc. Example: ALTER SESSION SET EVENTS '10503 trace name context forever, level 4000' ALTER SESSION SET cursor_sharing=force
like godror can achieve this:
sorry for late replay ok good idea I will add it in next release
Thanks very much, I'll wait for it.
fixed in v2.7.20
I want to init session parameters like ' ALTER SESSION SET key=value' and keep this when connection pool reconnect, so is there a way to achieve this? I known use db.Exec() can execute this sql, but if pool reconnect, this will reset session.