ludc
2025-01-16 391eec3114a17e68652434c6eae610799d80290e
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