Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Unable to connect through application

Re: Unable to connect through application

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 27 Feb 2006 04:28:55 -0800
Message-ID: <1141043335.656866.244650@i39g2000cwa.googlegroups.com>


Jeevan wrote:
> Hi all,
>
> Thanks for your replies. I have checked everything, but still unable to
> connect. The situation is:
>
> When I try
> sqlplusw dgfc_owner/dgDTpswd_at_dev1 from command prompt, it connects.
> But when I try to use the following code to execute it gives the error
> "Error while trying to retrieve text for error ORA-12154"
>
> The code:
>
> string constr = @"Data Source='dev1';User
> ID='dgfc_owner';Password='dgDTpswd';Connection Lifetime='1';";
> try
> {
> mConn = new OracleConnection(constr);
>
> mConn.Open();
> }
> catch(Exception ex)
> {
> Response.Write(ex.Message);
> }
>
> Thanks and regards,
> Jeevan

Have you tried your connection string without using single quotes around the values? e.g. dev1 instead of 'dev1'.

Regards
/Rauf Received on Mon Feb 27 2006 - 06:28:55 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US