<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Doug's Oracle Blog (Entries tagged as Audit Vault)</title>
    <link>http://oracledoug.com/serendipity/</link>
    <description></description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:doug@oracledoug.com" />
    <generator>Serendipity 1.5.2 - http://www.s9y.org/</generator>
    <managingEditor>Doug Burns</managingEditor>
<webMaster>Doug Burns</webMaster>
<pubDate>Thu, 11 Jun 2009 02:36:14 GMT</pubDate>

    <image>
        <url>http://oracledoug.com/serendipity/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Doug's Oracle Blog - </title>
        <link>http://oracledoug.com/serendipity/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Adding a new Oracle host to Audit Vault</title>
    <link>http://oracledoug.com/serendipity/index.php?/archives/1466-Adding-a-new-Oracle-host-to-Audit-Vault.html</link>
    
    <comments>http://oracledoug.com/serendipity/index.php?/archives/1466-Adding-a-new-Oracle-host-to-Audit-Vault.html#comments</comments>
    <wfw:comment>http://oracledoug.com/serendipity/wfwcomment.php?cid=1466</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://oracledoug.com/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=1466</wfw:commentRss>
    

    <author>dougburns@yahoo.com (Doug Burns)</author>
    <content:encoded>
    This one&#039;s been outstanding for a while. After &lt;a href=&quot;http://oracledoug.com/serendipity/index.php?/archives/1461-UKOUG-Days-4-and-5.html&quot;&gt;my presentation on Audit Vault at UKOUG&lt;/a&gt;, the AV Product Manager Tammy Bednar sent me a couple of corrections to the configuration section. Rather than just amend the slides, I was keen to wait until I had another chance to configure a new source and collectors, which finally arrived last week. &lt;br /&gt;&lt;br /&gt;Looking at my slides made me laugh and then cringe. Two step 4s? No setup of the source at the end? Mmm, not very good and an almost inevitable consequence of updating my slides too late in the day.&lt;br /&gt;&lt;br /&gt;I&#039;ve corrected the slides and uploaded them to the UKOUG website and, for those who might arrive via a Google search, these are the steps for Audit Vault 10.2.3.1 (but probably work just as well for 10.2.3). I would normally suggest you ignore quick cook-book instructions like this and read the documentation. It&#039;s probably still the best approach, but I don&#039;t think I&#039;m the only person who finds the current version of the docs a little opaque so a reduction might be useful here. I&#039;m sure I&#039;ll be referring back to it &lt;img src=&quot;http://oracledoug.com/serendipity/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;&lt;br /&gt;[AV Server] is your Audit Vault Server host - one of these.&lt;br /&gt;[Agent] is the server where your the databases to be audited are hosted - probably quite a few of these.&lt;br /&gt;[Source Database] is one of the many database instances running on the Agent server(s) that you want to collect audit information from.&lt;br /&gt;&lt;br /&gt;Where you need to supply your own values, these are shown in italics. I&#039;ve assumed here that I want to audit a PROD1 database on the prod host.&lt;br /&gt;&lt;br /&gt;1. [AV Server] Add the new agent.&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avca add_agent -agentname &lt;em&gt;agent_prod&lt;/em&gt; -agenthost &lt;em&gt;prod&lt;/em&gt;

AVCA started
Adding agent...
Enter agent user name: &lt;em&gt;agent_prod&lt;/em&gt;
Enter agent user password: &lt;em&gt;GHt5_5dhY&lt;/em&gt;
Re-enter agent user password: &lt;em&gt;GHt5_5dhY&lt;/em&gt;
Agent added successfully. &lt;/pre&gt;&lt;br /&gt;2. [Agent] Install the Agent software. You&#039;ll need the agent details that you added to the AV Server in step 1.&lt;br /&gt;&lt;br /&gt;3. [Source Database] Create an account in the database that you want to collect audit data from and then assign the correct privileges to it. (Note that you only need to run the last command if you&#039;ll be using the Redo Collector) &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;create user &lt;em&gt;avsrc_prod&lt;/em&gt; identified by &lt;em&gt;avpwd1&lt;/em&gt;;
@/oem/oracle/product/av/scripts/streams/source/zarsspriv.sql &lt;em&gt;avsrc_prod&lt;/em&gt; setup;
@/oem/oracle/product/av/scripts/streams/source/zarsspriv.sql &lt;em&gt;avsrc_prod&lt;/em&gt; redo_coll;&lt;/pre&gt;&lt;br /&gt;4. [AV Server] Verify that source database configuration is ok. &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avorcldb verify -src &lt;em&gt;prod:1521:PROD1.WORLD&lt;/em&gt; -colltype ALL&lt;/pre&gt;&lt;br /&gt;5. [AV Server] Add Source&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avorcldb add_source -src &lt;em&gt;prod:1521:PROD1.WORLD&lt;/em&gt; -desc &lt;em&gt;PROD1&lt;/em&gt; -agentname &lt;em&gt;agent_prod&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;6. [AV Server] Add Collectors. There are three collector types you could add. Here I&#039;m just adding the DB_AUD and OS_AUD collectors.&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avorcldb add_collector -srcname &lt;em&gt;PROD1.WORLD&lt;/em&gt; -agentname &lt;em&gt;agent_prod&lt;/em&gt; -colltype OSAUD 
         -orclhome &lt;em&gt;/oem/oracle/product/10.2.0.4&lt;/em&gt; -collname &lt;em&gt;PROD1_OSAUD&lt;/em&gt;

