# # $Header: install/utl/chopt/chopt.pl /main/1 2009/03/30 05:44:49 dschrein Exp $ # # chopt.pl # # Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. # # NAME # chopt.pl - change (disable or enable) optional components # # DESCRIPTION # this perl script is invoked by chopt (shell script) or chopt.bat, found # in ORACLE_HOME/bin. # # execute ORACLE_HOME/bin/chopt to see usage details # # NOTES # # # MODIFIED (MM/DD/YY) # dschrein 03/24/09 - normalize path delimiters # dschrein 03/11/09 - prohibit execution unless # oracle_install_db_InstallType is set # dschrein 03/10/09 - echo commands being run # dschrein 02/24/09 - creation # use File::Copy; my $ohome = '%ORACLE_HOME%'; my $installType = '%oracle_install_db_InstallType%'; $ohome =~ s,\\,/,g; my $ini = "$ohome/bin/chopt.ini"; my $logdir = "$ohome/install"; unless ( $installType ) { print "\nchopt is supported for changing options only in an ORACLE_HOME containing a database.\n\n"; exit 1; } my $usage = "\nusage:\n\nchopt