ORA-27046: file size is not a multiple of logical block size

Hi All,
Getting the below error while creating Control File after database restore. Permission and ownership of CONTROL.SQL file is 777 and ora<sid>:dba
ERROR -->
SQL> !pwd
/oracle/SID/sapreorg
SQL> @CONTROL.SQL
ORACLE instance started.
Total System Global Area 3539992576 bytes
Fixed Size                  2088096 bytes
Variable Size            1778385760 bytes
Database Buffers         1744830464 bytes
Redo Buffers               14688256 bytes
CREATE CONTROLFILE SET DATABASE "SID" RESETLOGS  ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file
'/oracle/SID/sapdata5/p11_19/p11.data19.dbf'
ORA-27046: file size is not a multiple of logical block size
Additional information: 1
Additional information: 1895833576
Additional information: 8192
Checked in target system init<SID>.ora and found the parameter db_block_size is 8192. Also checked in source system init<SID>.ora and found the parameter db_block_size is also 8192.
/oracle/SID/102_64/dbs$ grep -i block initSID.ora
Kindly look into the issue.
Regards,
Soumya

Please chk the following things
1.SPfile corruption :
Startup the DB in nomount using pfile (ie init<sid>.ora) create spfile from pfile;restart the instance in nomount state
Then create the control file from the script.
2. Check Ulimit of the target server , the filesize parameter for ulimit shud be unlimited.
3. Has the db_block_size parameter been changed in init file by any chance.
Regards
Kausik

