Python and Oracle Views -
can give me brief information how "connect" oracle view python?
i looked around couldn't anything. i'm new oracle db. not use connect python , info. have view connect to.
at first thought can use view below, connect:
db = sqlalchemy.create_engine('oracle://user:pass@server:1521/view_name')
then used this:
cx_oracle.connect(user='user', password='pass', dsn=cx_oracle.makedsn('server',1521,'view_name'))
then realized view cannot used db name, because "tool" view existing table(s).
how can accomplish this?
a view in rdbms oracle "virtual" table. when querying it, query table. connect database/schema containing view, , select usual. view doesn't feature in connection details @ all, in query.
Comments
Post a Comment