Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i've used mysql before and i'm now switching to oracle.

I've already created a user in oracle. Now i want to give it "all privileges" for a schema.

In mysql i can give all privileges (DML/DDL) for a schema "mySchema" without grant (DCL) like this:


What's the oracle equivalent?

share|improve this question
up vote 2 down vote accepted

It's quite the same:

GRANT ALL ON yourSchema.* TO (...)

whereas (...) is PUBLIC, 'username' (optionally followed by IDENTIFIED BY 'password') or a specific role you defined earlier.

See here for a more detailed explanation:

share|improve this answer
GRANT ANY ON testschema.* TO 'JMW'; fails! With ORA-00990 for ANY – JMW Nov 30 '11 at 10:26
Sorry, seems like "ANY" isn't (no longer?) valid - it's 'ALL' as well. I'll update the answer. – Roman Nov 30 '11 at 13:11
BS. Doesn't work on Oracle 10g2, as your link indicates – Lucio M. Tato Jun 10 '14 at 14:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.