How to define pool size of a data source

In OC4J,How do I configure the behaviour of connection pools such as maxStatements, initialPoolSize,minPoolSize,maxPoolSize,maxIdleTime,propertyCycle which is defined in the JDBC specification?

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by wang haitao ([email protected]):
Thanks.From the example,I have known how to configure the minPoolSize and MaxPoolSize.
But,where can I find a example include all the datasource properties?
When I configure a property, I want to know the XML tag for the property.
IS this what you are looking for: http://www.orionserver.com/docs/data-sources.xml.html
<data-sources>
This file contains the configuration for the installed DataSources of an application-server.
<data-source ...>
An installed DataSource. The installed DataSources are bound to the JNDI-paths specified by the location attribute.
class - The classname of the DataSource. The core classes are com.evermind.sql.DriverManagerDataSource, com.evermind.sql.DriverManagerXADataSource, com.evermind.sql.DriverManagerConnectionPoolDataSource, com.evermind.sql.OrionPooledDataSource, com.evermind.sql.OrionCMTDataSource. There is also a special name; com.evermind.sql.AliasDataSource, which copies the data-source at the source-location to the specified location. See the API docs for further info on the other types.
connection-driver - The JDBC-driver classname for this DataSource, needed by some DataSources that deal with java.sql.Connections.
connection-retry-interval - How long to wait before retrying in seconds if a connection attempt fails. The default is 1.
ejb-location - The JNDI-path to bind an EJB-aware and pooled version of this DataSource to. (only applies to ConnectionDataSources). This version of the datasoruce will automatically take part in container-managed transactions and is the type of source that should be used from within EJBs and similar (if you use a "clean" datasource you loose the container-managed transactions support).
inactivity-timeout - Time to cache unused connections before closing them (seconds).
location - The JNDI-path to bind this DataSource to.
max-connect-attempts - How many times to retry making a Connection. This is useful when the network isnt stable or the environment is unstable for any other reason that will make connection attempts fail at times. The default is 3.
max-connections - The maximum number of open connections for pooling DataSources.
min-connections - The minimum number of open connections for pooling DataSources. The default is zero.
name - The displayed name of the DataSource.
password - The password to user when logging in using the DataSource, optional.
pooled-location - The JNDI-path to bind a pooled version of this DataSource to. (only applies to ConnectionDataSources).
schema - The relative/absolute path to a database-schema for this database connection.
source-location - The underlying DataSource of this specialized DataSource.
url - The JDBC URL for this DataSource, needed by some DataSources that deal with java.sql.Connections.
username - The username to log in as when using the DataSource, optional.
wait-timeout - The number of seconds to wait for a free connection if the pool is used up (ie reached max-connections used). The default is 60.
xa-location - The JNDI-path to bind a transactional version of this DataSource to. (only applies to ConnectionDataSources). XA-datasources are automatically pooled internally.
xa-source-location - The underlying XADataSource of this specialized DataSource (used by OrionCMTDataSource).
<description>The description</description>
A short description.
<property name="theName" value="theValue" />
A property to set when using a custom/3rd-party DataSource.
name - The name of the property.
value - The property value.
<HR></BLOCKQUOTE>
null

