我的ININ.ORA文件: # # Copyright (c) 1991, 1998 by Oracle Corporation # ############################################################################## # Example INIT.ORA file # # This file is provided by Oracle Corporation to help you customize # your RDBMS installation for your site. Important system parameters # are discussed, and example settings given. # # Some parameter settings are generic to any size installation. # For parameters that require different values in different size # installations, three scenarios have been provided: SMALL, MEDIUM # and LARGE. Any parameter that needs to be tuned according to # installation size will have three settings, each one commented # according to installation size. # # Use the following table to approximate the SGA size needed for the # three scenarious provided in this file: # # -------Installation/Database Size------ # SMALL MEDIUM LARGE # Block 2K 4500K 6800K 17000K # Size 4K 5500K 8800K 21000K # # To set up a database that multiple instances will be using, place # all instance-specific parameters in one file, and then have all # of these files point to a master file using the IFILE command. # This way, when you change a public # parameter, it will automatically change on all instances. This is # necessary, since all instances must run with the same value for many # parameters. For example, if you choose to use private rollback segments, # these must be specified in different files, but since all gc_* # parameters must be the same on all instances, they should be in one file. # # INSTRUCTIONS: Edit this file and the other INIT files it calls for # your site, either by using the values provided here or by providing # your own. Then place an IFILE= line into each instance-specific # INIT file that points at this file. # # NOTE: Parameter values suggested in this file are based on conservative # estimates for computer memory availability. You should adjust values upward # for modern machines. # ###############################################################################db_name = "oracle"instance_name = oracleservice_names = oracledb_files = 1024 # INITIAL # db_files = 80 # SMALL # db_files = 400 # MEDIUM # db_files = 1500 # LARGEcontrol_files = ("D:\Oracle\oradata\oracle\control01.ctl", "D:\Oracle\oradata\oracle\control02.ctl", "D:\Oracle\oradata\oracle\control03.ctl")open_cursors = 100 max_enabled_roles = 30 db_file_multiblock_read_count = 8 # INITIAL # db_file_multiblock_read_count = 8 # SMALL # db_file_multiblock_read_count = 16 # MEDIUM # db_file_multiblock_read_count = 32 # LARGEdb_block_buffers = 2048 # INITIAL # db_block_buffers = 100 # SMALL # db_block_buffers = 550 # MEDIUM # db_block_buffers = 3200 # LARGEshared_pool_size = 15728640 # INITIAL # shared_pool_size = 3500000 # SMALL # shared_pool_size = 5000000 # MEDIUM # shared_pool_size = 9000000 # LARGElarge_pool_size = 614400 java_pool_size = 20971520log_checkpoint_interval = 10000 log_checkpoint_timeout = 1800processes = 59 # INITIAL # processes = 50 # SMALL # processes = 100 # MEDIUM # processes = 200 # LARGEparallel_max_servers = 5 # SMALL # parallel_max_servers = 4 x (number of CPUs) # MEDIUM # parallel_max_servers = 4 x (number of CPUs) # LARGElog_buffer = 32768 # INITIAL # log_buffer = 32768 # SMALL # log_buffer = 32768 # MEDIUM # log_buffer = 163840 # LARGE#audit_trail = true # if you want auditing #timed_statistics = true # if you want timed statistics max_dump_file_size = 10240 # limit trace file size to 5M each# Uncommenting the line below will cause automatic archiving if archiving has # been enabled using ALTER DATABASE ARCHIVELOG. # log_archive_start = true # log_archive_dest_1 = "location=D:\Oracle\oradata\oracle\archive" # log_archive_format = %%ORACLE_SID%%T%TS%S.ARC# If using private rollback segments, place lines of the following # form in each of your instance-specific init.ora files: #rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )# If using public rollback segments, define how many # rollback segments each instance will pick up, using the formula # # of rollback segments = transactions / transactions_per_rollback_segment # In this example each instance will grab 40/5 = 8 # transactions = 40 # transactions_per_rollback_segment = 5# Global Naming -- enforce that a dblink has same name as the db it connects to global_names = true# Edit and uncomment the following line to provide the suffix that will be # appended to the db_name parameter (separated with a dot) and stored as the # global database name when a database is created. If your site uses # Internet Domain names for e-mail, then the part of your e-mail address after # the '@' is a good candidate for this parameter value. # db_domain = us.acme.com # global database name is db_name.db_domain# Uncomment the following line if you wish to enable the Oracle Trace product # to trace server activity. This enables scheduling of server collections # from the Oracle Enterprise Manager Console. # Also, if the oracle_trace_collection_name parameter is non-null, # every session will write to the named collection, as well as enabling you # to schedule future collections from the console. # oracle_trace_enable = trueoracle_trace_collection_name = "" # define directories to store trace and alert files background_dump_dest = D:\Oracle\admin\oracle\bdump #Uncomment this parameter to enable resource management for your database. #The SYSTEM_PLAN is provided by default with the database. #Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan user_dump_dest = D:\Oracle\admin\oracle\udumpdb_block_size = 8192remote_login_passwordfile = exclusiveos_authent_prefix = ""# The following parameters are needed for the Advanced Replication Option job_queue_processes = 4 job_queue_interval = 10 open_links = 4distributed_transactions = 500 mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)" # Uncomment the following line when your listener is configured for SSL # (listener.ora and sqlnet.ora) # mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"compatible = 8.1.0 sort_area_size = 65536 sort_area_retained_size = 65536
命令提示符方式下
svrmgrl
connect internal/oracle
shutdown immediate
startup
连接成功
shutdown immediate
ORA-01507: ??????
已关闭 ORACLE 实例。
startup
ORA-00214:???? 'D:\ORACLE\ORADATA\CONTROL02.CTL'?? 5220 ???
'D:\ORACLE\ORADATA\CONTROL01.CTL'?? 5218 ???
connect system/manager
ORA-01033: ORACLE ?????????????这是怎么回事啊?
连接成功
shutdown immediate
ORA-01507: ??????
已关闭 ORACLE 实例。
startup
ORA-00214:???? 'D:\ORACLE\ORADATA\CONTROL02.CTL'?? 5220 ???
'D:\ORACLE\ORADATA\CONTROL01.CTL'?? 5218 ???
connect system/manager
ORA-01033: ORACLE ?????????????这是怎么回事啊?
修改init.ora参数
将损坏的控制文件的位置删除试试
可我也没改什么啊,怎么它自己就坏了?
#
# Copyright (c) 1991, 1998 by Oracle Corporation
#
##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site. Important system parameters
# are discussed, and example settings given.
#
# Some parameter settings are generic to any size installation.
# For parameters that require different values in different size
# installations, three scenarios have been provided: SMALL, MEDIUM
# and LARGE. Any parameter that needs to be tuned according to
# installation size will have three settings, each one commented
# according to installation size.
#
# Use the following table to approximate the SGA size needed for the
# three scenarious provided in this file:
#
# -------Installation/Database Size------
# SMALL MEDIUM LARGE
# Block 2K 4500K 6800K 17000K
# Size 4K 5500K 8800K 21000K
#
# To set up a database that multiple instances will be using, place
# all instance-specific parameters in one file, and then have all
# of these files point to a master file using the IFILE command.
# This way, when you change a public
# parameter, it will automatically change on all instances. This is
# necessary, since all instances must run with the same value for many
# parameters. For example, if you choose to use private rollback segments,
# these must be specified in different files, but since all gc_*
# parameters must be the same on all instances, they should be in one file.
#
# INSTRUCTIONS: Edit this file and the other INIT files it calls for
# your site, either by using the values provided here or by providing
# your own. Then place an IFILE= line into each instance-specific
# INIT file that points at this file.
#
# NOTE: Parameter values suggested in this file are based on conservative
# estimates for computer memory availability. You should adjust values upward
# for modern machines.
#
###############################################################################db_name = "oracle"instance_name = oracleservice_names = oracledb_files = 1024 # INITIAL
# db_files = 80 # SMALL
# db_files = 400 # MEDIUM
# db_files = 1500 # LARGEcontrol_files = ("D:\Oracle\oradata\oracle\control01.ctl", "D:\Oracle\oradata\oracle\control02.ctl", "D:\Oracle\oradata\oracle\control03.ctl")open_cursors = 100
max_enabled_roles = 30
db_file_multiblock_read_count = 8 # INITIAL
# db_file_multiblock_read_count = 8 # SMALL
# db_file_multiblock_read_count = 16 # MEDIUM
# db_file_multiblock_read_count = 32 # LARGEdb_block_buffers = 2048 # INITIAL
# db_block_buffers = 100 # SMALL
# db_block_buffers = 550 # MEDIUM
# db_block_buffers = 3200 # LARGEshared_pool_size = 15728640 # INITIAL
# shared_pool_size = 3500000 # SMALL
# shared_pool_size = 5000000 # MEDIUM
# shared_pool_size = 9000000 # LARGElarge_pool_size = 614400
java_pool_size = 20971520log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800processes = 59 # INITIAL
# processes = 50 # SMALL
# processes = 100 # MEDIUM
# processes = 200 # LARGEparallel_max_servers = 5 # SMALL
# parallel_max_servers = 4 x (number of CPUs) # MEDIUM
# parallel_max_servers = 4 x (number of CPUs) # LARGElog_buffer = 32768 # INITIAL
# log_buffer = 32768 # SMALL
# log_buffer = 32768 # MEDIUM
# log_buffer = 163840 # LARGE#audit_trail = true # if you want auditing
#timed_statistics = true # if you want timed statistics
max_dump_file_size = 10240 # limit trace file size to 5M each# Uncommenting the line below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=D:\Oracle\oradata\oracle\archive"
# log_archive_format = %%ORACLE_SID%%T%TS%S.ARC# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )# If using public rollback segments, define how many
# rollback segments each instance will pick up, using the formula
# # of rollback segments = transactions / transactions_per_rollback_segment
# In this example each instance will grab 40/5 = 8
# transactions = 40
# transactions_per_rollback_segment = 5# Global Naming -- enforce that a dblink has same name as the db it connects to
global_names = true# Edit and uncomment the following line to provide the suffix that will be
# appended to the db_name parameter (separated with a dot) and stored as the
# global database name when a database is created. If your site uses
# Internet Domain names for e-mail, then the part of your e-mail address after
# the '@' is a good candidate for this parameter value.
# db_domain = us.acme.com # global database name is db_name.db_domain# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity. This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = trueoracle_trace_collection_name = ""
# define directories to store trace and alert files
background_dump_dest = D:\Oracle\admin\oracle\bdump
#Uncomment this parameter to enable resource management for your database.
#The SYSTEM_PLAN is provided by default with the database.
#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
user_dump_dest = D:\Oracle\admin\oracle\udumpdb_block_size = 8192remote_login_passwordfile = exclusiveos_authent_prefix = ""# The following parameters are needed for the Advanced Replication Option
job_queue_processes = 4
job_queue_interval = 10
open_links = 4distributed_transactions = 500
mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
# Uncomment the following line when your listener is configured for SSL
# (listener.ora and sqlnet.ora)
# mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"compatible = 8.1.0
sort_area_size = 65536
sort_area_retained_size = 65536
control_files = ("D:\Oracle\oradata\oracle\control01.ctl", "D:\Oracle\oradata\oracle\control02.ctl", "D:\Oracle\oradata\oracle\control03.ctl")
这是控制文件路径
svrmgrl>connect internal
svrmgrl>shutdown abort修改init.ora修改后
control_files = ("D:\Oracle\oradata\oracle\control03.ctl")svrmgrl>startup
这一个如果每损坏的话可以正常启动
control_files = ("D:\Oracle\oradata\oracle\control03.ctl")
或复制3成1和2后
startup mount,如果正常,表示控制文件没有问题了
这时再alter database open;
如果没有错误,就表示没有问题了,如果有错误,是你不走运
请查看报警文件
或select * from v$recover_file;
select * from v$recovery_log;
看看有内容没有
如果没有很重要的数据,reinstall吧
我按你的方法试了,出现:
ORA-00314 ??3(?? 1)????? ? ???
ORA-00312 ???? 3 ?? 1:'D:\ORACLE\ORADATA\ORACLE\REDO01.LOG'bzszp
还是不行啊
你在mount状态下就是
startup mount;
recover database;
alter database open;
怎么样,我要你查询的那两个动态视图有结果吗?
AMERICAN_AMERICA.你的字符集
一大堆问号,叫人怎么看啊
在HKEY_CURRENT_USER\Software\Oracle\Home0下
你知道你的字符集吗?
两个动态视图中都没有结果
startup mount;
已装入数据库
recover database;
错误:ORA-00283 ORA-00264
1。控制文件参数改为:control_files =("D:\Oracle\oradata\oracle\control03.ctl")即只需一个控制文件
2。日志缓冲:log_buffer =
163840
3。db_block_buffers=3200
4。shared_pool_size = 9000000
5。重启动例程
这种方法我试过了,不行啊
这么说来,你仅仅是联机日志坏了
你把recover database 换成recover database until cancel;
在需要你选择auto或cancel的时候,你选择cancel;
之后系统会进行恢复
恢复完后
你发出aler database open resetlogs;
应当就可以了
你这次运气好,没有损坏数据文件。
记住,以后多做备份
这样会对你有好处。
象你的这种情况,一般是因为数据库的突然中断引起系统scn不一致造成的,如果你看看这方面的书,其实就很好解决。
我没有猜错的话,你的联机日志1(损坏的那个),就是你的当前联机日志。
如果仅仅是损坏联机日志的话,是可以不需要备份就能恢复的,但是如果损坏的是数据文件,就一定需要备份了。
我要走了,周末都不会上网,祝你好运!!!
周末休息,等我周一上班试了,就给各位老大分!