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

  • 相关阅读:
    2072=删数问题
    2872=M--二分查找
    4165=全排列问题
    2805=大家快来A水题
    4148=1.1联结词真值运算
    2748=第X大的数
    3479=青蛙过河
    1200=汉诺塔
    Leetcode92_反转链表II
    Leetcode206_反转链表
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/5868578.html
Copyright © 2011-2022 走看看