view of the compilation

HII


I have a question

If I create a view v1 on table t1 with employee_id, first_name column, last_name

as

create view v1 in select from t1; *

now, I remove a column from the table say employee_id

n now when I issue select * from v1, I get error


But if I publish command
change the compilation of view v1

but still I'm not able to use
Select in v1 *.

can you suggest me I can solve it without re-creating the view

Yes. This is the expected behavior. Although you have created the view as "SELECT * FROM table_name", Oracle stores in the form of «SELECT col1, col2,...» FROM table_name.
So, if you delete a column the view needs to be recreated.
Similarly, if you add a column, the column will appear not in the view before recreation.

SQL> SELECT * FROM v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE    10.2.0.2.0      Production
TNS for Solaris: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production

SQL> desc test_emp
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 EMPNO                                              NUMBER(4)
 ENAME                                              VARCHAR2(10)
 JOB                                                VARCHAR2(9)
 MGR                                                NUMBER(4)
 HIREDATE                                           DATE
 SAL                                                NUMBER(7,2)
 COMM                                               NUMBER(7,2)
 DEPTNO                                             NUMBER(2)

SQL> CREATE OR REPLACE VIEW test_emp_view AS SELECT * FROM test_emp;

Now, look at the definition of the view stored in datadictionary.

SQL> ed
Wrote file afiedt.buf

  1* SELECT view_name,text FROM user_views WHERE view_name='TEST_EMP_VIEW'
SQL> /

VIEW_NAME
------------------------------
TEXT
--------------------------------------------------------------------------------
TEST_EMP_VIEW
SELECT "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" FROM test_em
p

SQL>

So if you delete a column, it will not be found as written in the definition of the view and can only be corrected if recreated.

Added query: carine April 11, 2011 16:37

Tags: Database

