今天做一个特殊的实验,需要重启数据库
数据库关闭没有问题
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
但是启动的时候,出现了一个报错:
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 1174405120 bytes
Fixed Size 2020288 bytes
Variable Size 369101888 bytes
Database Buffers 788529152 bytes
Redo Buffers 14753792 bytes
Database mounted.
SQL> show parameter pfile
一个报错非常显眼,他的提示是有些过期的参数正在使用。查看过期参数:
NAME
--------------------------------------------------------------------------------
lock_name_space
buffer_pool_keep
buffer_pool_recycle
max_commit_propagation_delay
remote_archive_enable
log_archive_start
parallel_server
parallel_server_instances
fast_start_io_target
logmnr_max_persistent_sessions
serial_reuse
NAME
--------------------------------------------------------------------------------
max_enabled_roles
global_context_pool_size
plsql_compiler_flags
sql_trace
parallel_automatic_tuning
drs_start
17 rows selected.
再根据pfile查看,发现,pfile中有一个过期参数,sql_trace
将pfile备份,删除pfile中的sql_trace选项
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1174405120 bytes
Fixed Size 2020288 bytes
Variable Size 369101888 bytes
Database Buffers 788529152 bytes
Redo Buffers 14753792 bytes
Database mounted.
数据库正常启动,无报错