1.第一步
log_archive_start = true
log_archive_dest_1 = "location=f:\oracle\oradata\frank\archive"
log_archive_format = %%ORACLE_SID%%T%TS%S.ARC
改为这样看看
log_archive_start = true
log_archive_dest_1 = 'location=f:\oracle\oradata\frank\archive'
log_archive_format = '%%ORACLE_SID%%T%TS%S.ARC'2.第二步
sqlplus "/as sysdba"
shutdown abort
startup mount
alter database archivelog;-----启用归档
alter database open;
log_archive_start = true
log_archive_dest_1 = "location=f:\oracle\oradata\frank\archive"
log_archive_format = %%ORACLE_SID%%T%TS%S.ARC
改为这样看看
log_archive_start = true
log_archive_dest_1 = 'location=f:\oracle\oradata\frank\archive'
log_archive_format = '%%ORACLE_SID%%T%TS%S.ARC'2.第二步
sqlplus "/as sysdba"
shutdown abort
startup mount
alter database archivelog;-----启用归档
alter database open;
我发现在init.ora中增加的参数没起作用
我的init.ora
##############################################################################
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
##############################################################################
###########################################
# MTS
###########################################
dispatchers="(PROTOCOL=TCP) (SERVICE=frankXDB)"
###########################################
# Optimizer
###########################################
hash_join_enabled=TRUE
query_rewrite_enabled=FALSE
star_transformation_enabled=FALSE
###########################################
# Job Queues
###########################################
job_queue_processes=10
###########################################
# Instance Identification
###########################################
instance_name=frank
###########################################
# Miscellaneous
###########################################
aq_tm_processes=1
compatible=9.2.0.0.0
###########################################
# Security and Auditing
###########################################
remote_login_passwordfile=EXCLUSIVE
###########################################
# Sort, Hash Joins, Bitmap Indexes
###########################################
pga_aggregate_target=25165824
sort_area_size=524288
###########################################
# Database Identification
###########################################
db_domain=com
db_name=frank
###########################################
# File Configuration
###########################################
control_files=("f:\oracle\oradata\frank\CONTROL01.CTL", "f:\oracle\oradata\frank\CONTROL02.CTL", "f:\oracle\oradata\frank\CONTROL03.CTL")
###########################################
# Pools
###########################################
java_pool_size=33554432
large_pool_size=8388608
shared_pool_size=50331648
###########################################
# Cursors and Library Cache
###########################################
open_cursors=300
###########################################
# System Managed Undo and Rollback Segments
###########################################
undo_management=AUTO
undo_retention=10800
undo_tablespace=UNDOTBS1
###########################################
# Diagnostics and Statistics
###########################################
background_dump_dest=d:\oracle\admin\frank\bdump
core_dump_dest=d:\oracle\admin\frank\cdump
timed_statistics=TRUE
user_dump_dest=d:\oracle\admin\frank\udump
###########################################
# Processes and Sessions
###########################################
processes=150
###########################################
# Redo Log and Recovery
###########################################
fast_start_mttr_target=300
###########################################
# Cache and I/O
###########################################
db_block_size=8192
db_cache_size=25165824
db_file_multiblock_read_count=16
###########################################
# archive mode
###########################################
log_archive_start=true
log_archive_dest_1='location=f:\oracle\oradata\frank\archive'
log_archive_format='%%ORACLE_SID%%T%TS%S.ARC'
alter system set log_archive_dest_1 = "location=f:\oracle\oradata\frank\archive" scope=both;
或者导出SPFILE修改后再重新建立SPFILE
CREATE PFILE FROM SPFILE;
修改后
create spfile from pfile='c:\ora9\database\init.ora'然后
sqlplus /as sysdba
shutdown immediate
startup mount
alter database archivelog;-----启用归档
alter database open;