In case my Oracle DB goes down. I would like to redirect my page to a static version of the same page. In order to do this I'm trying to capture the oracle error I get when the Database server is offline.
Currently when I try to access my page I get the following error when the Database server is offline:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Oracle][ODBC][Ora]ORA-12535: TNS
peration timed out
/system/DBAccess.asp, line 22
Line 22 on DBAcess.asp contains my connection string to my database. How can I capture this error and redirect my page if the above error is what caused the page to error out? I appreciate any suggestions!
Currently when I try to access my page I get the following error when the Database server is offline:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Oracle][ODBC][Ora]ORA-12535: TNS
/system/DBAccess.asp, line 22
Line 22 on DBAcess.asp contains my connection string to my database. How can I capture this error and redirect my page if the above error is what caused the page to error out? I appreciate any suggestions!