Accessing tables in other than default schema.

Hi Experts,
I am using an Enterprise Bean (Stateless) that uses Common JDBC
to connect to the Java Schema of the WAS. I have created a
DataSource alias (created on Default Datasource) and using it for connection.
My requirement is to <b>get a list of all tables created in the Default schema</b>.
But when I use DatabaseMetadta.getTables() method, for this type of connection
it throws out the following exception:
<b>java.lang.UnsupportedOperationException: Method getTables() not supported by Common JDBC</b>
I have even tried using the query "Select * from USER_TABLES", but with this one,
an SQL Exception is thrown saying:
<b>com.sap.sql.log.OpenSQLException: The SQL statement "SELECT "TABLE_NAME" FROM "USER_TABLES"" contains
the semantics error[s]: table "USER_TABLES" unknown</b>
Please tell my how can I use tables in other than the default schema.
Regards,
Alka.

Hi Alka,
from your post, it is not entirely clear to me what you are atempting to do.
1) Do you need help with accessing tables in a non-default schema?
2) Do you want to determine all tables in the default schema?
If 1), please follow the hints given by Vladimir Pavlov.
If 2), currently, the method DatabaseMetaData.getTables() is unfortunately not supported in Open SQL/JDBC. We are currently preparing a new download of the NetWeaver Java EE 5 edition. In this version, the getTables() method will be supported.
Or do you just want to check for the existence of a specific database table in the default schema?
I hope this helps,
Best regards,
Adrian

