zoukankan      html  css  js  c++  java
  • call_grant_dml.sql

    set echo off
    prompt
    prompt ================================================================================
    ========shell 调用方法

    prompt call_grant_dml.sql &1
    prompt

     ==SQL 定义变量,以及执行的sql

    set echo off pagesize 0 feedback off verify off serveroutput on size 1000000

    define v_input_grantee       = &1

    define v_grant_dml_work_file = ./log/grant_dml_work_file_&v_input_grantee..sql

    --动态生成执行的sql到变量中

    --
    -- construct the work file
    --
    spool &v_grant_dml_work_file
    begin
      if ('&v_input_grantee' = '&v_na') then
        dbms_output.put_line('-- Skipping this user ...');
      else

    --开始调用gen_grant_dml,并将生成的sql 写入一个文件中。
        dbms_output.put_line('@gen_grant_dml &v_input_grantee');
      end if;
    end;
    /
    spool off
    --
    -- call the work file
    --开始执行这个命令
    @&v_grant_dml_work_file

  • 相关阅读:
    tiger-complier 问题记录 类型检查
    leetcode 854. K-Similar Strings
    FPO优化简介
    [转载]深入解析结构化异常处理
    再看链接-WIN
    管道控制Telnet
    管道 简介与简单使用
    Detours 简介与简单使用
    netStat逆向分析
    Fport逆向分析以及C++实现
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/5868578.html
Copyright © 2011-2022 走看看