Issue with sys_refcursor  in oracle  10.2.0.4.0

hi,
java is front end application and they want result set to be returned from oracle plsql, for simplicity i am writing code something like below.
create or replace function fun () retrun sys_refcursor is
tablename_cur sys_Refcursor;
begin
open tablename_cur for select statement;
return tablename_cur ;
end;
its all looks good.. but my client IT person questioned me about not closing cursor..
i feel it is good way of doing, not closing this type of cursor variable is fine i.e. tablename_cur in this case, does it cause any issues otherwise.. since i am about write not less 300+ such functions and would like to know on this if this is right practice or would it cuase any increase of opened cursor and never closed,.... therafter any performance issues..
or any other good practive to perform the same task. .. please suggest..
thanks in advance...

knowledgespring wrote:
I assume once sys_Refcursor returned all the rows it get closed automatically... i.e. fetched all the rows from it closes the sys_refcursor.. otherwise provide info.
according to you, does it mean if they close result set they use in java would result close of sys_refcursor!!.. not before.. may be somthing like
ResultSet rs = call oracle function which uses sys_refcursor
rs.close --> does it close sys_refcursor .. (would it open till then??!!!)..
java developers says we call functions written in oracle... and resultset to be returned.. (They are different team)..I don't know java, but it's correct, the consumer of the cursor is responsible for closing it.
e.g.
SQL> ed
Wrote file afiedt.buf
  1  create or replace function test_rc return sys_refcursor is
  2    v_rc sys_refcursor;
  3  begin
  4    open v_rc for 'select * from emp';
  5    return v_rc;
  6* end;
SQL> /
Function created.
SQL> var x refcursor;
SQL> exec :x := test_rc();
PL/SQL procedure successfully completed.
SQL> print x;
     EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM     DEPTNO
      7369 SMITH      CLERK           7902 17/12/1980        800                    20
      7499 ALLEN      SALESMAN        7698 20/02/1981       1600        300         30
      7521 WARD       SALESMAN        7698 22/02/1981       1250        500         30
      7566 JONES      MANAGER         7839 02/04/1981       2975                    20
      7654 MARTIN     SALESMAN        7698 28/09/1981       1250       1400         30
      7698 BLAKE      MANAGER         7839 01/05/1981       2850                    30
      7782 CLARK      MANAGER         7839 09/06/1981       2450                    10
      7788 SCOTT      ANALYST         7566 19/04/1987       3000                    20
      7839 KING       PRESIDENT            17/11/1981       5000                    10
      7844 TURNER     SALESMAN        7698 08/09/1981       1500          0         30
      7876 ADAMS      CLERK           7788 23/05/1987       1100                    20
      7900 JAMES      CLERK           7698 03/12/1981        950                    30
      7902 FORD       ANALYST         7566 03/12/1981       3000                    20
      7934 MILLER     CLERK           7782 23/01/1982       1300                    10
14 rows selected.Here, the "print" command of SQL*Plus uses the returned ref cursor to fetch the data back from the database, and when it's done it (behind the scenes) closes the cursor.
Oracle can't keep track (or even possibly know) of whether a client consumer of a ref cursor has finished fetching the records. Just because all the records may have been fetched, the cursor itself remains open until closed as it contains information about the state of the cursor e.g. whether there is more data to fetch or not.
{thread:id=886365}

