首页 \ 问答 \ 尝试将Excel 2013与Oracle连接 - ORA-12154(Trying to connect Excel 2013 with Oracle - ORA-12154)

尝试将Excel 2013与Oracle连接 - ORA-12154(Trying to connect Excel 2013 with Oracle - ORA-12154)

我试图通过Power Query > From Database > From Oracle Database连接到Oracle,然后输入BI_TST ,它位于我的TNSNAMES(位于: C:\oracle\product\10.2.0\client_2\network\ADMIN )中,并在下面有连接:

BI_TST =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srv-oracle3.mycompany.com.br)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = bitst)
    )
  )

TNS_ADMIN=C:\oracle\product\10.2.0\client_2\network\ADMIN变量路径配置为TNS_ADMIN=C:\oracle\product\10.2.0\client_2\network\ADMIN

当我使用SQL Developer进行连接时,不使用TNS手动设置所有信息,它可以工作!

当我尝试在Excel中使用TNS连接时,我收到错误:

Message=ORA-12154: TNS:não foi possível resolver o identificador de conexão especificado

    ErrorCode=-2146232008

这意味着英文:“无法解析连接标识符”

有谁可以帮我解决这个问题?

提前致谢!


I am trying to connect into Oracle through Power Query > From Database > From Oracle Database and then I type BI_TST, which is within my TNSNAMES (located in: C:\oracle\product\10.2.0\client_2\network\ADMIN), and has the connection below inside:

BI_TST =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srv-oracle3.mycompany.com.br)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = bitst)
    )
  )

Also i have the variable path configured as TNS_ADMIN=C:\oracle\product\10.2.0\client_2\network\ADMIN.

When I use SQL Developer to connect, not using TNS put setting all the information manually, it works!

When I try to connect using TNS within Excel I get the error:

Message=ORA-12154: TNS:não foi possível resolver o identificador de conexão especificado

    ErrorCode=-2146232008

Wich means in English: "could not resolve the connect identifier"

Could anyone please help me in this issue?

Thanks in advance!


原文:https://stackoverflow.com/questions/24809391
更新时间:2023-03-08 18:03

最满意答案

OSM瓷砖服务是预先平铺的,您无法更改瓷砖的样式。

您有不同的解决方案来实现您的目标:

1- Openlayers为我们提供了一种连接Mapbox数据的方法。 我不太了解Mapbox ,但我所知道的是有一个API可以改变OSM数据的样式并渲染图像图块或矢量图块。 因此,在这个OL示例中,您可以看到它如何连接到数据以及它如何处理样式

2-困难的方法:您可以使用OSM的数据制作自己的底图。 你需要一个数据库来存储数据(PostgreSQL)和一个地图服务器来渲染数据并控制样式,比如Mapserver,Geoserver,Mapnik ......有很多选择。


OSM tiles service is pre-tiled, you can't change the style of the tiles.

You have different solutions to achieve your goal:

1- Openlayers give us a way to connect to Mapbox data. I don't know really well Mapbox, but what I know is that there is an API to change the style of OSM data and render imagery tiles or vector tiles. So in this OL example you can see how it connect to the data and how it handles style

2- The hard way: You can make your own basemap with the data of OSM. You will need a database to store the data (PostgreSQL) and a map server to render the data and control the style, like Mapserver, Geoserver, Mapnik... there is many options for that.

相关问答

更多
  • 您可以根据Google地图的参数手动构建网址。 你可以在这里看到所有的Direction参数(和其他)。 具有源地址和目标地址的基本网址如下所示: http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=ENTERSOURCEADDRESS&daddr=ENTERDESTINATIONADDRESS You can manually construct the URLs based on the parameters that Google Maps has ...
  • OSMAXPI是一种Web服务协议,可以帮助您查找某些内容。 你的情况有几个问题: 有一种方法可以根据边界框来查询OSM数据(所以不是由半径定义的圆形区域)。 该区域有多大的限制以及您可以使用单个查询获取多少数据。 另一种方法是下载Planet OSM文件并设置您自己的数据库和API服务,但这需要大量的硬件资源,因为数据库相当大且日益增长。 另外看看其他一些相关的QA: https://gis.stackexchange.com/questions/13555/looking-for-a-world-dat ...
  • 对于这种情况,Cloudmade是我的Map API选择。 Cloudmade was my Map API choice for this case.
  • 现在,音译选项仅影响城市标签和POI标签,但尚未针对街道实施。 这是我们为将来的SDK更新评估的功能之一。 Right now the transliteration option only affects city labels and POI labels but not is not yet implemented for streets. This is one of the features we're evaluating for a future SDK update.
  • 我将每对节点之间的“LENGTH”作为shapefile的VectorFeatures属性。 提取我运行的数字 let dim-street [] foreach gis:feature-list-of edges-dataset [ [?1] -> set dim-street lput ( read-from-string gis:property-value ?1 "LENGTH" ) dim-street ] I have the "LENGTH" between each pair ...
  • 根据我提出的另一个问题的意见,我能够解决这个问题: void CExportSettingsDlg::DrawSampleText(CDC *pDC) { CDC dcMem; CPen *pOldPen; CBrush *pOldBrush; CBitmap *pBmpOld; CFont *pOldFont, fntSample; LOGFONT lfSampleFont; int ...
  • 在一个搞笑的转折,这是你的HTML评论打破了CSS。 HTML注释语法: CSS注释语法: /* comment */ 我也整理了一些你的冗余代码。 这是工作: p { /*This will be executed for whether the text is hovered or not*/ font-family: 'Tangerine', sans; font-size: 32px; text-align: center; trans ...
  • 如果你想以编程方式处理字体,你可以通过在加载字体时定义字体大小来建议@ItachiUchiha: Font.loadFont(String name, double size) 这种方法的缺点 - 以及以编程方式处理它 - 是对于每种字体大小,您将需要由代码处理的字体实例。 我认为更清洁的解决方案是通过CSS处理字体。 从Java 8开始,可以通过CSS定义字体系列: @font-face { font-family: 'Roboto'; src: url('Roboto-Medium.t ...
  • OSM瓷砖服务是预先平铺的,您无法更改瓷砖的样式。 您有不同的解决方案来实现您的目标: 1- Openlayers为我们提供了一种连接Mapbox数据的方法。 我不太了解Mapbox ,但我所知道的是有一个API可以改变OSM数据的样式并渲染图像图块或矢量图块。 因此,在这个OL示例中,您可以看到它如何连接到数据以及它如何处理样式 2-困难的方法:您可以使用OSM的数据制作自己的底图。 你需要一个数据库来存储数据(PostgreSQL)和一个地图服务器来渲染数据并控制样式,比如Mapserver,Geose ...
  • 只需将下面几行添加到代码的开头。 With Application.ReplaceFormat.Font .Subscript = False .Color = 255 .TintAndShade = 0 End With 现在在所有的MatchCase:=True,之后添加下面的行MatchCase:=True, ReplaceFormat:=True Just add the below lines to the beginning of your code. With Ap ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)