473,320 Members | 1,823 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,320 software developers and data experts.

ASP and oracle

16
Hello,

The question is:

How can I do connect from aspx.vb,web.config to oracle database?


Thanks,Sabina
Jan 10 '07 #1
7 1963
shweta123
692 Expert 512MB
Hi,

Add a key in web.config for the connectionstring.
Access the key in Aspx page using System.Web.Configuration.WebConfigurationManager.A ppSettings("")


Shweta
Jan 10 '07 #2
aspamit
38
Hi,

Add a key in web.config for the connectionstring.
Access the key in Aspx page using System.Web.Configuration.WebConfigurationManager.A ppSettings("")


Shweta

Will u pls explain it in detail?
Thanks
Jan 16 '07 #3
shweta123
692 Expert 512MB
Hi ,

In Web.config there is section called as Configuration .Within it there is <appsettings> section .If you dont find it then add it.Add a Key describing the connection.

<appSettings>
<add key="Connection" value="your connection string"/>
</appSettings>

Access these settings in WebForm using
System.Configuration.Appsettings("connection")

Hope that this helps
Shweta
Jan 16 '07 #4
Well I have a problem with the connection string it self now :)

I mean with SQL database or with oracle installed on my machine things went smoothly, but I can't find a way to connect to an Oracle database installed on an UNIX Server, so how can I do that?
Jan 28 '07 #5
shweta123
692 Expert 512MB
Hi,

conn="Provider=MSDAORA.1;PLSQLRSet=true;Password=; User ID=;Data Source=;Persist Security Info=True;PLSQLRSet=true;"


this works on Windows.Plz check if it works on Unix also

Shweta
Jan 29 '07 #6
Hi,

conn="Provider=MSDAORA.1;PLSQLRSet=true;Password=; User ID=;Data Source=;Persist Security Info=True;PLSQLRSet=true;"


this works on Windows.Plz check if it works on Unix also

Shweta
Well thanks, but it did not work :(
This connection string worked with me too when the database was installed locally, but when it's on other server I should define a TNS name (which I don't know how to do it :) and afterwards.... well i don't know if it will work after that because i did not reach to that point yet :)
Jan 30 '07 #7
Guys I tried this connection string and worked

"Provider=MSDAORA.1;Data Source="TNS Name";User ID=id;Password=Password;Unicode=True"

But i had to install a client oracle at my machine.
Feb 22 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
13
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: sathyguy | last post by:
when i type the below in my RHEL AS 4's Firefox 1.5 http://appsworld.ncc.com:7777/forms/...&form=test.fmx iam getting the below error... The requested URL /forms/frmservlet was not found on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.