如何在linux的Oracle上後台執行SQL,oraclesql

來源:互聯網
上載者:User

如何在linux的Oracle上後台執行SQL,oraclesql

   情境:如果你要收集庫的統計資訊,大概要7-8個小時,你又要把自己的電腦關掉,想在伺服器上執行,用下列方法。

   nohup sqlplus user/password@tns @xxx.sql >run.log & 

   執行上面的語句後,關閉遠程視窗,通過v$session和v$session_wait查看是在跑。也可以通過user_tables的最後分析時間。


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.