RMAN FULL-INCR ARCHIVE SCRIPT ON WINDOWS

HI Guys
schedule of RMAN full/incr and archive backup in windows environmental i hv to schedule through scheduler.
request to please send me script which i can schedule.
Thank

Write a batch script. And schedule it with windows task scheduler.
For example
contents of rman.bat
SETLOCAL
set ORALOG=D:\RMAN_BACKUP
set SCR_HOME=D:\oracle\bin
set DB_NAME=DBNAME
set CMDFILE=%SCR_HOME%\rman_script.txt
set LOGFILE=%ORALOG%\rman_log_file.log
set MAILFILE=Message.log
del /q %LOGFILE%
%SCR_HOME%\rman target / nocatalog cmdfile=%CMDFILE% log=%LOGFILE%
findstr /I "ERROR" %LOGFILE%
if %errorlevel% equ 1 goto noerrorfound
goto errorfound
:errorfound
echo Database : %DB_NAME% > %MAILFILE%
echo Hostname : %COMPUTERNAME% >> %MAILFILE%
echo Date : %DATE% >> %MAILFILE%
echo Time : %TIME% >> %MAILFILE%
echo RMAN Log File : %LOGFILE% >> %MAILFILE%
echo Log File İçeriği: >> %MAILFILE%
type %LOGFILE% >> %MAILFILE%
cscript mail.vbs "FAILED RMAN Backup" %MAILFILE%
exit
:noerrorfound
echo Database : %DB_NAME% > %MAILFILE%
echo Hostname : %COMPUTERNAME% >> %MAILFILE%
echo Date : %DATE% >> %MAILFILE%
echo Time : %TIME% >> %MAILFILE%
echo RMAN Log File : %LOGFILE% >> %MAILFILE%
echo Log File icerigi: >> %MAILFILE%
type %LOGFILE% >> %MAILFILE%
cscript mail.vbs "SUCCESSFUL RMAN backup" %MAILFILE%
exit
contents of rman_script.txt
--your backup script for example
backup database;

