imp-匯入小寫字母的表
# 1建立測試表“emp_bak"
>使用雙引號建立的表,預設為小寫字母的表.
```
SQL> create table "emp_bak" as select * from emp;
Table created.
SQL> slect * from tab;
SP2-0734: unknown command beginning "slect * fr..." - rest of line ignored.
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
BONUS TABLE
DEPT TABLE
EMP TABLE
E_TMP TABLE
OD TABLE
OUTPUT TABLE
OUTPUT2 TABLE
SALGRADE TABLE
TS1 TABLE
TS2 TABLE
emp_bak TABLE
13 rows selected.
```
# 小寫字母表特點
查詢需要使用單引號:
```
SQL> select count(*) from emp_bak;
select count(*) from emp_bak
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select count(*) from "emp_bak";
COUNT(*)
----------
14
```
#是否可以建立同名大寫的表?
```
SQL> create table emp_bak as select * from emp;
Table created.
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
BONUS TABLE
DEPT TABLE
EMP TABLE
EMP_BAK TABLE
E_TMP TABLE
emp_bak TABLE
```
# 如何單獨匯入小寫字母的表呢?
# exp 全使用者匯出
```
[oracle@prod04 ~]$ exp scott/snow file=snow1.dmp
Export: Release 11.2.0.4.0 - Production on Mon Jan 7 18:54:29 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table EMP_BAK 14 rows exported
. . exporting table E_TMP 14 rows exported
. . exporting table OD 4 rows exported
. . exporting table OUTPUT 5 rows exported
. . exporting table OUTPUT2 3 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TS1 7585 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table TS2 288657 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table emp_bak 14 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully with warnings.
```
#解決方法:
```
[oracle@prod04 ~]$ imp scott/snow file=snow1.dmp tables='\"emp_bak\"'
Import: Release 11.2.0.4.0 - Production on Mon Jan 7 18:45:02 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V11.02.00 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table "emp_bak" 14 rows imported
Import terminated successfully without warnings.
```
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2374829/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- C語言判斷輸入小寫字母的個數C語言
- 1138:將字串中的小寫字母轉換成大寫字母(C C++)字串C++
- 013--Hbuilder--js--將字串中所有大寫字母改成小寫,所有小寫字母改成大寫UIJS字串
- Python如何列印出26個大寫字母和26個小寫字母Python
- C語言:將字串中所有小寫字母轉為大寫字母C語言字串
- 2161: 【例9.3】小寫字母轉大寫字母 【超出字元資料範圍】字元
- php首字母小寫怎麼轉大寫PHP
- 首字母因為小寫玩了仨小時
- Leecode709. 轉換成小寫字母
- Lombok首字母小寫,第二個字母大寫,jackson反序列化失敗Lombok
- 大小寫字母的asc碼
- ThinkPHP5.1 Excel 表的匯入匯出操作 (PHPExcel)PHPExcel
- 模組匯入小結
- 將大量檔案的擴充名中大寫字母改為小寫:Python實現Python
- fdw批次匯入外部表
- postgresql怎麼匯入表SQL
- Excel 表匯入資料Excel
- LeetCode每日一題: 轉換成小寫字母(No.709)LeetCode每日一題
- Go 實現字串首字母大、小寫函式Go字串函式
- 關閉mac輸入法首字母大寫Mac
- 登入密碼長度至少8位,必須符合由數字,大寫字母,小寫字母,特殊符,至少其中三種組成密碼密碼
- 比 poi匯入匯出更好用的 EasyExcel使用小結Excel
- 【oracle 多種形式的外部表匯入、匯出】實驗Oracle
- mysqldump匯出匯入所有庫、某些庫、某些表的例子MySql
- ClickHouse 資料表匯出和匯入(qbit)
- Java之POI操作Excel表-匯入匯出JavaExcel
- 將資料匯入kudu表(建立臨時hive表,從hive匯入kudu)步驟Hive
- 只匯入表結構及索引的方法索引
- Oracle 12c expdp和impdp匯出匯入表Oracle
- excel大寫字母轉換Excel
- JavaScript字母大小寫轉換JavaScript
- Day39--返回大寫字母的字串字串
- 這個欄位我明明傳了呀,為什麼收不到 - Spring 中首字母小寫,第二個字母大寫造成的引數問題Spring
- elasticsearch匯入匯出工具elasticdump安裝和使用小記Elasticsearch
- OracleDatabase——資料庫表空間dmp匯出與匯入OracleDatabase資料庫
- 【微信小程式】小程式內如何匯入vantUI元件微信小程式UI元件
- IDEA匯入專案有個小JIdea
- Pycharm自動匯入模組小技巧PyCharm