Database Administration (MOSC)

MOSC Banner

Hostname from v$instance after cluster switch

edited Oct 5, 2018 5:06AM in Database Administration (MOSC) 5 commentsAnswered

Hello,

I am trying to get hostname from v$instance after cluster switch.

I use for it trigger "after startup on database". Trigger just runs scheduler job and job executes stored procedure, that contains following row select host_name into v_host_name from v$instance; eventually SELECT sys_context('USERENV', 'SERVER_HOST') into v_host_name from dual; but in both cases I get value/name of the old node, not of the node which is active.

- according to the logs of the scheduler job, the job and procedure are executed successfully

- I tried to execute job manually instead of trigger and I get

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center