r/SQL • u/Finanz_minister • Sep 24 '26
Oracle I’m getting ORA-12261
I’m trying to create a new connection but it won’t let me. Im even testing my other connection and it gives me the same message even thought it’s fully operational, anybody knows why?
0
Upvotes
4
u/sacninja Sep 24 '26
Host name and also need a service name
2
u/Noone90909090 Sep 24 '26
can you ping your hostname? mayhaps there's a dns problem. or maybe use the ip address as hostname, rather than server name?
2
u/lolcrunchy Sep 24 '26
"Syntax error in Easy Connect connection string"
This means it is failing to parse the connection instructions you have provided, and has not yet attempted to connect.
2
u/Traditional-Unit-274 Sep 24 '26
your host name should be an address
1
u/Legitimate-Pin-8619 Sep 24 '26
ORA-12261 is almost always “client can’t resolve / parse the connect identifier,” not “Oracle rejected your password.”
Checklist that usually finds it:
host:port/servicevshost:port:SID). Mixing service name and SID syntax is a common 12261.ping/nslookupthe hostname from the same machine as the SQL tool.lsnrctl statusand confirm the SERVICE_NAME matches what you typed (case / underscores matter).tnsnames.ora/sqlnet.orapath, Oracle Instant Client version, or the listener config — not your SELECT.Paste (redact secrets): full connection string shape, client tool + Instant Client version, and whether you’re on VPN. The screenshot alone rarely has enough to distinguish DNS vs bad Easy Connect vs listener.
-2
u/spez_eats_nazi_ass Sep 24 '26
Talk to one of the 200k support guys they let go since March. Fck Oracle.
-4
u/mtutty Sep 24 '26
Switch to Postgres, you'll never see that error again!!