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

    prompt
    prompt ================================================================================
    prompt call_create_syn.sql &1 &2 &3 &4 &5 &6
    prompt

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

    define v_input_un             = &1
    define v_input_pw             = &2
    define v_input_conn_str       = &3
    define v_input_owner          = &4
    define v_reconnect_un         = &5
    define v_reconnect_pw         = &6

    define v_create_syn_work_file = ./log/create_syn_work_file_&v_input_un..sql


    --
    -- reconnect to make sure the following pl/sql block can be run successfully
    --
    connect &v_reconnect_un/&v_reconnect_pw@&v_input_conn_str
    set echo off pagesize 0 feedback off verify off serveroutput on size 1000000

    -- construct the work file
    spool &v_create_syn_work_file
    begin
      if ('&v_input_un' = '&v_na') then
        dbms_output.put_line('-- Skipping this user ...');
      else
        dbms_output.put_line('@gen_create_syn &v_input_un &v_input_pw &v_input_conn_str &v_input_owner');
      end if;
    end;
    /
    spool off
    --

    -- call the work file
    --
    @&v_create_syn_work_file

  • 相关阅读:
    Electron踩坑记录
    TypeScript实现设计模式——生成器模式
    在express中使用ES7装饰器构建路由
    微信小程序下载文件(非图片),并校验扩展名。
    防抖与节流
    yarn
    spark
    docker php-fpm中安装GD库
    thinkphp6 多应用路由遇坑记
    CentOS 7 开启SSH远程登录
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/5888220.html
Copyright © 2011-2022 走看看