1、导出库
exp huade/enter@orcl grants=y file=d:/huade.dmp buffer=65536
2、导出表
exp huade/enter@orcl grants=y tables=(ld_huade_grant) file=d:/grant.dmp buffer=65536
3、导入库
imp huade/enter@orcl file=e:/huade.dmp fromuser=huade touser=huade buffer=65536
4、导入表
imp huade_enter@orcl table=(ld_huade_grant) file=e:/grant.dmp fromuser=huade touser=huade buffer=65536
链接:https://note.youdao.com/share/?id=3175b130aa1426858be42d7c0c65065e&type=note#/
5:创建名为HSXXGK的表空间
create tablespace HSXXGK logging datafile 'E:\Oracle\tablespace\HSXXGK.dbf' size 1000M reuse autoextend on next 1280k maxsize 10000M extent management local segment space management auto;
6:创建名为trs的用户(注意enter是密码)
create user HSXXGK identified by enter default tablespace HSXXGK;
7:给用户trs授权
grant connect,resource,dba to HSXXGK;
9:登录
sqlplus / as sysdba