Alias for table and colum names?

Hi there,
is there a new to create a alias for table and colum names? If so, how can I do this?
Thanks,
Andre

I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
Best Regards,
Chris

Similar Messages

  • Generating mixed case for table and column names

    I trying to get table definition from Oracle 9i database into my toplink workbench
    (version 9.0.3), the column names and table names are capitilized by
    default, how do I change this to be mixed case? Thanks

    I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
    That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
    Best Regards,
    Chris

  • Import dumpfile with seperate tablespaces for table and index

    Hi,
    We have a schema for which the its tables are stored in seperate tablespace and indexes are stored in different tablespace. Now we have take full schema export. Now we want to import it on another schema. Now I want to know if the we have difference in the tablespace name we use REMAP_TABLESPACE clause of the impdp command but what about the seperate tablespace for table and indexes. How would Oracle handle this.
    Regards,
    Abbasi

    Hi,
    I hope you created the same tablespace structure on the target side if not so remap_tablespace option you have to use for specifying different tablespaces.Oracle will take care of putting data and index.Any how if a index is moved from one tablespace to other you have to rebuild them,once you rebuild them than only stattistics are gathered otherwise you
    might face some performance issue.
    Better option is to keep same tablespace structures in source and target environment.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com
    Edited by: Rafi (Oracle DBA) on May 9, 2011 7:07 AM

  • List tables and column names a stored procedure is querying

    Hello,
    Is there a way to list tables and column names that a stored procedure is querying, i.e, selecting from, using T-SQL?  If yes, is there a way to also show data types for the columns that a stored procedure is querying, i.e, selecting from?
    Thank you,  
    Lenfinkel

    One way to view the dependencies of an object is to use SSMS; navigate to the object, right click and select "view dependencies".  However this does not tell you what columns are being referenced by the Stored Procedure.
    One way to view what is being referenced by a stored procedure is to run something like
    select
    text
    from syscomments
    where
    id in
    (select id
    from sysobjects
    where
    name
    =[Your Object Name]
    And xtype
    in
    ('p','P')
    Please click "Mark As Answer" if my post helped. Tony C.

  • Adding Tags in PDF for Tables and Figures

    Please let me know how to add tags for Table and Figure in the PDF and also about setting up attributes for that

    You can add tags to a PDF Document. If the PDF is untagged you can use the advanced, accessabilty, add tags to the document. If the PDF is already tagged or after you have run the add tags you can use the "touch up reading order" menu and then make the item you want to be a table a table etc....
    Be Well

  • Indesign cs3 for table and figure

    In Indesign cs3 for table and figure automation scripts
    Tables - auto align and place near citation
    Figures - place near citation with caption
    Its urgent

    ok, well, you may want to ask a question, rather than just stating what you need to do. also, people are helping you for free, so writing it's urgent won't get you very far.

  • Selection groups for tables and header tables

    A couple of questions or rather observations around Selection Groups for tables and conversion objectu2026
    1) For tables that do not really have a date field, for instance table PDSNR, it appears that you cannot specify a selection group. Consequently, you have to transfer the table in its entirety. Is this something that can be modified via customizing?
    2) And what about the header tables, for example, X_ANLC, I have tried but not able to change the selection groups on these objects.
    Thanks!
    Harmeet

    Hi Harmeet.
    Since you mention you can only filter by date I am assuming you are using TDTIM.
    How would you want to filter PDSNR, for example? Would it want to filter all entries >= a given sequence number?
    The only way I know to do that is to work directly with the configuration tables. In your case you will need to use CNVMBTSEL* tables. Check how the standard selection groups are configured, and it should not be too difficult to follow the same logic and create your own selection groups.
    CNVMBTSELGRP                   MBT PCL Selection groups              (main table to create the selection group)
    CNVMBTSELMEMTYPE               MBT PCL Selection group member types  (main table to define members => fields for the selection group)
    CNVMBTSELGRPDEF                MBT PCL Selection group definition    (definition of the fields in that selection group)
    CNVMBTSELGRPVAL                MBT PCL Selection group values        (values for each field; you can use GE for >=)
    CNVMBTSELCLAUSE                MBT PCL Selection group clause        (should also be straightforward if you are using only one field)
    CNVMBTSELVAR                   MBT PCL Selection group variants     (configure the same variant for your selection group as for the others)
    CNVMBTSELREF                   MBT PCL Selection group reference     (assignment of selection group to conversion object)
    Hope this helps,
    Rui Dantas

  • Good source for tables and reports

    Hello!
    Does any one know a good source for tables and reports in SRM (EBP) I really
    looking to report on the Org Structure.
    But any information you can give me would be really helpful.
    Regards
    sas

    Hi,
    See these threads :
    SRM Tables
    SRM Tables
    Re: Availability of Standard Reports in SRM
    SRM standard reports?
    SRM Reports
    For developing custom reports,you can use the stanadard tables and Function modules.
    BR,
    Disha.

  • Table and Fields names for following

    Hi All,
    1. What is the Table&Field Name for finding out Program Type[Report/Module pool etc..] of a Program!
    2. Is there any Table&Field Name for Transport Request Name. We need to find out TR Name Based on Program name.
    Can anybody solve above issues!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    In TRDIR table specify the NAME as report name and <b>SUBC</b> is teh field whic gives u the <b>report type</b>.
    1    Executable program  
    I    INCLUDE program     
    M    Module pool         
    F    Function group      
    S    Subroutine pool     
    J    Interface pool      
    K    Class pool          
    For the second one
    Table name > <b>RSEUMOD</b>
    Hope this solves ur query.
    Message was edited by:
            Judith Jessie Selvi

  • Table for userid and person name

    Hi,
    I want a table in which I can find two fields user id and person name.
    can any body plz help me in this??
    Thanks,
    Satish.

    hi
    use the following
    USR01 User master record (runtime data)
    USR02 Logon Data (Kernel-Side Use)
    USR03 User address data
    USR04 User master authorizations
    USR05 User Master Parameter ID
    USR06 Additional Data per User
    and USR21 and adrp!!
    plz reward points if it helped and close the thread!!
    Regards,
    Gunjan

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Query to Find Table and Column Name by using a value

    Dear Legends,
    I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
    where owner NOT IN ('SYS','SYSTEM') and
          data_type IN ('CHAR','VARCHAR2','NUMBER')
    May I have your help for building the query. and my query as follows
    select a.owner, c.column_name, c.data_type, c.owner, c.table_name
    from dba_objects a, all_tab_cols c
    where a.owner NOT IN ('SYS','SYSTEM') and
    where c.owner NOT IN ('SYS','SYSTEM') and
    where c.data_type IN ('CHAR','VARCHAR2')
    order by a.owner
    Thanks,
    Karthik

    You can use
    select * from user_tab_columns a, user_tables b
    where a.table_name = b.table_name
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
    Or if you want to user DBA_* tables, you can use.
    select * from dba_tab_columns a, dba_tables b
    where a.table_name = b.table_name
    and a.owner = b.owner
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and b.owner not in ('SYS', 'SYSTEM');
    And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
    select * from dba_tab_columns a
    where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and a.owner not in ('SYS', 'SYSTEM');
    Whether you use group by or not, the query will give you the same output.
    Ishan

  • Tables and field names

    hiiii,right now we are developing dash boards for manufacturing industry,and we are trying to get the actual table names  and field names that where exactly these will appear ex.long term assets,cogs invoiced ,in which table it apperas.wht is grr3 and the tables in that?

    I'm sorry but your question is much too general.  Please let us know what application and system environment (SQL, NW, etc.) you are working with and perhaps you will receive a helpful answer from the community.
    Thanks and best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

  • Toplink JPA forces database table and column names to UPPERCASE! Why?

    I have recently experienced using Toplink JPA while using glassfish ... migrating an existing application to EJB 3.0 persistence. Toplink JPA, as implemented in glassfish, forces tablenames and column names from my code to be uppercase in select statements, etc. as then submitted to the database. Why? I cannot find anything in the EJB 3.0 specs on persistence that even suggests this.
    This created a serious problem for me, in my application. For my code to work I had to change the names of the database tables to all uppercase, even though that meant other of my applications, already written using the original mixed case names of the databases, will no longer work unless I revise the code in those applications! (I am using mySQL as my database.)
    In both Unix/Linux and Java, which are both case sensitive, If I wanted names of files or other items to be uppercase, I would have written them that way. I do not expect some middleware piece of software to muck around with the case of text I have put into my code.
    I am hopeful this 'feature' of the reference implementation of the EJB Persistence API will be corrected in a subsequent version. [Maybe you can tell I am not happy!]
    Thanks for listening to my rant.

    Robert,
    I found that the name I specify in all of my @Table, @Column, ... annotations is used with the case as it is provided.
    If TopLink determines the schema information through defaults then the names it comes up with are definitely upper cased by default.
    Are you specifying the schema information that you want in annotations or XML?
    Doug

  • Displaying table and column names

    i have a user that created a table, he is not sure of the name of the table. how do i display a list of tables and display the column names within a table??

    You would need to know who the user is, or alter the following script.
    The script waits for 2 entries:
    1- the tablenames that start with the first characters entered;
    2- the columns that start with the first characters entered;
    (If you want to search for "any" tables and/or columns that contain the charatcers you enter, preceed the parameters entered with a % sign).
    (If you want to search for "any" table or character, do not enter anything.
    This is a "raw" script that should do job. I think it should do the minimum you are looking for.
    SET PAGESIZE 50
    SET LINESIZE 120
    SET TIMING ON
    COLUMN OWNER HEADING 'OWNER' FORMAT A12
    COLUMN TABLE_NAME HEADING 'TABLE NAME' FORMAT A30
    COLUMN COLUMN_NAME HEADING 'COLUMN NAME' FORMAT A30
    COLUMN DATA_TYPE HEADING 'TYPE' FORMAT A10
    COLUMN DATA_PRECISION HEADING 'PREC' FORMAT 99G999
    COLUMN DEFAULTVAL HEADING 'DEF VALUE' FORMAT A10
    COLUMN INDEX_NAME HEADING 'INDEX NAME' FORMAT A30
    COLUMN INDEX_TYPE HEADING 'TYPE OF INDEX' FORMAT A27
    COLUMN UNIQUENESS HEADING 'UNIQUE' FORMAT A3
    COLUMN PARAMETERS HEADING 'PARAMETERS' FORMAT A500 NEWLINE
    -- Query
    SELECT DISTINCT --COUNT(*)
    C.TABLE_NAME,
    C.COLUMN_NAME,
    C.DATA_TYPE,
    C.DATA_LENGTH,
    C.DATA_PRECISION
    FROM ALL_TAB_COLUMNS C,
    ALL_CONS_COLUMNS CC1
    WHERE
    (C.COLUMN_NAME = CC1.COLUMN_NAME(+)
    AND UPPER(C.TABLE_NAME) = UPPER(CC1.TABLE_NAME(+)))
    AND UPPER(C.TABLE_NAME) LIKE UPPER('&PARAM1%')
    AND UPPER(C.COLUMN_NAME) LIKE UPPER('&PARAM2%')
    --AND OWNER = 'SYS'
    --AND DATA_TYPE = 'DATE'
    --AND DATA_TYPE != 'CLOB'
    --AND DATA_TYPE != 'LONG'
    ORDER BY C.TABLE_NAME, C.COLUMN_NAME;
    Hope this helps.

Maybe you are looking for