Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Probleme mit Create View und Recompile

Probleme mit Create View und Recompile

From: jochen <jochen.rittmann_at_gmail.com>
Date: 10 Jul 2006 04:55:42 -0700
Message-ID: <1152532542.453265.26430@p79g2000cwp.googlegroups.com>


Schlechtes Englisch unten :-)
Bad english on bottom :-)

Hallo,

mit einem SQL-Script wird ein View erstellt. Z. B.

create or replace view xxx
as ...

Dieser wird, unter Anzeige im PL/SQL Developer mit einem roten Kreuz dargestellt. Beim Versuch diesen im PL/SQL zu recompilieren, scheitert der Versuch mit einem Fehler, daß der SQL Statement.

Der Versuch mit einem allgemeinen Skript (siehe unten) diesen View zu rekompelieren scheiterten mit ORA--00900: invalid SQL statement.

Wenn ich aber in den EDIT-Modus gehe und dort den RUN-Button drücke, wird der View neu erstellt und das rote Kreuz verschwindet. Der View ist jetzt auch nutzbar, d. h. er zeigt jetzt auch ohne Fehlermeldung Daten an.

Hat jemand eine Idee, woran das liegen kann?

Hello,

with a SQL-Script a view will created for example

create or replace view xxx
as...

This view will be shown with PL/SQL Developer with a red cross. The attempt to recompile gets an error ORA-00900: invalid SQL statement.

The attempt to recopile it with a normal script (look bottom) , i´ll get the error ORA-00900.
If i change to EDIT-Modus und press RUN-Button, then the view will new create and the red cross dissapear. The View is now runable, that means, it shows data without error message.

Have anybody an idea what the reason is?

set feedback off pagesize 0
spool temp.sql
select 'alter '||object_type||' '||owner||'.'||object_name||' compile '||decode(object_type,'PACKAGE BODY','BODY','')||';' from dba_objects
where status = 'INVALID' and object_type in ('PROCEDURE','FUNCTION','PACKAGE','PACKAGE BODY','TRIGGER','VIEW') and owner != 'SYS'
/

spool off
set feedback on pagesize 24
spool temp.log
@temp.sql
spool off
exit
/
Received on Mon Jul 10 2006 - 06:55:42 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US