Similar Messages

  • How to control the size of live data in Coherence?

    How to control the size of live data in Coherence?
    See the following statement:
    Pause times increase as the amount of live data in the heap increases. We recommend not exceeding 70% live data in your heap. This includes primary data, backup data, indexes, and application data.
    --Excerpted from http://coherence.oracle.com/display/COH35UG/Best+Practices                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • How to set up Deltas in FI data sources

    How to set up deltas  for FI Data sources & can any body give me the list of the Finance data sources...
    please help me..

    Standard FI data sources:
    0FI_GL_4 (G/L Accounts- line items)
    Takes the data from the FI document tables (BKPF/BSEG) that are relevant to general ledger accounting (compare table BSIS).
    0FI_AP_4 (AP-line items) and 0FI_AR_4 (AR- line items
    Selections are made from tables BSID/BSAD (Accounts Receivable) and BSIK/BSAK (Accounts Payable)
    How the data extraction happens?
    In FI extraction 0FI_AR_4 and 0FI_AP_4 are linked with 0FI_GL_4 in order to maintain consistent data transfer from OLTP system (it is called coupled data extraction, Ref OSS notes 428571).
    Note: Uncoupled" extraction possible with Plug-In PI 2002.2, see OSS note 551044
    0FI_GL_4 writes the entries into the time stamp table BWOM2_TIMEST in the SAP R/3 System with a new upper limit for the time stamp selection.
    And now, 0FI_AP_4   and 0FI_AR_4 will copy this new upper limit for the time stamp selection during the next data extraction in the SAP R/3 System. This ensures the proper synchronization of accounts payable and accounts receivable accounting with respect to G/L accounting.
    Full load: Not a valid choice because of large volumes of detailed R/3 transaction data.
    Delta load:
    Note: Here the delta identification process works differently for new financial records and for changed financial records.
    New Financial accounting line items which are posted in SAP R/3 sytem will be identified by the extractor using the time stamp in the document header (Table BKPF-(field) CPUDT).
    By scheduling an initialization IP all the historical data can be  loaded into BW from the application tables and it also sets "X" indicator in field LAST_TS (Flag: 'X' = Last time stamp interval of the delta extraction).That means after the last delta, initialization was done.
    OLTPSOURCE     AEDAT/AETIM     UPD     DATE_LOW     DATE_HIGH     LAST_TS
    0FI_GL_4     16 May 2007/20:15     Init     01 Jan 1990     15 May 2007     
    0FI_GL_4     24 May 2007/16:59     delta     16 May 2007     23 May 2007     
    0FI_GL_4     21 June 2007/18:12     delta     15 June 2007     20 June 2007     X
    0FI_AP_4     18 May2007/21:23     Init     01 Jan 1990     15 May 2007     
    After this, daily delta loads can be carried out depending on timestamp by scheduling delta info packages.
    During the delta load , the SAP R/3 system logs two time stamps that delimit a selection interval for a Data Source in table BWOM2_TIMEST(fields TS_LOW and TS_HIGH).
    FI -Delta Mode:
    A time stamp on the line items serves to identify the status of the delta. Time stamp intervals that have already been read are then stored in a time stamp table (BWOM2_TIMEST).
    (Info object 0Recordmode plays vital role deciding delta's .Check the field "delta "in ROOSOURCE /RODELTAM table to identify the image)
    The Financial Accounting line items are extracted from the SAP R/3 system in their most recent status (after-image delta method).
    AIE: This delta method is not suitable for filling Info Cubes directly in the BW system. To start with therefore, the line items must be loaded in the BW system in an ODS object that identifies the changes made to individual characteristics and key figures within a delta data record. Other data destinations (Info Cubes) can be provided with data from this ODS object.
    It uses delta type E(pull) means the delta data records are determined during the delta update by the data source extractor, updated to the delta queue and passed on to BI directly from there.

  • How to define the size of private folder in Easy DMS?

    Hi,
    I have to ristrict the user to keep  the data in private folder after the maximum limit
    please help me how to define the private folder size in easy DMS.
    after the limit user is not able to keep data in private folder.

    Hi,
    This can be done in SAP Customization / SPRO
    Pl. check :
    Cross-Application Components>Document Management>Control Data>Define Document types
    Here the size limit can be defined.
    Also check : http://scn.sap.com/community/plm/document-management/blog/2014/06/20/how-to-create-dir-and-document-type-in-dms
    Hope this helps
    Regards,
    Remi

  • How to change font size of the date in notification center?

    The language of yosemite system on my macbook pro is “Traditional Chinese”. If the month and day of  a date are both composed of two characters, for example, Oct 23 (“10月23日” in Chinese), the last character of the date will go to a new line (as shown in the picture attached). It’s ugly!!!
    I think this issue can be solved by decrease the font size of the date. Is there anyone knows how to do this or where the configuration file of the notification center is? Thanks!

    AFAIK there is no way to customize this font size. You can't resize the window either.
    You need to report it to Apple Feedback so it can be logged and put in the queue to be fixed.
    http://www.apple.com/feedback/macosx.html

  • How to fix the size of table data in html

    I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

    you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
    <td width=50>
    as long as you have wrap text on, then text will not force the box size over the 50 pixels
    this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

  • How to define a text index in data modeler

    Hello,
    how to define a text index (indextype is ctxsys.context) in data modeler?
    The SQL-command would be:
    create index P1_TEXT_BESCHR_SPRACHE on P1_PDM_MODUL_SPRACHE(BESCHREIBUNG) indextype is ctxsys.context
    parameters ('lexer global_lexer language column LANGUAGE format column FORMAT STORAGE PDMSTORE')
    online
    Thanks in advance for any help.
    Monika

    Hi Monika,
    After creating relational model, you'll have to create physical one. In physical model there is index properties dialog, where you can adjust context index properties.

  • How to define reminder letter before due date

    Dear Expert,
    How to define dunning procedure in FBMP (for tcode F150) for this condition:
    1st reminder letter should be generated 7 days before due date.
    Currently the setting for dunning level is 4 (days in arrears: blank, 14, 60, 180)
    But I confuse how to be set in 'Days in Arrears' for the first reminder letter?(I set blank since could not set as negative, e.g -7 (7 days before due dates)
    Kindly advice
    Thank you.

    Hi
    maintain Denning Level like Below
    Days in arrears            0    7  53   173
    Calculate interest
    Print Parameters
    Always dun?
    Print all items
    Payment deadline      7     7     7   7
    hope it will resolve your issue
    satish

  • How to define the size of the frame

    I have create a frame in my jbuilder env, how can I define the size of the frame and change
    some attributes of the frame.
    Which method shall I invoke?

    To define the size of the frame use setSize method.
    To avoid minimise and maximise button use setResizable method with parameter as false.

  • How to define DefaultTableModel to use vector data?

    Hi ...
    I want to show files data in a jtable which consist of files (Name,size,path) I want to use vectors for remove and add methods. The problem is with data vector I tried to define it as
    Vector <Vector[][]>data;I get always an error when I tried to add data to data vector so where is my problem?
    Thanks.
    Feras

    Vector <Vector[][]>data;You are confusing 2Dimensional arrays with Vectors. When using Vectors you need to create a Vector of Vectors. The code should be something like this;
    Vector<Vector> data = new Vector<Vector>();
    Vector<Object> row1 = new Vector<Object>();
    row1.add(name);
    row1.add(size);
    row1.add(path);
    data.add(row);Presumably the code to add the rows would be in a loop.

  • How to restrict the size of Buffer data object

    Hi everyone.
    How do you restrict the size of the Buffer data object. The byte array that you get by calling getData(). I want to restrict the size to be at most X nbr of bytes. I'm 'filling' the buffer like this:
    Buffer readBuffer;
    PushBufferStream stream;
    stream.read(readBuffer);

    This is my code:
    class DataSourceHandler implements DataSink, BufferTransferHandler {
              private int MAX_DATA_PACKET_SIZE = 2000;
              private DataSource source;
              private PullBufferStream pullStrms[] = null;
              private PushBufferStream pushStrms[] = null;
              // Data sink listeners.
              private Vector listeners = new Vector(1);
              // Stored all the streams that are not yet finished (i.e. EOM
              // has not been received.
              private SourceStream unfinishedStrms[] = null;
              // Loop threads to pull data from a PullBufferDataSource.
              // There is one thread per each PullSourceStream.
              private Loop loops[] = null;
              private Buffer readBuffer;
               * Sets the media source this <code>MediaHandler</code> should use to
               * obtain content.
              public void setSource(DataSource source)
                        throws IncompatibleSourceException {
                   // Different types of DataSources need to handled differently.
                   if (source instanceof PushBufferDataSource) {
                        System.out.println("source instanceof PushBufferDataSource");
                        pushStrms = ((PushBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pushStrms.length];
                        // Set the transfer handler to receive pushed data from
                        // the push DataSource.
                        for (int i = 0; i < pushStrms.length; i++) {
                             pushStrms.setTransferHandler(this);
                             unfinishedStrms[i] = pushStrms[i];
                   } else if (source instanceof PullBufferDataSource) {
                        System.out.println("source instanceof PullBufferDataSource");
                        pullStrms = ((PullBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pullStrms.length];
                        // For pull data sources, we'll start a thread per
                        // stream to pull data from the source.
                        loops = new Loop[pullStrms.length];
                        for (int i = 0; i < pullStrms.length; i++) {
                             loops[i] = new Loop(this, pullStrms[i]);
                             unfinishedStrms[i] = pullStrms[i];
                   } else {
                        // This handler only handles push or pull buffer datasource.
                        throw new IncompatibleSourceException();
                   this.source = source;
                   readBuffer = new Buffer();
                   byte[] data = new byte[MAX_DATA_PACKET_SIZE];
                   readBuffer.setData(data);
              * For completeness, DataSink's require this method. But we don't need
              * it.
              public void setOutputLocator(MediaLocator ml) {
              public MediaLocator getOutputLocator() {
                   return null;
              public String getContentType() {
                   return source.getContentType();
              * Our DataSink does not need to be opened.
              public void open() {
              public void start() {
                   try {
                        source.start();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].restart();
              public void stop() {
                   try {
                        source.stop();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].pause();
              public void close() {
                   stop();
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].kill();
              public void addDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        if (!listeners.contains(dsl))
                             listeners.addElement(dsl);
              public void removeDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        listeners.removeElement(dsl);
              protected void sendEvent(DataSinkEvent event) {
                   if (!listeners.isEmpty()) {
                        synchronized (listeners) {
                             Enumeration list = listeners.elements();
                             while (list.hasMoreElements()) {
                                  DataSinkListener listener = (DataSinkListener) list
                                            .nextElement();
                                  listener.dataSinkUpdate(event);

  • How to access a field of an data source w/o binding a form field to it

    Hi
      This is a query regarding ADOBE print form.
      How to access a record field (of an data source.... typical multi row records) where the record is bound to a subform.
    Data is something like
    (I have used abap parlance for understanding)
    data : begin of data_tab occurs 0,
      field1 type .....,
    field2 type .....,
    fieldm type .....,
    fieldn type .....,
    end of data_tab.
    Subform is bound to
    $.DATA_TAB.DATA[*]
    How to access field1, field2,...... etc without creating subform fields and binding them to field1, field2, .... fieldn.
    I know normal approach is to define subform fields and then bind it to $.field1, $.field2 etc
    In the calculate event of a field bound to $.fieldm I have tried the following expressions to get the value of column fieldn of the same record but none of them worked.... Note that if I bind the field using $.fieldn data is displayed properly in the print form.
    $record.data_tab.fieldn.value
    $record.data_tab.data[*].fieldn.value
    $record.data_tab.data.fieldn.value
    $record.data_tab.fieldn.value
    Otherwise I would have to define hidden fields just to use these column values in the event script even though these value are not to be displayed in the ADOBE print form.
    Regards
    Abapper

    I can't remember the exact sentence, but do a little search, as that is a common question in this forum....
    How about:
    $record.data_tab.data[1].fieldn.value
    $record.data_tab.data[2].fieldn.value
    $record.data_tab.data[2].fieldn.value
    $record.data_tab.data[N].fieldn.value
    Cheers.

  • WLS 10.3.4: How to use OS authentication for JDBC Data Source

    Hello all,
    As a preface, I've tried searching the forum/Google for "OS authentication" and reading the WLS JDBC doc to no avail - if it's documented somewhere, a RTFM link would be much appreciated.
    I'm trying to set up a JDBC data source on WLS that leverages the OS Authentication capability of the Oracle database. If it would help, I can go into the reasoning behind why I want to do this, but basically, it's to simplify the config/deployment of a COTS application. What I have in the database is an "identified externally" user that corresponds to the OS user that is running the WebLogic Server. Normally, in tools such as SQL*Plus, I would use "/@db" as the username/password (in other words, no username and no password specified), and I would be logged in as the "idenfitied externally" user. I want to configure the same thing for a WebLogic Data Source, but if I leave the username/password blank, testing the connection in the WLS console gives me "invalid username/password, login denied" I've also tried using "/" as the username, as was documented in a quite old WLS faq, but that gives me the same result.
    Is there some magic switch I need to flip?
    Thanks,
    John

    Hi John, there's no way to do that with connection pools, which is how WLS datasources get their
    connections, or middleware in general. WebLogic would have no way of knowing which if any of the
    pooled connections was appropriate for the current 'user', which is not the application user, but
    instead is the OS identity of the person who started the WebLogic server! If you start up your
    WebLogic server, and people start pointing their browsers to it, doing various stuff, the OS knows
    you started WebLogic, and maybe with the help of OCI, Oracle's JDBC might know it was you who
    started WebLogic's OS process, but what does the OS know about any user that may be running
    a browser or application elsewhere (even if on this same machine), when that browser or application
    connects to your WebLogic server process?
    HTH,
    Joe

  • How to specify dataschema name for oracle data source?

    hi all,
    I've a following problem:
    we have specified 2 Oracle dataschemas into a one Oracle SID, choosing of dataschema depends on user login name. So, if I use SQL/Plus then I successful connect with proeprietary database schema, and when I specify this user in "data-sources.xml" for datasource definition, however connection estabished with a default dataschema.
    And so question: how can I choose proeprietary database schema defined in one Oracle SID? There is any settings for this purpose in data-sources.xml?
    thanx in advance,
    Val.

    sorry, it works! was my error.

Maybe you are looking for

  • Path/File access error

    Hi all, I have a client that is acting strange. The users said the following: "The page opens to the landing page but then when I click to open an income statement or report on employment costs the path/file access error appears and I cannot get furt

  • How do I wipe everything from my old iPhone?

    I have successfully cloned all from old to new iPhone. Hopw can I erase everything from old iPhone?

  • What is a peer

    I have came across a term peer , it is associated with component, also there is a fucntion called getPeer() in component that returns ComponetPeer, Please help me to know more about peers, Thanks in advance

  • When printing from Firefox I get random letters, numbers, boxes.

    This happens when I print from email and Firefox. Sometimes I get the random letters, numbers and boxes with a small phrase with correct spelling. For example, this happened when I tried to fill out a US passport form. The form itself was okay. What

  • Compressor Quits Unexpectedly

    Since I've had compressor 4 it has failed to open. This is the Problem Details and System Configuration I receive: Process:         Compressor [46512] Path:            /Applications/Compressor.app/Contents/MacOS/Compressor Identifier:      com.apple.