2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Oracle SQL】nohupでsqlファイルを実行する

Last updated at Posted at 2019-11-18

sqlをバックグラウンド実行したいときに、nohupを組み合わせて使うことができます。


nohup sqlplus /nolog @ファイル名.sql >> ログファイル名.log &

コマンド実行後に以下の形式でプロセスIDが表示されます。


[数字]プロセスID

エンターを押すと、入力カーソルに戻ります。
 

nohup

「nohup コマンド &」のようにnohupを付けてコマンドを実行すると、このHUPシグナルを無視させます。つまり、仮想端末を閉じたりログアウトしたりしても、コマンドは終了せず、そのまま処理を続行します。

参考

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?