473,769 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'user id' is an invalid connection string attribute error on Oracle....

Hi All,

I have a client connection problem with Oracle.
The exe which i did with C# (vs.net 2005) and Oracle XE , works well on my
developer machine but i am getting a connection string error on the client
side. The error comes from System.Exceptio n class not from OracleException .
The properties of the Oracle.DataAcce ss reference are ;
Description: Oracle.DataAcce ss.dll
Runtime Version:v1.0.37 05
Version: 10.2.0.100
Path: C:\oraclexe\app \oracle\product \10.2.0\server\ bin\Oracle.Data Access.dll

------------------------------------------------
The sample code is:

using System.Data;
using Oracle.DataAcce ss.Client;
using Oracle.DataAcce ss.Types;

private void button1_Click(o bject sender, EventArgs e)
{
OracleConnectio n cnn = new OracleConnectio n();
OracleCommand cmm = new OracleCommand() ;
try
{
cnn.ConnectionS tring = "USER ID=" + textEdit1.Text + ";PASSWORD= " +
textEdit2.Text +
";DATA SOURCE=" + textEdit3.Text + ";";
DataSet ds = new DataSet();
cmm.Connection = cnn;
cmm.Connection. Open();
cmm.CommandType = CommandType.Tex t;
cmm.CommandText = "SELECT * FROM FORMS";
OracleDataAdapt er ad = new OracleDataAdapt er(cmm);
ad.Fill(ds);
gridControl1.Da taSource = ds.Tables[0];
cmm.Connection. Close();

}
catch (OracleExceptio n oexx)
{
MessageBox.Show (oexx.Message," From OracleException ");
cmm.Connection. Close();
}
catch (Exception exx)
{
MessageBox.Show (exx.Message + " --" + exx.Source, "From Exception");
cmm.Connection. Close();
}
}
----------------------------------
And the error message is: from (catch (Exception exx) )
'user id' is an invalid connection string attribute --Oracle.DataAcce ss
Any idea ?
Thanks in advance for your help.

Adam
Jan 5 '08 #1
0 2615

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11608
by: GitarJake | last post by:
Hello all, I am trying to test an ODBC connection to an Oracle dbf using the ODBC Data Source Administrator. It's not working and I suspect I haven't configured Oracle correctly. Below is the error message I am getting: Invalid attribute in connection string: Description.ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
3
3210
by: ghosh.sujay | last post by:
HI , My application runs fine when I am using SQL Server 2000 as its db, but it gives a message "Invalid attribute/identifier" error when the db is Oracle . Any help in this matter would be appreciated . Thanks ,
9
17032
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to access any of the Oracle tables on another machine but now I am having problems. Unfortunately, I don't remember the correct syntax for the ODBC connect string and I am hoping that is my whole problem. I am trying to connect to an Oracle 9...
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same password (both on IIS and SQL Machine) 3) SQL Server security is Sql Server and Windows
6
17724
by: Bala Nagarajan | last post by:
Hello, I am using Oracle 9i in my application and facing a problem with the connection string. In the datasource attribute of the connection string i had to specify an entry in "tnsnames.ora" file for it to work correctly. If i copy and paste the entry in the "tnsname.ora" file it complains the connection string is too long. I want to avoid using the "tnsnames.ora" file since it exposes the server (and needles to say the configuaration!)...
4
4860
by: Sylvan | last post by:
I am new with this personalization stuff. Everything was working fine, however, now I always get the Login failed for user ''. The user is not associated with a trusted SQL Server connection. error message. This is for anonymous personalization, very simple. I am just trying to retrieve a string from Profile. This is what I have in my web.config file: <system.web>
3
2218
by: Anders Jansson | last post by:
Hi all. I have 2 problems when I try to open and convert an ASP.NET VS 2003 web-applikation in VS 2005. In VS 2003 I have no problems at all! First: One subfolder with will not be converted! The converted web project are missing this subfolder completely. 39 errors are displayed in the Conversion Report saying: ERROR: Unable to get local copy of file <file>. Why? All files are there and readable!!
1
1815
by: noor | last post by:
Hi, I'm trying to connect to my Oracle 10g Database i m facing the problem of connection string, following code is that i use, please tell me how to use the connection string for accessing the oracle database from a remote location and from local machine, at both places i m getting the problem. tell me how to set the server name, data sourse of a remote server to acces tha data from a client on a diffrent machine. I used this code: ...
7
1868
by: chance | last post by:
Getting and error on this first line of code: //inspector phone theField = reader.GetString(20); builder.MoveToBookmark("inspector_phone"); builder.Write(theField); the first line is crashing my program. it complains about an invalid cast. i don't understand why though. I tried putting a IsDBNull around
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7408
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.