dangsn
2025-01-16 d6e9b6f11fd8f36895eb70f092bdd8c412750111
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