on-internet
← Community

Oracle 12c - Connection Problem With Service Name

Stack Overflow ·

I have a simple docker container Oracle 12c. It has CDC and 1 PDB. I successfully connect with: $conexao = oci_connect( 'sip', 'sip_user', 'db/orclpdb1.localdomain', 'WE8ISO8859P1' ); but if I try to connect with: $conexao = oci_connect( 'sip', 'sip_user', 'db', 'WE8ISO8859P1' ); it gives me: Warning: oci_connect(): ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA How can I configure the database so it accepts the connection without /orclpdb1.localdomain? On php node I do not have a tnsnames.ora.

Comments

Sign in or sign up to comment and upvote.

No comments yet.