JDBC for BW UDI - Help Needed

Hi,
I'm new to the J2EE side of things.
I'm trying to setup a new feature in BW 3.5 which allows loading via JDBC drivers.
We have a vanilla BW 3.5 system at SP9 across the board.
I have successfully registed a SQLserver JDBC driver. However the BW install guide then tells me to create a "connector container" in the j2ee administrator. However this node has a red cross against it:
sap.com/com.sap.ib.busdk.dac.connector.jdbc/null
Also when I go to the JDBC test applet:
http://gblonnw01:50500/TJdbc/servlet/TestJdbc
I get the following error:
com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name webContainer/applications/sap.com/com.sap.ip.bi.sdk.dac.connector.checkjdbc/TJdbc/java:comp/env/SDK_JDBC, cannot resolve object reference. [Root exception is com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "SDK_JDBC" does not exist. Possible reasons: the connector in which ConnectionFactory "SDK_JDBC" is defined is not deployed or not started.] at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:504) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:202) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271) at javax.naming.InitialContext.lookup(InitialContext.java:347) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.sap.ip.bi.sdk.trialarea.connector.servlet.TestJdbc630.service(TestJdbc630.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "SDK_JDBC" does not exist. Possible reasons: the connector in which ConnectionFactory "SDK_JDBC" is defined is not deployed or not started. at com.sap.engine.services.connector.ResourceObjectFactory.getObjectInstance(ResourceObjectFactory.java:210) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:280) at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:414) ... 22 more exception:Exception during lookup operation of object with name webContainer/applications/sap.com/com.sap.ip.bi.sdk.dac.connector.checkjdbc/TJdbc/java:comp/env/SDK_JDBC, cannot resolve object reference.
Any ideas?
Something to do with SDK_JDBC is obviously missing or not configured, but I don't know how to resolve it.
Many thanks in advance for any help.
Regards,
Mike

Hi,
I have the same problem like Mike. The final test, decribed in the Installation-Guide, shows the listed error.
Has anyone configured UDI on an Oracle-Database and HP-UX?
I assume that the problem is related to the Communication-Settings in the Visual Admin.
Do you have any Ideas?? Please come back to me.
Regards,
Benni

