<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need to send message to connected SQL sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959178#M813981</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Before shutdown or anytime if I want to send message to connected SQL sessions, how can I do ? &lt;BR /&gt;Assume that some users connected from windows, some from Unix. &lt;BR /&gt;How can we send messages to all connected sessions. From which Oracle userid we have to run the script, &lt;BR /&gt;please provide me the script. &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;R.Ezhil &lt;BR /&gt;</description>
    <pubDate>Fri, 25 Apr 2003 02:08:59 GMT</pubDate>
    <dc:creator>Ezhilarasan</dc:creator>
    <dc:date>2003-04-25T02:08:59Z</dc:date>
    <item>
      <title>Need to send message to connected SQL sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959178#M813981</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Before shutdown or anytime if I want to send message to connected SQL sessions, how can I do ? &lt;BR /&gt;Assume that some users connected from windows, some from Unix. &lt;BR /&gt;How can we send messages to all connected sessions. From which Oracle userid we have to run the script, &lt;BR /&gt;please provide me the script. &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;R.Ezhil &lt;BR /&gt;</description>
      <pubDate>Fri, 25 Apr 2003 02:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959178#M813981</guid>
      <dc:creator>Ezhilarasan</dc:creator>
      <dc:date>2003-04-25T02:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to send message to connected SQL sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959179#M813982</link>
      <description>Oracle does not provide any way to do this and I can't think of any way to add it. &lt;BR /&gt;In any case, while some of the Oracle sessions may be interactive users who can receive messages, there may be other batch sessions, and sending a message to these would be meaningless.&lt;BR /&gt;At the unix level you could possibly identify users using ps and grep, but then again if you have more than one database on the same box, you would have to be very careful to pick out the required sessions.&lt;BR /&gt;Sorry I can't give any better news ;-(&lt;BR /&gt;--Graham</description>
      <pubDate>Mon, 28 Apr 2003 06:14:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959179#M813982</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-04-28T06:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to send message to connected SQL sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959180#M813983</link>
      <description>well I never cross any oracle sql command to broadcast a message to user.On unix you can used wall or write command - provide you know user tty.&lt;BR /&gt;sorry couldn't be any help.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Mon, 28 Apr 2003 07:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959180#M813983</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-04-28T07:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to send message to connected SQL sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959181#M813984</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;There is no broadcast facility like that.  The clients connected to Oracle are vast and varied.  What would it mean to broadcast to an application server?  A client connected via sqlplus?  Or forms?  &lt;BR /&gt;&lt;BR /&gt;Two things that can be done:&lt;BR /&gt;A. Using DBMS_ALERT&lt;BR /&gt;&lt;BR /&gt;The client itself MUST be listening for such a message which could be sent using DBMS_ALERT (but not via DBMS_PIPES).  DBMS_ALERT is a "broadcast" method (but the client must check and then display the message -- so SQLPlus would never participate in this).  DBMS_PIPE is a point to point conversation.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The "dba" would just "exec dbms_alert.signal( 'some_alert', 'some_message' );"  but if no one was listening to him, it would not matter.  Each and every client would have had to of issued:&lt;BR /&gt;&lt;BR /&gt;  dbms_alert.register( 'some_alert' );&lt;BR /&gt;&lt;BR /&gt;upon connecting and would periodically have to issue:&lt;BR /&gt;&lt;BR /&gt;  dbms_alert.waitone( .... );&lt;BR /&gt;&lt;BR /&gt;to see if a message had been sent.  There are asyncronous callbacks available in OCI (Oracles C Call level interface) but not in general. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;B. Provided that:&lt;BR /&gt;- your clients are on Windows&lt;BR /&gt;- your network topology allows&lt;BR /&gt;- your IT-policy allows&lt;BR /&gt;(etc...)&lt;BR /&gt;you might want to try this:&lt;BR /&gt;&lt;BR /&gt;select 'NET SEND '||machine||' Please log out from &lt;APPLICATION&gt; immediately! Administrator.' from v$session where type='USER';&lt;BR /&gt;&lt;BR /&gt;...or if you want to use e.g. NT-usernames, use OSUSER instead of MACHINE.&lt;BR /&gt;&lt;BR /&gt;Copy the result and paste it into command prompt. Users will see your message in a popup dialog box.&lt;BR /&gt;&lt;BR /&gt;This works only in some specific environments, but I have used it successfully in several offices. Likewise, I have used this technique in several other scripts to dynamically build DML commands before issuing them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;Yogeeraj&lt;/APPLICATION&gt;</description>
      <pubDate>Mon, 28 Apr 2003 07:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-to-send-message-to-connected-sql-sessions/m-p/2959181#M813984</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-28T07:35:36Z</dc:date>
    </item>
  </channel>
</rss>

