DBAsupport.com Forums - Powered by vBulletin
Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38

Thread: Cannot open db

  1. #31
    Join Date
    Feb 2001
    Posts
    107
    gandolf989,

    Here it is:- Backup controlfile

    Dump file c:\oracle\admin\train1\udump\train1_ora_2760.trc
    Wed Oct 13 08:42:26 2004
    ORACLE V9.2.0.1.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Instance name: train1

    Redo thread mounted by this instance: 0

    Oracle process number: 12

    Windows thread id: 2760, image: ORACLE.EXE


    *** SESSION ID:(9.1) 2004-10-13 08:42:26.000
    (blkno = 0x7a, size = 276, max = 1, in-use = 1, last-recid= 0)
    (blkno = 0x7b, size = 56, max = 145, in-use = 1, last-recid= 1)
    Dump file c:\oracle\admin\train1\udump\train1_ora_2760.trc
    Wed Oct 13 08:44:29 2004
    ORACLE V9.2.0.1.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Instance name: train1

    Redo thread mounted by this instance: 0

    Oracle process number: 12

    Windows thread id: 2760, image: ORACLE.EXE


    *** SESSION ID:(9.3) 2004-10-13 08:44:29.000
    Archiving is disabled
    Archiving is disabled
    Dump file c:\oracle\admin\train1\udump\train1_ora_2760.trc
    Wed Oct 13 08:47:17 2004
    ORACLE V9.2.0.1.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Instance name: train1

    Redo thread mounted by this instance: 1

    Oracle process number: 12

    Windows thread id: 2760, image: ORACLE.EXE


    *** SESSION ID:(9.3) 2004-10-13 08:47:17.000
    *** 2004-10-13 08:47:17.000
    # The following are current System-scope REDO Log Archival related
    # parameters and can be included in the database initialization file.
    #
    # LOG_ARCHIVE_DEST=''
    # LOG_ARCHIVE_DUPLEX_DEST=''
    #
    # LOG_ARCHIVE_FORMAT=ARC%S.%T
    # REMOTE_ARCHIVE_ENABLE=TRUE
    # LOG_ARCHIVE_MAX_PROCESSES=2
    # STANDBY_FILE_MANAGEMENT=MANUAL
    # STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
    # FAL_CLIENT=''
    # FAL_SERVER=''
    #
    # LOG_ARCHIVE_DEST_1='LOCATION=C:\oracle\ora92\RDBMS'
    # LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
    # LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM SYNC'
    # LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
    # LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED'
    # LOG_ARCHIVE_DEST_STATE_1=ENABLE
    #
    # Below are two sets of SQL statements, each of which creates a new
    # control file and uses it to open the database. The first set opens
    # the database with the NORESETLOGS option and should be used only if
    # the current versions of all online logs are available. The second
    # set opens the database with the RESETLOGS option and should be used
    # if online logs are unavailable.
    # The appropriate set of statements can be copied from the trace into
    # a script file, edited as necessary, and executed when there is a
    # need to re-create the control file.
    #
    # Set #1. NORESETLOGS case
    #
    # The following commands will create a new control file and use it
    # to open the database.
    # Data used by the recovery manager will be lost. Additional logs may
    # be required for media recovery of offline data files. Use this
    # only if the current version of all online logs are available.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "TRAIN1" NORESETLOGS NOARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 'E:\ORACLE\ORADATA\TRAIN1\REDO01.LOG' SIZE 100M,
    GROUP 2 'E:\ORACLE\ORADATA\TRAIN1\REDO02.LOG' SIZE 100M,
    GROUP 3 'E:\ORACLE\ORADATA\TRAIN1\REDO03.LOG' SIZE 100M
    -- STANDBY LOGFILE
    DATAFILE
    'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\UNDOTBS011.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\CWMLITE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DRSYS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\EXAMPLE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\INDX01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\ODM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\TOOLS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\USERS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\XDB01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM120040519091720_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_NTDISTRIB20040514033149_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM1_INDX1.ORA'
    CHARACTER SET AL32UTF8
    ;
    # Take files offline to match current control file.
    ALTER DATABASE DATAFILE 'E:\ORACLE\ORADATA\TRAIN1\UNDOTBS011.DBF' OFFLINE DROP;
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    RECOVER DATABASE
    # Database can now be opened normally.
    ALTER DATABASE OPEN;
    # Commands to add tempfiles to temporary tablespaces.
    # Online tempfiles have complete space information.
    # Other tempfiles may require adjustment.
    ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\ORACLE\ORADATA\TRAIN1\TEMP01.DBF' REUSE;
    # End of tempfile additions.
    #
    # Set #2. RESETLOGS case
    #
    # The following commands will create a new control file and use it
    # to open the database.
    # The contents of online logs will be lost and all backups will
    # be invalidated. Use this only if online logs are damaged.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "TRAIN1" RESETLOGS NOARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 'E:\ORACLE\ORADATA\TRAIN1\REDO01.LOG' SIZE 100M,
    GROUP 2 'E:\ORACLE\ORADATA\TRAIN1\REDO02.LOG' SIZE 100M,
    GROUP 3 'E:\ORACLE\ORADATA\TRAIN1\REDO03.LOG' SIZE 100M
    -- STANDBY LOGFILE
    DATAFILE
    'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\UNDOTBS011.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\CWMLITE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DRSYS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\EXAMPLE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\INDX01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\ODM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\TOOLS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\USERS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\XDB01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM120040519091720_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_NTDISTRIB20040514033149_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM1_INDX1.ORA'
    CHARACTER SET AL32UTF8
    ;
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    RECOVER DATABASE USING BACKUP CONTROLFILE
    # Database can now be opened zeroing the online logs.
    ALTER DATABASE OPEN RESETLOGS;
    # Commands to add tempfiles to temporary tablespaces.
    # Online tempfiles have complete space information.
    # Other tempfiles may require adjustment.
    ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\ORACLE\ORADATA\TRAIN1\TEMP01.DBF' REUSE;
    # End of tempfile additions.
    #

  2. #32
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    I edited what you sent and created a file. Take a look at it and see if it helps. I removed all references to the undo tablespace. You will need to rectreate that once you are able to reopen your database. You should also add additional log groups and duplex them. But if this is only a test database then that may not be neccessary.

    Let mw know if this helps.

  3. #33
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    I had to rename the file to a text file.
    Apparently .sql could contain a virus!
    Attached Files Attached Files

  4. #34
    Join Date
    Feb 2001
    Posts
    107
    Hi,

    This what happened with the script-

    SQL> @restart_db.sql
    ORA-01109: database not open


    Database dismounted.
    ORACLE instance shut down.
    ORACLE instance started.

    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes

    Control file created.

    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done


    ALTER DATABASE OPEN RESETLOGS
    *
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF'


    ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\ORACLE\ORADATA\TRAIN1\TEMP01.DBF' REUSE
    *
    ERROR at line 1:
    ORA-01109: database not open

  5. #35
    Join Date
    Feb 2001
    Posts
    107
    The lert log shows this entries:-

    CREATE CONTROLFILE REUSE DATABASE "TRAIN1" RESETLOGS NOARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 'E:\ORACLE\ORADATA\TRAIN1\REDO01.LOG' SIZE 100M,
    GROUP 2 'E:\ORACLE\ORADATA\TRAIN1\REDO02.LOG' SIZE 100M,
    GROUP 3 'E:\ORACLE\ORADATA\TRAIN1\REDO03.LOG' SIZE 100M
    DATAFILE
    'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\CWMLITE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DRSYS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\EXAMPLE01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\INDX01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\ODM01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\TOOLS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\USERS01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\XDB01.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM120040519091720_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_NTDISTRIB20040514033149_DB.DBF',
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM1_INDX1.ORA'
    CHARACTER SET AL32UTF8

    Wed Oct 13 09:15:02 2004
    Successful mount of redo thread 1, with mount id 3724243540.
    Wed Oct 13 09:15:02 2004
    Completed: CREATE CONTROLFILE REUSE DATABASE "TRAIN1" RESETLO
    Wed Oct 13 09:15:02 2004
    ALTER DATABASE RECOVER DATABASE
    Media Recovery Start
    Media Recovery failed with error 1610
    ORA-283 signalled during: ALTER DATABASE RECOVER DATABASE ...
    Wed Oct 13 09:15:03 2004
    ALTER DATABASE OPEN RESETLOGS
    ORA-1194 signalled during: ALTER DATABASE OPEN RESETLOGS...
    Wed Oct 13 09:15:03 2004
    ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\ORACLE\ORADATA\TRAIN1\TEMP01.DBF' REUSE
    ORA-1109 signalled during: ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\ORACLE\ORAD...

    Thanks

  6. #36
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Can you check to see if 'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF' actually exists?
    While you are at it check that all of the remaining files exist.

    'E:\ORACLE\ORADATA\TRAIN1\REDO01.LOG'
    'E:\ORACLE\ORADATA\TRAIN1\REDO02.LOG'
    'E:\ORACLE\ORADATA\TRAIN1\REDO03.LOG'
    'E:\ORACLE\ORADATA\TRAIN1\SYSTEM01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\CWMLITE01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\DRSYS01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\EXAMPLE01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\INDX01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\ODM01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\TOOLS01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\USERS01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\XDB01.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM120040519091720_DB.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\DM_NTDISTRIB20040514033149_DB.DBF'
    'E:\ORACLE\ORADATA\TRAIN1\DM_W2KVM1_INDX1.ORA'

  7. #37
    Join Date
    Feb 2001
    Posts
    107
    All the datafiles exist

  8. #38
    Join Date
    Aug 2004
    Location
    Russia
    Posts
    14
    Hi, itwizzkid. About 2 months ago i had a problem with recover db.
    As i have ORACLE 7.2.3 so my suggestions may be not correct, but during my attempts i understood:

    1.While endless attempts it is necessary to restore the data files from tape ANEW.

    2.While recovering DB "until time 'XXX'",
    this time must be equal the time of finishing backup or later, NOT EARLIER!


    --Do you have copies of original files?
    You had error ORA-01194
    It means:" The most likely cause of this error is forgetting to restore the file from a backup before doing incomplete recovery." -OEMes
    If you have copy then refresh your files and try to recover until time xxx -the time of last log.
    Tago.
    Tago

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width