What is table schema name?

Hi,
I was looking at DatabaseMetaData::getColumns() while searching for a way to get a table's column names and I run into these ugly params catalog and schemaPattern. Of course nowhere on the sun's site could I find a definition of these terms although they're used quite often in the API documentation. So I turned to a specific DBMS provider and found out that catalog is a fancy term for the system metadata. But what about the String schema param? I usually see a table's schema referred to as the "structure" of the table, what columns it contains of which types. But I've never known this "schema" can have a string name. Anyone so kind to explain it to me or better point me to a text that has definitions and explanations of the concepts used in the JDBC API documentation? And more generally for JDK where do you folks usually go when you want a simple explanation of how things work, not the dry listing of function and parameter names? Look at MSDN for example, it is both a good reference and a reasonable self-contained tutorial. Not that I praise Microsoft but...
BTW I found that probably ResultSetMetaData is more suitable for my initial purposes, but still the questions bother me. So if you have any suggestion please let me know.
Thank you in advance

To answer your question, what is a table schema name?, it is the name of the schema that the table belongs to. If you have an Oracle database, MYDB, it will have at the very least two users which are SYS and SYSTEM, these are schema names, there are objects that exists in their schema. If you create a new user, JAKE, and then create a bunch of objects as JAKE, these objects are said to belong to the JAKE schema. All objects are like this, not just tables (indexes, sequence tables, triggers, etc.).

