Strange DBA script switchlog

Hi guys,
I'm a system admin and one of my production system, that running oracle, is a bit strange for me and I would like your input. I'm not an oracle expert but my limited knowledge show me that it is not setup correctly. This is a 200GB Database
1. All redo log are in 1 file system /u02, only 8 log file, no grouping... Is it the right setup ?! No multiplexiing
I will, at least, do a 2 redo grouping into 2 different file system.
2. They defined 3 control files, all in the /u01 (where is the dbf file) directory (there is only 1 x 200GB oradata file system)
I will try to put the 3 control file in different location, 1 in the archive log, 1 in the each fs
3. My RPO for that database (Recovery Point Objective) is 60 minutes. So DBA use a script, in a crontab, to force a switch log every 60 minutes and they have a complex script to ensure the archivelog is close (fssync in OS) before sending it over WAN to a DR box using scp.
Now on this one... I have a huge problem and I don't understand. First, I will switch the log every 15 to 20 minutes and let oracle do it (not the cron). They put the checkpoint_timeout to 0. I will replace scp by rsync and sync the archivelog directory over wan every 5 mintues and put another cleanup script in cron to remove any archive older than 7 days.
Now, btw, I looking in the script that force Oracle to switch the log every 60 minutes and here is the command that do it... It look pretty strange to me
1. get the log sequence number : (select sequence# from v$log where status in ('ACTIVE','CURRENT');)
2. do a switch log file and archive all : (alter system switch logfile; alter system archive log all;)
3. Sleep 10 second ?! because it takes 10 second for Oracle to dump in archive log ?!
4. For each seqNo found in step 1:
4.1 select archived,sequence# from v$log where sequence# in ( ${seqNo} ); > file1
4.2 select sequence#,first_time from v$log_history where sequence# in ( ${seqNo} ); > file2
4.3 check if, for each (and there is only one BTW), is ARCHIVED = YES in v$log and present in v$log_history
4.4.Check, using fuser, if the file is written in UNIX : fuser ${archlogpath}/*${1}*${seqNo}*arc | cut -d: -f2 to be sure the file is close
4.5 scp the file over wan
Do I'm crazy or it's completely overkill ?!
Thanks

834010 wrote:
Hi guys,
I'm a system admin and one of my production system, that running oracle, is a bit strange for me and I would like your input. I'm not an oracle expert but my limited knowledge show me that it is not setup correctly. This is a 200GB Database
1. All redo log are in 1 file system /u02, only 8 log file, no grouping... Is it the right setup ?! No multiplexiing
I will, at least, do a 2 redo grouping into 2 different file system.
2. They defined 3 control files, all in the /u01 (where is the dbf file) directory (there is only 1 x 200GB oradata file system)
I will try to put the 3 control file in different location, 1 in the archive log, 1 in the each fs
3. My RPO for that database (Recovery Point Objective) is 60 minutes. So DBA use a script, in a crontab, to force a switch log every 60 minutes and they have a complex script to ensure the archivelog is close (fssync in OS) before sending it over WAN to a DR box using scp.
Now on this one... I have a huge problem and I don't understand. First, I will switch the log every 15 to 20 minutes and let oracle do it (not the cron). They put the checkpoint_timeout to 0. I will replace scp by rsync and sync the archivelog directory over wan every 5 mintues and put another cleanup script in cron to remove any archive older than 7 days.
Now, btw, I looking in the script that force Oracle to switch the log every 60 minutes and here is the command that do it... It look pretty strange to me
1. get the log sequence number : (select sequence# from v$log where status in ('ACTIVE','CURRENT');)
2. do a switch log file and archive all : (alter system switch logfile; alter system archive log all;)
3. Sleep 10 second ?! because it takes 10 second for Oracle to dump in archive log ?!
4. For each seqNo found in step 1:
4.1 select archived,sequence# from v$log where sequence# in ( ${seqNo} ); > file1
4.2 select sequence#,first_time from v$log_history where sequence# in ( ${seqNo} ); > file2
4.3 check if, for each (and there is only one BTW), is ARCHIVED = YES in v$log and present in v$log_history
4.4.Check, using fuser, if the file is written in UNIX : fuser ${archlogpath}/*${1}*${seqNo}*arc | cut -d: -f2 to be sure the file is close
4.5 scp the file over wan
Do I'm crazy or it's completely overkill ?!
ThanksI think you have a better understanding of oracle than the dBA who configured this!
On redo, yes your online redo logs should be multiplexed, with each member on a different mount point.
Likewise, your multiplexed control files should be on different mount points.
The script you describe sounds pretty bizzare. Does anyone have an explanation on why the archivelogs are being manually scp'd over the lan? Is that for simple backup purposes or is someone trying to re-invent DataGuard?

Similar Messages

  • FILE번호/BLOCK번호와 DBA 사이의 변환 SCRIPT

    제품 : ORACLE SERVER
    작성날짜 : 1999-02-24
    File 번호/Block 번호와 DBA 사이의 변환 script
    block dump나 block corruption 등의 해결을 위해 file 번호와
    block 번호를 DBA로 변환하거나 그 반대의 경우가 필요한 경우가 종종 있다.
    여기에서는 이를 수행하기 위한 간단한 script를 제공한다.
    아래의 script를 각각 별도의 file로 save한 후 file을 실행하여
    procedure를 생성시킨 후 usage에 적힌대로 수행하면 된다.
    usage 내의 procedure의 input 값은 단지 예이므로 실제 사용 시에는
    적당한 값을 사용하도록 한다.
    (주의)여기에서 dba값은 십진수이므로, 0x로 시작하는 값은 십진수로 변환한 후
    작업하여야 한다.
    1. DBA를 이용하여 file#, block# 를 찾아내는 procedure
    rem *************************************************************
    rem * *
    rem * usage : 1. procedure 생성 *
    rem * 2. SQL> set serveroutput on *
    rem * 3. SQL> exec dba_to_file(123456789) *
    rem * *
    rem *************************************************************
    create or replace procedure dba_to_file(in_dba number) is
    file_num integer;
    block_num integer;
    begin
    file_num := dbms_utility.data_block_address_file(in_dba);
    block_num := dbms_utility.data_block_address_block(in_dba);
    dbms_output.put_line('--------------------------------');
    dbms_output.put_line('File number => '|| file_num);
    dbms_output.put_line('Block number => '|| block_num);
    dbms_output.put_line('--------------------------------');
    dbms_output.put_line('Good luck to you');
    end;
    2. file#, block#를 가지고 DBA를 계산해 내는 procedure
    rem ************************************************************
    rem * *
    rem * usage : 1. procedure 생성 *
    rem * 2. SQL>set serveroutput on *
    rem * 3. SQL>exec file_to_dba(10, 100) *
    rem * *
    rem ************************************************************
    create or replace procedure file_to_dba(file_num number,
    block_num number) is
    dba number;
    begin
    dba := dbms_utility.make_data_block_address(file_num, block_num);
    dbms_output.put_line('--------------------------------');
    dbms_output.put_line('DBA => '|| dba);
    dbms_output.put_line('--------------------------------');
    end;
    3. file#, block#를 이용하여 해당 object를 알아내기 위한 script
    select owner, segment_name, segment_type, blocks, block_id
    from dba_extents
    where file_id = &file_number and
    &block between block_id and (block_id + (blocks - 1));

  • More DBA Scripts

    Hi everysoul,
    on http://linux-dba.gutzmann.com please find some more DBA
    scripts, namely:
    show_invalid_objects (D. Mwrk)
    compile_objects (D. Mwrk)
    index (D. Mwrk)
    free_space (D. Mwrk)
    extents (D. Mwrk)
    constraints (D. Mwrk)
    Filesystem Cleanup (T. Gutzmann)
    Previous entries were:
    OWAS slow (M. Thomas)
    Installation help (Link to T. Bissett)
    Database Statistics (D. Mwrk)
    Check DB Files - Step 1 (T. Gutzmann)
    Check DB Files - Step 2 (T. Gutzmann)
    Database Backup to Compressed Files (Rev 1) (T. Gutzmann)
    Automatic Startup/Shutdown (T. Gutzmann)
    Basic Tuning Steps (T. Gutzmann)
    Tablespaces - Summary View (T. Gutzmann)
    You are invited to add any useful script and any piece of related
    pertinent information (even if it's a link). Most contributions
    to discussion boards like this get lost some time; the linux-dba
    document database is aimed to complement these forums (fora, to
    be exact), and it lives on your input. So please ...
    Cheers
    Thomas
    null

    Hello BelMan,
    Thank you for pointing me to the pdf document. I don’t want to use the supplied script. Further, my own scritp does work (if I execute it manually).
    The pdf says:
    To schedule automatic backups, use any operating system or third party task scheduling software to run the supplied backup script for your platform.
    I would like to understand why the script that work just fine when executed manually does absolutely nothing when executed via scheduled job (cron)? If a task scheduling software can be used to run Oracle supplied backup sh script, I should be able to use my own sh script as well? Or is it an XE database limitation?
    Thank you for your time.
    Daniel

  • DBA script

    Dear all
    I remember there are a set of "DBA SCRIPT" on this sit, I can't find it ,Does anybody give me a link of it ?

    Hi,
    What kind of DBA Scripts you require? What kind of works you are going to perform, for which you require these scripts?
    -MAK

  • Looking for some DBA scripts.

    I am a DBA. Can any off u send me few sql scripts which would help me in monitoring the DBA activities, Like
    a) Monitoring the Disk Usage for a particular Database.
    b) How to check the rollback segment is increasing or not.
    c)In NT where the datafiles stored (i.e. in which table)
    and if any more u come across.
    My email add is [email protected]

    Did you ever get any info about this question? I am also a new DBA and trying to set up some monitoring scripts that will monitor the disk usage of our table spaces. Any help will be appreciated.
    Thanks,
    Susan Williams

  • Apps DBA Scripts

    Hi ,
    Does anybody have scripts that monitor concurrent managers, Database etc and send a mail about the daily performance to all the DBAs in a team? Can somebody tell me where to find some very rare scripts that monitor the performance of apps?
    Thanks.

    Here are some links you may find useful ..
    http://www.appsdba.com/scripts_apps.htm
    http://www.sap-img.com/oracle-database/oracle-application-hints-and-tips.htm
    http://teachmeoracle.com/scripts.html
    http://teachmeoracle.com/scriptspatch.html
    http://www.orafaq.com/scripts/index.htm#APPS
    Others are welcome to share

  • DBA scripts run by cron job

    We've got a development database on which we're working every day. We intend to set up a cron job to run about once a week to help in the maintainance & performance of the database.... analyzing tables, stuff like that. Does anybody have any suggestions as to what scripts it's useful to run to help keep things running smoothly?
    We're using 9.0.1
    Cheers
    RT

    We've got a development database on which we're working every day. We intend to set up a cron job to run about once a week to help in the maintainance & performance of the database.... analyzing tables, stuff like that. Does anybody have any suggestions as to what scripts it's useful to run to help keep things running smoothly?
    We're using 9.0.1
    Cheers
    RT i'd suggest you try out oracle enterprise manager and look at the list of events you can test for. You can use this list to implement in cron or let OEM do it for you. You'll find test like, is the listener up, is the db up, is the server up, what tablespaces will not be able to extend, if a disk is getting fulletc and stuff like that . Those items should help you frame your scripts for cron if you like.

  • DBA Scripts management

    Friends
    Over couple of years I have accumulated a lot of sql/unix/windows scripts for monitoring, managing and trouble shooting Oracle databases.
    I am looking for a good tool to manage these scripts efficiently where I can find relevant script using some kewords.
    Any idea if anyone knows about such tool.
    If there is no tool, I would appriciate if senior people can advice what is the best way to manage these scripts.
    Thanks
    Vishal V.

    Hi,
    >>I am looking for a good tool to manage these scripts efficiently where I can find relevant script using some kewords.
    Well, in my computer, for example, I have a lot of script files and others manuals and documents like you, then I put the .sql and .txt (script files) in a different directory separated from the others files like .doc and .pdf. Then, I use the Google Desktop in order to index all those my files ... (doc, txt, sql, etc...)
    Maybe is interesting to you. Did you already try to use the Google Desktop ?
    http://desktop.google.com/
    Cheers

  • Very Strange #1503 Script Timeout Error...

    So I created an as3 flash 9 app under Windows using cs3.
    Worked great ... until I tested it on Mac. It crashes both safari
    and firefox only on macs.
    I decided to load it up in cs3 on Mac. I received some errors
    about the fonts not being available, so I changed them to default
    _sans or whatever and thought I had solved my problem. I tried
    "Test Movie" and got the following:
    Error: Error #1503: A script failed to exit after 30 seconds
    and was terminated.
    at flash.errors::ScriptTimeoutError$iinit()
    at flash.display::MovieClip$iinit()
    The weird thing was that it wasn't even running 1 second when
    this was output.
    It gets better though, I delete all the actionscript, and
    every layer (added a blank layer) in the movie, and all the assets
    and I STILL GET THIS ERROR!
    Whats going on? I'd rather I didn't have to recreate all the
    layers and copy over the actionscript to a new movie .... maybe
    there is a setting somewhere? Maybe its related to the font
    problem? This is my first flash movie and I'm not sure where to
    look at this point, google didn't help at all...
    Thanks in advance!

    Thanks OMW_Support. That was real neat support. Thanks, it worked!
    Essentially, OMW gives an error if you try to install it into 7.3.4 home, so I had actually installed it into a different home. But while running the startOMW script, as you pointed out the ORACLE_HOME variable was set to 7.3.4; changed it to the second ORACLE_HOME and it worked.
    Kind regards
    Manu
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Migration Workbench Support:
    If you are not running Oracle 8.1.7, then you need to install Oracle Migration Workbench 1.3.0.0.1 into a separate Oracle Home.
    The installer will install the required 8.1.7. client libraries and you can then use it to migrate to an Oracle8 or Oracle8i database. The key issue here is that when the Installer asks you to select or enter an Oracle Home, that you enter a new Oracle Home. (If you already had 8.1.7, then you'd have been able to install into an existing 8.1.7 Oracle Home. However, because you are not, then you need to install into a separate Oracle Home).
    ORACLE_HOME needs to point to this new Oracle Home when starting the Migration Workbench. Your log shows that it is pointing to an Oracle 7.3 home, which is incorrect.
    Please note that the Migration Workbench only supports migrations to Oracle8 and Oracle8i.<HR></BLOCKQUOTE>
    null

  • Where is the new location of the OLAP option DBA sample scripts?

    Hello,
    OLAP option DBA sample scripts was used to be available on http://wiki.oracle.com/page/OLAP+option+-DBASample+Scripts
    Thanks,
    Lajos

    I see now OLAP DBA Scripts http://www.oracle.com/technetwork/database/options/olap/olap-dba-scripts-393636.zip under the Download section of OLAP otn home http://www.oracle.com/technetwork/database/options/olap/index.html

  • Canned DBA Admin script difficulties

    I am trying to run some of the canned dba scripts available at the Metalink (Tech Lib, Database Administration, Scripts) and I'm getting the following type of error when attempting to run from a command prompt:
    SQL> @tbsp_usage.sql
    DROP TABLE TABLESPACETEMP
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Table created.
    Commit complete.
    Input truncated to 33 characters
    52
    It justs sits at the 52 without ever going anywhere.
    This script is the one featured in Note:1039289.6 (Analyzing tablespace usage with o/s-independent sql script). I am running it against an 8.1.7 database. I have tried running the script from the command prompt with sqlplus user/password @scriptname and also within sql using @scriptname.
    Can someone tell me what I'm doing wrong??
    Thnaks:)

    I think the script is missing a ';' at the end of the last statement. If it's PL/SQL code, end it with '/'.
    null

  • Shell scripts maintenance tasks for DBA

    Most of companies use shell scripts to monitor DB activities, i just want to make myself familier with the main scripts, and how to manage them. If someone can send me some help material.

    Sorry, I should have been more explicit and not only point to the initial page but directly, where the script library is. And I should have made clear it is not a final product, but the base to build your own library.
    First link (orasnap) refers to the work made by Stewart McGlaughlin, who created a comprehensive collection of frequently used dba scripts. He compiled those scripts into an utility named orasnap. This you can download it from his yahoo site, if you take enough time to follow the links. Out from this collection of scripts I have personally taken several to tailor them into specific Unix/Dos shell maintenance scripts. I mean the homework is not finished, Out from his work I have taken a good base to build my own most frequently used Shell Maintenance Library.
    The second link belongs to Tim Hall (http://www.oracle.com/technology/community/oracle_ace/ace1.html#hall) whose remarkable work has greatly contributed to the Oracle technical community daily job. Once again, this site doesn't have finished shell scripts for you simply to cut and paste, but the dba scripts I pointed plus a little effort and several interesting concepts and tips you can find navigating through his site turn this site into a first hand reference.

  • [solved] "what's my linux doing?" conky-bar + script?

    Hi!
    I'm searching for and/or am trying to figure out a conky config + script that lets me "sort of see what my pc is doing atm", just a little peek, something that "helps guess" and "blends in". Couldn't find anything that lets me see some random details like that, so I did this for now:
    stuff.bash:
    #!/bin/bash
    touch stuff.1 stuff.2
    ps -A -o "cmd" > stuff.x
    #pstree -U > stuff.x
    if [ "$(diff -q stuff.x stuff.1)" = "" ]; then
    cat stuff.diff
    else
    mv -b stuff.1 stuff.2
    mv -b stuff.x stuff.1
    diff --suppress-common-lines -d stuff.1 stuff.2 | grep \< | tr '\n' ' ' | sed "s/^[0-9a-f ]*//" > stuff.diff
    cat stuff.diff
    fi
    which I'm using in that conky bar:
    own_window yes
    own_window_type dock
    own_window_title conky
    own_window_colour 555577
    background yes
    double_buffer true
    use_xft yes
    xftfont DejaVu Sans Mono:style=Bold:size=12
    alignment top_middle
    border_width 0
    gap_x 0
    gap_y 0
    minimum_size 1950 20
    maximum_width 1950 20
    use_spacer left
    color0 aa8888
    color1 white
    color2 grey
    draw_borders no
    draw_outline no
    draw_shades no
    short_units yes
    top_name_width 8
    pad_percents 2
    cpu_avg_samples 12
    net_avg_samples 12
    update_interval 1
    TEXT
    ${color0}${font impact}CPU:${font} ${color1}${cpu cpu1}% / ${cpu cpu2}% \
    ${color2}(${TOP name 1} | ${TOP name 2} | ${TOP name 3}) \
    ${color0}${font impact}MEM:${font} ${color1}${memperc}% \
    ${color2}(${TOP_mem name 1} | ${TOP_mem name 2} | ${TOP_mem name 3}) \
    ${color0}${font impact}DO:${font} ${color1}${downspeed wlan0} ${color0}${font impact}UP:${font} ${color1}${upspeed wlan0} \
    ${color0}${font impact}LAST: ${color2}${font} ${scroll 92 3 ${exec "~/stuff.bash"}}\
    ${alignr}\
    ${color1}${time %A, %Y-%m-%d - %H:%M:%S Uhr}\
    So... that gives me a sort of nice conky bar with some random "what's being done" - now p.e. It tells me that yaourt is calling wget and pacman... and cmake has been started... and for some reason firefox is calling itsself... and some strange python script in /tmp/... with my home directory written behind it as parameters... mmmh... well.... maybe I should check on that later, so back to the topic - what I'm sort of missing is more or less...:
    (edit: [solved] / -I would rather have done something like this with lsof, but I didn't manage to get rid of some of the constantly changing columns of lsof output - those lead to way too many reoccurring info's and doesn't give me the feeling of "a little peek behind the curtains" like it's supposed to be )
    - There must be an overall better ways to do something like that, right? Any ideas for a smart little script that gets a few lines of "chaotic random backgrund info" with a good: "ooooh, I seeee"-ratio and not too much spam?
    (edit: [solved] - "network stuff"! I can't see enough network stuff!!! So if anyone knows an easy (easy as in "call-it-once-per-5-seconds-with-concy"-easy) to show what processes are meddling around on the network most atm, that would be great... maybe I'll try netstat again for just that... )
    - Also the whole rest of that config & script are far from perfect...
    So: Any hints & stuff? Thanks!
    Last edited by whoops (2009-07-19 11:12:24)

    Ooooh, that explains it.
    Thanks, but I'm looking for (see example) a single line or something for a conky bar and something a lot less "systematic"... hard to explain... something to "see stuff fly by"... the "strange small line where I can recognize stuff from time to time"... like at the moment it's telling me "kjournal2d  < n/usr/libhistory < bla bla bla < www.archlinux.org < ninotify < npipe < npipe < /bin/bash ./stuff.bash < /dev/input event....." and its going on an on and on which does not make thaaat much sense for but I like seeing it...
    That's my "best one" so far:
    stuff.bash:
    #!/bin/bash
    touch stuff.1 stuff.2
    ps -A -o "cmd" > stuff.x
    lsof -F cn | grep -v -E "p[0-9][0-9]|proc|stuff|lsof|grep|conky| sed " | sed "s/^.//g" >> stuff.x
    diff -BEbw --suppress-common-lines stuff.x stuff.1 | grep \< | tr '\n' ' ' | sed "s/^[0-9a-f ]*\|IPv4//g" | sed "s/ */ /g" > stuff.diffx
    if [ "$(diff stuff.diffx stuff.diff | grep \<)" = "" ]; then
    cat stuff.diff
    else
    mv -b stuff.1 stuff.2
    mv -b stuff.x stuff.1
    mv -b stuff.diffx stuff.diff
    cat stuff.diff
    fi
    ... just I think it might suck a little too much CPU... and I didn't manage to filter out all the stuff this script generates itself without loosing too many unrelated info... and some stuff that keeps showing up every few seconds. Somehow I'd like it mostly to show "stuff that doesn't happen all the time".
    Last edited by whoops (2009-07-19 11:09:23)

  • I need a script to invert the page order of selected pages for cs5.

    Hello,
    I am a graphic designer and i am trying to create a easier way to make multiple page folders, By using the multiple page size feature in inDesign CS5. But my problem is that i can create the front side of the folder easier than before, the backside is my problem I need to inverse the page order manual, this creates a lot of mistakes and errors along the way. Thats why I need a script to invert the page order of the pages I select. I hope to hear from someone soon.
    My best regards,
    Gijs van Roij

    In /gateprd/ARCHIVE/*.arc
    This is the script to remove the archives after it has been backup by the netbackup policy named Archive. This policy removes the archives that have been backed up.
    /home/oracle/dba/scripts> more rmovarch.sh
    #!/bin/ksh
    # compress /gateprd/ARCHIVE/*.arc
    find /gateprd/ARCHIVE/*.arc -type f ! -exec echo {} > /home/oracl
    e/dba/lists/ARCHIVElist \;
    if test $(cat /home/oracle/dba/lists/ARCHIVElist|wc -l) -gt 0
    then
    echo "Hay archives. Se corre script de borrar"
    /home/oracle/dba/scripts/ARCHIVE_BACKUP.sh ARCHIVE
    else
    echo "No archives!!"
    fi

  • I need a script to reduce the size of the Fra which has used 34 gb in space

    I need an rman script to reduce the size of the Fra:
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROL FILE 0 0 0
    REDO LOG 0 0 0
    ARCHIVED LOG 0 0 0
    BACKUP PIECE 0 0 0
    IMAGE COPY 0 0 0
    FLASHBACK LOG 69.99 19.33 2357
    FOREIGN ARCHIVED LOG 0 0 0
    7 rows selected.
    SQL> SELECT
    2 ROUND((A.SPACE_LIMIT / 1024 / 1024 / 1024), 2) AS FLASH_IN_GB,
    3 ROUND((A.SPACE_USED / 1024 / 1024 / 1024), 2) AS FLASH_USED_IN_GB,
    4 ROUND((A.SPACE_RECLAIMABLE / 1024 / 1024 / 1024), 2) AS FLASH_RECLAIMABLE_GB,
    5 SUM(B.PERCENT_SPACE_USED) AS PERCENT_OF_SPACE_USED FROM
    6 V$RECOVERY_FILE_DEST A,
    7 V$FLASH_RECOVERY_AREA_USAGE B
    8 GROUP BY
    9 SPACE_LIMIT,
    10 SPACE_USED ,
    11 SPACE_RECLAIMABLE ;
    FLASH_IN_GB FLASH_USED_IN_GB FLASH_RECLAIMABLE_GB PERCENT_OF_SPACE_USED
    50 34.99 11.14 69.99

    In /gateprd/ARCHIVE/*.arc
    This is the script to remove the archives after it has been backup by the netbackup policy named Archive. This policy removes the archives that have been backed up.
    /home/oracle/dba/scripts> more rmovarch.sh
    #!/bin/ksh
    # compress /gateprd/ARCHIVE/*.arc
    find /gateprd/ARCHIVE/*.arc -type f ! -exec echo {} > /home/oracl
    e/dba/lists/ARCHIVElist \;
    if test $(cat /home/oracle/dba/lists/ARCHIVElist|wc -l) -gt 0
    then
    echo "Hay archives. Se corre script de borrar"
    /home/oracle/dba/scripts/ARCHIVE_BACKUP.sh ARCHIVE
    else
    echo "No archives!!"
    fi

Maybe you are looking for

  • Reference to the Stage

    Hi! I have this situation: Document class: private var controller:MyController = new MyController() addChild(controller) in MyController Class: later in the code... stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveListener); MyController class

  • New ipod touch and Harman Kardon boom box:

    New ipod touch and Harman Kardon boom box: I must say I am very disappointed that I cannot charge my ipod while playing music anymore. I had no problem with all other ipod generations. Can this somehow be fixed? While the Harmon Kardon boom box was p

  • API for PO_APPROVED_SUPPLIER_LIST

    Hi all Can any one plzz let me know the API to insert the data in to PO_APPROVED_SUPPLIER_LIST Base table Thanks in Advance

  • SAP MDM Import Server

    Hi, I need to work in SAP MDM Import Server. I have already worked in SAP MDM Import Manager. I need to know a more about SAP MDM Import Server. Is it an application? Regards Kaushik Banerjee

  • Mid-Installation Fail...

    So i was installing Leopard on my MacBook and about 1/3 of the way through installation an error came up and said to "restart the computer". so i did and now my Mac will not go further than the White Boot Screen that you see right after the "chime" w