Run procedure:=Top level procedure/function specified; cannot have subparts

I get this error when trying to run any procedure I've used ODT11 to make.. I literally right click the icon of the procedure in the server explorer tree and choose Run, and get the error. If I choose Run Debug, VS2008 hangs

Can't reproduce:
1. create or replace FUNCTION ECHO1
  PARAM1 IN VARCHAR2
) RETURN VARCHAR2 AS
BEGIN
  RETURN PARAM1;
END ECHO1;
2. Initiate run dialog, then either
2a edit assigment to
PARAM1 := 'a1';
or
2b edit "Input Value" column
3. Press OK
4. Witness
Connecting to the database gbr30060_scott.
Process exited.
Disconnecting from the database gbr30060_scott.
in the log
5. Witness the "Output Variables" grid to exhibit "a1" .

Similar Messages

  • No procedure/function decomposition in packages in Rel 2

    I noticed that one of the changes since the last release was:
    "View Package Spec and Body - now decompose to display procedures and functions "
    I tried doing this in Rel 2 but there is still no decomposition of procedures/functions.Maybe I have misunderstood what was being said ?
    Also, if you click the package spec, a subfolder labelled "loading..." appears which just stays there ...
    Platform: Xp SP1
    Raptor version:1.0.0.07.96

    Thats a very good point about navigating to the point in a package spec of body where the sub-object resides.
    In cases where packages are thousands of lines long and have numerous procedures/functions, debugging code is difficult if you cant jumpt to points in code that the navigator shows you are there.
    This is one of the few things that plsql navigator does better than Toad in my opinion and I'd happuily use Raptor over both of these if it can emulate what was asked in the last post.
    Am using build 08.97

  • Running multiple vi's in top level app at same time.

    hello, i am wondering on how to run multiple vi's under the same top level application.  if i have a top level application that has multiple buttons that call other vi's, is there a way to minimize one of the sub vi's and open another.  i keep having problems because i think that the top level application needs the first sub vi to close befor you can call another sub vi.  i attach an example i found in the ni examples as an example.  thank you.
    Attachments:
    Dynamic Load Example.vi ‏52 KB

    Thank you for the response.  I tried to use this feature but i think i am doing it wrong.  Do you put the method in the sub vi's or in the top level application.  also what should you wire to the Auto Dispose Ref input for the Run VI method.  Thank you

  • Add a list from a subsite to the top level site SharePoint 2013

    Hello,  I am trying to display a calendar from sub site to the top level home page and cannot seem to make it happen.  I have opened the calendar in SPD and saved that as a webpart file to my desktop and then uploaded into the app gallery and web
    part list and when I go to add it to the top level home page I get the following error:  'List does not exist' 'The page you selected contains a list that does not exist.  It may have been deleted by another user."  Any idea? 
    I am running 0365 w/SharePoint 2013.
    Thank you!
     

    Hi,
    Please perform the steps below:
    Access calendar list in subsite, in the Customize List tab, click Edit List. It will open SharePoint Designer.
    In Views tab, click Calendar, it will open list view in Advanced mode, and you will see code.
    Delete the part between <ZoneTemplate> and </ZoneTemplate>
    click INSERT in the toolbar > DataView > click calendar list > List View Tools bar appears in green color.
    Click WEB PART, save web part to site gallery (ensure you have site-level admin permission)
    Access root-site, insert web part to page, the web part is in Miscellaneous category.
    For clearly:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Front panel of a vi pops up when i start my top level vi how can i stop this

    i have a vi that whos front panel should display when the user clicks a front panel button(test instructions),
    however this vi pops up when i run the top level vi. I can manually close the vi, but how do i stop this?
    i tried modifying the Sub VI Set up properties, but that doesnt work.
    Solved!
    Go to Solution.

    Hi jknapp,
    As egraham has pointed out, you can customize the window appearance of your sub VI from the VI Properties.  If you go to File » VI Properties, then under Category select Window Appearance and then Customize..., you should be able to control how the sub VI appears.  Hope this helps!
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Can we hide filter in Search Master agreements standard top level query?

    Hi Experts, 
    I have a requirement to hide flter in standard Search Master Agreements top level query.  See below screen shot
    I have an idea how to delete filter in query but when i have added that query to top level navigation i don't have any idea.
    So i want to hide Business Unit & Region filter in Search Master Agreement query when it is in top level navigation.
    If anyone have idea please share with me how to hide.
    Thanks,
    Lava

    Hi Lava,
    It is not a filter but this a Standard field which is coming from the Master Agreement.
    So, you cannot hide or even delete any field.
    But if it is a custom field you can hide it by inactivating the respective field in Extension Defination.
    Please let me know if you need any assistance.
    Thanks,
    Raj.

  • What is the criteria for a post to show up in the top-level MacBook area?

    I thought that the newest posts from the "Using your MacBook" section always showed up in the top-level MacBook section (here):
    http://discussions.apple.com/category.jspa?categoryID=218
    But I have noticed several threads that aren't showing up in the top-level area, even though they have new posts. Has the behavior changed recently??? What is the criteria for getting your post to show up in that area? It seems to be the place where you get the most answers...

    The appropriate place for a question about the functionality of the Discussions itself is the Feedback About Discussions forum:
    http://discussions.apple.com/forum.jspa?forumID=1076
    A quick glance at this forum shows each of those topics have had at least 9 replies in less than 24 hours.
    -Doug

  • DFS-R Top level NTFS Permissions

    Hi,
    As part of my setup, I'm trying to implement a new DFS-R share between 2x Windows 2003 R2 and 1x 2008 R2 servers
    I've been experimenting with the DFS-R, and I've found that if I try to change the NTFS partitions of the top-most folder, then these permissions are not replicated to the other duplicates on the other servers. Sub-file and sub-folder Perms are.
    I've also found that if I do modify the top-level folder, than that server stops replicating to the others - with no errors in the event logs !  Disaster !!  In my testing, all I did was add another users read access, and then that stops replication!!
    So - if I need to control the top-level perms, do they all have to be in sync and setup manually ?

    Hi Shaon,
    Sorry I had to actually setup the server on the remote site.  So no - I'm still seeing issues.
    I ran that DFSutil on serv14. I don't know why it doesn't show the ClientApps DFS replication.
    2 entries...
    Entry: \Ubiq-serv1\Users
    ShortEntry: \Ubiq-serv1\Users
    Expires in 24 seconds
    UseCount: 1 Type:0x81 ( REFERRAL_SVC DFS )
       0:[\UBIQ-SERV1\Users] AccessStatus: 0 ( ACTIVE TARGETSET )
    Entry: \ubiquisys.local\sysvol
    ShortEntry: \ubiquisys.local\sysvol
    Expires in 562 seconds
    UseCount: 0 Type:0x1 ( DFS )
       0:[\UBIQ-SERV14.ubiquisys.local\sysvol] AccessStatus: 0 ( ACTIVE TARGETSET )
       1:[\UBIQ-SERV1.ubiquisys.local\sysvol] ( TARGETSET )
       2:[\ubiq-serv9.ubiquisys.local\sysvol]
       3:[\ubiq-serv8.ubiquisys.local\sysvol]
       4:[\UBIQ-SERV10.ubiquisys.local\sysvol] ( TARGETSET )
    DfsUtil command completed successfully.
    I'm also seeing folders/files not replicate between 14 and 9.  Some do, some dont. Seems to be zero byte files causing most of the issues.

  • Create view that shows resource work in hours per month for top level tasks on the project

    I'm relatively new to project so hopefully this is easy. 
    The management for the organization I am working at now wants me to break out every resource on the projects hours by top level tasks per month. Resource usage gets very close but I can't figure out how to make it show only the top level tasks. Does anyone
    have any ideas on how to do this?

    Hi Nick,
    I'd suggest (assuming you're working with Project Standard, not connected to Project Server) to generate a visual Excel report (project tab of the ribbon, then visual report), choosing the Budget work report template. Then in Excel, inserting the resource
    and task column, you'll see the work consolidated at any task level by resources.
    See reference below:
    http://blogs.msdn.com/b/project/archive/2006/05/08/visual-reports.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Format Text tab is missing from Edit on Top Level Site home page

    Hello,
    Hoping for some help - not sure where to go with this.
    I've been working on a SharePoint site for my company.
    I need to change the top level site main page text layout to 3 columns.
    I am pretty sure I was able to do this a few days ago but now when I edit the page the Format Text tab is not there.
    I can get it on all my sub sites, just not the top level site.
    I must have screwed this up somehow but I haven't a clue as to how to get it back.
    Thanks
    Steve

    Hi Steve,
    It sounds as though the site template for your root web is a team site or general collaboration site that is using content pages stored in the sitepages library. Is that correct? If you are using publishing features than you could set a custom layout in
    the "pages" tab, but it sounds as though you do not have this feature.
    A workaround could be to create a new page with 3 columns, copy your homepage content to this new page and finally set the new page as your homepage.
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield

  • Only detect presence or absence of top level folders.

    If a top level folder is missing, please have Lightroom assume that all subfolders are missing on revmovable drives. If the drive is reattached and LT sees the top folder again, please let it assume that all the subfolders are there also, until we use a file that is not actually there.
    Long winded waiting on drives after reconnection is not necessary. Or at least give us an option to tell Lightroom that the drive is actually there, don't bother checking further.

    Unfortunately it does not working. I am using jboss AS 7.
    Structure details:
    - ear contains war
    - the war contains the beans.xml (with alternative entry) in WEB-INF
    - jar B is located in war in WEB-INF/lib (jar B contains also beans.xml in META-INF)
    - injection point is in a JSF controller (jar in WEB-INF/lib in war)
    Always I1 is injected. But I do not know if I explained it clearly. I1 is always present. I2 is optional but shall have a higher priority.

  • Function does not have a body

    Hello, i have a problem running this program. an error "function does not have a body" pops up, do you guys know how i can fix this?
    stop();
    import flash.events.MouseEvent
    start_.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void
    gotoAndStop(1,"Scene 247");
    gotoAndStop(1,"Menu");

    no curly brackets holding the code:
    try this
    function onClick(event:MouseEvent):void {
    gotoAndStop(1,"Scene 247");
    gotoAndStop(1,"Menu");

  • To run mutipal SQLs in one procedure / function

    Hi,
    First of all, your help and efforts will be highly appreciated!
    I am new to the Oracle world and learning to write PL/SQL with real world problems.
    This is what I am facing now:
    I have a bunch of SQL scripts need to run several times a year, they are simple and just to create/rebuild indexes on different tables. samples as below
    CREATE INDEX ST_CODE_INDX_JAN2013 ON TREE_JAN2013
    (CODE)
    NOLOGGING
    TABLESPACE ST_LRG_INDX
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
    NOPARALLEL;
    CREATE UNIQUE INDEX ST_ID_INDX_JAN2013 ON RECORDS_JAN2013
    (M_ID)
    NOLOGGING
    TABLESPACE ST_LRG_INDX
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
    NOPARALLEL;
    And in total we probably will need to run around 100 scripts like this every time. Basically what we are doing is to import new tables every time and recreate/rebuild indexes. As you may see in the sample scripts above, all tables keep the same suffix but different table names. So, for now, what we are doing is to manually modify the script to reflex changes then kick it off.
    Now, how can I create a procedure/function stored in database and waiting for a EXEC command to pass the suffix and then run automatically?
    Once again, appreciated your great help!

    Use DBMS_STATS package instead of 'analyze'.  'ANALYZE' is deprecated and may not exist in future releases.
    Again - what you are trying to do (build tables/indexes on the fly) is extremely wrong.
    Add a DATE column and keep everything in one table.  You can then just add the PARTITION clause for EE instances.
    (against my better judgement)
    Two methods exist to run dynamically generated DDL statements:
    EXECUTE IMMEDIATE
    DBMS_SQL -- I'm not 100% sure on this one. read the manual.
    If you are dynamically generating the SQL, help limit SQL Injection by using DBMS_ASSERT on any user provided input.

  • ORA-04044: procedure, function, package, or type is not allowed here

    Hi,
    I am trying to build an object hierarchy.The object hirarcy is for a multi division, multi department, multi cost center and multi operation Organisation.Multiple department can store into multiple divisions, multiple cost center can store into multiple departments, multiple operations can store into multiple cost centers.
    The structure I try to built like this:
    create type div_obj_new as object
    (id number,
    divdesc varchar2(100)
    create type div_obj_tab as
    table of div_obj_new
    create type dept_obj_new as object
    (id number,
    deptdesc varchar2(100),
    dept_div number
    create type dept_obj_tab as
    table of dept_obj_new
    create type cctr_obj_new as object
    (id number,
    cctrdesc varchar2(100),
    cctr_dept number
    create type cctr_obj_tab as
    table of cctr_obj_new
    create type oper_obj_new as object
    (id number,
    operdesc varchar2(100),
    oper_cctr number
    create type oper_obj_tab as
    table of oper_obj_new
    ==========================
    create type div_obj_type as object
    (divid div_obj_tab)
    NOT FINAL
    create type dept_obj_type under div_obj_type
    (deptid dept_obj_tab)
    NOT FINAL
    create type cctr_obj_type under dept_obj_type
    (cctrid cctr_obj_tab)
    NOT FINAL
    create type oper_obj_type under cctr_obj_type
    (operid oper_obj_tab)
    NOT FINAL
    =======This Table creation is not working=================
    create table organisation
    (div div_obj_type,
    dept dept_obj_type,
    cctr cctr_obj_type,
    oper oper_obj_type)
    nested table div store as division_table
    nested table dept store as department_table
    nested table cctr store as costcntr_table
    nested table oper store as operation_table
    nested table oper store as operation_table
    ERROR at line 9:
    ORA-22912: specified column or attribute is not a nested table type
    =========================================================
    Then I try to insert record into the div_obj_type instead of organisation table as it was not working.
    The insert script is as follows:
    ===================================
    insert into div_obj_type values
    div_obj_tab
    (div_obj_new(01,'Division 01'),
    div_obj_new(02,'Division 02'),
    div_obj_new(03,'Division 03'),
    div_obj_new(04,'Division 04')
    dept_obj_tab
    dept_obj_new(10,'Department 10',1),
    dept_obj_new(11,'Department 11',1),
    dept_obj_new(12,'Department 12',2),
    dept_obj_new(13,'Department 13',3),
    dept_obj_new(14,'Department 14',4),
    dept_obj_new(15,'Department 15',5),
    dept_obj_new(16,'Department 16',6),
    dept_obj_new(17,'Department 17',7)
    cctr_obj_tab
    cctr_obj_new(100,'Cost Center 100',10),
    cctr_obj_new(101,'Cost Center 101',11),
    cctr_obj_new(100,'Cost Center 102',12),
    cctr_obj_new(100,'Cost Center 103',13),
    cctr_obj_new(100,'Cost Center 104',14),
    cctr_obj_new(100,'Cost Center 105',15),
    cctr_obj_new(100,'Cost Center 106',16),
    cctr_obj_new(100,'Cost Center 107',17),
    cctr_obj_new(100,'Cost Center 108',10),
    cctr_obj_new(100,'Cost Center 109',11),
    cctr_obj_new(100,'Cost Center 110',12)
    oper_obj_tab
    oper_obj_new(1000,'Operation 1000',100),
    oper_obj_new(1000,'Operation 1001',101),
    oper_obj_new(1000,'Operation 1002',102),
    oper_obj_new(1000,'Operation 1003',103),
    oper_obj_new(1000,'Operation 1004',104),
    oper_obj_new(1000,'Operation 1005',105),
    oper_obj_new(1000,'Operation 1006',106),
    oper_obj_new(1000,'Operation 1007',107),
    oper_obj_new(1000,'Operation 1008',108),
    oper_obj_new(1000,'Operation 1009',109),
    oper_obj_new(1000,'Operation 1010',110),
    oper_obj_new(1000,'Operation 1011',101),
    oper_obj_new(1000,'Operation 1012',102),
    oper_obj_new(1000,'Operation 1013',103),
    oper_obj_new(1000,'Operation 1014',104),
    oper_obj_new(1000,'Operation 1015',105),
    oper_obj_new(1000,'Operation 1016',106),
    oper_obj_new(1000,'Operation 1017',107),
    oper_obj_new(1000,'Operation 1018',108)
    insert into div_obj_type values
    ERROR at line 1:
    ORA-04044: procedure, function, package, or type is not allowed here
    Actually I want to create an object view or object table with all the details of division, department , cost center and operation and it will store depending upon the respective upper level hirarcy 's id.For eg. department details can be fetched through division id etc..
    So I can't figure out what to do for this kind of structure and how to do that.
    I am running Oracle Release 2 (9.2.0.1.0) for Windows 2000.
    Any help , advice or suggestions will be appreciated.
    Thanks & Regards
    Nihar

    Hi Cameron,
    Thanks for your great suggestion.Actually what you have suggested is correct and it was tested by me correctly.But actually I want to store records in the multiple objects hirarcy depending upon the respective upper level hirarcy 's id.For say how can I retrive all records related to divisionID which is in the top level hirarchy? So by selecting divisionID=01, how can I easily select all depts,cost centers and Operation details?
    Again I have another problem , when try to retrive record using PL/SQL I got some problem.
    Structure as created above.Again I am giving here.
    create type div_obj_new as object
    (id number,
    divdesc varchar2(100)
    create type div_obj_tab as
    table of div_obj_new
    create type dept_obj_new as object
    (id number,
    deptdesc varchar2(100),
    dept_div number
    create type dept_obj_tab as
    table of dept_obj_new
    create type cctr_obj_new as object
    (id number,
    cctrdesc varchar2(100),
    cctr_dept number
    create type cctr_obj_tab as
    table of cctr_obj_new
    create type oper_obj_new as object
    (id number,
    operdesc varchar2(100),
    oper_cctr number
    create type oper_obj_tab as
    table of oper_obj_new
    create table organisation
    (div div_obj_tab,
    dept dept_obj_tab,
    cctr cctr_obj_tab,
    oper oper_obj_tab)
    nested table div store as division_table
    nested table dept store as department_table
    nested table cctr store as costcntr_table
    nested table oper store as operation_table
    insert into organisation values
    div_obj_tab
    (div_obj_new(01,'Division 01'),
    div_obj_new(02,'Division 02'),
    div_obj_new(03,'Division 03'),
    div_obj_new(04,'Division 04')
    dept_obj_tab
    dept_obj_new(10,'Department 10',1),
    dept_obj_new(11,'Department 11',1),
    dept_obj_new(12,'Department 12',2),
    dept_obj_new(13,'Department 13',3),
    dept_obj_new(14,'Department 14',4),
    dept_obj_new(15,'Department 15',5),
    dept_obj_new(16,'Department 16',6),
    dept_obj_new(17,'Department 17',7)
    cctr_obj_tab
    cctr_obj_new(100,'Cost Center 100',10),
    cctr_obj_new(101,'Cost Center 101',11),
    cctr_obj_new(100,'Cost Center 102',12),
    cctr_obj_new(100,'Cost Center 103',13),
    cctr_obj_new(100,'Cost Center 104',14),
    cctr_obj_new(100,'Cost Center 105',15),
    cctr_obj_new(100,'Cost Center 106',16),
    cctr_obj_new(100,'Cost Center 107',17),
    cctr_obj_new(100,'Cost Center 108',10),
    cctr_obj_new(100,'Cost Center 109',11),
    cctr_obj_new(100,'Cost Center 110',12)
    oper_obj_tab
    oper_obj_new(1000,'Operation 1000',100),
    oper_obj_new(1000,'Operation 1001',101),
    oper_obj_new(1000,'Operation 1002',102),
    oper_obj_new(1000,'Operation 1003',103),
    oper_obj_new(1000,'Operation 1004',104),
    oper_obj_new(1000,'Operation 1005',105),
    oper_obj_new(1000,'Operation 1006',106),
    oper_obj_new(1000,'Operation 1007',107),
    oper_obj_new(1000,'Operation 1008',108),
    oper_obj_new(1000,'Operation 1009',109),
    oper_obj_new(1000,'Operation 1010',110),
    oper_obj_new(1000,'Operation 1011',101),
    oper_obj_new(1000,'Operation 1012',102),
    oper_obj_new(1000,'Operation 1013',103),
    oper_obj_new(1000,'Operation 1014',104),
    oper_obj_new(1000,'Operation 1015',105),
    oper_obj_new(1000,'Operation 1016',106),
    oper_obj_new(1000,'Operation 1017',107),
    oper_obj_new(1000,'Operation 1018',108)
    ===============
    declare
    div number;
    divdesc varchar2(100);
    divdetails varchar2(100);
    dept number;
    deptdesc varchar2(100);
    deptdetails varchar2(100);
    cctr number;
    cctrdesc varchar2(100);
    cctrdetails varchar2(100);
    oper number;
    operdesc varchar2(100);
    operdetails varchar2(100);
    cursor c_div is
    select d.id , d.divdesc from table(select div from organisation) d
    where d.id=1;
    --union
    cursor c_dept is
    select dp.id , dp.deptdesc "Dept Details" from table(select dept from organisation) dp
    where dp.dept_div=1;
    --union
    cursor c_cctr is
    select cc.id , cc.cctrdesc "Cctr Details" from table(select cctr from organisation ) cc
    where cc.cctr_dept=10;
    --union
    cursor c_oper is
    select op.id , op.operdesc "Oper Details" from table(select oper from organisation) op
    where op.oper_cctr=100;
    TYPE oper_type IS RECORD
    (oper_no NUMBER,
    oper_desc VARCHAR(50));
    TYPE cctr_type IS RECORD
    (cctr_no NUMBER,
    cctr_desc VARCHAR(50),
         oper_detl oper_type);
    TYPE dept_type IS RECORD
    (dept_no NUMBER,
    dept_desc VARCHAR(50),
         cctr_detl cctr_type);
    TYPE div_type IS RECORD
    (div_no NUMBER,
    div_desc VARCHAR2(50),
    dept_detl dept_type);
         division_rec div_type;
    begin
    for i_div in c_div%rowcount
         loop
         exit when c_div%notfound;
         division_rec.div_no:=i_div.id;
         division_rec.div_desc:=i_div.divdesc;
         dbms_output.put_line('Division details = ' || division_rec.div_no || division_rec.div_desc);
    --end loop;
    for i_dept in c_dept%rowcount
         loop
         exit when c_dept%notfound;
         select dp.id , dp.deptdesc ,
         into
         division_rec.dept_detl.dept_no, division_rec.dept_detl.dept_desc
         from
         table(select dept from organisation) dp
         where dp.dept_div=division_rec.div_no;
    -- division_rec.dept_detl.dept_no:=c_dept.id;
    -- division_rec.dept_detl.dept_desc:=c_dept.deptdesc;
         dbms_output.put_line('Department details = ' || division_rec.dept_detl.dept_no ||      
    division_rec.dept_detl.dept_desc);
    --end loop;
         for i_cctr in c_cctr
              loop
              exit when c_cctr%notfound;
              select cc.id , cc.cctrdesc
              into
              division_rec.dept_detl.cctr_detl.cctr_no ,           
    division_rec.dept==_detl.cctr_detl.cctr_desc
              from
              table(select cctr from organisation ) cc
              where cc.cctr_dept=division_rec.dept_detl.dept_no;
    -- division_rec.dept_detl.cctr_detl.cctr_no:=c_cctr.id;
    -- division_rec.dept_detl.cctr_detl.cctr_desc:=c_cctr.cctrdesc;
         dbms_output.put_line('Cost Center details = ' || division_rec.dept_detl.cctr_detl.cctr_no ||
         division_rec.dept_detl.cctr_detl.cctr_desc);
    --end loop;
              for i_oper in c_oper%rowcount
                   loop
                   exit when c_oper%notfound;
              select op.id , op.operdesc
              into
              division_rec.dept_detl.cctr_detl.oper_detl.oper_no,           
    division_rec.dept_detl.cctr_detl.oper_detal.oper_desc
              from
              table(select oper from organisation) op
              where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_no:=c_oper.id;
    -- division_rec.dept_detl.cctr_detl.oper_detal.oper_desc:=c_oper.operdesc;
         dbms_output.put_line('Operation details = ' ||
    division_rec.dept_detl.cctr_detl.oper_detl.oper_no ||
    division_rec.dept_detl.cctr_detl.oper_detal.oper_desc);
    end loop;
    end loop;
    end loop;
    end loop;
    end;
    for i_div in c_div%rowcount
    ERROR at line 46:
    ORA-06550: line 46, column 14:
    PLS-00999: implementation restriction (may be temporary)
    ORA-06550: line 46, column 1:
    PL/SQL: Statement ignored
    New version of PL/SQL bloc
    ==============================
    declare
    div number;
    divdesc varchar2(100);
    divdetails varchar2(100);
    dept number;
    deptdesc varchar2(100);
    deptdetails varchar2(100);
    cctr number;
    cctrdesc varchar2(100);
    cctrdetails varchar2(100);
    oper number;
    operdesc varchar2(100);
    operdetails varchar2(100);
    cnt_div number;
    cnt_dept number;
    cnt_cctr number;
    cnt_oper number;
    cursor c_div is
    select d.id , d.divdesc from table(select div from organisation) d
    where d.id=1;
    --union
    cursor c_dept is
    select dp.id , dp.deptdesc from table(select dept from organisation) dp
    where dp.dept_div=1;
    --union
    cursor c_cctr is
    select cc.id , cc.cctrdesc from table(select cctr from organisation ) cc
    where cc.cctr_dept=10;
    --union
    cursor c_oper is
    select op.id , op.operdesc from table(select oper from organisation) op
    where op.oper_cctr=100;
    TYPE oper_type IS RECORD
    (oper_no NUMBER,
    oper_desc VARCHAR(50));
    TYPE cctr_type IS RECORD
    (cctr_no NUMBER,
    cctr_desc VARCHAR(50),
         oper_detl oper_type);
    TYPE dept_type IS RECORD
    (dept_no NUMBER,
    dept_desc VARCHAR(50),
         cctr_detl cctr_type);
    TYPE div_type IS RECORD
    (div_no NUMBER,
    div_desc VARCHAR2(50),
    dept_detl dept_type);
         division_rec div_type;
    begin
    /*select count(*) into cnt_div from table(select div from organisation) d
    where d.id=1;*/
    for i_div in c_div
         loop
         exit when c_div%notfound;
         division_rec.div_no:=i_div.id;
         division_rec.div_desc:=i_div.divdesc;
         dbms_output.put_line('Division details = ' || division_rec.div_no || division_rec.div_desc);
    --end loop;
    /*select count(*) into cnt_dept from table(select dept from organisation) dp
    where dp.dept_div=i_div.id;*/
    for i_dept in c_dept
         loop
         exit when c_dept%notfound;
         select dp.id , dp.deptdesc
         into
         division_rec.dept_detl.dept_no, division_rec.dept_detl.dept_desc
         from
         table(select dept from organisation) dp
         where dp.dept_div=division_rec.div_no;
    -- division_rec.dept_detl.dept_no:=c_dept.id;
    -- division_rec.dept_detl.dept_desc:=c_dept.deptdesc;
         dbms_output.put_line('Department details = ' || division_rec.dept_detl.dept_no ||      division_rec.dept_detl.dept_desc);
    --end loop;
    /*select count(*) into cnt_cctr from table(select cctr from organisation ) cc
    where cc.cctr_dept=division_rec.dept_detl.dept_no;*/
         for i_cctr in c_cctr
              loop
              exit when c_cctr%notfound;
              select cc.id , cc.cctrdesc
              into
              division_rec.dept_detl.cctr_detl.cctr_no ,           division_rec.dept_detl.cctr_detl.cctr_desc
              from
              table(select cctr from organisation ) cc
              where cc.cctr_dept=division_rec.dept_detl.dept_no;
    -- division_rec.dept_detl.cctr_detl.cctr_no:=c_cctr.id;
    -- division_rec.dept_detl.cctr_detl.cctr_desc:=c_cctr.cctrdesc;
         dbms_output.put_line('Cost Center details = ' || division_rec.dept_detl.cctr_detl.cctr_no ||      division_rec.dept_detl.cctr_detl.cctr_desc);
    --end loop;
    /*select count(*) into c_oper from table(select oper from organisation) op
    where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;*/
              for i_oper in c_oper
                   loop
                   exit when c_oper%notfound;
              select op.id , op.operdesc
              into
              division_rec.dept_detl.cctr_detl.oper_detl.oper_no,           division_rec.dept_detl.cctr_detl.oper_detl.oper_desc
              from
              table(select oper from organisation) op
              where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_no:=c_oper.id;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_desc:=c_oper.operdesc;
         dbms_output.put_line('Operation details = ' || division_rec.dept_detl.cctr_detl.oper_detl.oper_no || division_rec.dept_detl.cctr_detl.oper_detl.oper_desc);
    end loop;
    end loop;
    end loop;
    end loop;
    end;
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 64
    I hope you might have the solutions.
    Thanks & Regards
    Nihar

  • Kill a stored procedure/function

    Hi Experts,
    I have requirement to kill or terminate the stored procedure/function through UI.
    Is there anyway to kill or terminate the stored procedure/function in oracle.
    Note:-it shouldn't impact the other running Stored procedures/functions.
    Thanks in Adavnce!!!

    Some basics first.
    You do not kill a procedure or function. You kill the process executing it.
    The ALTER SYSTEM KILL SESSION command does not kill a process (session). It requests that process to terminate by communicating with the process via the SGA. If that process is in a synchronous kernel call (and waiting for that call to complete), the process is unable to even check the SGA, never mind respond to a kill-yourself instruction. Which means it cannot terminate itself.
    User (application) code does NOT need the ALTER SYSTEM priv. That will be a very serious security violation. So if you do want to allow user code to make use of that priv to kill user sessions/processes, then you need to wrap that into a secure interface that user code can use. Such as a SYS owned KillUserSession() procedure, executing with definer rights, and ensuring the caller can only kill sessions that it owns (e.g. if caller is schema SCOTT, then only SCOTT sessions can be killed).
    Last comment. Killing user sessions is kind of stupid. As that means you loose. You cannot design properly. You cannot code properly. And to establish some kind of sanity in processing, The Very Large Hammer needs to be employed. Killing sessions does NOT fix the problem. It treats the symptom. The problem is still there.
    And to add a treat-the-symptom-by-killing-the-session button on a .Net (or any other) application? That is, IMO, four-letter-words epic lame.
    What is the real problem?

Maybe you are looking for

  • Upgraded OSX  10.3.9 to 10.4.10  eject key no longer works?

    I recently upgraded my dual 800 MHz Power PC G4 from 10.3.9 to 10.4.10 and have had several small problems I am trying to work out as follows: eject key will not work on apple pro keyboard....tried two other keyboards and none of them worked...you ca

  • Can USB extension cable from nano burn out tower's USB port?

    I recently plugged my 1GB nano into my Mac flatscreen's USB port and got a message that this port was too slow. I used it anyway but it did take a looong time to charge the nano. Normally I use the two ports in the screen to park a couple of dongles

  • How do you change the Tree Component Icons?

    Hi, I have been trying to get to grips with the tree component. I want to customise it so that I can have a different icon for each different link. E.g. a QT logo for a video etc. If no valuse is found for the 'icon' attribute it will just display th

  • Standard Excel-Functionalities not usable when using BexAnaylzer

    Hi Experts, I am using BexAnalyzer as a reporting tool. Query Designer is on 3.5. I have safed a few queries within a workbook. Next step is to combine results of different queries by using standard excel functionalities (SUM, etc.) to create a new r

  • Photoshop 9 elements Organzier stürzt immer wieder ab

    Wenn ich im Organizer irgendwelche Tätigkeiten mit den Tags mache (habe vorher ca. 2000 foto's importiert mit Tags), kommt immer die Sanduhr und nach einer gewissen Zeit meldet sich das Betriebssystem (Win 7 SP1 X64), dass es nach Fehler suche und da