Skip to Main Content
  • Questions
  • dbms_system can set integer, boolean and list parameters in a foreign database session. What about varchar2 ?

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Alexei.

Asked: November 25, 2015 - 5:38 pm UTC

Last updated: November 26, 2015 - 5:05 am UTC

Version: 12.1.0.2

Viewed 1000+ times

You Asked

Is it possible to set a varchar2 parameter (e.g. optimizer_mode) in a foreign database session ?

dbms_system seems to lack set_varchar_param_in_session procedure.

and Connor said...

"dbms_system seems to lack set_varchar_param_in_session procedure. "

Yup.

...not much to say about that :-)

Sorry.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

No way ?

Alexei Polozov, November 26, 2015 - 12:18 am UTC

Is there any other way to accomplish that ?

A logon trigger would help, but we would like to modify optimizer_mode and/or to switch some patches off/on of an already connected user.

Connor McDonald
November 26, 2015 - 5:05 am UTC

For a connected session, I think you're out of luck.

I've seen people explicitly code support for this (ie, intermittently check a context variable and take action if its set), but I dont think we can push things into the session directly.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library