Home  >  Article  >  Database  >  Oracle 11g ASM数据库升级compatible

Oracle 11g ASM数据库升级compatible

WBOY
WBOYOriginal
2016-06-07 17:07:291279browse

我的数据库(asm存储)是11.1升级 11.2的。今天在做延迟段创建时报一定要升级到11.2才能应用此功能。查看我的实例的compatible是

我的数据库(asm存储)是11.1升级 11.2的。

今天在做延迟段创建时报一定要升级到11.2才能应用此功能。

查看我的实例的compatible是 11.1.0.0.0,自然想到 alter systerm set compatible='11.2.0.0.0' scope=spfile,但报不能修改当前spfile,那就修改pfile吧。

SQL> create pfile='/tmp/pfile' from memory;

然后修改了/tmp/pfile的compatible='11.2.0.0.0'和_compression_compatibility='11.2.0.0.0'。

用pfile启动数据库:

SQL> startup mount pfile='/tmp/pfile'

正常,参数改成了11.2.0.0.0。那就生成一个spfile吧

SQL> create spfile from pfile;

SQL> startup force

居然报错:ORA-00201: control file version 11.2.0.0.0 incompatible with Oracle version 11.1.0.0.0

看来spfile还是没改对,,用pfile启动后,

SQL> create spfile from memory;

SQL> startup force

这次正常启动了,但spfile被改成没有指向asm中存储的spfile了

再改spfile

SQL> create spfile from pfile;

SQL> create spfile='+DATA/hzocs/spfilehzocs.ora' from memory;

SQL> startup force

这次正常启动了,spfile也正常指向了asm中存储的spfile了。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn