Create The World With Creativity
 
Welcome, Guest:Log in | Register | Information Center | Languages | Search | Tags | FAQs | Lite
There was a problem with the request. Check your permission or contact with administrator.




Your Ad Here

Grade this thread

Quote Favorites Report
Starter:  Topic: : Use LogMiner to locate Archive Logs Flow
R.Wang 
5 Stars
 

Info: Moderator Offline Male
From: Not Specified 
Posts: 323  
Digest 0  
Credits: 57
Money: 1719 $OraclePoint
Registered on 2007-04-20
ProfileProfile BuddyBuddy PMPM Reply Reply QuotesQuotes   1 F 
Use LogMiner to locate Archive Logs Flow



How to use LogMiner to locate Archive Logs Flow
[url=http://www.oraclepoint.com]Q1faimAQxOraclePointlTZB0TlPP[/url]



R. Wang
[url=http://www.oraclepoint.com]oCQRXLadBOraclePointrjEHz5mPd[/url]



[url=http://www.oraclepoint.com]PPtD2Cc4COraclePointwfRBJUSar[/url]

Keywords:  logminer, STATSPACK, Archive log files

Environment: Oracle 9iR2 and Solaris 5.9
[url=http://www.oraclepoint.com]e2LfiujpkOraclePointeSz8hFrk8[/url]


Circumstance: Without introduction of new jobs, we monitored rapid disk occupancy in very short period. The circumstance we encountered is that a new archive log file (18MB) is created every minute. And, the disk occupancy is rapidly increased as shown below.
[url=http://www.oraclepoint.com]uD2wzWD1fOraclePointXI7EnxQIV[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:38 PROD_0001_0000045102.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:39 PROD_0001_0000045103.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:40 PROD_0001_0000045104.arc
[url=http://www.oraclepoint.com]AsBkNTaK1OraclePointg3admdUYT[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:41 PROD_0001_0000045105.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:41 PROD_0001_0000045106.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:43 PROD_0001_0000045107.arc
[url=http://www.oraclepoint.com]rcJM1SJ66OraclePoint7LERLxSwA[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:43 PROD_0001_0000045108.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:45 PROD_0001_0000045109.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:45 PROD_0001_0000045110.arc
[url=http://www.oraclepoint.com]mMLcsD4MqOraclePointXhFqOh1bY[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:46 PROD_0001_0000045111.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:47 PROD_0001_0000045112.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:49 PROD_0001_0000045113.arc
[url=http://www.oraclepoint.com]JkTFheKyqOraclePoint8Hc9tpJMX[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:50 PROD_0001_0000045114.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:51 PROD_0001_0000045115.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:52 PROD_0001_0000045116.arc
[url=http://www.oraclepoint.com]NGk5dI0KXOraclePointhBz6KaPQ8[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:53 PROD_0001_0000045117.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:54 PROD_0001_0000045118.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:56 PROD_0001_0000045119.arc
[url=http://www.oraclepoint.com]tavaX44WnOraclePointigz7t6gnZ[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:56 PROD_0001_0000045120.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:57 PROD_0001_0000045121.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 20:58 PROD_0001_0000045122.arc
[url=http://www.oraclepoint.com]pnkCKl2GwOraclePointRVCPFcAf1[/url]

-rw-r-----   1 oracle   dba      18873856 Jul 24 20:59 PROD_0001_0000045123.arc
-rw-r-----   1 oracle   dba      18873856 Jul 24 21:00 PROD_0001_0000045124.arc
[url=http://www.oraclepoint.com]5YMh8sX4cOraclePointTaGtFtTI5[/url]

Steps of Diagnosis

1.Checking on Memory, CPU, I/O
[url=http://www.oraclepoint.com]60ArRWthbOraclePointLi8CcWOAT[/url]


With checking on memory, CPU and I/O, we failed to find any abnormal process that excessively consumes resource of database and OS.
[url=http://www.oraclepoint.com]8YMarmhbsOraclePointRv1Lq1MXI[/url]

Note: For reference on “Monitor Oracle Resouce Consumption in Unix”, please refer to the article in “oracle metalink” with Note: 148466.1.

2.Using Logminer to locate targeted archive log files
[url=http://www.oraclepoint.com]iGp0SN8UpOraclePointTjqmhEz8w[/url]


Then, we would like to look at what does the database do by examining archive log files created with Logminer.
[url=http://www.oraclepoint.com]ceNKv0A8pOraclePoint1JC0sJosc[/url]

Before start using Logminer, please make sure of that you

•Log in with sys account with sysdba role
[url=http://www.oraclepoint.com]2pwh9WNl4OraclePointSa2E3WSDI[/url]

•Never escape from the current session because the data viewing of logminer will not be available at other sessions.

The steps to use Logminer are depicted as following in details.
[url=http://www.oraclepoint.com]RDF85PA48OraclePointJiqlZVY7T[/url]


Continue...............
[url=http://www.oraclepoint.com]vK6pcVghOOraclePoint31RBHVGFQ[/url]

See complete article in PDF as attachment.

[url=http://www.oraclepoint.com]WFJUOrA1HOraclePointVPEpAOkpr[/url]



[Lasted edited on 2007-07-28 13:54 R.Wang ]



Zip attachment: How to use LogMiner to locate Archive Logs Flow.rar (Size:62.98kb, Download times:37)


Tags: case 

2007-07-27 15:11
  Grade this thread
myDBA 
4 Stars
 

Info: Moderator Offline Male
From: Not Specified 
Posts: 223  
Digest 1  
Credits: 40
Money: 1168 $OraclePoint
Registered on 2007-04-12
ProfileProfile BuddyBuddy PMPM Send EmailEmail Reply Reply QuotesQuotes   2 F 
Mining for Clues (published on OTN)



Get deeper understanding about Logminer by reading this OTN article.
[url=http://www.oraclepoint.com]MOLFEdGMyOraclePointNREjXO5l7[/url]


Mining for Clues
[url=http://www.oraclepoint.com]5cDQrH7sWOraclePointhYEekTppY[/url]



adbrite
2007-08-09 15:20
  Grade this thread
myDBA 
4 Stars
 

Info: Moderator Offline Male
From: Not Specified 
Posts: 223  
Digest 1  
Credits: 40
Money: 1168 $OraclePoint
Registered on 2007-04-12
ProfileProfile BuddyBuddy PMPM Send EmailEmail Reply Reply QuotesQuotes   3 F 
How to use LogMiner to analyze DML statement



You must enable supplemental logging prior to generating log files that will be analyzed by LogMiner.
[url=http://www.oraclepoint.com]wl804CjQROraclePointd2NYURpCZ[/url]

When you enable supplemental logging, additional information is recorded in the redo stream that is needed to make the information in the redo log files useful to you. Therefore, at the very least, you must enable minimal supplemental logging, as the following SQL statement shows:

ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
[url=http://www.oraclepoint.com]luvIJ1ntJOraclePointSZhbLIZLB[/url]


To determine whether supplemental logging is enabled, query the V$DATABASE view, as the following SQL statement shows:
[url=http://www.oraclepoint.com]cuStOJ7meOraclePointNRgm4RYCa[/url]

SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;

If the query returns a value of YES or IMPLICIT, minimal supplemental logging is enabled. See Supplemental Logging for complete information about supplemental logging.
[url=http://www.oraclepoint.com]OpKY9j6avOraclePointEz7GRrYB6[/url]


2008-05-01 14:36
  Grade this thread
craghu 
1 Star
 

Info: Offline
From: Not Specified 
Posts: 10  
Digest 0  
Credits: 1
Money: 120 $OraclePoint
Registered on 2009-08-01
ProfileProfile BuddyBuddy PMPM Reply Reply QuotesQuotes   4 F 
Thanks
[url=http://www.oraclepoint.com]8hCLzjyt1OraclePointMvRbbbzZA[/url]


adbrite
2009-08-01 11:08
  Grade this thread



Similar Threads Forum Author Replies Views Last Post
Oracle SQL Tuning - A Framework
Oracle Case Study R.Wang 1 1218  2009-08-01 11:04
Build Oracle Extended RAC Cluster on Oracle VM and Oracle Enterprise Linux
Oracle Case Study R.Wang 0 813  2008-11-14 11:59
How to dispatch XML data to relational table?
Oracle Case Study R.Wang 0 1238  2008-09-11 16:09
Solving Error while Creating Statspack Report
Oracle Case Study R.Wang 0 898  2008-08-22 16:00
Restore Oracle Database without controlfile
Oracle Case Study R.Wang 1 1066  2008-07-31 11:12

  Quick Response
Title:
Content:




Upload: Disable
Username:
Password:
  



Recommend to a friend Print Article Mode





 


Powered by BMForum Powered by BMForum 2007 5.6 RSS Feed  
Processed in 0.11701989 second(s),17 queries  
Top