zoukankan      html  css  js  c++  java
  • oracle 导入导出

    新建表空间
    create tablespace whfxt datafile 'D:whfxt.ora' size 500m;

    create user whfxt identified by whfxt default tablespace whfxt quota 200m on users;

    grant all privileges to whfxt;


    imp username/password@SID file=XXX.dmp full=y


    grant dba to cms ;

    创建表空间
    create tablespace std
    datafile 'E:/oracle_tablespaces/DEMOSPACE_TBSPACE.dbf'
    size 1500M
    autoextend on next 50M maxsize 3000M;


    create user demo identified by demo default tablespace std;

    grant all privileges to whfxt;
    grant dba to cms ;


    删除用户和表空间
    drop user ×× cascade

    DROP TABLESPACE tablespace_name INCLUDING CONTENTS AND DATAFILES;

    导出表

    EXP SONIC/SONIC BUFFER=64000 FILE=C:SONIC.DMP OWNER=SONIC

    导出空表需要加一步
    select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0


    导入表


    imp username/password@SID file=XXX.dmp ignore=y statistics=none buffer=1000000000 fromuser=导出用户 touser=导入用户

  • 相关阅读:
    修改IIS下默认的ASP.NET版本。
    smo算法
    支持向量机通俗导论
    二次规划
    交叉熵
    机器学习中的维数灾难
    矩阵与线性变换
    l2正则化
    Matlab 的reshape函数
    matlab 等值线函数 contour
  • 原文地址:https://www.cnblogs.com/xxwtfw/p/7248435.html
Copyright © 2011-2022 走看看