How to Use DBMS_ADVANCED_REWRITE in Oracle 10g

在Oracle10g之后,提供了DBMS_ADVANCED_REWRITE包,具有强大的查询重写功能,可以让我们在数据库层面实现很多微妙的调整。假设我们有一个应用,但是现在无法直接修改应用程序的编码,但是又想能够让应用程序的某些SQL产生我们想要的变化,那么就可以使用DBMS_ADVANCED_REWRITE包。 [sourcecode language="sql" light="true"]drop table t; create table t as select object_id,object_name from dba_objects; drop table t1; create table t1 as select object_id,object_name from dba_objects where 1=0;[/sourcecode] [sourcecode language="sql" light="true"]SQL>…

Continue ReadingHow to Use DBMS_ADVANCED_REWRITE in Oracle 10g

ORA-01017 When Connect SYSDBA by SQL Developer

在尝试使用SQL Developer用SYSDBA连接数据库时总是报ORA-01017错误。 ORA-01017: invalid username/password; logon denied 实际上用户名密码是正确的,并且在数据库服务器上使用SQL*Plus通过监听连接也是正常的。 [sourcecode language="sql" light="true"]C:\Users\Kamus>sqlplus "sys/oracle@orcl11g as sysdba" SQL*Plus: Release 11.1.0.7.0 - Production on Fri Mar 12 12:17:01 2010 Copyright (c) 1982, 2008, Oracle.…

Continue ReadingORA-01017 When Connect SYSDBA by SQL Developer