search
HomeDatabaseMysql TutorialCannot create an instance of OLE DB provider OraOLEDB.Oracle

在SQL SERVER 2008 R2下用Windows 身份认证的登录名创建了一个访问ORACLE数据库的链接服务器xxxxx,测试成功,木有问题,但是其它登录名使用该链接服务器时,报如下错误: 消息 7302,级别 16,状态 1,第 1 行 Cannot create an instance of OLE DB provide

在SQL SERVER 2008 R2下用Windows 身份认证的登录名创建了一个访问ORACLE数据库的链接服务器xxxxx,测试成功,木有问题,但是其它登录名使用该链接服务器时,香港服务器,报如下错误:

消息 7302,香港服务器租用,级别 16,状态 1,第 1 行

Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "xxxxxx".

 

此时需要在“服务器对象”——>“链接服务器”——>“访问接口”下,找到OraOLEDB.Oracle选项,单击右键选择属性,然后在访问接口选项下勾选“允许进程内”(Allow inprocess)。即可解决上面问题,有时候,网站空间,可能需要重新新建此链接服务器。

clipboard

 

老外给出了一个解决这个问题的步骤,相当详细严谨,几乎面面俱到。可以作为参考学习的好资料:

Ran into this issue where the linked server would work for users who were local admins on the server, but not for anyone else. After many hours of messing around, I managed to fix the problem using the following steps:

  1:Run “dcomcnfg.exe”. Navigate to “Component Services -> Computers -> My Computer -> DCOM Config”.

  2:Open the properties page of “MSDAINITIALIZE”.

  3:Copy the “Application ID” on the properties page.

  4:Close out of “dcomcnfg”.

  5:Run “regedit”. Navigate to “HKEY_CLASSES_ROOT\AppID\{???}” with the ??? representing the application ID you copied in step #3.

  6:Right click the “{???}” folder and select “Permissions”

  7:Add the local administrators group to the permissions, grant them full control.

  8:Close out of “regedit”.

  9:Reboot the server.

  10:Run “dcomconfig”. Navigate to “Component Services -> Computers -> My Computer -> DCOM Config”.

  11:Open the properties page of “MSDAINITIALIZE”.

  12:On the “Security” tab, select “Customize” under “Launch and Activation Permissions”, then click the “Edit” button.

  13:Add “Authenticated Users” and grant them all 4 launch and activation permissions.

  14:Close out of “dcomcnfg”.

  15:Find the Oracle install root directory. “E:\Oracle” in my case.

  16:Edit the security properties of the Oracle root directory. Add “Authenticated Users” and grant them “Read & Execute”, “List folder contents” and “Read” permissions. Apply the new permissions.

  17:Click the “Advanced Permissions” button, then click “Change Permissions”. Select “Replace all child object permissions with inheritable permissions from this object”. Apply the new permissions.

  18:Find the “OraOLEDB.Oracle” provider in SQL Server. Make sure the “Allow Inprocess” parameter is checked.

  19:Reboot the server.

 

 

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Vue中如何使用provide/inject实现祖先组件和后代组件之间的方法传递Vue中如何使用provide/inject实现祖先组件和后代组件之间的方法传递Jun 11, 2023 pm 12:17 PM

Vue作为一款流行的前端框架,提供了多种方法来组织和管理组件之间的交互。在Vue中,provide和inject是两个可以使用来实现祖先组件和后代组件之间方法传递的方法。provide和inject是Vue提供的高级组件与组件之间通信的方法,其作用是为祖先组件提供数据,然后在后代组件使用inject方法来接收数据。1、provide和inject的定义pro

Vue3中的provide、inject怎么使用Vue3中的provide、inject怎么使用May 11, 2023 pm 11:52 PM

