473,804 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to connect to the oracle database through .net application.

string conString = "user id=perksmgr; password=rgmskr ep; data
source=(DESCRIP TION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST
= 180.25.10.2)(PO RT = 1551)) ) (CONNECT_DATA = (SERVICE_NAME =
REKS816) )) " ;

con = new OracleConnectio n(conString);

Plese send me compleate details, how to connecto to the database.

ERROR IS LIKE THIS :- Invalid length for connection option 'data
source', maximum lenght is 128

after that i changed my connection string,
string is like this...

string conString = "user id=perksmgr; password=rgmskr ep; max pool
size=20; min pool size=5; Data Source=TEST=(DE SCRIPTION =
(ADDRESS =(PROTOCOL = TCP)(HOST = 180.25.10.2)(PO RT = 1551))
(CONNECT_DATA = (SID = TEST1)))(CONNEC T_TYPE = ( SERVER = DEDICATED)
));" ;

but again same error.

currently my databse version is 9.2 recently migrated. but im my local
system tns file is below.

Please send me answer as early as possible.

My tns file is -----

# D:\ORANT\NET80\ ADMIN\TNSNAMES. ORA Configuration
File:D:\orant\n et80\admin\tnsn ames.ora
# Generated by Oracle Net8 Assistant

#TEST1 =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PO RT = 1551))
# (CONNECT_DATA = (SID = TIPE1))
# )

#TEST2 =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.1)(PO RT = 1561))
# (CONNECT_DATA = (SID = TEST2))
# )

#SUNORA =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 128.130.11.10)( PORT = 1521))
# (CONNECT_DATA = (SID = tidc))
# )

#TII =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 128.127.30.9)(P ORT = 1521))
# (CONNECT_DATA = (SID = TII))
# )

#TICOS =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 128.127.30.11)( PORT = 1521))
# (CONNECT_DATA = (SID = cos))
# )

#TICI =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.1.150)(P ORT = 1525))
# (CONNECT_DATA = (SID = tici))
# )

#PROD =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PO RT = 1595))
# (CONNECT_DATA = (SID = OPS2))
# )

#TIDC =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 128.130.11.10)( PORT = 1521))
# (CONNECT_DATA = (SID = tidc))
# )

#PRODTEST =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PO RT = 1551))
# (CONNECT_DATA = (SID = TEST1))
# )

TEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PO RT = 1551))
(CONNECT_DATA = (SID = TEST1))
)

PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.21)(P ORT = 1597))
(CONNECT_DATA = (SID = OPS3))
)
Nov 16 '05 #1
1 6754
Hi Ramesh,

http://www.connectionstrings.com/

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2

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

Similar topics

1
4819
by: DAVID | last post by:
Hello, With regards to the Connect dialog on Oracle forms 6i via which we can connect to Oracle database, should we use the same functionality on forms run time again? I mean, I want to make a window with three screen items for username, password and service name. And on run time after connecting to the database I use this window to reconnect to an other database. So when I give the appropriate information, I will connect to the
4
5216
by: Ellen K. | last post by:
Hi all, Being that so far I didn't get an answer to my below problem on the Oracle newsgroup, I figured it couldn't hurt to try here. While at my current job I've been working with mostly SQL Server, now I need to connect to our Oracle Financials running on HP-UX. The Oracle DBA set me up as a user and installed the Oracle client on my box and I have the tnsnames file, but I still can't establish a connection to the database from my...
0
277
by: beck4353 | last post by:
Hi, I am using VS.NET Arch. and I am having problems connecting to ANY database. I am trying to a either a SqlConnection or OleDBConnection object to my project. When I try to define the connection string, it never succeeds. I try every different naming convention for my machine that I can in the server name field.
1
13997
by: rotarinn | last post by:
Hi, I am using VisualStudio.NET 2003 trying to connect to an Oracle Database (version 8.0.5). I have created the connection using "Microsoft OleDBProvider for Oracle" and when I click on Test connection, I get a message showing "Test connection succeeded". However, when I try to drag a table from the connection into a dataset, I get the following message: "The connection could not be opened due to the following error: Unable to load...
2
3751
by: Andrew | last post by:
Hi all! Sorry guys but I am totally ignorant on oracle matters. I need some guidance in how and what is needed to connect directly to an oracle 7.3.2.3.2 database on a OpenVMS operating system with a database application developed on a Windows XP PC using DB2K. Network/Database Server Details: Server: Compaq AlphaServer DS10 O/S: OpenVMS 7.1
0
4550
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager Express Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other IBM Tivoli CDs, WEBSPHERE EVERYPLACE MOBILE PORTAL v5.0 - ALTIUM , other IBM WebSphere Business CDs...
9
2424
by: D. Patrick | last post by:
I need to connect to an Oracle database. I've never done it before. I see that with framework 1.1 you had to download ODP.NET from Oracle's site in order for the framework classes to even work. I tried that quickly, but the file is 400 MB, and the the installation asks for all kinds of things in order to install. Now I'm very confused. a) Do you still need ODP.NET with framework 2.0? b) Do you need to download and install other...
0
5688
by: antonyliu2002 | last post by:
I searched this group with key word ORA-12145, and got 0 hits. I posted this question yesterday in the oracle group. I thought over this issue, and I think people here may have come across similar problems. I am working on a ASP.NET 2.0 web application for IIS 6.0, the backend database for my web application is Oracle 10.1.0.2.0. This database resides on Machine A.
0
2380
by: Mark D Powell | last post by:
I have a 64 bit SQL Server 2005 SP2 on a Windows 2003 x64. The developer said that he needed to use OLE to talk to Oracle so I went to Oracle and downloaded the 64 bit OraOLDDB driver as recommended in a MS note. I can connect to Oracle via tnsping and using SQLPlus but I cannot create a linked db successfully. The linked database errors off with >Cannot initialize data source for OLE provider "OraOLEDB.Oracle" for Lined Server "X"...
1
5548
by: srikantvm | last post by:
Hi All, I am using perl, v5.8.8 built for MSWin32-x86-multi-thread and i tried installing the DBD-Oracle module but unable to install. Please find below the steps followed by me: 1) I first tried installing Oracle.pm using the Activestate PPM but, i got an connection error to the activestate perl module repository. 2) Then i tried changing the http_proxy, it seemed to work fine. I was able to connect to the activestate perl module...
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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
7621
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
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
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
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.