Help!I have a question about the Logminer,want to ask everybody to help.

Question: Archived redo log not to recoed DML statements, only to record DDL statements.
问题:归档日志不记录DML,只记录DDL。
Below is a detailed steps operation:
下面是详细的操作步骤:
*1. Install Logminer*
C:\Workspace\GetFiles\bin sqlplus /nolog
SQL*Plus: Release 10.2.0.3.0 - Production on 星期二 7月 12 17:11:49 2011
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn / as sysdba
已连接。
SQL> @C:\Oracle\product\10.2.0\db_1\RDBMS\ADMIN\dbmslm.sql
程序包已创建。
授权成功。
SQL> @C:\Oracle\product\10.2.0\db_1\RDBMS\ADMIN\dbmslmd.sql
程序包已创建。
*2. Set parameter*
SQL> ALTER SYSTEM SET UTL_FILE_DIR='C:\Oracle\product\10.2.0\db_1\sjjhDict' SCOPE=SPFILE;
系统已更改。
*3. Start archivelog*
SQL> alter database archivelog;
数据库已更改。
*4. View archive mode*
SQL> archive log list
数据库日志模式 存档模式(archives mode)
自动存档 启用(activated)
存档终点 USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列 10
下一个存档日志序列 12
当前日志序列 12
*5. Create database dict*
SQL> exec sys.dbms_logmnr_d.build(dictionary_filename=>'C:\Oracle\product\10.2.0\db_1\sjjhDict\sjjhDict.ora',dictionary_location=>'C:\Oracle\product\10.2.0\db_1\sjjhDict');
PL/SQL procedure successfully completed
*6. Create table*
CREATE TABLE "NEWS_B"
"NID" NUMBER,
"NTITLE" VARCHAR2(200),
"NTIME" DATE,
"NAUTHOR" NUMBER,
"NCONTENT" VARCHAR2(4000),
PRIMARY KEY ("NID")
*7. Insert data to table*
insert into news_b (NID, NTITLE, NTIME, NAUTHOR, NCONTENT, ROWID)
values (1, '1', to_date('12-07-2011', 'dd-mm-yyyy'), 1, '1', 'AAAMoiAAEAAAABdAAA');
insert into news_b (NID, NTITLE, NTIME, NAUTHOR, NCONTENT, ROWID)
values (2, '2', to_date('12-07-2011', 'dd-mm-yyyy'), 2, '2', 'AAAMoiAAEAAAABdAAB');
insert into news_b (NID, NTITLE, NTIME, NAUTHOR, NCONTENT, ROWID)
values (3, '3', to_date('12-07-2011', 'dd-mm-yyyy'), 3, '3', 'AAAMoiAAEAAAABdAAC');
commit;
*8. Start logminer*
Exec sys.dbms_logmnr.add_logfile('C:\Oracle\product\10.2.0\oradata\hux\REDO01.LOG',sys.dbms_logmnr.NEW);
Exec sys.dbms_logmnr.add_logfile('C:\Oracle\product\10.2.0\oradata\hux\REDO02.LOG',sys.dbms_logmnr.ADDFILE);
Exec sys.dbms_logmnr.add_logfile('C:\Oracle\product\10.2.0\oradata\hux\REDO03.LOG',sys.dbms_logmnr.ADDFILE);
Exec sys.dbms_logmnr.start_logmnr(OPTIONS=>SYS.DBMS_LOGMNR.COMMITTED_DATA_ONLY,DictFileName=>'C:\Oracle\product\10.2.0\db_1\sjjhDict\sjjhDict.ora');
SQL> SELECT SQL_REDO,SQL_UNDO,OPERATION,TIMESTAMP,ROW_ID,SEG_OWNER,SEG_NAME FROM SYS.V_$LOGMNR_CONTENTS WHERE SEG_OWNER='HUX' AND SEG_NAME='NEWS_B';
SQL_REDO SQL_UNDO OPERATION TIMESTAMP ROW_ID SEG_OWNER SEG_NAME
DDL 2011/7/12 1 AAAAAAAAAAAAAAAAAB HUX NEWS_B
CREATE TABLE "NEWS_B"
"NID" NUMBER,
"NTITLE" VARCHAR2(200),
"NTIME" DATE,
"NAUTHOR" NUMBER,
"NCONTENT" VARCHAR2(4000),
PRIMARY KEY ("NID")
SQL>
*9. Execute DDL statements*
SQL> TRUNCATE TABLE NEWS_B;
Table truncated
*10. Again*
SQL> SELECT SQL_REDO,SQL_UNDO,OPERATION,TIMESTAMP,ROW_ID,SEG_OWNER,SEG_NAME FROM SYS.V_$LOGMNR_CONTENTS WHERE SEG_OWNER='HUX' AND SEG_NAME='NEWS_B';
SQL_REDO SQL_UNDO OPERATION TIMESTAMP ROW_ID SEG_OWNER SEG_NAME
DDL 2011/7/12 1 AAAAAAAAAAAAAAAAAB HUX NEWS_B
CREATE TABLE "NEWS_B"
"NID" NUMBER,
"NTITLE" VARCHAR2(200),
"NTIME" DATE,
"NAUTHOR" NUMBER,
"NCONTENT" VARCHAR2(4000),
PRIMARY KEY ("NID")
DDL 2011/7/12 1 AAAAAAAAAAAAAAAAAB HUX NEWS_B
TRUNCATE TABLE NEWS_B
SQL>
*11. LOGGING status*
SQL> select logging from dba_tables t where t.table_name=upper('NEWS_B');
LOGGING
YES
SQL>
Archived redo log not to recoed DML statements, only to record DDL statements. Why?
Please help me!

