how can i see a list of tables in an oracle database in python? Right now I am just having the connection:
import cx_Oracle
db_connection_string = 'username/passwort1@server:port/servername'
con = cx_Oracle.connect(db_connection_string)
print("Database version:", con.version)
cur.execute("SELECT owner, table_name FROM dba_tables")
con.close()
which prints out the version: Database version: 12.2.0.1.0
But how can I see a list of all tables which are available in that database?
Somethinglike:
Salesdata,
Buyingdata
How can I see a list of all the tables?