田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
source ./oracle_env.sh
 
echo "input oracle user"
read oracle_user
 
echo "input password"
read oracle_password
 
echo "input default tablespace"
read oracle_tablespaces
 
echo "execute Y|N"
read flag
 
 
if [[ $flag == "N" ]];then
 
  echo "exit "
  exit;
 
fi
 
sqlplus / as sysdba @$spath/create_user.sql $oracle_user $oracle_password $oracle_tablespaces </dev/null