WLST - Get List of JDBC Multi DataSource Only..

Hi All, I am trying to get a list of Multi DataSources using wlst. The list should only have multi data source not the regular ones. I am able to get the all but not the multi data sources, is there an attribute which can uniquely identify the Multi data source. Please advise.

This is a bit hacky but seems to work:
from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
from com.bea.wli.config import Ref
alsbCore = findService(ALSBConfigurationMBean.NAME, ALSBConfigurationMBean.TYPE)
refs = alsbCore.getRefs(Ref.DOMAIN)
it = refs.iterator()
while it.hasNext():
    r = it.next()
    if r.getTypeId() == Ref.PROJECT_REF:
        print(r.getProjectName())Edited by: paddys on Mar 5, 2012 4:48 PM
Code formatting

Similar Messages

  • Getting list of populated database tables only

    Hi, recently started a new company and new to Oracle 10g. The database system they have has around 5000 tables. The majority of these are not used (it is an off the shelf package). What I am trying to do is get a list of all tables in the database BUT only those that contain records (not the empty tables) and then copy this to an excel spreadsheet. We use a tool called aquadata to run sql enquiry statements on.

    You didn't understand that reply. You could just spool this into a file with a .csv extension, and then open the file with excel.
    SQL> set head off
    SQL> spool xyz.csv
    SQL> select table_name from dba_tables where num_rows > 0;
    SQL> exit
    $ more xyz.csvEdit: And this is even easier: http://laurentschneider.com/wordpress/2007/05/export-to-excel.html
    Edit 2: All answers you are likely to get around here assume you use the built in Oracle tool called sqlplus. Many people think using the built in command line tool is much better for administrative tasks than some other tool. If you must do it in some other tool, you should ask how to do it whereever that tool is supported.
    Edit 3: You got an answer to the question you asked, but it could be your idea of "database" is what we call "schema" or "user." If you aren't logging in as a dba (which you shouldn't if you don't know the basic concepts, which you can and should read in the concepts guide), there is a similar table called "user_tables" in each schema, as well as one called "all_tables," which differs from user_table in that you may have been granted access to other user's tables. It may be in your tool, you could select table_name from user_tables where row_count > 0; and simply cut and paste that into excel. Or not. If you use dba_tables, you probably also want to select owner, table_name.
    Edited by: jgarry on Feb 9, 2012 9:31 AM
    Edited by: jgarry on Feb 9, 2012 9:38 AM
    Edited by: jgarry on Feb 9, 2012 10:58 AM

  • Packaged jdbc modules and multi datasources

    Is it possible to configure a multi-datasource within a packaged jdbc module within an application ear? It appears to me that multi-datasources are only supported as system datasources.

    You can configure Multi-datasources within a packaged jdbc module:-
    example :-
    <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/91">
    <name>examples-demoXA-multi-data-source</name>
    <jdbc-data-source-params>
    <jndi-name>examples-demoXA -multi-data-source</jndi-name>
    <algorithm-type>Load-Balancing</algorithm-type>
    <data-source-list>examples-demoXA,examples-demoXA-2</data-source-list>
    </jdbc-data-source-params>
    </jdbc-data-source>
    All data sources in a multi data source for an application-scoped JDBC module must also be application scoped.
    Link : http://edocs/wls/docs92/jdbc_admin/packagedjdbc.html

  • HT5706 i get no new movies listed on my apple tv only the ones that i have on my computer show

    i get no new movies listed on my apple tv only the ones that i have

    I have the original apple tv.  I did not delete my music from my Mac mini.  In fact I have two Mac minis.  I got the newer one when I bought my iPhone 4 and iPad.
    I upgraded to the cloud and now my music that was on computer does not show up on Apple tv from my connected computer.
    I did not sign up for iTunes Match...at least not intentionally.
    The only music on my apple tv is the music I bought over apple tv.
    Please help get my music collection to play on my Apple tv.
    Thanks,
    Bender

  • JDBC Configuration with Multi Datasource

    Hi all,
    We're using Weblogic 9.2 and has configured Multi Datasource with Failover algorithm. All is working well, but our DBA has reported that some requests were randomly still going to the 2nd node although he was sure that nothing was wrong with the 1st node. Is this an expected behavior with the Failover algorithm.
    Any help would be greatly appreciated.
    Thanks & Regards,
    Besetya

    Some of the application-level work? I think you can configure an MDS to 'fail over' if the first pool is
    simply at capacity and unable to deliver another connection. You can check that, and make sure the
    first pool is big enough. Than, also configure the backup pool with an initial capacity of 0, so it
    never even makes a connection unless the MDS fails over to it.

  • Load balancing with multi datasource

    Hi,
    I have created two data sources and created a multi data source with those with "Load-Balancing" set as algorithm.
    I have two kinds of urls where I can use those links to test the load balancing
    1. survey page which will take only 2 sec to submit
    2. registration page which will take more than 10 sec to submit.
    My problem here is everything is fine with survey page and also sequence is in order in the database but with the registration page, all data is getting inserted through the first data source.
    Thanks,

    Did you check the test connections in reserve option and also failover when busy option for the datasources and multi datasource?

  • Multi datasource faliover problem - JDeveloper integrated Weblogic 10.3.5

    Hi all,
    I have a problem with JDeveloper integrated weblogic (version 10.3.5) fail over to second datasource in multi data source (2 generic datasources) configuration environment.
    My test goes like this:
    1. I have two databases running on separate servers.
    2. both data sources are up & running OK.
    3. JDeveloper integrated weblogic configured with multi datasource, using algorithm failover, and failover callback class.
    4. weblogic started and adf application running using first datasource in list.
    5. if I unplug network cable or shut down first database, weblogic won't fail over to second datasource and still trying to use the first one.
    Failover callback class:
    package failover;
    public class ConnectionPoolFailoverCallback implements weblogic.jdbc.extensions.ConnectionPoolFailoverCallback {
         static {
              System.out.println("------------------------------------------------------------");
              System.out.println("\n\n\tConnectionPoolFailoverCallback class initiated...\n\n\t");
              System.out.println("------------------------------------------------------------");
         public int allowPoolFailover(String currPool, String nextPool, int opcode) {
              System.out.println("Current Pool - " + currPool);
              System.out.println("Next Pool - " + nextPool);
              System.out.println("Operation Code - " + opcode);
              System.out.println("------------------------------------------------------------");
              if (opcode == OPCODE_CURR_POOL_DEAD) {
                   System.out.println("\n\n\tConnectionPoolFailoverCallback     return OK.");
                   return OK;
              } else {
                   System.out.println("\n\n\tConnectionPoolFailoverCallback     return DONOT_FAILOVER.");
                   return DONOT_FAILOVER;
    }{code}
    *Problem:* When I unplug network cable or shutdown first database, method allowPoolFailover returns OK, but weblogic won't switch to second datasource entering allowPoolFailover method again and again.
    +Note:+ weblogic integrated in JDeveloper is running u development mode.
    Did I miss something in configuration or something else?
    Any help is appreciated.
    Thanks in advance,
    Alexandar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Alexandar,
    Have you made any progress with this? We seem to have bumped into this issue as well. Connection requests are consistently routed to the disabled pool (it appears as disabled in the WLS console, but we can see the counters increasing steadily), the callback handler is called and returns OK, and the connection request is ultimately serviced by the active pool. So while the application still successfully handles requests, there's obviously an underlying problem in obtaining the connection.
    Thanks,
    Sebastien

  • Get the Data from a DataSource

    Hi,
    I start with JMF. I use a processor to get DataSource from an audio file. Until there, all runs very well.
    But after that, I would like to get the raw data of my DataSource to aplly a filter on these data and after that, to create a new DataSource with filters data and play these data with my processor.
    I searched in the API documentation of JMF but I did'nt find the solution to get the raw data of my DataSource !
    Someone could help me ? and give me an idea of how to proceed ?
    Thanks for yours answers.
    Sylvain.

    Hi,
    It seems no one has replied to this post. I have a sample code that can help getting raw data from a DataSource. Here it is:
              PushBufferDataSource source = null;
              source = (PushBufferDataSource)processor.getDataOutput();
              /* Now we can retrieve the PushBufferStreams that will enable us to
              * access the data from the camera
              PushBufferStream[] streams = source.getStreams();
              camStream = null;
              for (int i = 0; i < streams.length; i++) {
              /* Use the first Stream that is RGBFormat (there should be only one */
              if (streams.getFormat() instanceof RGBFormat) {
                   camStream = streams[i];
                   RGBFormat rgbf = (RGBFormat)streams[i].getFormat();
                   converter = new BufferToImage(rgbf);
                   break;
    Please let me know whether it helped solving your problem..
    Suresh

  • When I send a Group message from my address book, the entire group gets listed in the "To" line. How do I get each member to receive the message individually without listing all members? Its just messy is all.

    When I send a Group message from my address book, the entire group gets listed in the "To" line. How do I get each member to receive the message individually without listing all members? Its just messy is all. Any help is greatly appreciated.

    Hey Grupo Castillo,
    Thanks for the question. You can actually configure this behavior from Mail preferences:
    1. Choose Preferences from the Mail menu.
    2. Click Composing.
    3. Deselect the checkbox for "When sending to a group, show all member addresses".
    When you send an email to the group, only the groups name will be seen.
    Mac OS X: Mail - How to Hide Address Book Group Member Names When Sending an Email
    http://support.apple.com/kb/TA21082
    Thanks,
    Matt M.

  • Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found

    Hi I'm having problems deploying my EJBs using the Pointbase Database.
    This is what I'm working with:
    standardjbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
       <defaults>
          <datasource>java:/PointbaseDS</datasource>
          <datasource-mapping>Pointbase</datasource-mapping>pointbase-ds.xml:
    <datasources>
         <local-tx-datasource>
              <jndi-name>PointbaseDS</jndi-name>
    <connection-url>jdbc:pointbase:server://localhost:19092/sample</connection-url>
              <driver-class>com.pointbase.jdbc.jdbcUniversalDriver</driver-class>
              <user-name>jboss</user-name>
              <password>password</password>
         </local-tx-datasource>
    </datasources>jbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
         <defaults>
              <datasource>java:/PointbaseDS</datasource>
              <datasource-mapping>Pointbase</datasource-mapping>
         </defaults>I keep getting the error message:
    org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found
    Any ideas why?
    Thanks.

    By the way I'm using JBoss server.

  • Getting list of PO's for a Batch Number

    Hello All,
    I have a requirement to get list of Purchase orders for a Batch Number.
    Is there any standard report available where in i can enter the Batch Number and it will give us list of all PO's where this batch has been used.
    Points assured.
    Warm regards,
    Jatinder Bansal

    HI,
    Very simple.Use report MB51.Enter batch & plant.Transaction event type-WE.
    Then execute.u can get the details.In this change the laypout.Click on current display variant,then on position deselect all
    options,then select only PO & shift to left side & save.U will get the required report.U can save ur layout also.
    murugan
    Edited by: Murugan mgl on Jul 28, 2009 10:45 AM

  • How to register a new list of JDBC driver to ODI?

    Hi Guys,
    How to register a new list of JDBC driver to appear on ODI?
    exam :
    When I defined a new master repository that resides on MSSQL 2005
    I already had sqljdbc.jar (This is mssql2005 jdbc driver) on the ..\oracledi\drivers
    But when I browsed jdbc driver list it will not appear any new driver we just put them in the driver folder.
    I knew this is a common issue.
    So I need to manually define a driver class and url to match exactly with the jdbc document say for sqljdbc.jar
    which is
    Driver Class : com.microsoft.sqlserver.jdbc.SQLServerDriver
    URL : jdbc:sqlserver://localhost:1084
    I think that the driver list will have to store in somewhere in the xml files OR some records on the master repository database.
    But where ?
    Because I saw the new list driver (Microsoft SQL Server 2005 driver for JDBC) on the vmware image that I had (actually it is ODI Training workshop VMware Image).
    But I don't know where to looks.
    Here are some proof that they actually appear in the driver list
    [Original MSSQL 2000 Driver List|http://img.ihere.org/uploads/1f6d1601bb.png]
    [New MSSQL 2005 Driver List|http://img.ihere.org/uploads/94cc91e1ac.png]
    How comes?
    Thank you in advance.
    Somchai
    Edited by: somchai on Feb 12, 2009 8:24 AM

    Hi CTS !
    Then, its impossible add new drivers into ODI ? So, if I need to add a driver and this exist in Oracle list drivers, what can I do in this case ?
    I have problems with Oracle JDBC driver in ODI. When I try generate web services the "Not suitable driver" message is shown. In Design, module part, when i generate web service i have the "*name of data source*" field and I put into "oracle.jdbc.driver.OracleDriver". Ok, this isn&acute;t a correct sintax, then I read in this manual "*note that the name of the data source must be consistent with the entries in context.xml and web.xml, prefixed with:java:/comp/env/*".
    Ok, In other post (Re: Not found web.xml and content.xml files into ODI folders
    you said me only necessary to change the web.xml and context.xml is only necessary if I use Tomcat. Then, how to discover a correct sintax to put into this field and generate my web service ?
    Best regards,
    Joao.
    Edited by: JohnnyBeGood on 16/02/2009 09:00
    Edited by: JohnnyBeGood on 16/02/2009 09:29

  • Getting list of operations for a service Order

    I have to List the operation activities which are Planned and Confirmed in a service order.
    I'm unable to link the operation in service order for some ZREPORTING purpose as it links through structures only.
    Kindly suggest how we can obtain operation details while reporting a service order.
    Also let me know if there is any FUNCTION MODULE for the same.
    Reply Eagerly Awaited.
    Thanks in Advance.
    Deepak

    hi deepak KM
    order operations are stored in VIAUF_AFVC table .... and have a look at iw49 for getting list of operations and can use status inclusive and status exclusive for selection based on statuses.. of operations ...
    regards
    pushpa

  • FM to get list of all directories and files on application server..

    Hi All,
    Can anyone tel me FM to get list of all directories and files on application server..i know 'F4_DXFILENAME_TOPRECURSION'
    and '/SAPDMC/LSM_F4_SERVER_FILE' these are working too...but my requirement is when i click F4 i should get list of directories and whn i select one of these the only directory name should display.....and whn click again for 2nd text box field i want file name ...means directory name in one text box field and file name in another....plz help me out..
    helpful answers wil b awarded.
    Thanks,
    Jayshree

    Hi Jayashree
    Please check this FM, SUBST_GET_FILE_LIST. Pass the file path and file name, if it returns an entry in table FILE_LIST, then the filename and path are valid.
    Hope this helps !
    ~ Ranganath

  • WebLogic 12c : Use wlst to list coherence managed servers

    Hi,
    I would like to list only coherence managed servers via wlst. I tried various options and some workarounds work but they only work in certain conditions.
    Just curious as to how other use wlst to list out coherence managed servers.

    Yeah, you call that a solution, I call that an annoying workaround. I'm familiar with that "solution". Using it simply means that we acknowledge that NodeManager can't use the server config information for the admin server, it has to re-specify all of it again manually. I would assume that if you specified a particular classpath for the admin server in the server config, you'll have to manually specify that here also. What's even worse is that if your server config referenced "$CLASSPATH" in the string, so it can reference the implicit classpath that WebLogic itself needs, you may not be able to use "$CLASSPATH" here (I'm not certain about this), and would instead have to manually specify the full entire classpath that the admin server needs. If you didn't have to specify a particular classpath value for the admin server, then you're probably ok, on at least this point.

Maybe you are looking for

  • Can you pay for a Mac on the US Apple Online Store with a credit card that has an account in another country.

    Can you buy a Mac on the US Apple Online store with a credit card that has an account in another country.

  • Flyback Transformer on imac dv400

    Hi, Can anyone advise me whether I can use the external monitor for imac dv400 (Slot loading) if my CRT is already dead due to Flyback Transformer ?I understand the early Imac models able to do so by just unplug the old cables and insert the new one.

  • Backing up certain folders?

    hi all, recently i am finding my macbook cluttered and full of stuff i really dont need. I am wondering if there is a way i can format my hard drive reinstall osx and my applications and only my music folder? i only use this mac for logic pro, reason

  • Proxy Table type not Generated

    Hi Gui's, I am woking on proxies while creating the proxis in SPROXY transaction proxy table type is not creating which we used in abap programing. what is the issue will you please guide me. Thanks, Lakshmi

  • Mail login in error

    Hi all, I am new to to the e-mail sdk and i am trying to login using : declare      c_user CONSTANT VARCHAR2(80) := '[email protected]'; c_password CONSTANT VARCHAR2(80) := 'we1come'; c_ldaphost CONSTANT VARCHAR2(80) := '10.2.1.251'; c_ldapport CONST