cx_Oracle
is a third-party Python library that facilitates Oracle-to-Python database communication. A cursor is a control structure that enables traversal over the records in a database. This is Python's primary means of accessing database table data. The setup is:
- Create a connection object
- Define a cursor and call the
cursor()
method on the connection object - Construct a query string for the data of interest
- Pass the query string to the cursor's
execute
method