Shared memory fragmentation:Duplicate cursor load in shared memory

Hi,
My database is suffering from shared memory fragmentation.
I have checked large objects loaded in shared pool by running dbms_shared_pool.sizes procedure and found duplicate cursors with different size are present there.
The statement looks like :-
MERGE INTO UII_21C_PTP PTP USING (SELECT PTP_ID, SLOT_ID, SUPPLIER_PORT_NAME, MODIFIED_SUPPLIER_PORT_NAME, PORT_LOGICAL_NAME, DIRECTION, CAPACITY, PORT_TYPE, OPERATIONAL_STATUS, MANAGED_ELEMENT_ID, MTOSI_PORT_NAME, PORT_TECHNOLOGY_TYPE, MESSAGE_ID FROM (SELECT TMP_PTP.PTP_ID PTP_ID, TMP_PTP.SLOT_ID SLOT_ID, TMP_PTP.SUPPLIER_PORT_NAME SUPPLIER_PORT_NAME, TMP_PTP.MODIFIED_SUPPLIER_PORT_NAME MODIFIED_SUPPLIER_PORT_NAME, TMP_PTP.PORT_LOGICAL_NAME PORT_LOGICAL_NAME, TMP_PTP.DIRECTION DIRECTION, TMP_PTP.CAPACITY CAPACITY, TMP_PTP.PORT_TYPE PORT_TYPE, TMP_PTP.OPERATIONAL_STATUS OPERATIONAL_STATUS, TMP_PTP.MANAGED_ELEMENT_ID MANAGED_ELEMENT_ID, TMP_PTP.MTOSI_PORT_NAME MTOSI_PORT_NAME, TMP_PTP.PORT_TECHNOLOGY_TYPE PORT_TECHNOLOGY_TYPE, TMP_PTP.MESSAGE_ID MESSAGE_ID, PTP.PTP_ID PTP_ID_1, PTP.SLOT_ID SLOT_ID_1, PTP.SUPPLIER_PORT_NAME SUPPLIER_PORT_NAME_1, PTP.MOD_SUPPLIER_PORT_NAME MODIFIED_SUPPLIER_PORT_NAME_1, PTP.PORT_LOGICAL_NAME PORT_LOGICAL_NAME_1, PTP.DIRECTION DIRECTION_1, PTP.CAPACITY C
And it has three entry with loads value 4488,4402 and 1 and sharable_mem are 250432,229720 and 6260.
Is there anything wrong with this cursor ?
The original merge statement in the procedure is:
MERGE INTO uii_21c_ptp ptp
USING (SELECT ptp_id, slot_id, supplier_port_name, modified_supplier_port_name,
port_logical_name, direction, capacity, port_type,
operational_status, managed_element_id,
mtosi_port_name, port_technology_type, message_id
FROM (SELECT tmp_ptp.ptp_id ptp_id, tmp_ptp.slot_id slot_id,
tmp_ptp.supplier_port_name supplier_port_name,
tmp_ptp.modified_supplier_port_name modified_supplier_port_name, /* Version 1.3 */
tmp_ptp.port_logical_name port_logical_name,
tmp_ptp.direction direction,
tmp_ptp.capacity capacity,
tmp_ptp.port_type port_type,
tmp_ptp.operational_status operational_status,
tmp_ptp.managed_element_id managed_element_id,
tmp_ptp.mtosi_port_name mtosi_port_name,
tmp_ptp.port_technology_type
port_technology_type,
tmp_ptp.message_id message_id,
ptp.ptp_id ptp_id_1, ptp.slot_id slot_id_1,
ptp.supplier_port_name supplier_port_name_1,
ptp.mod_supplier_port_name modified_supplier_port_name_1, /* Version 1.3 */
ptp.port_logical_name port_logical_name_1,
ptp.direction direction_1,
ptp.capacity capacity_1,
ptp.port_type port_type_1,
ptp.operational_status operational_status_1,
ptp.managed_element_id managed_element_id_1,
ptp.mtosi_port_name mtosi_port_name_1,
ptp.port_technology_type
port_technology_type_1,
ptp.xml_message_id message_id_1
FROM uii_tmp_ptp tmp_ptp, uii_21c_ptp ptp
WHERE tmp_ptp.ptp_id = ptp.ptp_id(+))
WHERE ( ptp_id IS NOT NULL
AND ( NVL (slot_id, ' ') != NVL (slot_id_1, ' ')
OR NVL (supplier_port_name, ' ') !=
NVL (supplier_port_name_1, ' ')
OR NVL(modified_supplier_port_name, ' ') != nvl(modified_supplier_port_name_1, ' ') /* Version 1.3 */
OR NVL (port_logical_name, ' ') !=
NVL (port_logical_name_1, ' ')
OR NVL (direction, ' ') != NVL (direction_1, ' ')
OR NVL (capacity, ' ') != NVL (capacity_1, ' ')
OR NVL (port_type, ' ') != NVL (port_type_1, ' ')
OR NVL (operational_status, ' ') !=
NVL (operational_status_1, ' ')
OR NVL (managed_element_id, ' ') !=
NVL (managed_element_id_1, ' ')
OR NVL (port_technology_type, ' ') !=
NVL (port_technology_type_1, ' ')
OR NVL (message_id, ' ') !=
NVL (message_id_1, ' ')
)) ptp1
ON (ptp.ptp_id = ptp1.ptp_id)
WHEN MATCHED THEN
UPDATE
SET ptp.slot_id = ptp1.slot_id,
ptp.supplier_port_name = ptp1.supplier_port_name,
ptp.mod_supplier_port_name = ptp1.modified_supplier_port_name, /* Version 1.3 */
ptp.port_logical_name = ptp1.port_logical_name,
ptp.direction = ptp1.direction,
ptp.capacity = ptp1.capacity,
ptp.port_type = ptp1.port_type,
ptp.operational_status = ptp1.operational_status,
ptp.managed_element_id = ptp1.managed_element_id,
ptp.mtosi_port_name = ptp1.mtosi_port_name,
ptp.port_technology_type = ptp1.port_technology_type,
ptp.xml_message_id = ptp1.message_id,
ptp.last_updated_by = 'PACS',
ptp.rts_last_update_date = SYSDATE,
ptp.watermark = wat_mark
WHEN NOT MATCHED THEN
INSERT (ptp_id, slot_id, supplier_port_name, mod_supplier_port_name, port_logical_name,
direction, capacity, port_type, operational_status,
managed_element_id, mtosi_port_name, port_technology_type,
created_by, rts_create_date, last_updated_by,
rts_last_update_date, watermark, xml_message_id)
VALUES (ptp1.ptp_id, ptp1.slot_id, ptp1.supplier_port_name, ptp1.modified_supplier_port_name,
ptp1.port_logical_name, ptp1.direction, ptp1.capacity,
ptp1.port_type, ptp1.operational_status,
ptp1.managed_element_id, ptp1.mtosi_port_name,
ptp1.port_technology_type, 'PACS', SYSDATE, 'PACS',
SYSDATE, wat_mark, ptp1.message_id);
I have checked that Cursor_sharing parameter is EXACT.
Please advise me.
Thanks in advance.
Azad

make sure the env var ORACLE_SID is set.
check PROCESSES in your init.ora file. if you lower this number (to say, 15) and errors go away then you need to up the semiphores kernel parameter (or leave PROCESSES set to a low number). Also, it is correct to get an error when trying to connect to a database that is shutdown. the only way to not get an error is use svrmgrl or "sqlplus /nolog" and then connect / as sysdba (or connect internal).
Andrew

Similar Messages

  • Keep place cursor loaded to repeatedly place the same image

    I'm trying to find a way to keep the place cursor loaded with an image that I want to place many times... an image such as a 'New' graphic (internally we call it a 'New ping') for templated catalogue pages.
    I don't want to constantly have to place or copy and paste, or step and repeat once placed because when I place these pings, I will do is choose several different pings to import at once such as 'New', 'New look', 'Updated' etc, and each of these could be placed three or four times per spread.
    Is there a way?
    Thanks.

    Yeah, we know the conveyor can do that, but we were hoping that there was a way to do it without using the conveyor as it's not quite as fluid for workflow as we would like... but hey, if you don't ask, you don't find out!
    If you've got your cursor loaded with several images, it's easier to using the arrow keys... well to us it would be.
    I'll make a feature request I think.
    Thanks anyway.

  • Downloaded Mavericks, the screen is black with colourful cursor loading forever.

    I just upgraded my macbook pro to Mavericks. After hours of of downloading it went black with a colourful cursor loading forever, what does it mean and what should i do?

    Király wrote:
    It might have been a corrupted download or a bad install. It happens sometimes.
    Restore your system from your latest backup and try again.
    Ohhh... How can I do that? I keep trying to shutdown the laptop but it's not letting me. What should I do?
    Thanks for the response, btw.
    Re: Downloaded Mavericks, the screen is black with colourful cursor loading forever. 

  • Duplicate classes loading

    HI ,
    I have a web app and deployed on weblogic 10... when i undeploy some classes are not GC.... when I redploy the app
    duplicate claases are loaded i.e if if com.web.domain.Util is not GC when I redploy i will see in my Jrockit Mission control memory leak detector
    com.web.domain.Util
    com.web.domain.Util
    twice ...... any help

    the gist of the problem is a classloader leak. if you allow classes outside of a given classloader to have a hard reference to a class in your web app's classloader, then your web app classloader cannot be GCed (this is not always your fault, sometimes third-party libraries or frameworks you are using are the cause of this). this is often a very difficult problem to track down. however, if you have a good heap dump profiler, you should be able to get a heap snapshot of the java app after your webapp has been undeployed and use that heap dump to figure out what reference chain is keeping your classloader from being GCed (i.e. what object which is an instance of a class in another classloader is still maintaining a reference to an object which is an instance of a class in your web app classloader).

  • How to avoid duplicate data loading from SAP-r/3 to BI

    Hi !
           I have created one process chain that will load data into some ODS from R/3,where(in R/3)the datasources/tables r updated daily.
           I want to scheduled the system such that ,if on any day the source data is not updated (if the tables r as it is) then that data shuold not be loaded into ODS.
           Can any one suggest me such mechanism,so that I can always have unique data in my data targets.
           Pls ! Reply soon.
          Thank You !
           Pankaj K.

    Hello Pankaj,
    By setting the unique records option, you pretty much are letting the system know to not check the uniqueness of the records using the change log and the ODS active table log.
    Also, in order to avoid the problem where you are having dual requests which are getting activated at the same time. Please make sure you select the options "Set Quality Status to 'OK' Automatically" and "Activate Data Automatically" that way you would be having an option to delete a request as required without having to delete the whole data.
    This is all to avoid the issue where even the new request has to be deleted to delete the duplicate data.
    Untill and unless the timestamp field is available in the table on top of which you have created the datasource it would be difficult to check the delta load.
    Check the table used to make sure there is no timestamp field or any other numeric counter field which can be used for creating a delta queue for the datasource you are dealing with.
    Let me know if the information is helpful or if you need additional information regarding the same.
    Thanks
    Dharma.

  • Remove duplicates while loading data from text file

    Hi,
    Data in text file (some times has duplicates) is being loaded into Oracle 9i database using Informatica. To improve performance, we would like to remove duplicates at the time of each load using Oracle procedure. Could you please help me with this?
    Thanks,
    Lakshmi

    No, our table doesn't have that. Most of the functionality is managed at the informatica level. Is there any other way? Thanks,

  • Loading ODS - Data record exists in duplicate within loaded data

    BI Experts,
    I am attemping to load an ODS with the Unique Data Records flag turned ON.  The flat file I am loading is a crosswalk with four fields, the first 3 fields are being used as Key Fields in order to make the records unique.  I have had this issue before, but gave up in frustration and added an ascending number count field so simply create a unique key.  This time I would like to solve the problem if possible.
    The errors come back referring to two data rows that are duplicate:
    Data record 1 - Request / Data package / Data record: REQU_4CNUD93Q3RCC80XFBG2CZXJ0T/000003/ 339
    Data record 2 - Request / data package / data record: REQU_4CNUD93Q3RCC80XFBG2CZXJ0T/000003/ 338
    And below here are the two records that the error message refers to:
    3     338     3902301480     19C*     *     J1JD     
    3     339     3902301510     19C*     *     J1Q5     
    As you can see, the combination of my three Key Fields should not be creating a duplicate. (3902301480, 19C(asterisk) , (asterisk))   and (3902301510, 19C(asterisk) , (asterisk))  I replaced the *'s because they turn bold!
    Is there something off with the numbering of the data records?  Am I looking in the wrong place?  I have examined my flat file and can not find duplicates and the records that BW say are duplicates are not, I am really having a hard time with this - any and all help greatly appreciated!!!

    Thank you for the response Sabuj....
    I was about to answer your questions but I wanted to try one more thing, and it actually worked.  I simply moved the MOST unique Key Field to the TOP of my Key Field list. It was at the bottom before.
    FYI for other people with this issue -
    Apparantly the ORDER of your Key Fields is important when trying to avoid creating duplicate records.
    I am using four data fields, and was using three data fields as the Key Fields.  Any combination of all three would NOT have a duplicate, however when BW finds that the first two key fields match, sometimes it apparantly doesn't care about the third one which would make the row unique.  By simply changing the order of my Key Fields I was able to stop getting the duplicate row errors...
    Lesson - If you KNOW that your records are unique, and you are STILL getting errors for duplicates, try changing the ORDER of your key fields.

  • Sqlloader controlfileparam's to avoid duplicate records loading

    Hi All,
    I am trying for a option in control file which should restrict sql loader to load duplicate records.I know if we apply a constraint on table itself, it wont allow you to load duplicate data and reject into reject file but in controlfile i have to do it to make sql loader to avoid loading duplicate records.Can you please suggest me which option in controlfile will enable this.
    Can you please also inform me the exact difference between badfile and reject file.In what scenarios it will write to reject or to badfile
    Regards

    Hey
    i dont think there is any option to avoid loading duplicate records by using a parameter in the control file
    On the difference between the bad and reject files try this link
    http://www.exforsys.com/content/view/1587/240/
    Regards,
    Sushant

  • Duplicate a loaded image

    Hi,
    Is it possible to copy a loaded image from a movie clip to
    another ?
    I load several images that I res-cale for a thumbnailer and
    would like to
    when I select one to re-scale it into another movie clip.
    Instead of reload the external image, how to copy it ?
    Stan

    Hi,
    it's possible in Flash 8 with the BitmapData class: create a
    BitmapData object, draw the MC containing the loaded image into it,
    and attach this to the other MC.
    In versions < 8 you have to load it again. Flash caches
    most of the loaded stuff, so loading something again might use the
    cached file, but it's not reliable.
    cheers,
    blemmo

  • Duplicate mouse cursor appears (but doesn't move) on second monitor

    I have a Mac Pro with the ATI XT1900 video card and 2 Dell 2407WFP LCD monitors attached via DVI.
    When I'm using an application, such as a web browser, and the cursor changes state (like the black arrow with spinning wheel in corner) a duplicate of this cursor state appears on my second monitor, on the left-hand side of the screen.
    This cursor DOES NOT MOVE, but does animate, and will not disappear unless I move my "live" cursor over to the second monitor, which I imagine causes OS X to "refresh" the position of the cursor. It realizes the duplicate shouldn't be there and it vanishes. The second cursor seems to appear only when the primary live cursor changes state, as in the black arrow becoming a black arrow with spinning wheel in the corner, etc.
    This is not a duplicate cursor due to having Displays set up to mirror one another. The second cursor doesn't move.
    This has happened in more than one software application, so it appears to be some sort of display driver error at the system level.
    Anyone else experience this or have a way to fix it? There have been several Apple Updates to OS X since this problem first started happening (on day 1 with the Mac Pro) and it has not been resolved.
    -R

    Try resetting SMC on the macbook air: http://support.apple.com/kb/HT1411
    Good luck!

  • ADF Popup not showing at fragment load

    Hi,
    I am calling a bean method in getter of command link at the load by binding it to a command link defined in bean, so when this fragment is called from other fragment then
    in this method i m doing some checks ,and based on particular condition i have popup.show but it doesnt show the popup and code is not raising any exception.
        public RichCommandLink getC1() {
            populatedata();
            return c1;
      Now in populatedata ,I have popup shown for some conditions but when fragment is getting called for first time it doesnt show the popup ,but same populatedata is called from button on the fragment 
      so when i click on button ,this popup is shown properly.
    So as I understand first time getC1 gets fired when fragment was getting loaded ,so how to make sure popup is displayed during that ..
    public void populatedata()
    if ....
                        System.out.println("showing popup");                   
                       RichPopup.PopupHints p2 = new RichPopup.PopupHints();                   
                         p1.show(p2);
                        System.out.println("after showing popup");
    In logs i see both system out messages , can you guys suggest me how to get this popup displayed when fragment loading for first time and getter for c1 is getting fired.
    Jdeveloper version :11.1.2.3.0
    Regards,

    Hi,
    have you debugged the method call to prove that it is called at all? Instead of a component binding as a trigger, can you try a value property e.g. on a hidden output text component?
    Since you are on JDeveloper 11g R2, the use of JSF 2 system events also becomes possible. The system event would be added to a component on the fragment (e.g. the fragment root layout container) and then listen for the render pre-render phase.
    see: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf
    Frank

  • HTML Fragment DataSet

    I currently have a sequence of pages (screens) in an Intranet
    application, that are identical, except for their respective forms
    (layout, css, etc...). I would like to reuse all this code, except
    for the forms, using "HTML fragments". Instead of requesting the
    entire screen, the client requests only an HTML fragment containing
    the next form. No problem so far. The problem has been an
    AutoSuggest field in these form fragments. The there is a common
    dataset shared among all these screens/forms. The first screen
    works properly, but each subsequent form/fragment doesn't properly
    link with the dataset. What am I missing?

    If these fragments you are loading contain a spry:region or
    spry:detailregion, then you have to make sure you call
    Spry.Data.initRegions() after you load the fragment. You should
    also pass in the element that you loaded the fragment into to
    improve performance so that it doesn't search the entire document
    for new regions.
    --== Kin ==--

  • Client-side Memory leak while executing PL/SQL and reading from a view

    Iam noticing memory leaks in OCCI while performing the following:
    Sample function()
    1. Obtain a connection
    2. Create a statement to execute a PL/SQL procedure
    3 Execute the statement created in step #2
    4. Terminate the statement created in step #2
    5. Create a statement to read from a view which was populated
    by executing stored procedure in step #3
    6. Execute the statement created in step #5
    7. Terminate the statement created in step #5
    8. Release the connection
    The PL/SQL populates a view with fixed 65,000 records for every execution. PL/SQL opens a cursor, loads 65000 records and populates the target view and closes the cursor at the end. If i invoke the above function it results in memory leak of 4M for every call. I tried several variants such as:
    1. Disabling statement caching
    2. Using setSQL instead of newly creating second SQL statement
    3. Obtaining two separate connections for these two activities (PL/SQL exec and View read)
    4. Breaking the sample function into two, one for each of these activities (PL/SQL exec and View read).
    All the combinations results in the same behaviour of 4M memory leak.
    Iam using Oracle 10g Client/Server 10.2.0.1.0.
    Is there any known limitations in this area?

    Yes. Iam closing the result set and terminating the statement.
    My program contains layers of inhouse wrapper classes, which will take some time for
    me to present it in pure OCCI calls, to be posted here for your understanding.
    After some more debugging, i found that if the connection level statement caching is set to
    0, the memory leak is much lower than before.
    Thanks.
    Message was edited by:
    user498920

  • Is it possible to reset the cursor pointer

    Hi,
    My requirement is :
    I have a program like this
    Create or replace proc_1( out_cur out sys_refcur)
    -- local variable declarations.
    begin
    open out_cur for
    select col1,col2 from table1 where col3=4;
    fetch out_cut into l_col1,l_col3;
    --- some operations with l_col1,l_col3
    end;
    This procedure is getting called from java. when they try to open out_cur, they will get error : fetch outof sequence.
    My query is., Is there any way to fix it other than opening a duplicate cursor?

    Manjusha Muraleedas wrote:
    My query is., Is there any way to fix it other than opening a duplicate cursor?The basic flaw in the approach is the premise that a cursor is some kind of in-memory result set to a SQL select.
    It is not.
    It is a "program" that is executed by a fetch instruction - and returns output in response to that execution iteration.
    As for duplicating the cursor.. why? I/O is the single most expensive operation on a database. Why double that by creating a cursor (program) that hits the very same data twice in the same client call?
    This approach will never perform and scale.

  • Upgrading and Duplicates in iphoto 11

    I am having trouble with importing photos and getting duplicates.
    I bought a new macbook pro and copied my old iphoto library from my old computer.   I pointed iphoto 11 to my old library and it did an automatic upgrade of the library file.   Next it generated HD thumbnails.    I then went to load some other misc photos from a external drive and I selected everything in a folder and its subfolders, etc.   I was prompted, if I wanted duplicates removed and i checked yes, and do for all future actions.   However, when i do an import it loads all the photos and doesnt remove duplicates before loading into iphoto 11.
    Example.  If there are 5 files all called IMG3404.JPEG but in various subfolders of the photo folder, it loads all 5 instead 1.    I know, the duplicates are a result of bad file management over the course of years.   Problem is I have over 30,000 photos and the import will make it 5 times that.
    Is there a way I can load photos into iphoto 11 and not load duplicates as the example? 

    They are duplicate files that have been replicated over years of backups, etc.   Now trying to consolidate by importing into iphoto, but it brings in each one and doesnt recognize they are duplicates
    Each set of files are the same photo and have the same creation and modification dates
    Does that help?

Maybe you are looking for

  • Issues while adding job title  of a Business Partner through rel ship cate

    Hi friends we are getting employees data from R/3 HR . i am trying to assign the job titles to employees in CRM systems through relationship category but here i am getting error "Maintenance is only possible via an external HR system" .here if choose

  • Preview app freezing and slowing down MBP

    Since I updated to OS Mavericks my preview app has not been functioning properly. When the app is open when viewing PDFs a window (accompanied by a progress bar) pops up quite frequently that says "Saving changes... '#' documents remaining", with the

  • Darwin Streaming Server (really basic help)

    Hey, I need some basic DSS help. REALLY basic help. So, Darwin is installed and everything, and I can upload movies to the /usr/local/movies directory. When I upload them there, I can see them in the 'make new playlist' screen. However, Darwin seems

  • Lumia 630 bugs

    I am using Lumia 630 since last 4/5 months but now i am feeling some major problems . I am listing the problems below. Please help me to resolve then. And please tell me solution other then hard reset cause its not possible for me to re-download ask

  • Kt4 Ultra temp XP cooler and performance

    hola, please intruct me ive just build my kt4 ultra with an atlhon XP 2,2 and  my temps are cpu 58 C when midle loaded and system temp 52 C, i dont know i its normal, im using the cooler that comes with the cpu my question is that temp normal? when i