[Wapt] Oracle enjoy

Fonteneau Simon sfonteneau at stemarie-aizenay.fr
Mon Sep 7 14:01:34 CEST 2015


Salut

Pour inclure des variables dans d'autre variable je fait comme ceci :

user = 'Simon'
timevar = time.strftime('%d/%m/%y %H:%M:%S',time.localtime())
messageprint = 'Bonjour %s Il est actuellement %s ' % (user,timevar)


Simon





Le 04/09/2015 13:11, Didier Paulin a écrit :
> Bonjour, nouveau défis : Packager une application métier nécessitant 
> oracle 10g.
>
> J'ai réussi avec des .bat à exécuter en silencieux l'install de oracle 
> et des patch. Pour rendre plus propre mon paquet (qui exécute le bat 
> dans la version actuelle) , je voudrai retranscrire ce code en python 
> mais je me heurte au variable..
>
> /@ECHO OFF/
> /ECHO Oracle 10g R2 Client../
> /SET OPTIONS=/
> /SET OPTIONS=ORACLE_HOME=C:\oracle\ora1020/
> /SET OPTIONS=%OPTIONS% ORACLE_HOME_NAME=ora1020/
> /SET OPTIONS=%OPTIONS% TOPLEVEL_COMPONENT={"oracle.client","10.2.0.3.0"}/
> /SET OPTIONS=%OPTIONS% SHOW_SPLASH_SCREEN=false/
> /SET OPTIONS=%OPTIONS% SHOW_WELCOME_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_CUSTOM_TREE_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_SUMMARY_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_INSTALL_PROGRESS_PAGE=true/
> /SET OPTIONS=%OPTIONS% SHOW_CONFIG_TOOL_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_XML_PREREQ_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_ROOTSH_CONFIRMATION=false/
> /SET OPTIONS=%OPTIONS% SHOW_END_SESSION_PAGE=false/
> /SET OPTIONS=%OPTIONS% SHOW_EXIT_CONFIRMATION=false/
> /SET OPTIONS=%OPTIONS% NEXT_SESSION=false/
> /SET OPTIONS=%OPTIONS% NEXT_SESSION_ON_FAIL=false/
> /SET OPTIONS=%OPTIONS% COMPONENT_LANGUAGES={"en"}/
> /SET OPTIONS=%OPTIONS% INSTALL_TYPE="Custom"/
> /SET OPTIONS=%OPTIONS% 
> oracle.client:DEPENDENCY_LIST={"oracle.winprod:10.2.0.3.0","oracle.sqlplus:10.2.0.3.0","oracle.network.client:10.2.0.3.0"}/
> /SET OPTIONS=%OPTIONS% 
> oracle.winprod:DEPENDENCY_LIST={"oracle.odbc:10.2.0.3.0","oracle.ntoledb:10.2.0.3.0","oracle.ntoledb.odp_net:10.2.0.3.0"}/
> /SET OPTIONS=%OPTIONS% oracle.has.common:OPTIONAL_CONFIG_TOOLS="{}"/
> /SET OPTIONS=%OPTIONS% oracle.network.client:OPTIONAL_CONFIG_TOOLS="{}"/
> /START /WAIT %client%\install\oui.exe -silent %OPTIONS% -nowelcome 
> -noconfig -waitforcompletion -force -nowait -noconsole/
>
>
> Les roi du Python, pouvez vous m'expliquer comment en faire un joli 
> bout de code avec les variables.
>
> Merci d'avance.
>
>
>
>
>
>
>
> Cordialement.
>
>
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.tranquil.it
> http://lists.tranquil.it/listinfo/wapt

-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20150907/fac35f70/attachment-0001.html>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: non disponible
Type: image/jpeg
Taille: 73779 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20150907/fac35f70/attachment-0001.jpe>


More information about the WAPT mailing list