一.场景再现先别着急考虑标题这个api的含义。在这里我先动手写一个比较常见的场景。所对应的组件内部代码比较简单,这里我就不展示了,逻辑上就是这三个组件层层引用。所对应的页面效果如下:如上图,这是一个在项目中很常见的一个场景,三层嵌套的组件。(其实还有深层次的嵌套,目前我们拿三层嵌套举例足矣)ok,你现在的需求是:在爷爷组件内需要提供一个字符串数据“韩振方”去提供给儿子组件使用。聪明的你肯定想到了props,废话不多说,我们直接上手。二.传递Props“我以为多高深呢,这不就是数据父传子的场景吗?

Vue中如何使用provide/inject实现祖先组件和后代组件之间的数据传递Vue中如何使用provide/inject实现祖先组件和后代组件之间的数据传递Jun 11, 2023 am 11:36 AM

在Vue中,我们常常需要在组件之间进行数据传递。而在祖先组件和后代组件之间传递数据时,我们可以使用Vue提供的provide/inject来实现。一、provide/inject的作用在Vue中,provide和inject是一对用于祖先和后代之间进行数据传递的API。具体来说,provide用于在祖先组件中定义一些需要共享的数据/方法,而inject则用于

Vue中使用provide和inject实现组件间数据传递与性能优化Vue中使用provide和inject实现组件间数据传递与性能优化Jul 17, 2023 pm 07:19 PM

Vue中使用provide和inject实现组件间数据传递与性能优化在Vue中,组件间的数据传递是非常常见的需求。有时候我们希望在组件树的某个节点提供数据,然后在其后代组件中使用这些数据,这时候就可以使用Vue的provide和inject来实现。除了数据传递,provide和inject还可以用于性能优化,减少props传递的层级,提高组件的性能。prov

Vue 中的 provide & inject 是什么,如何使用?Vue 中的 provide & inject 是什么,如何使用?Jun 11, 2023 pm 12:05 PM

Vue.js是当前前端界非常流行的一款JavaScript框架,拥有着响应式的数据绑定、组件化的视图架构以及依赖追踪和模板渲染等等很多的优秀特性。而其中最为常用的功能便是组件化编程,Vue为我们提供了如组件注册、组件传参等等功能检验,但在某些情况下组件数据的传递便会遇到较为棘手的问题,此时,我们就可以使用Vue中提供的provide和inj

Vue报错:无法正确使用provide和inject进行依赖注入,如何解决?Vue报错:无法正确使用provide和inject进行依赖注入,如何解决?Aug 25, 2023 pm 10:13 PM

Vue报错:无法正确使用provide和inject进行依赖注入,如何解决?在Vue的开发过程中,我们经常需要在组件间共享数据或方法。vue提供了多种方式来实现组件通信,其中一种方式是通过provide和inject进行依赖注入。然而,在使用provide和inject进行依赖注入时,有时候我们会遇到报错的情况,本文将探讨这些问题的解决方案。报错信息当我们在

如何解决Vue报错:无法正确使用provide和inject进行跨级组件通信如何解决Vue报错:无法正确使用provide和inject进行跨级组件通信Aug 20, 2023 pm 06:01 PM

如何解决Vue报错:无法正确使用provide和inject进行跨级组件通信在Vue开发中,跨级组件之间的通信是一个常见的需求。Vue提供了provide和inject这两个API来实现跨级组件的通信。然而,有时我们在使用这两个API时可能会遇到一些报错。本文将介绍如何解决Vue报错:无法正确使用provide和inject进行跨级组件通信的问题,并提供相应

Vue3插件中怎么使用Provide和InjectVue3插件中怎么使用Provide和InjectJun 01, 2023 pm 08:34 PM

为什么Vue3插件的工作方式与以往不同在Vue2中,大多数插件将属性注入到this上。例如可以通过this.$router访问Vue路由器。但是,setup()方法不再包含对this的相同引用。进行这种更改的主要原因是增加了对Typescript的支持。那么在Vue3中该如何访问我们的插件呢?可以用provide和inject来帮助我们在Vue程序中注入依赖项。Provide/inject用于依赖项注入,可以使我们能在Vue程序的根目录中提供插件,并且然后将其注入子组件中。在Compositio

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.