python-cx_Oracle icon indicating copy to clipboard operation
python-cx_Oracle copied to clipboard

Error reflecting Oracle table but not database

Open charlesNumerator opened this issue 6 years ago • 8 comments

platform.platform: Linux-4.19.76-linuxkit-x86_64-with-debian-9.13
sys.maxsize > 2**32: True
platform.python_version: 3.7.8
cx_Oracle.version: 8.0.0
cx_Oracle.clientversion: (19, 8, 0, 0, 0)
  1. Is it an error or a hang or a crash?

Error might be a hang or a crash, not sure.

  1. What error(s) or behavior you are seeing?

https://gist.github.com/charlesNumerator/aa6a1cc88503789572aab1c4b2ae386a

  1. Include a runnable Python script that shows the problem.

https://gist.github.com/charlesNumerator/f7219ab754ca1c6983fdff47e530ee61

  1. sql for the table in question

table_ddl.txt

charlesNumerator avatar Sep 23 '20 20:09 charlesNumerator

The error suggests that it is a crash and, more importantly, that the Oracle Client library crashed for some reason. You'll need to contact Oracle Support for this one, I think! @cjbj may have other suggestions.

anthony-tuininga avatar Sep 23 '20 21:09 anthony-tuininga

thanks @anthony-tuininga

charlesNumerator avatar Sep 24 '20 13:09 charlesNumerator

Check for Oracle client logs. If you're using Instant Client, I often run something like rm -rf $HOME/instantclient/log/diag/clients && mkdir -p $HOME/instantclient/log/diag/clients

cjbj avatar Sep 24 '20 22:09 cjbj

@cjbj it's kind of a partner's database and it's difficult for us to get them to get in there but i'm going to try. any idea why it would be this one table on its own its crashing when reflecting but we have no problem reflecting the entire database and pulling the metadata we need that way?

charlesNumerator avatar Sep 24 '20 23:09 charlesNumerator

@charlesNumerator how did you go with this?

cjbj avatar Nov 19 '20 06:11 cjbj

@cjbj thanks for following up. unfortunately i wasn't able to get in there and see the logs. we are reflecting the entire db for the one or two tables that are giving us issues.

charlesNumerator avatar Nov 19 '20 15:11 charlesNumerator

@charlesNumerator an annoying but practical workaround. I will close this issue since it's been open for a while. Ping us as needed.

cjbj avatar Nov 20 '20 02:11 cjbj

ok thanks for the help

charlesNumerator avatar Nov 20 '20 15:11 charlesNumerator