Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97246
| References | <5219a22f-c9e7-4206-8d5c-496678800fbe@googlegroups.com> |
|---|---|
| Date | 2015-09-30 11:34 -0400 |
| Subject | Re: Oracle connect |
| From | Larry Martell <larry.martell@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.269.1443627294.28679.python-list@python.org> (permalink) |
On Wed, Sep 30, 2015 at 11:25 AM, <pip7kids@gmail.com> wrote:
> Hi
> New to Python and just downloaded 3.5
> Trying to connect to Oracle but failing - eg
>
> import cx_oracle
> connstr = 'userid/password@@99.999.9.99:PORT/SID'
> connection = cx_oracle.connect(connstr)
> cursor = connection.cursor()
> cursor.execute("SELECT * FROM MYTABLE WHERE ROWNUM <=100")
> cursor.close()
> connection.close()
>
> Getting error No module named 'cx_oracle'
Did you install cx_oracle? If not, do this:
pip install cx_Oracle
Also, there is a cx_oracle mailing list.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Oracle connect pip7kids@gmail.com - 2015-09-30 08:25 -0700 Re: Oracle connect Larry Martell <larry.martell@gmail.com> - 2015-09-30 11:34 -0400
csiph-web