give advice on the collection

Hi Master,


Please help / advise me how to pass multiple reference numbers in this script?


DECLARE

I_SALEORDERNO VARCHAR2 (32767).

I_PARTNO LKM. PKG_LKM_DIGI_STACK_KEYS_PART.t_partno;

I_FACILITYNAME VARCHAR2 (32767).

NUMBER OF I_QTY;

I_USERNAME VARCHAR2 (32767).

NUMBER OF I_ORDER_BUID;

I_SERVICE_TAG VARCHAR2 (32767).

I_REF_ID VARCHAR2 (32767).

I_NEED_ASSOCIATION VARCHAR2 (32767).

I_CCN VARCHAR2 (32767).

I_SHIP_FROM_FACILITY VARCHAR2 (32767).

I_SHIP_TO_FACILITY VARCHAR2 (32767).

O_RESULT pkg_lkm_oem_common_utilities.cursor_type;

O_STATUS VARCHAR2 (32767).

BEGIN

I_SALEORDERNO: = NULL;

I_FACILITYNAME: = NULL;

I_QTY: = 2;

I_USERNAME: = NULL;

I_ORDER_BUID: = NULL;

I_SERVICE_TAG: = NULL;

I_REF_ID: = NULL;

I_NEED_ASSOCIATION: = NULL;

I_CCN: = NULL;

I_SHIP_FROM_FACILITY: = NULL;

I_SHIP_TO_FACILITY: = NULL;

O_RESULT: = NULL;

O_STATUS: = NULL;

LKM. PKG_LKM_DIGI_STACK_KEYS_PART. PRC_GET_STACK_KEY_REQUEST (I_SALEORDERNO, I_PARTNO, I_FACILITYNAME, I_QTY, I_USERNAME, I_ORDER_BUID, I_SERVICE_TAG, I_REF_ID, I_NEED_ASSOCIATION, I_CCN, I_SHIP_FROM_FACILITY, I_SHIP_TO_FACILITY, O_RESULT, O_STATUS);

COMMIT;

dbms_ouput.put_line (O_STATUS);

END;

need to pass values

I_PARTNO (0): = "K6TC1";

I_PARTNO (1): = "K17XJ";

I_QTY: = 2;


Please advise... !


Concerning

AR

874273 wrote:

Please advise... !

In this case - please take note that your keyboard is broken and the SHIFT key is stuck.

Suspicion. All the code in upper case is NOT a standard in ANY modern programming language. PL/SQL is derived from the Ada language. More appropriate to follow to PL/SQL programming standards therefore Ada standards. Which is well documented and explained.  See quality Ada and Guide of Style for professional programmers.

Tags: Database

