= Integration in SQLcl====
Mehr zu SQLcl siehe [[dba:sqlcl_oracle_command_line_in_12c|SQLcl - Quo vad... ird der Login Prompt anders gesetzt
<code python>
dbUser = util.executeReturnOneCol('select user from dual');
command=" "
if dbUser == 'SCOTT':
command='set sqlprompt "@|gre... Source unter => https://github.com/oracle/oracle-db-tools/blob/master/sqlcl/examples/sqlprompt.js
Sc
tieg für Python 2 und 3, nicht nur für den Oracle DBA.
Leider gibt es so einige Unterschiede im Deta... de python>
import json
#String
hosts='{"srv01":"db","srv02":"web","srv03":"app"}'
# wandeln
liste=j
eList = glob.glob(path_name)
# remove Thumbs.db if exist from the list
# Internal Windows file no need to copy it
thumbsDBFile = "Thumbs.db"
for file in fileList:
if file.endswi
-py3.4.exe (md5) (md5 => 63137306c4fd292438a693dbce0a801d)
Auf die Bit Version achten! In meine... t ORACLE_HOME=/cygdrive/d/oracle/product/11.2.0.3/dbhome_1
python setup.py build
python setup.py ... nect('scott/tiger@10.10.10.1/GPI')
# Version der DB ausgeben
print "Oracle Database Version ::", connection.version
#Cursor auf die DB öffenen
cursor = connection.cursor()
#Cursor au
lite.org/ | SQLite Datenbank]], da die notwendige DB Software unter einer Standard Python 3 Umgebung s... on>
import os,sys,sqlite3
if os.path.exists("emp.db"):
print("EMP DB exits")
sys.exit(0)
connection=sqlite3.connect("emp.db")
cursor=connection.cursor()
create_dept="""CRE