PowerDesigner导出SQL,导入到Oracle中查询表结构报“ORA-04043:
环境 Oracle 11.2.0 SQL Plus PowerDesigner 15.1 问题 这学期学习Oracle数据库应用技术,需要做一个课程设计。PowerDesigner导出SQL,导入到Oracle中查询表结构报“ORA-04043: 对象XXX不存在”错误。 解决 查询表结构时加上双引号。 总结 工具自动生成的SQL
环境
Oracle 11.2.0 + SQL Plus + PowerDesigner 15.1
问题
这学期学习Oracle数据库应用技术,需要做一个课程设计。PowerDesigner导出SQL,导入到Oracle中查询表结构报“ORA-04043: 对象XXX不存在”错误。
解决
查询表结构时加上双引号。
总结
工具自动生成的SQL会有些问题,所以我是不建议使用工具自动生成的,手写才是保证万无一失的最好方法。
操作日志
G:\编程资料\Learning\数据库应用技术 Oracle\实验\实验五>sqlplus wgb SQL*Plus: Release 11.2.0.1.0 Production on 星期二 6月 11 09:07:05 2013 Copyright (c) 1982, 2010, Oracle. All rights reserved. 输入口令: 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> SELECT * from tab; TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- tb_class TABLE tb_course TABLE tb_score TABLE tb_select TABLE TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- tb_student TABLE tb_teacher TABLE tb_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
<span><span>我的邮箱</span></span><span>:</span>wgbno27@163.com <span> <span>新浪微博</span></span><span>:</span>@Wentasy27 <span>微信公众平台</span>:JustOracle(微信号:justoracle) <span>数据库技术交流群</span>:336882565(加群时验证 From CSDN XXX) <span>Oracle交流讨论组</span>:https://groups.google.com/d/forum/justoracle <span><strong>By Larry Wen</strong></span>
![]() |
![]() ![]() |
@Wentasy |

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools
