尝试将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 typeBI_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
最满意答案
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.
-
如何在SKMaps中显示街道的国际/音译名称?(How do I show international / transliterated names for streets in SKMaps?)[2021-12-25]
现在,音译选项仅影响城市标签和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 ...
-
悬停时文字的字体(Font for Text on Hover)[2024-01-08]
在一个搞笑的转折,这是你的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 ...
-
更改街道的文字/字体(Change text/font of streets)[2022-11-16]
OSM瓷砖服务是预先平铺的,您无法更改瓷砖的样式。 您有不同的解决方案来实现您的目标: 1- Openlayers为我们提供了一种连接Mapbox数据的方法。 我不太了解Mapbox ,但我所知道的是有一个API可以改变OSM数据的样式并渲染图像图块或矢量图块。 因此,在这个OL示例中,您可以看到它如何连接到数据以及它如何处理样式 2-困难的方法:您可以使用OSM的数据制作自己的底图。 你需要一个数据库来存储数据(PostgreSQL)和一个地图服务器来渲染数据并控制样式,比如Mapserver,Geose ... -
替换文字并更改字体颜色(Replace Text and Change font color)[2022-05-13]
只需将下面几行添加到代码的开头。 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 ...