zoukankan      html  css  js  c++  java
  • 审计

    MySQL:

    select * from actor into outfile '/export/acotr.txt' fields terminated by '<[!]>'  lines terminated by '<[end]>';

    mysqldump -uroot -p -S /export/servers/mysql/tmp/mysql.sock -T /export sakila actor --fields-terminated-by '<[!]>'   --lines-terminated-by '<[end]>';


    ORACLE:

    1.将ociuldr配置文件上传到BIN目录下

    2.chown oracle.oinstall ociuldr
      chmod 775 ociuldr

    3.示例:
      su - oracle
      ociuldr user=scott/tiger@orcl query="select * from scott.emp" field='<[!]>' record='<[end]>' file=/u01/emp.txt table=scott.emp

    4.用batch将数据文件生成多个文件,默认一个batch是50W数据量,指定file选项来定义生成的文件名, 中间请包含"%b“字样, 在生成文件时, ”%b“会被打印成序号
      ociuldr user=scott/tiger@orcl query="select * from scott.emp" field='<[!]>' record='<[end]>' file=/u01/emp_%b.txt table=scott.emp  batch=3


    SqlSERVER:

        
          库名                  表名                             导入路径
    bcp Oracle20141022.dbo.iou_receipt_1028 in "D:oracle_datashenji_data10225.csv" -T -t"<[!]>" -r"<[end]>" -c -b 5000 -e "D:oracle_datashenji_data1022logiou_receipt_1028.log" -o "D:oracle_datashenji_data1022logiou_receipt_1028.logd"

    导出日志                                                       报错日志
     远程:
    -S 172.17.29.127 -U sa -P "abc123456"

  • 相关阅读:
    2019-05-07
    2019-04-28 问题记录
    2019-04-15 python深浅复制
    2019-04-11 统计日志重复数量
    2019-03-23 shell练习,日志统计
    问题记录2019-03-12
    问题记录2019-03-06(todo)
    回归
    Mac进行 usr/bin 目录下修改权限问题,operation not permitted
    个人的随笔心情
  • 原文地址:https://www.cnblogs.com/hankyoon/p/5174592.html
Copyright © 2011-2022 走看看