zoukankan      html  css  js  c++  java
  • linux导入dmp的oracle文件

    hostnamectl set-hostname xxx linux修改主机名字
     
    登录linux下的oracle方式:sqlplus / as sysdba
     
     
    impdp scott/123@PROD(实列名字) file="ard2019-05-3003.dmp" cluster=N logfile=hljcz20180511.log encryption_password=********(1234567)
    1 需要给导入用户授权 导入/导出权限
    eg:grant IMP_FULL_DATABASE to scott;scott为用户名
    grant EXP_FULL_DATABASEto scott;
     
    2.unable to open dump file问题
     
    ./bin/mysqld --initialize --user=mysql --datadir=/data/mysql
     
    oracle 创建表空间的语句
    create tablespace arddb
     
    logging
     
    datafile '/data/app/oracle/admin/arddb'(指定表空间路径)
     
    size 1024m
     
    autoextend on
     
    next 500m
     
    extent management local;
     
    创建用户 关联表空间语句
    create user thams
     
    identified by "123"
     
    default tablespace arddb
     
    profile DEFAULT
     
    ACCOUNT UNLOCK;
     
    分别给用户授dba权限和表空间授无限增长权限
    grant dba to thams;
     
    grant unlimited tablespace to ARDDB;
     
    查看表空间语句:select * from v$tablespace;
     
    切换数据库用户命令 :conn thams
     
     
    查看表空间下的所有表
    Select Table_Name, Tablespace_Name From Dba_Tables Where Tablespace_Name ='表空间名字';
    查看某张表
    select * from THAMS.X_D_FILE82;
  • 相关阅读:
    java多线程2-总结
    java多线程1-生产者与消费者
    jedis中的两组方法
    理解socket的阻塞
    java设计模式5-命令模式
    我的BIOS
    java设计模式4-装饰者模式
    java设计模式3-单例模式
    android四大组件
    android:theme
  • 原文地址:https://www.cnblogs.com/qinyios/p/12267774.html
Copyright © 2011-2022 走看看