About 249,000 results
Open links in new tab
  1. How to connect Python to Oracle using oracledb - Stack Overflow

    Nov 1, 2023 · Check the examples and content in the python-oracledb user manual: Connecting to Oracle Database. In particular see JDBC and Oracle SQL Developer Connection Strings . – …

  2. Connecting to an Oracle database using SQLAlchemy

    I am able to successfully connect to a SQLite database and access a particular table using the set of commands below: from sqlalchemy import create_engine, MetaData, Table, and_ from …

  3. How can I access Oracle from Python? - Stack Overflow

    Aug 19, 2010 · Here's what worked for me. My Python and Oracle versions are slightly different from yours, but the same approach should apply. Just make sure the cx_Oracle binary …

  4. python - execute a sql script file from cx_oracle? - Stack Overflow

    Sep 23, 2011 · Is there a way to execute a sql script file using cx_oracle in python. I need to execute my create table scripts in sql files.

  5. Calling Oracle sqlldr using Python - Stack Overflow

    Feb 18, 2022 · Seems to be; I don't know Python, though, but - as far as Oracle is concerned - should be OK, e.g. sqlldr scott/tiger@orcl control=test.ctl data=test.txt which is what you have. …

  6. Passing a list of values to Oracle using Python - Stack Overflow

    May 26, 2018 · I'm trying to define a list of values (id numbers) and pass them to SQL that's querying Oracle tables. This code works as long as I only include one id. named_params = …

  7. How to run Oracle PL/SQL in python - Stack Overflow

    Nov 19, 2022 · Execute Python script in oracle SQL*PLUS. 19. Calling Python from Oracle. 0. Oracle database using Python. 2.

  8. Executing a SQL*Plus .sql file in Python for Oracle Database

    Jun 27, 2019 · Instead of executing a file, you could execute have the query defined in your code. import cx_Oracle dsn_tns = cx_Oracle.makedsn('Host Name', 'Port Number', …

  9. Python cx_Oracle bind variables - Stack Overflow

    Sep 30, 2015 · There are three different ways of binding variables with cx_Oracle as one can see here: 1) by passing a tuple to a SQL statement with numbered variables: sql = "select * from …

  10. Print a value in Python from oracle database - Stack Overflow

    Feb 15, 2020 · Replace cx_Oracle.Connection with cx_Oracle.connect Be careful about the indentation related to the print(row) Triple double-quotes, within the SELECT statement, are …