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:

GRANT ALL PRIVILEGES ON mySchema.* TO 'user';

What's the oracle equivalent?

link|improve this question

feedback

1 Answer

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: http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9013.htm

link|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
feedback

Your Answer

 
or
required, but never shown

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