Table name issue accessing OATS schema using OBIEE

We are attempting to integrate OATS 12.1 with OBIEE 11g for reporting purposes and encounter the following error when using the BI Administration tool to update a row count of a physical table or query using the Analysis tool against our target OATS schema. For example:
There was an error while updating row count for
"OTM.atg.com".."OTM"."View_Tests":
[nQSError: 17011] SQL statement execution failed.
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942:
table or view does not exist
at OCI call OCIStmtExecute: select count(*) from
OTM.View_Tests
I tried this out with other tables such as "TO_TestCase"
The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table was created, which I understands enforces the preservation of letter case-- i.e. "Mixed_Case" names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected table columns, but the querying for row count and data fails.
One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
I also found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
# Case sensitivity should be set to match the remote
# target database.
CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
Are there other ways to get OBIEE to recognize mixed-case table names?
Thanks!

Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
So if a script is, for example, to create a schema, it should look something as follows:
-- usage: create-schema.sql <schema_name>
set verify off
set define on
create user &1 identified by .. default tablespace .. quota ... ;
grant ... to &1;
--eof
If script 1 wants to call it direct then:
-- script 1
@create-schema SCOTT
If script 2 want to call it using an existing variable:
-- script 2
@create-schema &SCHEMA
Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots.

Similar Messages

  • Get the table names from a specified schema name

    Can't any one can hlep me how to use OCIDescribeAny() to retrive the list of table names for a given schema name?
    I have problem when I connect to the database using syste as usr id. I can't ge the table name form the SCOTT schema.

    If I understand you correctly, I don't think OCIDescribeAny() is the way to go.
    You can get a list of tables owned by a particular schema by using the following SQL:-
    SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER = 'SCOTT'
    Just change the where clause to your needs.
    Regards.
    Adrian

  • Is there a way to view all the table names in a certain schema?

    Is there a way to view all the table names in a certain schema?

    SELECT table_name FROM user_tablesThat won't do much good given this piece of information:
    i am trying to finish a lab for school but i don't know what tables are in my
    professor's schema. The appropriate solution is
    SELECT table_name
    FROM all_tables
    WHERE owner = 'PROFESSOR_YAFFLE'
    /This will show the names of the tables which Prof. Yaffle has granted to us.
    Cheers, APC

  • How to use a table name in the select statement using a variable?

    Hi Everybody,
                       I got a internal table which has a field or a variable that gets me some tables names. Now I need to retrieve the data from all these tables in that field dynamically at runtime. So could you suggest me a way out to use the select query which uses this variable as a table ?
    Regards,
    Mallik.

    Hi all,
    Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
    for ex : select * from (tab_name) where....?
    Can we do inner join on such select statements? If so how?
    Thanks & Regards,
    Mallik.

  • How to create a table in MS Access from Labview using ActiveX?

    I want to transfer datas from Labview to Access using activeX method. My only problem is to find out how to create a new table (array) in Access from the Labview program.
    Remarks: I use Labview 6i and MS Access 2000.
    For the moment I can write and read datas of Access from Labview.
    If someone could help me... that would be grate!

    This is off the Microsoft MSDN site "creating an external table". I think you can drop the last step.:
    Open the database you want to create the table in. If it is the current database, use the CurrentDb function to return an object variable that represents the current database. If it isn�t the current database, use the OpenDatabase method to open the database you want.
    Use the CurrentDb function to create a Database object that points to the current database.
    Use the CreateTableDef method of the Database object to create a table definition for the Microsoft Access table.
    Use the CreateField method of the TableDef object to create one or more fields in the Microsoft Access table.
    Use the Append method of the Fields collection to add the new field or fields t
    o the Microsoft Access table.
    Use the Append method of the TableDefs collection to create the Microsoft Access table.
    Use the TransferDatabase method to create the external table in the specified folder.
    Use the Delete method of the TableDefs collection to delete the Microsoft Access table definition.

  • Table name to find a variable used in which queries

    Hello,
    what is table name to find a particular variable used in which queries.

      write 'Variable Name:'.
      write vname.
      write /.
      write 'Variable Type:'.
      write variabletype.
      write /.
      write 'Based on Infoobject:'.
      write variobj.
      write /.
      write 'Variable Processing Type:'.
      write varprocesstyp.
      write /.
      write 'Variable Select Parameters:'.
      write varselectiontyp.
      write /.
      write 'Variable Ready for Input:'.
      write varinputtyp.
      write /.
      write 'Variable Entry criteria:'.
      write varentrytyp.
      write /.
      write 'Variable can be changed during navigation:'.
      write varchangeable.
      write /.
    *  write
    Select single varuniid from rszglobv into varid where vnam = p_varnm.
    select single TXTLG from RSZELTTXT into variabledescription where ELTUID = varid and OBJVERS = 'A'.
    write 'Variable Description:'.
    write variabledescription.
    write /.
    write /.
    querydet-querytechname = 'Query Technical Name'.
    querydet-querydesc = 'Query Description'.
    write querydet-querytechname.
    write querydet-querydesc.
    write /.
    Select SELTUID from RSZELTXREF into table queryuid where TELTUID = varid and laytp = 'VAR' and OBJVERS = 'A'.
    loop at queryuid into querydets.
    select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = 'A'.
    select single txtlg from RSZELTTXT into querydet-querydesc where ELTUID = querydets-queryid and objvers = 'A'.
      write querydet-querytechname.
      write querydet-querydesc.
      write /.
    *update querydet from querydetail.
    endloop.
    write 'Query View Details for affected queries'.
    write /.
    viewtab-viewtechname = 'View Technical Name'.
    viewdesc = 'View Description'.
    write viewtab-viewtechname.
    write viewdesc.
    write /.
    clear viewtab.
    clear viewdesc.
    loop at queryuid into querydets.
    select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = 'A'.
    select viewid from rszwview into table viewtab where compid = querydet-querytechname and objvers = 'A'.
    loop at viewtab into viewdetails.
      select single TXTLG from RSZWOBJTXT into viewdesc where objid = viewdetails-viewtechname.
        write viewdetails-viewtechname.
        write viewdesc.
        write /.
       endloop.
      endloop.

  • Table name for BW Query Where used list

    Hi,
    I am looking for Table name where the information of  " where used list " of a BW query stores.
    Any help ?
    Thanks
    Satya

    Vani,
    I dont think it is available...
    whats your exact requirement???
    you can make use of these below tables
    RSZELTDIR              Directory of the reporting component elements
    RSZELTTXT      Texts of reporting component elements
    RSZELTXREF      Directory of query element references
    RSRREPDIR             Directory of all reports (Query GENUNIID)
    RSZCOMPDIR      Directory of reporting components
    RSZRANGE      Selection specification for an element
    RSZSELECT             Selection properties of an element
    RSZELTDIR              Directory of the reporting component elements
    RSZCOMPIC            Assignment reuseable component <-> InfoCube
    RSZELTPRIO      Priorities with element collisions
    RSZELTPROP      Element properties (settings)
    RSZELTATTR      Attribute selection per dimension element
    RSZCALC                    Definition of a formula element
    RSZCEL                 Query Designer: Directory of Cells
    RSZGLOBV            Global Variables in Reporting

  • Errors when browsing same table name in a different schema.

    I have two separate schema in a database and each has a table with the same name but different columns. I used the GUI to change the column order while looking at the data on one table. Now I can't see data in the other table and I get the error message ORA-00904: "DAY_DT": invalid identifier. I have tried to clear the persisted settings on both tables and I have disconnected and logged out SQLDeveloper and the problem still persists. How can I fix this.
    Edited by: user507794 on Apr 14, 2010 8:51 AM

    I had another user try to look at data in the table from his account on his PC and he saw the same error. So I looked a little deeper. The situation seems to be this
    user_a creates a table and a public synonym of the same name. user_a grants select on the table to user_c
    user_b creates a table using the same name as user_a's table with different columns. user_b grants select on the table to user_c
    user_c can use the GUI to see the the data in user_a's table.
    user_c cannot use the GUI to see user_b's table data. The GUI returns an error ORA-00904: "XXX": invalid identifier where XXX is a column on user_a's table.

  • EJB with same tables names on differents oracle schemas

    Hi,
    I need to deploy 2 ejbs in one database oracle 10g instance with 2 schemas. The 2 EJBs have some tables with the same name.
    When I try to deploy the second EJB (after I deployed successfully the first on the first schema) on the second empty schema, it gives me the following error:
    10:28:27,135 ERROR [SchemaUpdate] Unsuccessful: alter table T_ACTIVITY add constraint FKF970329A403565CA foreign key (LAST_UPDATE_USER_KEY) references T_USER
    10:28:27,135 ERROR [SchemaUpdate] ORA-00942: tabella o vista inesistenteand the table for the second schema is not created.
    This error is repeated for all the tables that have the same name on the first and on the second ejb,
    even if the table exists only on the first schema.
    How can I solve it?
    Thank you in advance.
    Alessandro Rossi

    Thank you so much, I found the solution and I've seen your post at the same time :)
    Specifying the schema attribute on @table annotation all works properly. I thought that the default schema was taken from the user specified on the data source, but obviously this is not enough.
    Alessandro Rossi.

  • Accessing HR schema using html db

    We have our own schema called HR, and I need to create an application based on HR tables.
    The person who is administering the html db has problems assigning HR schema to my workspace.
    Is HR a reserved word and what is the way to deal with it?

    Both are schemas in the same instance I presume.
    A workaround can be access from the HR schema to the workspace in htmldb.
    If it is the HR schema of Oracle Applications be careful with updating tables in the HR schema. Only granting select on tables (by schema/user HR to your workschema in html db) can make things more secure.

  • Help - Issue accessing iTunes following use of migration assistant

    I have just transferred the contents (which included my iTunes library) of a home pc to a new iMac. The transfer went well and once completed, a 'second'  iMac user was created in addition to myself (using the old computer name) which now means that I have to log out and then log in as another user to use/access it. I am the sole user of the iMac and wondered if there is any way I can delete the 'second' user and somehow transfer the iTunes across to me?

    Time machine backups. I went to migration assistant a few hours ago and limited my selection to "users", no need for applications, settings and other files.  Stuff started moving over at a fast pace but has now seemed to stall.
    I will let it run overnight as there are lots of songs and photos as well as a few movies.
    If that does not work, then I will go into TM and try restore. I have restored some things in the past such a mail files and it has worked well. 
    The Apple fellow at the store told me to go right into TM, he may have had a point. I'll get it eventually.

  • Table Name Issue of CAF Entity Service

    Hi All
    I have a problem in the following scenario :--
    I have created a CAF project named xflit_01 in local development. Another CAF project xflit_02 is created in local development of another machine's NWDS but both the project has a same entity service name,'Flight'. But one interesting observation from persistency tab of the entity service'Flight' is that for tables generated for both the entity services are same name, 'XAP_XFL_FLIGHT0001' where "XAP_XFL_" is namespace and "FLIGHT0001" is names. Both entity services are mapped with same external service.
    Next I have deployed that two projects such as xflit_01 and xflit_02 in same central WAS from different machine's NWDS one by one. but how two tables with same name, 'XAP_XFL_FLIGHT0001' would be handle by WAS? But after the deployment we need to configure external service. So in External Service configuration window we are getting error when the link Service Registry is clicked.    
    Any idea will highly be appreciated.
    Thanks
    Chandan

    Solved by myself. Reason is for same db and CAF table naming convention

  • Using sql query as a table name

    hello,
    I have a table(say table1) which is storing the names of some other tables. I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from
    retrieved table name. How can I do this ?
    ex:
    select * from (select tablename from table1 where tableid='1');
    I want to do something likw this. How can I do this?

    I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from retrieved table name. How can I do this ?e.g. like this:
    SQL> with table1 as (
    select 'emp' tablename from dual
    select extractvalue(x.column_value, 'ROW/ENAME') ename
    from table1, xmltable('ROWSET/ROW' passing dbms_xmlgen.getxmltype('select * from ' || tablename)) x
    ENAME                                                                                                                       
    SMITH                                                                                                                       
    ALLEN                                                                                                                       
    WARD                                                                                                                        
    JONES                                                                                                                       
    MARTIN                                                                                                                      
    BLAKE                                                                                                                       
    CLARK                                                                                                                       
    SCOTT                                                                                                                       
    KING                                                                                                                        
    TURNER                                                                                                                      
    ADAMS                                                                                                                       
    JAMES                                                                                                                       
    FORD                                                                                                                        
    MILLER                                                                                                                      
    14 rows selected.

  • Table names migration

    Hello,
    The table names in access we use have spaces between them... Example "Table name". Will migration workbench accept such names and convert them into oracle? I've never used such names in oracle. Normally underscores are used. What happens to the code behind forms and reports if at all the MWB changes the table names to something else?

    The tables will be replaced with linked tables and queries created using tha names of your existing tables. This means that the existing forms and reports do not need to change as they will access the queries rather than the tables.
    Hope this helps.
    Kevin

  • Fully qualified table name

    Hi,
    say I am doing a generic program that must retreive the table/view names and the number rows they hold.
    I am using the DatabaseMetaData.getTables to grab each table name, along with its schema and catalog.
    Then, I would send a request "SELECT COUNT(*) FROM "+myFullyQualifiedTableName to get the number of rows.
    My question is : given a table name with its schema and catalog names, whar is the value of the variable myFullyQualifiedTableName ?
    is it <catalog>.<schema>.<table> ?
    <schema>.<catalog>.<table> ?
    something else ?
    and what if there is no catalog and/or no schema name ?
    thanks for your help,
    cd

    This is true on Oracle only, AFAIK.
    anyway, on oracle, if you connect as user1, you can see the tables belonging to user2, provided you are granted for that. The User is the schema
    On M$SQLServer, you can see all the tables in all the databases hosted on the server you are connected to. theDatabase is the schema.

Maybe you are looking for

  • Macbook Pro Charge problems

    So I have a Macbook Pro I bought in August 2010, which over the last 3 days has started developing charging problems. It does one of the two of the following: I plug the charger in, the charge light will come on and the laptop will charge for about 4

  • Is it possible to run Oracle 11g R1 on VMWare instance?

    Hello, I have installed Oracle in a VMWare Windows XP instance, and when I try to navigate in IE7 to the Enterprise Manager I just get square boxes. I'm just trying to go to http://localhost:1158/em I'm a little new to this. Did I mess something up?

  • DHCP Service errors in Publisher

    We have thousand of the same DHCP Service errors below on the Publisher, but the DHCP service is disbled. Don't know if that is a bug in Window 2000. It is running on OS 2000.2.7sr8. Thanks. Event ID: 1008 Source: Perflib The Open Procedure for servi

  • Iphone maps 3g "transit directions could not be found between these locations"

    RE: iphone maps 3g "transit directions could not be found between these locations" My kitten (Mr. Kitty or Mister K Star), who I had just adopted from the SPCA (died on August 14, 2011) -- which has really put my mental state all over the kitten plac

  • Satellite A305-S6825 - YouTube viewing full screen

    Does the following have to be done everytime we turn on the Toshiba notebook (VistaPremium) and go into YouTube? "Try adjusting this Flash Player setting. While the video is playing, right-click on it and click Settings. Uncheck the box for Enable ha