Re: [Tutor] unzip and connect to Oracle database

2018-12-07 Thread Alan Gauld via Tutor
On 07/12/2018 14:00, Asad wrote: > Hi All , > > I would like to unzip a file using python and then execute the sql > scripts in the file on Oracle database . Are you absolutely sure? That's a very dangerous thing to do from a security point of view. Potentially similar to using exec() o

[Tutor] unzip and connect to Oracle database

2018-12-07 Thread Asad
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() [] >>