田源
2024-06-19 6e4caa28c31967d2ad7a505e90a13f9a9f894387
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