Mac OSX Snow Leopard 上的 Oracle Sqlplus 问题
我刚刚安装了带有 SQLPlus 扩展的适用于 Mac OSX 的 Oracle Instant Client,但遇到了以下问题。我可以连接到数据库实例和架构,并且可以执行查询,但是当我尝试“描述命令”时,它只是挂起。例如:
SQL> SELECT COUNT(*) FROM APPROVABLETAB;
COUNT(*)
----------
8
SQL> desc APPROVABLETAB;
// hangs indefinitely
有人有什么想法吗?
I just installed the Oracle Instant Client for Mac OSX with the SQLPlus extension and have the following problem. I can connect to a database instance and schema and I can do queries but when I try the "describe command" it just hangs. For example:
SQL> SELECT COUNT(*) FROM APPROVABLETAB;
COUNT(*)
----------
8
SQL> desc APPROVABLETAB;
// hangs indefinitely
Anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,describe 命令今天可以正常工作了。我在工作中使用 WIFI 和 VPN 连接时遇到了一些网络连接问题。现在我正在使用有线连接并且它可以工作。奇怪的是,前几天它的描述命令失败了,但查询却工作了。无论如何,我要继续前进。
Well the describe command is working today. I've been having some network connection problems at work using the WIFI and a VPN connection. Now I am using a wired connection and it's working. Strange that the other day it was failing for describe command but working for queries. Anyway, I'm moving on.
也许您使用的oracle客户端与服务器不匹配?其他客户端是否正确执行 desc 命令?
Perhaps the oracle client you are using doesn't match the server? Do any other clients perform the desc command properly?
sys 架构中是否存在无效对象?尝试:
如果报告属于 SYS 的无效对象,您可能需要重建目录。
另外,您的数据库也是在 Snow Leopard 上,还是在其他地方?您是否可以连接到另一个数据库并尝试使用描述命令?
该命令产生的输出与描述命令的输出大部分相同,它有效吗?
Are there invalid objects in the sys schema? Try:
You might need to rebuild the catalog if this reports invalid objects belonging to SYS.
Also, is your DB on Snow Leopard as well, or is it somewhere else? Is there another database you can connect to and attempt a describe command?
This command yields much of the same output as the describe command, does it work?