bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
102 stars 41 forks source link

Oracle DB in a Protection Group #104

Closed amhaats1 closed 1 year ago

amhaats1 commented 1 year ago

Sorry I should of asked for this in a previous issue I raised.

Is it possible to have a script to unprotect one/multiple oracle databases in a Protection Group also a script to protect one/multiple oracle databases in a Protection Group?

bseltz-cohesity commented 1 year ago

I have replaced the previous unprotectOracleServer script with this one, which can unprotect whole servers or individual databases: https://github.com/bseltz-cohesity/scripts/tree/master/oracle/powershell/unprotectOracle

bseltz-cohesity commented 1 year ago

I have also updated the protectOracle script to support protecting one or more (or all) DBs to a protection group: https://github.com/bseltz-cohesity/scripts/tree/master/oracle/powershell/protectOracle

amhaats1 commented 1 year ago

This is working great, Thank you so much. Would you be able to do a Python version of the unprotectOracle? You already have a protectOracle out in https://github.com/bseltz-cohesity/scripts/tree/master/oracle/python that I could utilize. I forget our database administrators are more familiar with Python scripts since our environment has Oracle on linux servers.

bseltz-cohesity commented 1 year ago

Yes I will work on the python versions next.

bseltz-cohesity commented 1 year ago

I have published unprotectOracle.py https://github.com/bseltz-cohesity/scripts/tree/master/oracle/python/unprotectOracle please let me know how it works for you