标题: ORA-32004: obsolete or deprecated parameter(s) [打印本页] 作者: 王亮 时间: 2020-12-4 14:45 标题: ORA-32004: obsolete or deprecated parameter(s) 在oracle11.2.0.4手动升级到19.3时,从11g的数据目录中复制了spfile到新数据库目录下,然后以startup upgrade的方式启动。然后进行升级
在升级完成后,重启数据库时,会有提示ORA-32004的提示
SQL>startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 4.0534E+10 bytes
Fixed Size 8906984 bytes
Variable Size 3892314112 bytes
Database Buffers 3.6507E+10 bytes
Redo Buffers 125308928 bytes
Database mounted.
Database opened.
但并不清楚参数中,是哪个参数在19.3版中已经停用,不好随便停用的参数,可以先创建静态参数文件pfile,以pfile启动数据库,即可获取失效的参数。然后对pfile文件进行调整,再启动数据,然后以调整后的pfile创建spfile。
--以spfile创建pfile
SQL> create pfile='/data/orcl.ora' from spfile;
--关闭数据库
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
--以pfile启动数据库,获取停用的参数
SQL> startup pfile='/data/orcl.ora'
ORA-32006: SEC_CASE_SENSITIVE_LOGON initialization parameter has been deprecated
ORACLE instance started.
Total System Global Area 4.0534E+10 bytes
Fixed Size 8906984 bytes
Variable Size 3892314112 bytes
Database Buffers 3.6507E+10 bytes
Redo Buffers 125308928 bytes
Database mounted.
Database opened.
根据ORA-32006的提示,得知11g的SEC_CASE_SENSITIVE_LOGON参数在19.3里,已经失效,在pfile里,将该参数去掉,然后保存后再尝试启动数据库
SQL> startup pfile='/data/orcl.ora'
ORACLE instance started.
Total System Global Area 4.0534E+10 bytes
Fixed Size 8906984 bytes
Variable Size 3892314112 bytes
Database Buffers 3.6507E+10 bytes
Redo Buffers 125308928 bytes
Database mounted.
Database opened.