Skip to content

Commit f4d7f03

Browse files
authored
loadstorm import of storm.zip
1 parent bc2db2e commit f4d7f03

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

upload/loadstorm

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
cd ~/storm
3+
export THEPDB="$1"
4+
if test "m$THEPDB" = "m"
5+
then
6+
export THEPDB=ORDS
7+
fi
8+
sqlplus system/oracle@$THEPDB <<EOF
9+
set echo on
10+
grant dba, connect , resource, unlimited tablespace, create session to storm identified by oracle;
11+
EOF
12+
if test -f storm.zip
13+
then
14+
if test -f storm.dmp
15+
then
16+
echo storm.zip already unzipped
17+
else
18+
echo unzipping storm.zip
19+
unzip storm.zip >> storm_vm_log 2>&1
20+
fi
21+
echo importing storm.dmp
22+
imp storm/oracle@$THEPDB FILE=storm.dmp FULL=Y >> storm_vm_log 2>&1
23+
fi

0 commit comments

Comments
 (0)