Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

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 at 14:28

Your Answer

 
discard

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.