Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97246

Re: Oracle connect

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <larry.martell@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'failing': 0.05; 'cursor': 0.09; 'python': 0.10; 'wed,': 0.15; "skip:' 30": 0.15; 'wrote:': 0.16; '2015': 0.20; 'to:name:python-list@python.org': 0.20; 'not,': 0.22; 'sep': 0.22; 'trying': 0.22; 'am,': 0.23; 'this:': 0.23; 'import': 0.24; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'connection': 0.30; 'getting': 0.33; 'oracle': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'mailing': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; '30,': 0.63; 'pip': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qLb34di0/P7YBGS0AoBbtw9nCyEO6Ya2Kw9Si2BLuNE=; b=D7W3vKGkF+nnUlGxSqtWdYGBUnk5kcoB18gRlNPSbEBrOf4TXeZBzfw033HQ1mm4DQ AJ0dgicgEwdJM5Esl9Rim90exmTVXXX3SEa8Yg4lTg10tXppvgYHyyHBQPQLLzd9v5RM 5+huk0RQ9PfLFqPr8bvLjHAHxPaYujFZ/9n2sBGykvAVKH0qlNskN2Z4C4hSMlz7G4d/ 2NLwKecuZvhWFrBa6k5KJVHV6xZOUIVp+qaaysq2eBKNiB3zTNvx7mvq/1EzDGJUgNAO cpCHzWUIi1yi7IbTNZHKYAq4NsCKsWOj3zc5hyemKvjeqTHEyARaqOYfxJDnqkV4h3qy bQYw==
MIME-Version 1.0
X-Received by 10.107.18.231 with SMTP id 100mr5450754ios.15.1443627290777; Wed, 30 Sep 2015 08:34:50 -0700 (PDT)
In-Reply-To <5219a22f-c9e7-4206-8d5c-496678800fbe@googlegroups.com>
References <5219a22f-c9e7-4206-8d5c-496678800fbe@googlegroups.com>
Date Wed, 30 Sep 2015 11:34:50 -0400
Subject Re: Oracle connect
From Larry Martell <larry.martell@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.269.1443627294.28679.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1443627294 news.xs4all.nl 23814 [2001:888:2000:d::a6]:57329
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97246

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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