<?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 Re: Oracle8 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179157#M748481</link>
    <description>I checked these and a couple others and still find nothing that looks like a field that would show last login date/time.&lt;BR /&gt;&lt;BR /&gt;I am trying to clean out inactive users.&lt;BR /&gt;Our ERP system on UNIX lets me get the login from the OS. Many of the users access the Database thru the report writer and never login thru the OS. I can get the connection information from the Listener log. That is not easy. I was think that all the neat thing that you can do with Oracle and SQL that the must be a table out there with the last login information.&lt;BR /&gt;&lt;BR /&gt;Guess I can keep looking.&lt;BR /&gt;Marty</description>
    <pubDate>Fri, 30 Jan 2004 16:53:35 GMT</pubDate>
    <dc:creator>Marty Metras</dc:creator>
    <dc:date>2004-01-30T16:53:35Z</dc:date>
    <item>
      <title>Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179153#M748477</link>
      <description>In Oracle8 you can see when a users is created in the DBA_USERS table.&lt;BR /&gt;Is there a table in the database when you can see when the users loggen into the database last?&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 30 Jan 2004 14:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179153#M748477</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2004-01-30T14:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179154#M748478</link>
      <description>&lt;BR /&gt;Can you check these tables:&lt;BR /&gt;&lt;BR /&gt;V$STATNAME &lt;BR /&gt;V$SESSTAT &lt;BR /&gt;and &lt;BR /&gt;V$SESSION &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 15:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179154#M748478</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-01-30T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179155#M748479</link>
      <description>No not there. That shows the session information.&lt;BR /&gt;I'm looking for a table that shows when they connected to the database last.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 30 Jan 2004 15:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179155#M748479</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2004-01-30T15:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179156#M748480</link>
      <description>&lt;BR /&gt;I suspect you need to enable a level of AUDIT to retain that info in the DB.&lt;BR /&gt;&lt;BR /&gt;try SQL&amp;gt; DESCRIBE USER_AUDIT_SESSION&lt;BR /&gt;&lt;BR /&gt;That looks like the table you would want filled in, but is has no rows on my box.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I found that table doign a few probes like:&lt;BR /&gt;select TABLE_NAME, COLUMN_NAME from ALL_TAB_COLS where COLUMN_NAME = 'USERNAME'&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;select TABLE_NAME, COLUMN_NAME from ALL_TAB_COLS where COLUMN_NAME like '%LAST%'&lt;BR /&gt;&lt;BR /&gt;having started with:&lt;BR /&gt;select TABLE_NAME from DICT where TABLE_NAME like '%LOGIN%';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2004 16:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179156#M748480</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-01-30T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179157#M748481</link>
      <description>I checked these and a couple others and still find nothing that looks like a field that would show last login date/time.&lt;BR /&gt;&lt;BR /&gt;I am trying to clean out inactive users.&lt;BR /&gt;Our ERP system on UNIX lets me get the login from the OS. Many of the users access the Database thru the report writer and never login thru the OS. I can get the connection information from the Listener log. That is not easy. I was think that all the neat thing that you can do with Oracle and SQL that the must be a table out there with the last login information.&lt;BR /&gt;&lt;BR /&gt;Guess I can keep looking.&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 30 Jan 2004 16:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179157#M748481</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2004-01-30T16:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179158#M748482</link>
      <description>Hi Marty,&lt;BR /&gt;to easy fix your problem I suggest you to create a trigger to be onvoked at logon to store in a table the info you need.&lt;BR /&gt;This is a short example about this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;create table t_users_logon     &lt;BR /&gt;  (ul_user_name   varchar2(30),&lt;BR /&gt;   ul_logon_date  date         &lt;BR /&gt;  )                            &lt;BR /&gt;  storage (initial     5M      &lt;BR /&gt;           next        1M      &lt;BR /&gt;           pctincrease 0       &lt;BR /&gt;           maxextents  250     &lt;BR /&gt;          )                    &lt;BR /&gt;tablespace users;              &lt;BR /&gt;create or replace trigger t_logontrigger&lt;BR /&gt;after logon on database&lt;BR /&gt;declare&lt;BR /&gt; l_count number;&lt;BR /&gt;begin&lt;BR /&gt;  select count(*)&lt;BR /&gt;    into l_count&lt;BR /&gt;    from t_users_logon&lt;BR /&gt;   where ul_user_name=user;&lt;BR /&gt;  if l_count &amp;gt; 0 then&lt;BR /&gt;    update t_users_logon&lt;BR /&gt;       set ul_logon_date=sysdate&lt;BR /&gt;     where ul_user_name=user;&lt;BR /&gt;  else&lt;BR /&gt;    insert into t_users_logon values (user,sysdate);&lt;BR /&gt;  end if;&lt;BR /&gt;  commit;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;in this way you wil; be able to see the last logon of the user.&lt;BR /&gt;Feel free to add all the fields you need in the table. Look for trigger at logon to see all the field available.&lt;BR /&gt;&lt;BR /&gt;I hope this help you.&lt;BR /&gt;Art&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Feb 2004 07:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179158#M748482</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2004-02-02T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle8 question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179159#M748483</link>
      <description>Thanks Art,&lt;BR /&gt;That might be the way to go. I haven done any triggers before this would be a good first one.&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 03 Feb 2004 09:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle8-question/m-p/3179159#M748483</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2004-02-03T09:23:36Z</dc:date>
    </item>
  </channel>
</rss>

