OMBPLUS Error OMB01701 on lowercase column name

Hi, I am trying to rename columns on tables that have been imported into OWB from a Sybase database with mixed and lowercase column names. However I get the OMB01701 error.
I can see these columns looking at a dummy table I created also by importing from an Oracle database.
OMB+> OMBRETRIEVE TABLE 'test_table2' GET COLUMNS
UPPER_COLUMN lower_col Mixed_Col
Issuing this command fails
OMB+> OMBALTER TABLE 'test_table2' MODIFY COLUMN 'lower_col' RENAME TO 'LOWER_COL'
OMB01701: Column lower_col not found.
As does this
OMB+> OMBRETRIEVE TABLE 'test_table2' COLUMN 'lower_col' GET PROPERTIES (DATATYPE)
OMB01701: Column lower_col not found.
Is there any way I can reference these lowercase / mixed case columns in OMBPLUS and rname them to uppercase ?
Thanks,
Phil
Edited by: 805479 on 27/03/2011 13:36

Hey Oleg, thanks for the reply and the code snippet. Shame about the bug ... we need the columns in uppercase in the OWB repository, as we are running various TCL scripts over the imported sybase tables which don't work well on lowercase column names. We have a few hundred to do.
I have tried the snippet you supplied in the Design Centre OMB Plus window and a DOS OMB Plus window to no avail. The line that gets an error is 'set yourModule [$project findGatewayModule $moduleName]' (I stepped through each line till the error occured).
OMB*Plus: Release 11.2.0.1.0
Copyright (c) 2000, 2009, Oracle. All rights reserved.
OMB+>
Context changed.
PROJECT /IDP
OMB+> set projName "IDP"
set moduleName "WATTSPH"
set tabName "TEST_TABLE2"
OMBCC '/$projName/$moduleName'
set repManager [java::call oracle.owb.connection.RepositoryManager getInstance]
set owbConnection [$repManager getConnection]
set projectManager [java::call oracle.owb.project.ProjectManager getInstance]
set project [$projectManager getWorkingProject]
#set yourModule [$project findOracleModule $moduleName]
set yourModule [$project findGatewayModule $moduleName]
Context changed.
oracle.owb.foundation.OWBException: java.lang.ClassCastException: oracle.owb.oracle.OracleModuleImpl
OMB+>
Would you have any idea on why this error happens ?
Note that with the time difference between US and NZ, I will not pick up any replies till next week.
Ta, Phil

