Pour exécuter la commande « emcli add_target », il est nécessaire de se connecter :
La définition des propriétés est réalisée via des variables :
En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies. Ces derniers assurent le bon fonctionnement de nos services. En savoir plus.
Pour exécuter la commande « emcli add_target », il est nécessaire de se connecter :
La définition des propriétés est réalisée via des variables :
setproperty.py :
# # Sample EMCLI Python script file for mass update a property value # # check number of arguments if len(sys.argv) <> 3: print 'Usage: emcli @setproperty.py hostname "propertyname" propertyvalue' exit() # assign the arguments to variables (for readability) hostname = sys.argv[0] propertyname = sys.argv[1] propertyvalue = sys.argv[2] # login to the OMS login( username="SYSMAN", password="welcome1" ) # find the targets running on a given host targets = list( sql="select target_name || '@' || target_type as target from MGMT$TARGET where host_name = '" + hostname + "' and target_name <> host_name" ) # set the target property for each target for t in targets.out()['data']: print "Setting property " + propertyname + " for " + t['TARGET'].split(':')[0] set_target_property_value( property_records= t['TARGET'] + "@" + propertyname + "@" + propertyvalue, subseparator="property_records=@" ) |
http://www.peasland.net/2016/02/18/oracle-12c-identified-by-values/
https://www.youtube.com/watch?v=r37B7_bpMRk
Doc ID 1917895.1 Changing the Database Oracle Home File Path Value in Enterprise Manager 12c Cloud Control using emcli
Script sqlhc.txt
permet de tuner un sqlid . On obtient plusieurs fichiers au format html en sortie et des points sql.
Autres scripts de tuning :
http://www.br8dba.com/upgrade-database-to-12-2-with-physical-standby/#7
Wow c'est chaud, mais c'est super. On peut maintenant résoudre un gap avec la méthode de LAMI ... Son blog : http://www.lami-dba.com/2018/02/dataguard-resolve-gap-revover-from-service.html Merci Lami !!!