Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to send a broadcast message to oracle logons?

Status
Not open for further replies.

raygg

Technical User
Jun 14, 2000
397
US
I am an oracle dba and would like to know how to set up a broadcast message to all active users and anyone logging on - I never have run across this in the oracle doc manuals so there must be a way to do this with triggers and a system authority to change a users prompt or something like that.
I really would appreciate it if anyone has a solution to this.

Ray
 
It depends what sort of front-end they are using. You could probably do something with login triggers and dbms_output (if they are using sqlplus or some other utility which can display the messages). Also, I think sql*plus has login.sql and glogin.sql files which can executed automatically for each user.
 
I forgor about the glogin and login files - that might be used to reference a literal value where a broadcast msg can be placed.

For those already logged on - they come in via sqlplus, odbc, whatever - could be anything as we have mostly if not all 3rd party vendor apps. How do you break into sessions and advise them the db has to be taken down?

raygg
 
I used a script that notified all Windows clients by calling "net send" for all machines listed in v$session. I can not find it, but the idea is quite simple. Unfortunately it's not possible for 3-tier clients.


Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top