How simulate massive archivelog generation

Hi,
We're in the process of testing our physical standby database, if the network link would be able to cope with peak load and archivelog generation during this time.
I'm looking for some sample script to run to simulate massive archivelog generation, mayb 1GB every minute. We're on 11.2.0.1 version.
The database is currently empty, no load , no data.
Regards,
dula

user13005731 wrote:
Hi,
We're in the process of testing our physical standby database, if the network link would be able to cope with peak load and archivelog generation during this time.
I'm looking for some sample script to run to simulate massive archivelog generation, mayb 1GB every minute. We're on 11.2.0.1 version.
The database is currently empty, no load , no data.
Regards,
dulaJust write a little PL/SQL procedure with a loop that iterates 10 million times, and inside the loop do a little dml - insert or update.
Pseudo code:
for i = 1 to 10000000
  insert into testtable ('hello world');
next iThe above is not valid pl/sql, but demonstrates the process. I leave it to the student to pull out the PL/SQL manual found a tahiti.oracle.com and work out the exact syntax. If you don't have space to grow testtable by 10,000,000 rows, use an update instead. It will still generate the necessary redo.

Similar Messages

  • How to delete archivelog file at standby database

    Hi All,
    I'm running Physical Standby Database on ASM. At standby database, I can see all logs using asmcmd:
    ASMCMD> ls
    thread_1_seq_14.330.625772527
    thread_1_seq_15.346.625772527
    thread_1_seq_16.329.625772527
    thread_1_seq_17.327.625772559
    thread_1_seq_18.324.625772599
    thread_1_seq_19.341.625772367
    thread_1_seq_2.325.625772329
    But when I run RMAN to delete all these archivelogs, its give me error:
    oradr:/u01/app/oracle$rman rcvcat rman/rman@rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 28 13:50:41 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: AIXDB (DBID=2438430915, not open)
    connected to recovery catalog database
    RMAN> delete archivelog all;
    Starting implicit crosscheck backup at 28-JUN-07:01:50:56
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 06/28/2007 13:50:56
    RMAN-12010: automatic channel allocation initialization failed
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    RMAN> register database;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of register command at 06/28/2007 13:51:06
    RMAN-08040: full resync skipped, control file is not current or backup
    Even it is not registering it. So how to delete archivelog file at standby database.
    Thanks in Advance
    Rakesh

    This appears related to Bug 3298797 that was supposed to be fixed in 10.2.0.1. The workaround is to switch over to the standby, register the standby and then switch back.

  • How to copy archivelog-files from a ASM instance to another ASM instance

    Hello ,
    our RAC database has to be moved to another Datacenter. The database has a size of several Terrabyte. Will will create a standby database (on a cluster) on the new datacenter (using RMAN backup). Since the RMAN backup takes rather long we would like to copy the archive logs to the new datacenter. Since the archivelog-files are stored on a dirskgroup of an asm instance we have the following question:
    - how can the archivelog files get copied from the current location to the new location?
    Rgds
    Jan

    VivaLaVida wrote:
    Many thanks for your answer...
    As a matter of fact the archivelogs are not backuped on a filesystem. If so we would copy them from the source to the destination host (that's easy).
    The question is "how to get them copied from one ASM diskgroup to another ASM diskgroup". RMAN might be a good solution - but we would need to
    figure that out...
    We talking about 100 GB of archivelogs a day - therefore we don't want to wait until the standby database is configured and online. To have the archivelogs
    already on the new host in the new datacenter would save alot of time.What is ASM version?
    The copy is peer to peer? (i.e Can you copy files from one ASM to another directly?)

  • Massive archivelog and extremely high contention

    this moring , i discovered that one of my DB is suffering from huge amount of archive log , redo (400M,5 group) , average 50 archive log per hour , comparing to only 3 archive logs duirng normal operation
    during that time , i checked session_wait ,
    SID EVENT P1 P1TEXTP2 P2TEXT
    138 latch free 1.3835E+19 address98 number
    163 latch free 1.3835E+19 address98 number
    1 pmon timer 300 duration 0
    50 enqueue 1414332420 name|mode 32237 id1
    55 enqueue 1414332419 name|mode 32237 id1
    113 db file sequential read 100 file# 17468 block#
    158 db file sequential read 100 file# 1182763 block#
    107 db file scattered read 100 file# 1037041 block#
    9 smon timer 300 sleep time 0 failed
    12 wakeup time manager 0
    latch free and enquene are the probablly the most serious problem DB is facing ..
    and to dig down undernearth , latch cache buffers chains is the wrost thing from v$latch ,statspack shows enquene takes 60% of the total time
    my question is , since i'm kind of new to this troubleshooting things , can any of you share your most favorite SQL to gather info ...
    i'd like to start with session_wait , could you share your view of troubleshooting route to check out those common issues
    thanks ~

    I would start using logminer on those massive archivelogs.
    You need to know where those massive inserts/updates/deletes are coming from.
    You don't mention a version. This is bad as most answers are inevitably version dependent.
    You can run statspack on level 7, this will include segment statistics, so spreport will show which segments are most heavily hit.
    Locking info is in v$lock, which links with v$transaction, v$session and v$session with v$sql.
    The latch issue points to parsing. Something completely unrelated!
    Did your firm recently hire new developers ;)?
    Sybrand Bakker
    Senior Oracle DBA

  • How to know the generation of my ipod touch

    how to know the generation of my ipod touch with the help of serial number.

    Identifying iPod models
    with serial number by
    http://www.powerbookmedic.com/identify-mac-serial.php

  • Dataguard:How to check the timestamp of archivelog generation?

    Hi ,
    I want to test my DR database.
    Is there any dictionary view provided the three below information.
    1.When archivelog created in primary?
    2.When archivelog created in standby server?(Network latency)
    3.When logs applied in DR database?
    Thanks & Regards,
    Vinoth

    Hi
    Use the below queries
    On the standby database, queries the V$ARCHIVED_LOG view to verify the redo data was received and archived on the standby database:
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    8 11-JUL-02 17:50:45 11-JUL-02 17:50:53
    9 11-JUL-02 17:50:53 11-JUL-02 17:50:58
    10 11-JUL-02 17:50:58 11-JUL-02 17:51:03
    11 11-JUL-02 17:51:03 11-JUL-02 18:34:11
    4rows selected.
    1)Verify new archived redo log files were applied.
    On the standby database, query the V$ARCHIVED_LOG view to verify the archived redo log files were applied.
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APP
    8 YES
    9 YES
    10 YES
    11 YES
    4 rows selected.

  • How to upgrade First Generation Touch to use Remote for Apple TV

    Hello and thanks in advance.
    Can anyone tell me how to upgrade the OS for a 1st Generation iPod Touch so that it can use the Remote App from I tunes to control the Apple TV device. It needs to be the 3.1.2 version, but Apple seems to offer only 3.1    I found the 3.1.2 version on a non-apple site and attempted to download and install it but it didn't work out. (Error 14). I was expecting to control the TV with my 1G Touch and am a little disappointed with Apple that the older Touch units seemingly cannot do this.  Any help appreciated.

    You can buy 3.1 thru iTunes then use it to upgrade to 3.1.3.
    http://support.apple.com/kb/HT2052

  • How to delete archivelog with RMAN in the Primary and Standby database?

    Hello,
    I am working on Oracle 10gR2.
    My question is :
    How could I implement a automatized and secure way of:
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Thanks a lot for your help!

    on 10G
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
    Coskan Gundogar
    http://coskan.wordpress.com

  • How we can restrict generation of schedule line if Target Qty is reached.

    Dear Gurus,
    What is the Exact Role of Target Qty in Scheduling Agreement.
    I have an issue here is even if the Target Qty is reached , system generates schedule lines through MRP.
    How we can restrict the generation of schedule line if Target Qty is reached.
    One way is to control though source list. But this option is ok if I am handling few items. But If there are more than thousand items , then it will be difficult to remove from source list one by one .Also I have to track all those items whose target qty is over.. If u get any other way to handle this please let me know.
    Please help in resolving the issue.
    Thank you
    regards
    Amar

    Hi,
    I have checked ,and aslo saw Note 83343 -but no solution yet.
    But I thik system will generate schedule line or PR (through MRP) if there is requirement.
    Since if in  the material master is MRP relavant field are maintained and source list is maintained with proper in indicator .
    Then whenever there is any MRP relavant Change (Goods issue , Receipt etc)  , an entry will be made in planning file entry (NETCH,NETPL) and system will generate schedule .
    Hence to resolve the subject issue ,it is better to remove the the item from souce list and MRP (No Planning -ND).then system will not genrate Schedule.
    Thank you
    regards
    Amar

  • How to apply archivelog with gap on standby database

    Hi All,
    Oracle Database version : 9.2.0.6
    Following is my sequence of commands on standby database.
    SQL>alter database mount standby database;
    SQL> RECOVER AUTOMATIC STANDBY DATABASE UNTIL CHANGE n;
    ORA-00279: change 809120216 generated at 07/24/2006 09:55:03 needed for thread
    1
    ORA-00289: suggestion : D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC
    ORA-00280: change 809120216 for thread 1 is in sequence #19921
    ORA-00278: log file 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    I have check the last sequence# on standby database which is 19921. And I have archivelog starting from sequence# 20672 onwards. When I am trying to apply archive log starting from sequence# 20672 , it is searching for 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' file and cancel the recovery. Please note that I don't have those missing archive on Primary server as well. So How can I apply the remaining archive log which I do have from 20672 onwards.
    I hope I am not creating any confusion.
    Thx in advance.

    Hi Aijaz,
    Thx for your answer. But my scenario is bit complex. I have checked my standby database status which is not running in recovery mode. I have tried to find archive_gap which is 0 on standby server. I am copying all archived log from primary to standby thru the script every 2 hour and appying them on standby. After applying, the script is removing all applied log files from primary as well as standby. So it is something like I have archivelog from 1,2,3,7,8,9,10. So 4,5 and 6 archivelog are missing which is required when I am trying to recover standby database. Also note that I want to apply 7,8,9,10. I will loose some data from those missing archive but I have cold back any way. I don't have those missing archivelog files(4,5 and 6) anywhere at all. So how can I recover standby database. I am using standby just for the backup purpose.
    I hope my question is clear now.
    Thx in advance
    - Mehul

  • How you tell what generation your iPod is

    how may I determine what generation an iPod touch is? says just say model A1509 on back

    my question is I have a 5G iPod and when making a playlist, how can I repeat the song a few times in a row in making the playlist.         the + can only be pressed once [and then not red or clickable].
    I went into edit playlist and pressed red repeat option on bottom left and options came up [cancel, repeat playlist, repeat song, repeat off] and I pressed repeat song option and it clicks and now has pink box. that looked promising but it still doesn't end up on the playlist. 
    I clicked on the repeat off option at top of list of options- it clicks, but stays the same- saying repeat off, and does not appear to do anything in terms of adding to a playlist on edit mode.
    I went into setting to try to see if it was locked somehow but could not find it.
    after trying to edit - add songs in [duplicate as above] I press the done bottom. but then see it has not added the songs I clicked pink box/repeat to original playlist.
    This is my first playlist since an old nano!

  • How to determine ipod generation?

    (In relation to 2nd and 3rd generations)
    How can you tell what generation an iPod Touch is just by looking at it? Do they actually have the model numbers on the back of them?

    Identifying iPod Models.
    Regards.

  • Minimize archivelog generation

    I have changed 2 big tables to NOLOGGING in order to reduce the production of archive logs, but there is no difference.
    I can't use Insert /* +append* / as the core code can't be changed.What can i do from database level to minimise generation of archived redo logs?
    Whenever these 2 big tables are used , I my archivelog directory becomes full.There is 15 GB space for archive logs.
    Please give me a way to reduce the archive log generation at database level.

    Hi
    if u r changing logging property of table.it doesn't means that oracle will not generate any archive log.
    it will still generate archive on insert,delete.
    so its better u can take backup or Move archivelog on another destination.
    You can also change logging property on tablespace level in 9i.
    Thanks and Regards
    Kuljeet pal singh

  • More Archivelog generation at a particular time?

    Dear Experts,
    OS-SOlaris
    DB version=9.2.0.6
    our database is generating more archive logs in night between 2Am and 3AM.During this period no jobs are scheduled to run either from OS or from database itself.i want to invistigate what makes database to genetate more archivelog at this time.what i have to do to know the reason for more archive log generation.
    Thank You All

    Do you do hot backup during night? If you found entries like 'ALTER TABLESPACE xxx BEGIN BACKUP' before 2am and entries like 'ALTER TABLESPACE xxx END BACKUP' after 3am in your alert.log, that is the key.

  • How to determine which generation is my iPod?

    I just got my iPod. But how I can determine which generation is it (5th, 4th, etc.)?
    Cheers,
    George

    Use the information in this article to determine which type and generation iPod you have.
    (17372)

Maybe you are looking for