Similar Messages

  • Issue with .profile for oracle 9i and 10g

    Here I have six oracle 9i databases on one box. I am going to upgrade five of them to oracle 10g and want to keep one database RCAT in oracle 9i for one or two week.
    So, when I do upgrade I have to setup oracle home for 10g and also profile for oracle user for 10g (correct me if I m wrong). But now I want one database RCAT on oracle 9i. How can I take care of this.
    I mean how I will handle profile and all other thing for oracle 9i and 10g at the same time.
    Thanks,
    Vishal

    Install 10g under the same OS user as 9i, of course on a different Oracle Home. Then you configure your .profile consequently. Just as an example, this is my .bash_profile with 10g and 11g with the same oracle OS user :
    [oracle@linux5 ~]$ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    export EDITOR=vi
    export ORACLE_BASE=/home/oracle/base
    umask 022
    o10()
    {       export ORACLE_SID=db102
            export ORACLE_HOME=$ORACLE_BASE/OraHome10
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
            export PS1='[\u@\h_10 \W]\$ '
    o11()
    {       export ORACLE_SID=db11
            export ORACLE_HOME=$ORACLE_BASE/OraHome11
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export PS1='[\u@\h_11 \W]\$ '
    s()
    {       sqlplus / as sysdba
    asm()
    {       export ORACLE_SID=+ASM
    db10()
    {       export ORACLE_SID=db102
    db11()
    {       export ORACLE_SID=db11
    asm10()
    {       export ORACLE_SID=asm10
    [oracle@linux5 ~]$

  • Issue with dateformat in oracle

    Hi,
    I am using the java simpledateformat in my code like this
    SimpleDateFormat Sformat = new SimpleDateFormat("yyyy-MM-dd");
    String format_datenow = Sformat.format(new Date());
    when I run the query on my database with format_datenow I get an error of invalid month, I tried changing the format to 'yyyy-MMM-dd' after seeing the column in the table displaying the 3 letter month like that, but still get the error.
    I also tried to keep the original format and change the format in the oracle database: alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'
    but its still failing .. where is the issue currently..?

    Try using TO_CHAR function for the date you are fetching. In your case, use TO_CHAR(>DATE_COLUMN>,'YYYY-MM-DD'). Error is coming from the database where you are not correctly using TO_CHAR function. Once date is fetched from database, now you can format it in java in format whatever you want.
    Salman

  • Issue with the report oracle.apps.xdo.XDOException:Error creating lock file

    I am getting an error while submitting the XML publisher report in Betsy N0 instance.
    Issue
    Log :- Beginning post-processing of request 145458120 on node BETSYN0DB1 at 22-DEC-2011 05:28:26.
    Post-processing of request 145458120 failed at 22-DEC-2011 05:28:28 with the error message: One or more post-processing actions failed. Consult the OPP service log for details
    Output :- Blank Report
    XML file :- XML file generated without any error
    Output process:-
    [12/23/11 4:28:10 AM] [1213640:RT145480622] Completed post-processing actions for request 145480622.
    [12/23/11 5:16:01 AM] [OPPServiceThread1] Post-processing request 145481427.
    [12/23/11 5:49:30 AM] [OPPServiceThread1] Post-processing request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Executing post-processing actions for request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Starting XML Publisher post-processing action.
    [12/23/11 5:49:30 AM] [1213640:RT145481923]
    Template code: XXWIP_WO_VLVS
    Template app: XXWIP
    Language: en
    Territory: US
    Output type: PDF
    oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [UNEXPECTED] [1213640:RT145481923] oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [1213640:RT145481923] Completed post-processing actions for request 145481923.

    The issue is fixed.
    Our XML Publisher TMP is not defined, so it uses the APPLTMP used by concurrent manager. There is a folder xdofonts/<SID> in $APPLTMP. It contains the fonts used by XML publisher and on the of font file (.ttf) was 0 byte. We copied the ttf file from QA. And it started working.
    Best practice is to define diffent TMP for concurrent managers and XML Publisher.
    Cherrish Vaidiyan

  • Sun Solaris 10,Upgrade 8 or higher,having issues with VxFS,for Oracle 11gr2

    A while ago, we tried doing a prototype upgrade of our main Oracle 10g db to Oracle 11gr2.
    The OS on which our Oracle 10g is running is Sun Solaris 10, upgrade 4.
    According to Oracle 11gr2 documentation, we need Sun Solaris 10, upgrade 6 or higher for Oracle 11g2.
    The filesystem we are using is VxFS, Veritas File System.
    According to our system administrator, we had issues , making Sun Solar 10, upgrade 8 , work with the VxFS filesystem.
    I was wondering if anybody is running Oracle 11g2 on Sun Solaris 10 upgrade 6 or higher with VxFS file system.
    At present, our Oracle db upgrade project is on a hold, because of the above issue. So your help on this , can really help us in figuring out if there is an issue between VxFS filesystem and Sun Solaris 10 OS.
    Thanks
    Ashish

    Hi Ashish,
    We are not running Veritas Cluster file system.
    We tried moving our Oracle 10g r2 db on ZFS ,before doing the upgrade and performance on ZFS was worst.
    ZFS has certain memory parameter setting. If you did not configure that then ZFS will eat your complete system memory.
    My system administrator, has gotten a copy of Solaris 10 upgrade 9 and will try that with VxFS.
    I was curious to find out if folks are running Oracle 11g on Sun Solaris 10 with VxFS file system and if they had experienced any issue.If you can Install Vxfs on Oracle Soalris 10 U9, then according to me there sholudn't be any limitations for an oracle database.
    Recently i installed Oracle database 11.2.0.2 on one of my test server. I have created two databases - one on ZFS and another on ASM.
    Refer:
    http://appsdbaworkshop.blogspot.com/2010/10/installation-of-11202-on-oracle-solaris.html
    We dont have any performance issues. We are testing it for the performance benchmarks on both of the filesystem.
    If you can Install Vxfs on Oracle Soalris 10 U9, then according to me there sholudn't be any limitations for an oracle database.
    Regards,
    X A H E E R

  • Issues with BOM in Oracle

    Hi DBA gurus,
    We have Oracle 10g/11g and Operating System : Windows
    While inserting XML data in CLOB datatype we are getting *¿<?xml version="1.0" encoding="utf-8"?>* in the data. I suspect this is BOM (Byte Order Mark) related issue.
    The settings of NLS in our database are :
    NLS_CHARACTERSET     WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    Is this database related issue ? I have read somewhere that this issue is related to UNICODE. Please advise to get rid of this special character.
    Thanks.

    Hi!
    Try the following
    find / -name rman
    This command looks for a file called rman. These file should normaly be located in $ORACLE_HOME/bin. If it is not then it may be deleted or something. Try to reinstall it (copy all the files of the bin directory from another oracle installation).
    Hope this helps!

  • Issues with rman in oracle 10g

    Hi,
    [oracle@proddb12]$ rman
    it does not shows anything.. what can be done to solve this. is anything else should be provided to oracle user? It is urgent, thanks in advance, please help me out.
    Oracle: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
    and how do i know rman version in my db?
    /MR
    Edited by: user612078 on Sep 17, 2008 2:28 AM

    Hi!
    Try the following
    find / -name rman
    This command looks for a file called rman. These file should normaly be located in $ORACLE_HOME/bin. If it is not then it may be deleted or something. Try to reinstall it (copy all the files of the bin directory from another oracle installation).
    Hope this helps!

  • Issues with installing unixODBC  (Oracle linux 6)

    "4.5 Compiling the Oracle ODBC Driver Demos
    If you plan to compile and run the Oracle ODBC Driver demos, then follow these steps:
    1.
    If you do not have unixODBC DriverManager installed, then download it from the following Web site:
    http://www.unixodbc.org/
    2.
    Set the ODBCDM_HOME environment variable to point to the directory where you installed DriverManager.
    3.
    Run the following make file to compile the Oracle ODBC Driver demos:
    make -f demo_xe.mk buildodbcdemo ODBCDM_HOME=DriverManager_location
    When trying to execute this :
    make -f demo_xe.mk buildodbcdemo ODBCDM_HOME=DriverManager_location
    [root@localhost ~]# cd /u01/app/oracle/product/11.2.0/xe/rdbms/demo
    [root@localhost demo]# make -f demo_xe.mk buildodbcdemo ODBCDM_HOME=/opt/unixODBC-2.3.1
    make: *** No rule to make target `odbcdemo.o', needed by `buildodbcdemo'. Stop.
    Obviously the the file is missing what now ? Do I need to do this part of the cookbook anyway?
    Ive installed it through the repo tho:
    P.S. OK, dl-ed from the repo
    -rw-r--r--. 1 root root 387132 Feb 19 21:59 unixODBC-2.2.14-11.el6.x86_64.rpm
    -rw-r--r--. 1 root root 53844 Feb 19 21:59 unixODBC-devel-2.2.14-11.el6.x86_64.rpm
    -rw-r--r--. 1 root root 225680 Feb 19 21:59 unixODBC-kde-2.2.14-11.el6.x86_64.rpm

    according to my post above:
    "make -f demo_xe.mk buildodbcdemo"
    [root@localhost demo]# make -f demo_xe.mk buildodbcdemo ODBCDM_HOME=/opt/unixODBC-2.3.1/
    make: *** No rule to make target `odbcdemo.o', needed by `buildodbcdemo'. Stop.
    [root@localhost demo]# pwd
    /u01/app/oracle/product/11.2.0/xe/rdbms/demo
    [root@localhost demo]# ls
    cdemo81.c demo_xe.mk occidemo.sql occidml.cpp occiobj.cpp occiobj.typ
    [root@localhost demo]#
    I think they are put here, right ?

  • Issues with UpdateAction and later using jbo:RowsetIterate

    Hello -
    I am putting together a BC4J/Struts web app and am having some issues
    with using the oracle.jbo.html.struts11.actions.UpdateAction class.
    I am trying to figure out the correct way to reset a row after validation exceptions
    so that <jbo:RowsetIterate> doesn't blow up when it hits the row if the user doesn't fix the
    data they entered in to pass validation.
    Call the objects being update 'Accounts'.
    Pass 1:
    User changes account data in an edit page and submits.
    Struts hands off control to an action that is a subclass of UpdateAction which invokes super.execute(...).
    UpdateAction does its thing - catches the validation errors and sticks them in ActionErrors.
    Control gets passed back to the edit page with the errors displayed.
    This is expected. HOWEVER, if the user goes to a page that lists accounts (via <jbo:RowsetIterate>) it blows
    up on the edited account because it tries to validate the row. So...
    Pass 2:
    After super.execute(...) check to see if any errors happened (by whether or not the forward returned indicated success).
    If there were errors, refresh the row via:
    BC4JContext context = BC4JContext.getContext(request);
    Row row = context.getRow();
    row.refresh(Row.REFRESH_WITH_DB_FORGET_CHANGES | Row.REFRESH_REMOVE_NEW_ROWS);
    This works (not blowing up if user goes back to listing page) for emptying a mandatory field (JBO-27014)
    but not for inserting too much data into a field (JBO-27010). I've tried this with REFRESH_UNDO_CHANGES as
    well with the same results. So...
    Pass 3:
    Instead of refreshing the row in my update action, rollback the transaction via:
    BC4JContext.getContext(request).getApplicationModule().getTransaction().rollback();
    However this seems unnessary - I don't want to rollback the whole transaction just to undo changes to one row. Is there some better way to fix the issue?
    Any suggestions?
    Thanks,
    -- Scott

    I don't know why either, but I'd love to fix it. Please install one of the debug packages (this looks like x86_64?):
    http://dev.archlinux.org/~dreisner/kmod … pkg.tar.xz
    http://dev.archlinux.org/~dreisner/kmod … pkg.tar.xz
    Run 'gdb --args depmod 3.2.2-1-ARCH'. When it crashes, type 'bt full'. Post all that output here (either in code tags or on a paste service)

  • Connection issue with WL 8.1 SP6

    we have upgraded our Weblogic8.1 instance with SP5 to SP6 and we are facing some issues with connections to oracle DB
    ==> DAO [getVector] : java.lang.Exception: DAO : weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No res
    ources currently available in pool oraclePool to allocate to applications, please increase the size of the pool and retry.. [ Unable to get Connection ]
    This error occurs only in SP6 the initial connections is setup to 30 and max to 150 looks, in logs I can see that weblogic is trying to open than close connections and is able to do that with a success but after some time we are receiving message that there are no possibility to open new one it looks like connections are not closiing, Can someone help me with this ??

    we have upgraded our Weblogic8.1 instance with SP5 to SP6 and we are facing some issues with connections to oracle DB
    ==> DAO [getVector] : java.lang.Exception: DAO : weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No res
    ources currently available in pool oraclePool to allocate to applications, please increase the size of the pool and retry.. [ Unable to get Connection ]
    This error occurs only in SP6 the initial connections is setup to 30 and max to 150 looks, in logs I can see that weblogic is trying to open than close connections and is able to do that with a success but after some time we are receiving message that there are no possibility to open new one it looks like connections are not closiing, Can someone help me with this ??

  • Issues with using utl_http with Oracle Wallet

    Hello Everyone,
    We are experimenting with Oracle wallet and utl_http and are attempting to do an https transfer and we are facing some problems. I will appreciate your help greatly if you can advise on what could be wrong. We are on db version 10.2.0.1 and Unix HP-UX. The intention ping an https url and get a simple 200 response. Future development would include get/post XML documents from that url and other interesting stuff. I understand that utl_http with Oracle wallet can be used for this purpose.
    The wallet has been created and the ewallet.p12 exists. We downloaded the SSL certificate from the url's website and uploaded into the wallet.
    Everything works if I put in a url with plain http. However, it does not work with an HTTP*S* url.
    With HTTPS when I run the below code I get the following error. Again, greatly appreciate your time and help because this is the first time we are using Oracle wallet manager and do not know where to go from here.
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-29268: HTTP client error
    declare
    url varchar2(225);
    req utl_http.req;
    resp utl_http.resp;
    my_proxy BOOLEAN;
    name varchar2(2000);
    value varchar2(2000);
    V_proxy VARCHAR2(2000);
    v_n_proxy varchar2(2000);
    v_msg varchar2(100);
    v_len PLS_INTEGER := 1000;
    BEGIN
    -- Turn off checking of status code.
    utl_http.set_response_error_check(FALSE);
    --Set proxy server
    utl_http.set_proxy('my-proxy');
    utl_http.set_wallet('file:<full Unix path to the wallet on DB server>','wallet998');
    req := utl_http.begin_request('https://service.ariba.com/service/transaction/cxml.asp');
    --Set proxy authentication
    utl_http.set_authentication(req, 'myproxyid', 'myproxypswd','Basic',TRUE); -- Use HTTP Basic
    resp := utl_http.get_response(req);
    FOR i IN 1..utl_http.get_header_count(resp) LOOP
    utl_http.get_header(resp, i, name, value);
    dbms_output.put_line(name || ': ' || value);
    END LOOP;
    utl_http.end_response(resp);
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    END;

    I tried this using plsql ...
    declare
    SOAP_URL constant varchar2(1000) := 'http://125.21.166.27/cordys/com.eibus.web.soap.Gateway.wcp?organization=o=WIPRO,cn=cordys,o=itgi.co.in';
    request      UTL_HTTP.req;
    begin
    dbms_output.put_line('Begin Request');
    request := UTL_HTTP.begin_request(SOAP_URL,'POST',UTL_HTTP.HTTP_VERSION_1_1);
    dbms_output.put_line('After Request');
    exception
    when others then
       dbms_output.put_line('Error : '||sqlerrm);
    end;The output was ...
    Begin Request
    Error : ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-12535: TNS:operation timed outIt seems to be an issue with the webservice, plz check if its available & allowing requests.

  • Performance issues with Oracle EE 9.2.0.4 and RedHat 2.1

    Hello,
    I am having some serious performance issues with Oracle Enterprise Edition 9.2.0.4 and RedHat Linux 2.1. The processor goes berserk at 100% for long (some 5 min.) periods of time, and all the ram memory gets used.
    Some environment characteristics:
    Machine: Intel Pentium IV 2.0GHz with 1GB of RAM.
    OS: RedHat Linux 2.1 Enterprise.
    Oracle: Oracle Enterprise Edition 9.2.0.4
    Application: We have a small web-application with 10 users (for now) and very basic queries (all in stored procedures). Also we use the latest version of ODP.NET with default connection settings (some low pooling, etc).
    Does anyone know what could be going on?
    Is anybody else having this similar behavior?
    We change from SQL-Server so we are not the world expert on the matter. But we want a reliable system nonetheless.
    Please help us out, gives some tips, tricks, or guides…
    Thanks to all,
    Frank

    Thank you very much and sorry I couldn’t write sooner. It seems that the administrator doesn’t see the kswap going on so much, so I don’t really know what is going on.
    We are looking at some queries and some indexing but this is nuts, if I had some poor queries, which we don’t really, the server would show pick right?
    But he goes crazy and has two oracle processes taking all the resources. There seems to be little swapping going on.
    Son now what? They are all ready talking about MS-SQL please help me out here, this is crazy!!!
    We have, may be the most powerful combinations here. What is oracle doing?
    We even kill the Working Process of the IIS and have no one do anything with the database and still dose two processes going on.
    Can some one help me?
    Thanks,
    Frank

  • Performance issue with Oracle data source

    Hi all,
    I've a rather strange problem that I'm stuck on need some assistance on.
    I have a rules file which drags data in via an SQL data source thats an Oracle server. If I cut/paste the 3 sections of "select" "from" and "where" into SQL-Developer and run the query, it takes less than 1 second to complete. When I run the "load data" with this rule file or even use the "Retrieve" with the rules file edit, it takes up to an hour to complete/retrieve the data.
    The table in question being used has millions of rows and I'm using one of the indexed fields to retrieve the data. It's as if the Essbase/Rule file is ognoring the index, or I have a config issue with the ODBC settings on the server that is causing the problem.
    ODBC.INI file entry for the Oracle server as follows (changed any sensitive info to xxx or 999).
    [XXX]
    Driver=/opt/data01/hyperion/common/ODBC-64/Merant/5.2/lib/ARora22.so
    Description=DataDirect 5.2 Oracle Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=999.999.999.999
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=xxx
    Password=xxx
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServiceType=0
    ServiceName=xxx
    SID=
    TimeEscapeMapping=0
    UseCurrentSchema=1
    Can anyone please advise on this lack of performance.
    Thanks in advance
    Bagpuss

    One other thing that I've seen is that if your Oracle data source and Essbase server are in different geographic locations, you can get some delay when it retrieves data over the WAN. I guess there is some handshaking going on when passing the data from Oracle to Essbase (either by record or groups of records) that is slowed WAY down over the WAN.
    Our solution to this was remove teh query out of the load rule, run it via SQL+ on a command line at the geographic location where the Oracle database is, then ftp the resulting file to where the Essbase server is.
    With upwards of 6 million records being retrieved, it took around 4 hours in the load rule, but running the query via command line took 10 minutes, then the ftp took less than 5.

  • Oracle VM Server 3.1.1 issues with NFS share

    Hi guys
    I am kind of stuck with the same issue for more than a week now. I have two virtual machines on Virtual box 4.1.8 (VM Server and VM Manager 3.1.1) and NFS following is disk/mount information on VM Server
    [root@oravms ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda3             3.0G  636M  2.2G  23% /
    /dev/sda1              99M   28M   67M  29% /boot
    tmpfs                 242M   16K  242M   1% /dev/shm
    /dev/sdb1             296G   17G  264G   6% /storage1
    /dev/sdc1             197G  320M  187G   1% /storage2
    none                  242M   40K  242M   1% /var/lib/xenstored
    192.168.0.20:/storage2
                          197G  320M  187G   1% /nfsmnt/cc745331-3df1-48d7-823c-b28faf2d87b3
    /dev/mapper/ovspoolfs
                           10G  263M  9.8G   3% /poolfsmnt/0004fb00000500005e689e9b4de9382f
    192.168.0.20:/storage1
                          296G   17G  264G   6% /OVS/Repositories/0004fb0000030000e19fce4b38346de1From last whole week I am trying to import a single VM template as a test object, Oracle E-Business suite 12.1.3 APPS tier and everytime once after a certain portion of the template unpacked, the VM server goes for a toast!! it either reboots or the NFS gets into a lock
    Both the virtual machines have 4GB memory, independant NICs dedicated for each virtual machine (as somebody else from forums suggested for it...)
    Please help me!!!
    regards,
    raj

    hi user12273962
    I hope the following few details will assist you to provide me a suggestion to overcome this issue
    My Oracle VM server IP address: 192.168.0.20
    VM Manager IP: 192.168.0.23
    Both machines are tied to different NICs for avoiding excess traffic
    df -h on VM server
    [root@oravms ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda3             3.0G  636M  2.2G  23% /
    /dev/sda1              99M   28M   67M  29% /boot
    tmpfs                 242M   16K  242M   1% /dev/shm
    /dev/sdb1             296G  191M  281G   1% /storage1
    /dev/sdc1             197G  320M  187G   1% /storage2
    none                  242M   40K  242M   1% /var/lib/xenstored
    192.168.0.20:/storage2
                          197G  320M  187G   1% /nfsmnt/cc745331-3df1-48d7-823c-b28faf2d87b3
    /dev/mapper/ovspoolfs
                           10G  263M  9.8G   3% /poolfsmnt/0004fb00000500005e689e9b4de9382f
    192.168.0.20:/storage1
                          296G  191M  281G   1% /OVS/Repositories/0004fb0000030000e19fce4b38346de1/etc/fstab output
    /dev/sdb1                                /storage1   ext3    defaults 1 2
    /dev/sdc1                                /storage2   ext3    defaults 1 2/etc/exports output
    /storage1       192.168.0.20(rw,sync,no_root_squash,nohide)
    /storage2       192.168.0.20(rw,sync,no_root_squash,nohide)Should I export the mount points to another server? Please let me know.
    NFS was the only one file type recognized by the discovery process...I am quite new to virtualization, actually spent last whole week trying and fixing one or other issue with the VM server :D
    If you know how I could avoid NFS in the entire scenario (as this is just for learning purpose) I would be grateful :)
    regards,
    raj

  • Facing Issue With Oracle SOA Suite 11.1.1.3.0

    Hi All,
    I am facing some issues with ORACLE SOA SUITE 11.1.1.3.0.
    Hope you people can help us out.
    Please find the issue details below along with all the relevant information’s
    I have following SOA suite installation at my server:
    Oracle 10g Express Edition Universal 10.2.0.1
    RCU 11.1.1.3.3
    Web Logic Server 10.3.3.0
    SOA suite 11.1.1.3.0
    JDeveloper 11.1.1.3.0
    The first thing what I have done is created a web service and deployed it to server without any issue.
    After that I created proxy client for that service and accessed it successfully from the client end.
    Till here no issue occurs.
    After that I applied few policies on top of web service and deployed it to server.
    The policy I had chosen was “oracle/wss_username_token_service_policy” [coming under OWSM policies list]
    While deploying there was no issue, all went well.
    2nd step I had created client using “oracle/wss_username_token_client_policy” policy which is counter part of above policy and tried to access the web service but failed.
    I have followed this blog:
    [http://biemond.blogspot.com/2010/08/things-you-need-to-do-for-owsm-11g.html ]
    Please have a look on service and client code:
    Service Code:
    package Demo_ScoreCard;
    import javax.jws.WebService;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicy;
    @WebService
    @SecurityPolicy(uri = "oracle/wss_username_token_service_policy")
    public class ScoreCardWithPolicy {
    public double getPercentageWithPolicy(double markEng,double markMath,double markHindi,double markScience,double markSsc)
    double result;
    result= ((markEng+markHindi+markMath+markScience+markSsc)/500)*100;
    return result;
    Client Code:
    package com.tec.proxy.client;
    import java.util.Map;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.WebServiceRef;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature;
    public class ScoreCardWithPolicyPortClient {
    @WebServiceRef
    private static ScoreCardWithPolicyService scoreCardWithPolicyService;
    public static void main(String[] args) {
    scoreCardWithPolicyService = new ScoreCardWithPolicyService();
    SecurityPolicyFeature[] securityFeatures =new SecurityPolicyFeature[] { new SecurityPolicyFeature("oracle/wss_http_token_client_policy") };
    ScoreCardWithPolicy scoreCardWithPolicy =scoreCardWithPolicyService.getScoreCardWithPolicyPort(securityFeatures);
    Map<String, Object> reqContext =((BindingProvider)scoreCardWithPolicy).getRequestContext();
    reqContext.put(BindingProvider.USERNAME_PROPERTY, "testclient");
    reqContext.put(BindingProvider.PASSWORD_PROPERTY, "test12345"); // I have added this to the myrealm from console under security realms
    double arg1 = 77.2;
    double arg2 = 79.2;
    double arg3 = 77.2;
    double arg4 = 76.2;
    double arg5 = 67.2;
    double clientResult =scoreCardWithPolicy.getPercentageWithPolicy(arg1, arg2, arg3, arg4,arg5);
    System.out.println("clientResult with policy =====> " + clientResult);
    Error Log:
    SEVERE: WSM-07617 Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    SEVERE: WSMAgentHook: An Exception is thrown: WSM-07617 Policy Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    Exception in thread "main" javax.xml.rpc.JAXRPCException: oracle.wsm.common.sdk.WSMException: WSM-07617 Policy Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    at oracle.wsm.agent.handler.wls.WSMAgentHook.handleException(WSMAgentHook.java:395)
    at oracle.wsm.agent.handler.wls.WSMAgentHook.init(WSMAgentHook.java:206)
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory.newHandler(TubeFactory.java:105)
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory.createClient(TubeFactory.java:68)
    at weblogic.wsee.jaxws.WLSTubelineAssemblerFactory$TubelineAssemblerImpl.createClient(WLSTubelineAssemblerFactory.java:148)
    at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:467)
    at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:689)
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:667)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:362)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.internalGetPort(WLSProvider.java:855)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate$PortClientInstanceFactory.createClientInstance(WLSProvider.java:967)
    at weblogic.wsee.jaxws.spi.ClientInstancePool.takeSimpleClientInstance(ClientInstancePool.java:621)
    at weblogic.wsee.jaxws.spi.ClientInstancePool.take(ClientInstancePool.java:486)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:782)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
    at javax.xml.ws.Service.getPort(Service.java:133)
    at com.tec.proxy.client.ScoreCardWithPolicyService.getScoreCardWithPolicyPort(ScoreCardWithPolicyService.java:86)
    at com.tec.proxy.client.ScoreCardWithPolicyPortClient.main(ScoreCardWithPolicyPortClient.java:23)
    Process exited with exit code 1.
    Not getting any help from any blog. Just wondering why this error is coming. I would be glad if you can help us in this regard.
    Apart from above issue I have few queries like:
    1.What is difference between OWSM policies and WLS policies?
    2.Are these the only policies we can apply on top of services?
    3.If some one wants to configure his own custom policies than what need to be done
    4.Could anyone please provide some useful links to implement ENCYPTION and SIGNATURE on top of web services?
    5.And If I am not wrong, I guess Oracle Service BUS OSB 11.1.1.3 has been removed from the main download link and version 11.1.1.4 has been provided. Is it
    compatible with SOA suite 11.1.1.3.0? If not where can I get OSB 11.1.1.3?
    Looking forward to hear from you people.
    Thanks
    Arvind
    Edited by: user8490871 on Apr 15, 2011 12:53 AM
    Edited by: user8490871 on Apr 15, 2011 12:53 AM

    Hi,
    I don't know why u get an error. Here are answers for additional questions:
    1. OWSM policies are for web services. WLS policies are based on Java EE security. They are used to protect resources e.g. URL, EJB
    2. I don't know about other policies
    3. See http://download.oracle.com/docs/cd/E14571_01/web.1111/e13713/owsm_appendix.htm#CHDCHFBH
    4. See http://download.oracle.com/docs/cd/E14571_01/security.1111/e10037/toc.htm
    5. I can see OSB 11.1.1.3 download link here
    http://www.oracle.com/technetwork/middleware/downloads/fmw-11-download-092893.html
    Regards,
    Milan

Maybe you are looking for

  • My memory card is not showing up on the home screen when i plug it in but it shows the computer found it

    my memory card is not showing up on the home screen when i plug it in but it shows the computer found it in system preferences. when i plugged these into a imac back in school it showed up how come its not showing up on my less then 24hr old mac. sor

  • DB writer terminating instance?

    I am getting the following error in the alert log and the DB writer is terminating the instance. Thu Mar 20 01:19:04 2008 Errors in file c:\oracle\admin\dev02\bdump\dev02_dbw0_58264.trc: ORA-01242: data file suffered media failure: database in NOARCH

  • No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Messag

    Hi, I am developing a soap web service using apache axis tool. I am using tomcat6 and jdk6. I need to return SOAPMessage as return object from remote interface methods. Now I have success fully deploy web service in tomcat. Also I have create client

  • 72 dpi versus 300 dpi???

    I've always been a bit confused about photos and dpi. I'm working with a Canon G10 (RAW), am not quite sure what the dpi is (my Photoshop recently corrupted itself and I have to yet to solve the problem, or find the original disks). But I'm pretty su

  • Explanation of all the Stored Procedure in SBO

    Dear Experts, Their are numerous stored procedures of SAP B1 I once got a SAP documentation explaining "SBO_SP_TransactionNotification stored procedure". Now can I get the source where to get SAP documentation for all the stored procedures. I will be