Why can't i create a GLOBAL TEMP      ORA-00904:string: invalid identifier

I have the following error see error message beneath.
The error message states that -> The column name entered is either missing or invalid.
But what is wrong with the column name that i have?
Error starting at line 815 in command:
CREATE GLOBAL TEMPORARY TABLE tt_v_Table
rownum NUMBER(10,0) PRIMARY KEY NOT NULL, /* this is line 815*/
TestTableID NUMBER(10,0)
Error at Command Line:817 Column:2
Error report:
SQL Error: ORA-00904: : invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:   
*Action:
Warning: execution completed with warning
TRIGGER tTestTableUpd Compiled.
Message was edited by:
user640306

By the way the code was generated with Oracle SQL Developer migration functionality (client-only) 1.5.0.53.04
I am migrating a MS SQL 2005 database to an Oracle 9i database. I have the following installed:
• Oracle 9i Enterprise Edition Release 9.2.0.1.0 –Production with the partitioning, Spatial, Olap, and Oracle data mining options.
• Internal to Oracle SQL Developer (client-only) 1.5.0.53.04
• JTDS JDBC Driver 11.4.4.53.01 oracle.sqldeveloper.thirdparty.drivers.sqlserver
• Java(TM) Platform 1.5.0_06
Message was edited by:
user640306