Archived redo log not to recoed DML statements, only to record DDL statements. Why?This simply isn't true. This may be a bug in your unsupported 10.2.0.3, which needs to be upgraded anyway, but it has always worked.
Also one usually doesn't mine the current open online redologs.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hi ,
    You might want to refer the following link to find your serial number and activate your software .
    Here is the link for the same.
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Let us know how it goes .We'll do the best possible to get your issue fixed.
    Regards
    Sukrit Dhingra

  • I have a question about the new share everything plan.

    Hi,
    I have a question of the cost of the new share everything plan. I looked at the options and prices for different phones. Next to smartphone it says 40 dollars, next to basic phone it says 30 dollars etc etc. Does that include the unlimited texts, and minutes? If so, how much would this plan cost for 2 smart phones and one basic phone with the unlimited minutes, unlimited texts, and 2gb of data cost per month?
    Thanks!

    yeah, the line access fee (40 for smartphones, 30 for basic, etc) includes unlimited talk/text and access to the pooled data allowance. It would be $170/month before insurance and taxes and fees for the 2GB plan($60), 2 smartphones ($40*2) and a basic phone ($30)

  • I have a question about the calendar on the ipad2. I have multiple calendars in different colors. Some of the events are filled in with color. Others are just listed with a colored dot in front of the event. Any ideas why events ar showing up differently?

    I have an ipad2 and my question is about the calendar. I set up multiple calendars with different colors. Some of the events show up in filled color. Others only show with a colored dot in front of the event. I can't figure out why some show up one way and others show up differently? Any thoughts?

    On mine the ones that show on a coloured background are all-day events, the ones with dots and just timed events.

  • I have some questions about the ios 7.1 security -what if they replace the sim ?

    i khnow now that with the new ios 7 no one ever can format the iphone with itunes if the find my iphone is on in the iphone
    but
    1-what if they remove the sim and put a new sim?
    can i still be able to track it with icloud and send messages to it and play sound and lock it with a passcode even if they remove the sim
    2-what if they using an old version of itunes will they be able to format it as new iphone?
    please answer each question both of them
    i have iphone 4s with the latest ios 7.1

    1-what if they remove the sim and put a new sim?
    can i still be able to track it with icloud and send messages to it and play sound and lock it with a passcode even if they remove the sim
    As I said, if there is a passcode in place they do not know, you will be able to track down the device, irrespective the SIM card they are using. By the way, if the device is locked, they should first unlock it in order to make their SIM work, calling the carrier and giving all your personal data they do not have.
    On the other hand, if the phone is unlocked and does not have any passcode, then yes, they will be able to use any SIM with it and turn off any tracking software.
    2-what if they using an old version of itunes will they be able to format it as new iphone?
    Same as in previous: if they have the iPhone without any lock then yes, they will be able to restore it as a new phone.
    Follow all the instructions here: http://support.apple.com/kb/HT5818 in order to turn on Activation Lock and make more difficult for them to restore your phone without permission.

  • HT5557 I have a question about the ipad 4 online book store

    Hello! I have a question. In the apple ipad book store how do I get the online store back the the American version? I somehow swtiched it to UK! Thanks!

    Try going to the bottom of the Books tab in the ibookstore in the iBooks app on your iPad and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select the US.

  • I have a question about the Siri function.

    Here in Belgium, we speak Dutch and also French and English. But I think when you use the Siri function it is always easier to use it with your own language ( Dutch). 28th October, the iphone4S will be launched here in Belgium, but only with a Englisch version of the Siri function. So my question is that you have any idea when te Dutch version will be available in Belgium, or when i buy an iphone 4S with English version that I can update it to a Dutch version when it will be launched..
    Thank you for helping
    Dylan

    Nobody here can tell you anything more about Apple's plans than what they have already publicly stated, which is that more languages were promised for later (including Japanese, Chinese, Korean, Italian, and Spanish in 2012).

  • Getting an iPod Hi-Fi soon, but I have a question about the remote...

    Hi,
    I would greatly appreciate anyone's response to this simple question. Basically, when I purchase my iPod Hi-Fi, I am going to connect it to my DVD player, but I also have my Mac Mini next to my TV (close to where the iPod Hi-Fi will be). The question is will I have to have two Apple remotes to control both the Hi-Fi and the Mac Mini, or can I simply use one remote with both devices? And, if I can use one remote, will I be able to do that from my sofa, or will I have to get up, point the remote close to the device, and control it? Again, any answer would be more than helpful. Thank you all very much!

    Hi,
    Have a read, hope it give you better understanding about remote
    http://docs.info.apple.com/article.html?artnum=303347

  • I have a question about the Nemo Reef game?

    I decided to find a new game to play & I started playing the Nemo reef game because it's always been my favorite movie since it came out even if I am 21 now.
    On the game on the side where Nemo marlin or any of the other fish ask you to plant & grow a certain plant or whatever or when you have home work or a project why is it if there are multiple ones that say something about planting and growing a rare plant & a certain amount why don't they all or some go away when another is done for almost the same task? Like say one says to plant & grow 5 rare & another says 3 why doesnt the 3 one to away if you had accomplished the 5?
    And another thing how are you suppose save up on the sand dollars & algae if they're asking you to plant so many plants or coral or whatever & they cost so many sand dollars or use to many algae to grow & they longgggg to grow or after they grow take so much time to produce sand dollars or algae?

    I think you need to contact the developer of the game for this question. Or want till another Nemo fan hits this forum. Good luck.

  • I Have 1 Question About The Apple Discussion Message Boards?

    I Think Apple.com & Apple Discussion Message Boards needs to come up with an Apple App for Apple iPhone & Apple iPod Touch 1 reason is cause I Try to go on The Apple Discussion Message Boards on My Safari on My Apple iPhone 4 32GB from Verizon Wireless & The Internet is very Slow on there so maybe if Apple.com & The Apple Discussion Message Boards had an App Specialty for The Apple Discussion Message Boards for Apple iPhone 4 & Apple iPod Touch maybe then The Apple Discussion Message Boards will Run more Faster cause My Apps for My Apple iPhone 4 32GB From Verizon Wireless are always faster then The Internet on My Apple iPhone 4 in Safari, I Hardly use My Safari in My Apple iPhone 4 cause it's always slow, Sometimes it's Fast but sometimes more it's Slow, so maybe I Thought we should make an Apple Discussion Message Boards iPhone App for Apple iPhone & Apple iPod Touch? it was just an Idea it was more a Suggestion to come up with an iDea of it & I Did not mean to post this in the wrong forum if I Did? Maybe My iDea's & Suggestions may not be great? but at least I Tried, you don't have to come up with any Apple Discussion Message Boards Apps if you don't want to? it's really up to you or whoever creates this part of the Forum? i'm only trying to give you some help or Suggestion or an iDea whatever you call it & i'm sorry for posting this when i know it will get deleted maybe? or maybe in The Apple Discussion Message Boards we can have a Apple Suggestion Forum for Future iDea's or whatever it may be that you want to call it? maybe some people would like to post there Thoughts & Suggestions & Future idea's to Apple on here of what they would like & want to see as long as there is no Bashing & trashing & arguing with each other & i'm sorry if I Got carried a way to much if I Did? just thought I Would have a Suggestion/Idea on an Apple Discussion Boards App for Apple iPhone & iPod Touch maybe someday on The Apple iTunes in The App Store? but if you don't think my Suggestions are so great? its ok i'm Sorry I Bothered anyone on this Forum about this, ok peace & take care from Byron.

    Apple sells unlocked iphones now.
    They can be used with any compatible/GSM carrier.
    Iphones are not compatible at all with Sprint.
    T-Mobile is currently being purchased by AT&T.

  • I have some questions about the Zen Mic

    I was wondering if the Creative Zen Micro has some of the same capabilities of the Apple Ipod. A lot of my friends have Ipods' and I know from them that you can actually plug the Ipod into a stereo and it will play songs. Can the Zen Micro do that? do you know of any connections needed? Also, i know the Ipod can get a connection which allows it to tune into blank radio stations. With this a person can get onto the same radio station through the Mp3 player and play their music, which allows them to play their Mp3 player in their cars or again on a stereo. Is there any way I can play my Zen Micro in my car without getting sperate speakers? Please help!
    Thank you

    You can connect to a home stereo using a stereo miniplug (your headphone connector) to RCA adapter. these are available at any electronics store. you plug the 2 rca plugs into an auxiliary input on your receicver. to play in your car, you can use an fm transmitter. check out my post on accessories, it talks about one i didnt like and the one i replaced it with...
    http://forums.creative.com/creativel...essage.id=2079
    there is nothing special about ipods, they cant do anything that a creative player cant. in fact, some would argue that creative's do more! but connectivity to any type of stereo system is uni'versal

  • I have a question about the downloads for CS4.

    I had to go back to CS4 Master Suite after my card was deactivated, because adobe got hacked and my credit card was compromised. Since I was in the middle of traveling and I'm still in a bad situation, because of it I am still on CS4. Which sucks for my workflow now.
    Well, anyway... Sorry, still very frustrated.
    When all that happened I had to download CS4 Master Suite from your site, because the disks are not with me. Photoshop continuously shutdown on me. If I attempt to move a layer up or down in the layers panel it froze and shutdown every freaking time. After Effects and Premier Pro could not export or render anything. Illustrator did what it's supposed to do most of the time. Photoshop, Illustrator, After Effects, and Premiere Pro are the only programs I use really. They are essential to my freelance work and I have had to turn away projects ever since this whole ordeal started last year.
    About a month ago removed CS4 and downloaded Creative Cloud again, because I thought I was in a place were my bank could send me a card. Some how I received another monthly trial and everything was awesome again while I waited for my card. My card didn't come. The trial ended and now I'm right back to not being able to integrate with Cinema 4D and so on. Now that is not your fault. So, I'm not going there.
    I did, once again, download the install file for CS4 Master Suite and install the same programs. They are just as problematic as they were the first time I used the .dmg file from your downloads site.
    Now I know you are far away from CS4, but that is what I am on until I can get back to the US and get another card, because you don't accept paypal or anything else.
    Is there anyway I can get an actual proper working install of CS4. I can work around all the features I lost if I can get a download that actually has everything it's supposed to have in it. I do not pirate software, which is why I went backwards. So, please, please, please, please do something about that .dmg that doesn't have everything need to make the program work properly.
    Thank You,
    From

    Your technical issues have zero to do with the installers. Whatever is at play is rooted on your system, but you have not provided any specific system info nor crash logs. Pardon me, but "Photoshop is crashing" is a useful as my 88 year old grandma telling me her phone doesn't work...
    Mylenium

  • I have a question about the filter hud in aperture 3.

      I have a large project (4000 images) and I can't display filter hud.  The hud shows in all my other projects (including albums that are part of this project) but not when I am at the project level.  can anyone suggest a solution?

    Frank, thanks for the help. 
    I have rebuilt the Aperture preferences, rebuilt the database and after all that I have selected browser view and tried to use the filter hud.  Still no luck.
    The strange thing is that I can call up the filter hud in another project and switch to the "problem" project and the hud stays visible.  But i can't launch the hud while I'm in the large project.

  • I have a question about the suggestion that only the last tab loaded shows up so Firefox can load faster.

    My question is this:
    If I do as you suggest in the General Tab of Preferences - see below - how do I get all the other tabs back if only the last one shows? If they are hidden, I need to know how to access them.
    Your directions which I need help with....Don’t load tabs until selected. Voila! Now, only the last tab you were working in will be loaded on startup.
    THANKS.

    The Tabs are all there, the only thing this preference does is tell firefox to only download the open tab. If you click on the other tabs, they will download too. The theory is, by only downloading and displaying one webpage, it can be displayed for you faster than if 5 webpages were being downloaded at once.

  • I have a question about the security of photo printing kiosks.

    Specifically, I'd like for anyone who knows more about such things to tell me if I did something very stupid.
    This past weekend, I found myself in a situation where I wanted to get a picture from my phone printed very quickly. I had not very many options available to me (it was Sunday, and there were no printing shops open anywhere nearby that I could access the picture via email). I ended up using a Walgreens/Duane Reade photo printing kiosk. I was able to directly connect my phone with a data cable and print the picture from my camera roll.
    I was relieved to get the picture, but in retrospect I am very worried that connecting my phone to a public station like that was stupid, and that I might have opened myself up to malware or put my data in jeopardy. Is this something I should be worried about? If so, are there any instant precautions I should take? I welcome any harsh words.
    I have an Iphone 5 with the most recent update to IOS7.
    Thanks in advance, folks!

    I was relieved to get the picture, but in retrospect I am very worried that connecting my phone to a public station like that was stupid, and that I might have opened myself up to malware or put my data in jeopardy.
    Yes and yes.  There's a reason why iOS 7 asks you if you trust the computer you've just connected it to.
    http://www.v3.co.uk/v3-uk/news/2286154/black-hat-researchers-exploit-iphone-flaw s-with-charger-attack
    Whether or not anything DID happen, I cannot say.

Maybe you are looking for

  • Illustrator Help | Unembed images | Creative Cloud only

    This question was posted in response to the following article: http://helpx.adobe.com/illustrator/using/unembed-images.html

  • Start up screen frozen

    My iPhone started to display "No Network" even though my carrier had good enough signal. I decided to restore it, and the problem was corrected until it synced with my last back up. After the sync, the same thing happened; it couldn't find the networ

  • Report Builder Borders

    Hi, I currently have a report that is in a sort of grid format using lines. One of the fields now has to stretch so it throws off all those lines. I want to use the borders attribute for the fields but whenever I add a border it doesn't show up.

  • Lenovo C540 Touch, Bluetooth driver install?

    Dear Lenovo enthusiasts, Is there a bluetooth installed on Lenovo C540 AIO Touch? How do I know if bluetooth is installed? If not, can I install bluetooth? Thanks in advance.

  • Newsletter with iWeb

    Hi all! I urgently need to create a newsletter for my company and would like to use iWeb for this. I've created the page, published it and tried iMailist to generate the newsletter and to send it. Only it doesn't work. I've tried going to he url, gon