Oracle 新建用户的sql语句

DROP USER OBS_ZHUJP CASCADE;
CREATE USER OBS_ZHUJP PROFILE DEFAULT IDENTIFIED BY OBS_ZHUJP DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;
GRANT DELETE ANY TABLE TO OBS_ZHUJP;
GRANT DROP ANY TABLE TO OBS_ZHUJP;
GRANT INSERT ANY TABLE TO OBS_ZHUJP;
GRANT SELECT ANY TABLE TO OBS_ZHUJP;
GRANT UNLIMITED TABLESPACE TO OBS_ZHUJP;
GRANT UPDATE ANY TABLE TO OBS_ZHUJP;


exp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp owner=HO2_CTF full=y

imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_LUYW IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_LVL IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_ZHANGL IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_FENGY IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_DENGY IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_LIQK IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_ZHOUL IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_CHENM IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_ZHUJP IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_WEIQF IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_HEDA IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_KOIZUMI IGNORE=Y log=c:/implog.log
imp HO2_CTF/HO2_CTF@OBS file=c:/t4cdbdata.dmp fromuser=HO2_CTF TOUSER=OBS_GUOYF IGNORE=Y log=c:/implog.log

你可能感兴趣的:(SQL)