Similar Messages

  • ORA-00904:ROWID "Unknown Identifier"... trying to create  a MV...

    Hi,
    I have created successfully a test mv which contains aggregates....
    create materialized view log on dept with sequence, rowid (deptno,dname) including new values;
    create materialized view log on emp with sequence, rowid(deptno,job,hiredate,sal) including new values;
    create materialized view mv_dept_emp_
    build immediate
    refresh fast on commit
    enable query rewrite
    as
    select a.dname, count(*) cnt, sum(b.sal) sal,count(b.sal) cnt_sal, b.job, b.hiredate
    from dept a , emp b
    where a.deptno=b.deptno
    group by a.dname, b.job, b.hiredate
    Now, I'm trying to create a mv which includes only a join... but the error ORA-00904:ROWID "Unknown Identifier" appears.... The sql stmt , i issue is as follows:
    create materialized view mv_dept_emp
    build immediate
    refresh fast
    enable query rewrite
    as
    select a.rowid, b.rowid, a.dname, b.ename, b.job, b.hiredate
    from dept a , emp b
    where a.deptno=b.deptno
    Does anybody have any idea how to overcome this problem...???
    Note: I use DB 10g v.2
    Thank you,
    Sim

    Sim,
    The error message is rather self explaining: you cannot create a (materialized) view with a column named "rowid". If you give it an alias, it will work:
    SQL> create materialized view log on dept with sequence, rowid (deptno,dname) including new values;
    Materialized view log created.
    SQL>
    SQL> create materialized view log on emp with sequence, rowid(deptno,job,hiredate,sal) including new values;
    Materialized view log created.
    SQL>
    SQL> create materialized view mv_dept_emp
      2  build immediate
      3  refresh fast on commit
      4  enable query rewrite
      5  as
      6  select a.dname, count(*) cnt, sum(b.sal) sal,count(b.sal) cnt_sal, b.job, b.hiredate
      7  from dept a , emp b
      8  where a.deptno=b.deptno
      9  group by a.dname, b.job, b.hiredate
    10  /
    Materialized view created.
    SQL> drop materialized view mv_dept_emp
      2  /
    Materialized view dropped.
    SQL> create materialized view mv_dept_emp
      2  build immediate
      3  refresh fast
      4  enable query rewrite
      5  as
      6  select a.rowid, b.rowid, a.dname, b.ename, b.job, b.hiredate
      7  from dept a , emp b
      8  where a.deptno=b.deptno
      9  /
    from dept a , emp b
    ERROR at line 7:
    ORA-00904: "ROWID": invalid identifier
    SQL> create materialized view mv_dept_emp
      2  build immediate
      3  refresh fast
      4  enable query rewrite
      5  as
      6  select a.rowid dept_rowid, b.rowid emp_rowid, a.dname, b.ename, b.job, b.hiredate
      7  from dept a , emp b
      8  where a.deptno=b.deptno
      9  /
    Materialized view created.Regards,
    Rob.

  • Why can't I create a response to an email from the Viewer window?

    Why can't I create a response to an email from the Viewer window?
    When I select an email to respond to in the viewer window and click on the respond arrow that appears just under the header, a new response email opens for a split second then disappears.
    I have to actually click on and open the email message in its own screen to be able to then click on the respond arrow and succeed in having Mail open a response email that I can edit - one that remains open.
    This seems to be a bug that we need to have squashed.
    Steve

    Do I have to connect the iPad to a computer to make this work? Is the fact that I used another email address to set up my Apple ID years ago causing the problem? A friend of mine just got a new iPod and he was able to set up a me.com account. I am feeling rather stupid. Hope someone here can help.

  • Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Acrobat 8 is not compatible with Windows 8,  for the simple reason it was
    created much before it and Adobe could not participate the changes to the
    OS that Microsoft implemented many years later on. You need to buy the
    current version for compatibility.

  • Why can't I create a document in my Facebook group on my iPad? It won't let me input any text into the text box field after I create a new document. Thanks.

    Why can't I create a document in my Facebook group on my iPad. It won't let me input any text into the text box field after I create a new document. Thanks.

    Just thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
    I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
    The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
    I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV).

  • Why can't I create a gallery in iPhoto in the normal way who in the past? If I sent the gallery to another the pictures are deleted!

    Why can't I create a gallery in iPhoto in the normal way who in the past? If I sent the gallery to another the pictures now will be deleted!

    Before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.

  • My daughter is 11 years ild, soon. Why can't I create i Apple id for her?

    My daughter is 11 years ild, soon. Why can't I create i Apple id for her?

    Because a law in the USA requires website operators to obtain parental permission before collecting any personal information from a child under 13, and many have simply chosen not to allow them to sign up.
    (100003)

  • Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    FormsCentral can be used from anywhere, but to purchase a subscription you need a credit card with the mailing address in one of the countries supported for purcahse:
    http://forums.adobe.com/docs/DOC-1375
    The partner can purchase if they have access to a card in one of those countries.  Alternatively they do not need to purchase a subscription to edit forms that you've created, they do in order to create multiple forms of their own, but by your sharing forms with them at the "Co-author" level they have access to the editing.  Here are the instructions to share a form:
    http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Josh

  • Why can't I create a new note on my iPad?

    Why can't I create a new note on my iPad?

    tammy313 wrote:
    the options in the tool bar at the bottom are not highlighted and it does not respond to my touch.
    You are talking about the forward, back, mail and trash can icons in the Notes App - correct?
    I've gone through restarting it and followed the instructions from the person last week.
    Have you restarted the iPad - is that what you mean? Have you quit and then restarted the app? Quit the app, and restart the iPad. It's worth a try.
    Double tap the home button and your recent apps will appear at the bottom. Hold down on the Notes app icon until it begins to wiggle. Then tap the minus sign to quit the app. Then tap the screen. Now restart the iPad.
    Carolyn explained this above (restart) but here it is again....
    Hold down on the sleep button until the red slider appears and slide to shut off. Hold down on the sleep button until the Apple logos appears then let go of the button and the iPad will restart. See if that helps.

  • Why can't I create property nodes for item in STRICT typedef cluster?

    I've tried this in LV7.0/WIN2k and LV 7.1/OSX - both versions work the same.
    I have a TYPEDEF consisting of a cluster of items A, B, and C.
    I have a front-panel instance of this typedef.
    Under certain conditions, I want to disable and gray Item C, because it's not applicable.
    So I need a property node connected to item C.
    If the typedef is STRICT, then I cannot create such a property node - the menu item to create anything is just not there.
    If I change to NON-STRICT, then I can create the property node.
    I can change it back to STRICT, and the property node works just fine.
    The question is, if the nodes WORK normally, why can I not CREATE one?
    If there's some sense behind this, someone please point it out to me...
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    I agree with you, It would be nice to be able to keep the non strict typedef auto-update and extend it to properities which effect the look of a control. I am not sure why you can change the properities on a strict typedef. A strict typedef should have private properities (can only be changed from within the definition and no public other vi scope for writing these values. I have in the past used a custom control for presentation purposes and contained the structure of the data to be displayed within the typedef cluster. This is not all that automatic since we need vi's to convert between the definition and control. Seperating data structure from presentation is much like XML where the file only contains data structure and a reference to a style for presentation. It would be a very nice option to allow nonstrict typedefs to have an additional auto-update properities which could be toggled on and off. I would be curious to here others opinions on how to keep data structure and presentation consistant across an application without being tied down to a strict typedef (allowing the optional change of teh presentation at runtime).
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Why can't I create a new folder

    Why can't I create a new folder

    Is this a folder in iPhoto for iOS or some other folder?
    OT

  • Why can´t I create projects and tasks into a External Group?

    Why can´t I create projects and tasks into a External Group?

    At this time, it's not possible to collaborate on a Project with External Contributors or add an Externally-Facing group to a Project. This is functionality that we we hope to add at some point in the future.

  • Why can't I create view in Analytic Workspace?

    Why can't I create view in Analytic Workspace?

    Hi There,
    1) This is the OBIEE forum, by the sounds of your question, which doesnt have much detail, Im guessing you want the OLAP forum for AWM related issues.
    2) Trying to help, I guess your trying to create the AW cube views, what version of AWM are you using ? It was first provided as a plug in but Im pretty sure the latest version of AWM ships with the functionality.
    BTW I'd try posting in here : OLAP

  • How can I get rid of Global Temp Table

    Hello,
    I've been writing PL/SQL stored proc for creating reports on VB.NET front end. Until now, I've been using session specific global temp table to store intermediate results and at the end I pass the result set to .NET via reference cursor. The reports are created by simply binding the ref cursor result sets to .NET grids. It's been working fine, but I am kind of bothered by the temp tables. I looked on other options, but couldn't really come up with one.
    Can somebody suggest me how I can get rid of those temp tables? Thanks,

    Tubby, that's exactly I was trying to do. I think that table type has to be defined in database, not within PL/SQL. How can I create that table of user defined record type? I tried that, but it doesn't allow me. I think I am missing something. For example,
    create type group_t is record
    (A varchar2,
    B number,
    C number)
    now inside sp, i have something like:
    type my_group is table of group_t index by binary_integer
    now I have sp cursor as
    cursor cur_test IS 'ABC' as A, 1 as B, 5 as C
    now i do something like this. My original queries are longer and much more complicated so please don't suggest you can directly open ref cursor for this query.
    FETCH cur_test BULK COLLECT INTO my_group;
    Then I do all the processing, calculations, totals, sub-totals, and insert into temp table and return via ref cursor.
    My problem is I can't directly fetch into the above table you mentioned. How should I go about in this situation?
    Maybe I should STOP thinking about this approach and just do whatever I've been doing or solve it through pure SQL. However, there are tons of problems with pure SQL approach.

  • Why can't you create image hyperlinks in Yahoo mail??!!

    ''locking - duplicate - https://support.mozilla.com/en-US/questions/806494''
    The whole feature that allows images to be entered inline with text is messed up when using Firefox. And you can't make any image a hyperlink! This is a really useful feature that I hate to resort to IE for!! Why can't Firefox get this to work if IE can?? Firefox is better in every way except this one!!

    Hi,
    932262 wrote:
    My oracle version is 11g, Starting in Oracle 11.1, you can use sequences directly in an assignment statement. For example:
    :NEW.id.sbl := sq.gdi.NEXTVAL;You don't have to SELECT it from dual any more.
    and i am not reading it because i don't know where to read. Oracle documentation is available on line. For version 11.1:
    http://www.oracle.com/pls/db111/portal.all_books
    I am trying to use simple sql and not PL/SQL as much as possible.That's great! Your code will be more efficient and easier to maintain.
    As mentioned earlier, you can create as many triggers in the same script as you want to. Whether you use 5 scripts, or 1, or none at all, you have to put a / after the final END; statement in each one. Follow that by SHOW ERRORS to get complete error messages.
    END;
    SHOW ERRORSPersonally, I prefer having a separate script to create each object. If you want to have one script that calls 5 other scripts, use the SQL*Plus START (or @) command. If the 5 child scripts are on the same directory as the parent script, then you can call them like this:
    @@child_script_1
    @@child_script_2
    @@child_script_3
    @@child_script_4
    @@child_script_5

Maybe you are looking for