zoukankan      html  css  js  c++  java
  • expdp 备份数据库-附带报错信息

    • 操作系统层面创建目录

    [root@Oracle11g ~]# mkdir -p /home/oracle/db_back/

    • 修改目录的所属用户、所属组

    [root@Oracle11g ~]# chown -R oracle:oinstall /home/oracle/db_back/

    • 给目录授予相应的权限

    (用户对 该目录应该有  读+写+执行 的权限)

    [root@Oracle11g ~]# chmod 700 /home/oracle/db_back/

    • oracle数据库层面创建目录

    SQL> create directory ora_back as '/home/oracle/db_back/';

    Directory created.

    • 授予相应用户的执行权限

    SQL> grant all on directory ora_back to system;

    Grant succeeded.

    • 授予用户 全库导出的权限

    SQL> grant EXPORT FULL DATABASE  to system;

    Grant succeeded.

    • 查看执行 全库导出的脚本

    [oracle@Oracle11g scripts]$ cat expdp.sh

    #!/bin/bash

    export ORACLE_BASE=/u01/app/oracle

    export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

    export ORACLE_SID=orcl

    expdp system/manager  directory=ora_back dumpfile=$ORACLE_SID+`date +%Y+%m+%d+%H+%M+%S`.dmp  full=y logfile=$ORACLE_SID+`date +%Y+%m+%d+%H+%M+%S`.log

    • 以下附带 错误操作及 错误分析

    错误操作1

    [root@Oracle11g ~]# chmod 600 /home/oracle/db_back/

    [oracle@Oracle11g scripts]$ sh expdp.sh

    Export: Release 10.2.0.1.0 - 64bit Production on Tuesday, 02 December, 2014 16:05:46

    Copyright (c) 2003, 2005, Oracle.  All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

    With the Partitioning, OLAP and Data Mining options

    ORA-39002: invalid operation

    ORA-39070: Unable to open the log file.

    ORA-29283: invalid file operation

    ORA-06512: at "SYS.UTL_FILE", line 475

    ORA-29283: invalid file operatio

    错误分析:

    oracle用户对该目录只有 读+写  的权限

  • 相关阅读:
    Anaconda的安装和更新
    Python数据分析学习目录
    国标28181sip开源库介绍(陆续补充完备)
    开源sip server & sip client 和开发库 一览
    几种开源SIP协议栈对比
    用TCP穿透NAT(TCP打洞)的实现
    使用TCP协议的NAT穿透技术
    TCP点对点穿透探索--失败
    snmp++开发实例一
    socket跟TCP/IP 的关系,单台服务器上的并发TCP连接数可以有多少
  • 原文地址:https://www.cnblogs.com/iyoume2008/p/4821891.html
Copyright © 2011-2022 走看看