久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

CentOS7使用exp/imp時報錯怎么辦

117次閱讀
沒有評論

共計 2149 個字符,預計需要花費 6 分鐘才能閱讀完成。

這篇文章給大家分享的是有關 CentOS7 使用 exp/imp 時報錯怎么辦的內容。丸趣 TV 小編覺得挺實用的,因此分享給大家做個參考,一起跟隨丸趣 TV 小編過來看看吧。

在 CentOS7 下使用 exp 語句導出數據時遇到報錯,使用的腳本都是其他環境下驗證過的腳本,很是奇怪。

1. 測試環境

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]#

2.exp 語句報錯

點擊 (此處) 折疊或打開

[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 `(

3. 解決

需要在括號上添加雙引號才行。

點擊 (此處) 折疊或打開

[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 時報錯怎么辦”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-24發表,共計2149字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 遂昌县| 荃湾区| 灵山县| 武汉市| 上高县| 孟州市| 师宗县| 威信县| 高陵县| 扶风县| 潮安县| 九龙坡区| 罗定市| 长垣县| 上杭县| 扎赉特旗| 克什克腾旗| 青阳县| 呼伦贝尔市| 英山县| 高台县| 化州市| 兴安盟| 民勤县| 武乡县| 潜江市| 越西县| 连山| 东阳市| 北安市| 东至县| 巢湖市| 宝丰县| 利津县| 琼结县| 石渠县| 荔波县| 榕江县| 莱西市| 安化县| 宝应县|