473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS losing connection to Oracle

Following is a logon.asp script. This script works when
IIS is reset each day. The epapi object is a vendor api
program I do not have the code for! The logon process
involves three servers: the IIS server, a Novell Server
with executable programs on it including the API program,
and an Oracle server. The logon sequence is to use the
IIS anonymous user account to access the Novell Server
which in turn instructs the API programs as to the Oracle
instance to use. The Oracle tables contain user names,
applications, etc. The Novell Server only contains the
executable programs.

Each night both the Novell server and the Oracle server
are taken off-line and backed up.

Whereas I can login during the day, when the next day
arrives I fail the login and get messages similar
to "Can't connect to Oracle".

Is there a way to have IIS reestablish the connections it
is losing over night?

-------------part of ASP script ---------------------

<%@ Language=VBScri pt %>
<!--#include file="lib/redirect.asp"-->
<%

nResult = epapi.Logon(Req uest.Form("cUse rname"),
Request.Form("c Password"))

if nResult > 0 then
Session.Content s("loggedin") = true
Session.Content s("username") = Request.Form("c Username")
HTTPRedirect("g etapp.asp")
else
Select Case nResult
Case -1
strError = "Invalid username or password"
Case -2
strError = "Missing license for Internet
Retrieval Module"
Case -3
strError = "User limit exceeded"
Case Else
strError = "Unknown error (" & CStr(nResult)
& ")"
End Select
%>
-------------------------------------------------------
Paul
Jul 19 '05 #1
1 3699
On Thu, 18 Dec 2003 16:59:45 -0800, "pl****@ima ge-access.com" <an*******@disc ussions.microso ft.com> wrote:
Following is a logon.asp script. This script works when
IIS is reset each day. The epapi object is a vendor api
program I do not have the code for! The logon process
involves three servers: the IIS server, a Novell Server
with executable programs on it including the API program,
and an Oracle server. The logon sequence is to use the
IIS anonymous user account to access the Novell Server
which in turn instructs the API programs as to the Oracle
instance to use. The Oracle tables contain user names,
applications , etc. The Novell Server only contains the
executable programs.

Each night both the Novell server and the Oracle server
are taken off-line and backed up.

Whereas I can login during the day, when the next day
arrives I fail the login and get messages similar
to "Can't connect to Oracle".

Is there a way to have IIS reestablish the connections it
is losing over night?

-------------part of ASP script ---------------------

<%@ Language=VBScri pt %>
<!--#include file="lib/redirect.asp"-->
<%

nResult = epapi.Logon(Req uest.Form("cUse rname"),
Request.Form(" cPassword"))

if nResult > 0 then
Session.Content s("loggedin") = true
Session.Content s("username") = Request.Form("c Username")
HTTPRedirect("g etapp.asp")
else
Select Case nResult
Case -1
strError = "Invalid username or password"
Case -2
strError = "Missing license for Internet
Retrieval Module"
Case -3
strError = "User limit exceeded"
Case Else
strError = "Unknown error (" & CStr(nResult)
& ")"
End Select
%>
-------------------------------------------------------
Paul


The code is insufficient to identify the Oracle part of the problem..What exact error do you get ( 'similar to' is not
precise enough) - provide both text and number if possible.

It appears that when Oracle is shutdown for backup ( which is not necessary, it can be backed up while running) - it
causes the IIS connection to fail ( for good reason) and apparently is not allowing IIS to reconnect when its logon
script is run each day..Does it run before Oracle has fully restarted? - Is the Connection tested first ?


Jul 19 '05 #2

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

Similar topics

3
14523
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there for slowness. Once I'm connected the queries work pretty much instantanously but to connect using SQLPLUS, Toad, ODBC, OLEDB all take about 10 secs. I connect using OLEDB from Visual Basic development environment & after the 1st connection...
0
4748
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour, but once per week, the oracle server is brought down for backup. At that time, I get an error that looks like I have the wrong credentials for the database. For every subsequent attempt to run the hourly process, I am getting a broken pipe error,...
5
102556
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! - DataDirect 5.0 Oracle Wire protocol (3rd party ODBC driver): connection works when I hit the driver's "test connection"
1
4719
by: Cliff Cooley | last post by:
Can anybody suggest what may be causing the following problem ? I have an ASP script that opens a connection to an Oracle database using a DSN connection string, such as : Set dbConn= Server.CreateObject("ADODB.Connection") dbConn.Open "DSN=somedsn; UID=someuser; PWD=somepassword" With the ASP running on an IIS 5 server, using the Oracle 8 driver to connect to an Oracle 9 database, there are no connection problems, and
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...
2
10269
by: Ben | last post by:
Hi, I have a problem connecting to Oracle using and ODBC connection in a ASP.Net web page. The TNS Names works fine because when I create a DSN it works, and it works in SQL Plus. Here are the error I get depending on the connection string: Using the right server (Oracle 9i), and the Native Oracle Driver
8
9637
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query work from
1
2466
by: Subangini | last post by:
"Hi, I am trying to migration Oracle database to mysql database using visual coding. I am having problem in the Do until loop, can u tell me what is the mistake. Oracle Database - Oracle rdb with VMS operating system Mysql- version 5 Visual basic - version 6.0 Since my host machine Oracle is an older version I have problem, do
0
2614
by: | last post by:
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.Exception class not from OracleException. The properties of the Oracle.DataAccess reference are ; Description: Oracle.DataAccess.dll
0
9398
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
10007
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
9951
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
8831
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...
0
6649
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
5275
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...
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
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.