blob: 8d05f45e1780aa600d83186903c86270e4ee60a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
DATABASEHOME=$1
HOSTNAME=$2
PORT=$3
DATABASEADMIN=$4
DBAPASSWD=$5
DATABASENAME=$6
DATABASEACLS=$7
BINDIR=${DATABASEHOME}/bin
echo "DBHOME = $DATABASEHOME"
echo "HOSTNAME = $HOSTNAME"
echo "PORT = $PORT"
echo "DATABASEADMIN = $DATABASEADMIN"
echo "DBAPASSWD = $DBAPASSWD"
echo "DATABASENAME = $DATABASENAME"
PATH=$PATH:$BINDIR
export PATH
echo "Please enter ${DATABASEADMIN}'s password for the SID ${DATABASENAME} to create an rt user";
$BINDIR/sqlplus ${DATABASEADMIN}@${DATABASENAME} @$DATABASEACLS
|