ORA-1547 조치 방법

제품 : ORACLE SERVER
작성날짜 : 1995-11-02
ORA-1547 에러 발생의 원인으로는 TABLESPACE가 에러에 명시된 ORACLE block수 만큼의 요청된 EXTENT를 할당할 충분한 FREE SPACE를 갖고 있지 못 할 경우에 발생된다.
현재의 EXTENT가 실제 데이타 화일에 존재하는 FREE SPACE 중에서 할당 가능한 연속적인 ORACLE block을 요구하게 된다.
< ORA-1547 에러가 발생하는 경우 >
1. 데이타 INSERT나 UPDATE시 DATA SEGMENT가 차지하게될 연속적인 ORACLE 블럭을 할당받지 못할 경우에 발생한다.
2. 인덱스를 생성할 경우에 발생한다.
- ROLLBACK SEGMENT가 사용할 RBS 또는 USER TABLESPACE의 영역이
부족하여 발생할 수 있다.
- 인덱스 생성시 SORT 영역으로 사용되는 TEMPORARY TABLESPACE내의
SPACE의 부족으로 발생할 수 있다.
3. SQL*FORMS30, SQL*REPORTWRITER등의 프로그램을 데이타베이스에
[SAVE]시 관련 테이블들을 포함하고 있는 SYSTEM 또는 TOOLS
TABLESPACE등의 영역이 부족한 경우에 발생된다.
< ORA-1547 에러 확인 >
이러한 경우 EXTENT에 관련된 DATA DICTIONARY VIEW인 USER_TABLES,
USER_EXTENTS, USER_SEGMENTS와 DBA_FREE_SPACE 등을 조회해서 관련 내용을
확인한다.
예를 들어, 데이타 INSERT 시 "ORA-1547 : Failed to allocate extent of size
'num' in tablespace 'TOOLS'" 에러가 발생될 경우를 고려해 보자.
1. [USER_TABLES]에서 INSERT에 관련된 테이블의 NEXT_EXTENT 크기를 확인 한다.
SQL> SELECT * FROM USER_TABLES
WHERE TABLE_NAME = 'EMP';
INITIAL_EXTENT NEXT_EXTENT PCT_INCREASE MIN_EXTENTS MAX_EXTENTS
10240 190464 50 1 121
(A)
(A) : 다음에 할당되는 EXTENT의 크기를 나타내며 BYTES 단위이다.
2. [DBA_FREE_SPACE]에서 현재 TABLESPACE에 존재하는 FREE SPACE 중 가장 큰
연속된 영역을 확인한다.
[DBA_FREE_SPACE]는 SQLDBA에서 확인한다.
SQLDBA> SELECT MAX(BYTES) MAX_CONTIGUOUS_SPACE
FROM DBA_FREE_SPACE
WHERE TABLESPACE_NAME = 'TOOLS';
MAX_CONTIGUOUS_BYTES
19730432
(B)
(B) : 현재 TABLESPACE에 남아있는 FREE SPACE 중 가장 큰 연속된 영역으로
BYTES 단위로 나타난다.
3. 위에서 살펴본 바와 같이 2)-(B)의 MAX(BYTES) 크기가 1)-(A)의 NEXT_EXTENT
크기보다 커야하므로 최소 1)-(A)의 NEXT_EXTENT 크기 이상의 데이타 화일을
"TOOLS" TABLESPACE에 "ALTER TABLESPACE tablespace_name ADD
DATAFILE.... " 명령을 이용하여 추가한다.
< ORA-1547의 처리 방법 >
1. 해당 TABLESPACE내에서 연속된 영역의 ORACLE block 할당할 수 있도록 데이타
화일을 추가한다. 3) 에서 "TOOLS" TABLESPACE에 영역을 추가하는 방법은
다음과 같다.
$ sqlplus system/manager
SQL> ALTER TABLESPACE tools ADD DATAFILE
'/usr/../tools1ORA7.dbf' SIZE 50M;
<참고> DATAFILE의 이름 즉 '/usr/../tools1ORA7.dbf' 는 이미 존재하는
DATAFILE 이름과 다르게 해야 한다.
2. TABLE의 STORAGE PARAMETER에서 INITIAL EXTENT, NEXT EXTENT의 크기를
조정하여 TABLE을 재구축할 수 있다. 즉, TABLE의 STORAGE PARAMETER 중에서
NEXT를 현재 TABLESPACE에 남아 있는 FREE SPACE 중 가장 큰 연속된 영역
(DBA_FREE_SPACE의 MAX(BYTES) ) 보다 작게 변경할 수 있다.
예를 들면, "ALTER TABLE..." 명령을 이용하여 다음과 같이 재조정한다.
SQL> ALTER TABLE EMP STORAGE ( NEXT 100K );
3. 또 다른 방법으로는 관련 TABLESPACE를 재구성하는 것이다.
여기서는 TABLESPACE를 재구축한 후, TABLE을 다시 생성함으로써 DISK
FRAGMENTATION을 없앨 수 있다.

See MOSC notes on the ORA-12545 error:
Note 284909.1 - Intermittent ORA-12545 When Trying To Connect To RAC Database
Note 364855.1 - RAC Connection Redirected To Wrong Host/IP ORA-12545
Note 291175.1 - Clients Failing to Connect Due to Intermittent ORA-12545 in RAC Environment
Note 333159.1 - ORA-12545 Frequent Client Connection Failure - 10g Standard RAC