Similar Messages

  • Can't access tables in other Oracle database schemas

    Hi. We got our Oracle database admin to install APEX in our Oracle database. She created a login and schema for my Oracle database user so that I could work with APEX a little. Here's the information on the version of APEX we have installed:
    Database Version Information
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I've found that my user is only able to access Oracle tables within my own Oracle database schema. Most of our main tables are in 3 other schemas and I'd need access to all tables in all these schemas. Right now whenever I encounter a drop list of values for Schema, only by own schema is available in the list of values.
    Is there something our Admin can do to make these tables in other schemas available to my user account?

    Sharpe,
    This documentation should point you in the right direction. It will show you how to add multiple schemas to a workspace.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_wrkspc.htm#CHDBDCCJ
    Cheers,
    Tyson Jouglet

  • Creating dictionary project in other than default datasource

    I want to create a dictionary project in other than default datasource . Every time I create a dictionary project and create archive and deploy it ...It creates tables in SAP default datasource MAXDB . I have created another datasource pointing to MSSQL in visual admin . I want dictionary project to be deployed to this datasource without making MSSQL  as default datasource . Can anyone please let me know how to do this ?
    Thanks in advance
    Bhat

    Hi Alka,
    from your post, it is not entirely clear to me what you are atempting to do.
    1) Do you need help with accessing tables in a non-default schema?
    2) Do you want to determine all tables in the default schema?
    If 1), please follow the hints given by Vladimir Pavlov.
    If 2), currently, the method DatabaseMetaData.getTables() is unfortunately not supported in Open SQL/JDBC. We are currently preparing a new download of the NetWeaver Java EE 5 edition. In this version, the getTables() method will be supported.
    Or do you just want to check for the existence of a specific database table in the default schema?
    I hope this helps,
    Best regards,
    Adrian

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
    For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
    printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
    or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

    Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

  • How to install adobe X or XI in a directory other than default.

    Please,
    I need install Adobe reader in a diferent directory of default.
    How to install adobe X or XI in a directory other than default.
    best Regards.

    What OS? Why are you trying to install i a different directory. No matter what directory you install in, quite a bit must be installed on the boot drive. If you are running out of hard drive space, it is time to get a new hard drive.

  • Resolv.conf's nameserver on other than default port

    Recently i've found out that it's not so easy to use port other than default (53) in DNS client specified in /etc/resolv.conf file, like
    nameserver IP.OF.DNS.SERVER:20
    where 20 is a number of the port.
    Is it even possible?
    Fast search returns it is not, in whole linux's world :-). Also not in Solaris, not in Mac, not in FreeBSD. But it is possible in OpenBSD.
    I have been thinking - what? why? why such an easy thing (at the first sight) to implement isn't done?
    It looks like i need some additional stuff like bind to make it right <sigh>
    Or maybe i'm wrong here?
    I would be very gratefull for any additional info on this topic

    If I understand you correctly, you are going to set up a nameserver outside of your firewalled network (listening on a non-standard port), and you want to have your arch box be able use it from within the network?
    This isn't a direct fix, but as a workaround, you can use pdnsd as a caching proxy, and it can be configured to query the remote server on whatever port you choose by adding
    port = your_port_goes_here
    in the server section of the pdnsd config file. Once you have it all set up, simply have your resolv.conf point to 127.0.0.1
    Hope this helps
    Last edited by b4data (2011-12-11 14:51:31)

  • HT5457 Cannot get ringtones other than default ringtones since downloading ios 6

    Cannot get ringtones other than default ringtones since downloading ios6

    I should also mention that I tried the posted trick of changing the year to 2013 and attempting to update or download apps. Yeah... that doesn't work.

  • Can the voiceover utility on the 6th gen Nano be accessed with headphones other than the Apple earphones?

    Can the voiceover utility on the 6th gen Nano be accessed with headphones other than the Apple earphones?

    No I have tried and they don't also my iPod touch 2nd generation doesn't work with voice control unless it has apple earbuds plugged in. I guess apple doesn't want 3rd party brads interfering with their company. Thanks please like

  • Cannot access gradient tools other than the default option.

    I am using photoshop CS6 extended. I cannot access the alternative gradient tools and am wondering if the plug-in failed to download or if I have somehow disabled them in the preferences.

    Select the gradient tool, then click on the gradient chip at the top left of the screen to open the Gradient Editor, or click on the little arrow next to the same gradient color chip to access a palette other gradients. To make a new gradient, etc., click the tiny icon in the upper right of that palette to get a drop-down menu.

  • HT2486 How do you assign a new contact to an account other than default account?

    I have multiple mail accounts (iCloud, exchange server, gmail) each with their own contacts. When adding a contact how do you assign it to the right account? I know you can assign a default account under settings but how can you assign it to an account other than the default?

    Apple allows you a deauthorize all option once every 12 months.
    iTunes Store: Authorize or deauthorize your Mac or PC
    Deauthorize all computers
    After you authorize two computers, you'll have the option to deauthorize all computers for your Apple ID. You can deauthorize all computers once a year.
    Just like deauthorizing a single computer, you won’t delete anything if you choose to deauthorize all computers. You just won’t be able to play content that you bought from iTunes on those computers. After you deauthorize all, you can easily authorize computers again one by one. Just follow the steps to authorize a Mac or PC.
    Here's when you should deauthorize all your computers:
    If a computer doesn't work anymore
    If you don't have one of your computers
    If you used 5 authorizations and want to authorize a new computer
    To deauthorize all your computers, follow these steps using one of your authorized computers:
    1.Click to open your account in iTunes (you may need to sign in with your Apple ID), or follow these steps:
         a. Open iTunes and click iTunes Store.
         b. Click Sign In and enter your Apple ID.
         b. Click your Apple ID and select Account.
    2. Click Deauthorize All.
    The Deauthorize All button appears only if you have more than two authorized computers.

  • Denying access from hosts other than localhost

    I would like to prohibit access to Directory Server from hosts other than the localhost:
    I am doing this from Administration Console. On the server node I set the ACI:
    (targetattr = "*")(version 3.0; acl "deny_ip"; deny (all) ip!=dirservhost_ip or ip!=127.0.0.1; )
    But the access is still allowed. What is wrong?

    Purchase a device like this. They are offered by many cellular carriers
    Verizon Wireless - Mobile Broadband -

  • ACS 4.2 RDBMS Action 105/108 - How to set to something other than default "RADIUS Token Server"

    I'm trying to create an import script for RDBMS to import users, but cannot figure out how to set the "PASS_TYPE_RADIUS_TOKEN" to something other than the default of "RADIUS Token Server".  We have multiple RADIUS Token Server definitions.
    I can create a user with what I need, except external db password is set to "RADIUS Token Server".  How do I set it to (for example) something like "RADIUS Token Server - xxxx"
    We have more than 1 RADIUS Token Server definition called "RADIUS Token Server - xxxx", "RADIUS Token Server - yyyy". 
    Thanks!

    As per my knowledge you have to update 4.2 ACS to
    5.1, because when you go for RDBMS synchronization it wont allow you, I have faced problem in past while primary ACS was 4.1 and secondary I have 4.2, I have updated primary ACS to 4.2 and everything is working fine.

  • Import from other schemas other than default

    Hi,
    I defined a source metadata location to an Oracle database. The user used to connect to the DB itself has no objects. I need to import tables and views from other schemas in the source Oracle database. It that possible using the same user that was used in creating the metadata source location? Or, does one need specific one-to-one connection established as separate source metadata locations in order to import tables and views from other schemas?
    In other words, is one user/password to a database sufficient to import tables and views from other schemas?
    Thanks!

    I'm not sure you can import directly into the Android version of Firefox due to security limitation on the device. If you can get your Opera bookmarks into Firefox on the desktop, you can use Firefox Sync to move them to your mobile.
    Does this thread help? [https://support.mozilla.org/en-US/questions/923976 how can I sync bookmarks between my opera mobile browser and my new Firefox for android browser ? | Firefox Support Forum | Firefox Help]

  • Using a different user(other than default PI user) with adapter module

    Hi,
    We are having a custom adapter module built to interact with a Hardware Security Module(HSM). This custom adapter module by default uses a PI user configured in the system. However, we are not able to pass commands to HSM because of insufficient authorizations to this PI user. Now, we do not exactly know the permissions required for the user to access HSM. We have asked the HSM support team about the same. However, I wanted to explore the possibility of using a different PI user to work with the adapter module and eventually pass commands to HSM.
    We have an admin user configured which has all the necessary authorizations. Is it possible to use this admin user created on PI system to work with adapter module so that it passes commands to HSM?
    Thanks,
    Ravi Desai

    We have given the necessary authorizations to PI user.

  • Setting values for items other than default value

    How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
    I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
    Condition that drives this are passed from other page through links.
    The code is like this
    For Region A
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
    For Region B
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2
    my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    Edited by: Rich V on May 21, 2010 10:41 PM

    The question I would ask is:
    How are you determining which region you want to be displayed by default?
    Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

Maybe you are looking for

  • File adaptor not working.

    Hi ,     I am trying some scenario using file adaptor but it is not working. I tried with Runtime Workbench but my adaptor entry is not there in Adaptor monitoring.     Can anybody plz tell me how to check whether adaptor is working or not?     I am

  • How to use I18N with a custom validator?

    This is my custom validator:     public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException         Pattern pat=Pattern.compile(".+@.+\\.[a-z]+");         Matcher m= pat.matcher(value.toString());       

  • No audio in events library

    When previewing clips using the events library, some clips do not playback their audio. I have audio skimming turned on however about half of my clips in my event do not play audio. If I drag to the timeline they playback fine. There is absolutly no

  • HT4623 iphone 5 won't boot up

    After trying to update the IOS on the phone per the itunes.  The software crashed and computer rebooted.  Iphone 5 will now not boot up to normal screen and shows only a itunes logo on a black screen showing to connect it to the cable.  Cable is conn

  • Work flow activity for vendor creation

    Hi In standard do we have any control so that user cannot create vendor master unless it is approved by the authorised person. I know for changing the existing we can put control in FK08. But is it possible at creation level? Thanks in advance, Regar