Problem with view based on Object Table

When I try to create the Invoice view below SQL*Plus returns:
"ORA-00904: invalid column name"
My view appears to be correct. I doubt 'Expires' is a reserved word since if I NULL it out then the next column('Issued') causes the same error.
Any suggestions?
Here's my layout of types and tables:
CREATE OR REPLACE TYPE Address_objtyp AS OBJECT (
Street1 VarChar2(200),
Street2 VarChar2(200),
City VarChar2(200),
State Char(2),
Zip VarChar2(20)
CREATE OR REPLACE TYPE CreditCard_objtyp AS OBJECT (
NameOnCard VarChar2(100),
Address_obj Address_objtyp,
CardType VarChar2(50),
CardNum Number,
Issued DATE,
Expires DATE
CREATE OR REPLACE TYPE Invoice_objtyp AS OBJECT (
IDNum Number(5),
InvDate DATE,
InvType VarChar2(20),
Fee Number(10,2),
PaidDate DATE,
AmtPaid Number(10,2),
PayMethod VarChar2(50),
CheckNum Number(10),
CreditCard_obj CreditCard_objtyp
CREATE TABLE Invoice_objtab OF Invoice_objtyp (
PRIMARY KEY (IDNum))
OBJECT ID PRIMARY KEY;
CREATE OR REPLACE VIEW Invoice_view OF Invoice_objtyp WITH OBJECT IDENTIFIER DEFAULT
AS SELECT i.InvDate, i.InvType, i.Fee, i.PaidDate, i.AmtPaid, i.PayMethod, i.CheckNum,
CreditCard_objtyp(i.NameOnCard, Address_objtyp(i.Street1, i.Street2, i.City, i.State, i.Zip), i.CardType, i.CardNum, i.Issued, i.Expires)
FROM Invoice_objtab i;

Missing the IDNum. Create view statement should read:
CREATE OR REPLACE VIEW Invoice_view OF Invoice_objtyp WITH OBJECT IDENTIFIER DEFAULT
AS SELECT i.IDNum, i.InvDate, i.InvType, i.Fee, i.PaidDate,
i.AmtPaid, i.PayMethod, i.CheckNum,
CreditCard_objtyp(i.NameOnCard,
Address_objtyp(i.Street1, i.Street2, i.City, i.State, i.Zip),
i.CardType, i.CardNum, i.Issued, i.Expires)
FROM Invoice_objtab i;
null

Similar Messages

  • Problems with Views based on a Hierarchical Query

    Datamodeler 3.1.3.706 (SQL Dev 3.2.10.09):
    When creating a view that utilizes a Hierarchical Query, the Query Builder encounters various difficulties:
    When pasting in SQL code, if the view is saved without first clicking the update diagram button, the object in the view entity relationship diagram provides a faithful representation of the view without errors, but when reopening the view, the code is missing.
    Simple Example using the classic emp table:
    SELECT level lev
          , emp.*
       FROM emp
      CONNECT BY prior empno = mgr
      START WITH mgr        IS NULLIf the update diagram button is pushed to refresh the graphical view. It mangles the connect by clause and the view gets marked with a warning/error icon in the relationship diagram, but the now mangled code remains available on reopening the query builder.
    Same code as above after clicking the Update Diagram button:
    SELECT Level lev
    , emp.*
       FROM emp
      CONNECT BYFurther issues are encountered if the query contains any of the CONNECT_BY_% hierarchical pseudo columns:
    SELECT level
          , emp.*
          , connect_by_root emp.ename root_ename
       FROM emp
      CONNECT BY prior empno = mgr
      START WITH mgr        IS NULL;In this case pasting in the code and clicking either the Update Diagram button or the OK button results in an "Unexpected Token" parsing error.
    These issues are encountered with both the Logical and Relational models.
    Is this a known issue? I've searched this forum but haven't found any references to it.
    Thanks,
    Sentinel

    Hi Sentinel,
    I logged a bug for that.
    You can try DM 3.3 it deals better with first problem, parsing of connect_by_root operator will pass if you don't use alias.
    Philip

  • Problem with replication based on materialized view

    Problem with replication based on materialized view...
    Given:
    1. Source: S-1
    2. Targets: T-1, T-2
    3. DB links: from T-1 to S-1, from T-2 to S-1
    Required replicate table TBL on S-1 to T-1, T-2 via db links.
    On S-1 was created materialized view log with PK on TBL. On T-1, T-2 were created mat.views as "on prebuilt table refresh fast on demand". In case of get "ORA-12034: materialized view log younger than last refresh" or initial load - perform complete refresh. Initial load on T-1 takes about 1 hour, on T-2 - about 12 hours. Refresh is executed via job with minutely interval. If refresh is running then it is not performed.
    Problem: after initial load on T-1 performs fast refresh, but on T-2 raised ORA-12034 and complete performs again.
    What's wrong?

    34MCA2K2, Google lover?
    I confess perhaps I gave a little info.
    View log was created before MV.
    It was the first initial load.
    No refresh failed.
    No DDL.
    No purge log.
    Not warehouse.
    There is no such behavior for MVs on another sites.
    P.S. I ask help someone who knows what's wrong or who faced with it or can me  follow by usefull link.
    P.P.S. It's a pity that there is no button "Useless answer"

  • Strange behaviour of view based on several tables join with union all

    Dear fellows we r facing a strange problem we have a view based on several tables joined by union all ,when we issue an ordered query on date,rows returned are unusually different than they should be .
    Is oracle has some special behaviour for view based on union all ?
    I m using oracle 8.1.6 on windows 2000
    Kashif Sohail

    Did you ever solve this problem? I have two select statements based on 4 tables and 3 views using about 5 more tables. When I execute each select individually I get exactly what is expected. When I UNION ALL both selects together, I get "no rows returned", however when I UNION them I get exactly what is expected. I should get the same answer for both UNION ALL and UNION. The two select statements are identical, except for one column where I changed the constant to be different. Any thoughts?

  • Want to update data in a view based on multiple tables

    Hi
    I am facing a problem i want to update data in tables using a view. As that view is based on multiple tables so i am unable to update data. i came to know we can update table from view only if view is based on single table. so if anyone knows any alternative please let me know.
    Thanx
    Devinder

    Devinder,
    The table can be updated through a view based on multiple tables, if and only if the table is a "key preserved" table. Rather than explaining myself, i avoided the burden of typing by finding the material in Oracle Docs and pasting it for you :-)
    If you want a join view to be updatable, all of the following conditions must be
    true:
    1. The DML statement must affect only one table underlying the join.
    2. For an INSERT statement, the view must not be created WITH CHECK
    OPTION, and all columns into which values are inserted must come from a
    key-preserved table. A key-preserved table in one for which every primary
    key or unique key value in the base table is also unique in the join view.
    3. For an UPDATE statement, all columns updated must be extracted from a
    key-preserved table. If the view was created WITH CHECK OPTION, join
    columns and columns taken from tables that are referenced more than once
    in the view must be shielded from UPDATE.
    4. For a DELETE statement, the join can have one and only one key-preserved
    table. That table can appear more than once in the join, unless the view was
    created WITH CHECK OPTION.
    HTH
    Naveen

  • PSP: problems with viewing data

    Hello.
    I'm currently working at on-line shop and have some problems with viewing data from database. When there is no much inserts to table its working very well. But after inserting all Inserts I have its acting weird.
    Sample with 10 INSERTS:
    http://gafgarion.atspace.com/psp/1.jpg
    Sample with 100 INSERTS:
    http://gafgarion.atspace.com/psp/2.jpg
    I'm using Oracle 9i. when I have more data in my database its acting weird. There is SELECT only from one table, but sometimes I have data from other tables aswell.
    I didnt touch any config files or something else. Only created new User and DAD.
    any ideas what should I do to fix that ??
    thnx in advice

    Hello,
    My guess is that you are speaking about PLSQL Server Pages (PSP), and the PLSQL Web Toolkit.
    This is why I do not think that you will have lot of answer since this forum is targeted toward Web Services developer (XML, SOAP, and so on)
    I am inviting you to ask your question on the general Oracle Application Server - General or PLSQL forums.
    Regards
    Tugdual Grall

  • PLSQL Server Pages (PSP): problems with viewing data

    Hello.
    I'm currently working at on-line shop and have some problems with viewing data from database. When there is no much inserts to table its working very well. But after inserting all Inserts I have its acting weird.
    Sample with 10 INSERTS:
    http://gafgarion.atspace.com/psp/1.jpg
    Sample with 100 INSERTS:
    http://gafgarion.atspace.com/psp/2.jpg
    I'm using Oracle 9i. when I have more data in my database its acting weird. There is SELECT only from one table, but sometimes I have data from other tables aswell.
    I didnt touch any config files or something else. Only created new User and DAD.
    any ideas what should I do to fix that ??
    thnx in advice

    Hello,
    My guess is that you are speaking about PLSQL Server Pages (PSP), and the PLSQL Web Toolkit.
    This is why I do not think that you will have lot of answer since this forum is targeted toward Web Services developer (XML, SOAP, and so on)
    I am inviting you to ask your question on the general Oracle Application Server - General or PLSQL forums.
    Regards
    Tugdual Grall

  • Problem with File Based replication in Weblogic Express 10

    Hi,
              We have Web application (exploded war) file deployed on Weblogic Express 10, to a Cluster of three Managed Servers (all three on different physical machines).
              We are using File based session persistance in weblogic.xml
              We have a shared location for all the three servers where we will be sharing the Session data.
              When we start the application, its works fine and is very fast, but after sometime the application slows down.
              Troubleshooting the Issue we found that its a problem with file based replication. By using File based replication every user session is stored in form of directory inside shared directory. So after sometime thousands of directories are created inside the shared directory where the session information is stored. So when we access the application, its waiting for lot of time with Message Session Monitor .... (this is because its browsing through the shared session storage directory for lot of time for session information as it has lot of directories) and finally after a long time like 10 mins we get the Application Home Page.
              When we clean up all the saved sessions inside shared directory, the application works fine, But we will see the same sometime later may be after 3 or 4 hours when the shared session directory has lot of session information stored in it.
              Is there a way to clean up the saved session information on file system as soon as that user session is closed by using file based replication.
              We cannot used Inmemory replication as our Appl doesnt support it.
              Please advice as it is a major show stopper in our Production Mirror env.
              Weblogic Consultant

    It is possible to reduce number of live session by configuring very low timeout-secs weblogic.xml. Default is 60 minutes.
              More details are here..
              http://e-docs.bea.com/wls/docs100/webapp/weblogic_xml.html#wp1071982
              Jayesh
              Yagna Sys

  • Problem with viewing Adobe PDF documents

    Problem with viewing Adobe PDF documents
    I have a Windows 7 Home Premium Computer
    I have read all the suggestions and I have tried downloading multiple versions of Adobe Reader for Windows 7 and Vista from http://get.adobe.com/reader/otherversions/.
    Prior to downloading each version I would delete the current version using  control panel programs uninstall.
    After each new installation I would shut down the computer and then restart the computer.
    I have tried downloading versions with and without having my antivirus (CA Total Defence) running.
    I am told after download that the version downloaded successfully.
    I have read Acrobat Help http://helpx.adobe.com/acrobat/kb/troubleshoot-reader-installation-windows.html and followed the instructions.
    None of the above has helped.
    The problem is no matter what version of Adobe Reader I download, I cannot seem to open a PDF and read it. Nor will the Reader itself stay open.
    1. If I try opening the reader from the desktop link or from the actual program menu, the reader opens for about 5 seconds and then closes of its own accord. If I try to click on any of the reader menus (eg File, Edit, View, Window, Help, Tools) then a warning bell is sounded and the menu does not open. Shortly thereafter the reader closes.
    2. If I try to open the reader by double clicking on a PDF document then the reader opens but the document is not shown (only the grey PDF reader screen is shown) and then the reader closes after about 5 seconds of its own accord.
    The desktop shortcut shows as the 'red Adobe Reader icon'. But the actual program menu icon shows as a blank folder icon.  All PDF documents show as the PDF Adobe icon.
    I have tested various PDFs and none will open on this computer but they will open on other computers.
    I have created a word document and saved it as a PDF. It looked like it had save correctly (has the appropriate icon) but when I try to open it as per step 2 above then the document is not shown and then the reader closes after about 5 seconds of its own accord.
    Does anyone have any ideas about what is going on and how I can fix this?
    Could you please answer in this forum and email me at [removed]
    I am so puzzled and frustrated.

    Thank you so much this did the trick.
    I spent so many hours on trying to sort this out and your answer was so  simple and clear.
    Regards
    Kazzamday

  • Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the pag

    Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.

    Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.

  • Problem with Indesign CC 2014 and tables

    Problem with Indesign CC 2014 and tables. The text rearranges itself when I delete or add something in a table; the footnotes to the text associated with the overlap even getting unreadable. Just click on the chain symbol in the window and everything is fine. Why?

    try circumventing your cc app and see if that helps:
    if you follow all 7 steps you can directly download a trial here:  Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies.
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com).
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • Problem with background formatting in pivot table

    Hello,
    I have a problem with background formatting in pivot table. I can't change background (light blue rectangular in upper left corner). Do you have any idea how to do it?
    Here is the link to the picture of the pivot table:
    http://img163.imageshack.us/img163/110/unledfyq.png
    I would be grateful for any help.
    Regards,

    Hey,
    Check this link once, you will need java script to acheive this:
    http://everythingoracle.com/obieehdom.htm
    scroll down to this topic: Parsing using HTML DOM
    Please award points if helpful.
    Thanks,
    -Amith.

  • Problem with viewing activities

    Hello,
    we have SCSM 2012 R2, we have SCSM console installed on 2 computers. Only on one computer we have problem with viewing activities. For example, we go to Work items - Service Request Fullfulment - All Open service requests - Choose one request and open a
    form, click Activities, double click on step (RAXXXX) and window with Review Activity details doesn't appear.

    Was there a second monitor connected to the computer before and is disonnected now? Sometimes it could happen the activity form will open on the "second non-existing monitor". Do you see the activity form window in the task bar of the affected computer?
    If so activate the activity form window, press "alt"+space, select "Move" from the menu and try to move the activity form window to the main screen suing the arrow keys. 
    Andreas Baumgarten | H&D International Group

  • Problem with viewing modules on iPhone / iPad

    Hello. I have a problem with viewing my modules on iPhone and iPad. I have the same problem previously with Captivate 6, which I honestly thought that it is solved on Captivate 7, downloaded the trial version just to test it and I got nothing improved about that,
    So, when I publish and upload my course on cloud.scorm.com I got this:
    iPhone - It only shows the top left of slides and I get full voiceover
    iPad - shows photo top left on last slide (not first?) and hangs with no voiceover
    This is a simple 4 slide course which I use for testing the project.
    If someone wants to test here is a link: http://cloud.scorm.com/sc//InvitationLaunch?userInvitationId=d75b27a6-e7df-41fa-87e6-d7576 48aea93
    And I really expect some help with this, because it's really important not to have this type of problems.
    Thanks.

    "And I really expect some help with this..."
    Please remember that this is a user forum, not Adobe Support.  If you've paid some money for something and it's not working as you expect, you certainly have the right to require the manufacturer to provide after sales support. 
    But you would not track down another purchaser of the same product and tell them they owe you support...would you?

  • Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    is this a rental from the Apple TV or one you have in iTunes. If from the Apple TV try restarting the Apple TV, if from iTunes, try de/re-authorising your account.

Maybe you are looking for

  • F110 file name configuration

    Hi experts, I would like to know how to find the configuration of generated file name in F110? Path is taken from DME variant, but filename in AL11 has following format: posting date_ runId_BUKRS_payment method_00. I would like to change it, thank yo

  • ITunes keeps freezing on me.

    I am running Windows 7 (64 bit) and previously when using iTunes (running latest software) all has been ok. Over the last few days I have noticed that Itunes keeps 'freezing' . when I click on the icon, iTunes opens, then tries to connecyt to the Sto

  • Mon ipad ne veux pas faire de mise à jour 6.0

    bonjour je vien d'acheter un ipad d'ocasion est le soucie il ne veu pas se mettre à jour quand je veux télécharger des application il me dit que ma verssion n'est pas compatible devrait t'i etres en 6.0 au lieu de 5.1.1 version 5.1.1 (9B206) modele :

  • Calling and Publishing Web Service

    Hi, I am new to Web Services in SAP. Got 2 questions regarding this: 1. How do we call a Web Service from SAP? 2. If I want to publish a Web Service in SAP ECC6, what are the required steps? Sorry, haven't had much luck with my searches. Thanks in ad

  • Unable to find Cube / Query in Catalog (Designer)

    Hello, Our current environment consists of BW Queries which are access by BO Universes. When creating a Universe we were able to see all queries but since we did some changes to the MP and cubes we don't see the queries anymore from BO Side. Also the