1、修改catcdb.pl文件35行把unil修改成Util 2、进入hash目录后,进入sqlplus环境 oracle@txbds-dpf-db001:/oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi$ cd /oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi/Hash/ oracle@txbds-dpf-db001:/oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi/Hash$ ll total 28 drwxr-xr-x 2 oracle oinstall 4096 Apr 202017 Util -rwxr-x--- 1 oracle oinstall 23392 May 122016 Util.pm oracle@txbds-dpf-db001:/oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi/Hash$ sqlplus /nolog
SQL*Plus: Release 12.2.0.1.0 Production on Fri Mar 2314:03:512018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
SQL> conn / as sysdba Connected. SQL> @?/rdbms/admin/catcdb.sql
SQL> host perl -I &&rdbms_admin &&rdbms_admin_catcdb --logDirectory &&1 --logFilename &&2 Enter value for1: /oracle/product/12.2.0.1/rdbms/admin Enter value for2: /oracle/product/12.2.0.1/rdbms/admin/catcdb.pl Enter new password for SYS: oracle123 Enter new password for SYSTEM: oracle123 Enter temporary tablespace name: dpf-temp No options to container mapping specified, no options will be installed in any containers catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catalog_catcon_14267.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catalog*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catalog_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catproc_catcon_14355.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catproc*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catproc_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catoctk_catcon_15507.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catoctk*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catoctk_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/owminst_catcon_15593.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/owminst*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/owminst_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16013.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/pupbld*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/pupbld_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/pupbld*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/pupbld_*.lst] files for spool files, if any validate_script_path: sqlplus script /oracle/product/12.2.0.1/sqlplus/admin/help/hlpbld does not exist or is unreadable catconExec: empty Path returned by validate_script_path for SrcDir = /oracle/product/12.2.0.1/sqlplus/admin/help, FileName = hlpbld catcon.pl: Unexpected error encountered in catconExec; exiting exec_DB_script: /oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097_exec_DB_script.done did not need to be deleted before running a script exec_DB_script: opened Reader and Writer exec_DB_script: connected exec_DB_script: executed set echo on
exec_DB_script: sent host sqlplus -v > /oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097_exec_DB_script.done to Writer exec_DB_script: sent -exit- to Writer exec_DB_script: closed Writer exec_DB_script: marker was undefined; read and ignore output, if any exec_DB_script: finished reading and ignoring output exec_DB_script: waiting for child process to exit exec_DB_script: child process exited sureunlink: unlink(/oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097_exec_DB_script.done) succeeded after 1 attempt(s) sureunlink: verify that the file really no longer exists sureunlink: confirmed that /oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097_exec_DB_script.done no longer exists after 1 attempts exec_DB_script: deleted /oracle/product/12.2.0.1/rdbms/admin/pupbld_catcon_16097_exec_DB_script.done after running a script exec_DB_script: closed Reader exec_DB_script: waitpid returned kill_sqlplus_sessions: output produced in exec_DB_script [ SQL*Plus: Release 12.2.0.1.0 Production on Fri Mar 2314:27:092018 Copyright (c) 1982, 2016, Oracle. All rights reserved. SQL> Connected. SQL> SQL> SQL> SQL> ALTER SYSTEM KILL SESSION '99,16498' force timeout 0 -- process 16133 2 / System altered. SQL> SQL> SQL> SQL> Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production ] end of output produced in exec_DB_script catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catclust_catcon_16148.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catclust*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catclust_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catfinal_catcon_16566.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catfinal*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catfinal_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/catbundleapply_catcon_16650.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catbundleapply*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/catbundleapply_*.lst] files for spool files, if any catcon.pl: completed successfully catcon: ALL catcon-related output will be written to [/oracle/product/12.2.0.1/rdbms/admin/utlrp_catcon_16734.lst] catcon: See [/oracle/product/12.2.0.1/rdbms/admin/utlrp*.log] files for output generated by scripts catcon: See [/oracle/product/12.2.0.1/rdbms/admin/utlrp_*.lst] files for spool files, if any catcon.pl: completed successfully