Similar Questions

  • Give advice on the best way to create tables

    Hello

    I'm just after the best method to create a pdf document that got charts?

    I have an order form which must be converted to an editable pdf form that users can fill in electronically and email back. Currently, the document is in Excel, and while I can convert it to PDF, I prefer to create the whole thing using the PDF.

    Should what tools I use for this?

    Kind regards

    Peter

    PDF files should not be created from scratch and if you try to do you will soon discover that it is extremely difficult and heavy.

    Stick with the creation of the file in Excel (or any other similar application, such as Word, InDesign, etc.) and then convert to PDF and add form fields in Acrobat.

    Be sure to keep a copy of the Excel file, well, in case you need to make any changes to the layout of the file later.

    If you don't do this then you can order replace Pages use in Acrobat to insert new pages (static) on the 'old' in your PDF file, that will keep all the form fields and scripts of tact. You need to just adjust the locations or the size of the fields, where this is necessary.

  • Give advice on the autonomous role on ESXi 4.1

    Hi all

    I use ESXi 4.1 standalone (no VC).

    I noticed that the role on 4.1 is now rather different from 4.0.

    It seems that I can not find the correct setting to allow users to CREATE of NEW virtual machine. The button cannot be clicked by users.

    I had access to these permissions:

    Data store: allocate space, datastore, operation of low level file browser

    File: all THE

    Host: local operation: all THE

    Network: all THE

    vApp: ALL

    VM: ALL

    Help me pls on what Miss me?

    Thank you.

    Try the resource > VM add to the list of resources and tasks > create task.  You can also refine the rights of network and host that you have given.

  • Can you please give some advice on the ToolTip used in the new packaged applications

    Hello
    I use apex 4.1 theme 23.
    I would use the ToolTip used in the new packaged app.
    Can you please give some advice or the "Details" on ToolTip, used in the new packaged applications. for example: go live checklist request.
    Once we fly over "Check list items" region. We get the tootip.

    1. how to find the class "detailedStatusList".
    2. how to find "detailedStatusListToolTip();" JavaScript function used in "execute when Page Loads.
    3. is there a tool to generate the source in the region to "check list items.

    I don't know if there are more, I need to know...

    * the tooltip plugin isn't solid...

    Kind regards
    Water

    Good morning, water,

    My goal is to use it in IR for the column notes. I can't show all the notes on the report. so I use RPAD to show only the first words. and the rest should be available by using the ToolTip.

    Fact :D

    You need to use SUBSTR to restrict the notes to a few words, not RPAD.

  • I changed the IR query as follows...

    select
    Deptno,
    Dname,
    Loc,
    substr(notes,1,25) || '<div class="long-notes" style="display:none;">'||notes||'
