Mac OSX Snow Leopard 上的 Oracle Sqlplus 问题

发布于 2024-08-04 15:27:35 字数 289 浏览 10 评论 0原文

我刚刚安装了带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

寒冷纷飞旳雪 2024-08-11 15:27:35

好吧,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.

誰ツ都不明白 2024-08-11 15:27:35

也许您使用的oracle客户端与服务器不匹配?其他客户端是否正确执行 desc 命令?

Perhaps the oracle client you are using doesn't match the server? Do any other clients perform the desc command properly?

回眸一笑 2024-08-11 15:27:35

sys 架构中是否存在无效对象?尝试:

SELECT owner, object_name, object_type, status 
  FROM dba_objects 
 WHERE status <> 'VALID';

如果报告属于 SYS 的无效对象,您可能需要重建目录。

另外,您的数据库也是在 Snow Leopard 上,还是在其他地方?您是否可以连接到另一个数据库并尝试使用描述命令?

该命令产生的输出与描述命令的输出大部分相同,它有效吗?

SELECT column_name, data_type, data_length, nullable
  FROM user_tab_cols
 WHERE table_name = 'APPROVABLETAB'
 ORDER BY column_id;

Are there invalid objects in the sys schema? Try:

SELECT owner, object_name, object_type, status 
  FROM dba_objects 
 WHERE status <> 'VALID';

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?

SELECT column_name, data_type, data_length, nullable
  FROM user_tab_cols
 WHERE table_name = 'APPROVABLETAB'
 ORDER BY column_id;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文