ottertune/client/driver/oracleScripts/snapshotOracle.sh

12 lines
130 B
Bash
Raw Normal View History

2019-08-23 08:47:19 -07:00
#!/bin/sh
su - oracle <<EON
oracle
sqlplus / as sysdba <<EOF
exec dbms_workload_repository.create_snapshot;
quit
EOF
exit
EON