昨天一台PC Server上的數據庫又出問題
這兩台服務器用的都是聯志的國產低端PC Server
Nov: : wapcom kernel: attempt to access beyond end of device
Nov: : wapcom kernel: : : rw= want= limit=
Nov: : wapcom kernel: EXT fs error (device sd( )): ext _readdir:
directory #contains a hole at offset
Nov: : wapcom kernel: attempt to access beyond end of device
Nov: : wapcom kernel: : : rw= want= limit=
Nov: : wapcom kernel: EXT fs error (device sd( )): ext _readdir:
directory #contains a hole at offset
Nov: : wapcom kernel: attempt to access beyond end of device
Nov: : wapcom kernel: : : rw= want= limit=
Nov: : wapcom kernel: EXT fs error (device sd( )): ext _readdir:
directory #contains a hole at offset
Nov: : wapcom kernel: attempt to access beyond end of device
Nov: : wapcom kernel: : : rw= want= limit=
Nov: : wapcom kernel: EXT fs error (device sd( )): ext _readdir:
directory #contains a hole at offset
好在數據庫通過DataGuard可以切換到另外一台
Thu Nov: :
ARC: Complete FAL archive (thread sequence destination bmarksb)
ARC: Begin FAL archive (thread sequence destination bmarksb)
Creating archive destination LOG_ARCHIVE_DEST_: bmarksb
ARC: Complete FAL archive (thread sequence destination bmarksb)
ARC: Begin FAL archive (thread sequence destination bmarksb)
Creating archive destination LOG_ARCHIVE_DEST_: bmarksb
Thu Nov: :
ARC: Complete FAL archive (thread sequence destination bmarksb)
ARC: Begin FAL archive (thread sequence destination bmarksb)
Creating archive destination LOG_ARCHIVE_DEST_: bmarksb
Thu Nov: :
ARC: Complete FAL archive (thread sequence destination bmarksb)
Thu Nov: :
ARC: Complete FAL archive (thread sequence destination bmarksb)
現在是主庫所在的服務器出現問題:
SQL> select dbid
name PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS from v$database;
DBID NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
BMARK MAXIMUM PERFORMANCE PRIMARY SESSIONS ACTIVE
備庫現在一切正常:
SQL> select dbid
name PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS from v$database;
DBID NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
BMARK MAXIMUM PERFORMANCE PHYSICAL STANDBY SESSIONS ACTIVE
現在需要的是一點停機時間進行切換
Fri Nov: :
alter database commit to switchover to physical standby with session shutdown
Fri Nov: :
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY
Fri Nov: :
SMON: disabling tx recovery
Fri Nov: :
Active processuser oracle program ora (CJQ )
Active processuser oracle program ora (TNS V V )
Active processuser oracle program ora (TNS V V )
Active processuser oracle program ora (TNS V V )
Active processuser oracle program ora (TNS V V )
Active processuser oracle program ora (TNS V V )
Active processuser oracle program ora (TNS V V )
CLOSE: waiting for server sessions to complete
Fri Nov: :
CLOSE: all sessions shutdown successfully
Fri Nov: :
SMON: disabling cache recovery
Fri Nov: :
Shutting down archive processes
Archiving is disabled
Fri Nov: :
ARCH shutting down
Fri Nov: :
ARCH shutting down
Fri Nov: :
ARC: Archival stopped
Fri Nov: :
ARC: Archival stopped
Fri Nov: :
Threadclosed at log sequence
Successful close of redo thread
Fri Nov: :
ARCH: noswitch archival of threadsequence
ARCH: EndOf Redo archival of thread sequence
ARCH: Evaluating archive logthread sequence
ARCH: Beginning to archive logthread sequence
Creating archive destination LOG_ARCHIVE_DEST_: bmarksb
Creating archive destination LOG_ARCHIVE_DEST_: /var/oradata/arch/ _ arc
ARCH: Completed archiving logthread sequence
ARCH: archiving is disabled due to current logfile archival
Clearing standby activation ID( xd dd cc )
The primary database controlfile was created using theMAXLOGFILES clause
The resulting standby controlfile will not have enough
available logfile entries to support an adequate number
of standby redo logfilesConsider re creating the
primary controlfile usingMAXLOGFILES (or larger)
Use the following SQL commands on the standby database to create
standby redo logfiles that match the primary database:
ALTER DATABASE ADD STANDBY LOGFILEsrl f SIZE ;
ALTER DATABASE ADD STANDBY LOGFILEsrl f SIZE ;
ALTER DATABASE ADD STANDBY LOGFILEsrl f SIZE ;
ALTER DATABASE ADD STANDBY LOGFILEsrl f SIZE ;
Archivelog for threadsequence required for standby recovery
MRPstarted with pid=
MRP: Background Managed Standby Recovery process started
Media Recovery Log /var/oradata/arch/_ arc
Identified endof REDO for thread sequence
Identified endof REDO for thread sequence
Media Recovery EndOf Redo indicator encountered
Media Recovery Applied until change
MRP: Media Recovery Complete: End Of REDO
Resetting standby activation ID( xd dd cc )
MRP: Background Media Recovery process shutdown
Fri Nov: :
Switchover: CompleteDatabase shutdown required
Completed: alter database commit to switchover to physical st
Fri Nov: :
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark =
Fri Nov: :
ALTER DATABASE CLOSE NORMAL
ORAsignalled during: ALTER DATABASE CLOSE NORMAL
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided:active
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided:active
Fri Nov: :
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION =
LICENSE_SESSIONS_WARNING =
SCN scheme
Using log_archive_dest parameter default value
LICENSE_MAX_USERS =
SYS auditing is disabled
Starting up ORACLE RDBMS Version:
System parameters with nondefault values:
processes =
timed_statistics = TRUE
shared_pool_size =
large_pool_size =
standby_archive_dest = /var/oradata/arch
fal_server = bmarksb
fal_client = bmark
log_archive_format = %t_%sarc
CJQstarted with pid=
Fri Nov: :
ARCH: STARTING ARCH PROCESSES
ARCstarted with pid=
ARC: Archival started
ARCstarted with pid=
Fri Nov: :
ARCH: STARTING ARCH PROCESSES COMPLETE
Fri Nov: :
ARC: Archival started
Fri Nov: :
ARC: Thread not mounted
Fri Nov: :
ARC: Thread not mounted
Fri Nov: :
alter database mount standby database
Fri Nov: :
Successful mount of redo threadwith mount id
Fri Nov: :
Standby Database mounted
Completed: alter database mount standby database
Fri Nov: :
ALTER DATABASE RECOVER managed standby database disconnect
Attempt to start background Managed Standby Recovery process
MRPstarted with pid=
MRP: Background Managed Standby Recovery process started
Fri Nov: :
Completed: ALTER DATABASE RECOVER managed standby database d
Fri Nov: :
Media Recovery Waiting for threadseq#
Media Recovery Log /var/oradata/arch/_ arc
Media Recovery Waiting for threadseq#
Media Recovery Log /var/oradata/arch/_ arc
Media Recovery Waiting for threadseq#
看來以後不能再采購聯志服務器了
From:http://tw.wingwit.com/Article/program/Oracle/201311/18377.html