473,320 Members | 2,080 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.

Oracle Adventures

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. Using the exact same code (copy
and paste) into a Web app I get the following error "Error while trying to
retrieve text for error ORA-01019". Security I thought, so I use
Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
instruction at 'whatever' referenced memory at 'whatever'. The memory could
not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.
Nov 19 '05 #1
13 7433
as a start - throw away Oracle and get a database that alllows
interconnectivity............oracles awful for it...

Failing that (not always an option sadly) - if it works from your desktop,
try running the application as the same named account in your applications
web.config and see what happens

<identity impersonate="true"
userName="domain\user"
password="password" />

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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. Using the exact same code
(copy and paste) into a Web app I get the following error "Error while
trying to retrieve text for error ORA-01019". Security I thought, so I use
Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
instruction at 'whatever' referenced memory at 'whatever'. The memory
could not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.

Nov 19 '05 #2
Hi John, Oracle is not my choice, I don't call it Oracle around here, but it
is not for publication.
Thanks for your answer, but if you read towards the end of my post, see
that's what I did (impersonation) and that it then crashes the
aspnet_wp.exe.
So I was hoping ..., actually I don't know what I was hoping for, but
thanks.

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uA*************@TK2MSFTNGP11.phx.gbl...
as a start - throw away Oracle and get a database that alllows
interconnectivity............oracles awful for it...

Failing that (not always an option sadly) - if it works from your desktop,
try running the application as the same named account in your applications
web.config and see what happens

<identity impersonate="true"
userName="domain\user"
password="password" />

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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. Using the exact same
code (copy and paste) into a Web app I get the following error "Error
while trying to retrieve text for error ORA-01019". Security I thought,
so I use Impersonation on the Web site, then the aspnet_wp.exe crashes
with "The instruction at 'whatever' referenced memory at 'whatever'. The
memory could not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.


Nov 19 '05 #3
not sure why the error text cannot be displayed..

ASPNET account should get read and execute access to the oracle bin dir
(where ever oci.dll is) and directory of tnsnames.ora file (? - not sure this
is required)

Also it is adviced to reboot the machine after oracle installation &
changing dir permissions..

I have had success with steps mentioned in this article.. (same for asp &
..net)
http://support.microsoft.com/default...55084&LN=EN-US

"Chris Botha" wrote:
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. Using the exact same code (copy
and paste) into a Web app I get the following error "Error while trying to
retrieve text for error ORA-01019". Security I thought, so I use
Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
instruction at 'whatever' referenced memory at 'whatever'. The memory could
not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.

