将Shiny WebApp连接到Oracle数据库
我正在使用R Studio构建一个闪亮的Web应用程序。
现在,我希望从我的公司Oracle SQL Server上使用数据。
在计算机上,我可以轻松地通过ODBC建立连接,因为我的计算机上有驱动程序。使用这样的代码:
con <- dbConnect(odbc::odbc(), "name", UID="uid", PWD= "pwd")
现在,将这种连接上传到ShinyApps.io时是否可以使用?
另外,使用此代码,我只能在我们的公司VPN网络内连接。如何从外部建立连接?我尝试添加主机和端口,但这不起作用。
多谢 :)
I am building a shiny web app with r studio.
Now I want data from my companys oracle sql server on it.
On my computer, I can easily establish a connection via odbc, because I have the driver on my computer. With code like this:
con <- dbConnect(odbc::odbc(), "name", UID="uid", PWD= "pwd")
Now, is this connection possible when uploaded to shinyapps.io?
Also, with this code, I can only connect inside our companys vpn-network. How do I establish a connection from outside? I tried adding host and port, but that does not work.
Thanks a lot :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论