yuxc
2024-08-06 769e437befb3354c1113ca5b5c2b8240995078be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
source ./oracle_env.sh
echo "input oracle directory"
read oracle_dir
 
echo "input oracle path"
read oracle_path
 
echo "input user who you grant write,read on directory"
read oracle_user
 
echo "execute Y|N"
read flag
 
 
if [[ $flag == "N" ]];then
 
  echo "exit "
  exit;
 
fi
 
sqlplus / as sysdba @$spath/create_dir.sql $oracle_dir $oracle_path $oracle_user </dev/null