Nov 19 '05 #4
Hi Sreejith, I did look at the article yesterday and went through it now
again. Unless I am missing something there it does not help :-(
Thanks though.

"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
not sure why the error text cannot be displayed..

ASPNET account should get read and execute access to the oracle bin dir
(where ever oci.dll is) and directory of tnsnames.ora file (? - not sure
this
is required)

Also it is adviced to reboot the machine after oracle installation &
changing dir permissions..

I have had success with steps mentioned in this article.. (same for asp &
.net)
http://support.microsoft.com/default...55084&LN=EN-US

"Chris Botha" wrote:
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. Using the exact same code
(copy
and paste) into a Web app I get the following error "Error while trying
to
retrieve text for error ORA-01019". Security I thought, so I use
Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
instruction at 'whatever' referenced memory at 'whatever'. The memory
could
not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.

Nov 19 '05 #5
Check your impersonation works without Oracle in the loop and see what that
does. It will at least ensure your application (or asp.net) isn't causing
this.....
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:OB*************@TK2MSFTNGP11.phx.gbl...
Hi John, Oracle is not my choice, I don't call it Oracle around here, but
it is not for publication.
Thanks for your answer, but if you read towards the end of my post, see
that's what I did (impersonation) and that it then crashes the
aspnet_wp.exe.
So I was hoping ..., actually I don't know what I was hoping for, but
thanks.

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uA*************@TK2MSFTNGP11.phx.gbl...
as a start - throw away Oracle and get a database that alllows
interconnectivity............oracles awful for it...

Failing that (not always an option sadly) - if it works from your
desktop, try running the application as the same named account in your
applications web.config and see what happens

<identity impersonate="true"
userName="domain\user"
password="password" />

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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. Using the exact same
code (copy and paste) into a Web app I get the following error "Error
while trying to retrieve text for error ORA-01019". Security I thought,
so I use Impersonation on the Web site, then the aspnet_wp.exe crashes
with "The instruction at 'whatever' referenced memory at 'whatever'. The
memory could not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.



Nov 19 '05 #6
I am an old hand when it comes to impersonation :-(
Without impersonation it seems that (or this is what I think) it is trying
to access some file to get the error message from, hence "Error while trying
to retrieve text for error ORA-01019".
When impersonating it can access something, because it goes past that stage
(I think), but then crashes the aspnet_wp.exe.
In the Windows app it works, so it is as if the Windows app and ASP look for
the Oracle stuff in different places (I think). As you can see, I am doing a
lot of thinking.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Check your impersonation works without Oracle in the loop and see what
that does. It will at least ensure your application (or asp.net) isn't
causing this.....
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:OB*************@TK2MSFTNGP11.phx.gbl...
Hi John, Oracle is not my choice, I don't call it Oracle around here, but
it is not for publication.
Thanks for your answer, but if you read towards the end of my post, see
that's what I did (impersonation) and that it then crashes the
aspnet_wp.exe.
So I was hoping ..., actually I don't know what I was hoping for, but
thanks.

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uA*************@TK2MSFTNGP11.phx.gbl...
as a start - throw away Oracle and get a database that alllows
interconnectivity............oracles awful for it...

Failing that (not always an option sadly) - if it works from your
desktop, try running the application as the same named account in your
applications web.config and see what happens

<identity impersonate="true"
userName="domain\user"
password="password" />

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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. Using the exact same
code (copy and paste) into a Web app I get the following error "Error
while trying to retrieve text for error ORA-01019". Security I thought,
so I use Impersonation on the Web site, then the aspnet_wp.exe crashes
with "The instruction at 'whatever' referenced memory at 'whatever'.
The memory could not be read"

I guess security is one issue here, the ASP.NET user or Internet Guest
account may need access to an Oracle directory and I don't know where.
Any help will be appreciated.



Nov 19 '05 #7
My next guess would be that your not using a system DSN as if your accessing
it from the desktop OK it must be accessing the TNS names file OK? It might
be that it cant access that file in your system if your not.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:uT*************@TK2MSFTNGP14.phx.gbl...
I am an old hand when it comes to impersonation :-(
Without impersonation it seems that (or this is what I think) it is trying
to access some file to get the error message from, hence "Error while
trying to retrieve text for error ORA-01019".
When impersonating it can access something, because it goes past that
stage (I think), but then crashes the aspnet_wp.exe.
In the Windows app it works, so it is as if the Windows app and ASP look
for the Oracle stuff in different places (I think). As you can see, I am
doing a lot of thinking.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Check your impersonation works without Oracle in the loop and see what
that does. It will at least ensure your application (or asp.net) isn't
causing this.....
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:OB*************@TK2MSFTNGP11.phx.gbl...
Hi John, Oracle is not my choice, I don't call it Oracle around here,
but it is not for publication.
Thanks for your answer, but if you read towards the end of my post, see
that's what I did (impersonation) and that it then crashes the
aspnet_wp.exe.
So I was hoping ..., actually I don't know what I was hoping for, but
thanks.

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uA*************@TK2MSFTNGP11.phx.gbl...
as a start - throw away Oracle and get a database that alllows
interconnectivity............oracles awful for it...

Failing that (not always an option sadly) - if it works from your
desktop, try running the application as the same named account in your
applications web.config and see what happens

<identity impersonate="true"
userName="domain\user"
password="password" />

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> 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. Using the
> exact same code (copy and paste) into a Web app I get the following
> error "Error while trying to retrieve text for error ORA-01019".
> Security I thought, so I use Impersonation on the Web site, then the
> aspnet_wp.exe crashes with "The instruction at 'whatever' referenced
> memory at 'whatever'. The memory could not be read"
>
> I guess security is one issue here, the ASP.NET user or Internet Guest
> account may need access to an Oracle directory and I don't know where.
> Any help will be appreciated.
>



Nov 19 '05 #8
No, I am using the exact same code, copy and paste from the Win. app into
the Web app.
You got me with the TNS names file, not my area. Our Oracle "expert" is out
of the offices for two days.
From my research on "ORA-01019" (nice way of saying type it into Google)
something called "ORACLE_HOME" crops up now and then. So it may be that the
thing is set (environment variable?) when running a Win. app but that it is
not set in the ASP environment. Or the Oracle directory is in the "path"
environment variable for desktop apps (which it is, type "Set" on a command
prompt) and not for ASP.
I don't know, I was never an Oracle fan and this is not helping.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My next guess would be that your not using a system DSN as if your
accessing it from the desktop OK it must be accessing the TNS names file
OK? It might be that it cant access that file in your system if your not.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:uT*************@TK2MSFTNGP14.phx.gbl...
I am an old hand when it comes to impersonation :-(
Without impersonation it seems that (or this is what I think) it is
trying to access some file to get the error message from, hence "Error
while trying to retrieve text for error ORA-01019".
When impersonating it can access something, because it goes past that
stage (I think), but then crashes the aspnet_wp.exe.
In the Windows app it works, so it is as if the Windows app and ASP look
for the Oracle stuff in different places (I think). As you can see, I am
doing a lot of thinking.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Check your impersonation works without Oracle in the loop and see what
that does. It will at least ensure your application (or asp.net) isn't
causing this.....
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:OB*************@TK2MSFTNGP11.phx.gbl...
Hi John, Oracle is not my choice, I don't call it Oracle around here,
but it is not for publication.
Thanks for your answer, but if you read towards the end of my post, see
that's what I did (impersonation) and that it then crashes the
aspnet_wp.exe.
So I was hoping ..., actually I don't know what I was hoping for, but
thanks.

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uA*************@TK2MSFTNGP11.phx.gbl...
> as a start - throw away Oracle and get a database that alllows
> interconnectivity............oracles awful for it...
>
> Failing that (not always an option sadly) - if it works from your
> desktop, try running the application as the same named account in your
> applications web.config and see what happens
>
> <identity impersonate="true"
> userName="domain\user"
> password="password" />
>
> --
> Regards
>
> John Timney
> ASP.NET MVP
> Microsoft Regional Director
>
> "Chris Botha" <ch***********@AThotmail.com> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
>> 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. Using the
>> exact same code (copy and paste) into a Web app I get the following
>> error "Error while trying to retrieve text for error ORA-01019".
>> Security I thought, so I use Impersonation on the Web site, then the
>> aspnet_wp.exe crashes with "The instruction at 'whatever' referenced
>> memory at 'whatever'. The memory could not be read"
>>
>> I guess security is one issue here, the ASP.NET user or Internet
>> Guest account may need access to an Oracle directory and I don't know
>> where.
>> Any help will be appreciated.
>>
>
>



Nov 19 '05 #9
Then I would guess thats yourt problem, as the system DSN should be able to
access the TNS Names stuff, and the environment variables for you. I'm not
an Oracle fan either - why they cant just always use a simple web service to
acess an opracle DB when their integration is so complicated is beyond me.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:O5*************@TK2MSFTNGP10.phx.gbl...
No, I am using the exact same code, copy and paste from the Win. app into
the Web app.
You got me with the TNS names file, not my area. Our Oracle "expert" is
out of the offices for two days.
From my research on "ORA-01019" (nice way of saying type it into Google)
something called "ORACLE_HOME" crops up now and then. So it may be that
the thing is set (environment variable?) when running a Win. app but that
it is not set in the ASP environment. Or the Oracle directory is in the
"path" environment variable for desktop apps (which it is, type "Set" on a
command prompt) and not for ASP.
I don't know, I was never an Oracle fan and this is not helping.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My next guess would be that your not using a system DSN as if your
accessing it from the desktop OK it must be accessing the TNS names file
OK? It might be that it cant access that file in your system if your
not.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:uT*************@TK2MSFTNGP14.phx.gbl...
I am an old hand when it comes to impersonation :-(
Without impersonation it seems that (or this is what I think) it is
trying to access some file to get the error message from, hence "Error
while trying to retrieve text for error ORA-01019".
When impersonating it can access something, because it goes past that
stage (I think), but then crashes the aspnet_wp.exe.
In the Windows app it works, so it is as if the Windows app and ASP look
for the Oracle stuff in different places (I think). As you can see, I am
doing a lot of thinking.
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Check your impersonation works without Oracle in the loop and see what
that does. It will at least ensure your application (or asp.net) isn't
causing this.....
--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris Botha" <ch***********@AThotmail.com> wrote in message
news:OB*************@TK2MSFTNGP11.phx.gbl...
> Hi John, Oracle is not my choice, I don't call it Oracle around here,
> but it is not for publication.
> Thanks for your answer, but if you read towards the end of my post,
> see that's what I did (impersonation) and that it then crashes the
> aspnet_wp.exe.
> So I was hoping ..., actually I don't know what I was hoping for, but
> thanks.
>
> "John Timney ( MVP )" <ti*****@despammed.com> wrote in message
> news:uA*************@TK2MSFTNGP11.phx.gbl...
>> as a start - throw away Oracle and get a database that alllows
>> interconnectivity............oracles awful for it...
>>
>> Failing that (not always an option sadly) - if it works from your
>> desktop, try running the application as the same named account in
>> your applications web.config and see what happens
>>
>> <identity impersonate="true"
>> userName="domain\user"
>> password="password" />
>>
>> --
>> Regards
>>
>> John Timney
>> ASP.NET MVP
>> Microsoft Regional Director
>>
>> "Chris Botha" <ch***********@AThotmail.com> wrote in message
>> news:%2****************@TK2MSFTNGP12.phx.gbl...
>>> 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.
>>> Using the exact same code (copy and paste) into a Web app I get the
>>> following error "Error while trying to retrieve text for error
>>> ORA-01019". Security I thought, so I use Impersonation on the Web
>>> site, then the aspnet_wp.exe crashes with "The instruction at
>>> 'whatever' referenced memory at 'whatever'. The memory could not be
>>> read"
>>>
>>> I guess security is one issue here, the ASP.NET user or Internet
>>> Guest account may need access to an Oracle directory and I don't
>>> know where.
>>> Any help will be appreciated.
>>>
>>
>>
>
>



Nov 19 '05 #10
On Wed, 9 Nov 2005 12:54:56 -0500, "Chris Botha" <ch***********@AThotmail.com> wrote:

¤ 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. Using the exact same code (copy
¤ and paste) into a Web app I get the following error "Error while trying to
¤ retrieve text for error ORA-01019". Security I thought, so I use
¤ Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
¤ instruction at 'whatever' referenced memory at 'whatever'. The memory could
¤ not be read"
¤
¤ I guess security is one issue here, the ASP.NET user or Internet Guest
¤ account may need access to an Oracle directory and I don't know where.
¤ Any help will be appreciated.
¤

I would definitely start with the security issue:

Problem Description
-------------------

When running an application using the Oracle9i Release 2 (9.2.0.1.0) install
of client software and that attempts to connect to an Oracle database with the
Authenticated User privilege (such as when you use Microsoft's Internet
Information Server (IIS)) through any of the following programmatic interfaces

1. Oracle Provider for OLE DB
2. Microsoft OLE DB Provider for Oracle
3. Oracle ODBC Driver
4. Microsoft ODBC for Oracle
5. Oracle Objects for OLE (OO4O)
6. Microsoft .NET Framework Data Provider for Oracle
you may receive one of the following errors:
(1) Oracle Provider for OLE DB

(a) Error Type: Microsoft OLE DB Service Components (0x80070005)

Access is denied.
(b) OraOLEDB.Oracle Provider is not registered on the local machine
(2) Microsoft OLE DB Provider for Oracle

(a) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle client and networking components were not found. These
components are supplied by Oracle Corporation and are part of the
Oracle Version 7.3.3 or later client software installation. Provider
is unable to function until these components are installed.
(b) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle error occurred, but error message could not be retrieved
from Oracle.
(3) Oracle ODBC Driver

(a) Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)

Specified driver could not be loaded due to system error 5 (Oracle
in OraHome92).
(4) Microsoft ODBC for Oracle

(a) The Oracle(tm) client and networking components were not found.
These components are supplied by Oracle Corporation and are part
of the Oracle Version 7.3 (or greater) client software installation.

You will be unable to use this driver until these components have
been installed.
(b) Error number: -2147467259

Error Description: [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_ENV failed
(5) Oracle Objects for OLE

(a) while using a GLOBAL.ASA file

Error Type: Active Server Pages (0x0)

An error occurred while creating object 'OraSession'.
(b) not using a GLOBAL.ASA file

Error Type: Microsoft VBScript runtime (0x800A0046)

Permission denied: 'CreateObject'
(6) Microsoft .NET Framework Data Provider for Oracle

(a) System.DllNotFoundException: Unable to load DLL (oci.dll).
at System.Data.OracleClient.DBObjectPool.GetObject(Bo olean&
isInTransaction)
at System.Data.OracleClient.OracleConnectionPoolManag er.
GetPooledConnection(String encryptedConnectionString,
OracleConnectionString options, Boolean& isInTransaction)
at System.Data.OracleClient.OracleConnection.OpenInte rnal
(OracleConnectionString parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at WCWSItemAvailability.ETAAvailability.SingleAvailab ility(String
ItemNumber, String BusinessUnit, Int32 OrderQty, Int32&
AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error)
at WCWSItemAvailability.ETAAvailability.XMLAvailabili ty(String
XMLInput)
(7) Other miscellaneous errors

(a) The Specified Module Could Not Be Found

(b) ORA-00604: error occurred at recursive SQL level 1
ORA-12705: invalid or unknown NLS parameter value specified

(c) Unable to load DLL (OraOps9.dll):
...
[DllNotFoundException: Unable to load DLL (OraOps9.dll).]

(d) System Error 998 trying to run ASP page
Solution Description
--------------------

Oracle 9.2 Client software requires that you give the Authenticated User
privilege to the Oracle Home by following these steps:

1. Log on to Windows as a user with Administrator privileges.

2. Launch Windows Explorer from the Start Menu and navigate to the
ORACLE_HOME folder. This is typically the "Ora92" folder under the
"Oracle" folder (i.e. D:\Oracle\Ora92).

3. Right-click on the ORACLE_HOME folder and choose the "Properties" option
from the drop down list. A "Properties" window should appear.

4. Click on the "Security" tab of the "Properties" window.

5. Click on "Authenticated Users" item in the "Name" list (on Windows XP
the "Name" list is called "Group or user names").

6. Uncheck the "Read and Execute" box in the "Permissions" list under the
"Allow" column (on Windows XP the "Permissions" list is called
"Permissions for Authenticated Users").

7. Re-check the "Read and Execute" box under the "Allow" column (this is
the box you just unchecked).

8. Click the "Advanced" button and in the "Permission Entries" list make
sure you see the "Authenticated Users" listed there with:

Permission = Read & Execute
Apply To = This folder, subfolders and files

If this is NOT the case, edit that line and make sure the "Apply onto"
drop-down box is set to "This folder, subfolders and files". This
should already be set properly but it is important that you verify this.

9. Click the "Ok" button until you close out all of the security properties
windows. The cursor may present the hour glass for a few seconds as it
applies the permissions you just changed to all subfolders and files.

10. Reboot your computer to assure that these changes have taken effect.
Re-execute the application and it should now work.
Explanation
-----------

If you install Oracle9i Release 2 (9.2.0.1.0) on a computer running Windows
with an NTFS partition, the contents of ORACLE_HOME directory will not be
visible to users who are authenticated on that machine. These permissions
were not set properly when the software was installed.

Applications that were working fine with previous versions of Oracle software
will stop working when they upgrade to Oracle 9.2.

NOTE: The application will continue to work if the user has logged onto the
machine as an Administrator.

Any application that is using the Authenticated User privilege will not work.
A notable example would be IIS which might service some of the requests based
on the Authenticated User privileges.

To demonstrate the problem in further detail, you can log on to the operating
system as an authenticated machine user. You won't be able browse the contents
of the ORACLE_HOME directory demonstrating your inability to load any Oracle DLLs
or make a connection.
Additional Information
----------------------

The above error messages may not only be encountered when using Oracle 9.2
client software but may also exists when running into general permissions
issues using third party products on a Windows platform.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 20 '05 #11
Hi Paul, thanks a lot for the comprehensive reply.
I re-installed the Oracle stuff a few days ago and am still not there, I was
getting the "Oracle client and networking components were not found..."
error, but am applying the security settings as per the article (ran out of
time today).

Thanks again.

Chris.
"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:9g********************************@4ax.com...
On Wed, 9 Nov 2005 12:54:56 -0500, "Chris Botha"
<ch***********@AThotmail.com> wrote:

¤ 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. Using the exact same code
(copy
¤ and paste) into a Web app I get the following error "Error while trying
to
¤ retrieve text for error ORA-01019". Security I thought, so I use
¤ Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
¤ instruction at 'whatever' referenced memory at 'whatever'. The memory
could
¤ not be read"
¤
¤ I guess security is one issue here, the ASP.NET user or Internet Guest
¤ account may need access to an Oracle directory and I don't know where.
¤ Any help will be appreciated.
¤

I would definitely start with the security issue:

Problem Description
-------------------

When running an application using the Oracle9i Release 2 (9.2.0.1.0)
install
of client software and that attempts to connect to an Oracle database with
the
Authenticated User privilege (such as when you use Microsoft's Internet
Information Server (IIS)) through any of the following programmatic
interfaces

1. Oracle Provider for OLE DB
2. Microsoft OLE DB Provider for Oracle
3. Oracle ODBC Driver
4. Microsoft ODBC for Oracle
5. Oracle Objects for OLE (OO4O)
6. Microsoft .NET Framework Data Provider for Oracle
you may receive one of the following errors:
(1) Oracle Provider for OLE DB

(a) Error Type: Microsoft OLE DB Service Components (0x80070005)

Access is denied.
(b) OraOLEDB.Oracle Provider is not registered on the local machine
(2) Microsoft OLE DB Provider for Oracle

(a) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle client and networking components were not found. These
components are supplied by Oracle Corporation and are part of
the
Oracle Version 7.3.3 or later client software installation.
Provider
is unable to function until these components are installed.
(b) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle error occurred, but error message could not be retrieved
from Oracle.
(3) Oracle ODBC Driver

(a) Error Type: Microsoft OLE DB Provider for ODBC Drivers
(0x80004005)

Specified driver could not be loaded due to system error 5
(Oracle
in OraHome92).
(4) Microsoft ODBC for Oracle

(a) The Oracle(tm) client and networking components were not found.
These components are supplied by Oracle Corporation and are part
of the Oracle Version 7.3 (or greater) client software
installation.

You will be unable to use this driver until these components
have
been installed.
(b) Error number: -2147467259

Error Description: [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_ENV failed
(5) Oracle Objects for OLE

(a) while using a GLOBAL.ASA file

Error Type: Active Server Pages (0x0)

An error occurred while creating object 'OraSession'.
(b) not using a GLOBAL.ASA file

Error Type: Microsoft VBScript runtime (0x800A0046)

Permission denied: 'CreateObject'
(6) Microsoft .NET Framework Data Provider for Oracle

(a) System.DllNotFoundException: Unable to load DLL (oci.dll).
at System.Data.OracleClient.DBObjectPool.GetObject(Bo olean&
isInTransaction)
at System.Data.OracleClient.OracleConnectionPoolManag er.
GetPooledConnection(String encryptedConnectionString,
OracleConnectionString options, Boolean& isInTransaction)
at System.Data.OracleClient.OracleConnection.OpenInte rnal
(OracleConnectionString parsedConnectionString, Object
transact)
at System.Data.OracleClient.OracleConnection.Open()
at
WCWSItemAvailability.ETAAvailability.SingleAvailab ility(String
ItemNumber, String BusinessUnit, Int32 OrderQty, Int32&
AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error)
at WCWSItemAvailability.ETAAvailability.XMLAvailabili ty(String
XMLInput)
(7) Other miscellaneous errors

(a) The Specified Module Could Not Be Found

(b) ORA-00604: error occurred at recursive SQL level 1
ORA-12705: invalid or unknown NLS parameter value specified

(c) Unable to load DLL (OraOps9.dll):
...
[DllNotFoundException: Unable to load DLL (OraOps9.dll).]

(d) System Error 998 trying to run ASP page
Solution Description
--------------------

Oracle 9.2 Client software requires that you give the Authenticated User
privilege to the Oracle Home by following these steps:

1. Log on to Windows as a user with Administrator privileges.

2. Launch Windows Explorer from the Start Menu and navigate to the
ORACLE_HOME folder. This is typically the "Ora92" folder under the
"Oracle" folder (i.e. D:\Oracle\Ora92).

3. Right-click on the ORACLE_HOME folder and choose the "Properties"
option
from the drop down list. A "Properties" window should appear.

4. Click on the "Security" tab of the "Properties" window.

5. Click on "Authenticated Users" item in the "Name" list (on Windows
XP
the "Name" list is called "Group or user names").

6. Uncheck the "Read and Execute" box in the "Permissions" list under
the
"Allow" column (on Windows XP the "Permissions" list is called
"Permissions for Authenticated Users").

7. Re-check the "Read and Execute" box under the "Allow" column (this
is
the box you just unchecked).

8. Click the "Advanced" button and in the "Permission Entries" list
make
sure you see the "Authenticated Users" listed there with:

Permission = Read & Execute
Apply To = This folder, subfolders and files

If this is NOT the case, edit that line and make sure the "Apply
onto"
drop-down box is set to "This folder, subfolders and files". This
should already be set properly but it is important that you verify
this.

9. Click the "Ok" button until you close out all of the security
properties
windows. The cursor may present the hour glass for a few seconds as
it
applies the permissions you just changed to all subfolders and
files.

10. Reboot your computer to assure that these changes have taken effect.
Re-execute the application and it should now work.
Explanation
-----------

If you install Oracle9i Release 2 (9.2.0.1.0) on a computer running
Windows
with an NTFS partition, the contents of ORACLE_HOME directory will not be
visible to users who are authenticated on that machine. These permissions
were not set properly when the software was installed.

Applications that were working fine with previous versions of Oracle
software
will stop working when they upgrade to Oracle 9.2.

NOTE: The application will continue to work if the user has logged onto
the
machine as an Administrator.

Any application that is using the Authenticated User privilege will not
work.
A notable example would be IIS which might service some of the requests
based
on the Authenticated User privileges.

To demonstrate the problem in further detail, you can log on to the
operating
system as an authenticated machine user. You won't be able browse the
contents
of the ORACLE_HOME directory demonstrating your inability to load any
Oracle DLLs
or make a connection.
Additional Information
----------------------

The above error messages may not only be encountered when using Oracle 9.2
client software but may also exists when running into general permissions
issues using third party products on a Windows platform.
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 20 '05 #12
No, no joy, definitely not security now any more. From the Web app I can
physically write a test text file into the Oracle directories. Works from a
WinApp, problem is IIS does not know where the stupid Oracle stuff is
installed, giving the error:
Oracle client and networking components were not found. These components are
supplied by Oracle Corporation .....

Thanks in any case.
"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:9g********************************@4ax.com...
On Wed, 9 Nov 2005 12:54:56 -0500, "Chris Botha"
<ch***********@AThotmail.com> wrote:

¤ 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. Using the exact same code
(copy
¤ and paste) into a Web app I get the following error "Error while trying
to
¤ retrieve text for error ORA-01019". Security I thought, so I use
¤ Impersonation on the Web site, then the aspnet_wp.exe crashes with "The
¤ instruction at 'whatever' referenced memory at 'whatever'. The memory
could
¤ not be read"
¤
¤ I guess security is one issue here, the ASP.NET user or Internet Guest
¤ account may need access to an Oracle directory and I don't know where.
¤ Any help will be appreciated.
¤

I would definitely start with the security issue:

Problem Description
-------------------

When running an application using the Oracle9i Release 2 (9.2.0.1.0)
install
of client software and that attempts to connect to an Oracle database with
the
Authenticated User privilege (such as when you use Microsoft's Internet
Information Server (IIS)) through any of the following programmatic
interfaces

1. Oracle Provider for OLE DB
2. Microsoft OLE DB Provider for Oracle
3. Oracle ODBC Driver
4. Microsoft ODBC for Oracle
5. Oracle Objects for OLE (OO4O)
6. Microsoft .NET Framework Data Provider for Oracle
you may receive one of the following errors:
(1) Oracle Provider for OLE DB

(a) Error Type: Microsoft OLE DB Service Components (0x80070005)

Access is denied.
(b) OraOLEDB.Oracle Provider is not registered on the local machine
(2) Microsoft OLE DB Provider for Oracle

(a) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle client and networking components were not found. These
components are supplied by Oracle Corporation and are part of
the
Oracle Version 7.3.3 or later client software installation.
Provider
is unable to function until these components are installed.
(b) Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)

Oracle error occurred, but error message could not be retrieved
from Oracle.
(3) Oracle ODBC Driver

(a) Error Type: Microsoft OLE DB Provider for ODBC Drivers
(0x80004005)

Specified driver could not be loaded due to system error 5
(Oracle
in OraHome92).
(4) Microsoft ODBC for Oracle

(a) The Oracle(tm) client and networking components were not found.
These components are supplied by Oracle Corporation and are part
of the Oracle Version 7.3 (or greater) client software
installation.

You will be unable to use this driver until these components
have
been installed.
(b) Error number: -2147467259

Error Description: [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_ENV failed
(5) Oracle Objects for OLE

(a) while using a GLOBAL.ASA file

Error Type: Active Server Pages (0x0)

An error occurred while creating object 'OraSession'.
(b) not using a GLOBAL.ASA file

Error Type: Microsoft VBScript runtime (0x800A0046)

Permission denied: 'CreateObject'
(6) Microsoft .NET Framework Data Provider for Oracle

(a) System.DllNotFoundException: Unable to load DLL (oci.dll).
at System.Data.OracleClient.DBObjectPool.GetObject(Bo olean&
isInTransaction)
at System.Data.OracleClient.OracleConnectionPoolManag er.
GetPooledConnection(String encryptedConnectionString,
OracleConnectionString options, Boolean& isInTransaction)
at System.Data.OracleClient.OracleConnection.OpenInte rnal
(OracleConnectionString parsedConnectionString, Object
transact)
at System.Data.OracleClient.OracleConnection.Open()
at
WCWSItemAvailability.ETAAvailability.SingleAvailab ility(String
ItemNumber, String BusinessUnit, Int32 OrderQty, Int32&
AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error)
at WCWSItemAvailability.ETAAvailability.XMLAvailabili ty(String
XMLInput)
(7) Other miscellaneous errors

(a) The Specified Module Could Not Be Found

(b) ORA-00604: error occurred at recursive SQL level 1
ORA-12705: invalid or unknown NLS parameter value specified

(c) Unable to load DLL (OraOps9.dll):
...
[DllNotFoundException: Unable to load DLL (OraOps9.dll).]

(d) System Error 998 trying to run ASP page
Solution Description
--------------------

Oracle 9.2 Client software requires that you give the Authenticated User
privilege to the Oracle Home by following these steps:

1. Log on to Windows as a user with Administrator privileges.

2. Launch Windows Explorer from the Start Menu and navigate to the
ORACLE_HOME folder. This is typically the "Ora92" folder under the
"Oracle" folder (i.e. D:\Oracle\Ora92).

3. Right-click on the ORACLE_HOME folder and choose the "Properties"
option
from the drop down list. A "Properties" window should appear.

4. Click on the "Security" tab of the "Properties" window.

5. Click on "Authenticated Users" item in the "Name" list (on Windows
XP
the "Name" list is called "Group or user names").

6. Uncheck the "Read and Execute" box in the "Permissions" list under
the
"Allow" column (on Windows XP the "Permissions" list is called
"Permissions for Authenticated Users").

7. Re-check the "Read and Execute" box under the "Allow" column (this
is
the box you just unchecked).

8. Click the "Advanced" button and in the "Permission Entries" list
make
sure you see the "Authenticated Users" listed there with:

Permission = Read & Execute
Apply To = This folder, subfolders and files

If this is NOT the case, edit that line and make sure the "Apply
onto"
drop-down box is set to "This folder, subfolders and files". This
should already be set properly but it is important that you verify
this.

9. Click the "Ok" button until you close out all of the security
properties
windows. The cursor may present the hour glass for a few seconds as
it
applies the permissions you just changed to all subfolders and
files.

10. Reboot your computer to assure that these changes have taken effect.
Re-execute the application and it should now work.
Explanation
-----------

If you install Oracle9i Release 2 (9.2.0.1.0) on a computer running
Windows
with an NTFS partition, the contents of ORACLE_HOME directory will not be
visible to users who are authenticated on that machine. These permissions
were not set properly when the software was installed.

Applications that were working fine with previous versions of Oracle
software
will stop working when they upgrade to Oracle 9.2.

NOTE: The application will continue to work if the user has logged onto
the
machine as an Administrator.

Any application that is using the Authenticated User privilege will not
work.
A notable example would be IIS which might service some of the requests
based
on the Authenticated User privileges.

To demonstrate the problem in further detail, you can log on to the
operating
system as an authenticated machine user. You won't be able browse the
contents
of the ORACLE_HOME directory demonstrating your inability to load any
Oracle DLLs
or make a connection.
Additional Information
----------------------

The above error messages may not only be encountered when using Oracle 9.2
client software but may also exists when running into general permissions
issues using third party products on a Windows platform.
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 20 '05 #13
On Thu, 17 Nov 2005 11:55:34 -0500, "Chris Botha" <ch***********@AThotmail.com> wrote:

¤ No, no joy, definitely not security now any more. From the Web app I can
¤ physically write a test text file into the Oracle directories. Works from a
¤ WinApp, problem is IIS does not know where the stupid Oracle stuff is
¤ installed, giving the error:
¤ Oracle client and networking components were not found. These components are
¤ supplied by Oracle Corporation .....
¤

OK, if you've configured your system according to the Oracle information try some suggestions from
the Microsoft KB article:

http://support.microsoft.com/?scid=kb;en-us;Q255084
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 20 '05 #14

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

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
38
by: Mike | last post by:
No flame wars, please! We're planning a move from a non-relational system to a relational system. Our choices have been narrowed to Oracle and DB2. Since we're moving from non-relational to...
4
by: stj911 | last post by:
http://counterpunch.org/rahni04072007.html Test Tube Zealots: The American Chemical Society Terminates the Membership of Chemists from Iran By DAVID N. RAHNI The American Chemical Society...
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
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...
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.