您好,登錄后才能下訂單哦!
這篇文章給大家分享的是有關(guān)CentOS7使用exp/imp時(shí)報(bào)錯(cuò)怎么辦的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過來看看吧。
在CentOS7下使用exp語句導(dǎo)出數(shù)據(jù)時(shí)遇到報(bào)錯(cuò),使用的腳本都是其他環(huán)境下驗(yàn)證過的腳本,很是奇怪。
CentOS 7+Oracle11.2.0.3.0
點(diǎn)擊(此處)折疊或打開
[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]#
點(diǎn)擊(此處)折疊或打開
[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 `(
需要在括號上添加雙引號才行。
點(diǎn)擊(此處)折疊或打開
[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]#
感謝各位的閱讀!關(guān)于“CentOS7使用exp/imp時(shí)報(bào)錯(cuò)怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。