Hi. I am using Cx_Oracle inteface for conectivity to Oracle db server.
This is my code.
connection = cx_Oracle.conne ct("sys/demo@Sample.Nat as1 as sysdba")
cursor = connection.curs or()
cursor.arraysiz e = 50
cursor.execute( """select col1, col2 from tab1""")
for column_1, column_2 in cursor.fetchall ():
print "Values:", column_1, column_2
& When i am running this I am getting this error: -
cx_Oracle.Datab aseError: ORA-12154: TNS:could not resolve service name
Can you please tell me what to with this??
Thanks & Regards,
Piyush.
This is my code.
connection = cx_Oracle.conne ct("sys/demo@Sample.Nat as1 as sysdba")
cursor = connection.curs or()
cursor.arraysiz e = 50
cursor.execute( """select col1, col2 from tab1""")
for column_1, column_2 in cursor.fetchall ():
print "Values:", column_1, column_2
& When i am running this I am getting this error: -
cx_Oracle.Datab aseError: ORA-12154: TNS:could not resolve service name
Can you please tell me what to with this??
Thanks & Regards,
Piyush.
Comment