oracle常用功能语句

阅读更多
  
  create user HIRISUN identified by hirisun;
  
  create tablespace hirisun_space datafile 'd:\dataBase\HIRISUNDATA.DBF' size 5120m;
  
  alter user HIRISUN default tablespace hirisun_space;
  
  grant create session  to HIRISUN;
  grant connect,resource to HIRISUN; 
  
   GRANT DBA TO HIRISUN; 

exp TMREMOTEEDU/remoteedu@orcl file=d:\tmremoteedu.dmp owner=(orcl,TMREMOTEEDU)
imp HIRISUN/hirisun@scga-new  file='D:\数据\full.dmp' log='D:\dataBase\hirisunData.log' fromuser=HIRISUN touser=HIRISUN  ignore=y  full=y;

 select username, DEFAULT_TABLESPACE from dba_users a where a.username='HIRISUN';

 
  drop user HIRISUN cascade;
  
  drop tablespace hirisun_space INCLUDING CONTENTS AND DATAFILES;
  
  alter user HIRISUN account unlock/lock;
  
  alter user TMREMOTEEDU identified by remoteedu;
  
  alter system kill session'151,2333';
  select saddr,sid,serial#,paddr,username,status from v$session where username is not null
alter database open;

你可能感兴趣的:(oracle,sql)