Skip to content

Can not fetch all records from Oracle table #357

@86mm86

Description

@86mm86

Hi!

I am trying to retrieve 300k records from an Oracle table with 119 columns.
I can easily connect to the database but when I try to fetch the records I get only ca. half of them. Surprisingly:

  1. I do not receive any error message;
  2. upon re-executing the following Python script
import cx_Oracle
import pandas as pd

sql_query = 'select * from ...'

con = cx_Oracle.connect(user='...', password='...', dsn='...')

df = pd.read_sql(sql_query, con)

df.shape[0]

I do not get the same number of records (that is, I get different values for df.shape[0]).

Any clue on what the problem might be?

Here are some possibly useful info:

  1. What is your version of Python? Is it 32-bit or 64-bit?
    Python 3.7.0 64-bit

  2. What is your cx_Oracle version?
    7.2.2

  3. What error(s) you are seeing?
    None

  4. What OS (and version) is Python executing on?
    Windows 10

  5. What is your Oracle Database version?
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

  6. What Oracle environment variables did you set? How exactly did you set them?
    None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions