웹모아 
웹모아 로그인   
웹모아
 
일반팁
 


oledb 접근 오류
  2006-09-08 15:46:15 조회:4526
글자수:6646


윈2000 서버에서 델파이6, 오라클9i, IIS 이러한 환경에서
개발을 하다가 오라클9i 클라이언트에서 OLE DB 를
이용할 경우 오라클9i 에 접속하지 못하는 에러가
생겼습니다.

문서는 영문이여서 주요 부문만 번역합니다.

문제 설명
=========
다음과 같은 방식으로 승인된 사용자 (Authenticated User) 권한을
갖고 있는 오라클 데이터베이스에 접근하려는 경우

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 (0040)
6. Microsoft .NET Framework Data Provider for Oracle

특히 Oracle9i Release 2 (9.2.0.1.0) 클라이언트가 설치된 곳에서 위와
같은 방식을 이용한 어플리케이션을 실행하고 (저의 경우는 델파이로
작성된 ActiveX 그리고 DataSnap 의 WebConnection ), IIS 에 접근할
경우 다음과 같은 7가지 유형의 오류가 발생합니다.

1 을 사용한 경우:
=> Error Type: Microsoft OLE DB Service Components (0x80070005)
Access is denied.
=> OraOLEDB.Oracle Provider is not registered on the local machine.

2 을 사용한 경우:
=> Error Type: Microsoft OLE DB Provider for Oracle (0x80004005)
Oracle error occurred, but error message could not be retrieved from Oracle.

3 을 사용한 경우:
=> 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 을 사용한 경우:
=> 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.

5 을 사용한 경우:
=> global.asa 파일이 사용된 경우
Error Type: Active Server Pages (0x0)
An error occurred while creating object 'OraSession'
=> global.asa 파일이 사용되지 않은 경우
Error Type: Microsoft VBScript runtime (0x800A0046)
Permission denied: 'CreateObject'

6 을 사용한 경우:
=> System.DllNotFoundException: Unable to load DLL(oci.dll)


7. 기타 문제

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)
d) System Error 998 trying to run ASP Page



해결 방법:

1. 관리자로 로그인
2. 오라클 클라이언트의 루트 폴더로 이동 (기본값은 c:\oracle\ora92 )
3. ora92 폴더의 속성 창에서 "보안" 탭을 선택
4. "승인된 사용자" 에 포커스를 두고 "읽기 & 쓰기" 의 체크 박스에
체크를 뺏다가 다시 체크합니다. 허용을 다시 리프레쉬하는 것입니다.
5. 그리고 재 부팅합니다.



아래는 영어 원문입니다.


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(Boolean&
isInTransaction)
at System.Data.OracleClient.OracleConnectionPoolManager.
GetPooledConnection(String encryptedConnectionString,
OracleConnectionString options, Boolean& isInTransaction)
at System.Data.OracleClient.OracleConnection.OpenInternal
(OracleConnectionString parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at WCWSItemAvailability.ETAAvailability.SingleAvailability(String
ItemNumber, String BusinessUnit, Int32 OrderQty, Int32&
AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error)
at WCWSItemAvailability.ETAAvailability.XMLAvailability(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.



 댓글 (0)


일반팁
페이지: 1 / 2   


  oledb 접근 오류(홈마스타)4527
     ASP 에서 MDB 사용(홈마스타)860
       [RE] ASP 에서 MDB 사용(홈마스타)670
     Global.asa 파일에 대하여(홈마스타)(1) 730
     배열의 순차정리 - Asp에서 for 문을 돌려 얻(홈마스타)1094
       [RE] 배열의 순차정리(홈마스타)682
     Redirect 예제(홈마스타)731
     항목이 몇개인지 모르는 배열에 저장된 내용..출력하(홈마스타)782
     asp에서 자료삭제할때(홈마스타)637
     asp 로 파일 쓰기를 하려는데 계속 에러가 발생합(홈마스타)(2) 686
       [RE] asp 로 파일 쓰기를 하려는데 계속 에러(홈마스타)634
     asp include(홈마스타)756
     세자리마다 ‘,’ 콤마 찍기(홈마스타)(1) 874
       [RE] 소수점이하 자리 맞추기(홈마스타)790
     asp에서 소수점나온숫자를 버림하는 방법(홈마스타)4557
     배열을 이용한 변수 넘기기(홈마스타)(1) 638
     Cookies를 배열로(홈마스타)946
     Scripting.FilesyStemObject 스(홈마스타)848
       [RE] Scripting.FilesyStemObj(홈마스타)826
     FileSystemObject 다루기 V - 파일 (홈마스타)755
       [RE] FileSystemObject 다루기 V (홈마스타)758
     FileSystemObject 다루기 IV - 파일(홈마스타)953
       [RE] FileSystemObject - 입력한(홈마스타)727
     asp에서 select case 구문 사용법(홈마스타)1086
     변수의 선언과 전달(홈마스타)(5) 1204
     asp로 쇼핑몰 만들기(홈마스타)(1) 749
     쿠키 저장과 사용(홈마스타)809
     asp 여러줄 주석 어떻게 달아요 ?(홈마스타)1607
     ASP - DB 사용 예문 - ADO의 연결과 레코(홈마스타)753
       [RE] ASP - DB 사용 예문 - DB와 연결(홈마스타)1034
≪ [1]  [2]   ≫

복수단어 검색은 공백(space)로 구분해 주세요.



공지사항

 
인기 글
3946
3354
8218
3610
20406
10380
3157
3010
3239
3105
3220
3633
3058
6789
  [나는5] 자동링크 테스트
3207
 
최근 글
82
231
410
259
250
160
229
3185
836
851
1025
875
4123
3432
3477