create user XXX identified by "XXXXXXXX";
grant connect,resource to XXX;
revoke connect from XXX;
alter user XXX identified by 新密码;
drop user XXX cascade;
alter user XXX account lock;
alter user XXX account unlock;
create user username identified by password;
grant role to username;
create session
alter session
create database link
create user
dba
create tablespace itcast datafile '/data/oracle.dbf' size 100m autoextend on next 10m;
create table classinfo(
classid number(2) primary key,
classname varchar(10) not null
);
drop user XX cascade;
drop tablespace '表空间名';
drop table 表名;
alter user XXX identified by XXXX;
insert into 表名 values (属性1,属性2,属性3);
update 表名 set column=value;
update 表名 set column=value where username=XXX;
select username from XX_users;
XX为dba,dba_users---查看全库的用户
XX为all,all_users---当前用户可以看到的
XX为user,user_users---查看当前用户的
select * from session_privs;
select * from user_sys_privs;
select * from user_tables;
select * from user_tab_comments;
查看已创建的表空间
select file_id,tablespace_name from dba_data_files;
查看oracle中当前已创建的目录
select * from dba_directories;