Skip to content

How do I connect to Oracle? #130

Answered by abel-diaz
abel-diaz asked this question in Q&A
Oct 5, 2021 · 2 comments · 13 replies
Discussion options

You must be logged in to vote

Hi,
I tried (with actual creds)
cstr = f"oracle://{urllib.parse.quote_plus('myname[text]')}:{urllib.parse.quote_plus('zoo^1234')}@hostname.hostsite.com:1234/dbprod"

and the output for cstr is similar to below with example creds
'oracle://myname%5Btext%5D:zoo%5E1234@hostname.hostsite.com:1234/dbprod'

When i try
df = cx.read_sql(cstr,query)

I am met with
Error: ORA-01017: invalid username/password; logon denied

I am really hoping this gets connected. It takes me 1hr and 40min to pull 3M rows of SQL to DF using pd.read_sql.

Thanks for all the help. I have confirmed all my creds are correct through my companies DBA team and thru successful connections in TOAD, cx_oracle, and sqlAlchemy.

Thank…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@abel-diaz
Comment options

@wangxiaoying
Comment options

Comment options

You must be logged in to vote
11 replies
@abel-diaz
Comment options

@wangxiaoying
Comment options

@abel-diaz
Comment options

@wangxiaoying
Comment options

@abel-diaz
Comment options

Answer selected by wangxiaoying
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants