PowerDesigner匯出SQL,匯入到Oracle中查詢表結構報“ORA-04043: 對象XXX不存在”解決

來源:互聯網
上載者:User
環境


Oracle 11.2.0 + SQL Plus + PowerDesigner 15.1

 

問題


這學期學習Oracle資料庫應用技術,需要做一個課程設計。PowerDesigner匯出SQL,匯入到Oracle中查詢表結構報“ORA-04043: 對象XXX不存在”錯誤。

 

解決


查詢表結構時加上雙引號。

 

總結


工具自動產生的SQL會有些問題,所以我是不建議使用工具自動產生的,手寫才是保證萬無一失的最好方法。

 

動作記錄
G:\編程資料\Learning\資料庫應用技術 Oracle\實驗\實驗五>sqlplus wgbSQL*Plus: Release 11.2.0.1.0 Production on 星期二 6月 11 09:07:05 2013Copyright (c) 1982, 2010, Oracle.  All rights reserved.輸入口令:串連到:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> SELECT * from tab;TNAME                          TABTYPE  CLUSTERID------------------------------ ------- ----------tb_class                       TABLEtb_course                      TABLEtb_score                       TABLEtb_select                      TABLETNAME                          TABTYPE  CLUSTERID------------------------------ ------- ----------tb_student                     TABLEtb_teacher                     TABLEtb_user                        TABLE已選擇7行。SQL> DESC tb_class;ERROR:ORA-04043: 對象 tb_class 不存在SQL> DESC tb_course;ERROR:ORA-04043: 對象 tb_course 不存在SQL> DESCRIBE tb_class;ERROR:ORA-04043: 對象 tb_class 不存在SQL> SELECT * from tb_class  2  ;SELECT * from tb_class              *第 1 行出現錯誤:ORA-00942: 表或視圖不存在SQL> DESC "tb_class"; 名稱                                      是否為空白? 類型 ----------------------------------------- -------- ---------------------------- n_teacher_id1                                      NUMBER(8) n_student_id                                       NUMBER(8) n_class_id                                NOT NULL NUMBER(8) vc_class_name                             NOT NULL VARCHAR2(40) vc_class_col                              NOT NULL VARCHAR2(30) n_course_teacher_id                       NOT NULL NUMBER(8)
參考資料

http://blog.csdn.net/bupt_zoucq/article/details/6712198

  我的郵箱:wgbno27@163.com  新浪微博:@Wentasy27           公眾平台:JustOracle(號:justoracle)  資料庫技術交流群:336882565(加群時驗證 From CSDN XXX)  Oracle交流討論群組:https://groups.google.com/d/forum/justoracle  By Larry Wen
 
@Wentasy 博文僅供參考,歡迎大家來訪。如有錯誤之處,希望批評指正。原創博文如需轉載請註明出處,謝謝 [CSDN部落格]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.