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 -> Re: create view d.* becomes d."FIELD1", d."FIELD2"

Re: create view d.* becomes d."FIELD1", d."FIELD2"

From: sybrandb <sybrandb_at_gmail.com>
Date: Thu, 05 Jul 2007 05:47:01 -0700
Message-ID: <1183639621.259613.217120@k79g2000hse.googlegroups.com>


On Jul 5, 2:29 pm, Norbert Winkler <Norbert.Winkl..._at_gmx.de> wrote:
> Hi,
>
> we've changed to 10i.
>
> Since that time the view creation has been changed.
>
> Assume a table
> Create Table xtab (
> field1 NUMBER,
> field2 VARCHAR2(15)
> )
> /
> and
>
> CREATE OR REPLACE VIEW v_xtab AS
> SELECT d.*
> FROM DEGR.XTAB d
> /
>
> Before 10i engineering-tools give me
>
> CREATE OR REPLACE VIEW v_xtab AS
> SELECT d.*
> FROM DEGR.XTAB d
> /
>
> or
>
> CREATE OR REPLACE VIEW v_xtab (
> field1,
> field2
> ) AS
> SELECT d.*
> FROM DEGR.XTAB d
> /
>
> now I get
>
> CREATE OR REPLACE VIEW v_xtab (
> field1,
> field2
> ) AS
> SELECT d."FIELD1",d."FIELD2"
> FROM DEGR.XTAB d
> /
>
> or
>
> CREATE OR REPLACE VIEW V_XTAB AS
> SELECT d."FIELD1",d."FIELD2"
> FROM DEGR.XTAB d
> /
>
> Because the engineering-tools makes it easy to create DDL-scripts for
> future use I w'd like to have the old state without the ?."????"-items.
>
> Is there a options setting to enforce the old state?
>
> --
> Thanks
> Norbert

Views are compiled objects. The * is resolved at runtime, except for view creation where it has always been resolved at compile time. This why Oracle recommends against using * in creating a view. As it has been working in this fashion since Oracle7, the only magical wand probably it
changing the compatible parameter to something 6.0. Obviously you don't want this, as you will loose locally managed tablespaces, enforced constraints etc etc etc.

--
Sybrand Bakker
Senior Oracle DBA
Received on Thu Jul 05 2007 - 07:47:01 CDT

Original text of this message

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