Oracle数据库中如何创建一个用户并导入多个表的dmp文件?

       1.先准备好在Oracle数据库中创建一个用户如ect_shanxi,代码如下:
        create user ect_shanxi identified by ect_shanxi**;//创建用户名和密码
        grant connect,resource to ect_shanxi;  //以下皆为授予权限
        grant create any sequence to ect_shanxi;  
        grant create any table to ect_shanxi;  
        grant delete any table to ect_shanxi;  
        grant insert any table to ect_shanxi;  
        grant select any table to ect_shanxi;  
        grant unlimited tablespace to ect_shanxi;  
        grant execute any procedure to ect_shanxi;  
        grant update any table to ect_shanxi;  
        grant create any view to ect_shanxi;
        grant sysdba to ect_shanxi;
        grant imp_full_database to ect_shanxi;
        2.cmd打开命令行窗口,输入sqlplus,输入sys as sysdba

        3.在SQL>后输入上述代码即可创建用户,

        4.创建成功后,输入exit退出

        5.用ect_shanxi/ect_shanxi登录plsql客户端,此时表为空

        6.接下来导入表的dmp文件,将dmp存放在如下所示的位置    D:\anqing180705.dmp
        
        7.将代码:imp ect_shanxi/ect_shanxi file=D:\anqing180705.dmp  full=y输入到命令行

        8.导入完成之后,刷新plsql的tables,表都导入进来了
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值