Column name has spaces

Is there any way to make OBIEE handle a table which has column names with spaces?
Besides creating a view with aliases on that table, of course?
I suppose, it's about making a queries where all column names are quoted.

Well, this is exactly how I created all those tables. They have tens of columns like that, unfortunately, that was a requirement.
I am completely new to OBIEE tool, but AFAIK it maps physical tables to some business layers and then it generates queries to the database depending on user's actions.
So my question is: is it possible to configure OBIEE server so that all queries sent to DB have column names in quotes, regardless of particular column name?
It's about total of 1000 columns with such names spread over 80 tables, so I am looking for easy way to make it work with those tables...

Similar Messages

  • Trouble when file name has spaces

    In Windows XP's Windows Explorer, when I double click a .pdf file to open it the Adobe Reader comes up and then sometimes puts up a pop-up saying "There was an error opening this document. This file cannot be found". I have to click OK several times to get the pop-up to go down.
    After some internet investigation I discovered if the file's path name has spaces then Adobe breaks the path into pieces at the spaces and interprets it as several file names. The advice I found on the internet was to have the launching application put double quotes around the file name.
    The trouble is, in my case the launching application is Windows XP, and I don't know how to instruct it to add the double quotes.

    I WANT THE PASSWORD
    SAYS ANOTHER ACCOUNT WITH THE SAME ADDRESS
    I WANT THE PASSWORD

  • How can I find out those files whose name has space character?

    Hi
    How can I find out the files whose name has space character in a whole file system?
    Thanks
    Jerry

    thank you all
    I can use this command to find out like
    $find ./ -type f -exec ls -1 {} \; 2>/dev/null | grep " "
    ./space in name
    while, I modify above a little to find out a spcific file systems like below:
    $find /bbj* -type f -exec ls -1 {} \; 2>/dev/null | grep " "
    /bbj14/appl/oracle/prdrep/S_STATIC_TAB_05.dbf
    --while, I didn't see any space character in file name "S_STATIC_TAB_05.dbf"
    what is wrong?
    thanks

  • SQL Query not working for column names with spaces

    Hi People..
    We have a strange situation wherein, the column name in the database table has a space inbetween like "Constant Name". While we write a JDBC statement code with the select query we get an exception for invalid syntax. It will help us in a great way if you have anything to inform us on this..
    Thanks
    Prabz

    Using case sensitive names and names with spaces in it is not a good practice.
    However, I believe the SQL standard accounts for this with quoted identifiers. I believe the syntax is
    . select "My Field1", "My Field2"
    . from "My Table'
    Have also seen the following although it might be MS Access specific.
    . select [My Field1], [My Field2]
    . from [My Table]

  • ACCESS column names containing spaces

    Hi
    I'm new to Java SQL programming and have come across a problem I can't seem to fix reharding ACCESS column names that contain spaces.
    Here's the actual code :
    sqlquery = "select * from cars,qualify where group2 = '" + addComponentsToDrivers.currentgroupcode + "' and cars.car id no = qualify.car id no";
    here's the error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'group2 = 'INTGT5' and cars.car id no = qualify.car id no'.
    The question is how can I code qualify.car id no?
    Thanks
    Ken

    and cars.car id no = qualify.car id noand cars.[car id no] = qualify.[car id no]

  • Problem in executing jar when the folder name has empty space

    Hi,
    I need to run my java swing application on double clicking the jar file. It works fine when the file path has no empty spaces in the folder name. It doesnt open when the folder name has spaces in between them. Can anyone let me know how to resolve it.
    String workingDir = new File("SwingApplication").getAbsolutePath();
    String cmd = "java -jar " ++workingDir ++"/SwingApplication.jar";
    Runtime.getRuntime().exec(cmd);This works fine when the SwingApplication.jar is inside for eg: c://{color:#ff0000}RunApplication{color}/SwingApplication.jar
    but the application doesnt open if the file path is c://{color:#0000ff}Run Application{color}/SwingApplication.jar

    javaquests wrote:
    ..ProcessBuilder pb = new ProcessBuilder("java -jar");
    pb.directory(new File(workingDirPath + "/SwingApplication.jar"));
    Process p = pb.start();
    . but getting an exception
    java.io.IOException: Cannot run program "java -jar" (in directory "C:\Run Application\SwingApplication.jar"): CreateProcess error=267, The directory name is invalidWhile..
    C:\Run Application\..might be a directory, is..
    C:\Run Application\SwingApplication.jar?
    I was thinking something more like this (untested)..
    String path = workingDirPath + "/SwingApplication.jar";
    String[] command = {
         "java",
         "-jar",
         path
    ProcessBuilder pb = new ProcessBuilder(command);
    Process p = pb.start();BTW - when posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags protect the indentation anf formatting of the sample. To use the code tags, select the sample and click the CODE button.

  • "invalid column name" using resultset.getString()???

    I had a sql query against oracle db:
    select table1.field1, table1.field2, table2.field3
    from table1, table2
    where table1.field1=table2.field1;
    i got a valid resultset and i can enum the resultset by rs.getString(colnum). However, when i try to use rs.getString(table1.field1), i get a sql exception: "invalid column name". has anybody seen this before?
    TIA

    Hi,
    You can also modify your query and use the keyword "As" to give your fields another name :
    select user.name as userName, admin.name as adminName
    from user, admin
    rs.getString("userName");
    rs.getString("adminName");

  • Hyperion IR 9.3.1.3:  Spaces in Column Names

    I have a table that has column names that have spaces. Hyperion IR 9.3.1.3 Studio can query this fine, but IR Web Client can't. In Studio, the query log shows the column names surrounded by quotes, but the Web Client won't even show me the query in the query log. Is there a setting I missed when I published the OCE to the Workspace?

    After checking the Use Quoted Identifiers box in the Advanced Options for the connection, the query works, but I still can't use the Detail View option for the table in the data model.

  • The column name "PERNR" has two meanings. ABAP/4 Open SQL statement.

    Hi All,
    Could anyone advise on what are the error I encountered at below code.
    I get the error in " The column name "PERNR" has two meanings. ABAP/4 Open SQL statement." . This errors happen to all the key fields I have selected in below code (eg: pernr, subty, objps, sprps, begda, endda, seqnr).
    The field zeih also encountered error in "Unknown column name "ZEIH". not determined until runtime, you cannot specify a field list."      
      SELECT  pernr
                   subty
                   objps
                   sprps
                   begda
                   endda
                  seqnr
                  zlsch
                  ZEIH
      SELECT * INTO CORRESPONDING FIELDS
              OF TABLE  i_pa0009
              FROM pa0001 INNER JOIN pa0009
              ON pa0001pernr = pa0009pernr
              WHERE bukrs IN s_code AND
              banks NE space.

    Hi,
    In this query
    SELECT pernr
    subty
    objps
    sprps
    begda
    endda
    seqnr
    zlsch
    ZEIH
    if you have used joins and if both the database pa0001, pa0009 has the above mentioned fields you will get the error message as the control gets confused as to which table of the field you are referring to..., instead use them in this way
    SELECT pa0001~pernr
    for each field mention to which table it belongs and ~ before the field name in the above fashion, this will remove the error
    Regards,
    Siddarth

  • How to include columns with a space in name in clientcontext load method in JSOM

    Hi Gurus,
    I have a situation where I need to read a list that has a column 'Repositary Name'.
    While I am reading the list in my JSOM I need to load this column in the clientcontext.load method.
    My code likes this below.
    this.collListItem = list.getItems(camlQuery);
        ctx.load(collListItem, 'Include(Title, 'Repositary Name')')
    The Issue is I can not load this 'Repositary Name' column. I tried with its internal name, removing the space, putting the name in single quote but nothing works.
    Please advice how to include a column in clientcontext.load method that has a space in its name .
    Changing the column is not a option and I have to have call it before I use it my Async Methods.

    Hi,
    If I am getting your issue correctly, I think you should put _x0020_ in place of space in your column name. In your case try Repositary_x0020_Name.
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote***

  • Removing spaces in column names

    Hi
    I have imported a number of tables from a legacy db. The column names in tables have spaces in them. Is there a script I can run to remove spaces from column names in all tables?
    Thanks
    Regards

    First of all, I do not agree with the concept of changing the column names. There is a good chance of breaking your code, if the table has been referred in procs/functions etc.
    One good method would be, import the tables from legacy db into staging and then insert into your actual tables by mapping the tables correctly where your actual table would not have the [space].[Here, I assume your procs/functions etc refer only your actual
    tables not staging tables].
    OR, if you are looking for a plain logic, then use the below:
    The below script wont execute the change, but just would give the statements to be executed to make the column modifications. This is intentional, because this is not a good practice and you can verify the objects and scripts rather than executing it directly.
    create table test_table([column test space] int)
    --select * From test_table
    --Script to do the change in column name
    select 'EXEC sp_rename '''+ B.name+'.'+a.name +''', '''+replace(a.name,' ','') +''', ''COLUMN''' from sys.columns A
    Inner join sys.tables B on A.object_id = B.object_id and OBJECTPROPERTY(b.object_id, N'IsUserTable') = 1
    where
    system_type_id in
    (select system_type_id From sys.types ) and charindex(' ',a.name)<>0
    EXEC sp_rename 'tbl_apas_t_tech.application id', 'applicationid', 'COLUMN'
    EXEC sp_rename 'test_table.column test space', 'columntestspace', 'COLUMN'
    Drop table test_table
    EDIT: Formatting...

  • MS Access DB with Spaces in Column Name

    Good Afternoon-
    I'm having some serious headaches with a table that I need to extract information from. The powers that be wrote it with the following column names "Contract Number" , "Customer Number", "Description".
    Note the spaces in the columns.
    Sample code from here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2691&lngWId=2
    I'm using sample code for connecting to the database and I can access everything using the select statements, except if the column contains a space. I get the following errors:
    s.execute("select [Customer Number], Name from Customer");
    Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    s.execute("select \"Customer Number\", Name from Customer");
    Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    s.execute("select Customer*Number, Name from Customer");
    Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
    s.execute("select 'Customer Number' , Name from Customer");
    Data from column_name: Customer Number , Unknown
    This works, but would require parsing-
    s.execute("select * from Customer");
    Data from column_name: 5 , Unknown
    Suggestions would be truly appreciated.
    Jason

    "select [Customer Number] , Name from Customer " ;
    returned the correct responses.Double quoted identifiers, which is part of ANSI SQL should have solved it....
    "select \"Customer Number\" , Name from Customer " ;
    As mentioned above it has certainly been my experience that DBAs (those with that title) all insist that quoted identifiers should never be used. Thus refactoring the database identifiers is actually the correct solution.

  • How to allow space in the column names

    Hi
    My program reads data from an excel file which has columns named "Fiscal Year" and "current period". I can read data from the file as below...
    select * from the_file
    But it does not allow me, if I write the following sql statement.
    select distinct fiscal Year, current period from the_file
    I need to get distinct values from these two columns and the order in which these columns will appear in excel file is not fixed.
    I tried
    select distinct 'fiscal Year', 'current period' from the_file
    But it did not work
    Please help as how can I specify these columns that has a space in its name.
    Thanks

    Have you tried Double quotes as in:
    select distinct "fiscal Year", "current period" from the_file;

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • Special Characters and spaces in Tablenames and Column Names are allowed ?

    Hi
    I have created two tables in Oracle10g
    as follows
    SQL> create table test(columna number,columnb varchar2(20),primary key(columna));
    Table created.
    SQL> insert into test values(1,'test');
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> create table "test quote"("#" number,abc number,primary key("#"));
    Table created.
    SQL> insert into "test quote" values(1,2);
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> select * from "test quote";
    # ABC
    1 2
    SQL> select * from test;
    COLUMNA COLUMNB
    1 test
    Now I want to cache the tables and their data into TimesTen
    The cache group for table test which is not having any spaces and special characters in table name and column names is created perfectly.
    But when I create the cache group for table "test quote" which is having special characters and spaces it gives error :
    Command>create readonly cache group w2 from testuser.test(columna number,columnb varchar2(20),primary key(columna));
    Command>select * from test;
    <1,test>
    1 row found.
    Command>create readonly cache group w3 from testuser."test quote"("#" number,abc number,primary key("#"));
    5140: Could not find TESTUSER.TEST QUOTE in Oracle. May not have privileges.
    Command Failed.
    Now there is contradiction that why cache group for table test is created successfully and why it is not being created for table "test quote".
    What I think is if special characters and spaces in column names and table names are possible in Oracle then it sould be possible in TimesTen.
    Any possible solution.
    Looking forward for your reply.
    Please help I am stuck badly.
    /Ahmad

    Hi
    Problem Solved ....... Remeber only Capital letters work with special characters ......
    /Ahmad

Maybe you are looking for

  • What does this error message mean? (startup disk memory)

    Hello, I am running OS 10.7.2 (Lion) on a new'ish 27 inch iMac, and I am getting the following error message appearing randomly on my screen: "Your Mac OS X startup disk has no more space available for application memory" There is a yellow exclamatio

  • Basic things needed to connect JDE One World XE B7333 SP17  to XI?

    Hello....      Can anyone tell me the basic things needed to connect JDE One World XE B7333 SP17  to XI?      Hve anyone done this scenario before? --Pramod.

  • Test Stand API 1.0 and LabView 6 UI

    I modified the Simple User Interface provided with TestStand for my companies needs. When a step fails, I intercept the UI message when "Update Result List" is true - I receive a step name - status, strip out the step name and go to a case statement

  • Network Ports requirements in Enterprise Lync Infrastructure with DR

    Hello, We are in process of Lync Server 2013 enterprise deployment where all the workloads will be used. We have two distinct datacenters representing two different sites. Below is the infrastructure information Single Forest ContoBill.Com Empty root

  • Safarai for Windows crashes

    I am using Safarai for Windows version 3.0.4, on a XP desktop, I do have it set up as the default internet browser. The problem that I'm having is when I'm on a site that requires me to sign in, if I press the Tab key on my keyboard after typing in m