Sqlmap: DPI-1047: Oracle Client library cannot be loaded: libclntsh.so

Created on 2 Sep 2017  路  10Comments  路  Source: sqlmapproject/sqlmap

What's the problem (or question)?

Error when running sqlmap

Do you have an idea for a solution?

no

How can we reproduce the issue?

Just running sqlmap, version 1.1.8-1 on blackarch (arch linux)

What are the running context details?

  • Installed using archlinux pacman which was run through blackarch script installation: - https://www.blackarch.org/downloads.html#install-repo
  • Arch linux
    [fabio@fabio-pc ~]$ sqlmap
    Traceback (most recent call last):
    File "sqlmap.py", line 39, in
    from lib.controller.controller import start
    File "/opt/sqlmap/lib/controller/controller.py", line 12, in
    from lib.controller.action import action
    File "/opt/sqlmap/lib/controller/action.py", line 8, in
    from lib.controller.handler import setHandler
    File "/opt/sqlmap/lib/controller/handler.py", line 32, in
    from plugins.dbms.oracle.connector import Connector as OracleConn
    File "/opt/sqlmap/plugins/dbms/oracle/connector.py", line 9, in
    import cx_Oracle
    cx_Oracle.DatabaseError: DPI-1047: Oracle Client library cannot be loaded: libclntsh.so: cannot open shared object file: No such file or directory. See https://oracle.github.io/odpi/doc/installation.html for help

That's strange because never before I had to have oracle installed in order to run sqlmap

support

Most helpful comment

cx_Oracle installation instructions can be found at https://cx-oracle.readthedocs.io/en/latest/installation.html

All 10 comments

@FabioNevesRezende cx_Oracle seems to be installed, though, in non-valid state. Nevertheless, find sqlmap "patched" with the latest revision

I have the same issue

@ChrisFernandez with latest HEAD revision. I don't think so

I _was_ having this issue until I realized I had previously installed it by hand instead of using the blackarch package. Once I removed the manually installed version and switched to the black arch version things were fine.

Oracle Client library should be installed (as per message) manually

Also, as cx_Oracle installation is messed up altogether, most probably you'll need to install: sudo apt-get install libaio1 libaio-dev

libaio1 and libaio-dev is not enough - needs libclntsh.so at least more..

cx_Oracle installation instructions can be found at https://cx-oracle.readthedocs.io/en/latest/installation.html

This is still an issue and is not fixed.
pip install cx_oracle
when this doesn't do anything

That means that the package is broken IMO and the readTheDocs is not covering the solution at this time. Can we please continue to investigate?

@gnubyte can you please describe what is going on in your place?

Was this page helpful?
0 / 5 - 0 ratings