Oracle常用命令

lsnrctl start;
oradim -start -sid orcl;

sqlplus / as sysdba;

create user lcf identified by lcf;

grant connect,create session,create table,unlimited tablespace to lcf;

grant exp_full_database , imp_full_database to lcf;

revoke exp_full_database from lcf;


create table mytable( id int);
insert into mytable values (1);
select * from mytable;


select * from user_sys_privs;

exit

sqlplus lcf/lcf;

系统权限:
create session,create table,unlimited tablespace
对象权限:
grant select on mytable to lcf;
, insert on , all on mytable to lcf;

revoke ...from ...

你可能感兴趣的:(oracle)