Oracle database connection error

9 views
Skip to first unread message

SHADOW GAMING

unread,
Apr 27, 2022, 4:27:02 PM4/27/22
to spyder
dear sir

i am install cx_Oracle through anaconda command prompt.
after when i connect with databasr using spyder it gives error

my code is

import cx_Oracle
try:
con = cx_Oracle.connect('python/pyt...@127.0.0.1/xe')
query = ("create database demo_data;")
cursor = con.cursor()
cursor.execute(query)
except cx_Oracle.DatabaseError as e:
    print("Error is: ",e)

finally:
    if cursor:
        cursor.close()
    if con:
        con.close()    

please help me
Reply all
Reply to author
Forward
0 new messages