Similar Messages

  • Help,just  entered registration code for quicktime pro,help needed

    Help,just  entered registration code for quicktime pro,help needed,cant seem to see the quicktime pro screen i saw on internet with all the edit and extra things at the top,i dont understand this,any help,Dave

    I hope this helps http://support.apple.com/kb/ht2240 good tips on your prob here..good luck

  • Jdbc Multilingual Support. Help needed.

    I have a java program storing utf8 char strings into an 8i oracle db. I am using the sun jre 1.3 internationalised and the JDBC Thin driver. The problem is that i an store the strings in different lamguages but i can read properly only the language that is stored in my nls_lang key on the client machine. How can I input lets say Ukrainian , chinesse and greek from my client and read al the strings correctly in a JTextArea?
    Currently I am using AMERICAN_AMERICA.WE8ISO8859P1 on both the client and the server. Anyone's contributuion will be deeply appreciated because I really need help!!!!

    You don't know what query you are executing, do you? That would be the first thing to investigate. Also, dates in Access queries must be represented like this: #mm/dd/yy#. (This is not standard SQL so you might want to avoid it.)
    A better approach would be to use a PreparedStatement, where you can just represent the parameters of the query by question marks, like this:
    select f1,f2 from data where indate>? and f3=?

  • Delivery Creation for an STO - Help needed!!

    I have a requirement to update an STO ( quantities etc) , subsequently create a Delivery for the changed STO .... Now , the processing is, of an Inbound IDoc by a Custom Function Module .... Initially I was creating the delivery with a BDC on VL10B ... it was working fine whenever we processed an IDoc template in WE19 or reprocess an IDoc using BD73... Now, whenever an actual IDoc is received from the external system , the VL10B transaction fails ( GUI exception is raised).... According to OSS note 310022 , VL10* transactions do not have GUI support .. the note also mentions that the solution to the problem is to call the background program RVV50R10C ....
    I used a SUBMIT within my function module to RVV50R10C supplying the necessary selection parametes ... but the problem still persists .... In ST22 .. the dump for the rfc user is appearing as:
    "The termination occurred in the ABAP program "CL_GUI_CUSTOM_CONTAINER=======CP"
    in "CONSTRUCTOR".
    The main program was "RVV50R10C ". "
    Please help !!! Top priority problem!!!

    Try using the function module BAPI_DELIVERYPROCESSING_EXEC instead:
    Ex:
    form bapi_create_deliveries tables gtab_data structure zre029_crea_del
                                using  gw_ebeln
                                gw_tcode.
      data: ptab_request type  bapideliciousrequest occurs 0 with header line,
            ptab_items   type table of bapideliciouscreateditems,
            ptab_return  type table of bapiret2,
            pwa_request  type bapideliciousrequest.
      data: pw_error_occured,
            pwa_return type bapiret2,
            pwa_data   type zre029_crea_del.
    *        gw_frgzu   TYPE ekko-frgzu.
      constants: begin of pw_msgty,
                   error      like syst-msgty value 'E',
                   abend      like syst-msgty value 'A',
                   warning    like syst-msgty value 'W',
                   info       like syst-msgty value 'I',
                   success    like syst-msgty value 'S',
                 end of pw_msgty.
      clear gtab_data.
      loop at gtab_data into gwa_data.
        ptab_request-document_type          = 'B'.
        ptab_request-delivery_date          = sy-datum.
        ptab_request-document_numb          = gw_ebeln.
        ptab_request-document_item          = gwa_data-ebelp.
        ptab_request-quantity_sales_uom     = gwa_data-menge.
        ptab_request-sales_unit             = gwa_data-meins.
        ptab_request-document_type_delivery = 'NL'.
        append ptab_request.
      endloop.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
        tables
          request      = ptab_request
          createditems = ptab_items
          return       = ptab_return.
    * check protocol
      loop at ptab_return into pwa_return.
        if pwa_return-type = pw_msgty-error or
           pwa_return-type = pw_msgty-abend.
          message id pwa_return-id type pwa_return-type
                                  number pwa_return-number.
          pw_error_occured = 'X'.
          message e001(vl) with 'Unable to create deliveries, errors with BAPI!!!'.
          exit.
        endif.
      endloop.
      if pw_error_occured is initial.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
      endif.
    Leonardo De Araujo

  • Issue for self consumption - Help needed

    Hi,
    We need to urgently issue a finished material (produced by us) for building wall construction.
    MY excise dept says that i need to pay duty as well as i can claim Cenvat Credit as input material.
    So how to map this process in SAP.
    Regards
    all answers will be suitably rewarded.

    If the matter is only creating Excise Liability, It can be done through Excise JV, through T.Code: <b>J1IH</b>. You can use the Tab <b>Additional Duty</b> or <b>Other Adjustment</b>. Document Number is Text Field & ant text can be maintained in It. Fill all other relevant details. In next screen, you will be able to maintain the relevant Excise Duty with or without material. Ofcourse, no Invoice can be generated for the same.
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Table Names for CIN transactions -Help needed

    Hi,
    "Please teach us the table names which are updated with below transaction. Since it will be necessary for add-on development.
    1. J1IH
    2. J1IIN
    3. J1IJ
    4. J1IS
    5. J1IEX
    6. J1IG
    Please help me..
    Thanks
    KB

    With help of ABAPer, try using trace (ST05) and find the tables used in these t-codes.

  • Class com.ibm.jsse.be configured for a TrustManagerFactory : Help needed

    Hi
    I am getting the following runtime error when trying for a HTTPS connection from my java code.
    Runtime Error : Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory Action: 4 Class: com.americanexpress.teen.common.fis.FISInterface Method: getFISTestData(String fisURL) Exception:java.net.SocketException: Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory
         at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.o(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.<init>(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getInputStream(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getHeaderField(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getResponseCode(Unknown Source)
         at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.getResponseCode(Unknown Source)
         at com.americanexpress.teen.common.fis.FISInterface.getFISTestData(FISInterface.java:2238)
         at org.apache.jsp._fisTestPage._jspService(_fisTestPage.java:112)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    My application is trying to a https://xyz.com from java code and i am getting the above exception.
    I tried connecting to "https://xyz.com " from my workspace via Websphere 5.1 server and my server is throwing the above exception. I have extened the ibmjsse provided by WAS 5.1 and using it for connecting to the HTTPS URL.
    I feel the above problem might be due to network issues. Please help me in resolving the same.
    Thanks in advance !!!!!

    Steps i have done to ensure the connectivity :
    Method A :
    1) I imported the pfx and CA certificates given by xyz.com in my web browser (IE)
    2) After that, I tried connecting to "https://xyz.com" from browser and getting a proper response.
    Method B :
    1) I updated the jre cacert with CA certificate given by xyz.com
    2) Loaded the pfx keystore from my java client code program and ran it as a java standalone code and got the proper response.
    My java code
    import java.io.*;
    import java.net.*;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.*;
    import java.security.*;
    import java.sql.Time;
    public class HTTPSConnect{
         public static void main(String[] args)
                   URL url;
                   StringBuffer buffer;
                   String line;
                   int responseCode=0;
                   HttpsURLConnection connection = null;
                   InputStream input;
                   BufferedReader dataInput;
                   //FIS Sample URL
                   String fisURL = "https://xyz.com";
                   String fisResp = "";
                   try
                   Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                   System.setProperty("javax.net.debug", "all");
                   String path = "F:\\MyCertificate.pfx";
                   String type = "pkcs12";
                   String password = "abc123";
                   System.setProperty("javax.net.ssl.keyStoreType", type);
                   System.setProperty("javax.net.ssl.keyStore",path);
                   System.setProperty("javax.net.ssl.keyStorePassword",password);
                        url = new URL(fisURL);
                        //Create the connection
                        connection = (HttpsURLConnection) url.openConnection();
                        connection.setUseCaches(false);
                        //Get the response code for the HTTPS connection
                        responseCode = connection.getResponseCode();
                   if (200 == responseCode)
                        buffer = new StringBuffer();
                        //Getting the FIS Response XML using the Stream reader
                        input = connection.getInputStream();
                        dataInput = new BufferedReader(new InputStreamReader(input));
                             while ((line = dataInput.readLine()) != null)
                                  buffer.append(line);
                                  buffer.append('\n');
                        fisResp = (String) buffer.toString().trim();
                   else
                        System.out.println("HTTP Status-Code : " + responseCode);
                   catch (MalformedURLException mue)
                        System.out.println("Exception in URL : " + mue.getMessage() );
                        mue.printStackTrace();
                   catch (IOException ioe)
                        System.out.println("IO Exception : " + ioe.getMessage() );
                        ioe.printStackTrace();
                   catch (Exception e)
                        System.out.println("Exception : " + e.getMessage() );
                        e.printStackTrace();
                   System.out.println("FIX XML Response : " + fisResp);
                   System.out.println("Response Code of HTTPS Connection : " + responseCode);
    Please let me know if i am missing something :)

  • Volunteer in Uganda struggling for iTunes update, help needed!

    I cannot connect my iphone 3GS to the macbook I have been issued with because the version of itunes on it is too old.  When I attempt to update it I get a message saying that the server cannot be verified, I select the option to continue anyway only to then by told that the server cannot be contacted.
    I am on a satelite uplink system in rural south western Uganda.  There is almost no music on this macbook but I have authorised this macbook and I want to sync with it.  Any advice?

    I think you are stuck for a bit Norman. iTunes 11.1.1 and is not working with my 3GS which can not be updated to iOS 7. You can not get iTunes 11.0.5 as a download from Apple, and it worked fine with the 3GS.
    You can use PhoneView from eccam or Senti to copy the music from the iPhone to your Mac, where you should be able to play then through iTunes then.
    Either is a lot smaller than an iTunes update, so should help with the satelite link.

  • IPhone 4S - Could not scan for wireless networks - help needed please

    Hi
    Can anyone offer any advice please.
    My 4s has developed an wifi issue. It cant scan for wireless networks My bluetooth is intermittent also.
    I have turned it on/off, rebooted, reset all networks, reset to factory settings, set to airplane mode, set to do not disturb - everything and all to no avail.
    I am under a two year contract with Vodafone and went into their branch at Merry Hill, Dudley today and they failed to help me saying it was nothing to do with them.
    I am at a loss as to what to do. I have not had any accident with my phone and it is still in mint condition.
    Can anyone please offer any suggestions on what to do.
    Many thanks.

    Apple's out-of-warranty policy is a feeble attempt at covering up it's issues and is a clear cut demonstration for their lack of respect for its user base. Their WIFI/Bluetooth dropping issues have been around for several years now and it started within the last 3 IOS updates. Apple engineers acknowledge this problem and don't have a solution yet... this was confirmed at the Genius Bar at their Nashua, NH outlet. My phone is 6 months passed warranty and my Verizon contract isn't up for renewal for another 6 months.
    There are a lot of complaints about this (a LOT), yet Apple continues to stick its head in the sand instead of owning up to providing shoddy hardware and/or glitches software. They certainly don't want to be in the business of replacing phones, so they put the onus on us by charging $200 for a replacement... such a deal for Apple!
    Apple's support communities are basically useless on this subject with a lot of screwy so-called solutions to work around their flaws. I've seen one  fix where you heat up the phone with a hairdryer until the temp warning appears and then refrigerate it for 10 minutes... then BINGO, it's all fixed! Ya right!!!
    Resetting network settings, or all settings (including a complete reset) is ineffective and appears to do nothing more than to further upset Apple users once they realize that they have wasted their time following Apple's so-called fix.
    I just wonder if or when Apple pulls it's collective head out of the sand will they be able to see that their competition has surpassed them by leaps and bounds. There really isn't any good reason to stick with Apple now-a-days since their conscience passed away. Their competition offers superior technology while Apple continues to impress up with new connector technology and placement of their sockets.
    I am finished with Apple and am incredibly sick of their spoon feeding what they want rather than what we want.
    The best way to make Apple improve is to provide them with a taste of their own WIFI/Bluetooth offerings by DROPPING THEM!
    They have abandoned us and have no problem trying to charge us to replace their flawed technology instead of doing the right thing!
    Dale E Alden
    Groton, MA 01450

  • JPQL Query for specific usecase, help needed

    Does anyone knows how to write the JPQL query for this specific use case.
    Take 3 tables,
    Table 1 contains bids for many auctions (Bid table)
    Table 2 Contains many auctions (Auction Table)
    Table 3 contains many users (User Table)
    I need a query to retrieve all the highest bids per auction for a particular user.
    For example if the user has bidded on 10 auctions., but for each auctions has placed 3 bids each. Following the query, I would expect to get 10 bids back, each being the highest per auction.
    A Bid has a bid value that can be used for filtering.
    Thanks
    Peter

    It would be something like the JPQL version of 'select * from bids join auctions using (auction_id) where bids.userid = ? group by auctions.auction_id order by bids.amount desc'. But this is primarily an SQL question, and only secondarily a question as to how to translate that into JPQL, which should be straightforward.

  • Video for browser window help needed

    Hi,
    I have an idea for a website where it starts with a short
    video that plays at what ever size the users window is at, then the
    clip stops to a stand still and the user interface then pops up or
    it may appear along with the video. . . but I'm a bit worried as
    I'm kinda new to flash and I have no idea how I can get a video to
    play to the full size of a browser window (not full screen) , I
    think I can do the interface popup bit at the end though. Here is
    an example of the sort thing I'm taking about
    http://www.uniqlo.jp/uniqlock/
    though their video goes on and on =] but it's roughly the same idea
    with an interface built on top of it. Vision skate website has the
    same thing too
    http://www.visionstreetwear.com/
    If any one has any ideas on how this can be done or maybe a
    tutorial link that would great thanks.

    The way that a flash file will display and stretch, or not,
    is defined in the HTML options tab of the Publish Settings window.
    You need to use both the Dimensions option and the Scale
    option.

  • Tweak for sql query - help needed for smalll change

    Hi.
    I am trying to run a script that checks for used space on all tablespaces and returns the results.
    So far so good:
    set lines 200 pages 2000
    col tablespace_name heading 'Tablespace' format a30 truncate
    col total_maxspace_mb heading 'MB|Max Size' format 9G999G999
    col total_allocspace_mb heading 'MB|Allocated' format 9G999G999
    col used_space_mb heading 'MB|Used' format 9G999G999D99
    col free_space_mb heading 'MB|Free Till Max' like used_space_mb
    col free_space_ext_mb heading 'MB|Free Till Ext' like used_space_mb
    col pct_used heading '%|Used' format 999D99
    col pct_free heading '%|Free' like pct_used
    break on report
    compute sum label 'Total Size:' of total_maxspace_mb total_allocspace_mb used_space_mb - free_space_mb (used_space_mb/total_maxspace_mb)*100 on report
    select
    alloc.tablespace_name,
    (alloc.total_allocspace_mb - free.free_space_mb) used_space_mb,
    free.free_space_mb free_space_ext_mb,
    ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    ((free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb))/alloc.total_maxspace_mb)*100 pct_free
    FROM (SELECT tablespace_name,
    ROUND(SUM(CASE WHEN maxbytes = 0 THEN bytes ELSE maxbytes END)/1048576) total_maxspace_mb,
    ROUND(SUM(bytes)/1048576) total_allocspace_mb
    FROM dba_data_files
    WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    GROUP BY tablespace_name) alloc,
    (SELECT tablespace_name,
    SUM(bytes)/1048576 free_space_mb
    FROM dba_free_space
    WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    GROUP BY tablespace_name) free
    WHERE alloc.tablespace_name = free.tablespace_name (+)
    ORDER BY pct_used DESC
    The above returns something like this:
    MB MB % %
    Tablespace Used Free Till Ext Used Free
    APPS_TS_ARCHIVE 1,993.13 54.88 97.32 2.68
    APPS_TS_TX_IDX 14,756.13 1,086.88 91.37 8.63
    APPS_TS_TX_DATA 20,525.75 594.25 80.18 19.82
    APPS_TS_MEDIA 6,092.00 180.00 74.37 25.63
    APPS_TS_INTERFACE 13,177.63 366.38 71.49 28.51
    The above works fine, but I would like to further change the query so that only those tablespaces with free space less than 5% (or used space more than 95%) are returned.
    I have been working on this all morning and wanted to open it up to the masters!
    I have tried using WHERE pct_used > 95 but to no avail.
    Any advice would be appreciated.
    Many thanks.
    10.2.0.4
    Linux Red Hat 4.

    Thanks for that.
    What is confusing is that the below query works for every other (about 10 others) database but not this one (?)
    SQL> set lines 200 pages 2000
    SQL>
    SQL> col tablespace_name heading 'Tablespace' format a30 truncate
    SQL> col total_maxspace_mb heading 'MB|Max Size' format 9G999G999
    SQL> col total_allocspace_mb heading 'MB|Allocated' format 9G999G999
    SQL> col used_space_mb heading 'MB|Used' format 9G999G999D99
    SQL> col free_space_mb heading 'MB|Free Till Max' like used_space_mb
    SQL> col free_space_ext_mb heading 'MB|Free Till Ext' like used_space_mb
    SQL> col pct_used heading '%|Used' format 999D99
    SQL> col pct_free heading '%|Free' like pct_used
    SQL>
    SQL> break on report
    SQL> compute sum label 'Total Size:' of total_maxspace_mb total_allocspace_mb used_space_mb - free_space_mb (used_space_mb/total_maxspace_mb)*100 on report
    SQL>
    SQL> select /*+ALL_ROWS */
    2 alloc.tablespace_name,
    3 alloc.total_maxspace_mb,
    4 alloc.total_allocspace_mb,
    5 (alloc.total_allocspace_mb - free.free_space_mb) used_space_mb,
    6 free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb) free_space_mb,
    7 free.free_space_mb free_space_ext_mb,
    8 ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    9 ((free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb))/alloc.total_maxspace_mb)*100 pct_free
    10 FROM (SELECT tablespace_name,
    11 ROUND(SUM(CASE WHEN maxbytes = 0 THEN bytes ELSE maxbytes END)/1048576) total_maxspace_mb,
    12 ROUND(SUM(bytes)/1048576) total_allocspace_mb
    13 FROM dba_data_files
    14 WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    15 GROUP BY tablespace_name) alloc,
    16 (SELECT tablespace_name,
    17 SUM(bytes)/1048576 free_space_mb
    18 FROM dba_free_space
    19 WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    20 GROUP BY tablespace_name) free
    21 WHERE alloc.tablespace_name = free.tablespace_name (+)
    22 ORDER BY pct_used DESC
    23 /
    ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    ERROR at line 8:
    ORA-01476: divisor is equal to zero

  • Need to add superscript for text field--HELP NEEDED.

    Hi Friends,
    Is there any way to implement superscript and subscript text in Crystal?  For example, I would like to superscript the portion (1) of the following string:
    "Buy(1) or Sell(1)"
    The only way I have found to do this is to put the "235" in a separate text field that uses a smaller font size, and overlay it into the gap that I intentionally left in the larger text field.  For display and printing purposes, this works OK, but if a report containing these strings is exported to Excel, the text fields are exported as separate cells, which makes the exported report look funny.
    I can create this string in Word, then cut and paste it into a text field in Crystal (which initially seems to work), but as soon as I click off the field, all the characters in it are converted to the same font size.
    If this can't be done in the current version of Crystal, are there any plans for it to be implemented in future versions?

    hello all,
    the text interpretation for html or rtf in fields will not render superscript or subscript. the basic rule is that whatever you can format directly in a crystal reports text object, that's what you can have interpreted.
    look up "text interpretation html" in kbase for a full list.
    one option is to turn html passthrough on the server in question if this is a huge deal for you...if you want instructions on how to turn html passthrough on, they are located in the webelements user guide at
    http://diamond.businessobjects.com/node/255
    after doing so, you'd drop the database field into a formula and any html in the database field would be interpreted.

  • Newbie--AppleScript for InDesign CS5 help needed

    How can I select a page number in a table (a text string as a Source) and have an AppleScript read that text string and convert it to an integer value?
    I have to put over 1,200 hyperlinks into a document that already has page numbers in tables. Each page number (Source) will be assigned a hyperlink to go to that page (Destination).
    The page numbers in tables are in the preface to my document, which is 44 pages in length.
    The actual pages in the main body of my document are numbered 1-432. Thus, the 45th page in the document is Page 1 to the person reading it, and the 476th page is Page 432.
    So if a table in my preface has a page number of 32, for instance, the actual page number I want as a Destination is 32 + 44, or page 76.
    If I manually double-click to select the text of a number "x" in a table as a Source, I want to write a script that when invoked will
    • read the text string I have selected
    • convert it to an integer value equal to the number in the text string
    • add 44 to that value
    • create a hyperlink that goes to the destination page number that corresponds to that value
    Thanks.

    Hi WheatWilliams,
    Something like this, then:
    tell application "Adobe InDesign CS5"
    set myTextObjects to {text, character, word, text style range, line, paragraph, text column, cell, table, row, column}
    if (count documents) is greater than 0 then
    set mySelection to selection
    if (count mySelection) is equal to 1 then
    tell document 1
    --Is the selection a text selection?
    if class of item 1 of mySelection is in myTextObjects then
    set myText to item 1 of mySelection
    try
    set myErrorString to "Selection already contains a hyperlink text source."
    --Create the hyperlink text source.
    set myHyperlinkTextSource to make hyperlink text source with properties {source text:myText}
    set myPageNumber to item 1 of mySelection as integer
    set myPageNumber to myPageNumber + 44
    set myErrorString to "Could not get page number."
    set myPage to page myPageNumber
    set myErrorString to "Could not create hyperlink page destination."
    --Create they hyperlink page destination.
    set myHyperlinkPageDestination to make hyperlink page destination with properties {destination page:myPage}
    set view percentage of myHyperlinkPageDestination to 100
    --Now use the source and the destination to create the hyperlink.
    set myErrorString to "Could not create hyperlink."
    set myHyperlink to make hyperlink with properties {source:myHyperlinkTextSource, destination:myHyperlinkPageDestination}
    set myErrorString to "Cound not format hyperlink."
    --Apply formatting to the hyperlink (could be done in the properties record, above).
    set visible of myHyperlink to true
    set border color of myHyperlink to blue
    set border style of myHyperlink to solid
    on error
    display dialog myErrorString
    end try
    end if
    end tell
    end if
    end if
    end tell
    Thanks,
    Ole

  • Help needed for using BASIC authentication through JDBCRealm

    Help needed.
    Hello,
    I am doing a degree project, so far it works fine in my local machine, I need to try it on my virtual hosting (as it is a live server).
    My project requires JDBCRealm, that is BASIC authentication loading access data from mysql database. Normally this setup can be done in Server.xml file, because my Tomcat hosting is a virtual one, I only have permission to access the web.xml file.
    My question is: is it possible to get it done in an alternative way? In web.xml? Some properties file maybe?
    Thank you very much.

    You can set this up for your context using META-INF/context.xml instead of working with server.xml.
    Make a directory called META-INF under your webapp ( it'll be at the same level as WEB-INF ). Under this, add a context.xml with all your context specific configuration including the realm. A sample is below
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/myApp" reloadable="true">
        <Realm
            className="org.apache.catalina.realm.JDBCRealm"            
            driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"         
            connectionURL="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=myDB;SelectMethod=Cursor;"
            connectionName="username" connectionPassword="password"
            digest="MD5" userTable="users" userNameCol="userid" userCredCol="userpassword"
            userRoleTable="user_roles" roleNameCol="rolename"
        />
    </Context>Hope this helps.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

Maybe you are looking for

  • Generate file names randomly

    are there anyways to generate file names randomly? if there are, are there any reference codes i could refer to? thanks. heard that using random characters from ascii code (generating random numbers and translating them into chars) could do the job b

  • After creation PO, pr changes should not be possible.

    Hi friends, our requirement is.......if PO is created by some PR....then after creation of PO PR changes should not be possible. How we can restrict this? Any message? Rgds, Navin

  • My RAM sometimes fills up for no apparent reason

    From time to time, my system's memory completely fills up, the load shoots up to around 20 and my disk starts trashing. This all lasts for about 3 minutes. After that, XMMS is killed and everything is back to normal. I've had this happen to me a few

  • Need GREP To Identify Multiple Patterns

    Hi I am attempting to format text by identifying it with GREP patterns, then applying styles via InDesign's paragraph and character styles. I was able to get half of what I wanted using Nested Styles, but that solution doesn't seem to fit most of the

  • Default Calendar App Settings

    Is there a way I can set my calendar app to choose my gmail account automatically (as a default setting) when I enter a new calendar item, so I don't have to choose the gmail calendar from the drop down menu every time I make a new event/item on the