ORACLE 数据库常用命令

来源:互联网 发布:剑三正太捏脸数据导入 编辑:程序博客网 时间:2024/06/05 01:52

drop user  sa cascade --无用户次行不要
    create user sa
    IDENTIFIED by admin123
    default tablespace society;
    --temporary tablespace TEMP
    --profile DEFAULT
    --password expire
    --account lock;
    --Grant/Revoke role privileges
    grant connect to sa;
    grant resource to sa;
    grant dba to sa;
    --Crant/Revoke system privileges
    grant unlimited tablespace to sa;
    create tablespace society datafile 'H:\oradata\orcl\society.dbf' size 600m;--先在建目录D:\oradata\orcl
    


imp file=g:\daochu.dmp ignore=y log=h:\log.txt

 


imp file=g:\cha.dmp ignore=y log=h:\log.txt