473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

string conString = "user id=perksmgr; password=rgmskrep; data
source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST
= 180.25.10.2)(PORT = 1551)) ) (CONNECT_DATA = (SERVICE_NAME =
REKS816) )) " ;

con = new OracleConnection(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=rgmskrep; max pool
size=20; min pool size=5; Data Source=TEST=(DESCRIPTION =
(ADDRESS =(PROTOCOL = TCP)(HOST = 180.25.10.2)(PORT = 1551))
(CONNECT_DATA = (SID = TEST1)))(CONNECT_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\net80\admin\tnsnames.ora
# Generated by Oracle Net8 Assistant

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

#TEST2 =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.1)(PORT = 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)(PORT = 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)(PORT = 1525))
# (CONNECT_DATA = (SID = tici))
# )

#PROD =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.2)(PORT = 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)(PORT = 1551))
# (CONNECT_DATA = (SID = TEST1))
# )

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

PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 180.25.10.21)(PORT = 1597))
(CONNECT_DATA = (SID = OPS3))
)
Nov 16 '05 #1
1 6726
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
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...
4
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...
0
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...
1
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...
2
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...
0
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...
9
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....
0
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...
0
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...
1
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
0
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...

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.