Similar Messages

  • Crash - recovery problem - ora-1113

    Hi,
    Because of the hardware problems, my database server has crashed. Database (8.1.7) works in archive log.
    Before the crash, the last log switch seq# was 17173:
    ARC2: Beginning to archive log# 12 seq# 17173
    ARC2: Completed archiving log# 12 seq# 17173
    After the crash I tried to open it, counting on automatic revovery. SMON started to do roll-forward etc., but suddenly got an error:
    alter database open
    ORA-1113 signalled during: alter database open ...
    I tried to use until cancel recovery:
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log F:\ORACLE\PEL\SAPARCH\PELARCHARC17171.001
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Tue Jul 01 22:51:27 2003
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log F:\ORACLE\PEL\SAPARCH\PELARCHARC17172.001
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Tue Jul 01 22:51:32 2003
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log F:\ORACLE\PEL\SAPARCH\PELARCHARC17173.001
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Tue Jul 01 22:51:38 2003
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log F:\ORACLE\PEL\SAPARCH\PELARCHARC17174.001
    ORA-308 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...Tue Jul 01 22:51:38 2003
    ALTER DATABASE RECOVER CANCEL
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL...
    The problem is, that the redo-log seq# 17174 do not exists...
    I do not understand, what happened, why the information couldn't be read from online redo logs if they exist...?
    I had to do point-in-time recovery, now the database works OK, but still don't know why Oracle wanted to use log #17174? Any ideas?
    James

    The ORa-1113 error means that your Backup implementation ("Retrospect") does an ALTER TABLESPACE BEGIN BACKUP and END BACKUP for each tablespace.
    In 8i, you would not have the "ALTER DATABASE END BACKUP" command. Nor the "ALTER DATABASE DATAFILE .. END BACKUP".
    What you would do is :
    1. Start the service.
    2. Go to Windows command line prompt as the Administrator or account in the OS_DBA group (with the right ORACLE_SID, ORACLE_HOME and PATH)
    3. sqlplus / as sysdba
    4. startup mount -- or ALTER DATABASE MOUNT if it did get started but not mounted
    5. ALTER TABLESPACE (tablespacename_that_was_in_backup_mode) END BACKUP ;
    (if there were multiple tablespaces in backup mode, issue the END BACKUP for each one of them)
    6. ALTER DATABASE OPEN ;
    The other option to step 5 is the "RECOVER DATABASE" . Oracle may apply archivelogs to synchronise the datafiles back.

  • How to recover from one corrupted redo log file in NOARCHIVE mode?

    Oracle 10.2.1.
    The redo log file was corrupted and Oracle can't work.
    When I use STARTUP mount, I got no error msg.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1652555776 bytes
    Fixed Size 1251680 bytes
    Variable Size 301991584 bytes
    Database Buffers 1342177280 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    But I have some applications which are depended on Oracle can't be started.
    So, I tried STARTUP open. But I got error msg.
    SQL> startup open
    ORACLE instance started.
    Total System Global Area 1652555776 bytes
    Fixed Size 1251680 bytes
    Variable Size 301991584 bytes
    Database Buffers 1342177280 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    ORA-00368: checksum error in redo log block
    ORA-00353: log corruption near block 497019 change 42069302 time 11/07/2007
    23:43:09
    ORA-00312: online log 4 thread 1:
    'G:\ORACLE\PRODUCT\10.2.0\ORADATA\NMDATA\REDO04.LOG'
    So, how can I restore and recover my database?
    If use RMAN, how to do that?
    Any help will be appreciated.
    Thanks.

    Hi, Yingkuan,
    Thanks for the helps.
    Actually, I have 10 redo log files exists. All of them are here.
    I tried your suggestion:
    alter database clear unarchived logfile group 4;
    The error msg I got is the same as before:
    SQL> alter database clear unarchived logfile group 4;
    alter database clear unarchived logfile group 4
    ERROR at line 1:
    ORA-01624: log 4 needed for crash recovery of instance nmdata (thread 1)
    ORA-00312: online log 4 thread 1:
    'G:\ORACLE\PRODUCT\10.2.0\ORADATA\NMDATA\REDO04.LOG'
    Compared to losing all the data, it is OK for me lose some of them.
    I have more than 1 TB data stored and 99.9% of them are raster images.
    The loading of these data were the headache. If I can save them, I can bear the lost.
    I want to grasp the last straw.
    But I don't know how set the parameter: allowresetlogs_corruption
    I got the error msg:
    SQL> set allowresetlogs_corruption=true;
    SP2-0735: unknown SET option beginning "_allow_res..."
    I have run the command:
    Recover database until cancel
    Alter database open resetlogs
    The error msg I got is the following:
    SQL> recover database until cancel
    ORA-00279: change 41902930 generated at 11/05/2007 22:01:48 needed for thread 1
    ORA-00289: suggestion :
    D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\NMDATA\ARCHIVELOG\2007_11_09\O1_MF_
    1_1274_%U_.ARC
    ORA-00280: change 41902930 for thread 1 is in sequence #1274
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\NMDATA\SYSTEM01.DBF'
    ORA-01112: media recovery not started
    SQL>
    From the log file, I got the following:
    ALTER DATABASE RECOVER database until cancel
    Fri Nov 09 00:12:48 2007
    Media Recovery Start
    parallel recovery started with 2 processes
    ORA-279 signalled during: ALTER DATABASE RECOVER database until cancel ...
    Fri Nov 09 00:13:20 2007
    ALTER DATABASE RECOVER CANCEL
    Fri Nov 09 00:13:21 2007
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Fri Nov 09 00:13:21 2007
    ALTER DATABASE RECOVER CANCEL
    ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Thank you very much. and I am looking forward to your followup input.

  • Files are not applying in Stand by server.

    Hi All,
    We are getting the bellow error in standby server while applying log files.
    Media Recovery Log /oracle/DB7/saparch/DB7arch1_97211_627008903.dbf
    Errors with log /oracle/DB7/saparch/DB7arch1_97211_627008903.dbf
    ORA-310 signalled during: ALTER DATABASE RECOVER    LOGFILE '/oracle/DB7/saparch/DB7arch1_97211_627008903.dbf'  ...
    Fri Feb 18 13:09:56 2011
    ALTER DATABASE RECOVER CANCEL
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
    This error we are facing after sudden reboot/crash of the server.  Upto DB7arch1_97210 files successfully applied.
    Please help on this.
    Regards,
    Venkata.

    Make the all archivelogs available in archive directory and use below command (After mounting your DB in standby mode).
    recover standby database
    Update this message with the result after issuing above command (Paste the last 10 lines of your controlfile)
    Regards,
    Nick Loy

  • How to check particular error in alert log file

    Hi all,
    How to check particular error in alert log file,for supose if i get error in batabase yesterday 4 pm & today i want to check alert log file to get basic idea..it might be a big file so how to check that particular error..
    Thanks & regards,
    Eswar..

    What's your oracle version?
    If you are in 11g you can use adrci tool
    1- set homes diag/rdbms/orawiss/ORAWISS/ : the rdbms home
    2- show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term : to find all the ORA-% errors in the alert file
    3- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term : to find all the ORA-% errors in the alert file during the last 51 days,
    4- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-1/24 " -term : to find all the ORA-% errors in the alert file during the last hour,
    5- show alert -P "MESSAGE_TEXT LIKE '%ORA-12012%' and originating_timestamp > systimestamp-1/24 " -term : to find the particular ORA-12012 error in the alert file during the last hour,
    Example:
    [oracle@wissem wissem]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed May 4 10:24:54 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/home/oracle/app/oracle"
    adrci> set homes diag/rdbms/orawiss/ORAWISS/
    adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-'" -term
    ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
    adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term
    ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
    2010-12-11 19:45:41.289000 +01:00
    ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
    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: '/home/oracle/app/oracle/oradata/ORAWISS/system01.dbf'
    ORA-1547 signalled during: ALTER DATABASE RECOVER  database until time '2011-01-21:10:48:00'  ...
    Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
    ORA-12012: error on auto execute of job 29
    ORA-01435: user does not exist
    2011-03-15 11:39:37.571000 +01:00
    opiodr aborting process unknown ospid (31042) as a result of ORA-609
    2011-03-15 12:04:15.111000 +01:00
    opiodr aborting process unknown ospid (3509) as a result of ORA-609
    adrci>
    adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term
    ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
    2011-03-15 10:19:45.316000 +01:00
    Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j006_5536.trc:
    ORA-12012: error on auto execute of job 26
    ORA-01435: user does not exist
    Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
    ORA-12012: error on auto execute of job 29
    ORA-01435: user does not exist
    2011-03-15 11:39:37.571000 +01:00
    opiodr aborting process unknown ospid (31042) as a result of ORA-609
    2011-03-15 12:04:15.111000 +01:00
    opiodr aborting process unknown ospid (3509) as a result of ORA-609
    adrci>

  • Threshold fragmentation in a tablespace

    Hi all,
    How can I identify the threshold fragmentation in a tablespace in oracle 9i and then how can I eliminate it?
    Thanks in advance.
    Deep

    A tablespace is fragmented when enough space exists in the tablespace to satisfy
    space request but it is spread across smaller pieces of free space and therefore
    cannot be used to satisfy the request.
    Here are some symptoms that may indicate fragmentation in a database:
    - any ORA errors regarding allocation of extents or space(i.e. ora-1547, ora-1562)
    - DBA_FREE_SPACE shows a lot of free space left in a tablespace, but users
    receive space errors
    Use locally managed tablespaces with uniform extent size and say good bye to Tablespace fragmentation.

  • Log corruption near block 1737

    hi,
    i am getting an error while open the db
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-00368: checksum error in redo log block
    ORA-00353: log corruption near block 1737 change 16680088 time 12/22/2008
    10:40:13
    ORA-00312: online log 2 thread 1: 'G:\ORACLE\ORADATA\HOTEST\REDO02.LOG'while doing an incomplete recovery it is asking for an archived file which i am not having i.e ARC_801_1.ARC.........
    SQL> recover database until cancel;
    ORA-00279: change 16679127 generated at 12/22/2008 10:37:11 needed for thread 1
    ORA-00289: suggestion : G:\ORACLE\ARCH\ARC_801_1.ARC
    ORA-00280: change 16679127 for thread 1 is in sequence #801
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'G:\ORACLE\ORADATA\HOTEST\SYSTEM01.DBF'
    ORA-01112: media recovery not startedpls suggest me for the same....

    I am not having a archived log of sequence no. 801 neither i am having backup, is there any other way to up the db....
    SMON: enabling tx recovery
    Mon Dec 22 10:37:16 2008
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Completed: alter database open
    Corrupt block relative dba: 0x0300cc4b (file 12, block 52299)
    Bad check value found during buffer read
    Data in bad block -
    type: 6 format: 2 rdba: 0x0300cc4b
    last change scn: 0x0000.000fa127 seq: 0x1 flg: 0x06
    consistency value in tail: 0xa1270601
    check value in block header: 0x8f85, computed block checksum: 0xcf00
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Reread of rdba: 0x0300cc4b (file 12, block 52299) found valid data
    Corrupt block relative dba: 0x0300cdfb (file 12, block 52731)
    Bad check value found during buffer read
    Data in bad block -
    type: 6 format: 2 rdba: 0x0300cdfb
    last change scn: 0x0000.000fa128 seq: 0x1 flg: 0x04
    consistency value in tail: 0xa1280601
    check value in block header: 0x446b, computed block checksum: 0x3200
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Reread of rdba: 0x0300cdfb (file 12, block 52731) found valid data
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Dump file g:\oracle\admin\hotest\bdump\alert_hotest.log
    Mon Dec 22 10:41:29 2008
    ORACLE V9.2.0.4.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.1 Service Pack 2, CPU type 586
    Mon Dec 22 10:41:29 2008
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    SCN scheme 2
    Using log_archive_dest parameter default value
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
      processes                = 150
      timed_statistics         = TRUE
      shared_pool_size         = 50331648
      large_pool_size          = 8388608
      java_pool_size           = 33554432
      control_files            = G:\oracle\oradata\hotest\CONTROL01.CTL, G:\oracle\oradata\hotest\CONTROL02.CTL, G:\oracle\oradata\hotest\CONTROL03.CTL
      db_block_size            = 8192
      db_cache_size            = 25165824
      compatible               = 9.2.0.0.0
      log_archive_start        = TRUE
      log_archive_dest_1       = location=G:\oracle\arch
      log_archive_dest_2       = SERVICE=stand LGWR ASYNC
      log_archive_dest_state_1 = ENABLE
      log_archive_dest_state_2 = ENABLE
      fal_server               = STAND
      fal_client               = HOTEST
      log_archive_format       = arc_%s_%t.arc
      db_file_multiblock_read_count= 16
      fast_start_mttr_target   = 300
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      undo_retention           = 10800
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      instance_name            = hotest
      dispatchers              = (PROTOCOL=TCP) (SERVICE=hotestXDB)
      job_queue_processes      = 10
      hash_join_enabled        = TRUE
      background_dump_dest     = G:\oracle\admin\hotest\bdump
      user_dump_dest           = G:\oracle\admin\hotest\udump
      core_dump_dest           = G:\oracle\admin\hotest\cdump
      sort_area_size           = 524288
      db_name                  = hotest
      open_cursors             = 300
      star_transformation_enabled= FALSE
      query_rewrite_enabled    = FALSE
      pga_aggregate_target     = 25165824
      aq_tm_processes          = 1
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    CJQ0 started with pid=8
    QMN0 started with pid=9
    Mon Dec 22 10:41:36 2008
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=12
    ARC0: Archival started
    ARC1 started with pid=13
    Mon Dec 22 10:41:37 2008
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Mon Dec 22 10:41:37 2008
    ARC0: Thread not mounted
    Mon Dec 22 10:41:38 2008
    ARC1: Archival started
    Mon Dec 22 10:41:38 2008
    ARC1: Thread not mounted
    Mon Dec 22 10:41:38 2008
    alter database mount exclusive
    Mon Dec 22 10:41:43 2008
    Successful mount of redo thread 1, with mount id 1003521250.
    Mon Dec 22 10:41:43 2008
    Database mounted in Exclusive Mode.
    Completed: alter database mount exclusive
    Mon Dec 22 10:41:43 2008
    alter database open
    Mon Dec 22 10:41:44 2008
    Beginning crash recovery of 1 threads
    Mon Dec 22 10:41:44 2008
    Started first pass scan
    ORA-368 signalled during: alter database open...
    Mon Dec 22 10:42:35 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Dump file g:\oracle\admin\hotest\bdump\alert_hotest.log
    Mon Dec 29 10:14:22 2008
    ORACLE V9.2.0.4.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.1 Service Pack 2, CPU type 586
    Mon Dec 29 10:14:22 2008
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    SCN scheme 2
    Using log_archive_dest parameter default value
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
      processes                = 150
      timed_statistics         = TRUE
      shared_pool_size         = 50331648
      large_pool_size          = 8388608
      java_pool_size           = 33554432
      control_files            = G:\oracle\oradata\hotest\CONTROL01.CTL, G:\oracle\oradata\hotest\CONTROL02.CTL, G:\oracle\oradata\hotest\CONTROL03.CTL
      db_block_size            = 8192
      db_cache_size            = 25165824
      compatible               = 9.2.0.0.0
      log_archive_start        = TRUE
      log_archive_dest_1       = location=G:\oracle\arch
      log_archive_dest_2       = SERVICE=stand LGWR ASYNC
      log_archive_dest_state_1 = ENABLE
      log_archive_dest_state_2 = ENABLE
      fal_server               = STAND
      fal_client               = HOTEST
      log_archive_format       = arc_%s_%t.arc
      db_file_multiblock_read_count= 16
      fast_start_mttr_target   = 300
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      undo_retention           = 10800
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      instance_name            = hotest
      dispatchers              = (PROTOCOL=TCP) (SERVICE=hotestXDB)
      job_queue_processes      = 10
      hash_join_enabled        = TRUE
      background_dump_dest     = G:\oracle\admin\hotest\bdump
      user_dump_dest           = G:\oracle\admin\hotest\udump
      core_dump_dest           = G:\oracle\admin\hotest\cdump
      sort_area_size           = 524288
      db_name                  = hotest
      open_cursors             = 300
      star_transformation_enabled= FALSE
      query_rewrite_enabled    = FALSE
      pga_aggregate_target     = 25165824
      aq_tm_processes          = 1
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    CJQ0 started with pid=8
    QMN0 started with pid=9
    Mon Dec 29 10:14:28 2008
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=12
    ARC0: Archival started
    ARC1 started with pid=13
    ARC1: Archival started
    Mon Dec 29 10:14:30 2008
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Mon Dec 29 10:14:30 2008
    ARC1: Thread not mounted
    Mon Dec 29 10:14:31 2008
    ARC0: Thread not mounted
    Mon Dec 29 10:14:32 2008
    alter database mount exclusive
    Mon Dec 29 10:14:37 2008
    Successful mount of redo thread 1, with mount id 1004122632.
    Mon Dec 29 10:14:37 2008
    Database mounted in Exclusive Mode.
    Completed: alter database mount exclusive
    Mon Dec 29 10:14:37 2008
    alter database open
    Mon Dec 29 10:14:37 2008
    Beginning crash recovery of 1 threads
    Mon Dec 29 10:14:38 2008
    Started first pass scan
    ORA-368 signalled during: alter database open...
    Mon Dec 29 10:15:29 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:20:44 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:25:54 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:31:09 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:36:24 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:41:40 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:46:55 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:52:10 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 10:57:26 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:02:41 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:07:56 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:13:05 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:18:15 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:23:30 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:28:39 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:33:49 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:39:04 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:44:19 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:49:35 2008
    Restarting dead background process QMN0
    QMN0 started with pid=9
    Mon Dec 29 11:54:44 2008
    Restarting dead background process QMN0
    QMN0 started with pid=15
    Mon Dec 29 11:59:59 2008
    Restarting dead background process QMN0
    QMN0 started with pid=14
    Mon Dec 29 12:03:06 2008
    alter database open
    Mon Dec 29 12:03:06 2008
    Beginning crash recovery of 1 threads
    Mon Dec 29 12:03:07 2008
    Started first pass scan
    ORA-368 signalled during: alter database open...
    Mon Dec 29 12:05:09 2008
    Restarting dead background process QMN0
    QMN0 started with pid=15
    Mon Dec 29 12:05:14 2008
    ALTER DATABASE RECOVER  database until cancel 
    Mon Dec 29 12:05:14 2008
    Media Recovery Start
    Starting datafile 1 recovery in thread 1 sequence 801
    Datafile 1: 'G:\ORACLE\ORADATA\HOTEST\SYSTEM01.DBF'
    Starting datafile 2 recovery in thread 1 sequence 801
    Datafile 2: 'G:\ORACLE\ORADATA\HOTEST\UNDOTBS01.DBF'
    Starting datafile 3 recovery in thread 1 sequence 801
    Datafile 3: 'G:\ORACLE\ORADATA\HOTEST\CWMLITE01.DBF'
    Starting datafile 4 recovery in thread 1 sequence 801
    Datafile 4: 'G:\ORACLE\ORADATA\HOTEST\DRSYS01.DBF'
    Starting datafile 5 recovery in thread 1 sequence 801
    Datafile 5: 'G:\ORACLE\ORADATA\HOTEST\EXAMPLE01.DBF'
    Starting datafile 6 recovery in thread 1 sequence 801
    Datafile 6: 'G:\ORACLE\ORADATA\HOTEST\INDX01.DBF'
    Starting datafile 7 recovery in thread 1 sequence 801
    Datafile 7: 'G:\ORACLE\ORADATA\HOTEST\ODM01.DBF'
    Starting datafile 8 recovery in thread 1 sequence 801
    Datafile 8: 'G:\ORACLE\ORADATA\HOTEST\TOOLS01.DBF'
    Starting datafile 9 recovery in thread 1 sequence 801
    Datafile 9: 'G:\ORACLE\ORADATA\HOTEST\USERS01.DBF'
    Starting datafile 10 recovery in thread 1 sequence 801
    Datafile 10: 'G:\ORACLE\ORADATA\HOTEST\XDB01.DBF'
    Starting datafile 11 recovery in thread 1 sequence 801
    Datafile 11: 'G:\ORACLE\ORADATA\HOTEST\CADATA3.ORA'
    Starting datafile 12 recovery in thread 1 sequence 801
    Datafile 12: 'G:\ORACLE\ORADATA\HOTEST\CADATA.ORA'
    Starting datafile 13 recovery in thread 1 sequence 801
    Datafile 13: 'G:\ORACLE\ORADATA\HOTEST\CADATAWRO.ORA'
    Starting datafile 14 recovery in thread 1 sequence 801
    Datafile 14: 'G:\ORACLE\ORADATA\HOTEST\CADATANRO.ORA'
    Starting datafile 15 recovery in thread 1 sequence 801
    Datafile 15: 'G:\ORACLE\ORADATA\HOTEST\CADATACRO.ORA'
    Starting datafile 16 recovery in thread 1 sequence 801
    Datafile 16: 'G:\ORACLE\ORADATA\HOTEST\CADATAOTH.ORA'
    Starting datafile 17 recovery in thread 1 sequence 801
    Datafile 17: 'G:\ORACLE\ORADATA\HOTEST\CADATAERO.ORA'
    Starting datafile 18 recovery in thread 1 sequence 801
    Datafile 18: 'G:\ORACLE\ORADATA\HOTEST\CADATAHO.ORA'
    Starting datafile 19 recovery in thread 1 sequence 801
    Datafile 19: 'G:\ORACLE\ORADATA\HOTEST\CADATASRO.ORA'
    Starting datafile 20 recovery in thread 1 sequence 801
    Datafile 20: 'G:\ORACLE\ORADATA\HOTEST\PAYROLL.ORA'
    Starting datafile 21 recovery in thread 1 sequence 801
    Datafile 21: 'G:\ORACLE\ORADATA\HOTEST\ORION.ORA'
    Starting datafile 22 recovery in thread 1 sequence 801
    Datafile 22: 'G:\ORACLE\ORADATA\HOTEST\ATHENA.ORA'
    Starting datafile 23 recovery in thread 1 sequence 801
    Datafile 23: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2004.ORA'
    Starting datafile 24 recovery in thread 1 sequence 801
    Datafile 24: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2005.ORA'
    Starting datafile 25 recovery in thread 1 sequence 801
    Datafile 25: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2006.ORA'
    Starting datafile 26 recovery in thread 1 sequence 801
    Datafile 26: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2007.ORA'
    Starting datafile 27 recovery in thread 1 sequence 801
    Datafile 27: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2008.ORA'
    Starting datafile 28 recovery in thread 1 sequence 801
    Datafile 28: 'G:\ORACLE\ORADATA\HOTEST\CAL_YEAR_2009.ORA'
    Starting datafile 29 recovery in thread 1 sequence 801
    Datafile 29: 'G:\ORACLE\ORADATA\HOTEST\EXAMPLE02.DBF'
    Starting datafile 30 recovery in thread 1 sequence 801
    Datafile 30: 'G:\ORACLE\ORADATA\HOTEST\EXAMPLE02.RAW'
    Media Recovery Log
    ORA-279 signalled during: ALTER DATABASE RECOVER  database until cancel  ...
    Mon Dec 29 12:06:24 2008
    ALTER DATABASE RECOVER    CANCEL 
    Mon Dec 29 12:06:24 2008
    ORA-1547 signalled during: ALTER DATABASE RECOVER    CANCEL  ...
    Mon Dec 29 12:06:24 2008
    ALTER DATABASE RECOVER CANCEL
    ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Mon Dec 29 12:06:40 2008
    alter database open resetlogs
    Mon Dec 29 12:06:41 2008
    ORA-1194 signalled during: alter database open resetlogs...
    Mon Dec 29 12:06:47 2008
    alter database open noresetlogs
    Mon Dec 29 12:06:48 2008
    Beginning crash recovery of 1 threads
    Mon Dec 29 12:06:48 2008
    Started first pass scan
    ORA-368 signalled during: alter database open noresetlogs...
    Mon Dec 29 12:10:24 2008
    Restarting dead background process QMN0
    QMN0 started with pid=15
    Mon Dec 29 12:15:39 2008
    Restarting dead background process QMN0
    QMN0 started with pid=15
    Mon Dec 29 12:20:55 2008
    Restarting dead background process QMN0
    QMN0 started with pid=15
    Mon Dec 29 12:26:10 2008

  • Lost seq of redo log due to corruption and cannot recover database.

    Hi!
    This db I am working on is a test database running 10.2.0.3 on OEL5. Unfortunately due to some human error, we lost the redo log sequence 1_28_xxxxxx.redo. As this was a non-critical db, we didn't plan any backups for the db... and now whenever I try to open the db I get the error:
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/opt/app/oracle/oradata/tadb1/system01.dbf'
    SQL> recover until cancel
    ORA-00279: change 510956 generated at 08/31/2010 22:00:17 needed for thread 1
    ORA-00289: suggestion :
    /opt/app/oracle/oradata/tadb1/archive/1_28_728336713.dbf
    ORA-00280: change 510956 for thread 1 is in sequence #28
    SQL> recover database until time '31-AUG-2010 22:00:00';
    ORA-00283: recovery session canceled due to errors
    ORA-00314: log 1 of thread 1, expected sequence# 28 doesn't match 0
    ORA-00312: online log 1 thread 1: '/opt/app/oracle/oradata/tadb1/redo01.log'
    Is there a way to open the database!?
    Thanks,
    AB007

    Sorry for the late response guys... had called it a night earlier... well, I tried your suggestion... but still, the database can't recover -
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 510958 generated at 09/02/2010 23:56:37 needed for thread 1
    ORA-00289: suggestion : /opt/app/oracle/oradata/tadb1/archive/1_1_728697397.dbf
    ORA-00280: change 510958 for thread 1 is in sequence #1
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/opt/app/oracle/oradata/tadb1/system01.dbf'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ALERT LOG
    ALTER DATABASE RECOVER database using backup controlfile until cancel
    Fri Sep 3 10:14:22 2010
    Media Recovery Start
    WARNING! Recovering data file 1 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 2 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 3 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 4 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    parallel recovery started with 2 processes
    ORA-279 signalled during: ALTER DATABASE RECOVER database using backup controlfile until cancel ...
    Fri Sep 3 10:14:25 2010
    ALTER DATABASE RECOVER CANCEL
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Fri Sep 3 10:14:26 2010
    ALTER DATABASE RECOVER CANCEL
    ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Fri Sep 3 10:14:43 2010
    alter database open resetlogs
    Fri Sep 3 10:14:43 2010
    RESETLOGS is being done without consistancy checks. This may result
    in a corrupted database. The database should be recreated.
    RESETLOGS after incomplete recovery UNTIL CHANGE 510958
    Resetting resetlogs activation ID 2129258410 (0x7ee9e7aa)
    Online log /opt/app/oracle/oradata/tadb1/redo02.log: Thread 1 Group 2 was previously cleared
    Online log /opt/app/oracle/oradata/tadb1/redo03.log: Thread 1 Group 3 was previously cleared
    Fri Sep 3 10:14:45 2010
    Setting recovery target incarnation to 3
    Fri Sep 3 10:14:45 2010
    Assigning activation ID 2129271722 (0x7eea1baa)
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: /opt/app/oracle/oradata/tadb1/redo01.log
    Successful open of redo thread 1
    Fri Sep 3 10:14:45 2010
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Fri Sep 3 10:14:45 2010
    SMON: enabling cache recovery
    Fri Sep 3 10:14:45 2010
    Errors in file /opt/app/oracle/admin/tadb1/udump/tadb1_ora_5949.trc:
    ORA-00600: internal error code, arguments: [4000], [6], [], [], [], [], [], []
    Fri Sep 3 10:14:45 2010
    Errors in file /opt/app/oracle/admin/tadb1/udump/tadb1_ora_5949.trc:
    ORA-00704: bootstrap process failure
    ORA-00704: bootstrap process failure
    ORA-00600: internal error code, arguments: [4000], [6], [], [], [], [], [], []
    Fri Sep 3 10:14:45 2010
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Instance terminated by USER, pid = 5949
    ORA-1092 signalled during: alter database open resetlogs...

  • Dgutil.pl line 93 ERROR when creating 11.1.0.7 dataguard via GRID CONTROL.

    I trying to create a DG from a two node RAC instance.
    All the machines are at the same patch levels and OS levels (11.1.0.7/Solaris 2.10). Our GRID CONTROL is at 10.2.0.5 and patched to what I think is the latest level.
    The wizards works fine and the creation process creates the duplicate DB without any problems. When it gets to the very last step (#13 CREATE STANDBY DATABASE) I get this error:
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    dgcreate.DGgetRecoverySCN102: SELECT CHECKPOINT_CHANGE# FROM V$DATABASE
    dgcreate.DGrecoverStby102: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE UNTIL CHANGE 3038710446200
    dgcreate.DGrecoverStby102: ALTER DATABASE OPEN READ ONLY
    *10458 at /u01/app/oracle/product/agent10g/sysman/admin/scripts/db/dg/dgutil.pl line 93.*
    Anyone run into this before?

    I recreated the STANDBY again (same error).
    Here is the tail end of the alert log on the standby:
    Media Recovery Not Required
    Signalling error 1152 for datafile 1!
    ORA-1547 signalled during: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE UNTIL CHANGE 3038791960334...
    ALTER DATABASE OPEN READ ONLY
    Data Guard Broker initializing...
    Data Guard Broker initialization complete
    Signalling error 1152 for datafile 1!
    Beginning standby crash recovery.
    Fast Parallel Media Recovery enabled
    Managed Standby Recovery starting Real Time Apply
    parallel recovery started with 15 processes
    Media Recovery Log +ELM1DATA/egstby1/archivelog/2010_08_17/thread_1_seq_395.427.727280107
    Media Recovery Waiting for thread 2 sequence 402
    Standby crash recovery need archive log for thread 1084416 sequence 1089759 to continue.
    Please verify that primary database is transporting redo logs to the standby database.
    Standby crash recovery aborted due to error 16016.
    Errors in file /u01/app/oracle/diag/rdbms/egstby1/egstby1/trace/egstby1_ora_19850.trc:
    ORA-16016: archived log for thread 2 sequence# 402 unavailable
    Shutting down recovery slaves due to error 16016
    Recovery interrupted!
    Tue Aug 17 14:15:44 2010
    RFS[6]: Assigned to RFS process 20207
    RFS[6]: Identified database type as 'physical standby': Client is ARCH pid 24808
    Completed standby crash recovery.
    Signalling error 1152 for datafile 1!
    RFS[6]: Opened log for thread 2 sequence 403 dbid 1850521674 branch 726078384
    ORA-10458 signalled during: ALTER DATABASE OPEN READ ONLY...
    Archived Log entry 4 added for thread 2 sequence 403 rlc 726078384 ID 0x6e4d4647 dest 2:
    Tue Aug 17 14:16:06 2010
    RFS[7]: Assigned to RFS process 20257
    RFS[7]: Identified database type as 'physical standby': Client is ARCH pid 8783
    Tue Aug 17 14:16:06 2010
    RFS[8]: Assigned to RFS process 20259
    RFS[8]: Identified database type as 'physical standby': Client is ARCH pid 24819
    Tue Aug 17 14:16:06 2010
    RFS[6]: Opened log for thread 1 sequence 396 dbid 1850521674 branch 726078384
    Archived Log entry 5 added for thread 1 sequence 396 rlc 726078384 ID 0x6e4d4647 dest 2:
    Tue Aug 17 14:16:07 2010
    RFS[5]: Opened log for thread 2 sequence 404 dbid 1850521674 branch 726078384
    Archived Log entry 6 added for thread 2 sequence 404 rlc 726078384 ID 0x6e4d4647 dest 2:

  • Open database using resetlogs

    i am using 10g release 2 on oel 5.5
    i am having cold backup of my db
    i am also having a trace of control file
    i added a few tablespace and tables then my redo and control files were deleted
    i recreated the controlfiles using the trace resetlogs method
    and then i recover the database using backup control file until cancel
    applied all the archives available
    then i opened the database using resetlogs but the database is not opening saying that file system01.dbf requires more rcovery
    so what should i do now to open the database??

    this is my alert log
    ALTER DATABASE RECOVER database using backup controlfile until cancel
    Thu Apr 25 15:07:12 2013
    Media Recovery Start
    WARNING! Recovering data file 1 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 2 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 3 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 4 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 5 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    ORA-279 signalled during: ALTER DATABASE RECOVER database using backup control file until cancel ...
    Thu Apr 25 15:07:15 2013
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Thu Apr 25 15:07:15 2013
    Media Recovery Log /u01/app/flash_recovery_area/PAWII/archivelog/2013_04_25/o1_m f_1_4_8qky2k0r_.arc
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Thu Apr 25 15:07:15 2013
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Thu Apr 25 15:07:15 2013
    Media Recovery Log /u01/app/flash_recovery_area/PAWII/archivelog/2013_04_25/o1_m f_1_5_8qkwbc2w_.arc
    Errors with log /u01/app/flash_recovery_area/PAWII/archivelog/2013_04_25/o1_mf_1 _5_8qkwbc2w_.arc
    ORA-328 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Thu Apr 25 15:07:16 2013
    ALTER DATABASE RECOVER CANCEL
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Thu Apr 25 15:07:37 2013
    alter database open resetlogs
    Thu Apr 25 15:07:37 2013
    ORA-1194 signalled during: alter database open resetlogs
    so tell me how to open database now??
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/app/oradata/pawii/system01.dbf'

  • 11g db cannot start

    Hi,
    OS: windows Server 2003
    DB Version: 11.6.0
    I had abort shut down of my machine.
    and when my machine was started, i cannot start the Database back.
    It throws this error.
    ora-00603: oracle server session terminated by fatal error
    process id: 3212
    session id: 280 serial number:5
    Any idea.
    regards,

    Dear friends
    Firstly thanks a lot for your response.
    Due to disconnection of internet i cudnt reply the posts
    plz find the last lines in alert log
    ALTER DATABASE RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE
    Media Recovery Start
    Fast Parallel Media Recovery enabled
    WARNING! Recovering data file 1 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 2 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 3 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 4 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 5 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 6 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 7 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 8 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    parallel recovery started with 16 processes
    ORA-279 signalled during: ALTER DATABASE RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE ...
    ALTER DATABASE RECOVER CANCEL
    ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
    ALTER DATABASE RECOVER CANCEL
    ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Sun Apr 03 23:05:06 2011
    alter database open
    ORA-1589 signalled during: alter database open
    Shutting down instance: further logons disabled
    Stopping background process MMNL
    Stopping background process MMON
    Shutting down instance (immediate)
    License high water mark = 17
    Waiting for dispatcher 'D000' to shutdown
    All dispatchers and shared servers shutdown
    ALTER DATABASE CLOSE NORMAL
    ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sun Apr 03 23:05:16 2011
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sun Apr 03 23:05:16 2011
    Stopping background process VKTM:
    Sun Apr 03 23:05:18 2011
    Instance shutdown complete
    regards,

  • ORA-27102 Out of Memory Error

    Hi, I am installing Oracle 11g 64 bit in my server which is having windows server 2008 R2, and 64GB RAM. The software is installed successfully but while database creation it hangs at 2% progress copying database files. At this moment the full 64 GB memory gets consumed by Oracle installer and out of memory error flashed.
    Also i got some memory error report on oracle website as follows, but I am unable to find how to solve this problem
    *5.2.4 ORA-27102 Out of Memory Error*
    When creating a database on a computer with large physical memory, Oracle Universal Installer or Database Configuration may display an out of memory error.
    Workaround:
    Select the Advanced Installation type during installation, or run Database Configuration Assistant after a software only installation and reduce the memory allocated for Oracle based on the shared memory settings for your operating system.
    This issue is tracked with Oracle bug 9811726.
    Please help me.

    This is the dbca log file->
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.781 IST ] [Utils.getLocalHost:356] Hostname retrieved: MIPAS-SERVER, returned: MIPAS-SERVER
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.781 IST ] [WindowsSystem.dorunRemoteExecCmd:2061] WS: Calling windowsNative with cmd: C:\Windows\system32\acfsutil.exe
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.797 IST ] [WindowsSystem.dorunRemoteExecCmd:2064] WS: WinNative returned: false
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.812 IST ] [CmdToolUtil.doexecute:374] nativeSystem.runRemoteExecCmd failed. Command = C:\Windows\system32\acfsutil.exe arguments = [info, fs, /o, ismountpoint, Y:\] env = null error = PRKN-1014 : Failed to execute remote command "C:\Windows\system32\acfsutil.exe" on node "MIPAS-SERVER".executable doesn't exist
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.812 IST ] [OFSUtil.doIsACFSPartition:298] CmdToolUtil execute failed. boolean result = false
    PRCT-1114 : Execution of acfsutil command failed on node localnode for location Y:\
    PRCT-1011 : Failed to run {0}, PRKN-1014 : Failed to execute remote command "C:\Windows\system32\acfsutil.exe" on node "MIPAS-SERVER".executable doesn't exist
         at oracle.cluster.deployment.ClusterwareInfo.do1_isOFSPartition(ClusterwareInfo.java:1646)
         at oracle.cluster.deployment.ClusterwareInfo.do_isOFSPartition(ClusterwareInfo.java:1540)
         at oracle.cluster.deployment.ClusterwareInfo.isOFSPartition(ClusterwareInfo.java:1505)
         at oracle.sysman.assistants.util.hasi.HAUtils.isACFSFileSystem(HAUtils.java:1961)
         at oracle.sysman.assistants.dbca.backend.Verifier.checkIfACFS(Verifier.java:1948)
         at oracle.sysman.assistants.dbca.ui.DatabaseAreaPage.validateStorageDest(DatabaseAreaPage.java:675)
         at oracle.sysman.assistants.dbca.ui.DatabaseAreaPage.validate(DatabaseAreaPage.java:1187)
         at oracle.sysman.assistants.util.wizard.WizardPageExt.wizardValidatePage(WizardPageExt.java:214)
         at oracle.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
         at oracle.ewt.wizard.WizardPage.validatePage(Unknown Source)
         at oracle.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
         at oracle.ewt.wizard.BaseWizard.doNext(Unknown Source)
         at oracle.sysman.assistants.util.wizard.WizardExt.doNext(WizardExt.java:265)
         at oracle.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at oracle.ewt.button.PushButton.activate(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMouseReleased(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Component.java:5282)
         at java.awt.Container.processEvent(Container.java:1966)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Component.java:5517)
         at oracle.ewt.lwAWT.LWComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Component.java:5282)
         at java.awt.Container.processEvent(Container.java:1966)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Component.java:3984)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3819)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1791)
         at java.awt.Component.dispatchEvent(Component.java:3819)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: PRCT-1114 : Execution of acfsutil command failed on node localnode for location Y:\
    PRCT-1011 : Failed to run {0}, PRKN-1014 : Failed to execute remote command "C:\Windows\system32\acfsutil.exe" on node "MIPAS-SERVER".executable doesn't exist
         at oracle.cluster.cmdtools.OFSUtil.doIsACFSPartition(OFSUtil.java:300)
         at oracle.cluster.cmdtools.OFSUtil.isOFSPartition(OFSUtil.java:260)
         at oracle.cluster.cmdtools.OFSUtil.isOFSPartition(OFSUtil.java:236)
         at oracle.cluster.deployment.ClusterwareInfo.do1_isOFSPartition(ClusterwareInfo.java:1642)
         ... 51 more
    Caused by: PRCT-1011 : Failed to run {0}, PRKN-1014 : Failed to execute remote command "C:\Windows\system32\acfsutil.exe" on node "MIPAS-SERVER".executable doesn't exist
         at oracle.cluster.cmdtools.CmdToolUtil.doexecute(CmdToolUtil.java:379)
         at oracle.cluster.cmdtools.CmdToolUtil.execute(CmdToolUtil.java:339)
         at oracle.cluster.cmdtools.CmdToolUtil.doexecute(CmdToolUtil.java:271)
         at oracle.cluster.cmdtools.CmdToolUtil.execute(CmdToolUtil.java:233)
         at oracle.cluster.cmdtools.OFSUtil.doIsACFSPartition(OFSUtil.java:294)
         ... 54 more
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.812 IST ] [Verifier.checkIfACFS:1955] Y:\orcl1 is ACFS :false
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.844 IST ] [Verifier.setOradataDest:4897] setOradataDest:dfDest=Y:\orcl1
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.844 IST ] [TemplateManager.updateDatafileDestination:2081] updateDatafiles:datafileDir=Y:\orcl1
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.953 IST ] [TemplateManager.updateDatafileDestination:2225] From template, RedoLogGrName=1
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.968 IST ] [TemplateManager.updateDatafileDestination:2240] new file name redo01.log
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.968 IST ] [TemplateManager.updateDatafileDestination:2225] From template, RedoLogGrName=2
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.968 IST ] [TemplateManager.updateDatafileDestination:2240] new file name redo02.log
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.968 IST ] [TemplateManager.updateDatafileDestination:2225] From template, RedoLogGrName=3
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.984 IST ] [TemplateManager.updateDatafileDestination:2240] new file name redo03.log
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.984 IST ] [DatabaseAreaPage.validate:1295] Storage Attribute OMF Mode false
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.984 IST ] [DatabaseAreaPage.validate:1296] Storage Attribute OSM Mode false
    [AWT-EventQueue-0] [ 2012-09-27 13:30:00.984 IST ] [DatabaseAreaPage.validate:1297] set omf param false
    [AWT-EventQueue-0] [ 2012-09-27 13:31:37.564 IST ] [DatabaseRecoveryAreaPage.invokeFileDialog:569] after setDrives
    [AWT-EventQueue-0] [ 2012-09-27 13:31:37.564 IST ] [DatabaseRecoveryAreaPage.invokeFileDialog:595] Before runDialog
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.670 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.670 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.670 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.670 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.670 IST ] [PluggableTablespacesTabPage.configureSampleSchema:256] PluggableTablespaceTabPage::->configureSampleSchema()
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.686 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.686 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.686 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:32:37.686 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [PluggableTablespacesTabPage.onSampleSchemaStateChange:277] Tbs Name: EXAMPLE
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [PluggableTablespacesTabPage.onSampleSchemaStateChange:278] Datafile Name: example01.dbf
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [PluggableTablespacesTabPage.addTransportableDatafiles:230] PluggableTablespaceTabPage::->addTransportableDatafiles()
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.035 IST ] [PluggableTablespacesTabPage.configureSampleSchema:256] PluggableTablespaceTabPage::->configureSampleSchema()
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.847 IST ] [TemplateManager.isInstallTemplate:2300] Selected Template by user:=General Purpose
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.847 IST ] [TemplateManager.isInstallTemplate:2307] The Message Id to be searched:=GENERAL_PURPOSE
    [AWT-EventQueue-0] [ 2012-09-27 13:33:00.847 IST ] [PluggableTablespacesTabPage.configureSampleSchema:256] PluggableTablespaceTabPage::->configureSampleSchema()
    [AWT-EventQueue-0] [ 2012-09-27 13:33:27.289 IST ] [Verifier.processRawConfigFile:4031] StorageType == 0
    [AWT-EventQueue-0] [ 2012-09-27 13:33:27.289 IST ] [DatabaseOptionPage.doNext:273] processRawConfigFile=false
    [AWT-EventQueue-0] [ 2012-09-27 13:33:27.320 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:33:27.320 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:33:27.320 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [InitParametersPage.validate:228] InitParametersPage->validate: in SPFile condition
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [InitParametersPage.validate:232] original spFileName with variables ={ORACLE_HOME}\database\spfile{SID}.ora
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [Verifier.validateSPFile:5233] The SPFILE={ORACLE_HOME}\database\spfile{SID}.ora
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [ClusterUtils.validateRawDevice:760] Inside validateRawDevice
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [ClusterUtils.validateRawDevice:772] Device Exception
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [ClusterUtils.isRaw:738] The handle is invalid.
    [AWT-EventQueue-0] [ 2012-09-27 13:33:29.145 IST ] [InitParametersPage.validate:340] InitParametersPage->validate: calling createUndoAttributes
    [AWT-EventQueue-0] [ 2012-09-27 13:33:32.411 IST ] [Verifier.processRawConfigFile:4031] StorageType == 0
    [AWT-EventQueue-0] [ 2012-09-27 13:33:32.411 IST ] [DatabaseOptionPage.doNext:273] processRawConfigFile=false
    [AWT-EventQueue-0] [ 2012-09-27 13:35:00.941 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:00.956 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:00.956 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.050 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.050 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.050 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.175 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.175 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.175 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.284 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.284 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.284 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.986 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.986 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:01.986 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.079 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.079 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.079 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.189 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.204 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.204 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.329 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.329 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.329 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.469 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.469 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.469 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.859 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.859 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:02.859 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.000 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.000 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.000 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.109 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.109 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.125 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.218 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.218 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.218 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.374 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.374 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.374 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.483 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.483 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.483 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.967 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.967 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:03.967 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.185 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.185 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.185 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.310 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.310 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.310 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.419 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.419 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.419 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.607 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.607 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:04.607 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:26.308 IST ] [OsUtilsBase.getTotalPhysicalMemory:375] Total Physical Memory in MB: 65525
    [AWT-EventQueue-0] [ 2012-09-27 13:35:26.308 IST ] [OsUtilsBase.is64Bit:359] architecture is 64 bit: true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:26.308 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:28.710 IST ] [MemoryCalculator.calculateMemory:215] Setting SGA to MAX_SGA 1610612736
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [InitParametersPage.validate:228] InitParametersPage->validate: in SPFile condition
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [InitParametersPage.validate:232] original spFileName with variables ={ORACLE_HOME}\database\spfile{SID}.ora
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [Verifier.validateSPFile:5233] The SPFILE={ORACLE_HOME}\database\spfile{SID}.ora
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [ClusterUtils.validateRawDevice:760] Inside validateRawDevice
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [ClusterUtils.validateRawDevice:772] Device Exception
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [ClusterUtils.isRaw:738] The handle is invalid.
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.399 IST ] [InitParametersPage.validate:340] InitParametersPage->validate: calling createUndoAttributes
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.524 IST ] [StoragePage.selectAndExpandItem:353] item=oracle.sysman.emSDK.client.dataComponent.dataDrivenTree.TreeParentNode[label=Storage,index=0]
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.602 IST ] [StoragePage.selectAndExpandItem:362] item.isExpanded=true
    [AWT-EventQueue-0] [ 2012-09-27 13:35:47.602 IST ] [StoragePage.selectAndExpandItem:373] selection.isSelected(item)=false
    [AWT-EventQueue-0] [ 2012-09-27 13:36:00.130 IST ] [RedoLogGroupsComparator.compare:73] val1=1 val2=2
    [AWT-EventQueue-0] [ 2012-09-27 13:36:00.130 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [AWT-EventQueue-0] [ 2012-09-27 13:36:00.130 IST ] [RedoLogGroupsComparator.compare:73] val1=2 val2=3
    [AWT-EventQueue-0] [ 2012-09-27 13:36:00.130 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [AWT-EventQueue-0] [ 2012-09-27 13:36:04.576 IST ] [RedoLogGroupsComparator.compare:73] val1=1 val2=2
    [AWT-EventQueue-0] [ 2012-09-27 13:36:04.576 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [AWT-EventQueue-0] [ 2012-09-27 13:36:04.576 IST ] [RedoLogGroupsComparator.compare:73] val1=2 val2=3
    [AWT-EventQueue-0] [ 2012-09-27 13:36:04.576 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [AWT-EventQueue-0] [ 2012-09-27 13:36:27.761 IST ] [DBCAVttgControlfileProxy.getVtoObject:123] DBCAVttgControlfileProxy: In getVtoObject function
    [AWT-EventQueue-0] [ 2012-09-27 13:37:51.243 IST ] [RedoLogGroupsComparator.compare:73] val1=1 val2=2
    [AWT-EventQueue-0] [ 2012-09-27 13:37:51.243 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [AWT-EventQueue-0] [ 2012-09-27 13:37:51.243 IST ] [RedoLogGroupsComparator.compare:73] val1=2 val2=3
    [AWT-EventQueue-0] [ 2012-09-27 13:37:51.243 IST ] [RedoLogGroupsComparator.compare:93] result=-1
    [TaskScheduler timer] [ 2012-09-27 13:37:52.232 IST ] [DBCAVbogRedoLogGroupImpl.getDefaultLogfilePath:327] defaultPath=Y:\orcl1\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:37:53.489 IST ] [DBCAVbogRedoLogGroupImpl.getDefaultLogfilePath:327] defaultPath=Y:\orcl1\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:37:54.536 IST ] [DBCAVbogRedoLogGroupImpl.getDefaultLogfilePath:327] defaultPath=Y:\orcl1\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:37:55.800 IST ] [DBCAVbogRedoLogGroupImpl.getDefaultLogfilePath:327] defaultPath=Y:\orcl1\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:37:56.206 IST ] [DBCAVbogRedoLogGroupImpl.getDefaultLogfilePath:327] defaultPath=Y:\orcl1\orcl1\
    [AWT-EventQueue-0] [ 2012-09-27 13:37:58.499 IST ] [StoragePage.validate:995] StoragePage: In validate function
    [AWT-EventQueue-0] [ 2012-09-27 13:37:58.499 IST ] [Verifier.validateTemplate:2019] StorageType == 0
    [AWT-EventQueue-0] [ 2012-09-27 13:37:58.514 IST ] [CreationOptionPage.setSaveTemplateVisible:467] Setting save template visible = true
    [AWT-EventQueue-0] [ 2012-09-27 13:38:18.155 IST ] [DBCAWizard.onFinish:1134] m_bFinishClicked: false
    [TaskScheduler timer] [ 2012-09-27 13:38:18.170 IST ] [OsUtilsBase.getRegistryEntry:1021] hklmKey while getting registry entryHKEY_LOCAL_MACHINE
    [TaskScheduler timer] [ 2012-09-27 13:38:18.170 IST ] [OsUtilsBase.getRegistryEntry:1022] keyToSet while getting registry entrySYSTEM\CurrentControlSet\Services\OracleServiceORCL
    [TaskScheduler timer] [ 2012-09-27 13:38:18.170 IST ] [OsUtilsWindows.enumerateSIDs:428] imagepath c:\users\administrator\documents\product\11.2.0\dbhome_1\bin\ORACLE.EXE ORCL\bin
    [TaskScheduler timer] [ 2012-09-27 13:38:18.170 IST ] [Verifier.validateTemplate:2019] StorageType == 0
    [TaskScheduler timer] [ 2012-09-27 13:38:18.186 IST ] [Verifier.calculateCloneDatafilePathsAndSizes:3460] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.233 IST ] [Verifier.calculateCloneDatafilePathsAndSizes:3460] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.248 IST ] [Verifier.calculateCloneDatafilePathsAndSizes:3460] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.248 IST ] [Verifier.calculateCloneDatafilePathsAndSizes:3460] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.248 IST ] [Verifier.calculateCloneDatafilePathsAndSizes:3460] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.264 IST ] [Verifier.calculateRedoLogGroupFileSizes:3591] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.264 IST ] [Verifier.calculateRedoLogGroupFileSizes:3591] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.264 IST ] [Verifier.calculateRedoLogGroupFileSizes:3591] canonicalPath=Y:\orcl1\
    [TaskScheduler timer] [ 2012-09-27 13:38:18.264 IST ] [Verifier.getControlfFileSizes:3510] No. of Control files:=2
    [Thread-35] [ 2012-09-27 13:38:18.326 IST ] [UIHost.getHtmlSummary:1081] UIHost:getHtmlSummary: running createTemplateDocument NOT for SHOW_TEMPLATE condition
    [Thread-35] [ 2012-09-27 13:38:18.342 IST ] [UIHost.getHtmlSummary:1087] UIHost:getHtmlSummary: after running createTemplateDocument NOT for SHOW_TEMPLATE condition
    [Thread-35] [ 2012-09-27 13:38:18.342 IST ] [XSLConst.generateHeaderXSL:214] NLS:Template Name:= null
    [Thread-35] [ 2012-09-27 13:38:18.342 IST ] [XSLConst.generateHeaderXSL:219] Template Description:= Use this database template to create a pre-configured database optimized for general purpose or transaction processing usage.
    [Thread-35] [ 2012-09-27 13:38:18.404 IST ] [UIHost.getHtmlSummary:1117] UIHost->getHtmlSummary: start printing of transformed document
    [TaskScheduler timer] [ 2012-09-27 13:38:51.814 IST ] [Host.executeSteps:5039] Executing steps....
    [TaskScheduler timer] [ 2012-09-27 13:38:51.814 IST ] [Host.setUpForOperation:3625] setUpForOperation: Mode = 128
    [TaskScheduler timer] [ 2012-09-27 13:38:51.814 IST ] [OsUtilsBase.getBaseFromOrabase:602] oraBaseUtility D:\app\Administrator\product\11.2.0\dbhome_3\bin\orabase.exe
    [TaskScheduler timer] [ 2012-09-27 13:38:51.814 IST ] [OsUtilsBase.getBaseFromOrabase:611] cmds: D:\app\Administrator\product\11.2.0\dbhome_3\bin\orabase.exe
    [TaskScheduler timer] [ 2012-09-27 13:38:51.892 IST ] [OsUtilsBase.getBaseFromOrabase:616] baseLocation from orabase
    Oracle home environment variable not set
    [TaskScheduler timer] [ 2012-09-27 13:38:51.892 IST ] [OsUtilsBase.getBaseFromOrabase:641] orabaseLocation= null
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [InventoryUtil.getHomeName:111] homeName = OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [OsUtilsBase.getOracleHomeKeyImpl:979] getting home key for home name: OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [OsUtilsBase.getRegistryEntry:1021] hklmKey while getting registry entryHKEY_LOCAL_MACHINE
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [OsUtilsBase.getRegistryEntry:1022] keyToSet while getting registry entrySOFTWARE\ORACLE\KEY_OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [OsUtilsBase.getBaseFromOrabase:602] oraBaseUtility D:\app\Administrator\product\11.2.0\dbhome_3\bin\orabase.exe
    [TaskScheduler timer] [ 2012-09-27 13:38:51.907 IST ] [OsUtilsBase.getBaseFromOrabase:611] cmds: D:\app\Administrator\product\11.2.0\dbhome_3\bin\orabase.exe
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.getBaseFromOrabase:616] baseLocation from orabase
    Oracle home environment variable not set
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.getBaseFromOrabase:641] orabaseLocation= null
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [InventoryUtil.getHomeName:111] homeName = OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.getOracleHomeKeyImpl:979] getting home key for home name: OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.getRegistryEntry:1021] hklmKey while getting registry entryHKEY_LOCAL_MACHINE
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.getRegistryEntry:1022] keyToSet while getting registry entrySOFTWARE\ORACLE\KEY_OraDb11g_home4
    [TaskScheduler timer] [ 2012-09-27 13:38:51.985 IST ] [OsUtilsBase.copyFile:1499] OsUtilsBase.copyFile:
    [TaskScheduler timer] [ 2012-09-27 13:38:52.001 IST ] [OsUtilsBase.copyFile:1547] **write of file at destination complete...
    [TaskScheduler timer] [ 2012-09-27 13:38:52.001 IST ] [OsUtilsBase.copyFile:1582] **file copy status:= true

  • PL/SQL report errors: ORA-01422

    Hi all,
    (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
    I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
    When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
    It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
    the error code:
    ORA-01422: exact fetch returns more than requested number of rows
    declare
      vSchema  varchar2(20);
      vStmt  varchar2(1000);
      vVersion number(5);
      vDBName  varchar2(20);
      vHostName varchar2(80);
      vStmt2  varchar2(1000);
      vVersion2 number(5);
      vDBName2  varchar2(20);
      vServer2 varchar2(80);
      vSchema2 varchar2(80);
      CURSOR c_schemas IS
        select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
    begin
      IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
        vServer2 := :P3_SERVER_NAME;
        vSchema2 := :P3_SCHEMA_NAME;
          vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
          Execute Immediate vStmt2 into vDBName2, vVersion2;
            htp.p('<br>');
            htp.p('<table border="1">');
            htp.p('<tr>');
            htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
            htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
            htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
            htp.p('<th bgcolor="#FFCC99">PATCH</th>');
            htp.p('</tr>');
            htp.p('<tr>');
            htp.p('<td>');
            htp.p(vServer2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vDBName2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vSchema2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vVersion2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p('<BR>');
            htp.p('</td>');
            htp.p('</tr>');
            htp.p('</tr>');
            htp.p('</table>');
       ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
       vHostName := :P3_SERVER_NAME;
       vDBName := :P3_DB_NAME;
         open c_schemas;
          htp.p('<br>');
          htp.p('<table border="1">');
          htp.p('<tr>');
          htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
          htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
          htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
          htp.p('<th bgcolor="#FFCC99">PATCH</th>');
          htp.p('</tr>');
        LOOP
          FETCH c_schemas INTO vSchema;
          EXIT WHEN c_schemas%NOTFOUND;
          vStmt  := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
          Execute Immediate vStmt into vVersion  ;
          htp.p('<tr>');
          htp.p('<td>');
          htp.p(vHostName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vDBName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vSchema);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vVersion);
          htp.p('</td>');
          htp.p('<td>');
          htp.p('<BR>');
          htp.p('</td>');
          htp.p('</tr>');
        END LOOP;
          htp.p('</tr>');
          htp.p('</table>');  
      CLOSE c_schemas;
    END IF;
    END IF;
    END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
    Sorry if this is confusing, i have tried to explain it as best as i can.
    Thanks in advance for any help.
    Ashleigh

    Hello Ashleigh,
    Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
    select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
    vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
    vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
    John

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

  • EA2: ORA-01427 clicking on a view in the navigator

    SQLDev: 1.5.0.52.03
    Java: 1.6.0_04
    Oracle: 9.2.0.7.0
    I'm getting the following error when I click on a view in the navigator pane:
    An error was encountered performing the requested operation:
    ORA-01427: single-row subquery returns more than one row 01427. 00000 - "single-row subquery returns more than one row"I'm not seeing any errors in the shell window.
    After clicking on <OK> in the error dialog, the normal tabs (Columns, Data, Grants, Dependencies, Details, SQL) are displayed, but there is no content in the Columns tab.
    All the other tabs seem to function normally.
    Here is the DDL from the SQL tab
    CREATE OR REPLACE VIEW "SUBSCRIPTIONS"
        "ORDER_ID", "SUNBURST_ORDER_ID", "SIEBEL_ORDER_ID", "ACCOUNT_ID",
        "COMP_ID", "SUBACCOUNT_ID", "START_DATE", "END_DATE", "PULL_DATE",
        "SUBSCRIPTION_TYPE", "PRICE_CLASS", "DESCRIPTION", "SEAT_COUNT",
        "ORDER_DURATION", "CALLBACK_INTERVAL", "UPDATE_DATE", "UPDATE_USERNAME",
        "AFFILIATE"
    AS
        SELECT order_id,
            sunburst_order_id,
            siebel_order_id,
            account_id,
            comp_id,
            subaccount_id,
            start_date,
            end_date,
            pull_date,
            product_id,
            price_class,
            product_name,
            add_users,
            order_duration,
            callback_interval,
            last_mdfy_date,
            last_mdfy_emp,
            affiliate
        FROM csbcrossworlds.subscriptions;We have 15 views in this schema, 3 of them fail this way but the other 12 display the columns just fine. So far I am unable to detect any commonality.
    Any ideas?

    Ok, I think I found the problem. The view in question (SUBSCRIPTIONS) is owned by 'PHILC' and it references a table named 'SUBSCRIPTIONS' owned by 'CSBCROSSWORLDS'. There are two other development schemas that also own tables named 'SUBSCRIPTIONS'.
    I believe the 'Columns' tab is executing the query below. The subquery in this SQL tries to identify the primary key columns for the 'SUBSCRIPTIONS' view in my schema (PHILC):
    SELECT
        c.column_name,
        DECODE(
            data_type,
                'CHAR',      data_type||'('||c.data_length||')',
                'VARCHAR',   data_type||'('||c.data_length||')',
                'VARCHAR2',  data_type||'('||c.data_length||')',
                'NCHAR'   ,  data_type||'('||c.data_length||')',
                'NUMBER'  ,  DECODE(c.data_precision,null,'NUMBER', data_type||'('||c.data_precision||','||c.data_SCALE||')'),
                'NVARCHAR',  data_type||'('||c.data_length||')',
                'NVARCHAR2', data_type||'('||c.data_length||')',
                data_type) data_type,
        DECODE(nullable, 'Y', 'Yes', 'No') nullable,
        c.DATA_DEFAULT,
        column_id,
        com.comments,
        (SELECT 1 FROM all_constraints, all_cons_columns
          WHERE all_constraints.constraint_type = 'P' AND
                all_constraints.constraint_name = all_cons_columns.constraint_name AND
                all_constraints.owner = all_cons_columns.owner AND
                all_cons_columns.table_name = c.table_name AND
                c.column_name = all_cons_columns.column_name) Primary_Key,
        c_update.insertable,
        c_update.updatable,
        c_update.deletable
    FROM
        sys.all_tab_Columns c, sys.all_col_comments com, sys.user_updatable_columns c_update
    WHERE
        c.owner = :OBJECT_OWNER AND
        c.table_name = :OBJECT_NAME AND
        c.table_name = com.table_name AND
        c.owner = com.owner AND
        c.column_name = com.column_name AND
        c_update.column_name = com.column_name AND
        c_update.table_name = com.table_name
    ;Extracting the subquery into this:
    SELECT
        all_constraints.owner,
        all_constraints.table_name,
        all_constraints.constraint_name
    FROM all_constraints, all_cons_columns
    WHERE
        all_constraints.constraint_type = 'P' AND
        all_constraints.constraint_name = all_cons_columns.constraint_name AND
        all_constraints.owner = all_cons_columns.owner and
        all_cons_columns.table_name = 'SUBSCRIPTIONS' and
        'ORDER_ID' = all_cons_columns.column_name;I got this output:
       owner          table_name      constraint_name
    CUTOVER          SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CROSSWORLDS      SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CSBCROSSWORLDS   SUBSCRIPTIONS    SUBSCRIPTIONS_PKLooking at the DDL for the view, the row we really want is for owner 'CSBCROSSWORLDS'. Unfortunately, that means having to somehow parse the SQL text to extract the owner name...
    Phil

Maybe you are looking for

  • Powerbook 1.67GHz PowerPC G4 (17") - Memory upgrade

    My Powerbook came with 512MB originally from Apple. I just bought another 512MB card from the Apple store, and after installing it, when I display "About this Mac" to check whether the installation was succesfull I see the following information: SODI

  • Debatching is possible when we are reading messages from JMS queue

    Hi all, If i place a message in a queue can i read the message from JMS using BPEL ( JMS Adapter ) or OSB( JMS Transport ) like batcth rather than reading the whole message in to the OSB or BPEL at the same time . is this option is available in OSB/B

  • Format & strip?

    Hi folks, argh. I'm dorking around with this function but cant get it to do what I think it does. maybe I'm using the wrong function? Here is what I'm trying to do" I have a string with a 6 character number and a comma. the number is a negative numbe

  • Starting Win NT or 2K Essbase Service using batch

    I know you can either:essbase <password> -b to run in background ORessbase <password> to run normally,but if you are running Essbase as a service, can you restart the service from the command line?Thanks,Clay

  • Velocity Feedback

    I am using the 7344 Motion Control and MID-7654 Servo Power Motor Drive. I am wanting to control the velocity of a P.M. DC motor; I do not care about position. I also do not have the mechanical room to fit a quad. encoder onto the motor shaft. What I