avorcldb add_collector -srcname &lt;em&gt;PROD1.WORLD&lt;/em&gt; -agentname &lt;em&gt;agent_prod&lt;/em&gt; -colltype DBAUD
         -collname &lt;em&gt;PROD1_DBAUD&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;7. [Agent] Complete Source configuration. This sets up tnsnames.ora and Wallet entries on the Agent machine.&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avorcldb setup -srcname &lt;em&gt;PROD1.WORLD&lt;/em&gt; -srcusr -wpwd &lt;em&gt;GHt5_5dhY&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;8. [AV Server] Start Agent&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avctl start_agent -agentname &lt;em&gt;agent_prod&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;9. [AV Server] Start Collectors&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;avctl start_collector -collname &lt;em&gt;PROD1_OSAUD&lt;/em&gt; -srcname &lt;em&gt;PROD1.WORLD&lt;/em&gt;
avctl start_collector -collname &lt;em&gt;PROD1_DBAUD&lt;/em&gt; -srcname &lt;em&gt;PROD1.WORLD&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;
Thanks again to Tammy for her help. 
    </content:encoded>

    <pubDate>Tue, 27 Jan 2009 19:00:00 +0000</pubDate>
    <guid isPermaLink="false">http://oracledoug.com/serendipity/index.php?/archives/1466-guid.html</guid>
    <category>Audit Vault</category>

</item>
<item>
    <title>Hanging Audit Vault Warehouse Refresh Job</title>
    <link>http://oracledoug.com/serendipity/index.php?/archives/1425-Hanging-Audit-Vault-Warehouse-Refresh-Job.html</link>
    
    <comments>http://oracledoug.com/serendipity/index.php?/archives/1425-Hanging-Audit-Vault-Warehouse-Refresh-Job.html#comments</comments>
    <wfw:comment>http://oracledoug.com/serendipity/wfwcomment.php?cid=1425</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://oracledoug.com/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=1425</wfw:commentRss>
    

    <author>dougburns@yahoo.com (Doug Burns)</author>
    <content:encoded>
    I&#039;ve been working with &lt;a href=&quot;http://www.oracle.com/technology/products/audit-vault/index.html&quot;&gt;Audit Vault 10.2.3&lt;/a&gt; on AIX recently and ran into a problem that someone else might one day. I decided to capture the output as best I can and blog about it later. (As I don&#039;t have the same system available any more, the formatting might leave a bit to be desired and there are one or two little steps missing that I would liked to have shown but I don&#039;t think they&#039;re crucial.)&lt;br /&gt;&lt;br /&gt;It was just a Pre-Production system that we could play around with but I noticed that there were no recent audit trail entries when I tried some tests. On closer inspection, the most recent audit record was a couple of days old, so it looked like the job which inserts new audit records into the Audit Vault Data Warehouse wasn&#039;t running properly. The first step was to connect to that database instance and check the status of the job.&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;SQL&amp;gt; select owner, job_name, elapsed_time from all_scheduler_running_jobs; 