' as "Notes" from "DEPT"

  • Column attributes: Note > formatting of column > Expression HTML

    <div class="short-notes">#Notes#
  • Edit Page > JavaScript > function and global variables declaration

    function setNotesToolTip() {
         this.xOffset = 0; // x distance from mouse
         this.yOffset = 10; // y distance from mouse
    jQuery("div.short-notes").hover(
         function(e) {
              var insideText = jQuery("div.long-notes",this).html()
              this.top = (e.pageY + yOffset);
              this.left = (e.pageX + xOffset);
              $('body').append('
    ' + insideText + '
    ' ); $('div#notes-tooltip').css("top", this.top+"px").css("left", this.left+"px").delay(500).fadeIn("fast"); }, function() { jQuery("div#notes-tooltip").fadeOut("false").remove(); } ).mousemove( function(e) { this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset); jQuery("div#notes-tooltip").css("top", this.top+"px").css("left", this.left+"px"); } ) }

  • Edit Page > header and footer > footer text

    <style>
    div#notes-tooltip {
        background-color: #F8F8F8;
        border: 1px solid #AAAAAA;
        border-radius: 3px 3px 3px 3px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
        position: absolute;
        width: 420px;
        padding: 4px;
    }
    </style>
    

  • And finally called setNotesToolTip(); while the page is loading. (Run when the Page loads)

    Kind regards
    Hari

  • Suddenly, my Thunderbird does not list the collected addresses and don't 'Always allow remote content' addresses.

    (1) under address book, used for the book of MAC OS X, as well as the collected addresses and a third list, I can't remember.
    Now it lists only MAC OS address book.

    "(2) if I click on"Always allow remote content"it won't let me click on 'OK', I think that it says in the top left corner" adds: "but gives me an empty list.

    Thank you!

    If I'm more mac savy you we're in trouble. The last Mac I used has a black and white screen and used the floppy 3 1/2 "

    See Troubleshooting in the Thunderbird Help menu, and then click the display folder of your profile (Thunderbird knows where he is, even if I'm not) the History.mab file is your collected addresses.

  • Need some advice on the best way to do specialized source distribution

    I need to give a customer a labview block, they can use our material in their own labview code that will read the (encrypted) data net senor off the coast and the flow of data in a form usable output.  I built a vi that can be used in a loop, a bit similar to the block of canned labview data acquisition that can be used to acquire data from products OR.

    There are many sophisticated (and secret) algorithms going on in the background which make sense data and translate them into a usable data table, but also configure the hardware itself. Accordingly the only final vi I prepared to distribute the client makes use of Subvi about 20. Almost none of these subvis could be ideally be reconverted in plain code in main vi, nor what I want to do this.

    The rules of the game is the following: I want to give him the block I created to use its own code, without him to see what's happening inside the vi.  I can deny him access to the block diagram/s, no problem, but I don't want to give him access to the subvis, to use, or even to know their names - preference they would be hidden or otherwise pre-compiled. Preferably I would just give him the main block only, perhaps with some support files that would be entirely opaque to him.

    Looking for advice on the best way to go. There is an elegant solution to this problem? For example, it would be better to compile the block as a .dll file, and then write a wrapper vi any?

    Have you thought of creating a packed library? You can also password protect your code. You can delete the distributed code block diagrams. You can use a combination of the above as well.

  • Advice on the restructuring of code to avoid the downturn over time

    Hi, I am a new user of LabView, you want some advice on how to better structure the program I wrote and which is used to perform a hydrostatic test arrangement. Data are collected on a module of AI cDAQ 9207 and a cDAQ 9474 module is used to control the two valves that subsequently controls pressure in and out of the test Chamber. I enclose my first version of the reference code.

    What the VI is supposed to do when the user of the weapon system and strikes then the execution, the program switch will cause a transition of the test chamber through several States corresponding to the levels of different pressure for some time. Time curve vs pressure is written to a file of measures. I built using a state machine structure.

    My problem is, during the initial trial, when the duration of the test was about 5 minutes or so, the program went very well. However, once I started to test the length of the actual test of 2.5 hours, I noticed the program running slower and slower as time progressed to the point where it would take several seconds for each iteration of the loop, then by accident about an hour or two in the test. After scouring the articles and messages, I suspect the main culprit is the diagram of waveform and to a lesser extent DAQ assistant.

    While I need the loop structure data collection and case to run pretty quickly (preferably the order a few hundred s/s) I need the code to be able to react to changes in pressure in the room quickly enough, the actual data, that I need to store and display the graph can be as slow as a sample per second or even longer. My guess is at this point that I have to rebuild the program using some sort of architecture of producer/consumer, I'm looking for some advice on how best to structure the program.

    Data acquisition obviously belongs in the producer loop that will run at a fast enough pace and there will be a consumer loop that will run at a much slower pace for the Bulletin Board writing to the extent of the file vi, but where should I put the case of structure state machine which currently controls the valves? Should put in the loop of the producer since it must run at the same fast pace as the collection of data, so it can react to changes in pressure or should I build another loop of consumer for him? What other indicators (pressure and Boolean) and controls on the front panel, they should be on another loop operating at a medium speed I want to respond to a faster pace than the data to the chart/write the loop, but they do not need to be as fast as the data acquisition loop?

    Finally, I'm not quite sure what would be the best way to reduce the sampling rate of the data that I have in fact appear on the graph and the store in the file, it wouldn't make sense to create another task of measurement that samples at a rate below just for that purpose. Suggestions and advice would be greatly appreciated! Thanks in advance!

    Bob

    My guess is that if you monitor the use of memory over time, you see that going up, Yes? Everything is is always a good idea to get rid of the express VIs, I would look for the problem of slowdown in the structure of the case. You repeatedly open and never close tasks which are created using some DIO channels. Hnece each time that the loop more memory is allocated. Try to move creating channel screws out of the loop, then the tasks are created once before the start of the loop and then written to as required inside the loop - and don't forget to delete tasks once the loop over.

    Mike...

    PS: You are right with your comments regarding the structure of the producer consumer. Basically it break up as things get quickly (DAQ IO) that there is in a loop, while the user interface and the stuff that can take a long time (such as the data record) are in another loop. You can even have three loops with one for the acquisition of input data and the other for the digital output.

    PPS: Finally don't forget that even if the structure of consumption of the producer is usually represented with everything in a single diagram, there no need to be. I wrote a lot where each loop is in his own VI which is run dynamically, then the application starts.

  • We have created a responsibility custom to access the Collection of quality RESP results, we get an error - you have enough privileges for the operation. Please contact your system administrator.

    Hi all

    We have created a responsibility custom to access the results of Collections only HTML page.

    Details of the liability and the Menu are also less

    Name of the RESP: XX QUALITY

    Application: Quality custom

    Menu: XXQA_QUALITY

    and there is no attached grp applications.

    Definition of menu:

    Menu name: XXQA_QUALITY

    Description of function for the submenu SEQ invites

    10 quality Workbench results results collection begins Page quality Workbench results Start Page

    quality of view finds quality results 20 results display quality results

    We show only this specific user responsibility and whenever it tries to access the page "Results from the Collection" he gives us an error.

    "You have enough privileges for the operation." Please contact your system administrator.


    If we attribute an RESP of super user of quality to this user, it allows to access the form.


    Can you kindly help us to find a solution to this problem.


    Thank you

    Maury

    Hi all

    I guess I found the answer,

    I need to join all the submenus that are part of the HTML Page.

    Results from the collection Results of quality Workbench Start Page
    Nonconformities Quality Workbench nonconformities homepage
    Corrective actions Quality Workbench action homepage
    Consultation of lots of Skip Lot of Skip quality Workbench Start Page

    Have they added those. and it worked.

    Thank you

    Maury

  • Need to update the collection

    Hi gurus

    I'm stuck on a problem related to the collection.

    I have the following structure.

    Sample data

    DROP TABLE dept2;
    DROP TABLE dept2_dtl;
    CREATE TABLE dept2
    (DEPTNO NUMBER (2),)
    DNAME VARCHAR2 (14).
    LOC VARCHAR2 (13),
    DEPT_ID NUMBER (5))
    ;
    -------
    CREATE TABLE dept2_dtl
    (DEPTNO NUMBER (2),)
    DNAME VARCHAR2 (14).
    LOC VARCHAR2 (13),
    DEPT_ID NUMBER (5))
    ;

    CREATE SEQUENCE dept_seq
    START WITH 1000
    INCREMENT BY 1;

    -----------

    Code so far

    DECLARE
    TYPE t_dept IS TABLE OF dept2% rowtype;
    v_dept t_dept;
    cursor c1 is select deptno, dname, loc, null of the Department;
    BEGIN
    OPEN c1;
    loop fetch c1 COLLECT LOOSE v_dept limit 1000;
    exit WHEN v_dept.count = 0;
    ForAll indx IN 1.v_dept.count
    INSERT INTO dept2
    (DEPTNO,
    DNAME,
    LOC           ,
    DEPT_ID)
    VALUES
    (
    v_dept (indx). DEPTNO,
    v_dept (indx). DNAME,
    v_dept (indx). LOC,
    dept_seq.nextval
    );
    -This section contains an exception


    BEGIN

    ForAll indx IN 1.v_dept.count
    INSERT INTO dept2_dtl
    (DEPTNO,
    DNAME,
    LOC
    -DEPT_ID
    )
    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC
    OF the double
    where v_dept (indx). DEPTNO = 10;
    End;
    -Now, I want to add

    end loop;
    END;

    The above code work fine, but I want to add dept2. DEPT_ID in table of details that are dept2_dtl but unable to reference it. I need to change a code in my second insert something like below:

    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC,

    v_dept (indx). DEPT_ID

    OF the double

    where v_dept (indx). DEPTNO = 10;

    but the problem is that I don't have DEPT_ID in my collection at this time, please advice. Thank you

    I'm stuck on a problem related to the collection.

    I see NOTHING in what you posted indicating that the collections or PL/SQL is even necessary.

    The first part of what you are doing is just selecting data in DEPT and inserting into DEPT2 with a new value in the sequence.

    Then you say you want to insert the same data into another table that you just inserted in the first table.

    Why don't you just use SQL to query DEPT and do insertion in DEPT2?

    Even if you were to use the collections and that the solution is pretty simple, don't you think?

    This is the cursor you have defined:

    cursor c1 is select deptno, dname, loc, null of the Department;

    And that's what you say, what is the problem:

    the problem is that I don't have DEPT_ID in my collection right now

    So FIX THIS PROBLEM! is not the solution the more simple, just to add DEPT_ID to this collection?

    Define your collection on the projection of CURSOR and add DEPT_SEQ. NEXTVAL in the cursor query.

    Now you have DEPT_ID in the cursor AND in the collection, you can use the collection to INSERT in the two tables.

    DECLARE

    cursor c1 is select deptno, dname, loc dept_seq.nextval deptid of the Department;

    TYPE t_dept IS TABLE c1% rowtype;

    v_dept t_dept;

    BEGIN

    OPEN c1;

    loop fetch c1 COLLECT LOOSE v_dept limit 1000;

    exit WHEN v_dept.count = 0;

    ForAll indx IN 1.v_dept.count

    INSERT INTO dept2

    (DEPTNO,

    DNAME,

    LOC           ,

    DEPT_ID)

    VALUES

    (

    v_dept (indx). DEPTNO,

    v_dept (indx). DNAME,

    v_dept (indx). LOC,

    v_dept (indx). DEPTID

    );

    ForAll indx IN 1.v_dept.count

    INSERT INTO dept2_dtl

    (DEPTNO,

    DNAME,

    LOC           ,

    DEPT_ID

    )

    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC, v_dept (indx). DEPTID

    OF the double

    where v_dept (indx). DEPTNO = 10;

    end loop;

    END;

    The big question is why you are using this TERRIBLE to begin implementation?

  • How we sort the Collections of the library?

    Currently, my Collections are in no particular order.

    I had hoped I could drag them into the order that I need, but so far I could not find a way to do it.

    Advice would be appreciated.

    Cliff

    If you click on the + sign to the right of "Collections", you have two choices... Sort by name or sort by type.

    Other than that, you can create games in the Collection implement hierarchies (as you can do it for files in your operating system).

  • Best network design... Need advice on the best use of NIC

    I'm new to the concept of Distributed Switch so I need advice.

    Our current environment is the result of a vCenter 4.1 and ESXi 4.1 Enterprise Plus, but we are just using the standard vSwitch (1 for vMotion/Console and 1 for virtual machines).  When the distributed switch came out, we were warned that a vDSwitch could cause us problems if the server vCenter or database is down.  We could not connect directly to the host and make network changes because the vDSwitch is set in the database.  That's why we stayed with the Standard vSwitch only.

    Our farm is quite small, only 5 hosts but we run around 100 mV in this regard.

    We use currently servers HP DL385 G7, which have 4 cards integrated network, and we have a map of installed NETWORK 4 port card.

    I use the NETWORK 4 EtherChannel ports and trunk card to our virtual machines.

    I am currently using only 1 network card integrated for vMotion and 1 for the Service Console and they all have two of the other defined as secondary.

    This configuration has worked very well for us, but I realize that the latest version of ESXi has some new features that we could use.

    NEW CONFIGURATION

    I'll put up a new vCenter 5 and ESXi 5 environment and I am considering using the switch distributed instead of the usual vSwitch we use.  I'm also eager to take advantage of the multiple NIC vMotion.  All our cards are 10/100/1000 MB capable... No. 10 GigE.

    I think... use that map 4 NETWORK ports for my EtherChannel/trunk for just as our virtual machine before, but this would be set to vDSwitch1

    The mixture of my 4 other integrated ports, it's causing me grief.  Should they be on a standard vSwitch or vDSwitch?  Use 2 ports for vMotion and 2 for the Console?  I really thought to use 3 ports for vMotion and 1 Console port.  I could put the Console port to use one of the vMotion ports such as adapter of standby is... I'm so confused freaking!

    Any recommendations on how I should put up?

    Hello

    Given that you can't split your vmnic for each vSwitch I would recommend either keep configuration simular with the knoweldge if a whole nic fails, you will take a failure or as autumn has already been mentioned on 'Origin Port ID'. Lets do this out and give a little better example

    Current configuration

    vSwitch0

    VMNIC0 - NETWORK interface integrated - Service Console

    VMNIC1-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC2-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC3 - NETWORK interface integrated - VMotion (eve of Console of Service) (different IP or VLAN?)

    vSwitch1

    VMNIC4 - extension PCI NIC - Etherchannel trunk - PortGroup - VMNET

    Extension VMNIC5 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Extension VMNIC6 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Extension VMNIC7 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Now, to captured to eliminate any single point of failure that you could do is break your Etherchannel trunk and back this vSwitch from Port ID and Setup VMNIC2, VMNIC3, VMNIC4, VMNIC5 as vSwitch1 for your VMNET. Then the cable to multiple switches eliminate any single point of faiulre. If your standard configuration would look like this

    vSwitch0

    VMNIC0 - on - Board Service Console

    VMNIC1 - Board - Vmotion

    VMNIC6 - extension PCI NIC - Vmotion

    VMNIC7 - extension PCI NIC - Vmotion (standby Service Console)

    vSwitch1

    VMNIC2 - VMNET

    VMNIC3 - VMNET

    VMNIC4 - VMNET

    VMNIC5 - VMNET

    So to finish any request for psyhical nics on this particular configuration the Port ID of origin essentially around robins. If during your first VM is online it will be use VMNIC2 and nic forever, until a failure, in which case he will grab the next nic online. When your second VM is online it will use VMNIC3 forever, until a failure and so on. This still will give you around the same way through to as far as networking is concerned. However if you are attached to the trunk, etherchannel 4 GB and can obsorb a failure in case of failure, the network card 4 ports can stay.

    Distributed switching Setup

    Allows you to see how you can switch to distributed switching

    Let's start first of all, you can have EVERYTHING in switches distributed even the service console port if you wish. The resason why some people do not like to do this with the service console port is because IF your database is broken you cannot make any changes to the distributed switch. However it will not prevent a feature to your distributed it switches simply means, you can change them. Also if just getting worse and your DB has been declining for some time and you REALLY need to make a change to the service console port you can go into the console and change back to a standard vSwitch if need be. This allows the said look at some standard configs, you can work

    vSwitch0 (Standard)

    VMNIC0 - Service Console Port (Port Original ID or standby)

    VMNIC4 - Service Console Port (Port Original ID or standby)

    vSwitch1 (Standard)

    VMNIC1 - Vmotion

    VMNIC5 - Vmotion

    Distributed switch

    VMNIC2 - VMNET

    VMNIC3 - VMNET

    VMNIC6 - VMNET

    VMNIC7 - VMNET

    Now this config using originating port ID and breaks your etherchannel if you want to keep your configuration with the etherchannel it can look like this

    vSwitch0

    VMNIC0 - NETWORK interface integrated - Service Console

    VMNIC1-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC2-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC3 - NETWORK interface integrated - VMotion (eve of Console of Service) (different IP or VLAN?)

    Distributed switch

    VMNIC4 - VMNET

    VMNIC5 - VMNET

    VMNIC6 - VMNET

    VMNIC7 - VMNET

    Other changes to the configuration may also put the vmotion in distributed witch the VMNET but you would to VLAN, or you could create a second Distributed switch and put it as long as there are 2 network cards. It can go either way. The main advantage of a distributed switch is that it brings all of your settings with you in any host. So trade ect all your VIRTUAL networks is really easy to reproduce if a new host is brought online, all you have to do is to add the new host network cards in the distributed switch and your config is done. With that in mind lets look at the service console. This console is always configured on EACH Setup program that out you of the box if not that you really need to have these parameters transported on several hosts that is another reason why most people just don't. VMotion is up to you, I have seen and configured two ways, it all depends on how simple you want to keep it or think of switching / vlaning / port of groups.

    If you have any questions please let me know, I hope this has helped

  • bind variables using the values in the collection

    Hi the gems... Good afternoon...

    Can we not use plsql values in the collection in the USING clause to pass the bind variable values...

    I wrote the procedure to kill all sessions that cross the parameter OPEN_CURSORS below. the query, I found only three sessions that exceed. But when I execute my procedure so those are not removed, execution gives me an error also. He simply executed but no session has been killed.

    My part of the code is as below:
    ..........
    ..........
    ..........
    OPEN rc FOR v_sql;
        FETCH rc BULK COLLECT
            INTO v_tt_sessions;
        LOOP
            EXIT WHEN v_tt_sessions.COUNT = 0;
            FOR idx IN 1 .. v_tt_sessions.COUNT
            LOOP
                EXECUTE IMMEDIATE 'alter system kill session '':a,:b'' immediate'
                    USING v_tt_sessions(idx).sid, v_tt_sessions(idx).serial#;
            END LOOP;
        END LOOP;
    CLOSE rc;
    .........
    .........
    However, when I replace the bind variable with the values in the collection, then it works:
    ..........
    ..........
    ..........
    OPEN rc FOR v_sql;
        FETCH rc BULK COLLECT
            INTO v_tt_sessions;
        LOOP
            EXIT WHEN v_tt_sessions.COUNT = 0;
            FOR idx IN 1 .. v_tt_sessions.COUNT
            LOOP
                EXECUTE IMMEDIATE 'alter system kill session '''||v_tt_sessions(idx).sid||','||v_tt_sessions(idx).serial#||''' immediate';
            END LOOP;
        END LOOP;
    CLOSE rc;
    ..........
    ..........
    Please suggest if there is something wrong in my code first. I tried, but could not get any inadequacy.

    But the doubt is when I removed the variable of liaison with the values of the collection hard-coded (in my first post), then this process works very well. But I want to use bind variables.

    You cannot use bind variables in this situation. You can use bind variables for the DML statements.
    I'm surprised that you have no error, but I guess that this block of code explains everything:

    EXCEPTION
        WHEN OTHERS THEN
            dbms_output.put_line(SQLCODE || ' : ' || SQLERRM);
      
    

    You concatenate values to build a single command ALTER SYSTEM and run, just like your second attempt.
    You don't need to have a dynamic cursor either.

    for r in (
      select v.SID, u.serial#, count(v.sid)
      from v$open_cursor v, v$session u
      where v.CURSOR_TYPE='OPEN'
      and v.sid=u.sid group by v.sid, u.serial#
      having count(v.sid)>190
      order by count(*) desc
    )
    loop
      execute immediate 'alter system kill session '''||r.sid||','||r.serial#||''' immediate';
    end loop;
    

    And of course, I agree with the comments of Keith (assuming that this is not just an exercise).

    Published by: odie_63 on October 16, 2012 14:03

  • About the collections

    Hello

    A created collection exists in all sessions, but the data are seen only in the session that created the collection?
    I want to use the collection, and I wonder if I need to give a unique name to a collection. If I create a collection in a session, can it be created with the same name by other sessions?

    Thank you.

    A collection is always associated session. There is no way to share it between sessions. To do this, you use a table.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Give advice on building my new computer

    I am currently running windows XP and Photoshop CS3 (CS4 is also installed on the same computer)... the two 32 bit

    A few weeks ago, I had problems with the photoshop slowing and showing a significant drop in performance % (I have 4 GB of ram installed).

    I posted this problem here and the general counsel was that I should expect this slowdown and the solution was to change to Windows 7 and photoshop CS4 (64-bit version), I decided to follow this advice and it was close to Christmas, I thought I'd buy me a gift at the beginning

    I talked to the man in the shop (I noticed the previous warnings about men in computer stores!) and he sugested existing a system to be networked in my system. Before I give it to the llclear to assemble the system I would be grateful for more advice, comments, criticism or suggestions replacement on the proposed system, which is:--

    Motherboard ASUS P6T7 WS SUPERCOMPUTER Socket 1366 Core i7 DDR3 ECC. No ECC, a buffer

    Processor Processor Intel xeon Quad core 3.3 GHZ boxed processor W3580, 6.4 GT/s QPI, 8 MB memory cache LGA 1366

    Memory Crucial 12 G Kit (4 GB x 3) 240 DIMM, PC3 DDR3 PC3-8500

    Memory RAM of G.skill Turbulence Cooler cooler

    Graphics card (he suggested 2 and I don't know why) ASUS ENGTX295/2DI/1792MD3 (in Sli configuration)

    Disks hard hdd 1 (TO RUN WINDOWS AND APPLICATIONS) OCZ vertex Turbo Series 120 GB SATA ii 2.5 "disk solid stae

    hard disk 2 (scratch disk) GCO Vertex Turbo Series 60 GB SATA ii 2.5 "SSD drive

    HHD 3 (to store data) 2 TB 3.5 7200 RPM Western digital Serial ATAII - 300 disc HARD 64 MB cache (WD2001fass) Caviar Black

    SuperFlower 1200W POWER supply pyramid 80 more modular power supply

    Pioneer black SATA Blu Ray double layer drive optical drive

    ASUS WL - 167 G USB network adapter wireless network

    Windows 7 operating system

    Network (I don't know why this appears twice) Billion BiPAC 5200 G R4 802.11 g ADSL @ + firewall router

    I am a photographer with a knowledge of computers very slightly less than my 7 year old son!

    The man in the shop tells me that this would be the whiskers of cats and I'd be the envy of every photograper in my street

    The cost (including the installation of the software, Setup day and 48 hours Burn in test is appx a $12800 (about $1100.00 US))

    I would be very grateful for any comments or reviews.

    Ron Bentley

    SSDS are the thing coming but inform opinion seems to be at the moment:

    1. they are not particularly advantageous for the specific requirements of Photoshop.

    2. they are not competitive in terms of $ per GB.

  • Elements 8 support for the Collections of Album Starter

    I have a LOT of photos and Collections (I think they are called elements albums?) of the Starter Edition 3.2 which I loaded successfully to the new Windows 7 machine. The Collections has not been transferred. I think the upgrade to 8 items, if I can transfer the equivalent items Collections. The Collections still exist on the old XP machine.

    The elements does it take?

    Thank you

    Hidden files has been selected. Tried again... Computer search for ' pse-conversion-Journal *'... no files found.

    Here is the sequence:

    1. in PSE *... Machine XP > organize > no items match this combination... Define the filter filter settings > Media Type > photos & projects > Hidden Files > show all files.

    It is not clear in your message - not PSE, you configure Windows Explorer, to view hidden files in Windows Explorer, as described in this technical note:

    http://kb2.Adobe.com/CPS/404/kb404856.html

    The programs are on the C: drive. My Docs (including photos) on the E: drive. Been this way for 2 years, no problem with the PSA.

    Don't forget to get the conversion log on the C and E drives.  As described in the FAQ I posted, it is normally located at:

    \Local Settings\Temp\pse-conversion-log*.txtuserC:\Documents and Settings\

    If you redirected My Documents, I do not know where it would be.  Adobe products do not always respect the conventions of Windows, so search all drives C and E.

    The conversion log will give you good clues about what could go wrong and eliminate a lot of unnecessary troubleshooting.   But if you really can't find it, try step 3 of the FAQ:

    http://www.johnrellis.com/psedbtool/Photoshop-elements-FAQ.htm#_Problems_converting_catalo gs

  • Maybe you are looking for