Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

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;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top