0

there are two tables 1. employees and 2. departments

when I try to describe the two tables with the following code

desc employees;
desc departments;

I am getting the following error

Object to be described could not be found.

5
  • 1
    desc is not an sql command, it is a sql*plus command. Commented Dec 20, 2013 at 5:35
  • 1
    How are you executing those commands? What client are you using? What is the exact error message? Commented Dec 20, 2013 at 5:43
  • @danihp when I use it individually, like desc employees - it is describing the table. Why it is not running for desc employees; desc departments Commented Dec 20, 2013 at 5:54
  • @NicholasKrasnov I am using Oracle 10g database express edition Commented Dec 20, 2013 at 5:55
  • I say that describe is not an SQL Standard Command neither a Oracle SQL Command it is a SQL*PLUS tool command. This is not a solution, only a remark. In question title you talk about sql commands but samples are not. See @APC answer. Commented Dec 20, 2013 at 8:17

2 Answers 2

1

you can never run two sqlplus commands at a time, you can queue your commands in your script, and execute the script. working principle is like this, when it sees the first word , if it realises as a proper keyword, it blindly try to execute what ever next to it.!

Sign up to request clarification or add additional context in comments.

Comments

1

DESCRIBE is a SQL*Plus command. We can only run it in a SQL*Plus client, or an emulator such as PL/SQL Developer's command window.

In SQL*Plus we get this error message when we attempt to describe an object which doesn't exist:

SQL> desc t34
ERROR:
ORA-04043: object t34 does not exist


SQL> 

Whereas in SQL Developer worksheets we get this

desc t34
ERROR:                           
-------------------------------- 
ERROR: object T34 does not exist 

So you must be using a different client.

In the end it does not matter, all the messages mean the same thing: the object doesn't exist. The most likely explanation is that you're connected as a user different from the owner of the tables.

1 Comment

I am using oracle 10g database express edition. it's it an SQL plus client ??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.