• oracle自动imp脚本


    摘自:http://www.pcppc.cn/shujuku/ORACLE/shujuku_163351.html

    您正在看的ORACLE教程是:oracle自动imp脚本。
      先删除用户,在重建用户,然后赋权,
    脚本放到crontab中定时执行即可

    source /opt/.bash_profile
    DATE=$(date +%Y%m%d)
    sqlplus /nolog <<EOF
    connect / as sysdba;
    DROP USER WAPUSER CASCADE;
    DROP USER JLTGAME CASCADE;
    CREATE USER "WAPUSER" PROFILE "DEFAULT"
        IDENTIFIED BY "123456" DEFAULT TABLESPACE "JLTGAME"
        TEMPORARY TABLESPACE "TEMP"
        ACCOUNT UNLOCK;
    CREATE USER "JLTGAME" PROFILE "DEFAULT"
        IDENTIFIED BY "JLTGAME123" DEFAULT TABLESPACE "JLTGAME"
        TEMPORARY TABLESPACE "TEMP"
        ACCOUNT UNLOCK;
    GRANT CREATE VIEW          TO JLTGAME;
    GRANT CREATE TABLE         TO JLTGAME;
    GRANT ALTER ANY TYPE       TO JLTGAME;
    GRANT CREATE SESSION       TO JLTGAME;
    GRANT CREATE SYNONYM       TO JLTGAME;
    GRANT CREATE TRIGGER       TO JLTGAME;
    GRANT ALTER ANY INDEX      TO JLTGAME;
    GRANT ALTER ANY TABLE      TO JLTGAME;
    GRANT CREATE ANY TYPE      TO JLTGAME;
    GRANT CREATE ANY VIEW      TO JLTGAME;
    GRANT CREATE SEQUENCE      TO JLTGAME;
    GRANT CREATE SNAPSHOT      TO JLTGAME;
    GRANT ALTER TABLESPACE     TO JLTGAME;
    GRANT CREATE ANY INDEX     TO JLTGAME;
    GRANT CREATE ANY TABLE     TO JLTGAME;
    GRANT CREATE PROCEDURE     TO JLTGAME;
    GRANT ALTER ANY TRIGGER    TO JLTGAME;
    GRANT CREATE ANY TRIGGER   TO JLTGAME;
    GRANT ALTER ANY INDEXTYPE  TO JLTGAME;
    GRANT CREATE ANY INDEXTYPE TO JLTGAME;
    GRANT UNLIMITED TABLESPACE TO JLTGAME;
    exit
    EOF
    imp userid=jltgame/JLTGAME123 file=/backup/52backup/jltgame$DATE.dmp full=y log=/opt/logjltgame$DATE.dmp


  • 相关阅读:
    javascipt加强对类的理解
    PHP(http协议)相关应用知识
    javascipt对象成员函数
    PHP(http协议)防盗链技术(小练习)
    javasricpt二维数组矩形转置
    PHP二维数组矩形转置
    javascipt冒泡排序
    用vim解压各种格式
    转载:【菜鸟专用】使用LaTeX轻松撰写精美个人简历
    Ruby的gets和gets.chmop
  • 原文地址:https://www.cnblogs.com/d9394/p/10611755.html
Copyright © 2020-2023  润新知