How to find the OWNER of a table with JDBC metaData?

Hi,
i write a dynamique dataBase gui for multiple dataBase (oracle, postgre..)
I want to use JDBC meta data to configure the gui
I can't find methode to optain a specifique table list for a owner...
with getTablePrivileges I see the Grantor but not the owner (the grantor isn't always the owner)
and I can't use schema because schema isn't supported by postgre
some one can help me ?
thanks a lot
Christophe

Yes of course but it is DataBase dependent...
and I want to use different DataBase...And what sort of owner would you expect in a MS Access
database?
if they are only one user we work only whith one "schema owner" the data base is structured in this way
but when multi user is possible we want to work with specifique relation beetwen different user ...
we want to use users because more dataBase suppport multiple owner than multiple schema
and generaly our information are divide in
genereral and referential information ( explain of data and list of values etc ...)
and the specifique data.
And our GUI distingue the "META DATA" and the pure "DATA" and propose specifique properties to interact with those data
i hope that my problem is better explain now .
example we use
resultSet = connection.getMetaData().getTables("","%","%",new String[]{"TABLE","VIEW"});
to optain all the table and view
resultSet = connection.getMetaData().getTablePrivileges(null,null,"tableName");
to optain privileges for a table
the trouble is that in specifique catatalog table like oracle we find a colomn whith the owner properites and when we use getTablePrivileges we can't see it idem for posgree
Each privilige description has the following columns:
TABLE_CAT String => table catalog (may be null)
TABLE_SCHEM String => table schema (may be null)
TABLE_NAME String => table name
GRANTOR => grantor of access (may be null)
GRANTEE String => grantee of access
PRIVILEGE String => name of access
IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown
has you see we have GRANTOR information but not OWNER information
and the GRANTOR isn't allways the OWNER ...
Christophe

Similar Messages

  • How to find the list of existing tables in a schema using DB link?

    Hi
    I know how to find the list of existing tables in a schema using the following query
    SQL> select * from tab;
    but, how to list the tables using a DB link?
    For Example
    SQL> select * from tab@dblink_name;
    why this doesn't work?
    Pl advice me
    Thanks
    Reddy.

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • How to find the deleted data in tables

    guys,
    how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
    regards,

    Hi,
    MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
    That means no changes have been made.
    regards

  • How to find the owner of a lost iphone

    how to find the owner of a lost iphone

    I'm in the republic dominica cell buy on ebay has
    iCloud account

  • HT3939 how to find the owner of the phone number

    how to find the owner of the phone number
    <Phone Number Edited by Host>

    Look it up on Google. It may or may not work.

  • How to find the owner of checked-out record?

    Hello Experts,
    How to find the owner of checked-out record?

    Hi,
    I completely agree with Ravi.
    If you are using MDM 7.1 you can see the Job ID of that record on the right in MDM
    Login as Admin in MDM and search for the job ID to find the owner of the record
    Regards,
    Antony

  • How to find the list of applications registered with OID?

    Could some one please help me?
    how to find the list of applications registered with OID?

    Is there any table from which we would be able to see?

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to find the size of a Table

    Dear all,
    How can i find the size of a table in a schema and size of the schema also.
    Thanks
    Mahi

    Try out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
    dbms_space.unused_space(
    upper(oname),upper(tbname),upper('TABLE'),
    total_blocks, total_bytes,
    unused_blocks, unused_bytes,
    last_used_extent_file_id ,
    last_used_extent_block_id,
    last_used_block
    );

  • How to find the Cross Dependencies of tables

    Hi,
        I have table in Database A, but that table is referencing in another database in the instance's SP,Views and Jobs.How to find the full dependencies of the table include cross database.
    I tried with below T-sql but no luck..
    --object that view depends on..Tables referenced in Below View---
    SELECT * FROM sys.sql_expression_dependencies
    WHERE referencing_id = OBJECT_ID(N'Table-Name');
    GO
    --objects depends on the view--
    SELECT * FROM sys.sql_expression_dependencies
    WHERE referenced_id = OBJECT_ID(N'Table-Name');
    GO
    pls guide me..I am planning to remove particular table but before i need to find all the dependencies on the table.

    see
    http://visakhm.blogspot.in/2010/01/finding-cross-server-cross-db-object.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to find the relation between that tables

    Hi,
      I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
    my tables are
    LFA1     
    LFB1
    LFC1
    RFSDO
    BSIK     
    Thanks
    Imran

    >
    SURINDER SINGH OBEROI wrote:
    > Hi,
    >
    > LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
    > LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
    > LFC1-GJAHR = BSIK-GJAHR
    > LFC1-ERDAT = BSIK-AUGDT
    >
    > Cheers,
    > Surinder
    You think, you can fetch accurate data with the above mentioned linkages?
    Oh btw, the question i believe the question was How to find the relation....
    pk

  • Hi, I found an ipod anyone know how to find the owner so I can give it to them

    Any idea's can I bring it into an apple store and can they find the owner from the serial number

    Apple cannot help.  If the iPod is not locked, go to Utilities > Settings > Mail, Contact, Calendars.  There you should find the owners email address(es), so you can contact him/her.  If it is locked the only thing you can do is turn it in to the police.

  • How to find the owner?

    Hello.
    My name is Anton. I'm from Ukraine.
    Month ago i find an iphone 5 16 gb.
    On the iPhone enabled to "find my iphone " , but he does not "lost" . I can not find the owner to bring iphone back or speak with him (her) about apple id and password .
    What can I do with this ?
    imei: 013333003782166

    Turn it in to law enforcement authorities. You have no way of determining who owns the phone.
    Barry

  • How to find the dependency of a table

    Hi All,
    how to find all packages or procedure which are using specific table . is there any table where we can go and search .
    i mean i have table called let say table_A and i want to find in which procedure or package this table will be using .
    Thanks
    Sree

    Tables dont depend on packages/procedures.
    However packages/procedures may use tables.
    That said, if youre using TOAD, just press F4 on the table name and click on the used by tab.
    S

Maybe you are looking for

  • Do you need a cisco router at remote sites when using VRF BGP?

    Hello..... If you could refer to the attached document and read the following... I need to know if a CISCO router is required for each of the sites.   OR does the ISP (Provider) provide the only required Router in the private cloud? We want to replac

  • Problem in JDBC connection to database

    Hi, I m new to JDBC. I want to retrive some data from the database in my JSP page. How do i do it ??? I written a following code, String custid = null; String custname = null; String custref = null; try { Class.forName("oracle.jdbc.driver.OracleDrive

  • Where do I find the sequence file name inside the Expression Browser?

    HI, I would like post the user with a simple question of whether this is the sequence file he meant to load. I want to use an expression rather then typing the question. The problem is that I don't seem to find the proper expression for that. I looke

  • SAP RETAIL activation

    W ehave had SAP RETAIL given, but SITES should be SITES but they are still showing as PLANTS, and Material should be ARTICLE andthey are shoing as MATERIAL? what must be done in order for this

  • Function works, but breaks used in Class

    I have this function I use over and over in my applications (Addins is but one item I have to do this to): private function doAddins():void { var _addIns:Array = []; var _len:uint = app._chosen2.length; for (var i:int=0; i<_len; i++) { var _m:String