OWNER&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; JOB_NAME 
------------------------------ ------------------------------ 
ELAPSED_TIME 
--------------------------------------------------------------------------- 
AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; REFRESH_WAREHOUSE_DATA 
+002 21:06:37.19&lt;/pre&gt;&lt;br /&gt;OK, so the Warehouse Refresh job has been running for a few days (2 days, 21 hours and 6 minutes). When I looked at the session for that job, it was waiting on &amp;quot;enq: PS - contention&amp;quot; which is (trumpet salute) a parallel execution wait event. &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;&amp;#160; 1&amp;#160; select sid, username, last_call_et, event, wait_time, seconds_in_wait, state, 
            blocking_session, blocking_session_status 
&amp;#160; 2&amp;#160; from v$session 
&amp;#160; 3* where sid=201 
SQL&amp;gt; / 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID USERNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAST_CALL_ET 
---------- ------------------------------ ------------ 
EVENT&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WAIT_TIME 
---------------------------------------------------------------- ---------- 
SECONDS_IN_WAIT STATE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BLOCKING_SESSION BLOCKING_SE 
--------------- ------------------- ---------------- ----------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 201 AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 249575 
enq: PS - contention&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 48361 WAITING&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169 VALID&lt;/pre&gt;&lt;br /&gt;It&#039;s a bit of a red herring because it&#039;s really waiting on the PX slave, so the real event should be in that session 169.&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;SQL&amp;gt; c/201/169 
&amp;#160; 3* where sid=169 
SQL&amp;gt; / 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID USERNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAST_CALL_ET 
---------- ------------------------------ ------------ 
EVENT&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WAIT_TIME 
---------------------------------------------------------------- ---------- 
SECONDS_IN_WAIT STATE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BLOCKING_SESSION BLOCKING_SE 
--------------- ------------------- ---------------- ----------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169 AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 249250 
cursor: pin X&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 WAITING&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UNKNOWN&lt;/pre&gt;&lt;br /&gt;So, looking at that made me Google around and come up with &lt;a href=&quot;http://www.orafaq.com/usenet/comp.databases.oracle.server/2007/06/13/0387.htm%20&quot;&gt;this&lt;/a&gt;. Which implies that I should look at bug number 5908030 which is stated as a duplicate of 5476091. Both RDBMS bugs and both will be fixed in (gulp) 11.2.&lt;br /&gt;&lt;br /&gt;The next job was to kill the currently running refresh job and restart it, particularly as this was just Pre-Prod and the lack of audit records in the Warehouse was holding up testing. I tried various approaches to stopping the job, running from the highest level more elegant approaches, down to brute force. &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;SQL&amp;gt; exec dbms_scheduler.stop_job(&#039;AVSYS.REFRESH_WAREHOUSE_DATA&#039;); 
BEGIN dbms_scheduler.stop_job(&#039;AVSYS.REFRESH_WAREHOUSE_DATA&#039;); END; 

* 
ERROR at line 1: 
ORA-27365: job has been notified to stop, but failed to do so immediately 
ORA-06512: at &quot;SYS.DBMS_ISCHED&quot;, line 164 
ORA-06512: at &quot;SYS.DBMS_SCHEDULER&quot;, line 483 
ORA-06512: at line 1 &lt;/pre&gt;&lt;br /&gt;Tried that a few times and decided it was probably well and truly stuck, particularly when the bugs were referring to systemstate dumps, so I tried killing the stuck slave, first &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;&amp;#160;1&amp;#160; select sid, username, last_call_et, event, wait_time, seconds_in_wait, state, 
           blocking_session, blocking_session_status 
 2&amp;#160; from v$session 
 3* where sid=201 
SQL&amp;gt; / 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID USERNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAST_CALL_ET 
---------- ------------------------------ ------------ 
EVENT&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WAIT_TIME 
---------------------------------------------------------------- ---------- 
SECONDS_IN_WAIT STATE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BLOCKING_SESSION BLOCKING_SE 
--------------- ------------------- ---------------- ----------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 201 AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 251777 
enq: PS - contention&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 50563 WAITING&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169 VALID 
SQL&amp;gt; 3 
&amp;#160; 3* where sid=201 
SQL&amp;gt; c/201/169 
&amp;#160; 3* where sid=169 
SQL&amp;gt; / 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID USERNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAST_CALL_ET 
---------- ------------------------------ ------------ 
EVENT&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WAIT_TIME 
---------------------------------------------------------------- ---------- 
SECONDS_IN_WAIT STATE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BLOCKING_SESSION BLOCKING_SE 
--------------- ------------------- ---------------- ----------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169 AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 251446 
cursor: pin X&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 WAITING&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UNKNOWN 

SQL&amp;gt; select sid, serial# from v$session where sid=169; 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID&amp;#160;&amp;#160;&amp;#160; SERIAL# 
---------- ---------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1585 

SQL&amp;gt; alter system kill session &#039;169,1585&#039;; 
alter system kill session &#039;169,1585&#039; 
* 
ERROR at line 1: 
ORA-00031: session marked for kill &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;I waited and tried a few more times, but that slave really didn&#039;t want to die ...&lt;/p&gt;
&lt;pre&gt;SQL&amp;gt; l 
&amp;#160; 1&amp;#160; select sid, username, last_call_et, event, wait_time, seconds_in_wait, state, 
            blocking_session, blocking_session_status 
&amp;#160; 2&amp;#160; from v$session 
&amp;#160; 3* where sid=169 
SQL&amp;gt; / 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID USERNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAST_CALL_ET 
---------- ------------------------------ ------------ 
EVENT&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; WAIT_TIME 
---------------------------------------------------------------- ---------- 
SECONDS_IN_WAIT STATE&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BLOCKING_SESSION BLOCKING_SE 
--------------- ------------------- ---------------- ----------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169 AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 251725 
cursor: pin X&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 WAITING&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; UNKNOWN &lt;/pre&gt;&lt;br /&gt;So I tried try killing the process&lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;SQL&amp;gt; select sid, serial#, paddr, osuser, process, status 
&amp;#160; 2&amp;#160; from v$session where sid=169; 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SID&amp;#160;&amp;#160;&amp;#160; SERIAL# PADDR&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OSUSER 
---------- ---------- ---------------- ------------------------------ 
PROCESS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; STATUS 
------------ -------- 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 169&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1585 070000005A383348 oracle 
962750&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; KILLED 

SQL&amp;gt; !ps -ef|grep 962750 
&amp;#160; oracle&amp;#160; 962750&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1&amp;#160;&amp;#160; 1&amp;#160;&amp;#160; Jul 13&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; - 11:49 ora_p006_AV01TEST 
&amp;#160; oracle 1519634 1757348&amp;#160;&amp;#160; 2 12:11:27&amp;#160; pts/1&amp;#160; 0:00 grep 962750 
SQL&amp;gt; !kill -9 962750 
SQL&amp;gt; !ps -ef|grep 962750 
&amp;#160; oracle 1519638 1757348&amp;#160;&amp;#160; 1 12:11:38&amp;#160; pts/1&amp;#160; 0:00 grep 962750 &lt;/pre&gt;&lt;br /&gt;Now it&#039;s gone, see if parent session for refresh job is still there &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;&amp;#160; 1&amp;#160; select sid, username, last_call_et, event, wait_time, seconds_in_wait, state, 
            blocking_session, blocking_session_status 
&amp;#160; 2&amp;#160; from v$session 
&amp;#160; 3* where sid=201 
SQL&amp;gt; / 

no rows selected &lt;/pre&gt;&lt;br /&gt;No, so the job should be gone too &lt;br /&gt;&lt;br /&gt;
&lt;pre&gt;SQL&amp;gt; select * from all_scheduler_running_jobs; 

OWNER&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; JOB_NAME 
------------------------------ ------------------------------ 
JOB_SUBNAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SESSION_ID SLAVE_PROCESS_ID SLAVE_OS_PRO 
------------------------------ ---------- ---------------- ------------ 
RUNNING_INSTANCE RESOURCE_CONSUMER_GROUP 
---------------- -------------------------------- 
ELAPSED_TIME 
--------------------------------------------------------------------------- 
CPU_USED 
--------------------------------------------------------------------------- 
AVSYS&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; REFRESH_WAREHOUSE_DATA 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 122&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 19 692392 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1 
+000 00:01:25.48 
+000 00:00:18.38 &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Well, it had restarted and been running for a minute or so. The audit trail entries started to appear in the warehouse, anyway. As I won&#039;t be working with this again for a while, I&#039;m counting on colleagues to keep me posted about whether this keeps happening! 
    </content:encoded>

    <pubDate>Tue, 05 Aug 2008 08:30:00 +0100</pubDate>
    <guid isPermaLink="false">http://oracledoug.com/serendipity/index.php?/archives/1425-guid.html</guid>
    <category>Audit Vault</category>

</item>

</channel>
</rss>