DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Physical standby database single host:ORA-01034: ORACLE not available

  1. #1
    Join Date
    Jan 2006
    Posts
    1

    Physical standby database single host:ORA-01034: ORACLE not available

    This is what I have done

    The Primary database(ORA10g) is on the solaris box

    I took the cold backup and restored it in same box. the database name here is the same as primary (ORA10g)

    Created a standby control file in the primary db

    using command on specific location.

    Did the followin changes to the primary database(ORA10g)init.ora file

    ##############################################################################
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    ##############################################################################

    ###########################################
    # Cache and I/O
    ###########################################
    db_block_size=8192
    db_file_multiblock_read_count=16

    ###########################################
    # Cursors and Library Cache
    ###########################################
    open_cursors=300

    ###########################################
    # Database Identification
    ###########################################
    db_domain=""
    db_name=ORA10g

    ###########################################
    # Diagnostics and Statistics
    ###########################################
    background_dump_dest=/data/apps/db/oracle/admin/ORA10g/bdump
    core_dump_dest=/data/apps/db/oracle/admin/ORA10g/cdump
    user_dump_dest=/data/apps/db/oracle/admin/ORA10g/udump

    ###########################################
    # File Configuration
    ###########################################
    control_files=("/data/apps/db/oracle/oradata/ORA10g/control01.ctl", "/data/apps/db/oracle/oradata/ORA10g/control02.ctl", "/data/apps/db/oracle/oradata/ORA10g/control03.ctl")
    db_recovery_file_dest=/data/apps/db/oracle/flash_recovery_area
    db_recovery_file_dest_size=2147483648

    ###########################################
    # Job Queues
    ###########################################
    job_queue_processes=10

    ###########################################
    # Miscellaneous
    ###########################################
    compatible=10.2.0.1.0

    ###########################################
    # Processes and Sessions
    ###########################################
    processes=150

    ###########################################
    # SGA Memory
    ###########################################
    sga_target=1256194048

    ###########################################
    # Security and Auditing
    ###########################################
    audit_file_dest=/data/apps/db/oracle/admin/ORA10g/adump
    remote_login_passwordfile=EXCLUSIVE

    ###########################################
    # Shared Server
    ###########################################
    dispatchers="(PROTOCOL=TCP) (SERVICE=ORA10gXDB)"

    ###########################################
    # Sort, Hash Joins, Bitmap Indexes
    ###########################################
    pga_aggregate_target=418381824

    ###########################################
    # System Managed Undo and Rollback Segments
    ###########################################
    undo_management=AUTO
    undo_tablespace=UNDOTBS1

    ###########################################
    #Archive
    ###########################################
    LOG_ARCHIVE_FORMAT="%t_%s_%r.log"
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(ORA10g,ORA10g_standby)'
    LOG_ARCHIVE_DEST_1=
    'LOCATION=/data/apps/db/log/ORA10g
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=ORA10g'
    LOG_ARCHIVE_DEST_2=
    'SERVICE=ORA10g_standby
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=ORA10g_standby'
    LOG_ARCHIVE_DEST_STATE_1=enable
    LOG_ARCHIVE_DEST_STATE_2=enable
    OS_AUTHENT_PREFIX=''
    instance_name=ORA10g
    DB_UNIQUE_NAME=ORA10g

    Did the followin changes to the standby database(ORA10g_standby)init.ora file


    ##############################################################################
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    ##############################################################################

    ###########################################
    # Cache and I/O
    ###########################################
    db_block_size=8192
    db_file_multiblock_read_count=16

    ###########################################
    # Cursors and Library Cache
    ###########################################
    open_cursors=300

    ###########################################
    # Database Identification
    ###########################################
    db_domain=""
    db_name=ORA10g

    ###########################################
    # Diagnostics and Statistics
    ###########################################
    background_dump_dest=/data/apps/db/oracle/admin/ORA10g_standby/bdump
    core_dump_dest=/data/apps/db/oracle/admin/ORA10g_standby/cdump
    user_dump_dest=/data/apps/db/oracle/admin/ORA10g_standby/udump

    ###########################################
    # File Configuration
    ###########################################
    #control_files=("/data/apps/db/oracle/oradata/ORA10g/control01.ctl", "/data/apps/db/oracle/oradata/ORA10g/control02.ctl", "/da
    ta/apps/db/oracle/oradata/ORA10g/control03.ctl")
    db_recovery_file_dest=/data/apps/db/oracle/flash_recovery_area
    db_recovery_file_dest_size=2147483648

    ###########################################
    # Job Queues
    ###########################################
    job_queue_processes=10

    ###########################################
    # Miscellaneous
    ###########################################
    compatible=10.2.0.1.0

    ###########################################
    # Processes and Sessions
    ###########################################
    processes=150

    ###########################################
    # SGA Memory
    ###########################################
    #sga_target=1256194048
    sga_target=956194048

    ###########################################
    # Security and Auditing
    ###########################################
    audit_file_dest=/data/apps/db/oracle/admin/ORA10g/adump
    remote_login_passwordfile=EXCLUSIVE

    ###########################################
    # Shared Server
    ###########################################
    dispatchers="(PROTOCOL=TCP) (SERVICE=ORA10gXDB)"

    ###########################################
    # Sort, Hash Joins, Bitmap Indexes
    ###########################################
    #pga_aggregate_target=418381824
    pga_aggregate_target=41838812


    ###########################################
    # Security and Auditing
    ###########################################
    audit_file_dest=/data/apps/db/oracle/admin/ORA10g/adump
    remote_login_passwordfile=EXCLUSIVE

    ###########################################
    # Shared Server
    ###########################################
    dispatchers="(PROTOCOL=TCP) (SERVICE=ORA10gXDB)"

    ###########################################
    # Sort, Hash Joins, Bitmap Indexes
    ###########################################
    #pga_aggregate_target=418381824
    pga_aggregate_target=41838812

    ###########################################
    # System Managed Undo and Rollback Segments
    ###########################################
    undo_management=AUTO
    undo_tablespace=UNDOTBS1

    ###########################################
    #Archive
    ###########################################
    control_files=("/data/apps/db/oracle/oradata/ORA10g_standby/ORA10g_standby.ctl")
    LOG_ARCHIVE_FORMAT="%t_%s_%r.log"
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(ORA10g,ORA10g_standby)'
    LOG_ARCHIVE_DEST_1=
    'LOCATION=/data/apps/db/log/ORA10g_standby_arch
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=ORA10g_standby'
    LOG_ARCHIVE_DEST_STATE_1=enable
    FAL_SERVER=ORA10g
    FAL_CLIENT=ORA10g_standby
    DB_FILE_NAME_CONVERT='/data/apps/db/oracle/oradata/ORA10g','/data/apps/db/oracle/oradata/ORA10g_standby'
    LOG_FILE_NAME_CONVERT='/data/apps/db/log/ORA10g','/data/apps/db/log/ORA10g_standby_arch'
    standby_archive_dest='/data/apps/db/log/ORA10g_standby'
    standby_file_management='auto'
    OS_AUTHENT_PREFIX=''

    Did the followin changes to the listener.ora file

    ORA10g =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myaolldap-sd12.websys.aol.com)(PORT = 1521))
    )
    )

    SID_LIST_ORA10g =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ORA10g)
    (ORACLE_HOME = /data/apps/oracle/product/10.2.0.1/db_1)
    )
    )

    ORA10g_standby =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL =ipc)(KEY=ORA10g_standby))
    )
    )

    SID_LIST_ORA10g_standby =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ORA10g_standby)
    (ORACLE_HOME = /data/apps/oracle/product/10.2.0.1/db_1)
    )
    )

    Did the followin changes to the tnsnames.ora file

    ORA10G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myaolldap-sd12.websys.aol.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID = ORA10g)
    )
    )

    ORA10g_standby =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = ipc)(KEY=ORA10g_standby))
    (CONNECT_DATA =
    (SID = ORA10g_standby)
    )
    )


    started the standby database in nomount state.

    mounted the standby database with this command



    put the stanby database in recovery mode using



    on the primary site, i opened the database,

    issued the log switch.checked the v$archive_deststatus is showing error

    and error showing as Oracle Not available.

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Have you looked at the alert log for both the primary and standby databases?

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