XML to table. Trouble with example from documentation

I read documentation "Oracle9i Application Developer's Guide - XML"
(Release 1 (9.0.1),Part Number A88894-01)
5. Database Support for XML
TABLE Functions
Table Functions Example 1: Exploding the PO to Store in a Relational Table
I try run this example in SQL*Plus WorkSheet
1. I type
create type poRow_type as object
poname varchar2(20),
postreet varchar2(20),
pocity varchar2(20),
postate char(2),
pozip char(10)
--ok
2. I type
create type poRow_list as TABLE of poRow_type;
--ok
3. I type
create function poExplode_func (arg IN sys.XMLType) return poRow_list
pipelined is
out_rec poRow_type;
poxml sys.XMLType;
i binary_integer := 1;
argnew sys.XMLType := arg;
begin
loop
-- extract the i'th purchase order!
poxml := argnew.extract('//PO['||i||']');
exit when poxml is null;
-- extract the required attributes..!!!
out_rec.poname := poxml.extract('/PONAME/text()').getStringVal();
out_rec.postreet := poxml.extract('/POADDR/STREET/text()').getStringVal();
out_rec.pocity := poxml.extract('/POADDR/CITY/text()').getStringVal();
out_rec.postate := poxml.extract('/POADDR/STATE/text()').getStringVal();
out_rec.pozip := poxml.extract('/POADDR/ZIP/text()').getStringVal();
PIPE ROW(out_rec);
i := i + 1;
end loop;
return;
end;
-- ok
4. And I type
select *
from TABLE( CAST(
poExplode_func(
sys.XMLType.createXML(
'<?xml version="1.0"?>
<POLIST>
<PO>
<PONAME>Po_1</PONAME>
<POADDR>
<STREET>100 Main Street</STREET>
<CITY>Sunnyvale</CITY>
<STATE>CA</STATE>
<ZIP>94086</ZIP>
</POADDR>
</PO>
<PO>
<PONAME>Po_2</PONAME>
<POADDR>
<STREET>200 First Street</STREET>
<CITY>Oaksdale</CITY>
<STATE>CA</STATE>
<ZIP>95043</ZIP>
</POADDR>
</PO>
</POLIST>')
) AS poRow_list));
-- ERROR
poExplode_func(
error in line 3:
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at "ITZ.POEXPLODE_FUNC", line 16
ORA-06512: at line 1
Why error ? What can I do ?
Thanks

I read documentation "Oracle9i Application Developer's Guide - XML"
(Release 1 (9.0.1),Part Number A88894-01)
5. Database Support for XML
TABLE Functions
Table Functions Example 1: Exploding the PO to Store in a Relational Table
I try run this example in SQL*Plus WorkSheet
1. I type
create type poRow_type as object
poname varchar2(20),
postreet varchar2(20),
pocity varchar2(20),
postate char(2),
pozip char(10)
--ok
2. I type
create type poRow_list as TABLE of poRow_type;
--ok
3. I type
create function poExplode_func (arg IN sys.XMLType) return poRow_list
pipelined is
out_rec poRow_type;
poxml sys.XMLType;
i binary_integer := 1;
argnew sys.XMLType := arg;
begin
loop
-- extract the i'th purchase order!
poxml := argnew.extract('//PO['||i||']');
exit when poxml is null;
-- extract the required attributes..!!!
out_rec.poname := poxml.extract('/PONAME/text()').getStringVal();
out_rec.postreet := poxml.extract('/POADDR/STREET/text()').getStringVal();
out_rec.pocity := poxml.extract('/POADDR/CITY/text()').getStringVal();
out_rec.postate := poxml.extract('/POADDR/STATE/text()').getStringVal();
out_rec.pozip := poxml.extract('/POADDR/ZIP/text()').getStringVal();
PIPE ROW(out_rec);
i := i + 1;
end loop;
return;
end;
-- ok
4. And I type
select *
from TABLE( CAST(
poExplode_func(
sys.XMLType.createXML(
'<?xml version="1.0"?>
<POLIST>
<PO>
<PONAME>Po_1</PONAME>
<POADDR>
<STREET>100 Main Street</STREET>
<CITY>Sunnyvale</CITY>
<STATE>CA</STATE>
<ZIP>94086</ZIP>
</POADDR>
</PO>
<PO>
<PONAME>Po_2</PONAME>
<POADDR>
<STREET>200 First Street</STREET>
<CITY>Oaksdale</CITY>
<STATE>CA</STATE>
<ZIP>95043</ZIP>
</POADDR>
</PO>
</POLIST>')
) AS poRow_list));
-- ERROR
poExplode_func(
error in line 3:
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at "ITZ.POEXPLODE_FUNC", line 16
ORA-06512: at line 1
Why error ? What can I do ?
Thanks

Similar Messages

  • Trouble with examples from the website

    Hi
    I was trying to down load couple of examples from your website - Motor
    control, closed loop control system. But have trouble with it.
    I have Labview version 5.1 not 7.
    It gives an error after I unzip the file.
    Are they not compatible with 5.1??
    Pls help
    Krithika

    When you download an example from the NI homepage please always have a look at the "Software Requirements" section. Here you will find the version of the development environment the example was compiled with.
    Many examples are compiled with LV 6.x or LV 7.x thus it's probable that you can't open them with LV 5.x
    Best regards,
    Jochen Klier
    National Instruments Germany

  • How export one table along with data from one location to other location

    Hi All,
    I'm new in export/import practice.
    Can anyone plz tell the steps along with commands to do the following:
    1. I want to export a table with data from one location(computer) to other(computer) that are in same network.
    2.Also from one user to another user.
    I'm using oracle 10g.
    regards
    Sonia
    Edited by: 983040 on Feb 19, 2013 11:35 PM

    First of all read documentation
    Oracle Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
    Datapump Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
    If you are using Datapump or Traditional Export/import you need to follow following steps
    *1) Take User dump via EXPDP on Computer A .*
    For EXP
    exp username/password owner=Test file=D:\test.dmp log=D:\test.log
    For EXPDP
    expdp username/password schemas=TEST directory=TEST_DIR dumpfile=TEST.dmp logfile=TEST.log*2) Copy that to Computer B*
    *3) Import dumpfile.*
    For IMPDP  Use remap_schema optionhttp://www.acehints.com/2012/05/data-pump-impdp-remapschema-parameter.html
    For IMP use fromuser and touser option
    one user to another user imp

  • I am having trouble with hdmi from MacBook to TV

    Having trouble with the sounds when I connect  hdmi from MacBook to TV

    This is the iPad forum. Do you have a question about iPad? If not, I'll ask that your post be reassigned.
    BTW, you will need to provide more detail than that for someone to help. How are you connecting the two? What have you already done to troubleshoot? What was the result?

  • How export one table along with daya from one location to other location

    Hi All,
    I'm new in export/import practice.
    Can anyone plz tell the steps along with commands to do the following:
    1. I want to export a table with data from one location(computer) to other(computer) that are in same network.
    2.Also from one user to another user.
    I'm using oracle 10g.
    regards
    Sonia

    Wrong forum. This is a database query not an Oracle Secure Backup issue.
    Thanks
    Rich

  • ORDImages trouble with loading from networkpath

    Hi,
    I wanted to insert some pictures from filesystem of another server than the db-server. I've created a directory as system-user and grant this to my db-user with the following script:
    CREATE OR REPLACE DIRECTORY DIR_TEMP_PIC AS \\app_server_01\Temp\pictures';
    GRANT READ ON DIRECTORY DIR_TEMP_PIC TO pic_user;
    The directory is approved for all users in network.
    My insert-statement looks following:
    DECLARE
    CURIMG ORDSYS.ORDIMAGE;
    BEGIN
    INSERT INTO TEST_PIC(ID,IMG,IMG_SIG)
    VALUES (1,ORDSYS.ORDIMAGE(ORDSYS.ORDSOURCE(EMPTY_BLOB(),''file'',DIR_TEMP, 'summer.tif',SYSDATE,0),NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    ORDSYS.ORDIMAGESIGNATURE.INIT());
    SELECT IMG INTO CURIMG FROM TEST_PIC WHERE ID =1 FOR UPDATE;
    CURIMG.SETPROBERTIES;
    UPDATE TEST_PIC SET IMG=CURIMG WHERE ID = 1;
    COMMIT;
    END;
    When I execute this statement, I got this error-message:
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the file specified.
    When I want to open this file with the widows-explorer, the picture is been shown.
    Does the directory not support network-path?
    Who can tell me where a problem is?
    Regards,
    Sebastian

    Changing your Oracle database service to run as Administrator is a significant privilege escalation that affects the entire Oracle system. This may be overkill if what you need is to let a single user get access to some network resource.
    You can try configuring your images on a HTTP server and use the ORDImage capability to import images from HTTP sources. To do this you will need to grant specific network privileges to access the HTTP network source. This can be done in a controlled way.
    See the Multimedia documentation for more information on using HTTP sources. See the UTL_HTTP documentation for an introduction to the security issues of accessing HTTP resources from within a database server process. This doc will point you to the Security Guide for details.
    Example code to grant HTTP network access for the resource www.example.com:80 to user JOE
    -- grant network permission for HTTP source use
    -- Grant connect privilege to www.example..com:80 to PUBLIC
    declare
    stmt varchar2(2000);
    begin
    stmt := 'begin dbms_network_acl_admin.create_acl(:1, :2, :3, TRUE, :5); end;';
    execute immediate stmt using 'http_for_joe_acl.xml',
    'net ACL for JOE',
    'JOE',
    'connect';
    stmt := 'begin dbms_network_acl_admin.assign_acl(:1, :2, :3); end;';
    execute immediate stmt using 'http_for_joe_acl.xml',
    www.example.com',
    80;
    commit;

  • How to fill the table UD_SAPHR with data from SAP HR Connector

    Hi, I`ve searched all the forrum but didn`t find how to map fields from connector form to the any field in OIM. I tryied with entity adapters but failed to reach any result. The problem is that I even cant put incoming data with connector to the table of the connector form (UD_SAPHR).
    I will be grateful for any help. Below is the cut of the log. In few words - how to map, for example, field "Department=40000260" to the field in the USR table or UD_SAPHR table (or any other - to have this information in OIM).
    OIM-9101Upd5, OS-Oracle Enterprise Linux4x64,SAP COnnector-SAP-ER90460, Database-Oracle 10gx64, Appication server-SOA(Oracle Application server)
    INFO,01 Jul 2009 14:08:11,504,[XL_INTG.SAPHRMS],getDetailsForRecon(): *****************************
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getDetailsForRecon(): 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],reconcileEmp(): SAPUserRecon for SAP : SAP HRMS IT Resource:EmployeeId=00000017
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],SAPUserRecon:returnDate(): Employee Status***3
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],EmpStatus***3
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,506,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@790a37
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@282f10
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],sEmployeeUserID***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],UserKey***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus fetch from target System is 3
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus Mentioned in Task scheduler is 3
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sUser get from Resource Object Table ***
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sXelUser get from Xellerate Table***
    el Number=00000017, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п⌠п╣пҐпҐп╟пЄп╦п╧, Last Name=п■п╟п╡я▀пЄп╬п╡, Role=Consultant, Middle Name=FromHRMS=1}╣п╡п╦я┤, Userr
    INFO,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1888/12/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п⌠п╣пҐпҐп╟пЄп╦onnel Number=00000017, EmployeeId=00000017, Country=RU, Title=Mr, Department=40000260, MiddleName=п░пҐпЄя─п╣п╣п╡п╦я┤, LastName=п■п╟п╡я▀пЄп╬п╡}
    INFO,01 Jul 2009 14:08:11,711,[XL_INTG.SAPHRMS],disableEnableXelUser(): Get UserKey of user with reconKey: 00000017 for SAP SAP HRMS IT Resource
    DEBUG,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],disableEnableXelUser(): Xellerate RS Count*** 0
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp(): User Reconciliation for Create & Modify User is completed.
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp() **** DONE RECONCILIATION

    That is my problem. I get only those fields, that are in the xellerate user standard form. And I need also fields "Department" and "City".
    This information connector gets from SAP (as it is seen in log) but doesn`t save it anywhere inside the OIM, though such fields exists in the UD_SAPHR table (and correspondend form) but this table remains empty after reconciliation.
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create XL user reconciliation event***{Email=, Organization=Xellerate Users, User ID=00000072, Personnel Number=00000072, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п°пҐп╣, Last Name=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟, Role=Consultant, Middle NamomHRMS=1}
    INFO,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1970/01/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п°пҐп╣, Person Number=00000072, EmployeeId=00000072, Country=RU, Title=Mr, Department=40000240, MiddleName=п·я┌п©я┐я│п╨, LastName=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟}
    Edited by: user6645106 on 03.07.2009 10:12

  • Trouble with transfer from older LR and machine to LR5 on a newer computer

    I have used LR1 for several years on an ancient Mac G4 so not a beginner but didn't find anyplace else to post a question.  If anyone cares to redirect me to the right place, I welcome that.
    The library module has always been a mystery, I've always been groping in the dark.  In spite of that, I've processed a few thousand raw files and have always been comfortable with adding metadata, and working in the develop module, which is all that I need.
    I have just acquired a fairly new MacPro, and downloaded a trial version of LR5.  But making the transition to the new machine is proving to be a barrier.  I think the issue has to do with LR5 not finding the correct path to the actual images, and I don't know enough to help it do that as efficiently as it could probably be accomplished. 
    Here's what I've done without trouble:
    1.  On the G4, made a copy of my LR catalog, and gave it a distinct name.
    2.  Formatted a new large HDD on the MacPro dedicated for image files (not the boot disk).
    3.  Copied my image files from the G4 to the new HDD in the MacPro.
    4.  Downloaded the LR5 trial version.
    5.  Moved the renamed LR catalog from the G4 to the Mac Pro.
    6.  Opened the catalog with LR5 on the MacPro and selected Library module.
    LR5 had problems finding the right path to the images, as indicated by the icon shown in the grid on the upper right corner of the thumbnails - and by the absence of actual images which were instead just empty squares.  LR did properly show the HDDs on the MacPro, both the boot disk and the second disk dedicated to images, but the image folders were not listed within the one dedicated to these new images, even though that's where they were saved.  Farther down on the left panel LR5 showed my original jumble of folders, but listed them as being still located in the old HDD, as indicated by the name of that volume.  And of course there were the question marks, which I have grown to know and....uh, tolerate.
    So the LR needed to know how to find the correct path. I didn't know how to direct it, and a LR savvy friend also was stumped also.  So I experimented.  Unsuccessfully.
    I should explain what I mean by the "jumble" of folders:  On my G4 Mac, the actual heirarchy of folders from my hard drive never appeared in LR, it was just a list arranged alphabetically.  That was inconvenient, but I didn't know why that was happening and didn't know how to fix it. 
    I found that I was able to help LR5 locate the images by clicking the exclamation point icon, and that brought in the images with all the metadata and develop settings.  But I was only able to do that with one folder at a time, and given the number of folders, that was going to be a long and very tedious project.  I was sure there had to be a better way.
    I made some progress using the contextual menu to "update folder location" but again that was just as tedious to do, it was working only one folder at a time. 
    I then selected one folder and clicked "synchronize folder" which located a much larger group of images and added them where they needed to be in the left panel within the correct new volume.  The bonus was that the proper folder heirarchy was included.  However that process did not bring along the metadata, ie, keywords and previous develop module settings, and that was a deal breaker, I don't want to lose that metadata in the transfer, and I'm sure I don't have to, I know LR is smarter than that.  
    My original image files, and the original catalog, are all still backed up on my old computer, so nothing is lost, it's just not being transferred properly. 
    What is the best choice now?  I have no problem with starting over with LR5 - deleting the renamed catalog and making another copy  on the old machine, moving it to the MacPro, and working with that.   If I do, how do I help LR5 find the right path to my existing images with metadata and develop settings, without the laborious process of doing it for every folder?
    I'll be very grateful for any and all advice, thanks,
    Gary

    Jon,
    What Julianne said at first about re-linking made perfect sense and I followed it easily, had actually already been there.  But in my situation now, it didn't have any effect.  The directory of folders which had already been added were still just as they were, and the outstanding balance are not in the desired position.  And the folders which had been brought in earlier today when I clicked "synchronize folder", were still missing all the metadata.
    Maybe this means I need to start over, and I'm fine about doing that that, but I don't know what it takes to accomplish that.  I'm concerned now that any changes I make out of guesswork could only make the problem harder to resolve.  It just feels to me like something I did at the beginning just wasn't right, and now it's a tangle.
    Can you advise?
    Thanks,
    Gary

  • How to update a table AUTOMATICALY with data from a .txt file??

    HI ,
    I want to upload data which is in a notepad file and Create a table. This notepad file stores a string of datas. Here, the data comes in to the .txt file every second.
    (The data is actually stored into the notepad file when a program is executed in Processing.js software)
    Is it possible to do the following using APEX ? ?
    1. This table has to be updated automatically once in 2 minutes (I want this completely automatic, no human intervention -- no update buttons)
    2. A report is to be created in a apex application with this table, it should reflect the updates in the table every 2 minutes.
    Is it possible?? give your ideas.. I want to do this soon for my engineering project :) Any help from you is appreciated. :)
    Edited by: user13301695 on 28-Mar-2011 10:09

    And how do you expect your database server to access a local file in your machine ?
    Is the file accessible from outside your machine say inside a webserver folder so that some DB process can poll on the file ?
    Or, is your DB server in the same machine where you have the text file ?
    You will have to figure out the file acess part before automating user interaction or even auto-refreshing.

  • Strange happenings with examples from Tom Kyte's book. 10 XE

    Hi all,
    I was twiddling my thumbs and decided to brush up on some of Oracle's fundamentals.
    Tom Kyte's book - Effective Oracle by Design. Examples on pp. 141 - 142 (to do with
    bind variables). Typed in the example and obtained a very strange system reaction.
    It consists of a package "DEMO_141_PKG" with 1 procedure "parse_bind_execute_close"
    which is called by the procedure QUICKFIX142.. The system then proceeds to go mental.
    If anybody could explain to me what's going on, I would be grateful. I'm running 10 XE on
    Ubuntu Linux.
    On running the code (below) I get this in the "Run" window of SQLDeveloper.
    Connecting to the database demo.
    ORA-01000: maximum open cursors exceeded
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 884
    ORA-06512: at "SYS.DBMS_SQL", line 9
    ORA-06512: at "DEMO.DEMO_141_PKG", line 17
    ORA-06512: at "DEMO.QUICKFIX142", line 8
    ORA-06512: at line 2And the logging window of SQLDevloper just shows a continuous
    stream of the text below - I have to kill the sessions as SYS from
    within Oracle - the Terminate process from within SQLDeveloper
    doesn't manage to kill this runaway process.
    Logging output
    SEVERE     2474100     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474099     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474098     0     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474097     0     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    SEVERE     2474096     1     oracle.dbtools.raptor.runner.DBStarterFactory     logDbmsOutput: ORA-01000: maximum open cursors exceeded
    <Millions of lines snipped - it just keeps going>Now, the code is here for those who would like to help me get to the bottom of this phenomenon.
    create or replace
    PACKAGE DEMO_141_PKG AS
    procedure parse_bind_execute_close(p_input in varchar2);
    END DEMO_141_PKG;
    create or replace
    PACKAGE BODY DEMO_141_PKG AS
      g_first_time boolean := TRUE;
      g_cursor number;
    procedure parse_bind_execute_close(p_input in varchar2)
    AS
      l_cursor number;
      l_output varchar2(4000);
      l_status number;
    BEGIN
      l_cursor := dbms_sql.open_cursor;
      dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
      dbms_sql.bind_variable(l_cursor, ':x', p_input);
      dbms_sql.define_column(l_cursor, 1, l_output, 4000);
      l_status := dbms_sql.execute(l_cursor);
      if(dbms_sql.fetch_rows(l_cursor) <= 0)
      then
        l_output := null;
      else
        dbms_sql.column_value(l_cursor, 1, l_output);
      end if;
    END parse_bind_execute_close;
    END DEMO_141_PKG;and the above is called here
    create or replace
    PROCEDURE QUICKFIX142 AS
    BEGIN
    -- demo.runstats_pkg.rs_start; // Don't worry about  runstats - it's a Tom Kyte package for
    -- timings and measuring contention.
      execute immediate 'alter session set session_cached_cursors = 0';
      for i in 1..1000
      loop
        DEMO_141_PKG.parse_bind_execute_close('Y');
      end loop;
    -- runstats_pkg.rs_middle;
      execute immediate 'alter session set session_cached_cursors = 100';  // reduced this to 50, 20, 10 & 5 - no effect.
      for i in 1..1000
      loop
        DEMO_141_PKG.parse_bind_execute_close('Y');
      end loop;
    -- runstats_pkg.rs_stop;
    END QUICKFIX142;Edited by: Paulie on Aug 12, 2011 2:18 PM

    If you modify the called package by adding :
      -- CLOSE THE CURSOR
      dbms_sql.close_cursor(l_cursor);in
    procedure parse_bind_execute_close(p_input in varchar2)
    AS
      l_cursor number;
      l_output varchar2(4000);
      l_status number;
    BEGIN
      l_cursor := dbms_sql.open_cursor;
      dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
      dbms_sql.bind_variable(l_cursor, ':x', p_input);
      dbms_sql.define_column(l_cursor, 1, l_output, 4000);
      l_status := dbms_sql.execute(l_cursor);
      if(dbms_sql.fetch_rows(l_cursor) <= 0)
      then
        l_output := null;
      else
        dbms_sql.column_value(l_cursor, 1, l_output);
      end if;
      -- CLOSE THE CURSOR
      dbms_sql.close_cursor(l_cursor);
    END parse_bind_execute_close;
    END DEMO_141_PKG;Then script runs with default OPEN_CURSORS setting:
    SQL> connect / as sysdba
    Connected.
    SQL> show parameter open_c
    NAME                                 TYPE        VALUE
    open_cursors                         integer     300
    SQL> connect test/test
    Connected.
    SQL> exec quickfix142;
    PL/SQL procedure successfully completed.

  • Trouble with 'reply from' address

    Help!
    Recently we swapped from using a ntlworld.com dial up account to btinternet.com broadband.
    I have removed all (that I can see) references to ntlworld from the email preferences. Everything is working fine for me.
    However:
    There are 2 users on my computer. Myself and my partner - both having individual log ins but sharing same email account.
    The problem we're experiencing is when my partner sends or replies to emails from their account. Emails are still marked as from @ntlworld.com, however upon checking their account info summary (from the action menu) the incoming and outgoing mail servers are listed (correctly) as btinternet.com
    I really am having trouble finding just where the ntlworld address is lurking! It must be somewhere as if I choose 'reply all' when replying to an email in my partners account the @ntlworld address appears in the cc (?!)
    Any help greatly appreciated!

    Hi!
    Thanks for getting back. Yep, understand what you are saying - but for some reason when opening mail preferences whilst logged in as my partner the ONLY thing I'm presented with is a 'signatures' window - JUST that - it doesn't appear the same way as when I choose mail preferences when I'm logged as myself where I'm presented with a window that includes a menu along the top including 'General', 'Accounts', 'Junk Mail', 'Fonts & Colors', 'Viewing', 'Composing', 'Signatures' and 'Rules'. When I'm logged in as my partner and select mail preferences I'm given NONE of these (except 'signatures') - just a window showing the signatures as if all the other above tabs don't exist (they just aren't there) and as if I've clicked on the signatures tab and the window has opened. So, for some reason I can't actually see the 'accounts' window/info when choosing preferences logged in as my partner.
    I have thought that, yes, if I could actually see 'accounts' information when logged in as my partner (upon selecting mail preferences) I could solve this.
    Any idea why this would be and how I can get to see the accounts and the email address field? Many Thanks.

  • Trouble with mixdown from 96khz

    I recently did the switch to 96 khz, and gradually working my way up to 192 khz, and i know a lot of you are going to say that i should just stick with 48 but i don't see the reason when my box goes up to 192. and when there is in fact a difference from 48 to 96 to 192. now i've made the recordings in 96khz, and when i mix it down to 48, it screws up the recording. i mean, it sounds good, but it doesn't sound anything like my song. it's weird. anyone know what this is all about? thanks in advance.

    >Given that it is better to record and/or process at 24 bits (I have also read that sometimes there is no difference there), when should one expect a benefit from recording at sample rates of 98k or above and when should one expect benefits of recording at 24 bits?
    Recording a 24-bit signal is essentially the same as recording a 32-bit one - the extra bits are scaling bits, and they only get invoked during processing operations. As for when you need to record at 24-bit as opposed to 16-bit - well, that gets slightly more interesting. If you are making an acoustic recording, then there's no way that you will be able to use all of even the 16-bit dynamic range up, never mind 24! That would give you a potential range of 96dB, and to get a venue that quiet... well, you can take it from me that you can't. BUT... that doesn't mean that you don't get benefits from 24-bit recording, because in a reverberant space that
    is quiet, you will definitely capture reverb tails more accurately as they disappear into the natural dither the background noise is causing. So if you are making recordings like this, I'd say that it was worth it.
    As for sampling at rates above 48k - well it's been researched, and proved conclusively that it's simply not worth it, because listening panels can't tell the difference, all other things being equal. Trouble is, that with a lot of kit, all other things
    aren't equal, so equipment appears to behave better sometimes at higher sample rates. It is IMPORTANT to note, though, that this is a failure of the equipment to perform properly at lower rates, and not a function of the higher sample rate itself - that's irrelevant to the argument. What causes this has far more to do with things like dodgy Nyquist filtering, and generally poor component quality. Even some D-A converters are guilty from this point of view, running considerably better at higher rates than lower ones.
    I have done critical listening to Apogee converters running at different sample rates into a good monitoring system, and you really can't tell the difference, whatever material is used. The entire Apogee chain was designed to run correctly at whatever sample rate you choose to use - and it proves to my ears (and everybody else who listens) that whatever differences people hear in lesser equipment are
    not inherently due to any sample rate considerations. The other thing to bear in mind is that it's seriously difficult to reproduce even 20kHz in the average room with normal loudspeakers - so any system that can reproduce beyond this range is wasting its time and your processing power getting there - there is simply no benefit to be had at all - unless you are a bat/cat/dog, in which case it will annoy them quite a lot. (This has also been tested, incidentally!)
    Hopefully, as converters improve generally, this will all inevitably become the accepted wisdom - and that day can't come soon enough as far as I'm concerned. The electronic tricks that you need to do to get over the filtering problems that have beset earlier designs are now better understood (this involves oversampling within the devices), and this approach is being used on most if not all of the newer devices that come to market - and now at a better price as well, which is why we are seeing them in more and more cheaper products; It's a technology that has come of age. These converters are now working well enough for the only remaining issues to be related to the analog components on the board, and it's now worth manufacturers choosing the best components they can, because the digital feeds to them can outperform them quite comfortably in many cases. But that, unfortunately, is what tends to make products more expensive, especially if you have to do it to a lot of channels.
    I should also mention incidentally that the other thing that affects what is heard in some situations is the master clock stability in the system. In any given clock, you use the same circuitry for the whole thing, but increase the speed of it (by using less divider stages) for high sample rate running. When you do this, the
    relative amount of jitter will reduce (although in effect it will remain the same). So it may well be that on systems with lower-grade clock circuitry, increasing the sample rate appears to make the conversion less 'veiled' because the relative jitter sidebands are reduced - but once again, that's down to poor design, and not inherently anything inherently due to the sample rate
    per se. Designers are also recognising that this is the case, and clock stability is also improving in general.
    >I understand that whatever word length the file is initially recorded at, the word length should be increased to 32 bits for processing, so you don't need to explain that part (unless I am mistaken).
    No you aren't - that is quite correct.

  • Trouble with Bookmarks from Word to PDF

    Use Windows 7; Office 2007; Acrobat Pro 9.0.0
    Problem:  Word document has numbered scheme, with blue font to signify a link in resultant pdf.  Set
    Preferences to capture level 1 and 2 for bookmarks in pdf.  Create PDF.  Resultant pdf doesn't hold the blue font from within Word.
    Pdf is all in black.  Bookmarks are sometimes renumbered; i.e. A1, B2, etc. instead of 1., 2., etc.  Bulleted list has different symbol font applied.  Why?

    Hi,
    function(){return A.apply(null,[this].concat($A(arguments)))}
    dragonfly52 wrote:
    Use Windows 7; ---; Acrobat Pro 9.0.0
    Acrobat compatibility for Windows 7 starts with Acrobat 9.2.
    See: http://www.adobe.com/products/acrobat/faq/
    The first step may be to place the installed Acrobat 9.x to the current dot release via sequence install of available updates, .
    http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Be well...

  • Having trouble with display from lap top to flat screen hdtv

    I connected my macbook pro 2011 to my hdtv with a thunderbolt to hdmi cable.  The audio comes through but all I can see on the TV are the default mac backgrounds.  What do I need to do so that my TV shows whats on my lap top?

    You have the display set in Extended Desktop mode with the MacBook as the main screen. The Menu Bar and Dock will be on the MacBook display and your background screen on the TV but you can move the cursor onto the TV screen. In System Preferences>Display on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the TV and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will make the second monitor your main screen.
    You can now use your MacBook in Clamshell Mode with a wired or Bluetooth keyboard and mouse.  http://support.apple.com/kb/HT3131 When you disconnect from the TV your Menu Bar will automatically change back to the MacBook.
    Or if you want to use the MacBook’s keyboard and trackpad to work on the MacBook screen while showing it on a TV you can check the Mirror Display box on the lower left hand side of the Arrangement tab under the two monitors box. That will give you the same screen at the same resolution on both the MacBook and the external monitor.

  • HT204400 Trouble with streaming from my iphone and on Netflix on Apple TV since an update. I've tried swapping leads, reseting etc... Can ayone help?

    I had Apple TV up and running for about 3 weeks. All good... then I get an update. Since then I've got the HDCP error, so Netflix doesn't work, nor can I stream from my iphone. By shear coincidence, my Sky TV has flagged up the exact same issue at the same time, despite being problem freem for 3 years ?? So nothing on my TV except YouTube. Looking at the amount of forum content on this matter, Apple know this is a problem.
    It's too much of a coincidence not to be related. I requested a phone call at 8:45 this morning, which happened to be 9:00, so I'd left the house. The useless guy said he'd email me something to help..... and I'm still waiting for that email.
    I've tried swapping HDMI cables, resetting Sky and Apple TV, resetting the router, changing resolution in the Audio Visual settings, switching on in different sequences.... I'm lost with it.
    Is Apple now run by monkeys ?  This is beyond a joke. How can an update ruin everything ?
    Can anyone help or am I just to return for a refund ?

    I had Apple TV up and running for about 3 weeks. All good... then I get an update. Since then I've got the HDCP error, so Netflix doesn't work, nor can I stream from my iphone. By shear coincidence, my Sky TV has flagged up the exact same issue at the same time, despite being problem freem for 3 years ?? So nothing on my TV except YouTube. Looking at the amount of forum content on this matter, Apple know this is a problem.
    It's too much of a coincidence not to be related. I requested a phone call at 8:45 this morning, which happened to be 9:00, so I'd left the house. The useless guy said he'd email me something to help..... and I'm still waiting for that email.
    I've tried swapping HDMI cables, resetting Sky and Apple TV, resetting the router, changing resolution in the Audio Visual settings, switching on in different sequences.... I'm lost with it.
    Is Apple now run by monkeys ?  This is beyond a joke. How can an update ruin everything ?
    Can anyone help or am I just to return for a refund ?

Maybe you are looking for

  • Sound works but not when playing music

    When i turn on my computer it makes the start up sound. But when i try to play music out of itunes or off the internet, the sound wont work. I know its on, but no sound is coming from the speakers. i have an hp G71

  • Word report with Cyrillic text

    Hi all, I've never used one of these forums before so hope I'm doing right. I need to produce a word report with Russian & English text , if I set the system language to Russian I can type Russian characters in to word, but if I have a string constan

  • Problem :Foreground and Back ground updating data in Z table

    Hi all, I am running the one report with sales orders to modify the z table . if I run the report in foreground it is modifying correctly. But in Background mode it modifying extra one row in table. I have checked all the clear and Refresh staments .

  • Need query to find rows

    hi i need query to find out for one perticular row from parent table ,,which references how many rows in how many child tables , and child to child tables. in herirachy fashion. if anybody know please help me

  • [VLC 2.0.8.a-1] h264 video freezes while playing

    I've got a problem with every newer version than vlc-2.0.8.a-1 (current is 2.1.1-2). Almost every MKV file with h264 codec freezes a lot while playing and reports errors like this: [0x7f5dd8001248] main vout display error: Failed to resize display [0