Similar Messages

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

  • JDBC ResultSet lowercase Column names

    Hi,
    My group has a body of DBMS access beans which use lowercase column names for result set get(s)* ..ie rs.getString("empno");.
    Are current JDBC context uses KIVA\NAS.
    We've recently attempted to use these beans under Oracle JDBC OCI (type 2). We've noticed that Oracle JDBC prefers rs.getString("EMPNO") .. or rs.getString(1).
    Is there a way around this? Or do we have some serious changing to do?
    Thanks in advance.

    The column names our current driver takes in getString() is not case-sensitive. I am not sure whether that was the case with some previous versions. Is it possible that you can try it on the 8.1.6 driver?

  • Database Querry error when using # in column name

    I am using the Database toolkit to work with a MySQL database. 
    Some of the columns in the database have names with special characters:
    Batch# and Employee#.  The database tools give me an error when I
    try to write data to those fields.  I have tried square brackets
    around the column name [Batch#] but that doesn't seem to help.  Is
    there a way to update these fields with the Database tools?
    Here is the errror:
    Error -2147217900 occurred at Cmd Execute.vi->DB Tools Insert Data.vi->Move to NCP.vi
    Possible reason(s):
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.49-log]You have an error in your
    SQL syntax near '' at line 1.  in Rec Create - Command.vi->Cmd
    Execute.vi->DB Tools Insert Data.vi->Move to NCP.vi
    Attachments:
    Move to NCP.vi ‏60 KB

    Hi Anuj,
    Yes i am using SOA Suite 11g and i have chosen the right platform class as i am able to insert into other tables in DB2.The problem is in one table which has # appended in the column name.e.g.
    'abc#'.# charater is not supported in the wizard as the column name and that is why this error.I changed from backend and than tested i got the same error in the em.I need way to handle the columns have names like 'abc#'.
    Thanks

  • Default Errors= ORA-00904: invalid column name

    Hi,
    I nto expert in plsql , whenever i'm trying to run procedure or function mostly i got this same error and even i didn't view the error using
    show errors ,
    show errors procedure|function name
    CREATE OR REPLACE PROCEDURE SEND_MAIL (
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: ORA-00904: invalid column name
    ORA-06512: at line 13
    plz explain why this error often display
    regards
    venki

    Hi,
    unless just give me a suitable thread, please...

  • Return column name in lowcase

    Hi,
    how can I make Oracle ODBC Driver (8.01.72.00) returning column name in small letters ?
    Thanks for any help.

    Pardon my stupidity, but I'm still a little confused. Perhaps it's too early in the morning...
    If you create a table foo in Oracle, i.e.
    create table foo (
    col1 varchar2,
    col2 integer )
    col1 & col2 are stored as uppercase in the database, although queries against the table are case-insensitive. For instance
    select col1 from foo;
    select COL1 from foo;
    select cOl1 from foo;
    all return the same thing
    If you instead create a table
    create table foo (
    "col1" varchar2,
    "col2" integer )
    col1 & col2 are stored as case-sensitive column names, in this case lower case. Because the column names are case-sensitive,
    the SQL statement
    select "col1" from foo;
    will return the correct data, while
    select col1 from foo;
    will cause an error.
    Is this helpful to you? I guess I'm not sure where it is that you're generating or gathering column names, so I'm not sure how much control you have.
    If you're gathering column names by making calls to catalog functions like SQLTables, I assume you can simply use the appropriate LOWER() function call to create lowercase column names.
    If you can explain in a little more detail, preferrably with reference to the particular ODBC calls you're making, I might be able to help a little more.
    Justin

  • How To Create Table View With Same Column name But Different Table?

    Hi All,
    I have the problem to create a tableview with same column name but in different table.
    The Table that i have:-
    Table - PAC051MPROFORMA
    Column - mrn,visitid
    Table - PAC051TPROFORMA
    Column - mrn,visitid
    Table - PAC052MTRANSBILL
    Column - mrn,visitid
    Then i want to create a table view to view that table. This is my SQL
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    That SQL Return this error = ORA-00957: duplicate column name
    Then I modify that SQL to
    CREATE VIEW pacviewproforma (mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    This time this error return = ORA-01730: invalid number of column names specified
    What should i do?
    Thanks...

    Hi,
    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    ERROR at line 1:
    ORA-00957: duplicate column namePlease give different names to each column.
    Something like this..
    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    View created.
    SQL> DESC  pacviewproforma;
    Name                                      Null?    Type
    MPROFORMA_MRN                                      NUMBER
    MPROFORMA_VISITID                                  NUMBER
    TPROFORMA_MRN                                      NUMBER
    TPROFORMA_VISITID                                  NUMBER
    MTRANSBILL_MRN                                     NUMBER
    MTRANSBILL_VISITID                                 NUMBER
    ORA-01730: invalid number of column names specifiedThe list of column nmae you specified during the CREATE VIEW should match with the SELECT list of the view.
    Twinkle

  • Data subsetting [ORA-00957: duplicate column name]

    I want to select only rows with a certain id from a table.
    The code for the publication :
    SELECT * FROM ZOO.ANIMAL A, ZOO.TYPE_ANIMAL TA, ZOO.ANIMAL_EMPLOYE AE WHERE A.IDTYPEANIMAL = TA.IDTYPEANIMAL AND TA.IDTYPEANIMAL = AE.IDTYPEANIMAL AND AE.IDEMPLOYE = :employe
    When i publish with .jar, i have this error :
    ORA-00957: duplicate column name
    What is the problem ? The query works in iSQL*Plus !
    Thanks
    Message was edited by:
    user460585

    Hi,
    I guess that you are tired or something …
    01 update requisicoes set
    02 requisicao_num = '4321',
    03 requisicao_desc = 'dfgb',
    04 empresa_id = 3,
    05 posicao_id = 2, -- equals to 14
    06 solicitante = 'dfvsdfv',
    07 centrodecusto_solicitante = '5131',
    08 centrodecusto_executante = '5151',
    09 centrodecusto_aplicacao = '5141',
    10 data_saida = to_date('12/12/2004', 'dd/mm/yyyy'),
    11 data_desejada = to_date('12/12/2004', 'dd/mm/yyyy'),
    12 prioridade_id = 1,
    13 observacao = 'sgfbfdgbdfgb',
    14 posicao_id = 2
    15 where requisicao_id = 3
    Don’t you have:
    posicao_id = 2 in 5th line and in the 14th line ??
    Bye,
    Vitor

  • Create App From Spreadsheet: "column name is an Oracle reserved word"

    I'm creating an App from a spreadsheet on apex.oracle.com (3.0.0.00.20 at time of writing) and receiving the error "The identified column name is an Oracle reserved word. Please choose another name."
    I've tried adding an underscore to the end of each column name in order to avoid having to check every column name (yup, lazy) but that didn't remove the error, nor is any column name identified by the interface.
    Thoughts?

    Hi David,
    There was a bug at one time where reserved words were not being checked properly when creating columns. A particular problem related to names beginning with "SYS".
    Try adding the underscore in front of the column name.
    Regards
    Andy

  • Invalid Column name 'fill_factor'

    converting from sybase 11.5 to Oracle 9i.
    Using sybase 11.5 driver and the sybase 11 plugin.
    The load source model stops with an error : 'invalid column name 'fill_factor'.
    This occurs just at the point where it says 'capturing .. SYSPROCEDURES'
    How can I get around this??
    Please email me at : [email protected]
    Thanks.

    Hi,
    Even I am getting the same error when trying to see the table structure in sybase from SSMA tool. 
    Sybase Server Object Collector error: table : EFTArchive_bk2
         Invalid column name 'fill_factor'.
         Error occurred while loading content.
    I am not sure how to fix this. 
    This answer doesn't help me. "In SQL Server 2005 the fill_factor is spelled as FILLFACTOR." As I am
    getting this error sybase database itself.  
    I am using SSMA to migrate data from sybase to sql. when I select the tables in sybase, I am getting
    above error. (Invalid column name "fill_factor") 
    Could some please help me how to fix this error?

  • SSMA for Sybase - Table Not Load: Invalid Column Name fill_factor

    I am trying to convert from Sybase 11.5 to SQL 2005 and when I refresh from database I receive the following errors.  Fill_Factor is not a column in the tables in Sybase.  Any thoughts on what might be going on?
    Analyzing metadata...
    Converting procedure Mortality.dbo.proc_exposure_1 ...
    Sybase Server Object Collector error: table : company_mortality_rate_tbl
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Sybase Server Object Collector error: table : study
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Converting procedure Mortality.dbo.proc_mortality_output ...
    Sybase Server Object Collector error: table : sysindexes
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Sybase Server Object Collector error: table : sysindexes
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Sybase Server Object Collector error: table : exposure_array
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Sybase Server Object Collector error: table : mortality_rate_table
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Converting procedure Mortality.dbo.proc_study_work_1 ...
    Sybase Server Object Collector error: table : study_working
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.
    Sybase Server Object Collector error: table : study_working
         [Native Error code: 207]
    [DataDirect ADO Sybase Provider] Invalid column name 'fill_factor'.
         Error occurred while loading content.

    Hi,
    Even I am getting the same error when trying to see the table structure in sybase from SSMA tool. 
    Sybase Server Object Collector error: table : EFTArchive_bk2
         Invalid column name 'fill_factor'.
         Error occurred while loading content.
    I am not sure how to fix this. 
    This answer doesn't help me. "In SQL Server 2005 the fill_factor is spelled as FILLFACTOR." As I am
    getting this error sybase database itself.  
    I am using SSMA to migrate data from sybase to sql. when I select the tables in sybase, I am getting
    above error. (Invalid column name "fill_factor") 
    Could some please help me how to fix this error?

  • Saving result from sp_executesql into a variable and using dynamic column name - getting error "Error converting data type varchar to numeric"

    Im getting an error when running a procedure that includes this code.
    I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql
    DECLARE @retval AS DECIMAL(12,2)
    DECLARE @MonthVal VARCHAR(20), @SpreadKeyVal INT
    DECLARE @sqlcmd AS NVARCHAR(150)
    DECLARE @paramdef NVARCHAR(150)
    SET @MonthVal = 'Month' + CAST(@MonthNumber AS VARCHAR(2) );
    SET @SpreadKeyVal = @SpreadKey; --CAST(@SpreadKey AS VARCHAR(10) );
    SET @sqlcmd = N' SELECT @retvalout = @MonthVal FROM dbo.CourseSpread WHERE CourseSpreadId = @SpreadKeyVal';
    SET @paramdef = N'@MonthVal VARCHAR(20), @SpreadKeyVal INT, @retvalout DECIMAL(12,2) OUTPUT'
    --default
    SET @retval = 0.0;
    EXECUTE sys.sp_executesql @sqlcmd,@paramdef, @MonthVal = 'Month4',@SpreadKeyVal = 1, @retvalout = @retval OUTPUT;
    SELECT @retval
    DECLARE @return_value DECIMAL(12,2)
    EXEC @return_value = [dbo].[GetSpreadValueByMonthNumber]
    @SpreadKey = 1,
    @MonthNumber = 4
    SELECT 'Return Value' = @return_value
    Msg 8114, Level 16, State 5, Line 1
    Error converting data type varchar to numeric.

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql <<
    This is so very, very wrong! A column is an attribute of an entity. The idea that you are so screwed up that you have no idea if you want
    the shoe size, the phone number or something else at run time of this entity. 
    In Software Engineering we have a principle called cohesion that says a model should do one and only one task, have one and only one entry point, and one and only one exit point. 
    Hey, on a scale from 1 to 10, what color is your favorite letter of the alphabet? Yes, your mindset is that level of sillyity and absurdity. 
    Do you know that SQL is a declarative language? This family of languages does not use local variables! 
    Now think about “month_val” and what it means. A month is a temporal unit of measurement, so this is as silly as saying “liter_val” in your code. Why did you use “sp_” on a procedure? It has special meaning in T-SQL.  
    Think about how silly this is: 
     SET @month_val = 'Month' + CAST(@month_nbr AS VARCHAR(2));
    We do not do display formatting in a query. This is a violation of at the tiered architecture principle. We have a presentation layer. But more than that, the INTERVAL temporal data type is a {year-month} and never just a month. This is fundamental. 
    We need to see the DDL so we can re-write this mess. Want to fix it or not?
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2"

    I am using SSIS to extract fixed width data into a flat file destination and I keep getting below error. I have tried almost everything in this forum but still no solution. can anyone help me out to solve this problem.
    [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2".
    [SSIS.Pipeline] Error: component "Flat File Destination" (220) failed the pre-execute phase and returned error code 0xC0202095
    Thanks

    Hi Giss68,
    Could you check the Advanced tab of the Flat File Connection Manager to see whether the InputColumnWidth and the OutputColumnWidth properties of the Column2 has the same value? Please refer to the following link about the same topic:
    http://stackoverflow.com/questions/10292091/how-do-i-fix-failed-to-write-error-while-exporting-data-to-ragged-right-flat-fil 
    If it doesn’t work, please post the sample data and the advanced settings of Column2 for further analysis.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Error in Abap code - Unknown column name

    Hi
    I have this error in my code.
    Unknown column name "SUM(EKBE-MENGE)" field list. field list. field
    My code
    *Select sum(ekbe-menge)
           into MCSTRUCT-ZQuant
          from ekbe*
    How do I resolve this.
    thanks

    Hi,
    Try the following statement:
    Select sum( menge )
    into MCSTRUCT-ZQuant
    from ekbe.
    hope it helps...
    regards,
    Raju

  • Lowercase first letter in column name of non-interactive report

    I have a report from this query:
    SELECT DISTINCT
    v.isotope, v.location,
    v.activity_in_ucuries as "uCi"
    FROM inventory v
    where v.location = 'IN PROCESS'
    and v.activity_in_ucuries > 0
    Note 'as "uCi"' - when the report displays the lowercase u is displayed as an uppercase U
    In the column attributes , I have set the column heading as lowercase. In the report attributes I have Heading Type set as custom
    and the column heading shows lowercase. I have also tried using the a heading type of Column Names. With all of these changes the
    report still comes out with an uppercase U.
    Is there a way to prevent the automatic set of the first letter to Uppercase or alternatively, force the first letter to lowercase?
    Thanks
    Donna

    I am using theme 13. I don't have any experience changing the templates, so the report template has the following in Column Headings:
    <th#ALIGNMENT# id="#COLUMN_HEADER_NAME#" class="t13ReportHeader">#COLUMN_HEADER#</th>
    Can I make a change in here to prevent the transformation of the 1st character to uppercase? (I would also love to change the u to mu!)
    I do have a test application in theme 3 that seems to preserve whatever case I enter it in...I suppose I can change themes, but I would like to stick with theme 13 if possible.
    Thanks for any additional help.
    Donna

Maybe you are looking for

  • How can I set up an AirPort wirelessly in client mode on a roaming network?

    I recently set up a roaming network within my office using a RADIUS server for access control. I have multiple airports connected to our broadband via ethernetcable providing a seamless network over a large space. It works great. However, now that I'

  • How to get the printer button to appear

    The buttons on my printer should say scan, copy & print. They are now saying scan, copy & copy.   how do I get the print button back, as I cannot print

  • HT2688 I have a used computer how do i open my library

    my laptop was stolen so i now have a used computer and im trying to open my ipod library but i get the library of the previous owner of the pc.  what do i do?

  • My sounds for my short film aren't playing.

    i am using artificial sounds for my short film.  I had the street noise.  then i added sounds of a door opening and closing and i exported it and it was fine.  the next day the door sounds had an next to them.  i deleted and re added. no but still no

  • Arrow keys not working on CS2 64 bit system

    Recently purchased a new computer with 64 bit system 4meg ram. I installed CS2 and everything seems to be working except the arrow keys and the control +/- features. Arrow keys are working in other programs like word and publisher. Any suggerstions?