Script sharing that kills oracle online users
This article mainly explains "script sharing to kill oracle online users". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "script sharing to kill oracle online users".
Kill the oracle online user and execute the script using the root user on the server where oracle resides
The parameter indicates that $1 is the oracle user
The code is as follows:
#! / bin/shfunction _ oracleplus () {su-oracle-c "$oraclehome/bin/sqlplus / nolog"