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/[email protected]/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

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/6a372565-5d27-42b2-b112-57821bdf338dn%40googlegroups.com.

Reply via email to