本人不会shell,望大侠不吝赐教~~~~~

解决方案 »

  1.   

    shell就如批处理文件一样的。
      

  2.   


    你想用 shell 实现什么样的功能?
      

  3.   


    就是删除Linux下Oracle数据库里特定的几张表
      

  4.   


    这个很简单的,我给你简单写个例子吧配置文件:tablist.txt,用于配置需要删除哪几张表
    例如内容:
    test1
    test2shell 脚本
    #/bin/bash# 配置需要删除的表名TABLIST="./tablist.txt"{
        for tab in `cat ${TABLIST}`
        do
            echo "drop table $tab;"
        done
    } | sqlplus -l -s scott/tiger@ora11
    以上是 bsh,执行的时候使用 sh shellname.sh