List all schemas and tables in a portal server

Hi,
I want to list all the schemas in a particular portal server(just as we see in the enterprise manger console)and also list tables in a specific schema.
i tried the following code inorder to print all the tables (without confining to any particular schema)-
DatabaseMetaData dbmd = con.getMetaData();
String [] types = {"TABLE"};
rs = dbmd.getTables(null,null,"%",types);
but i am getting null pointer exception.
Can i anyone guide me in this?
regards
Swarna

go to the sqlplus >
select distinct owner from dba_objects;

Similar Messages

  • Schema and Table ..

    Hi ,
    Can you please help me out on following questions.
    1. How to physicalizing the Logical Model into database Schema AND Tables
    2. How to create a Schema and table in oracle 11g. Let me know if scripts are available.
    3. How to create a read only user with different restricted access.
    4. How to deploying the Schema, Tables (and potential scripts) into Exadata.
    Please provide the aboce details.
    Thanks in advance.

    1. How to physicalizing the Logical Model into database Schema AND TableseTRM
    http://etrm.oracle.com/
    2. How to create a Schema and table in oracle 11g. Let me know if scripts are available.Are you referring to custom schemas? If yes, please see https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Schema&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    3. How to create a read only user with different restricted access.https://forums.oracle.com/forums/search.jspa?threadID=&q=APPS+AND+Read+AND+Only&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    4. How to deploying the Schema, Tables (and potential scripts) into Exadata.What do you mean? Please elaborate more.
    Thanks,
    Hussein

  • Is XS Project right for Database Schema and tables

    Hi Friends
    1.As per OpenSAP video it is suggesting to use XS Project for Database objects.
    In my case I am planning to do AO Reporting and not creating any UI , is XS project still the right project type.
    There is an option for General ->Project - would that be the right one.
    2. Also in my UI I am not able to see the Prefrences->SAP Hana Development ->Repository Access to set the regit.exe. I did see couple of post mentioned about it but the response was not very clear , hence asking the question again.
    regards
    Poonam

    Hi Poonam,
    Poonam Hemrajani wrote:
    1.As per OpenSAP video it is suggesting to use XS Project for Database objects.
    In my case I am planning to do AO Reporting and not creating any UI , is XS project still the right project type.
    There is an option for General ->Project - would that be the right one.
    Project is used to group all the required development artifacts and the libraries required for them. So based on your requirement you can choose. I think "General" project would suffice your requirement if it is only to create schemas and tables.
    But on the other hand if you choose to build an application using XS related libraries you can either choose to import those libraries later or create using a XS project now.
    Will wait along with you to see  Thomas Jung comments on this.
    Poonam Hemrajani wrote:
    2. Also in my UI I am not able to see the Prefrences->SAP Hana Development ->Repository Access to set the regit.exe. I did see couple of post mentioned about it but the response was not very clear , hence asking the question again.
    Firstly from SP7, it is not required to setup regi.exe file. This file resides in hdbclient folder. So you need to check where you have installed hdbclient to see if you have that regi.exe file and configure it accordingly in the Path ( Preferences --> SAP HANA Development --> Repository Access ) you mentioned.
    Regards,
    Krishna Tangudu

  • How can I list all users and their DEFAULT tablespace?

    How can I list all users and their DEFAULT tablespace?
    Peter

    Peter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
    How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
    HTH -- Mark D Powell --

  • List all folders, and subfolders, in a directory

    I'm trying to find a way to list all folders, and subfolders, in a directory.  I ran the code below and got a message that says 'Access is Denied'.  There is no way access is denied to that folder. How can I list all folders, and subfolders, in
    a directory?
    --'C:\Users\Ryan\Desktop\Coding\';
    set nocount on
    declare @curdir nvarchar(400)
    declare @line varchar(400)
    declare @command varchar(400)
    declare @counter int
    If (select count (*) from sys.objects where name='Output') <> 0 DROP TABLE output
    If (select count (*) from tempdb.sys.objects where name like '%#Tempoutput%') <> 0 DROP TABLE #Tempoutput  
    If (select count (*) from tempdb.sys.objects where name like '%#dirs%') <> 0 DROP TABLE #dirs  
    create table #dirs (DIRID int identity(1,1), directory varchar(400))
      Set @command = 'dir "C:\Users\Ryan\Desktop\Coding\Microsoft Access\" /S/O/B/A:D'
     insert into #dirs exec xp_cmdshell @command
      set @counter = (select count(*) from #dirs)
    create table #tempoutput (line varchar(400))
    create table output (Directory varchar(400), FileSize varchar(400))
        While @Counter <> 0
          Begin
            Declare @filesize int
            set @curdir = (select directory from #dirs where DIRID = @counter)
            set @command = 'dir "' + @curdir +'"'
            insert into #tempoutput
            exec master.dbo.xp_cmdshell @command
               select @line = ltrim(replace(substring(line, charindex(')', line)+1,len(line)), ',', ''))
               from #tempoutput where line like '%File(s)%bytes'
               Set @filesize  = Replace(@line, ' bytes', '')
            Insert into output (directory, Filesize) values (@curdir, @filesize)
            Set @counter = @counter -1
           End
           Delete from output where Directory is null
    select * from output
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Can you tell us how you're executing this code? Is it called from sql agent job or are you executing it by calling code directly?
    Did you try creating a proxy for xp_cmdshell and then executing it?
    http://www.mssqltips.com/sqlservertip/2143/creating-a-sql-server-proxy-account-to-run-xpcmdshell/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Report to list all computers and their collection membership

    Hi
    I am currently working on a site where direct membership is used for collections but a need has arisen to move to AD Queries.
    I have created a simple powershell script that creates groups based on the contents of a csv file and another script which populates this with the members listed in another csv file.
    To help speed up the process is there a way to generate a report that lists ALL Computers and their Collection membership?
    The only reports I seem to find that are built in require an inputted value of either computer name of collection ID. I simply need a report that lists Computer Name is column 1 and Collection Name in column 2 for all computers and all collections.
    Many Thanks,
    Matt Thorley

    select 
    FCM.Name,
    C.Name
    from 
    dbo.v_Collection C
    join dbo.v_FullCollectionMembership FCM on C.CollectionID = FCM.CollectionID
    Thanks to Garth for original query. I just modified it :)
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • Would like to create a script for list all elements and structure of an indesign document

    Hello everybody,
    I'm a very beginner in indesign scripting.
    I would like to create a script in order to list all elements and the inner structure of a n indesign document.
    The aim for me is to understand how elements are sorted and arranged into indesign, and be able to find an specific element by its item name.
    The output document could be an xml or txt document with a treeview structure.
    I would like have a rough idea of which kind of javascript code I should use for that.
    Thanks for answers.

    Hi Ossydoc,
    You can use Muse to create such a website. All you need to do is, create links in Muse for the sermons and select  " link to File " in the hyperlink option and link to those Mp3 files.
    Please refer to this screenshot :- http://prntscr.com/4xvdup
    Now, when you publish your site,  Muse would automatically upload those files onto the server and the users would then be able to listen as well as download those sermons using the links on your site.
    Hope this helps
    Regards,
    Rohit Nair 

  • New User Database schema and table name

    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

    WebCenter (and WebCenter spaces) uses an 'identity store' instead of database schema for storing user information - in an 'out of the box' installation, users are maintained through an embedded WebLogic LDAP store.
    See the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter, p. 34-2.
    At the end of section 34.4.1:
    WebCenter Spaces supports self-registration. When new WebCenter users
    self-register, they create their own login and password and a new user account is
    created in the identity store. See also, Section 34.4, "Allowing Self-Registration".
    user9097357 wrote:
    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

  • Schema and Table .. Few doubts.

    Hi ,
    Can you please help me out on following questions.
    1. How to physicalizing the Logical Model into database Schema AND Tables
    2. How to create a Schema and table in oracle 11g. Let me know if scripts are available.
    3. How to create a read only user with different restricted access.
    4. How to deploying the Schema, Tables (and potential scripts) into Exadata.
    Please provide the aboce details.
    Thanks in advance.
    Regards,
    Parag

    You need a Database Designer and a Database Administrator.
    1. With experience of having done so earlier or having learned as an understudy to someone with expertise
    2. Look up the Oracle 11g database SQL documentation. See http://www.oracle.com/pls/db112/homepage
    3. See the Oracle 11g database Administrator's Guide and Security Guide (from the above URL)
    4. Through a proper Change Control procedure. Each organisation has it's own methods of source code control and deployment.
    Hemant K Chitale

  • JDBC Schema and Table Names Reversed

    Hi,
    We're currently evaluating CR4E but are unable to successfully run/preview any reports.
    We have successfully created a JDBC  connection using the generic JDBC driver. We are connecting to an Ingres database. The connection is successful and we can browse databases/schemas/tables with no problem. The problem is with the SQL that the reporting engine is generating.
    A simple example:
    SELECT "currency"."description" FROM   "currency"."john" "currency"
    In this statement, "currency" is actually the table and "john" is the schema name.
    The query should read:
    SELECT "currency"."description" FROM   "john"."currency" "currency"
    Help would be appreciated as we're completely stuck.
    Many thanks,
    Darran Smith

    Hi Tej,
    Thanks for clarifying the issue on the JRC.
    Executing:
    SELECT "price_type"."currency", "price_type"."description" FROM   "price_type"."john" "price_type"
    against the DB results in "Table 'john' does not exist or is not owned by you" as expected.
    Executing
    SELECT "price_type"."currency", "price_type"."description" FROM   "john"."price_type" "price_type"
    against the DB works just fine.
    I amended my code to simply call:
    CRJavaHelper.changeDataSource(reportClientDocument, userName, password, connectString, driverName, JNDIName);
    and changed the CRJavaHelper.java file around line 145 that originally reads:
    newTable.setQualifiedName (origTable.getAlias ());
    I tried setting the qualified name to various different things:
    "price_type"
    "john.price_type"
    "otherSchema.price_type"
    None of these worked, but they did produce different things in the JDBC trace log. I've uploaded the JDBC log file to showing what happens with either "price_type" or "john.price_type":
    [http://www.romofabrics.com/iijdbc.txt|http://www.romofabrics.com/iijdbc.txt]
    As you can see, everything looks OK (including the schema and table name) until the very final select statement is created.
    When you say that generic JDBC is supported, is that what I'm effectively using?
    Cheers,
    Darran

  • Tiger and a Microsoft SharePoint Portal Server MySite Question

    Hello all-
    We're running Microsoft Sharepoint Portal Server 2003, and we just got an iMac running OS X Tiger (10.4.6) for our graphic artist.
    Using Firefox, I can get to our intranet (intranet.comapny.com) just
    fine, and the user can get to her My Site and open docs, upload files, etc.
    What I need to do is set up an alias to her Private Documents folder
    and her Team Site's document folders.
    If I go to Go> Connect to server and type in
    http://intranet.company.com/mysite I can see the following folders:
    _catalogs
    _private
    _themes
    images
    Lists
    and the Default.aspx file.
    There's no Private Documents folder visible like there is on all my
    Windows boxes for the same shortcut.
    The list of folders should look like this (items in bold are missing):
    _private
    images
    Lists
    My Pages
    My Pictures
    Private Documents
    Shared Documents
    default.aspx
    Basic authentication is turned on for the intranet portal, and I'm able
    to authenticate to AD from the iMac.
    Any help would be greatly appreciated.
    Thanks very much,
    Joe
    20" iMac Intel Duo   Mac OS X (10.4.6)  

    Your question may be better handled in the
    AWS Support forums.
    Jason Warren
    habaneroconsulting.com/Insights
    @jaspnwarren

  • List all files in a directory on a server that hosts the applet

    Hei :)
    I have a problem. I want to list all files in a directory on my server. ( http://www.foo.bar/tw )
    The applet is in the root folder ( http://www.foo.bar ).
    So i tried it like this
    File fi = new URL(getCodeBase() + "/all/").getFile();But when I try to list the files, I get a SecurityException.
    Can anyone help me out?
    Peace!
    LoCal

    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=&qt=%2Blist+%2Bfile+%2Bserver

  • Oracle APPS schema copy with all privileges to new schema and table space

    Hi all,
    Here is scenario:
    I have installed e-business suite in windows 2003 server for training environment using production (prod), single node and without vision (demo).
    i have to create a new table space in e:\oracle\prodmanz with similar content as in proddata and create a new schema called manz with same privileges as APPS.
    Kindly advice.
    Manish Kumar Chudasama
    email: [email protected] cc to [email protected]
    Thanks in advance guys.

    Hi Khalid,
    Ideally when you execute sql 'create schema <schema_name>' then the logged in user is going to default owner of the schema and you should see that under 'object privileges' of that user.
    The user will have 'create any' privileges which means the user has all the privileges on that schema.
    if you want to check who is owner of the schema in the system, please check 'SCHEMAS' under views in SYS.
    Regards,
    Venkat N.

  • BI Report - List all users and their assigned roles

    Hello,
    i need a report, which lists me all users and their roles.
    Which table stores this membership information about the users?
    USR or UGP does not have any values

    Hi Reynaldo,
    You can go to SE16 -> table name "AGR_USERS" and see the records for all users. Arrange them in ascending order by name and you will get the report what you have mention above.
    Download it and put it in EXCEL.
    Best Wishes.
    Kumar

  • List of Users and Roles Assigned in Portal (producer & consumer)

    Hi
    We are running federated portal EP 7.0 EHP1 SPS07, we need to pull the list of users and their roles assigned from tables or thru report in our federated portal, so that we can have a consolidated list of users and their roles in both producer and consumer portal
    Thanks
    Senthil

    Hi Senthil,
    Use report RSUSR002 to get list of roles for the users.
    Regards,
    Marasa.

Maybe you are looking for

  • [HOWTO] Mplayer music daemon

    Hello fellow Archers, I recently noticed that XMMS2 was using 40% of my CPU (not sure how I missed it but it no doubt has something to do with my setup) and decided I needed to correct this. My plan was to initially write my own music server, but tha

  • How to modify your age on your Creative Cloud profile ?

    Can anyone explain me how to change my age on my Creative Cloud profile ?

  • Firewall/Xbox Live

    Hi there, I haven't been able to find a solution to my problem so I thought I'd post here. I have Mac OS X Server 10.4.11 running my home network as a gateway. I've managed to get most things working that I needed through the firewall but Xbox Live i

  • Edge 15 freezing and programs hang

    Any ideas why? The core temp isnt that high (46C as I type) theres no virus/trojan/spyware/other in the system. No background programs running. It happens at random, un freezes (eventually) All MS/Lenovo updates are installed. W7/AMD P340 Dual Core/2

  • User can not inherited privilege from Role

    DD1 is a new user, CT_GROUP_USER is a role with all tables access right. 1)First, check the privilege of role CT_GROUP_USER select table_name,privilege from dba_tab_privs where grantee='CT_GROUP_USER' we can see CT_GROUP_USER have ALL tables' privile