-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pick latest changes for 19c and 21c scripts (#2864)
* pick latest changes for 19c and 21c scripts * pick latest changes for 19c and 21c scripts * pick latest changes for 19c and 21c scripts * pick latest changes for 19c and 21c scripts
- Loading branch information
Showing
21 changed files
with
1,507 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/python3 | ||
#!/usr/bin/python | ||
|
||
############################# | ||
# Copyright (c) 2024, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl | ||
# Copyright 2020 - 2024, Oracle Corporation and/or affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl | ||
# Author: [email protected] | ||
# Contributor: [email protected] | ||
############################ | ||
|
||
""" | ||
|
@@ -21,7 +22,7 @@ def main(): | |
# Checking Comand line Args | ||
opts="" | ||
try: | ||
opts, args = getopt.getopt(sys.argv[1:], '', ['help','resetpassword=','delracnode=','addtns=', 'checkracinst=', 'checkgilocal=','checkdbrole=','checkracdb=','checkconnstr=','checkpdbconnstr=','setupdblsnr=','setuplocallsnr=']) | ||
opts, args = getopt.getopt(sys.argv[1:], '', ['help','resetpassword=','delracnode=','addtns=', 'checkracinst=', 'checkgilocal=','checkdbrole=','checkracdb=','checkracstatus','checkconnstr=','checkpdbconnstr=','setupdblsnr=','setuplocallsnr=','checkdbsvc=','modifydbsvc=','checkdbversion=','updatelsnrendp=','updateasmcount=','modifyscan=','updateasmdevices=']) | ||
except getopt.GetoptError: | ||
pass | ||
|
||
|
@@ -105,6 +106,16 @@ def main(): | |
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--checkracstatus'): | ||
file_name = oenv.logfile_name("CHECK_RAC_STATUS") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("CHECK_RAC_STATUS","true") | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--checkdbrole'): | ||
file_name = oenv.logfile_name("CHECK_DB_ROLE") | ||
oralogger.filename_ = file_name | ||
|
@@ -153,6 +164,76 @@ def main(): | |
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--checkdbsvc'): | ||
file_name = oenv.logfile_name("CHECK_DB_SVC") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("CHECK_DB_SVC",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--modifydbsvc'): | ||
file_name = oenv.logfile_name("MODIFY_DB_SVC") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("MODIFY_DB_SVC",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--checkdbversion'): | ||
file_name = oenv.logfile_name("CHECK_DB_VERSION") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("CHECK_DB_VERSION",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--modifyscan'): | ||
file_name = oenv.logfile_name("MODIFY_SCAN") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("MODIFY_SCAN",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--updateasmcount'): | ||
file_name = oenv.logfile_name("UPDATE_ASMCOUNT") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("UPDATE_ASMCOUNT",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--updateasmdevices'): | ||
file_name = oenv.logfile_name("UPDATE_ASMDEVICES") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("UPDATE_ASMDEVICES",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
elif opt in ('--updatelsnrendp'): | ||
file_name = oenv.logfile_name("UPDATE_LISTENERENDP") | ||
oralogger.filename_ = file_name | ||
ocommon.log_info_message("=======================================================================",file_name) | ||
oenv.add_custom_variable("UPDATE_LISTENERENDP",arg) | ||
oenv.add_custom_variable("CUSTOM_RUN_FLAG","true") | ||
if ocommon.check_key("OP_TYPE",oenv.get_env_dict()): | ||
oenv.update_key("OP_TYPE","miscops") | ||
else: | ||
oenv.add_custom_variable("OP_TYPE","miscops") | ||
else: | ||
pass | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
OracleDatabase/RAC/OracleRealApplicationClusters/common/scripts/oraasmca.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/python3 | ||
#!/usr/bin/python | ||
|
||
############################# | ||
# Copyright (c) 2024, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl | ||
# Copyright 2021, Oracle Corporation and/or affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl | ||
# Author: [email protected] | ||
############################ | ||
|
||
|
Oops, something went wrong.