DROP table and CREATE with column name and ORA: 00904

Hello
I created a table with an attribute date CRTD_ON and two other attributes. Successfully created. I can see the data tab and the window empty data with column names in the header...
Now, I had to change the name of field attribute date on OPNG_DATE so I don't bother to change, instead, I deleted and created with the name of the column has changed. Then I restart the ddl. Once again managed to create. But this time I am not able to see the data tab or the column headings. And I see the error of the log of the data Publisher ORA-00904: "CRTD_ON": invalid identifier
Is this a bug?

There is a current bug where you will get the data if you have a public synonym with the same table name pointing to another table with another structure. Can you confirm that in your environment?

K.

Tags: Database

Similar Questions

  • Find all tables in db with the name of the column of a particular string?

    I'm looking for all the tables in a database that have a certain column name. How can I find it?

    Hello Atlas77,
    you are posting in the wrong forum. This one is for the tool called SQL Developer.
    That said, you can try the following:

    select table_name from dba_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
    

    If you have DBA privileges, you can try this:

    select table_name from all_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
    

    HTH,
    dhalek

  • Discovered lines with column names where the cell contains a value

    I have a table with columns Additive_ID, A, B, C. Each Additive_ID has a single row.

    I would like to write a query that returns a result set with two columns: Additive_ID and values. It will have up to three lines for each Additive_ID, with the values column that contains the name of the column in the source table if it contains a 1 for this Additive_ID.

    What is the best way to achieve this?

    (In fact, the source table contains about 50 columns.)
    Select additive_id, decode(A,1,'A') value from your_table union all
    Select additive_id, decode(B,1,'B') value from your_table union all
    Select additive_id, decode(C,1,'C') value from your_table
    

    Here's a quick way to get all the SELECT to build the union:

    Select 'Select additive_id, decode('||column_name||',1,'''||column_name||''') value from your_table union all'
    from cols
    where table_name = 'YOUR_TABLE';
    

    Max

  • Problem using applescript to put data into the table of numbers with column heads

    I have extracted the data from certain Web pages and want to place the data items in a table of numbers.  I wrote the applescript to extract pairs of data into two lists, but encountered a problem when you try to put the data items in a table of numbers.

    I hope I've isolated the problem eventually reduce version of the data table and writing.

    Calendar_Month

    Alvarez

    Laundry

    Linen

    Products

    March-2014

    April 2014

    May-2014

    Totals:

    0.00

    0.00

    0.00

    0.00

    Define theLabels to {"Alvarez", "Flax", "Laundry", "Products"}

    the nominative value {11, 22, 33, 44}

    Tell application "Numbers."

    say table 1 on sheet 1 of 1

    rowIndex Set of 3

    q Set of 2

    say the line rowIndex

    colHead theLabels point q value

    the columnIndex value address column colHead

    tell the cell (columnIndex)

    value defined in point q of the nominative case

    tell the end

    tell the end

    tell the end

    tell the end

    I arbitrarily chose to line 3 of the table to demonstrate the problem.

    Each data item is associated, due to its position in the list, with a label that determines the column of the data table, where it should be placed.

    The illustrated script pitches the 2nd data element in the list in the column headed "Lin".  This seems to work ok.  But if q is set to 1 the script fails with

    get address of column "Alvarez" in line 3 of table 1 to sheet 1 of the document 1

    -> error number - 1728 column "Alvarez" in line 3 of table 1 of sheet 1 of document 1

    It fails also with q the value 3 or 4.

    I probably did something really stupid, but I can't understand this behavior.  Advice please?

    Under: Numbers v.3.6.1 Script Editor 2.7 2.4 OS X 10.5.5 Applescript

    Two questions.

    (1) the order of the text in theLabels = {"Alvarez", "Flax", "Laundry", "Products"} and differ from the order of the text in the header row. Is this correct?

    (2) you are putting the value 22 (point 2 of nominative) in cell D3, where column heading of D = "Flax", which is article 2 of the theLabels?

    Respect,

    H

  • The rights of the applicant, change of context (PL/SQL-> SQL-> PL/SQL) and ORA-00904

    Hello

    I'm doing a validation test of principle with regard to the rights of the applicant. I created 2 diagrams of Test (DEFINER1 and INVOKER1) for the same thing. When I call a procedure in the Invoker1 Definer1 and the procedure has, in turn, a SQL statement inside that a PL/SQL function calls, so he get ORA-00904 "" is not a valid identifier. All procedures/packages in the scheme of Definer1 are created as the rights of the applicant. Simplified script below for the same, kindly let me know if I make a mistake, it's the expected behavior, or miss me something.

    set line 10000

    Set feedback off

    ------------------------------------------------------------------------------------------------------------------------------

    QUICK problem: error ORA-00904: "object name": invalid identifier

    CALLS while the use of the appellant's rights, procedure call PL/SQL that has a SQL that calls a PL/SQL function.

    ------------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    Creating patterns DEFINER1 and INVOKER1 QUICK...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE DEFINER1 USER IDENTIFIED BY DEFINER1

    TEMPORARY TEMP TABLESPACE

    /

    GRANT CREATE SESSION TO DEFINER1

    /

    GRANT CREATE PROCEDURE FOR DEFINER1

    /

    CREATE INVOKER1 USER IDENTIFIED BY INVOKER1

    TEMPORARY TEMP TABLESPACE

    /

    GRANT CREATE SESSION TO INVOKER1

    /

    GRANT CREATE PROCEDURE FOR INVOKER1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST will now connect to the DEFINER1 schema...

    GUEST

    CONNECT DEFINER1/DEFINER1

    ------------------------------------------------------------------------------------------------------------------------------

    Creating QUICK package (with rights of Summoners) with 2 functions simple (one with PRAGMA RESTRICT_REFERENCES another without him.)...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE or REPLACE PACKAGE global_pkg

    AUTHID CURRENT_USER

    AS

    FUNCTION add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER;

    FUNCTION add2_rr (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER;

    PRAGMA RESTRICT_REFERENCES (add2_rr, WNDS, WNPS, NSOR, RNP);

    END global_pkg;

    /

    ---------------------------------------------------------------

    CREATE OR REPLACE PACKAGE BODY GLOBAL_PKG

    AS

    ---------------------------------------------------------------

    FUNCTION add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    IS

    BEGIN

    RETURN (p1 + p2);

    END add2;

    ---------------------------------------------------------------

    FUNCTION add2_rr (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    IS

    BEGIN

    RETURN (p1 + p2);

    END add2_rr;

    ---------------------------------------------------------------

    END global_pkg;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    ENCOURAGE creating stand-alone simple function (with rights of Summoners)...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    FUNCTION to CREATE or REPLACE add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    AUTHID CURRENT_USER

    IS

    BEGIN

    RETURN (p1 + p2);

    END ADD2;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    PROMPT creation of procedure (with rights of Summoners) who calls the Package and functions...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE pr_tester

    AUTHID CURRENT_USER

    IS

    l_num NUMBER (2);

    BEGIN

    dbms_output.put_line (1 + 1 = ' | global_pkg.add2_rr (1,1));

    BEGIN

    SELECT global_pkg.add2_rr (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('global_pkg.add2_rr wo' |) SQLERRM);

    END;

    dbms_output.put_line (1 + 1 = ' | global_pkg.) ADD2 (1,1));

    BEGIN

    SELECT global_pkg.add2 (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('global_pkg.add2 wo' |) SQLERRM);

    END;

    dbms_output.put_line (1 + 1 = ' |) ADD2 (1,1));

    BEGIN

    SELECT add2 (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('add2 wo' |) SQLERRM);

    END;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    Grant QUICK overlooking the procedure to INVOKER1 scheme...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    GRANT EXECUTE ON pr_tester TO invoker1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    Test QUICK 1: Define schema works...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    SET SERVEROUTPUT ON

    BEGIN

    pr_tester;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    GUEST

    GUEST will now connect to the INVOKER1 schema...

    GUEST

    CONNECT INVOKER1/INVOKER1

    ------------------------------------------------------------------------------------------------------------------------------

    Test FAST 2: Fails with ORA - 00904 define schema

    ------------------------------------------------------------------------------------------------------------------------------

    SET SERVEROUTPUT ON

    BEGIN

    definer1.pr_tester;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    GUEST

    INVITE to drop the two schemas, enter the password for the sys

    ------------------------------------------------------------------------------------------------------------------------------

    CONNECT SYS AS SYSDBA

    DROP USER CASCADE DEFINER1

    /

    DROP USER INVOKER1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST has dropped to users...

    ------------------------------------------------------------------------------------------------------------------------------

    Thank you

    Marie.

    Basically, you know the answer...

    Why you call procedure Tester pr_tester with the name of schema prefix (definer1.pr_tester) during his call of the schema of the invoker?

    Now... Imagine the following query runs under the scheme of the appellant:

    SELECT global_pkg.add2_rr (1.1)

    IN l_num

    FROM DUAL;

    the schema of the invoker 'knows' global_pkg?

    HTH

  • All of my records changed in the files system and .exe files are created with the names of these folders.

    Is it due to malware? How to convert these files to their form of moose?

    Hi Raffey Hassan,

    ·         Did you do changes on the computer before the show?

    ·         You have security software installed on your computer?

    Changed file .exe file names, the reason might be that the computer is infected from virus or malware.

    I also suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: While hard disk analysis if bad sectors are found when scanning try to repair this area, all available on which data can be lost.

    Let us know if that helps.

  • Why can't create us columns name oracle 9i numbers

    It gives me an error
    create table tbl_testhistory
    (
     1 number(20)
     )
    Just curious

    Hello

    You can do it. It's just a lot more trouble than it's worth (for most people).

    If you really, really, really want to have an identifier that is not consistent with the rules, surround it with quotation marks:

    create table tbl_testhistory
    (
      "1" number(20)
    ); 
    

    and also surround it in quotes when using it.
    Remember, what inside quotes is case sensitive, so a column named 'NOV 2010' is not the same as a named '2010 Nov»

  • bug: Houston-27122 and ORA-00904

    I get this error when I run any page of the adf. Error object in the view. error is as follows




    What is error.how can I fix this. Guide to devloper ADF is this problem of "_Default using Inline views for read-only queries" _


    anyone has an idea about this.

    Thanks in advance

    Published by: vinay kumar on April 22, 2009 09:29

    Vinay,

    You even try to "setNestedSelectForFullSql" in the little box marked 'Search' on the forum page?

    You will find stories like this one:

    I assume you are using an expert mode VO.
    In this case, you can override the create() method in the subclass of the VOImpl of your VO and call the method:

      // overridden framework method in YourViewNameImpl.java
      public void create() {
        super.create();
        setNestedSelectForFullSql(false);
      }
    

    This should avoid the "wrapping" of the request with the online display.

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • What happens to the existing after the partition of table index and created with local index

    Hi guys,.

    / / DESC part id name number, varchar2 (100), number of wage

    In an existing table PART I add 1 column DATASEQ MORE. I wonder the part of table based on dataseq.now, the table is created with this logic of partition

    create the part table partition (identification number, name varchar2 (100), number of salary, number DATASEQ) in list (dataseq) (values partition PART_INITIAL (1));

    Suggestionn necessary. given that the table is partitioned based on DATASEQ I wonder to add local indexes on dataseq. to dataseq, I have added a local index create index idx on share (dataseq) LOCAL; Now my question is, already, there are the existing index is the column ID and salary.

    (1) IDX for dataseq is created locally so that it will be partition on each partition on the main table. Please tell me what is happening to the index on the column ID and salary... it will create again in local?

    Please suggest

    S

    Hello

    first of all, in reality 'a partition table' means create a new table a migration of existing data it (although, theoretically, you can use dbms_redefinition to partition an existing table - however, it's just doing the same thing behind the scenes). This means that you also get to decide what to do with the index - index will be local, who will be global (you can also reassess some of existing indexes and decide that they are not really necessary).

    Second of all, the choice of the partitioning key seems weird. Partitioning is a data management technique more that anything else, in order to be eligible, you must find a good partitioning key. A column recently added, named "data_seq" is not a good candidate. Can you give us more details about this column and why it was chosen as a partitioning key?

    I suspect that the person who proposed this partitioning scheme made a huge mistake. A non-partitioned table is much better in all aspects (including the ease of management and performance) that divided one wrongly.

    Best regards

    Nikolai

  • Help with outdoor Table and multibyte data

    I receive multibyte data in the flat file. After you download the end of UNIX, I am creating an external Table where I'll read the content and then push it to the Oracle Table.

    Now, there are a few problems when inserting records in the table for which I need help!

    1. the data file comes from AS / 400 systems that sets the DATE field zero when it is actually NULL in their end. Somehow I manipulated in code dynamically using case...

    But I actually wanted to know that is there any loophole in the AND gets created with a NULL value in the field of date instead of 0. I don't want to handle this in the code dynamically.

    2. I have a field with ABCDE VARCHAR2 (36), the table is created with lines nil.

    But when I increase the precision of the field ABCDE to VARCHAR2 (55), the array is created with 36 ranks (actual number of lines in the file being 36).

    But this is the strangest things when I ask max (length (ABCDE)) I get a result of 40.

    Could someone help me please to diagnose the problem. Hope you guys can understand it becomes suicidal when at the end of the project, you just know that the data are not apt according to the length of field.

    VARCHAR2 length syntax is:

    1 explicit VARCHAR2(N CHAR) - N characters, N VARCHAR2(N BYTE)-bytes
    2. implicit VARCHAR2 (N) - then it is controlled by the default BYTES NLS_LENGTH_SEMANTICS initialization parameter (which most likely is your case, you can issue a SHOW PARAMETER NLS_LENGTH_SEMANTICS in SQL * more to check).

    Given that you use characters of butibyte, 36 bytes is not enough to fit all. Replace VARCHAR2 (36) by VARCHAR2 (36 TANK).

    SY.

  • Retriving data by joining several tables and total general

    Hello PL/SQL gurus and experts.

    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version
    I have table-

    I have the following three tables
    DROP TABLE Person_Tb;
    create table Person_Tb(Person_ID,Person_FName,Person_LName) as select
    1001, 'Nikki','Carlos' from dual union all select
    1002, 'Nina', 'Harrison' from DUAL union all select
    1003, 'Mike', 'Carwely' from dual union all select
    1004, 'Michael', 'Robinson' from DUAL union all select
    1005, 'Hendi', 'Klum' from dual union all select
    1006, 'Robert', 'Regan' from dual union all select
    1007, 'Maria', 'Washington' from dual union all select
    1008, 'Kistrien', 'Obama' from dual union all select
    1009, 'Andrew', 'Regan' from dual union all select
    1010, 'Emma', 'Thomsan' from dual union all select
    1011, 'Andy', 'Grant' from dual union all select
    1012, 'Brandy', 'Decosta' from dual;
    DROP TABLE Teacher;
    create table Teacher(Teacher_ID,Fee_Date,Account_ID) as select
    1001, '04/04/2013',3004 from dual union all select
    1002, '04/06/2013',3006 from DUAL union all select
    1003, '04/08/2013',3014 from dual union all select
    1004, '04/08/2013',3017 from DUAL union all select
    1005, '04/09/2013',3019 from dual union all select
    1011, '04/12/2013',3025 from dual union all select
    1012, '04/12/2013',3046 from DUAL;
    DROP TABLE Student;
    create table Student(Student_ID,Subaccount_ID) as select
    1006,3004 from dual union all select
    1007,3006 from DUAL union all select
    1008,3004 from dual union all select
    1009,3017 from DUAL union all select
    1010,3017 from dual;
    I am able to recover the data individually Tracher and student as -.
    Select distinct pt.Person_LName || ',' ||
                                           pt.Person_FName Trdr_NM
                                      from Student st, person_Tb pt
                                     where st.Student_id = pt.PERSON_ID
    Select distinct pt.Person_LName || ',' ||
                                           pt.Person_FName SubAct_Invst
                                      from Teacher  tc, person_Tb pt
                                     where tc.teacher_id = pt.PERSON_ID
    I need to get the records for all teachers who are associated with students-
    SubAct_Invst     Trdr_NM
    ----------------------------------------------------
    Carlos,Nikki 
              Regan,Robert
              Obama,Kistrien
    Harrison,Nina
              Washington,Maria
    Carwely,Mike
    Robinson,Michael
              Regan,Andrew
              Thomsan,Emma
    Klum,Hendi
    Grant,Andy
    Decosta,Brandy
    ------------------------------------------------------
    Grand Total
    7                                5
    But how to retrieve the data above format, many want to help. Thanks in advance and I really appericate your time and efforts.

    Ideally, your condition must be handled by a front-end tool...

    If you need specifically using SQL, you can check my previous post...

  • Number of error SQL ORA-00904: invalid column name has occurred.

    Hello
    on P8.18 on a Win 2003 server when we launch SWPAUDIT, it failed with:
    Number of error SQL ORA-00904: invalid column name has occurred. Query process failed.
    I searched this error on metalink3. Nothing in connection with.

    Any idea?

    Thank you.

    Please give a clear picture of what you are doing... .and what paintings... There is the possibility of the audit refers to certain tables... with deleted. names of columns just look in the structure of what you audit?

    Please, find the name of column...

    ORA-00904: string: invalid identifier
    Cause: The column name entered is invalid or missing.
    Action: Enter a valid column name. A valid column name must start with a letter, must be less than or equal to 30 characters and include only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in quotation marks. It cannot be a reserved word.

  • questions to move a column name as parameter. Please advice.

    Hi all

    I have some difficulties with oracle reports. I am a novice with the beginner 2 days.
    I am not able to use the lexical settings in reports. my query is as easy as

    Select & column-name abc xyz;

    I tried to make a setting before creating the SQL but I always get the error saying that ORA-00922: lack of expression.
    also I tried with bind variables like

    Select: col_name abc xyz;

    but it gives a: inplace Column of records the data.

    some could help me with step by step procedure to create a lexical parameter.

    I am using reports 6i.

    Please let me know for details.

    Thanks in advance!

    Hello

    I suggest you create a sing an example 'Basic' of the EMP table: (see the demobld.sql script provided with Developer Suite to create this table)

    Create a new report
    Create a COLUMN name parameter:
    Name = COLNAME
    DataType = character
    Width = 20
    Initial value = ENAME

    Create a SQL query: select & emp colname

    Create a page layout manually or with the wizard

    Click on the button «Run paper Layout»

    Enter a valid value for the 'column' name (ENAME / JOB / SAL / COMM /...)

    Concerning

  • Compare column names

    I have two tables with similar columns.
    Is there a way to check if the two tables have column same names regardless of the order of the columns?
    select  column_name
      from  user_tab_columns
      where table_name in ('table1','table2')
      group by column_name
      having count(*) = 1
    /
    

    I will give you a list of all the columns that exist only in one of the tables. If the column names are the same, it will return no data found.

    SY.

Maybe you are looking for

  • install deskjet 3050 without cd

    I can't find my CD to install my deskjet 3050 what can I do to install it without?

  • PhotoSmart Premium 309 a: wireless printer connection

    According to the configuration information, the computer is connected to the same network SSID as the printer but when the printer configuration wizard attempts to establish a wireless connection between them, an error comes up saying that they are c

  • General polynomial adjustment SVD method produces obviously fake bad adjustment

    I use 2009 SP1 For orders 0-3, it seems to works.  Orders 4 and above to produce results which in so clearly not a better fit, I can imagine how its possible.  I've seen other posts about it, but nobody seems to fully recognize that this is clearly a

  • Block diagram is broken

    Hi all I have a very frustrating problem. The block diagram of my VI has become perhaps a bit too large (though I tried to keep it as small as possible, there is a lot of stuff going on there) and after my last diagram cleanup some objects have disap

  • Computer will not start normally - boots to the BIOS boot screen

    Hi, today I had problems on my computer and it will not start normally upward. This started happening today. When I turn on the monitor, the HP logo appears on a blue screen (as usual), but then, there are a lot of vertical white lines grouped perfec