這篇文章給大家分享的是有關CentOS7使用exp/imp時報錯怎么辦的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業的熱愛。我們立志把好的技術通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:域名注冊、網頁空間、營銷軟件、網站建設、科爾沁網站維護、網站推廣。
在CentOS7下使用exp語句導出數據時遇到報錯,使用的腳本都是其他環境下驗證過的腳本,很是奇怪。
CentOS 7+Oracle11.2.0.3.0
點擊(此處)折疊或打開
[root@localhost hoegh]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
[root@localhost hoegh]#
[root@localhost hoegh]# sqlplus sys/sys as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on 星期三 11月 1 11:43:51 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[root@localhost hoegh]#
點擊(此處)折疊或打開
[root@localhost hoegh]#
[root@localhost hoegh]# exp hoegh/hoegh tables=(HOEGH1,HOEGH2,HOEGH3,HOEGH4,HOEGH5) file=/home/hoegh/hoegh.dmp
bash: syntax error near unexpected token `(
需要在括號上添加雙引號才行。
點擊(此處)折疊或打開
[root@localhost hoegh]#
[root@localhost hoegh]# exp hoegh/hoegh tables="(HOEGH1,HOEGH2,HOEGH3,HOEGH4,HOEGH5)" file=/home/hoegh/hoegh.dmp
Export: Release 11.2.0.3.0 - Production on 星期三 11月 1 11:44:58 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table HOEGH1 2 rows exported
. . exporting table HOEGH2 500 rows exported
. . exporting table HOEGH3 1500 rows exported
. . exporting table HOEGH4 2 rows exported
. . exporting table HOEGH5 500 rows exported
Export terminated successfully without warnings.
[root@localhost hoegh]#
感謝各位的閱讀!關于“CentOS7使用exp/imp時報錯怎么辦”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
當前題目:CentOS7使用exp/imp時報錯怎么辦
標題來源:http://vcdvsql.cn/article8/gjdhop.html
成都網站建設公司_創新互聯,為您提供微信小程序、軟件開發、建站公司、網站營銷、網站策劃、Google
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