linux 匯出資料庫檔案及幾個linux小命令

來源:互聯網
上載者:User

標籤:連接埠號碼   scp   sql   sqlplus   acl   windows   copy   win   語句   

cd .. 返回上一層;

pwd 查看目前的目錄;

ssh -l oracle oracle_id 進入資料庫

ps -ef|grep oracle 查看當前oracle進程

sqlplus /nolog 進入sqlplus

linux下用$,sql下用!(似乎是這樣,以後進行查證)exp

匯出的sql語句:!exp username/[email protected] file=filename.dmp full=y

匯出來的是資料庫檔案,是放在資料庫中,需要將其copy出來到應用檔案中

在資料庫目錄下進行copy語句:scp -P 8888 /home/.../daochu.dmo [email protected]_id:/home/...remote_file

開始的時候一直提示目錄或檔案不存在,後來突然想到是不是我沒有加連接埠號碼就是這個-P,如果有的話一定要加上,不然會一直報。

這樣就copy到應用程式層了,Windows下可以用winSCP將資料下載下來,linux下可以用命令(似乎是這樣,我的不是linux,我想嘗試一下)

linux 匯出資料庫檔案及幾個linux小命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.