Similar Messages

  • What is the schema name for service part planning module

    Hi Experts,
    i need the following info
    1. what is the schema name for SPP module
    say for example we call ASCP as MSC, in similar passion what is the name given to SPP.
    2. I have searched for the table details in etrm site ( in R12.1.1 ) but it is not available, can anyone help me out to get the table details in SPP ?
    Thanks for your valuable time.
    Bye
    Babu

    Thanks Bob for your clarification.
    Do you have any idea, which are all the table that got linked with SPP in the MSC schema ?
    If we have any separate link in metalink, pls share that link.
    Thanks again for your valuable time.
    Babu Ji

  • What does this scheme-name stand for ?

    What does this <scheme-name> stand for? Does it stand for the name of this <read-write-backing-map-scheme> ?
    <read-write-backing-map-scheme>
    *<scheme-name>categoriesLoaderScheme</scheme-name>*
    <internal-cache-scheme>
    <local-scheme>
    <scheme-ref>categories-eviction</scheme-ref>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.demo.cache.coherence.categories.CategoryCacheLoader</class-name>
    </class-scheme>
    </cachestore-scheme>
    <refresh-ahead-factor>0.5</refresh-ahead-factor>
    </read-write-backing-map-scheme>
    This excerpt is come form the following cache-config.xml file:
    <cache-config>
       <distributed-scheme>
          <scheme-name>categories-cache-all-scheme</scheme-name>
          <service-name>DistributedCache</service-name>
          <backing-map-scheme>
          <!--
          Read-write-backing-map caching scheme.
          -->
          <read-write-backing-map-scheme>
             <scheme-name>categoriesLoaderScheme</scheme-name>
             <internal-cache-scheme>
                <local-scheme>
                   <scheme-ref>categories-eviction</scheme-ref>
                </local-scheme>
             </internal-cache-scheme>
             <cachestore-scheme>
                <class-scheme>
                   <class-name>com.demo.cache.coherence.categories.CategoryCacheLoader</class-name>
                </class-scheme>
             </cachestore-scheme>
             <refresh-ahead-factor>0.5</refresh-ahead-factor>
          </read-write-backing-map-scheme>
          </backing-map-scheme>
          <autostart>true</autostart>
       </distributed-scheme>
        <!--
        Backing map scheme definition used by all the caches that require
        size limitation and/or expiry eviction policies.
        -->
       <local-scheme>
          <scheme-name>categories-eviction</scheme-name>
          <expiry-delay>20s</expiry-delay>
       </local-scheme>
    </cache-config>

    If you look at the documentation here [http://download.oracle.com/docs/cd/E14526_01/coh.350/e14509/appcacheelements.htm#BABEFGCG] you will see that it does indeed specify the name of the scheme. The other XML tags are explained too.
    JK

  • What is another schema name in oracle 1z0-051 exam ?

    hi all
    i want to prepare oracle 1z0-051 , i study SQL tutorial (HR schema) , and i have seen some  questions. but some of tables is like (sales , customers ,promotion ...ets)
    What are the schemas in this exam ? by the way all samples schema install in my database
    and thx advace

    In the exam you will get the snippet of the code that includes table structure and may be data in some tables in some questions. But every time they are different. so my advice is that you need to understand how to read a table definition and interpret. dont just mug up the things. Go to oracle documentation and read and try get the concept right.
    I followed the book 'Oracle 11g- SQL Fundamental Exam Guide (Exam 1Z0-051)' it nearly covered all the topics and have good examples at the end of the chapter. happy studying.
    You cane refer to 'http://www.oracle.com/technetwork/articles/sql/11g-schemamanagement-089869.html'
    and 'Managing Schema Objects'

  • What is table field name for order status report  of rate per unit and  bal

    hi  i want to make FS for order status report i almost get all table and field but i don't get only two field  rate per unit and balance value  table field didn't get please help me searching in field and table
      i want to develop my status report

    Hi,
    Check tables VBAK and VBAP wherein you will get all header and item details.
    VBUK and VBUP for header and line item statuses.
    KONV would give you rates/pricing details for each condition type determines in the sales order.
    VBAK-KNUMV = KONV-KNUMV is how you relate both of them.
    Hope that helps.
    Regards,
    Amit

  • Blank Tables Schemau00B4s name causes "Table or view does not exist" Oracle

    Hello Guys,
    I´m searching over the internet something that could solve this issue:
    I´m developing an application that simply open a .rpt file, associate it to some crystalreportviewer´s reportsource. After making some tests I found out that the tables schema name (Oracle) is lost. So when I log in to the database with a user that is not the owner of the table, I get "Table or view does not exist" error.
    I printed in the screen the Location property of the tables and all I got was the table name, with no schema name in it.
    Someone can help me with that? I´m using visual studio 2008, 2.0 .net framework and C#
    The source-code is bellow:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace crystal20
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                try
                    this.ConfigureCrystalReports();
                catch (Exception ex)
                    MessageBox.Show("Erro:" + ex.Message);
            private void ConfigureCrystalReports()
                openFileDialog1.FileName = "";
                openFileDialog1.ShowDialog();
                ReportDocument crReportDocument;
                Database crDatabase;
                Tables crTables;
                TableLogOnInfo crTableLogOnInfo;
                ConnectionInfo crConnectionInfo;
                //Create an instance of the strongly-typed report object
                crReportDocument = new ReportDocument();
                crReportDocument.Load(openFileDialog1.FileName);
                //Form2 teste = new Form2(crReportDocument);
                //crReportDocument = teste.getRelatorio();
                //crReportDocument.SetDatabaseLogon("", "", "", "");
                //Set the crConnectionInfo with the current values stored in the report
                //crConnectionInfo = crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;
                crConnectionInfo = new ConnectionInfo();
                /* Populate the ConnectionInfo Objects Properties with the appropriate values for
                   the ServerName, User ID, Password and DatabaseName. However, since Oracle
                   works on Schemas, Crystal Reports does not recognize or store a DatabaseName.
                   Therefore, the DatabaseName property must be set to a BLANK string. */
                //crConnectionInfo.DatabaseName = "";
                //crConnectionInfo.ServerName = "hom";
                //crConnectionInfo.UserID = "user";
                //crConnectionInfo.Password = "pass";
                //Set the ReportSource of the CrystalReportViewer to the strongly typed Report included in the project
                crystalReportViewer1.ReportSource = crReportDocument;
                //Set the CrDatabase Object to the Report's Database
                crDatabase = crReportDocument.Database;
                //Set the CrTables object to the Tables collection of the Report's dDtabase
                crTables = crDatabase.Tables;
                //Loop through each Table object in the Tables collection and apply the logon info
                //specified ealier. Note this sample only has one table so the loop will only execute once
                foreach (Table crTable in crTables)
                    crTableLogOnInfo = crTable.LogOnInfo;
                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
                    crTable.ApplyLogOnInfo(crTableLogOnInfo);

    Thanks for your answer, but where do I get the Owner (Schema) name.
    When I print the Table.Location property I just get the table name, not any Owner.
    Ex:
    My table is:
    CUSTOM.TABLE1
    If I print the value of table.location property value its just "TABLE1". Then If I log on as other user, not custom, I get "Table or view does not exist".
    Have you understood my issue?

  • What Oracle Table contains Partition Key Field Name?

    What Oracle table/view maintains the partition key field name?
    All_Tab_Partitions does not appear to maintain such information.
    When I use Toad -> Schema -> Tables -> Partitions, it lists the partition key field name that the partition is based.
    Thank You

    all_part_key_columns
    or
    USER_part_key_columns
    Edited by: OrionNet on Dec 5, 2008 3:56 PM

  • Access other schema's table without specify the schema name

    Hi, need ur help again,
    I would like to access other schema's table without specify the schema name. for example,
    select * from hr.jobs;
    What priviledges i need if i want to select the data in this way:
    select * from jobs;
    Thanks!

    Public synonyms have their place, but are not generally a good idea as they will cause conflicts with other schemas and applications. Another think that you can do is issue the
    ALTER SESSION set CURRENT_SCHEMA = schema;
    The CURRENT_SCHEMA (8i and above) parameter changes the current schema of the session to the specified schema. Subsequent nqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement. CURRENT_SCHEMA is a session parameter only, not an initialization parameter.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session.

  • Need to include table name,schema name in select output

    I need to output the table name and schema name of the current user into a table.. I have tried including
    within a select statement..
    table_name,
    from user_tables
    where table_name='mnme';
    no rows returned

    Hi,
    Its in upper case 'MNME'
    Best.
    EA

  • Need to know schema name and table name associated with a column-URGENT

    Hi folks,
    I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ……
    Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
    Thanks
    Angelina

    Angelina,
    Your question has been discussed several times previously in this forum. Search this forum's archives for "getTableName". Oracle JDBC driver does not implement this (because "it is not feasible" -- according to Oracle).
    First of all, I would suggest that you could probably change your application's logic so that you would not need this functionality (but I guess that is not feasible either, right :-)
    Alternatively, you could try querying the Oracle database data dictionary.
    Good Luck,
    Avi.

  • What is table name

    Hi,
    What is table name in which we have locking information of the provider.
    The column in the table are as follows.
    ID | Name | Type | Version | Portal DB Provider | Created Date | Created by | Status | Locked By | Locked On |
    I want the name of this table.

    Hi
    It is stored in <b>QAMR</b> table not in QALS
    Characteristic Number field is
    <b>MERKNR</b>
    Characteristic Results (values) are stored in following fields
    MAXWERT
    MEDIANWERT
    MINWERT
    <b>MITTELWERT</b>
    VARIANZ
    MOMENT3
    MOMENT4
    ANTEILO
    ANTEILU
    See the other related tables for the Characteristic values are:
    QAMV,QASR,QPMK,QPMT,QPMZ
    <b>Reward points if useful</b>
    Regards
    Anji

  • What  balance value  in sales order  and iwant to know table field name in

    where the balance value come in sales order i want make sales order report in which i want to add this filed how we add it  and tell me table field name of balance vlue and how we give it in FS please help me in this my report are left without it please give me solution

    Hello
    where the balance value come in sales order
    Please note that when you raise your question at SDN forum, your question needs to be clear...
    What do you mean by BALANCE VALUE ????
    Regards,
    Sarthak

  • 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

  • What is table name and field name for balance value in sales order in sap

    hi i want to make FS for sales order status report .and i want balance value in report please tell me about table field name of balance value.

    You can get the Sales Order status in Table VBUK & VBUP at Item Level.
    To achieve the Open Value , first consider the Open Quantity.Refer VBAP - KWMENG (Order Quantity) , then from LIPS - LFIMG (Delivery Quantity) , you will get the Open Quantity & then accordingly you will get the open Value.
    Best Regards,
    Ankur

  • I need the "Real" Table / Table Column names from a sql view

    Firstly, we have a system with ~1000 tables and ~250 views.  We have field level security on the table columns (in our code)
    Now we have a lot of views which select data from the tables, but I need to get the "Table Column Name" that is linked in the view. 
    I know there are view columns that is not linked to a specific table column, (or concatenation of columns) so those columns can just return NULL.
    From the sample you will see there is a view selecting data from another view.  I know it is not the best sql performance (execution path) but that is another topic on its own.
    I went through a lot of the sys.* stored procs or sys.* views to try and figure out if there is a view that we can use to get the expected results.
    here is the sql code:
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'AliasView2')
    drop view dbo.AliasView2
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'AliasView1')
    drop view dbo.AliasView1
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'Table4')
    BEGIN
    alter table dbo.Table4
    DROP CONSTRAINT [FK_T4_T3]
    alter table dbo.Table4
    DROP CONSTRAINT [PK_T4_Constraint]
    drop table dbo.Table4
    END
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'Table3')
    BEGIN
    alter table dbo.Table3
    DROP CONSTRAINT [FK_T3_T2]
    alter table dbo.Table3
    DROP CONSTRAINT [PK_T3_Constraint]
    drop table dbo.Table3
    END
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'Table2')
    BEGIN
    alter table dbo.Table2
    DROP CONSTRAINT [FK_T2_T1]
    alter table dbo.Table2
    DROP CONSTRAINT [PK_T2_Constraint]
    drop table dbo.Table2
    END
    if
    Exists (select
    * from
    sys.all_objects
    where name =
    'Table1')
    BEGIN
    alter table dbo.Table1
    DROP CONSTRAINT [PK_T1_Constraint]
    drop table dbo.Table1
    END
    create
    Table dbo.Table1
    T1_PK        int
    NOT NULL
    Identity(1, 1)
    CONSTRAINT [PK_T1_Constraint]
    PRIMARY KEY (T1_PK),
    T1_Field1    varchar
    NULL,
    T1_Field2    varchar
    NULL,
    create
    Table dbo.Table2
    T2_PK        int
    NOT NULL
    Identity(1, 1)
    CONSTRAINT [PK_T2_Constraint]
    PRIMARY KEY (T2_PK),
    T2_Field1    varchar
    NULL,
    T2_Field2    varchar
    NULL,
    T2_FK        int
    NOT NULL
    CONSTRAINT [FK_T2_T1]
    FOREIGN KEY (T2_FK)
    REFERENCES dbo.Table1
    (T1_PK)
    create
    Table dbo.Table3
    T3_PK        int
    NOT NULL
    Identity(1, 1)
    CONSTRAINT [PK_T3_Constraint]
    PRIMARY KEY (T3_PK),
    T3_Field1    varchar
    NULL,
    T3_Field2    varchar
    NULL,
    T3_FK        int
    NOT NULL
    CONSTRAINT [FK_T3_T2]
    FOREIGN KEY (T3_FK)
    REFERENCES dbo.Table2
    (T2_PK)
    create
    Table dbo.Table4
    T4_PK        int
    NOT NULL
    Identity(1, 1)
    CONSTRAINT [PK_T4_Constraint]
    PRIMARY KEY (T4_PK),
    T4_Field1    varchar
    NULL,
    T4_Field2    varchar
    NULL,
    T4_FK        int
    NOT NULL
    CONSTRAINT [FK_T4_T3]
    FOREIGN KEY (T4_FK)
    REFERENCES dbo.Table3
    (T3_PK)
    GO
    --Create a basic view to select some data
    CREATE
    VIEW dbo.AliasView1
    AS
    select
    t2.T2_FK as Table2_ForeignKey,
    t1.T1_Field1 as Table1_FieldOne,
    t2.T2_Field1 as Table2_FieldOne
    FROM Table1 t1
    Left outer
    join Table2 t2 on t2.T2_FK
    = t1.T1_PK;
    GO
    --Create another view that select basic data, and also selecting data from view 1
    CREATE
    VIEW dbo.AliasView2
    AS
    select
    v1.Table1_FieldOne
    as Table1_FieldOne,     
    v1.Table2_FieldOne
    as Table2_FieldOne,  
    t3.T3_Field1 as Table3_FieldOne,
    t3.T3_Field2 
    FROM Table3 t3
    Left outer
    join AliasView1 v1 on v1.Table2_ForeignKey
    = t3.T3_PK;
    GO
    --My attempt to get the desired output, but no luck
    SELECT 
    col.COLUMN_NAME as AliasColumnName, col.DATA_TYPE, col.CHARACTER_MAXIMUM_LENGTH
    as max_length, colu.*
    FROM
    information_schema.COLUMNS col
    left
    outer join
    (SELECT 
    VIEW_SCHEMA, VIEW_NAME, COLUMN_NAME,
    min(TABLE_NAME)
    as TABLE_NAME
    FROM information_schema.VIEW_COLUMN_USAGE colu
    WHERE VIEW_NAME =
    'AliasView2'
    Group by VIEW_SCHEMA, VIEW_NAME, COLUMN_NAME
    ) COLU ON colU.VIEW_NAME
    = col.TABLE_NAME
    and colu.COLUMN_NAME
    = col.COLUMN_NAME
    left
    outer join
    (select a.name
    as TableName, c.name
    as FieldName
    from sys.foreign_key_columns fk
    join sys.all_objects a
    on a.object_id
    = fk.parent_object_id
    join sys.all_columns c
    on c.object_id
    = a.object_id
    and c.column_id
    = fk.parent_column_id
    join sys.all_objects ar
    on ar.object_id
    = fk.referenced_object_id
    join sys.all_columns cr
    on cr.object_id
    = ar.object_id
    and cr.column_id
    = fk.referenced_column_id
    join sys.schemas scr
    on scr.schema_id
    = ar.schema_id
    ) fks on fks.TableName
    = colu.TABLE_NAME
    and fks.FieldName
    = colu.COLUMN_NAME
    WHERE COL.TABLE_NAME
    = 'AliasView2'
    order
    by col.ORDINAL_POSITION
    This is the results being returned: (That is not 100% what I am looking for)
    AliasColumnName
    DATA_TYPE
    max_length
    VIEW_SCHEMA
    VIEW_NAME
    COLUMN_NAME
    TABLE_NAME
    Table1_FieldOne
    varchar
    1
    dbo
    AliasView2
    Table1_FieldOne
    AliasView1
    Table2_FieldOne
    varchar
    1
    dbo
    AliasView2
    Table2_FieldOne
    AliasView1
    Table3_FieldOne
    varchar
    1
    NULL
    NULL
    NULL
    NULL
    T3_Field2
    varchar
    1
    dbo
    AliasView2
    T3_Field2
    Table3
    The desired results must be like the following:
    AliasColumnName
    DATA_TYPE
    max_length
    VIEW_SCHEMA
    VIEW_NAME
    COLUMN_NAME
    TABLE_NAME
    Table1_FieldOne
    varchar
    1
    dbo
    AliasView2
    T1_Field1
    Table1
    Table2_FieldOne
    varchar
    1
    dbo
    AliasView2
    T2_Field1
    Table2
    Table3_FieldOne
    varchar
    1
    dbo
    AliasView2
    T3_Field1
    Table3
    T3_Field2
    varchar
    1
    dbo
    AliasView2
    T3_Field2
    Table3
    NOTE:  the COLUMN_NAME and TABLE_NAME must the REAL field of the TABLE it belongs to and not only ONE LEVEL Higher’s ALIAS View Name

    Now we have a lot of views which select data from the tables, but I need to get the "Table Column Name" that is linked in the view.
    If you are using SQL Server 2012/2014, then you can use
    sys.dm_exec_describe_first_result_set (Transact-SQL) to gte the informations.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • Date - before and after precision?

    Hi all, I have two date objects and I am using the before and after methods for a decision process. I would like to know the precision of the above methods. Is the prevision at the seconds, milliseconds, or nanoseconds level? Any help is appreciated.

  • How to work seperately with 2 MobileMe addresses in Mail?

    Hello! I have several MobileMe addresses I'd like to add to Mail. I'm already working with one (private), but would like to add a second one (business). I don't want the mails to show up together, but keep both adresses seperate in Mail. Can anyone t

  • Annoying banner on bottom of screen!

    I just purchased Apple TV and it was working fine and now there is this annoying banner on the bottom that keeps on popping up! I can't watch my shows because it takes up half the screen. It says stuff like "series 4" and "wide color enhancer" it alm

  • HT5925 AppleIEDAV.exe crashes everytime Windows 7 64 bit opens

    AppleIEDAV.exe crashes everytime Windows 7 64 bit opens. Any ideas? Problem signature: Problem Event Name: APPCRASH Application Name: AppleIEDAV.exe Application Version: 1.2.12.0 Application Timestamp: 52867716 Fault Module Name: ntdll.dll Fault Modu

  • Solution for starting weblogic server 6.1 SP4 after changing of JVM to JDK 1.4 in startweblogic.cmd file

    Hi, I am using WebLogic 6.1 SP4 on a windows 2000 system. I have changed the JAVA_HOME variable in startweblogic.cmd file to point to j2sdk1.4.0_01 instead of the default. I have set the weblogic startup password also in the WLS_PW variable in startw