最经开始学Oracle的知识,找了套视频来看,是www.boobooke.com/的小布老师,看了点还是不错。当然还有其他老师的视频和资料也是很不错。大家可以去看下,你会发现意外的东西
,兴起来写这个,主要是看了视频之后,没几天就忘了
看样子,温故而知新还是非常对的。由于看过前面几节。不会从头开始写,如果那天有空,在补充吧
bbk1154,第3章 diagnostic Files包括下面几个类型:
alertSid.log file
background trace files
user trace files
alertSid.log--一个进程在生命周期内,生成的文件,alert文件只有一个 ,每一个entry(也就是记录)都有一个time stamp associated with it,会将启动参数记录下来,基石pfile和spfile损毁也能正常启动。
文件的位置:
SQL> show parameter dump
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\BDUMP
core_dump_dest stringD:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\CDUMP
max_dump_file_size string UNLIMITED
shadow_core_dump string partial
user_dump_dest string D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP
background_dump_dest的值就是文件的位置
打开D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\BDUMP\alert_orcl.log文件,到文件倒数几页有下面内容
System parameters with non-default values:
processes = 150
__shared_pool_size = 239075328
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
spfile = D:\SOFT\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORCL.ORA
sga_target = 612368384
control_files = D:\SOFT\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL, D:\SOFT\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL, D:\SOFT\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
db_block_size = 8192
__db_cache_size = 356515840
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = d:\soft\oracle\product\10.2.0/flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
job_queue_processes = 10
audit_file_dest = D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\ADUMP
background_dump_dest = D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\BDUMP
user_dump_dest = D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP
core_dump_dest = D:\SOFT\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\CDUMP
db_name = orcl
open_cursors = 300
pga_aggregate_target = 203423744
打开D:\soft\oracle\product\10.2.0\db_1\dbs\SPFILEORCL.ORA.
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__shared_pool_size=239075328
orcl.__streams_pool_size=0
*.audit_file_dest='d:\soft\oracle\product\10.2.0/admin/orcl/adump'
*.background_dump_dest='d:\soft\oracle\product\10.2.0/admin/orcl/bdump'
*.compatible='10.2.0.1.0'
*.control_files='d:\soft\oracle\product\10.2.0\oradata\orcl\control01.ctl','d:\soft\oracle\product\10.2.0\oradata\orcl\control02.ctl','d:\soft\oracle\product\10.2.0\oradata\orcl\control03.ctl'
*.core_dump_dest='d:\soft\oracle\product\10.2.0/admin/orcl/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.db_recovery_file_dest='d:\soft\oracle\product\10.2.0/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=203423744
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=612368384
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='d:\soft\oracle\product\10.2.0/admin/orcl/udump'
可以看到2个文件的配置参数类似,有些部分的value在spfile是有引号,这样,就算是spfile文件损毁或丢失,你也是可以从alert文件里面恢复