[Tutor] unzip and connect to Oracle database
Asad
asad.hasan2004 at gmail.com
Fri Dec 7 09:00:57 EST 2018
Hi All ,
I would like to unzip a file using python and then execute the sql
scripts in the file on Oracle database .
>>> from zipfile import ZipFile
>>> file_name = 'file.zip'
>>> z = ZipFile(file_name)
>>> print(z.namelist())
[]
>>> z = ZipFile('file.zip')
>>> print z.namelist()
[]
>>> print z
<zipfile.ZipFile object at 0xf9220fd0>
>>> z.extractall()
Doesnot unzip the zip file
I unable to unzip the file what I am doing wrong ?
Also share some code or documentation to connect to Oracle DB and execute
sql scripts.
Thanks,
--
Asad Hasan
+91 9582111698
More information about the Tutor
mailing list