CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(
今天在CentOS7下使用exp語句匯出資料時遇到報錯,使用的指令碼都是其他環境下驗證過的指令碼,很是奇怪。
~~~~~~~ the end~~~~~~~~~
hoegh
2017.11.1
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]#
~~~~~~~ the end~~~~~~~~~
hoegh
2017.11.1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30162081/viewspace-2146700/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Solaris syntax error: unexpected end of fileError
- Solaris awk: syntax error near line 1 awk: bailing out near line 1ErrorAI
- 解決 eslint 的 Parsing error: Unexpected token 錯誤EsLintError
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- Laravel 8使用 佇列任務出現 「 syntax error, unexpected ')' 」錯誤解決Laravel佇列Error
- 【exp/imp不同版本】Oracle不同版本的exp/imp使用注意事項Oracle
- npm 安裝 uirecorder 報錯 Unexpected tokenNPMUI
- npm ERR! Unexpected token in JSON at position 0 while parsing near ’ npm ERR! <!–////////NPMJSONWhile
- exp&imp的使用方法
- oracle exp和impOracle
- 使用imp/exp遇到兩個問題
- 不同版本exp/imp使用注意事項
- 360 Atals:Cause: java.sql.SQLException: Proxy Warning - near “status“: syntax errorJavaSQLExceptionError
- PbootCMS 升級後網站打不開,解析錯誤 Parse error: syntax error, unexpected ‘:’, expecting ‘{’怎麼辦boot網站Error
- exp和imp詳解
- jquery Ajax 請求錯誤 Unexpected tokenjQuery
- jq jsonp跨域報錯之“Unexpected token :”的解決方案JSON跨域
- pecl PHP Parse error: syntax error, unexpected 'new' (T_NEW) 以及 XML缺失解決辦法PHPErrorXML
- exp匯出遭遇IMP-00020
- [20190520]exp imp on th fly.txt
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- 使用exp進行SQL報錯注入SQL
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- StringRedisTemplate操作Redis時拋: Unexpected token (VALUE_STRING)Redis
- oracle資料匯出匯入(exp/imp)Oracle
- Uncaught SyntaxError: Unexpected token <反思Error
- error unexpected trailing commaErrorAI
- npm install “Unexpected end of JSON input while parsing near”問題NPMJSONWhile
- 關於報錯An unexpected error occurred: “https://registry.yarnpkg.com/react: socket hang up“ErrorHTTPYarnReact
- Appium+python自動化54-appium-doctor報錯已解決(SyntaxError: Unexpected token ...)APPPythonError
- 如何解決"Parse error: syntax error"Error
- EXP、IMP、SQLLOADER、EXPDP、IMPDP、DBMS_METADATA、SQLPLUS等方面SQL
- exp匯出報錯EXP-00106問題處理
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- 【shell 】syntax error in conditional expressionErrorExpress
- 完美解決 Uncaught SyntaxError: Unexpected token ‘<‘Error
- [Bash] Error handlingError
- jwt生成token報錯JWT
- Syntax error, unrecognized expression: li[value=]ErrorZedExpress