Oracle 常用运维命令

表空间

create tablespace sdt  datafile ‘d:\tablespace\demp’ size 800m extent management local segment space management auto;

索引表空间

create tablespace sdt_Index datafile ‘d:\tablespace\demo’ size 512m extent management local segment space management auto;

建用户

create user demo identified by demo default tablespace sdt;

赋权

grant connect,resource to demo;
grant create any sequence to demo;
grant create any table to demo;
grant delete any table to demo;
grant insert any table to demo;
grant select any table to demo;
grant unlimited tablespace to demo;
grant execute any procedure to demo;
grant update any table to demo;
grant create any view to demo;

导入导出命令

exp demo/demo@orcl file=d:/backup.dmp full=y
imp demo/demo@orcl file=d:/backup.dmp full=y ignore=y
IP远程服务器导出方式: exp demo/demo@127.0.0.1:1521/orcl file=d:/backup.dmp full=y

共有 0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注