Use Shell command to execute DB2 SQL
- Get the super right
su - db2inst1
- DB2 connect to your-own-db
db2 connect to "your-own-db"
- Execute sql
db2 -tvf /sqlDestination/xxx.sql
Edited at 2024/06/28
2024 Fighting!
Use Shell command to execute DB2 SQL
su - db2inst1
db2 connect to "your-own-db"
db2 -tvf /sqlDestination/xxx.sql
Edited at 2024/06/28
2024 Fighting!