Similar Messages

  • Scheduling RMAN script on windows

    I want to schedule the following full database backup script to run every night at 10pm. Can anyone guide me how I can schedule it on windows OS but please don't suggest OEM as currently I have it scheduled thought OEM only.
    run
    allocate channel ch1 type disk format 'f:\backup\full_db_%D_%T.bak';
    backup database;
    }

    You can try to use DBMS_SCHEDULER. Following messages should help.
    Re: need backup script
    Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files

  • Full music archive

    I am receiving a "Full Music Archive" warning when I am trying to sync my tracks to iTunes.  Does anyone know what this is about?
    Also, I continue to be unable to access the iTunes Store with the latest version of iTunes (10.5).

    Your keyboard should have a Print Screen button somewhere. You just press that and then paste into your favourite image editing software. Paint.NET is particularly handy for a quick crop down. You can then add the resulting image into a post with the camera icon in the edit window.
    Under Edit > Preferences > Advanced tab do you have Copy to iTunes Media folder when adding to library selected? If so iTunes will be trying to make copies of anything you add. Turn the feature off, at least for now, and you should be able to add new stuff to the library.
    Once a group of tracks have been added you can see if iTunes is able to consolidate them.
    Are you actually trying to drag & drop 100Gb in one go? That may cause iTunes to choke, particularly if it is trying to build up a list of files it is going to copy. Alternative methods of adding to the library would be to copy smaller chunks of data over to the new drive, then move them into the Automatically add to iTunes folder for iTunes to catalogue and rearrange. You can also use iTunes Folder Watch to scan your library folder for files that have been copied across but perhaps have been omited from the library when things have failed to work properly.
    Chance are your merged library will contain dupes. I have a tool to help erradicate them at http://samsoft.org.uk/iTunes/scripts.asp#DeDuper.
    Performance may be improved with the library folder on an internal drive. (You should be able to move the library files around as long as you leave the media in place). There is probably a power relationship between performance and library size. Keeping numbers of smart playlists down helps. Probably a good move to exclude your iTunes folder from real-time AV scans as well.
    tt2

  • RMAN Full  Hot Backup Daily

    Hi,
    I have Production Database going to live this week..
    this is my RMAN Backup script for taking daily Full Hot Backup night 12pm...
    I have enabled FLASH_RECOVERY_AREA
    DB_RECOVERY_FILE_DEST=/backup/flash_recovery_area
    log_archive_dest=/backup/archivelog
    log_archive_format='arch_%d_%S_%T';
    =========================================================
    rman target=/
    configure controlfile autobackup on;
    run
    allocate channel c1 device type disk;
    crosscheck backup;
    backup as compressed backupset database;
    sql 'alter system switch logfile';
    crosscheck backup;
    release channel c1;
    exit
    ===========================================================
    Above script is scheduled usgin cron job...
    =============================================================
    Here I am not taking the archive logs backup...because..by default..archive logs are created in 2 places
    (a) FLASH RECOVERY AREA
    (b) /backup/archivelog
    so archive logs are created by date wise in Flash Recovery Area....
    I have flash recovery area structure like this for ever day
    /backup/flash_recovery_area/PROD/archivelog/29_09_2007
    /backup/flash_recovery_area/PROD/autobackup/29_09_2007
    /backup/flash_recovery_area/PROD/archivelog/30_09_2007
    /backup/flash_recovery_area/PROD/autobackup/30_09_2007
    Above are 2 days backups of 29th and 30th....
    I can simply send those 30_09_2007 and 29_09_2007 directories to TAPE Drive....
    =======================================================================
    When disaster recovery, i can restore those directories to flash_recovery_area and do the recovery using rman...
    =============================================
    Friends...am i goin in correct way..if anything wrong...please correct me..
    my doubt is..I am not used any command of backuping up archivelogs in rman script.......becasue..archive logs are created in flash_recovery_area by date wise......
    am i correct..

    Hi,
    Thanks for the reply,
    My requirement is......Full Hot Backup daily at 2 AM......Daily i have to take this...so i scheduled this using cron job......I need to maintain 7 days backup in backup location.....
    Here is my script
    # Export Environment Variables
    export ORACLE_HOME=/oradata/oracle
    export ORACLE_SID=PROD
    export PATH=$PATH:$ORACLE_HOME/bin
    # RMAN Full Backup
    rman target / catalog rman/rman << EOF
    configure controlfile autobackup on;
    configure retention policy to redundancy 7;
    run
    crosscheck backup;
    backup as compressed backupset database;
    sql 'alter system switch logfile';
    backup as compressed backupset archivelog all;
    backup as compressed backupset current controlfile;
    crosscheck backup;
    crosscheck archivelog all;
    delete noprompt obsolete;
    delete noprompt expired backup;
    exit=============================================================
    Can u please verify that, script is good or not
    Message was edited by:
    bsubbu
    Message was edited by:
    bsubbu

  • RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time

    Hello,
    i am working for a scenerio and you can see my restore script below,
    RMAN> RUN
    2> {
    3> SET UNTIL TIME "to_date('24-05-2010 18:00:00','DD-MM-YYYY HH24:MI:SS')";
    4> RESTORE DATABASE;
    5> RECOVER DATABASE;
    6> }
    executing command: SET until clause
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 05/26/2010 11:23:24
    RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time
    also you can see my backups,
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    89 B 1 A DISK 24-05-2010 15:36:04 1 1 NO BACKU
    P_BISE1DB_000_052410030823
    90 B 1 A DISK 24-05-2010 15:36:13 1 1 NO BACKU
    P_BISE1DB_000_052410030823
    91 B 0 A DISK 25-05-2010 12:01:09 1 1 NO TAG20
    100525T113815
    92 B 0 A DISK 25-05-2010 12:01:13 1 1 NO TAG20
    100525T113815
    93 B 1 A DISK 25-05-2010 12:01:55 1 1 NO TAG20
    100525T120152
    94 B 1 A DISK 25-05-2010 12:04:55 1 1 NO TAG20
    100525T120451
    95 B 1 A DISK 25-05-2010 13:55:00 1 1 NO TAG20
    100525T134431
    96 B 1 A DISK 25-05-2010 13:55:09 1 1 NO TAG20
    100525T134431
    97 B 1 A DISK 25-05-2010 14:01:43 1 1 NO TAG20
    100525T140139
    98 B 1 A DISK 25-05-2010 14:55:33 1 1 NO TAG20
    100525T140356
    so i am trying to understand that what is the earliest date that i can restore my database and avoid tihs error, according to the my backup sets?
    thank you
    Ugur

    Please query the following query and specify the RESETLOGS time
    SELECT RESETLOGS_TIME FROM v$database;
    i cant have result with this, because database is mount state,
    And post the result of the following command to provide an information about database incarnations:
    RMAN>LIST INCARNATION
    RMAN> list incarnation;
    using target database control file instead of recovery catalog
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 BISE1DB 4092555014 PARENT 1116016 01-05-2007 16:22:55
    2 2 BISE1DB 4092555014 PARENT 1226717 14-12-2007 15:28:11
    3 3 BISE1DB 4092555014 PARENT 5783997202 04-05-2010 09:59:11
    4 4 BISE1DB 4092555014 CURRENT 5785721070 26-05-2010 10:59:32
    thank you

  • Rman full backup시 파일이 2개씩 생성 됩니다.

    rman을 사용해서 cron으로 일요일 새벽마다 full backup 을 하고 있는데, 백업 볼륨 full 이 발생해서 로그를 살펴보니 아래와 같습니다.
    같은 사이즈, 같은 생성 시각의 파일들이 2개씩 생성 되었습니다.
    rman 백업에 별다른 작업을 하지 않았는데도 저렇게 결과가 나오니 어떻게 해야할지 감을 못잡겠습니다, 특히 아래 두껍게 표시한 줄은 로그도 좀 잘린것 같습니다.
    ■ rman full backup 수행 로그
    Recovery Manager: Release 8.1.6.0.0 - Production
    RMAN-06005: connected to target database: ORCL (DBID=1151661191)
    RMAN-06008: connected to recovery catalog database
    RMAN>
    RMAN-03021: executing script: full_backup
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: backup_loveme
    RMAN-08500: channel backup_loveme: sid=224 devtype=DISK
    RMAN-03022: compiling command: backup
    RMAN-03023: executing command: backup
    RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
    RMAN-08502: set_count=14779 set_stamp=619322468 creation_time=08-APR-07
    RMAN-08010: channel backup_loveme: specifying datafile(s) in backupset
    RMAN-08522: input datafile fno=00085 name=/sdisk02/data/ts01.dbf
    RMAN-08522: input datafile fno=00027 name=/sdisk01/data/ts02.dbf
    RMAN-08522: input datafile fno=00004 name=/sdisk01/data/temp01.dbf
    RMAN-08522: input datafile fno=00006 name=/sdisk01/data/indx01.dbf
    RMAN-08522: input datafile fno=00015 name=/sdisk01/data/ts03.dbf
    RMAN-08013: channel backup_loveme: piece 1 created
    RMAN-08503: piece handle=/sdisk03/backup/ff_driek734_14779_1 comment=NONE
    RMAN-08525: backup set complete, elapsed time: 00:11:55
    RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
    RMAN-08502: set_count=14781 set_stamp=619323184 creation_time=08-APR-07
    RMAN-080RMAN-08013: channel backup_loveme: piece 1 created
    RMAN-08503: piece handle=/sdisk03/backup/ff_dsiek734_14780_1 comment=NONE
    RMAN-08525: backup set complete, elapsed time: 00:11:55
    RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
    RMAN-08502: sRMAN-08013: channel backup_loveme: piece 1 created
    RMAN-08503: piece handle=/sdisk03/backup/ff_dtiek7pg_14781_1 comment=NONE
    RMAN-08525: backup set complete, elapsed time: 00:06:55
    RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
    RMAN-08502: set_count=14783 set_stamp=619323599 creation_time=08-APR-07
    RMAN-080RMAN-08013: channel backup_loveme: piece 1 created
    RMAN-08503: piece handle=/sdisk03/backup/ff_duiek7pg_14782_1 comment=NONE
    RMAN-08525: backup set complete, elapsed time: 00:06:55
    (후략...)
    ■ rman full backup 생성 파일
    ls -al /sdisk03/backup/*
    -rw-r----- 1 oracle dba 5780783616 4월 8 02:13 backup/ff_driek734_14779_1
    -rw-r----- 1 oracle dba 5780783616 4월 8 02:13 backup/ff_dsiek734_14780_1
    -rw-r----- 1 oracle dba 3423191552 4월 8 02:19 backup/ff_dtiek7pg_14781_1
    -rw-r----- 1 oracle dba 3423191552 4월 8 02:19 backup/ff_duiek7pg_14782_1
    (후략...)
    ■ RMAN> print script full_backup
    allocate channel backup_loveme
    type disk
    format '/sdisk03/backup/ff_%u_%s_%p';
    backup
    incremental level=0
    ( database include current controlfile );
    글 수정:
    발로차는새

    문제가 해결 되었습니다만 원인이 오라클과 관련 없는 문제라... 글을 삭제 하고 싶은데 삭제 기능이 없네요 ^^
    원인은 시스템에 cron 데몬이 2개가 돌고 있었습니다. 문제 해결은 가까운 곳부터 찾아야 하는것 같습니다 ㅜㅜ
    포럼을 어지럽혀 죄송합니다.

  • RMAN full DB restore on New Host

    Hi There,
    My RMAN full backup script is like this:
    RMAN> CONNECT TARGET *
    CONNECT CATALOG *
    run {
    allocate channel 'dev_0' type 'sbt_tape'
      parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db1,OB2BARLIST=Off-site,OB2BARHOSTNAME=db1.blah.tr)';
    backup incremental level 0
      format 'Off-site<db1_%s:%t:%p>.dbf'
      cumulative
      database;
    backup
      format 'Off-site<db1_%s:%t:%p>.dbf'
      archivelog all;
    backup
      format 'Off-site<db1_%s:%t:%p>.dbf'
      current controlfile;
    EXITCan you help writing a full restore/recover script...
    Thanks
    Edited by: user642423 on Jan 24, 2009 11:11 PM

    I want to restore to a New Host and the above script will not work for me...
    Doing this procedure "http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814" I get an error like this:
    PS: I've set "maxdays 30" but again same "no autobackup found or specified handle is not a valid copy or piece" error...
    channel dev_0: looking for autobackup on day: 20090125
    channel dev_0: looking for autobackup on day: 20090124
    channel dev_0: looking for autobackup on day: 20090123
    channel dev_0: looking for autobackup on day: 20090122
    channel dev_0: looking for autobackup on day: 20090121
    channel dev_0: looking for autobackup on day: 20090120
    channel dev_0: looking for autobackup on day: 20090119
    channel dev_0: no autobackup in 7 days found
    released channel: dev_0
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/25/2009 00:27:00
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

  • Data Archive Script is taking too long to delete a large table

    Hi All,
    We have data archive scripts, these scripts move data for a date range to a different table. so the script has two parts first copy data from original table to archive table; and second delete copied rows from the original table. The first part is executing very fast but the deletion is taking too long i.e. around 2-3 hours. The customer analysed the delete query and are saying the script is not using index and is going into full table scan. but the predicate itself is the primary key, Please help... More info below
    CREATE TABLE "APP"."MON_TXNS"
       (    "ID_TXN" NUMBER(12,0) NOT NULL ENABLE,
        "BOL_IS_CANCELLED" VARCHAR2(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
        "ID_PAYER" NUMBER(12,0),
        "ID_PAYER_PI" NUMBER(12,0),
        "ID_PAYEE" NUMBER(12,0),
        "ID_PAYEE_PI" NUMBER(12,0),
        "ID_CURRENCY" CHAR(3 BYTE) NOT NULL ENABLE,
        "STR_TEXT" VARCHAR2(60 CHAR),
        "DAT_MERCHANT_TIMESTAMP" DATE,
        "STR_MERCHANT_ORDER_ID" VARCHAR2(30 BYTE),
        "DAT_EXPIRATION" DATE,
        "DAT_CREATION" DATE,
        "STR_USER_CREATION" VARCHAR2(30 CHAR),
        "DAT_LAST_UPDATE" DATE,
        "STR_USER_LAST_UPDATE" VARCHAR2(30 CHAR),
        "STR_OTP" CHAR(6 BYTE),
        "ID_AUTH_METHOD_PAYER" NUMBER(1,0),
        "AMNT_AMOUNT" NUMBER(23,0) DEFAULT 0,
        "BOL_IS_AUTOCAPTURE" VARCHAR2(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
        "ID_USE_CASE" NUMBER(4,0) NOT NULL ENABLE,
        "ID_AUTH_METHOD_PAYEE" NUMBER(2,0),
         CONSTRAINT "CKC_BOL_IS_CANCELLED_MON_TXNS" CHECK (BOL_IS_CANCELLED in ('Y','N')) ENABLE,
         CONSTRAINT "PK_MON_TXNS" PRIMARY KEY ("ID_TXN")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_INDEX"  ENABLE,
         CONSTRAINT "FK_MON_TXNS_CURRENCIES" FOREIGN KEY ("ID_CURRENCY")
          REFERENCES "APP"."CURRENCIES" ("ID_CURRENCY") ENABLE,
         CONSTRAINT "FK_MON_TXNS_TO_PAYER" FOREIGN KEY ("ID_PAYER")
          REFERENCES "APP"."CUSTOMERS" ("ID_CUSTOMER") ENABLE,
         CONSTRAINT "FK_MON_TXNS_TO_PAYEE" FOREIGN KEY ("ID_PAYEE")
          REFERENCES "APP"."CUSTOMERS" ("ID_CUSTOMER") ENABLE,
         CONSTRAINT "FK_MON_TXNS_REFERENCE_TXNS" FOREIGN KEY ("ID_TXN")
          REFERENCES "APP"."TXNS" ("ID_TXN") ENABLE,
         CONSTRAINT "FK_MON_TXNS_TO_PI_PAYER" FOREIGN KEY ("ID_PAYER_PI")
          REFERENCES "APP"."PIS" ("ID_PI") ENABLE,
         CONSTRAINT "FK_MON_TXNS_TO_PI_PAYEE" FOREIGN KEY ("ID_PAYEE_PI")
          REFERENCES "APP"."PIS" ("ID_PI") ENABLE,
         CONSTRAINT "FK_MON_TXNS_TO_AUTHMETHOD" FOREIGN KEY ("ID_AUTH_METHOD_PAYER")
          REFERENCES "APP"."AUTHENTICATION_METHODS" ("ID_AUTHENTICATION_METHOD") ENABLE,
         CONSTRAINT "FK_MON_TXNS_USE_CASE_ID" FOREIGN KEY ("ID_USE_CASE")
          REFERENCES "APP"."USE_CASES" ("ID_USE_CASE") ENABLE,
         CONSTRAINT "FK_MON_TXN_AUTH_PAYEE" FOREIGN KEY ("ID_AUTH_METHOD_PAYEE")
          REFERENCES "APP"."AUTHENTICATION_METHODS" ("ID_AUTHENTICATION_METHOD") ENABLE
      CREATE INDEX "APP"."IDX_MON_TXNS" ON "APP"."MON_TXNS" ("ID_PAYER")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_INDEX" ;
      CREATE INDEX "APP"."IDX_PAYEE_MON_TXNS" ON "APP"."MON_TXNS" ("ID_PAYEE")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_DATA" ;
      CREATE INDEX "APP"."IDX_PYE_PI_MON_TXNS" ON "APP"."MON_TXNS" ("ID_PAYEE_PI")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_DATA" ;
      CREATE INDEX "APP"."IDX_PYR_PI_MON_TXNS" ON "APP"."MON_TXNS" ("ID_PAYER_PI")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_DATA" ;
      CREATE INDEX "APP"."IDX_USE_CASE_MON_TXNS" ON "APP"."MON_TXNS" ("ID_USE_CASE")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_DATA" ;
      CREATE UNIQUE INDEX "APP"."PK_MON_TXNS" ON "APP"."MON_TXNS" ("ID_TXN")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "LARGE_INDEX" ;
    Data is first moved to table in schema3.OTW. and then we are deleting all the rows in otw from original table. below is the explain plan for delete
    SQL> explain plan for
      2  delete from schema1.mon_txns where id_txn in (select id_txn from schema3.OTW);
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2798378986
    | Id  | Operation              | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | DELETE STATEMENT       |            |  2520 |   233K|    87   (2)| 00:00:02 |
    |   1 |  DELETE                | MON_TXNS   |       |       |            |          |
    |*  2 |   HASH JOIN RIGHT SEMI |            |  2520 |   233K|    87   (2)| 00:00:02 |
    |   3 |    INDEX FAST FULL SCAN| OTW_ID_TXN |  2520 | 15120 |     3   (0)| 00:00:01 |
    |   4 |    TABLE ACCESS FULL   | MON_TXNS   | 14260 |  1239K|    83   (0)| 00:00:02 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
    Please help,
    thanks,
    Banka Ravi

    'Best practice' is just what Oracle is already doing as you have already been told: DELETE FROM myTable WHERE myDate between myStart and Myend.
    Your use case is why many orgs elect to use partitioning and use that DATE column as the partition key. Then it is VERY FAST and VERY EASY to truncate or drop partitions that contain old data when you no longer need them.
    The other solution used is to quit waiting so long to delete data and then you don't have to delete large amounts at the same time. So instead of deleting data once a month delete it once a week or even every night. Then the number of rows being deleted will be much smaller and, if the stats are kept current, Oracle may decide to use the index.

  • In Scripts Variable window and constant wind difference?

    In Scripts Variable window and constant window  difference?pls help me

    Hi
    VAR - Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.
    CONST - Window with constant contents which is only formatted once.
    CONSTANT WINDOW
    A window of type CONST has the same contents and size on all layout set pages, on which a corresponding page window is defined. This allows the processing of the window contents to be optimized internally.
    Page windows whose allocated window is of type CONST must have the same size throughout the layout set. If a window of type CONST is full, all remaining text the application program wants to output in this window, is lost. Constant windows do not trigger a page break. In other words: all text exceeding the window size is simply truncated.
    VARIABLE WINDOW
    The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different layout set pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the layout set.
    Edited by: Jyothsna M on Feb 20, 2008 7:48 AM

  • JInternalFrame Full Screen Exclusive mode lag Windows 7?

    <font size=2>Hi everyone I'm not sure if i'm posting this question in the right category so feel free to move it. I recently have been playing around with full screen exclusive mode and JInternalFrames. Now what iv'e noticed is on every platform i've tried it works fine. When clicking and dragging the JInternalFrame to a new location it is quick and responsive. However when doing this same operation in Windows 7 the JInternalFrame lags significantly behind the mouse location as i'm dragging the internal frame. I haven't had a chance to test this on any other Windows platforms such as Vista or XP but I don't think it happens on those platforms, at least I don't remember this ever happening when I had Windows Vista and it doesn't occur in Mac OS 10.6.
    The following are the circumstances i've found that produce this problem:
    *1. The program is set to Full Screen Exclusive mode.*
    *2. You are using Windows 7 (possibly other Windows platforms)*
    *3. Click and drag a JInternalFrame to a new location.*
    I've tried several things to see if it fixes the problem such as setting the look and feel to cross platform but nothing helps. In fact when the LAF is set to cross platform it is even worse.
    Now i'm new to Full Screen Exclusive mode so i'm guessing (hoping) this is a problem caused by an error on my part. Here is the source code, i'd appreciate it if you give it a try. My question is how do I fix this lag so that the JInternalFrame is quick and responsive to the user dragging the window and i'm also wondering if this only happens on Windows 7 so if anyone could also tell me if they experience the problem I am describing and the OS you are using that would be great. Thank you guys :)
    Also any input about wether i'm setting up full screen exclusive mode correctly would be much appreciated too.</font>
    package lag;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class InternalFrameLag
        public static void main(String[] args) {
            SwingUtilities.invokeLater( new Runnable() {
                public void run() {
                    new InternalFrameLag();
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice[] devices = env.getScreenDevices();
        GraphicsDevice device;
        JFrame frame = new JFrame("Internal Frame Lag");
        JDesktopPane pane = new JDesktopPane();
        JInternalFrame internalFrame = new JInternalFrame("Internal Frame", true, true, true, true);
        JButton exit = new JButton("Exit");
        public InternalFrameLag() {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setUndecorated(true);
            exit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    System.exit(0);
            exit.setPreferredSize(new Dimension(250,23));
            internalFrame.setLayout(new FlowLayout());
            internalFrame.setBounds(100,100,500,300);
            internalFrame.add(exit);
            pane.add(internalFrame);
            frame.add(pane);
            // get device that supports full screen
            for(int i = 0; i<devices.length; i++) {
                if(devices.isFullScreenSupported()) {
    device = devices[i];
    break;
    if(device!=null) {
    device.setFullScreenWindow(frame);
    internalFrame.setVisible(true);
    } else {
    System.exit(0);
    Edit: Decided to make the font size bigger. Eyestrain is killing me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Darryl Burke wrote:
    neptune692 wrote:
    <font size=2>
    Edit: Decided to make the font size bigger. Eyestrain is killing me.Hopefully that will carry over to my response and I won't have to edit to add it ;)
    I don't see the lag you describe. There's some flicker when moving the internal frame around rapidly (it looks as if the borders follow the content a split second later, but can't be caught in a screen capture) but that's no different when I show the internal frame in a normal (not full screen) window.
    <tt>Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Darryl>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)</tt>
    db<font size=2>Thanks for your reply and thanks for testing out my code. Could this lag be something wrong with my VM on Windows 7, cause the lag is extremely bad as in it takes a couple seconds for the internal frame to catch up with the mouse. I also just noticed that any other components in full screen exclusive mode on Windows 7 lag as well. Such as scrolling though a large amount of text, the scroll bar will lag far behind the mouse location and take a couple of seconds to catch up even when the mouse is moving fairly slow. I was hoping it was something in the code I was doing wrong but I guess not? Any suggestions on how I could fix this problem? It really makes my applications appear sluggish. For example when you click on a normal window such as in Windows Explorer and drag it to a new location the mouse stays in a fixed position on the window while you are dragging it. However with this lag the mouse appears to be "detatched" from the window and does not stay in the same location on the window while dragging. Does anyone else experience this or is this normal? I'm using Windows 7 64bit but I don't think that would make any difference. I'd also like to point out that I'm using Java 6 update 21 I don't know if that would make a difference opposed to update 17.
    Thanks again.</Font>
    Edited by: neptune692 on Oct 2, 2010 10:23 AM

  • GP login script causes windows to crash

    We have a script that runs on all computers that opens our intranet. This script crashed Windows build 9926 overtime. Is there any way to fix this. Also I can't install the new build because the HP printers update fails everytime.

    Hi,
    How did you determined that it is the script caused this problem? If this problem caused by the script indeed, what't the function of this script?
    For HP printer problem, it's probably a driver compatibility with new system problem, it would be better to contact HP support to confirm this issue.
    Roger Lu
    TechNet Community Support

  • 4.0EA1 - Copy/Paste in Script Output window on Mac is not working

    I'm running 4.0.0.12 on MacOS X 10.8.4, and I can't Copy from the "Script Output" window.  What I regularly do is generate some SQL using an SQL query, so I want to copy the output and paste it back into the Worksheet so I can run it.  For example:
    select 'alter tablespace ' || TABLESPACE_NAME || ' begin backup;' from DBA_TABLESPACES;

    This is a known issue and will be addressed for the next EA release.

  • Problem with sap script main window

    Hi,
    I am modifying the existed sap script. I added a box and some line items to the sap script main window.
    Now i want to increase the size of the mainwindow.
    Please guide me how to increase the lines of main window . I am unable to edit the standard attributes of the main window ,because all are in disable mode.
    Please guide me how to increase the size of the main window.
    Thanks in advance
    Regards
    Sudhakar

    Hi,
    You might be trying to edit the script in non original language. You can change the layout only in the original language.
    Check the attributes of the script to see the original language.
    Thanks,
    Vinod.

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • Bug? 4.0 EA1 Can't select all in Script Output window

    This seems to be a small bug. Open a worksheet and enter any query. Run as a script (F5) and the output appears in the Script Output window. Click in the Script Output window to give it focus and type Ctrl-A to select all the output. The text selected is actually the contents of the worksheet, not the output. Right-clicking in the Script Output window also has no effect. It looks like the Script Output window can't actually gain focus?
    This is a bit trivial, but was annoying when I was trying to move some data over to Excel using a /*csv*/ type query.

    for tracking this is logged as bug 17164225
    B

Maybe you are looking for

  • Acrobat X and Word 2010 missing text

    Has anyone found a solution yet to dropping text box text when converting a Word 2010 document via the PDF print driver? There are various posts on this topic but no real solution. Most resolve by using the "Save as Adobe PDF", which works but doesn'

  • Black images when trying to view other user's added photos in iPhoto

    Hi all - I've had this problem for ages and really want to get to the bottom of it.  We have 1 iMac that has iPhoto '09 with the library in a shared folder so that both myself and my wife can import pictures into the 1 iPhoto library.  So... 1 iMac,

  • HT5922 Volume control Itunes Shared Library from Macbook air played through iPad

    Hi everyone, I am using iPad Air to airplay through use of iTunes shared library from Macbook, to Play to my Apple TV using the Remote App from apple on the iPad. I noticed that the swipe up control screen volume control does not affect the volume on

  • Headphones and iTunes question!

    Why is is when I plug my headphones into my Macbook Pro, iTunes automatically plays? And when I'm skyping with someone using my headphones, iTunes will play and the person I'm skyping with can't hear me. Even if I exit iTunes it'll come back up. Does

  • Re: Question in Requirement Class?

    Hi experts, I have a question here reg. automate cost calculation. For this, I have created Req. Class, Req. Type, assigned req type to req. class, assign item cat. to req type and costing has assigned to req class. Here the question is......... - In