Similar Questions

  • A view of the compilation

    Hi all

    11 GR 2,

    I'm creating a view, but it says:

    WARNING: View created with compilation errors.

    SQL > show error

    No errors.

    SQL >

    He had not the slightest mistake?

    How can I debug a display error?

    Thank you very much

    zxy

    Otherwise, you could do like below to see if the error persists after that Data Vault has been turned off

    DVCA-action disable

    -oh Oracle_home_directory

    -service Service_Name

    -instance Oracle_instance_name

    -dbname database_name

    -sys_passwd SYS_password

    -owner_account DV_owner_account_name

    -owner_passwd DV_owner_account_password

    [--logfile / dvca.log]

    [- nodecrypt]

    [- racnode node]

  • How can I start to debug when iOS package hangs just outside the compilation without debug mode?

    Hello

    I have an application that I'm migrates from the web to mobile, and I recently encountered a problem where it will crash on the charge, but _ONLY_ when they are packed for liberation as well as iOS.

    FOR EXAMPLE:

    1. for Android, works at

    -Emulator

    -USB debugging

    -release mode compilation

    2. for iOS, works in:

    -Emulator

    -fast compilation USB debugging

    -USB debugging standard compilation

    Doesn't work in:

    -compile ad hoc

    Initially, I thought it was because of loading SWF with ActionScript, but even after replacing these files with static JPEG, it always crashes.

    I commented all the traces, after another report by the forum that has listed the tracks as a problem with ad-hoc compile.

    I tried mobile bundle strings resources out of the sight of problem that these channels are not displayed in the view of problem (but do it somewhere else).

    In all cases, the result is the same:

    Discover loads then freezes before he gets far enough set navigatorContent property (declared in MXML) so it hangs just with no. visible labels.

    Have you tried a number of things to debug it and twenty minutes by compilation, there is a limit to how much I _can_ try, so, please, please, someone has an idea of where to look the potential problems that could be causing my application to fail?

    Thank you

    Gaius

    I have it.

    I used the Swiz (which is awesome, btw) framework and compilation of the library of Swiz rather that to use the CFC that I needed a change to the base, I forgot one of the metadata tags since the compiler args - for some reason, recovered by operating in any other mode of compilation, it crashed when running in release mode.

    G

  • A small query on last time of the compilation of an object

    Hello

    By which point of view, I see last time of the compilation of an object?

    My version of the database is 9.2.0.4.0

    Thanks in advance

    Hello

    USER_OBJECTS last_ddl_time field

  • Please bring back the view of the graphical dashboard in ios10 health app!

    in iOS 9, very useful functionality of the application of health was the graphical view in the dashboard. It is now gone, or the less hidden to be not not visible with a little wink. Apple, bring it back please!

    Click today at the bottom.

  • Definition of widgets as default view in the notification Center

    When I pull down from the top in the iOS 10, it gives me the notifications view, not widgets. How can I put it all first to give me the widgets?

    Thank you

    After that you pull down the notification view, drag the view to the right and you will see the widgets. You will notice at the bottom of points two screen. That means dragging the view displays a different page. At present, there seems to be no way that widgets show first. I hope this helps.

  • Can't access Conversation view under the view menu. With the help of 38.0a1 every day. Any ideas?

    I can access the Conversation view under the view menu in TB version final candidate 31.4.0. But he don't see under daily 38.0a1 of 64-bit version on different computers. Any help appreciated.

    THX

    Ok. Do not take into account. Apparently the conversation view is an Extension to tuberculosis, only not part of the base product. Hope that I would not lose too much of your time. Live and learn.

    Thank you
    Doug

  • I got a viral message, but do not have open it or click on the links - although he appeared in the 'View' menu, the PC is still safe?

    I got a viral message, but do not have open it or click on the links - although he appeared in the 'View' menu, the PC is still safe?

    the PC is still safe? "

    Probably yes. To be sure run a scan full anti-malware.
    https://support.Mozilla.org/en-us/KB/troubleshoot-Firefox-issues-caused-malware#w_how-do-i-get-rid-of-malware

  • Choose the view of the Office?

    When I try to sign in for forums users motorola I can't enter name and password because he recognizes. MOBIKE format and browser blocks. dolphin browser defined on the view from the Office I can connect to the motorola forums. y at - it a setting to select the desktop view this sites recognise my pbone as a phone? by choosing site Office application does not work.

    Maybe the problem with the Site of Desktop ask is that, at the time when the option becomes available, it is too late - the site has redirected away from the page you want.

    This extension, you can try: https://addons.mozilla.org/en-us/mobile/addon/phony/

  • How can you save dead MacBook using FireWire for iMac? I can view all the files on iMac, but don't know how to back up before, I reinstall MacBook.

    My MacBook Pro doesn't start then you want to erase and reinstall iOS. Before doing this I want to back up all my files. If I connect to imac via FireWire I can view all the files, but how can I save it it?

    If your MacBook will start in target disk Mode, follow the instructions on how to set up and use...

    Share files between two computers with target - Apple Support disk mode

    But you do not want to share files, just to save them. You can make a "clone", using disk utility. For cloning utility purposes use a program likeSuperDuper! or double clone.

  • Photos... on the view menu, the option "Show sidebar" is not highlighted, nor the keyboard command works. Photos pretty useless for me without the sidebar.

    Photos... on the view menu, the option "Show sidebar" is not highlighted, nor the keyboard command works. Photos pretty useless for me without the sidebar.

    What version of the operating system and Photos you have - whether you use pictures you don't have OS x 10.9.4 as you say

    Maybe this thread will be hep - they found that drag the larger window solved the problem - Re: Option to display the sidebar photos on Mac is grayed out.

    LN

  • I'm usung Firefox 6 and I can see no longer thew 'source code' in 'view' on the toolbar.

    I use Firefox 6 and I can see no longer thew 'source code' in 'view' on the toolbar.

    Why is this?

    I need this function.

    regarding the Reos

    This menu item has been moved to the Web Developer under the orange Firefox button menu and in the Tools menu. It is also available in the context menu - right-click on the web page you want to view the page source of.

  • can I view all the bookmarks of all time next to my home page, as the old windows 2003 could, I now have windows 7 & firefox 4. I love being able to see all my favorites all the time.

    can I view all the bookmarks of all time next to my home page, as the old windows 2003 could, I now have windows 7 & firefox 4. I love being able to see all my favorites all the time. Edit

    Just hit CTRL + I

  • I can't get my Powerpoint to view through the projector. It only shows my office.

    I can't get my Powerpoint to view through the projector. It only shows the desktop image and not my slides.

    You have mirrored screen checked? If this isn't the case, you must drag the PowerPoint window on the desktop appears on the projector.

  • ALBUMS OF VIEWS IN THE PHOTO APP NOT ANSWERED - ONLY TIME VIEW. NO SOLUTION FOR 3 WEEKS OF ENGINEERING

    For the past 3 weeks or more, when I go to iCloud.com and check my photos - I don't see that

    VIEW OF THE TIMES. When I click on display ALBUMS - I get the error message that this app is not responding.

    choices are to reload or to send data to APPLE.

    Senior APPLE sent cases up to genius and I got no words for almost 3 weeks.

    I got EL CAPITAN on my MACBOOK AIR. It's very frustrating and I backed up all my photos on external

    hard drive and PHOTOS of CLOUD from AMAZON (which works fine).

    I wonder if anyone has the same problem. I'm also disturbed that APPLE chose to have a TIMES view.

    Why they choose important Moments for me? I don't even need this category - I prefer to organize my photos me - in ALBUMS and I have a FAVORITE album.

    During the last 3 weeks or more, when I go to iCloud.com

    OK - what exactly happens using Photos on your Mac (not iCloud.com)?

    LN

Maybe you are looking for