Similar Messages

  • DB Cloning.file size is not a multiple of logical block size

    Dear All,
    I am trying to create database in windowsXP from the database files running in Linux.
    When i try to create control file, i m getting the following errors.
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    'D:\oracle\orcl\oradata\orcl\system01.dbf'
    ORA-27046: file size is not a multiple of logical block size
    OSD-04012: file size mismatch (OS 367009792)
    Pls tell me the workarounds.
    Thanks
    Sathis.

    Hi ,
    I created database service by oradim. Now i m trying to create control file after editing the controlfile with the location of windows datafiles(copied from Linux)
    Thanks,
    Sathis.

  • Error ORA-01152: file 1 was not restored from a sufficiently old backup

    Its also not thread just to share info with oracle gurus here.If my findings for the below workaround is wrong then please do correct me.
    Sometime you get the error after performing restoring controlfile when you don't have autobackup controlfile on
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    why?
    Cause When you shutdown the database with using the normal,transactional or immediate options not abort a full checkpoint occurs.A full checkpoint ensures that all of the dirty blocks contained in the buffer cache are written to the data files,the database comes into synchronized state at this time i.e controlfile CKPT SCN=databasefile CKPT.
    Like in this demo i am not taking backup the database in opened mode
    Demo 1
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Current log sequence           11
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    SQL> alter database archivelog
      2  /
    Database altered.
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Next log sequence to archive   11
    Current log sequence           11
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle.  All rights reserved.
    RMAN> connect target sys/sys
    connected to target database: ORCL1 (DBID=1024798223)
    RMAN> list backup
    2> ;
    using target database controlfile instead of recovery catalog
    RMAN> backup database
    2> ;
    Starting backup at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NNNDF_TAG20071208T143558_3ONSCZBY_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 08-DEC-07
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.Now i delete the controlfile from OS command.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi don't have automatized control file backup neither i have control file copy.What i will do
    to recover control file i will restore controlfile from backup.Before doing it that i will bring
    the database in mount state.
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi have two backup piece in my backupset folder you cant check control file backup
    existence with list backup controlfile at RMAN prompt cause it needs database in
    mount state.You will have to test both backup set pieces.
    RMAN> restore controlfile from
    'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP';
    Starting restore at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 08-DEC-07
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    Database altered.You can see database now comes into open mode without raising error error
    ORA-01152: file 1 was not restored from a sufficiently old backup,you can see that
    database shutdown with immediate which synchronized the control file with database
    file.
    Demo 2
    ------------Now in this demo i am taking backup the database in opened mode before backup
    database i have deleted alls previous backup.
    Database is in opened moder if i take the backup in database opened mode
    (i.e full checkpoint will not occur controlfile CKPT SCN<>datafile CKPT SCN)
    you will get the error when you will restore controlfile from backup set.
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    Reason is that CKPT SCN in the datafiles will be ahead of the backupset control file no
    full checkpoint occuring. You are not taking backup in consistent state and the
    backupset will not be in consistent state.When you will restore the control file from
    backupset then yours restored control file SCN will be lesser then yours datafile
    checkpoint SCN.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    Database opened.
    RMAN> backup database
    2> ;
    Starting backup at 11-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.D
    BF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.D
    BF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.
    DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DB
    F
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NNNDF_TAG20071211T125123_3OWJD0V5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:56
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NCSNF_TAG20071211T125123_3OWJFT97_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:09
    Finished backup at 11-DEC-07now i shut down the database in order to delete the control file from os command
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> deleting the controlfile from oradata folder
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infonow i would restore the controlfile from backupset.
    RMAN> restore controlfile from 'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUP
    SET\2007_12_11\O1_MF_NCSNF_TAG20071211T125123_3OWJFT97_.BKP'
    2> ;
    Starting restore at 11-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 11-DEC-07
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF'what would you do that now you have lost controlfile ,you dont have copy either you dont
    have autobackup on for controlfile,you need to create the control file
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    SQL> create controlfile reuse database orcl1 noresetlogs archivelog
      2  MAXLOGFILES 50
      3  MAXLOGMEMBERS 3
      4  MAXDATAFILES 300
      5  MAXINSTANCES 8
      6  MAXLOGHISTORY 500
      7  LOGFILE
      8                     GROUP 1 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo01.LOG',
      9                     GROUP 2 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo02.LOG',
    10                     GROUP 3 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo03.LOG'
    11  DATAFILE
    12                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSAUX01.DBF',
    13                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSTEM01.DBF',
    14                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\UNDOTBS01.DBF',
    15                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\USERS01.DBF'
    16 
    SQL> /
    Control file created.
    SQL> alter database open
      2  /
    Database altered.Khurram

    No need to manually recreate the controlfile. Simply issue RECOVER DATABASE prior to opening database.
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:22:34 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                239076176 bytes
    Database Buffers             364904448 bytes
    Redo Buffers                   6381568 bytes
    RMAN> backup database;
    Starting backup at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=148 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF
    input datafile fno=00002 name=E:\ORACLE\ORADATA\ORA10G\UNDOTBS01.DBF
    input datafile fno=00003 name=E:\ORACLE\ORADATA\ORA10G\SYSAUX01.DBF
    input datafile fno=00004 name=E:\ORACLE\ORADATA\ORA10G\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\12J4S23M_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\13J4S26L_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 30-DEC-07
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> exit
    Recovery Manager complete.
    E:\>del e:\oracle\oradata\ora10g\*.ctl
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:25:39 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 12/30/2007 01:25:56
    ORA-00205: error in identifying control file, check alert log for more info
    RMAN> restore controlfile from 'D:\DB_BACKUPS\13J4S26L_1_1.BKP';
    Starting restore at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL01.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL02.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL03.CTL
    Finished restore at 30-DEC-07
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 12/30/2007 01:27:33
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF'
    RMAN> recover database;
    Starting recover at 30-DEC-07
    Starting implicit crosscheck backup at 30-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 30-DEC-07
    Starting implicit crosscheck copy at 30-DEC-07
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 30-DEC-07
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 1 is already on disk as file E:\ORACLE\ORADATA\ORA10G\REDO03.LOG
    archive log filename=E:\ORACLE\ORADATA\ORA10G\REDO03.LOG thread=1 sequence=1
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 30-DEC-07
    RMAN> alter database open resetlogs;
    database opened
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> startup
    connected to target database (not started)
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                247464784 bytes
    Database Buffers             356515840 bytes
    Redo Buffers                   6381568 bytes
    RMAN>

  • 1.8TB Hitachi HDS722020:  "Partition size is not a multiple of 4K"

    I picked up a 1.8TB Hitachi HDS722020 external USB drive, for an enlarged Time-Machine disk. The box says that it's usable on a Mac, but Disk Utility doesn't seem to like it.
    When I attempt to erase it, it sits there, indefinitely as far as I can tell, trying to format it saying, "Partition size is not a multiple of 4K." I am able to format it as MS-DOS FAT32, but not in any MacOS (Extended) format.
    Since it seems to be complaining about partition sizes, I was able to it into one partition containing almost all of the disk content, and another, "junk" partition that I presumably won't use very often. Unfortunately, the smallest "junk" partition it would let me create was about 190GB.
    So, waddaya folks think? Should I return it to the store as a bad disk, or is there any reason to think that it's behaving in some sense correctly?

    Hello mr88cet
    In Disk Utility highlight the external hard drives first icon on the left side list and select the Partition tab. Then decide on the # of partitions you want, then click the Option box and set the Partition map Scheme to GUID Partition Table. Now then you should be able continue to on with any multiple partition sizing (if more than 1 was selected) and format the drive Mac OS Extended (Journaled)...
    Just follow the Disk Utility prompts, it's really easy after you've done it a time or two.
    Also see > http://www.kenstone.net/fcphomepage/partitioningtiger.html
    Dennis

  • ORACLE error from auxiliary database: ORA-01152: file 2 was not restored fr

    Hello,
    i'm trying to clone a database. It is in archive log mode.
    I took a full back using below command
    run {
      backup
         tag 'DAILY_WHOLE'
         format 'FULL_backup_%s_%p_%c.bkp'     database
         plus archivelog
         tag 'DAILY_WHOLE'
         delete all input;
      backup
         current controlfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE'
         spfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE';
    }then i issue a duplicate database command
    RUN
    DUPLICATE DATABASE TO TEST_DB
              NOFILENAMECHECK
               NOREDO
              BACKUP LOCATION '/disk10/flash_recovery_area/PROD';
    }at the very end I got this error.
    contents of Memory Script:
       Alter clone database open resetlogs;
    executing Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/15/2013 11:59:21
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'sysaux.dbf'Can anyone help me? I would appreciate it. thanks

    NOREDO would be used when you have a Consistent Backup (i.e. backup taken when the database is MOUNTed but not OPEN) and so, no archivelogs need to be applied. (This would also be the case for a NOARCHIVELOG database).
    See the notes on NOREDO in the DUPLICATE command documentation in the Backup and Recovery Reference.
    http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Hemant K Chitale

  • ORA-01152: file 1 was not restored from a sufficiently old backup

    Hi,
    I have restored the control file from auto-backup, but some of my archive logs are missing...
    when I am recovering it as
    RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
    ORA-00279: change 37158334186 generated at 02/19/2012 02:53:11 needed for
    thread 1
    ORA-00289: suggestion : /u07/oradata/main/arch/main_738330900_118084_1.dbf
    ORA-00280: change 37158334186 for thread 1 is in sequence #118084
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u02/oradata/main/system01.dbf'
    and
    ALTER DATABASE OPEN RESETLOGS
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u02/oradata/main/system01.dbf'
    how to sort out this issue, I just want to open the database in whatever mode.
    Please help me.

    If no - then startup in mount state and make this file offline.This is archive log file. Might you thought it as datafile ;-)
    @OP.
    Once again i suggest you to refer what aman said below.
    Aman.... wrote:
    This has been discussed already couple of times, tried using the search ?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-01152%3A+file+1+was+not+restored+from+a+sufficiently+old+backup&objID=f61&dateRange=all&userID=&numResults=15
    Aman....Also check tihs. but but but but its not an supported format, it can be uesd when there are no other options.
    *RECOVER A DATAFILE WITH MISSING ARCHIVELOGS [ID 418476.1]*
    Edited by: CKPT on Feb 21, 2012 12:11 PM

  • RMAN Restore on Test DB Fails - ORA-01152:file 1 was not restored from blah

    Calling all RMAN Gurus!
    I'm having trouble recovering an RMAN backup on my test DB server. Please Help!
    Solaris 10/Oracle 10.2.0.4 Standard Edition (Both Servers)
    Part one - Step by Step
    Primary Server
    1. Perform full backup: backup database plus archivelog;
    2. Copy Backupset & Controlfile to test server: "RSYNC/NFS Mount"
    Test Server
    1. rman target /
    2. startup nomount;
    3. restore controlfile blah blah
    4. alter database mount;
    5. catalog backuppiece
    6. restore database; - no issues
    *7. recover database noredo; - no issues*
    *8. alter database open resetlogs;*
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 09/09/2009 08:48:22
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/data/oracle/oradata/planodb/system01.dbf'
    All is good until I try and open the database. What am I missing?? Why doesn't this work???
    Because .... If I go through the exact steps but I perform a "recover database" instead of "recover database noredo", I can open the database!!!
    Example :
    6. restore database; no issues
    7. recover database;
    Starting recover at 09-SEP-09
    using channel ORA_DISK_1
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=34
    channel ORA_DISK_1: reading from backup piece /data/oracle/orabase/backup/backup
    set/2009_09_09/o1_mf_annnn_BACKUP_PLANODB_000_0_5bgkffqq_.bkp
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/data/oracle/orabase/backup/backupset/2009_09_09/o1_mf_annnn_BACKUP
    PLANODB000_0_5bgkffqq_.bkp tag=BACKUP_PLANODB_000_090909010005*
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc thread=1 sequence=34
    channel default: deleting archive log(s)
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc recid=42 stamp=697106925
    unable to find archive log
    archive log thread=1 sequence=35
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/09/2009 08:48:52
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 35 lowscn 1425007
    This is ok because seq 35 doesn't actually exist!
    8. alter database open resetlogs;
    database opened!

    You could also explore the UNTIL clause of the RECOVER DATABASE command to specify Recovery until a specific Log, SCN or Timestamp.
    Since you are cloning a Hot Backup to another server the Recovery has to be an Incomplete Recovery. So, it will be to a Log, SCN or Timestamp -- either of which you could also explicitly specify with the UNTIL clause.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • OSD-04001: invalid logical block size (OS 2800189884)

    My Windows 2003 crashed which was running Oracle XE.
    I installed Oracle XE on Windows XP on another machine.
    I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine.
    When I start the database in WinXP using SQLPLUS i get the following message
    SQL> startup
    ORACLE instance started.
    Total System Global Area 146800640 bytes
    Fixed Size 1286220 bytes
    Variable Size 62918580 bytes
    Database Buffers 79691776 bytes
    Redo Buffers 2904064 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I my D:\oracle\XE10g\app\oracle\admin\XE\bdump\alert_xe I found following errors
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Apr 25 18:38:36 2007
    ALTER DATABASE MOUNT
    Wed Apr 25 18:38:36 2007
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Wed Apr 25 18:38:36 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Please help.
    Regards,
    Zulqarnain

    Hi Zulqarnain,
    Error OSD-04001 is Windows NT specific Oracle message. It means that the logical block size is not a multiple of 512 bytes, or it is too large.
    So what you can do? Well you should try to change the value of DB_BLOCK_SIZE in the initialization parameter file.
    Regards

  • Force Logical Block size for HDD pulled from external enclourse

    So I pulled a 3tb hitachi drive from an external enclourse, and the usb-to-sata board in the enclourse forced a logical sector size of 4K for the drive. But connecting directly to the drive exposes the logical sector size to 512 bytes. Resulting in me being unable to mount the partition. So what I am asking is, is there a way to force the logical sector size for a drive to be different than the drive exposes or am I going to have to move everything off the drive and reformat it?
    The enclourse in question:
    http://www.newegg.com/Product/Product.a … 6822145510
    Direct:
    [73828.076447] sd 0:0:1:2: [sdl] Synchronizing SCSI cache
    [73838.912744] scsi 0:0:1:2: Direct-Access Hitachi HDS723030ALA640 R001 PQ: 0 ANSI: 5
    [73838.912889] sd 0:0:1:2: [sdo] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
    [73838.912892] sd 0:0:1:2: Attached scsi generic sg12 type 0
    [73838.912995] sd 0:0:1:2: [sdo] Write Protect is off
    [73838.912999] sd 0:0:1:2: [sdo] Mode Sense: cb 00 00 08
    [73838.913042] sd 0:0:1:2: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [73838.949343] sdo: sdo1
    [73838.949614] sd 0:0:1:2: [sdo] Attached SCSI disk
    USB:
    Mar 5 18:52:35 localhost kernel: [ 4.711438] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.712191] sd 8:0:0:0: [sdl] Write Protect is off
    Mar 5 18:52:35 localhost kernel: [ 4.712193] sd 8:0:0:0: [sdl] Mode Sense: 4b 00 10 08
    Mar 5 18:52:35 localhost kernel: [ 4.712938] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.713978] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.714720] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.716186] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.717215] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.735573] sdl: sdl1
    Mar 5 18:52:35 localhost kernel: [ 4.736557] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.738058] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.739085] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.740238] sd 8:0:0:0: [sdl] Attached SCSI disk

    Hi ebrian,
    You can't perform a migration from Linux to Windows in that manner with 9i.The plan can be changed to migrate from 9.2.0.4 to 10g and than move from 32-bit Linux to 32-bit Windows.
    It should not matter the end result for the OP is the same 10g on 32 bit windows.
    It just depends on what technoly the OP wants to use (export/import or rman convert).
    Regards,
    Tycho

  • File Select Popup not restricing multiple file types

    I have a Bitmap picture in which I call GetBitmapFromFile right after this popupfile select.  So I want the user to pick one of the folowing filetypes seen below.
    I have the following call
    FileSelectPopup ("", "*.*", "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "Select picture file", VAL_LOAD_BUTTON, 0, 0, 1, 0,pic_file_name); //Extension Not Required
    But when this is ran, it prompts the user showing all file types and all file types are allowed.
    Doing the following:
    FileSelectPopup ("", 
    "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf",
    "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "Select
    picture file", VAL_LOAD_BUTTON, 0, 0, 1, 0,pic_file_name); //Extension not required
    The prompt shows only those file-types, but the default stays on .emf and the user must select the correct file-type at the bottom they are trying to select.
    If I do the following (with commas and restrict file-extension):
    FileSelectPopup ("", "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "*.tif,*.pcx,*.bmp,*.dib,*.rle,*.ico,*.jpg,*.png,*.wmf,*.emf", "Select picture file", VAL_LOAD_BUTTON, 0, 1, 1, 0,pic_file_name); //using commas
    It shows the correct files, but when clicking one, it says the file-type must be .emf
    The only workign way I found was to do the last statement, but not restrict the file-extension.  (This would give the user the option to change the file-type)
    What I want is the file-type allowed list to be one of those file-types, only show files with those extensions and not require/allow the user to select which file-type they will choose.
    Can this not be done?

    I see no way of customizing FileSelectPopup the way you want: either you restrict extensions, and you are limited to "Default file spec" contents (in case you put a filetype list in this field, the last one is used, as you already noted) or you allow to change extensions, but the user must choose which one to use an "*.*" is always present.
    I am afraid you will need to post-process operator's choice and prompt again in case of non-allowed extension.
    As an alternative you can use the toolbox path control, which can be tailored the way you want but it isn't as easy for the operator as FileSelectPopup. It iìultimately is a string control with customized features to offer an alternative in selecting files / paths. You can tailor it by doing so:
        SetCtrlVal (panelHandle, PANEL_STRING, "c:\\myDefaultPath");
        errChk (NewPathCtrl (panelHandle, PANEL_STRING, 15, 1));
        SetPathCtrlAttribute (panelHandle, PANEL_STRING, ATTR_PATH_CTRL_FILE_FILTER, "*.bmp;*.ico");
    This control permits you a limited filetype choice but forces the user to more impactive operability to select the desired file.
    There is a sample project that  uses this control in <sampledir>\userint\custctrl\pathctrl.
    Another alternative is the File Browser toolslib control: a customized tree control which can be restricted to multiple file types; it is relatively slow on large file systems -at least at the first execution.
    The control maintains the native context menu of the original tree control: I suppose this can be tailored as in native control but I haven't tested it: if it's possibleit may help the user in finding the correct file to select.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • ORA-27046 while executing DB13 backup

    Dear support,
    While taking backup from db13 transaction i get following error.
    other jobs like update statistics i am able to execute through DB13.
    Can anybody suggess something at earliest
    Oracle 10.2. and brtools 7.00
    Logs are as below
    BR0051I BRBACKUP 7.00 (13)
    BR0055I Start of database backup: bdvrkzgc.and 2007-07-12 00.20.34
    BR0280I BRBACKUP time stamp: 2007-07-12 00.20.34
    BR0301E SQL error -27046 at location BrInitOraCreate-3
    <b>ORA-27046: file size is not a multiple of logical block size
    OSD-04012: file size mismatch (OS 3623)</b>BR0303E Determination of Oracle version failed
    BR0056I End of database backup: bdvrkzgc.and 2007-07-12 00.20.34
    BR0280I BRBACKUP time stamp: 2007-07-12 00.20.35
    BR0054I BRBACKUP terminated with errors

    your datafile is corrupted, it`s time for a recovery
    check http://64.233.167.104/search?q=cache:USP1C10c31gJ:www.experts-exchange.com/Database/Oracle/Q_20068655.html%3Fqid%3D20068655+ORA-27046&hl=en&ct=clnk&cd=4&gl=ca&client=firefox-a

  • How to avoid db_recover "file size not a multiple of the pagesize" error?

    I am writing some backup and recovery scripts for a Berkeley DB application. I'm using the Oracle supplied db_hotbackup.exe and db_recover.exe executables (DB 4.5.20). My very first recovery unit test has resulted in the following error from db_recover:
    "file size not a multiple of the pagesize"
    What is the cause of this error, and how do I create my backup files to avoid this problem?

    This error message indicates that a file that should be made up of pages of a certain size is not a multiple of that size. For example, if a database file configured with 4KB pages was found in a 10KB file, you would get this error message.
    Can you check that however the scripts manipulate the database files, they don't add or remove any bytes from the end?
    Regards,
    Michael Cahill, Oracle.

  • Log file switch (checkpoint not complete)

    HI,
    I am using Oracle 9.2 on rhel
    IN the statspack report I am getting one of the event I.e log file switch (checkpoint not complete).Statspack duration is about 1.5 hrs...any suggestion
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Buffer Nowait %:   99.97       Redo NoWait %:     98.31
                Buffer  Hit   %:   95.84    In-memory Sort %:    100.00
                Library Hit   %:   99.57        Soft Parse %:     98.51
             Execute to Parse %:   72.70         Latch Hit %:     99.71
    Parse CPU to Parse Elapsd %:   53.15     % Non-Parse CPU:     99.10
    Shared Pool Statistics        Begin   End
                 Memory Usage %:   93.66   93.74
        % SQL with executions>1:   60.41   60.94
      % Memory for SQL w/exec>1:   60.89   61.66
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~                                                     % Total
    Event                                               Waits    Time (s) Ela Time
    log file switch (checkpoint incomplete)            35,936      35,100    42.81
    enqueue                                             6,144      16,684    20.35
    buffer busy waits                                  17,190      13,346    16.28
    wait for a undo record                             51,967       4,931     6.01
    ARCH wait on SENDREQ                                  877       4,813     5.87
              -------------------------------------------------------------

    Please find the whole stats[pack report
    {code}
    STATSPACK report for
    DB Name DB Id Instance Inst Num Release Cluster Host
    ICAI 1504443695 icai 1 9.2.0.8.0 NO icaidb.icai.
    org
    Snap Id Snap Time Sessions Curs/Sess Comment
    Begin Snap: 70 04-Aug-10 14:27:14 162 34.7
    End Snap: 73 04-Aug-10 15:30:43 254 55.4
    Elapsed: 63.48 (mins)
    Cache Sizes (end)
    ~~~~~~~~~~~~~~~~~
    Buffer Cache: 4,928M Std Block Size: 8K
    Shared Pool Size: 1,312M Log Buffer: 1,024K
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 96,260.76 53,769.94
    Logical reads: 13,998.20 7,819.20
    Block changes: 1,227.83 685.85
    Physical reads: 592.13 330.76
    Physical writes: 19.93 11.13
    User calls: 313.12 174.91
    Parses: 31.41 17.55
    Hard parses: 0.47 0.26
    Sorts: 11.61 6.49
    Logons: 0.11 0.06
    Executes: 115.04 64.26
    Transactions: 1.79
    % Blocks changed per Read: 8.77 Recursive Call %: 26.28
    Rollback per transaction %: 5.43 Rows per Sort: 472.17
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 99.97 Redo NoWait %: 98.31
    Buffer Hit %: 95.84 In-memory Sort %: 100.00
    Library Hit %: 99.57 Soft Parse %: 98.51
    Execute to Parse %: 72.70 Latch Hit %: 99.71
    Parse CPU to Parse Elapsd %: 53.15 % Non-Parse CPU: 99.10
    Shared Pool Statistics Begin End
    Memory Usage %: 93.66 93.74
    % SQL with executions>1: 60.41 60.94
    % Memory for SQL w/exec>1: 60.89 61.66
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~ % Total
    Event Waits Time (s) Ela Time
    log file switch (checkpoint incomplete) 35,936 35,100 42.81
    enqueue 6,144 16,684 20.35
    buffer busy waits 17,190 13,346 16.28
    wait for a undo record 51,967 4,931 6.01
    ARCH wait on SENDREQ 877 4,813 5.87
    Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> s - second
    -> cs - centisecond - 100th of a second
    -> ms - millisecond - 1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    log file switch (checkpoint 35,936 35,886 35,100 977 5.3
    enqueue 6,144 5,660 16,684 2716 0.9
    buffer busy waits 17,190 5,325 13,346 776 2.5
    wait for a undo record 51,967 49,137 4,931 95 7.6
    ARCH wait on SENDREQ 877 0 4,813 5489 0.1
    log file switch (archiving n 3,705 3,653 3,600 972 0.5
    db file sequential read 600,718 0 621 1 88.1
    log file sync 6,826 140 561 82 1.0
    log file parallel write 7,052 0 421 60 1.0
    log buffer space 1,361 16 230 169 0.2
    db file scattered read 289,115 0 212 1 42.4
    switch logfile command 116 23 160 1377 0.0
    wait for stopper event to be 1,924 1,111 123 64 0.3
    control file parallel write 1,355 0 63 46 0.2
    PX Deq: Txn Recovery Start 1,253 0 36 29 0.2
    SQL*Net break/reset to clien 560 0 20 36 0.1
    local write wait 18 15 17 918 0.0
    log file switch completion 21 7 9 442 0.0
    control file sequential read 237,021 0 6 0 34.8
    log file sequential read 437 0 6 13 0.1
    BFILE get length 297 0 2 7 0.0
    latch free 485 67 2 4 0.1
    BFILE read 1,023 0 1 1 0.2
    log file single write 18 0 0 16 0.0
    SQL*Net more data to client 13,785 0 0 0 2.0
    process startup 10 0 0 9 0.0
    control file single write 10 0 0 4 0.0
    row cache lock 34 0 0 0 0.0
    db file single write 1 0 0 14 0.0
    LGWR wait for redo copy 89 0 0 0 0.0
    PX Deq: Signal ACK 3 0 0 4 0.0
    PX Deq: Join ACK 5 0 0 1 0.0
    BFILE open 106 0 0 0 0.0
    db file parallel read 25 0 0 0 0.0
    async disk IO 1,383 0 0 0 0.2
    db file parallel write 255 0 0 0 0.0
    BFILE internal seek 1,023 0 0 0 0.2
    direct path read 843 0 0 0 0.1
    BFILE closure 106 0 0 0 0.0
    undo segment extension 844 844 0 0 0.1
    direct path write 96 0 0 0 0.0
    SQL*Net message from client 1,188,764 0 445,926 375 174.3
    virtual circuit status 125 125 3,660 29277 0.0
    wakeup time manager 86 86 2,451 28506 0.0
    PX Idle Wait 755 750 1,466 1941 0.1
    jobq slave wait 60 60 176 2930 0.0
    SQL*Net more data from clien 3,035 0 1 0 0.4
    SQL*Net message to client 1,188,882 0 1 0 174.3
    Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> s - second
    -> cs - centisecond - 100th of a second
    -> ms - millisecond - 1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    Background Wait Events for DB: ICAI Instance: icai Snaps: 70 -73
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    ARCH wait on SENDREQ 877 0 4,813 5489 0.1
    buffer busy waits 2,164 1,176 1,184 547 0.3
    log file parallel write 7,052 0 421 60 1.0
    wait for stopper event to be 1,924 1,111 123 64 0.3
    control file parallel write 1,301 0 57 44 0.2
    enqueue 393 0 10 26 0.1
    control file sequential read 234,452 0 6 0 34.4
    log file sequential read 431 0 6 13 0.1
    db file scattered read 124 0 1 10 0.0
    log buffer space 40 0 1 13 0.0
    log file single write 15 0 0 20 0.0
    db file sequential read 20 0 0 9 0.0
    process startup 7 0 0 8 0.0
    latch free 19 3 0 2 0.0
    LGWR wait for redo copy 89 0 0 0 0.0
    PX Deq: Signal ACK 3 0 0 4 0.0
    PX Deq: Join ACK 5 0 0 1 0.0
    db file parallel write 255 0 0 0 0.0
    async disk IO 793 0 0 0 0.1
    rdbms ipc reply 1 0 0 0 0.0
    direct path read 88 0 0 0 0.0
    direct path write 88 0 0 0 0.0
    rdbms ipc message 50,357 3,296 16,467 327 7.4
    pmon timer 1,271 1,251 3,653 2874 0.2
    smon timer 64 0 2,302 35963 0.0
    SQL ordered by Gets for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    5,652,833 456 12,396.6 10.6 20.04 1062.67 285625578
    SELECT /*+ INDEX(OT_DAK_ENTRY_DETL IDM_DED_NAME) */DEH_TXN_CODE
    ,DEH_NO FROM OT_DAK_ENTRY_HEAD,OT_DAK_ENTRY_DETL WHERE DEH_SY
    S_ID = DED_DEH_SYS_ID AND TRUNC(DEH_APPLICATION_DT) = :b1 AND
    DED_DAK_CODE = :b2 AND DED_NAME LIKE LTRIM(RTRIM(:b3)) || '%'
    AND NVL(DED_INSTR_NO,'XXXXXX') = NVL(:b4,'XXXXXX') AND TRUNC(
    5,096,348 189 26,964.8 9.6 23.64 23.25 1772835295
    select decode(level,1,'',2,' ',3,' ',4,' ',5,'
    ', ' ') || decode(:1,'ENG',menu_option_desc,menu_opt
    ion_desc_bl) "OPTION", menu_parent_id "PARENT", menu_action_type
    "TYPE",menu_action "ACTION", decode(level,1,'',2,' ',3,' ',4,'
    ',5,' ', ' ') ||decode(menu_action_type, 'M', '+', 'o'
    4,894,185 96 50,981.1 9.2 7.89 10.11 23088203
    INSERT INTO OT_MEM_FEE_COL_DETL(MFCD_FEE_TYPE,MFCD_CONDON_FEE_YN
    ,MFCD_EXCESS_USED_YN,MFCD_CONDN_CODE,MFCD_PM_CODE,MFCD_CURR_CODE
    ,MFCD_INSTR_NO,MFCD_INSTR_DT,MFCD_AMT,MFCD_BANK_CODE,MFCD_INSTR_
    TYPE,MFCD_BRANCH,MFCD_COLLECTION,MFCD_FM_DT,MFCD_TO_DT,MFCD_RES_
    CODE,MFCD_CR_UID,MFCD_CR_DT,MFCD_UPD_UID,MFCD_UPD_DT,MFCD_CONDON
    4,885,684 152 32,142.7 9.2 7.64 8.87 1007886847
    SELECT MIN(MFCH_NO) FROM OT_MEM_FEE_COL_HEAD, OT_MEM_FEE_COL_DET
    L WHERE MFCH_SYS_ID = MFCD_MFCH_SYS_ID AND MFCH_REF_NO = :B4 AND
    MFCH_REF_TXN_CODE = :B3 AND MFCD_INSTR_NO = :B2 AND MFCD_BANK_C
    ODE = :B1 AND MFCD_AMT > 0
    2,680,356 446 6,009.8 5.0 95.57 125.49 197211170
    SELECT /*+ INDEX(OT_STUDENT_FEE_COL_IPCC_HEAD OT_STUDENT_FEE_COL
    IPCCHEAD_UK01) */SFCH_SYS_ID,SFCH_DT,DECODE(NVL(SSTN_SRN,SFCH
    TEMPREF_NO),SSTN_SRN, NULL ,SFCH_TEMP_REF_NO) SFCH_TEMP_REF_NO
    ,NVL(SFCH_STUD_SRN,SSTN_SRN) SFCH_STUD_SRN,SFCH_COURSE_CODE,SFCH
    SCHEMECODE,SFCH_EXMP_STUD_YN,SFCH_EXMP_STUD_REASON,DEH_APPLICA
    2,288,204 1 2,288,204.0 4.3 54.31 59.36 3103356680
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate;
    broken BOOLEAN := FALSE; BEGIN BEGIN /*Quest SOO PPCM job */ qu
    est_ppcm_snapshot_pkg.take_snapshot; END; :mydate := next_date;
    IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    2,253,877 1 2,253,877.0 4.2 52.70 56.21 579012758
    DELETE FROM QUEST_PPCM_SQL_TEXT TXT WHERE INSTANCE_ID >= 0 AND N
    OT EXISTS (SELECT 1 FROM QUEST_PPCM_SQL_SNAPSHOT SNAP WHERE SNAP
    .SNAPSHOT_ID > 0 AND SNAP.INSTANCE_ID= TXT.INSTANCE_ID AND SNAP.
    SQL_ID = TXT.SQL_ID)
    1,656,006 24 69,000.3 3.1 10.00 24.26 4081782417
    SELECT PISH_COURSE_CODE FROM OV_STU_PAYINSLIP_IPCC_DTL WHERE
    PISH_BANK_CODE = :b1 AND PISH_NO BETWEEN :b2 AND :b3 AND PISD_
    CURR_CODE = :b4 AND PISH_REGION_CODE = :b5 ORDER BY 1
    SQL ordered by Gets for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    1,567,946 12 130,662.2 2.9 21.99 47.39 1585476974
    SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
    L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
    D A,OT_DAK_ENTRY_DETL B,OT_FIRM_NAME_APPR_HEAD C WHERE A.DEH_SY
    S_ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FNAH_DED_SYS_I
    D AND C.FNAH_SYS_ID = (SELECT MAX(B.FNAH_SYS_ID) FROM OT_FIR
    1,216,226 4 304,056.5 2.3 9.90 54.25 937031003
    SELECT TRIM(STUD_SRN)
    Q1_REGNO, TR
    IM(STUD_TEMP_REF_NO)
    Q1_TEMPNO, STUD_TITLE
    1,138,801 178 6,397.8 2.1 18.13 1009.80 1617597
    SELECT SRN,ACTIVITYDESCRIPTION,STATUS,DOCUMENTNO,DOCUMENTDATE FR
    OM OV_ART_TRANS_STATUS WHERE (SRN=:1) order by DOCUMENTDATE
    1,029,221 230 4,474.9 1.9 20.27 20.76 1838125769
    SELECT MRH_DT,MRH_FIRST_NAME,MRH_MIDDLE_NAME,MRH_SUR_NAME,MRH_ST
    ATUS FROM OM_MEM_REG_HEAD WHERE DECODE(:b1,1,MRH_MRN,MRH_MFCH
    TEMPREF_NO) = :b2
    778,949 52 14,979.8 1.5 20.32 21.85 4142254844
    SELECT LTRIM(RTRIM(DECODE(TIT_NAME,'MR.','CA.','MS.','CA.','MRS.
    ','CA.') || ' ' || MRH_FIRST_NAME || ' ' || MRH_MIDDLE_NAME
    || ' ' || MRH_SUR_NAME || ' ' || DECODE(MRH_APPR_UID, NULL ,
    NULL ,DECODE(MRH_MEM_STATUS,2, NULL ,DECODE(MRH_FELLOW_STATUS_YN
    ,'Y','FCA','ACA'))) || DECODE(MRH_RESI_STATUS,'A','
    755,893 517 1,462.1 1.4 90.43 89.07 1033584013
    SELECT DECODE(MFCD_FEE_TYPE,'M08',1,'M05',2,'M06',3,'M09',4,'M10
    ',5,'M11',6,'M12',7,'M07',8,'M13',9,'M14',10,'M15',11,'M04',12,'
    M03',13,'M02',14,'M01',15,'M21',16,'M22',17,'M23',18,'EXCESS',19
    ,20) FEE_SEQ,MFCD_FEE_TYPE FEE_TYPE,SUM(MFCD_AMT) AMOUNT FROM
    OT_MEM_FEE_COL_HEAD,OT_MEM_FEE_COL_DETL WHERE MFCH_SYS_ID = MFC
    751,010 1,090 689.0 1.4 28.61 31.41 1734754400
    SELECT ROWID,PIIPD_ICAI_EXAM_APPEARED,PIIPD_REG_NO,PIIPD_MTH,PII
    PD_YR,PIIPD_ROLL_NO,PIIPD_EXT_EXAM_APPEARED,PIIPD_EXAM_CODE_1,PI
    IPD_SUBJ_CODE_1,PIIPD_GROUP_1,PIIPD_ROLL_NO_1,PIIPD_LAST_PAPER_D
    T_1,PIIPD_EXAM_CODE_2,PIIPD_SUBJ_CODE_2,PIIPD_GROUP_2,PIIPD_ROLL
    SQL ordered by Reads for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    227,513 2 113,756.5 10.1 22.04 79.36 2837394537
    SELECT STUD_SRN,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_MAIDEN_NAM
    E,STUD_SURNAME,STUD_FATHER_NAME,STUD_BIRTH_DT,STUD_COMM_CODE,STU
    D_SEX,STUD_HANDICAPPED_YN,STUD_HANDICAPPED_REASON,STUD_LANG_CODE
    ,STUD_NATIONALITY_CODE,STUD_EMAIL,STUD_PERMNT_ADDR_LINE_1,STUD_P
    ERMNT_ADDR_LINE_2,STUD_PERMNT_ADDR_LINE_3,STUD_PERMNT_ADDR_LINE_
    220,939 12 18,411.6 9.8 21.99 47.39 1585476974
    SELECT NVL(TO_CHAR(A.DEH_APPLICATION_DT,'DD/MM/RRRR'), NULL ),NV
    L(TO_CHAR(A.DEH_DT,'DD/MM/RRRR'), NULL ) FROM OT_DAK_ENTRY_HEA
    D A,OT_DAK_ENTRY_DETL B,OT_FIRM_NAME_APPR_HEAD C WHERE A.DEH_SY
    S_ID = B.DED_DEH_SYS_ID AND B.DED_DAK_SYS_ID = C.FNAH_DED_SYS_I
    D AND C.FNAH_SYS_ID = (SELECT MAX(B.FNAH_SYS_ID) FROM OT_FIR
    198,343 2 99,171.5 8.8 5.82 46.25 1414719916
    UPDATE OM_MEM_REG_HEAD SET MRH_MRN=:b1 WHERE MRH_SYS_ID = :b2
    198,343 2 99,171.5 8.8 5.81 46.10 1414796677
    UPDATE OT_DAK_ACTV_HISTORY SET DAH_REG_NO = :B1 WHERE DAH_REG_NO
    = :B3 AND TRUNC(DAH_ACTV_ED_DT ) <= TRUNC(:B2 ) AND DAH_ACTV_ST
    ATUS = 'C'
    173,892 2 86,946.0 7.7 13.85 16.34 3262067067
    SELECT STUD_SRN,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_MAIDEN_NAM
    E,STUD_SURNAME,STUD_FATHER_NAME,STUD_BIRTH_DT,STUD_COMM_CODE,STU
    D_SEX,STUD_HANDICAPPED_YN,STUD_HANDICAPPED_REASON,STUD_LANG_CODE
    ,STUD_NATIONALITY_CODE,STUD_EMAIL,STUD_PERMNT_ADDR_LINE_1,STUD_P
    ERMNT_ADDR_LINE_2,STUD_PERMNT_ADDR_LINE_3,STUD_PERMNT_ADDR_LINE_
    112,038 9 12,448.7 5.0 9.23 10.14 2058267852
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    102,583 1 102,583.0 4.5 4.51 285.99 802587273
    SELECT ROWID,DEH_DT,DEH_TXN_CODE,DEH_NO,DEH_AMD_NO,DEH_REF_FROM,
    DEH_REF_TXN_CODE,DEH_REF_NO,DEH_REF_SYS_ID,DEH_REGION_CODE,DEH_A
    PPLICATION_DT,DEH_DOC_STATUS,DEH_STATUS,DEH_PRINT_STATUS,DEH_CLO
    STATUS,DEHSYS_ID,DEH_COMP_CODE,DEH_ACNT_YR,DEH_AMD_DT,DEH_AMD_
    UID,DEH_AMD_RES_CODE,DEH_REF_FROM_NUM,DEH_CR_UID,DEH_CR_DT,DEH_U
    98,825 3 32,941.7 4.4 6.70 6.66 2078892348
    /*SELECT STUD_SRN
    Q1_RE
    GNO, O_GET_OLD_REG_NO(STUD_SRN, :BP_COURSE) OLD_NO, TIT_NAME||'
    '||STUD_FIRST_NAME||' '||STUD_MIDDLE_NAME||' '||STUD_SURNAME
    Q1_NAME, LTRIM(RTRIM(A.STUD_CORRES_ADDR_LINE_1 ))||DECO
    96,187 2 48,093.5 4.3 10.78 16.53 3301514821
    SELECT MFCD_PAYIN_SLIP_NO MFCD_PAYIN_SLIP_NO
    , DECODE(MFCD_BANK_CODE ,'ICI',1,2) ICI_FIRST
    , DECODE(MFCD_INSTR_TYPE,'S',1,'L
    SQL ordered by Reads for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    ',2,'O',3,4) TYPE_FIRST , MFCD_PAYIN_SLIP_DT , FM_BANK
    .BANK_NAME , BAD_ADDR1 ADD1
    80,683 4 20,170.8 3.6 9.90 54.25 937031003
    SELECT TRIM(STUD_SRN)
    Q1_REGNO, TR
    IM(STUD_TEMP_REF_NO)
    Q1_TEMPNO, STUD_TITLE
    77,972 8 9,746.5 3.5 8.92 8.84 2241526944
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    75,667 3 25,222.3 3.4 3.34 25.09 3345305231
    SELECT DISTINCT SFCH_STUD_SRN FROM OT_STUDENT_FEE_COL_HEAD A,O
    T_STUDENT_FEE_COL_DETL B WHERE B.SFCD_SFCH_SYS_ID = A.SFCH_SYS_
    ID AND B.SFCD_INSTR_BANK_CODE = :b1 AND B.SFCD_INSTR_NO = :b2
    72,658 52 1,397.3 3.2 20.32 21.85 4142254844
    SELECT LTRIM(RTRIM(DECODE(TIT_NAME,'MR.','CA.','MS.','CA.','MRS.
    ','CA.') || ' ' || MRH_FIRST_NAME || ' ' || MRH_MIDDLE_NAME
    || ' ' || MRH_SUR_NAME || ' ' || DECODE(MRH_APPR_UID, NULL ,
    NULL ,DECODE(MRH_MEM_STATUS,2, NULL ,DECODE(MRH_FELLOW_STATUS_YN
    ,'Y','FCA','ACA'))) || DECODE(MRH_RESI_STATUS,'A','
    48,619 3 16,206.3 2.2 4.19 4.11 496772197
    SELECT ROWID,STUD_DT,STUD_TXN_CODE,STUD_NO,STUD_AMD_NO,STUD_REF_
    FROM,STUD_REF_TXN_CODE,STUD_REF_NO,STUD_TEMP_REF_NO,STUD_SRN,STU
    D_TITLE,STUD_STATUS,STUD_FIRST_NAME,STUD_MIDDLE_NAME,STUD_SURNAM
    E,STUD_MAIDEN_NAME,STUD_NAME_STATUS,STUD_FATHER_NAME,STUD_NATION
    ALITY_CODE,STUD_NATION_PROOF_ENCL_YN,STUD_SEX,STUD_HANDICAPPED_Y
    48,063 230 209.0 2.1 20.27 20.76 1838125769
    SELECT MRH_DT,MRH_FIRST_NAME,MRH_MIDDLE_NAME,MRH_SUR_NAME,MRH_ST
    ATUS FROM OM_MEM_REG_HEAD WHERE DECODE(:b1,1,MRH_MRN,MRH_MFCH
    SQL ordered by Executions for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Executions Threshold: 100
    CPU per Elap per
    Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
    38,614 38,614 1.0 0.00 0.00 1741347688
    SELECT SYSDATE FROM SYS.DUAL
    12,490 12,488 1.0 0.00 0.00 2614155871
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',STATUS_NAME,STATUS_BL_NAM
    E),DECODE(:b2,'ENG',STATUS_SHORT_NAME,STATUS_BL_SHORT_NAME)) STA
    TUS_DESC,STATUS_FRZ_FLAG_NUM FROM OM_STATUS WHERE STATUS_CODE
    = :b4
    8,629 8,628 1.0 0.00 0.00 1644340447
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',FEE_TYPE_NAME,FEE_TYPE_BL
    NAME),DECODE(:b2,'ENG',FEETYPE_SHORT_NAME,FEE_TYPE_BL_SHORT_NA
    ME)) FEE_NAME,FEE_TYPE_FRZ_FLAG_NUM FROM OM_FEE_TYPE WHERE FE
    E_TYPE_CODE = :b4
    7,275 7,272 1.0 0.00 0.34 3716207873
    update seq$ set increment$=:2,minvalue=:3,maxvalue=:4,cycle#=:5,
    order$=:6,cache=:7,highwater=:8,audit$=:9,flags=:10 where obj#=:
    1
    6,293 6,283 1.0 0.00 0.00 2804237544
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',CITY_NAME,CITY_BL_NAME),D
    ECODE(:b2,'ENG',CITY_SHORT_NAME,CITY_BL_SHORT_NAME)) CITY_NAME,C
    ITY_TALUK_CODE,CITY_DIST_CODE,CITY_STATE_CODE,CITY_REGION_CODE,C
    ITY_FRZ_FLAG_NUM FROM OM_CITY WHERE CITY_CODE = :b4
    6,221 6,221 1.0 0.00 0.00 484036617
    SELECT DAH_SYS_ID.NEXTVAL FROM DUAL
    6,221 6,221 1.0 0.00 0.00 2945494810
    SELECT COUNT(DAH_SYS_ID) FROM OT_DAK_ACTV_HISTORY WHERE DAH_ACTV
    TYPE = :B2 AND DAHTXN_SYS_ID = :B1
    5,979 5,979 1.0 0.00 0.00 35936114
    SELECT STUD_DOC_STATUS FROM OM_STUDENT_HEAD WHERE STUD_SYS_ID
    = :b1
    4,637 4,637 1.0 0.00 0.00 1237293873
    SELECT DECODE(:b1,'L',DECODE(:b2,'ENG',COU_NAME,COU_BL_NAME),DEC
    ODE(:b2,'ENG',COU_SHORT_NAME,COU_BL_SHORT_NAME)) COU_NAME,COU_FR
    Z_FLAG_NUM FROM OM_COUNTRY WHERE COU_CODE = :b4
    4,404 1,276 0.3 0.00 0.00 1829426463
    SELECT NVL(TAU_FROM_VALUE,0), NVL(TAU_TO_VALUE,0) FROM IM_TXN_AU
    TH_USER WHERE TAU_TA_TYPE = :B3 AND TAU_TXN_CODE = :B2 AND TAU_A
    UTH_UID = :B1
    4,220 4,220 1.0 0.00 0.00 1006906503
    UPDATE OT_DAK_ACTV_HISTORY SET DAH_ACTV_ED_DT = :B3 , DAH_ACTV_S
    TATUS = 'C' WHERE DAH_ACTV_TYPE = :B2 AND DAH_TXN_SYS_ID = :B1
    3,874 66 0.0 0.00 0.00 4284733339
    SELECT TIT_NAME ||' '|| AR_FIRST_NAME||' '||AR_MIDDLE_NAME||' '|
    |AR_SUR_NAME FROM OT_ARTICLE_REGISTRATION, OM_TITLE WHERE TRIM(A
    SQL ordered by Executions for DB: ICAI Instance: icai Snaps: 70 -73
    -> End Executions Threshold: 100                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • Data block size

    I have just started reading the concepts and I got to know that Oracle database data is stored in data blocks. The standard block size is specified by
    DB_BLOCK_SIZE init parameter. Additionally we can specify upto 5 other block sizes using DB_nK_CACHE_SIZE parameter.
    Let us say I define in the init.ora
    DB_BLOCK_SIZE = 8K
    DB_CACHE_SIZE = 4G
    DB_4K_CACHE_SIZE=1G
    DB_16K_CACHE_SIZE=1G
    Questions:
    a) Does this mean I can create tablespaces with 8K, 4K and 16K block sizes only?
    b) whenever I query data from these tablespaces, it will go and sit in these respective cache sizes?
    Thanks in advance.
    Neel

    yes, it will give error message if you create tablespace with non standard block size without specify the db_nk_cache_size parameter in the init parameter file .
    Use the BLOCKSIZE clause of the CREATE TABLESPACE statement to create a tablespace with a block size different from the database standard block size. In order for the BLOCKSIZE clause to succeed, you must have already set the DB_CACHE_SIZE and at least one DB_nK_CACHE_SIZE initialization parameter. Further, and the integer you specify in the BLOCKSIZE clause must correspond with the setting of one DB_nK_CACHE_SIZE parameter setting. Although redundant, specifying a BLOCKSIZE equal to the standard block size, as specified by the DB_BLOCK_SIZE initialization parameter, is allowed.
    The following statement creates tablespace lmtbsb, but specifies a block size that differs from the standard database block size (as specified by the DB_BLOCK_SIZE initialization parameter):
    CREATE TABLESPACE lmtbsb DATAFILE '/u02/oracle/data/lmtbsb01.dbf' SIZE 50M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K
    BLOCKSIZE 8K;
    reference:-http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/tspaces003.htm

  • Is my OS block size 4096 or 512 bytes?

    Hi!
    I am working on RHEL 4.5 ES edition. I have an installation of an Oracle 10g database whose files spread out over two separate partitions /u01 and /u02 that show a block size of 4096 using dumpe2fs.
    dumpe2fs /dev/sdb1 | grep 'size'
    dumpe2fs /dev/sda7 | grep 'size'
    Block size: 4096
    Fragment size: 4096
    Inode size: 128
    Using a different method of deriving the OS block size by querying v$archived_log I get the output of 512.
    Is the v$archived_log method of finding the OS block size incorrect?
    Thanks and Regards,
    Aniruddha

    What does
    /sbin/tune2fs -l /dev/xxx
    return? 4096 only? If yes, then your block size is 4096.
    From http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1016.htm#sthref3455
    The online log logical block size is a platform-specific value that is not adjustable by the user.
    So may be it is fixed at 512 bytes.
    Others: Please comment.

Maybe you are looking for

  • Template installer issues

    Hi Guru: When I run the template installer in the portal, I got the following errors in the step 1, "create RFC destination in ABAP" Element 'SAPConfigLib.PT1.Unclassified.createRfcDestination':!BrokerImport.import_of_element_failed!!BrokerImport.Feh

  • (Youtube-) Video in a Swing GUI

    Hey everyone, I'm currently trying to play a video in my Swing GUI with JMF but I really can't get it to work. With the help of google I got this far: import java.awt.BorderLayout; import java.awt.Component; import java.io.IOException; import java.ne

  • Importing Date fields from Oracle always defaults to DT_DBDATETIME, and won't accept chages

    Hi I am trying to import date fields in an Oracle database in to SQL Server 2012, using SSIS. The package is using DT_DBTIMESTAMP type in the Data Flow, but this has the same range as SQL Server datetime, and it bombs out all the time. I have tried t

  • How to use JavaBean in Form Builder 6i

    Hi, How to use JavaBean in Form Builder 6i (Oracle Developer 6i)?. i'am using Oracle Sever 8.0.4 and Oracle Developer 6i. Please give your valuable suggestion Regards Seema

  • Mapping validation is hanging

    Hi all, any idea what to do, if a mapping validation is still hanging and won´t finish? (We still have restarted the clients a tried again) Thanks jwehner