Oracle APEX 在 12.1.0.2.0 中默认安装,而在 12.2.0.1.0 未默认安装,如果不进行 APEX 卸载,在 12.2.0.1.0 中 plug 12.1.0.2.0 版本的 pdb 将报如下 ORA-65346 错误:
ERROR at line 1: ORA-65346: The PDB version is lower and components (APEX) are missing in CDB. - APEX mismatch: PDB has installed common APEX. CDB has not installed APEX.
解决:编辑xml 文件 /tmp/ pdbsample.xml , 删除以下行:
<APEX>4.2.5.00.08:1</APEX>
或者卸载APEX :
select COMP_ID, STATUS from DBA_REGISTRY where COMP_ID='APEX'; SQL>@?/apex/apxremov_nocdb.sql
11g 需要跑 apxremov.sql , 12.1.0.2 需要跑脚本 apxremov_con.sql ,其它版本需要跑 apxremov_nocdb.sql 或 apxremov_cdb.sql 进行卸载 APEX 组件。
#移除PDB中的APEX组件,在PDB中执行,在19c中会报错,我们可以将18c中的相应脚本拷贝到19c中的相应位置后再执行@?/apex/apxremov_nocdb.sql即可。
ORA-01435: User does not Exist, Removing APEX (Doc ID 2641217.1) |
In this Document
|
Symptoms |
|
Changes |
|
Cause |
|
Solution |
Oracle Application Express (APEX) - Version 3.2.1 and later
Information in this document applies to any platform.
On : APEX 3.2.1 version, Administration
When attempting to remove APEX using script apxremov.sql found under the ORACLE_HOME of a 19c DB
the following error occurs.
STEPS
-----------------------
1. Take an RMAN backup from 11g (Database) DB and restore it in a 19c DB
2. Try to remove APEX using apxremov.sql script
Using the wrong version of the script (for the version of APEX to be remove).
Per example: the script belong to APEX 5.0 and you want to remove APEX 3.2.
You need to use the apxremov.sql script that belongs to the APEX version installed on the DB (i.e for APEX 3.2 you can find the correct script under the $ORACLE_HOME/apex but from 11g database) as the apex version changes with each DB version.
If your 19c DB is on another server, we suggest:
1. Zip all of the apex directory from the 11g server.
2. Unzip under /tmp on target machine.
3. Then change directories (cd) to the new apex directory and connected as SYS run the script from here.
从 18c 开始, Oracle 不会自动更新 APEX 组件,需要手动更新。
下载 APEX : http://www.oracle.com/technetwork/developer-tools/apex/all-archives-099381.html
要写切换到解压的 apex 所在的目录下再以 sysdba 身份登录数据库,执行脚本升级
[oracle@cndba apex]$ pwd
/software/apex
sqlplus / as sysdba
SQL > @apexins.sql SYSAUX SYSAUX TEMP /i/
检查 APEX 版本
COL COMP_NAME FORMAT A40
COL STATUS FORMAT A12
SELECT COMP_NAME, STATUS, VERSION
FROM DBA_REGISTRY
WHERE COMP_NAME='Oracle Application Express';
COMP_NAME STATUS VERSION
---------------------------------------- ------------ --------------------
Oracle Application Express VALID 5.1.4.00.08
About Me
........................................................................................................................ ● 本文作者:小麦苗,部分内容整理自网络,若有侵权请联系小麦苗删除 ● 本文在itpub( http://blog.itpub.net/26736162)、博客园( http://www.cnblogs.com/lhrbest)和个人weixin公众号( )上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文博客园地址: http://www.cnblogs.com/lhrbest ● 本文pdf版、个人简介及小麦苗云盘地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 数据库笔试面试题库及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA宝典今日头条号地址: ........................................................................................................................ ● QQ群号: 230161599(满) 、618766405 ● weixin群:可加我weixin,我拉大家进群,非诚勿扰 ● 联系我请加QQ好友 ( 646634621 ),注明添加缘由 ● 于 2018-11-01 06:00 ~ 2018-11-31 24:00 在魔都完成 ● 最新修改时间:2018-11-01 06:00 ~ 2018-11-31 24:00 ● 文章内容来源于小麦苗的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解 ● 版权所有,欢迎分享本文,转载请保留出处 ........................................................................................................................ ● 小麦苗的微店: ● 小麦苗出版的数据库类丛书: http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麦苗OCP、OCM、高可用网络班: http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麦苗腾讯课堂主页: ........................................................................................................................ 使用 weixin客户端扫描下面的二维码来关注小麦苗的weixin公众号( )及QQ群(DBA宝典)、添加小麦苗weixin, 学习最实用的数据库技术。
........................................................................................................................ |
![]() |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26736162/viewspace-2222308/,如需转载,请注明出处,否则将追究法律责任。