Using CRUD procedures to update data and ref cursors to return data

Hi:
I am currently evaluating Apex 3.x to replace an existing app that uses lots of procedures to update and return data.
1. Is it possible to return data from a function that returns a cursor (or from a procedure that has an input/output ref cursor parameter for that matter) ? Example: Let's say I have the following function in a package:
function get_data return sys_refcursor
is
l_cursor sys_refcursor;
begin
open l_cursor for select sysdate as field from sys.dual;
return l_cursor;
end;
Can I add a page with a table that is populated based on this function? Based on my research it is not possible, but I want an APEX expert to confirm it
2. The old application uses CRUD procedures to update date, that is for each table there are 3 procedures, insert update and delete. Question: is it possible to channel all the update, inserts and deletes through these procedures? Furthermore, in lots of cases I use sequences to populate the primary keys, and the new value is returned as output parameter. Can I retrieve the output value and use it maybe in the next page I am branching to?
In the samples that I've seen the same form is used for insert and update. How do I distinguish between the two modes?
3. Can you please point me to some samples that show how to do 1 & 2. The standard samples that I've seen use the automatic row processing.
4. Could you please recommend some good books about Apex or HTML db? I found the documentation unintuitive. It is hard to picture quickly how things tie together by reading this documention. I wish the documentation was more task oriented and presented 'how to...' implement generic patterns used in web apps.
Thank you in advance

Hi guys
Check out the last 2 posts in this thread for ideas on how to implement 1.
Report on user data from LDAP
Varad

Similar Messages

  • Using plsql table and ref cursor in oracle forms 10g

    Hi all,
    Can anyone give me an example of a scenario where we need to create a form manually based on a database stored procedures.
    And in that procedure i have created a pl/sql table and a ref cursor in data base level.
    CREATE OR REPLACE PACKAGE SCOTT.BONUS_PKG IS TYPE bonus_rec
    IS RECORD(
    empno     bonus_EMP.empno%TYPE,
    ename     bonus_EMP.ename%TYPE,
    job     bonus_EMP.job%TYPE,
    sal     bonus_EMP.sal%TYPE,
    comm     bonus_EMP.comm%TYPE);
    TYPE b_cursor IS REF CURSOR RETURN bonus_rec;
    TYPE bontab IS TABLE OF bonus_rec INDEX BY BINARY_INTEGER;
    PROCEDURE bonus_refcur(bonus_data IN OUT b_cursor);
    PROCEDURE bonus_query(bonus_data IN OUT bontab);
    END bonus_pkg;
    CREATE OR REPLACE PACKAGE BODY SCOTT.BONUS_PKG IS
    PROCEDURE bonus_query(bonus_data IN OUT bontab) IS
    ii NUMBER;
    CURSOR bonselect IS
    SELECT empno, ename, job, sal, comm FROM bonus_EMP ORDER BY empno;
    BEGIN
    OPEN bonselect;
    ii := 1;
    LOOP
    FETCH bonselect INTO
    bonus_data( ii ).empno,
    bonus_data( ii ).ename,
    bonus_data( ii ).job,
    bonus_data( ii ).sal,
    bonus_data( ii ).comm;
    EXIT WHEN bonselect%NOTFOUND;
    ii := ii + 1;
    END LOOP;
    END bonus_query;
    PROCEDURE bonus_refcur(bonus_data IN OUT b_cursor) IS
    BEGIN
    OPEN bonus_data FOR SELECT empno, ename, job, sal, comm FROM bonus_EMP ORDER BY empno;
    END bonus_refcur;
    END bonus_pkg;
    i want to populate the data in forms manually not using forms data block wizard and programmatically.
    please reply...

    Can anyone give me an example of a scenario where we need to create a form manually based on a database stored procedures.Typically, you would use a procedure based block when you have a collection of data from multiple tables presented in a Form and your user needs to be able to update the information displayed.
    From your code example, it looks like you are using Oracle Support document "Basing a Block on a Stored Procedure - Sample Code [ID 66887.1]". If this is the case, keep following the document - it walks you through all of the steps. There is no need to Manually configure things that the Data Block Wizard will perform for you!
    i want to populate the data in forms manually not using forms data block wizard and programmatically. Why? Let the Data Block Wizard take care of configuring your block based on a procedure for you. There is no need to manually loop through the data! I've actually done what you are attempting and it was more work than was needed. Let Forms do the work for you. :)
    If you absolutely must do things manually, I recommend you use the PROCEDURE bonus_query(bonus_data IN OUT bontab) instead of the bonus_refcur(bonus_data IN OUT b_cursor) . Then, in your code create a variable of type BONTAB and then call the bonus_query procedure. Then it is a simple case of looping through the table of records returned by the bonus_query procedure. For example:
    DECLARE
       t_bonus    bonus_pkb.bontab;
    BEGIN
       bonus_pkg.bonus_query(t_bonus);
       FOR i in 1 .. t_bonus.count LOOP
          :YOUR_BLOCK.EMPLOYEE_NUMBER := t_bonus(i).empno;
          :YOUR_BLOCK.EMPLOYEE_NAME := t_bonus(i).ename;
          :YOUR_BLOCK.EMPLOYEE_JOB := t_bonus(i).job;
          :YOUR_BLOCK.EMPLOYEE_SALARY := t_bonus(i).sal;
          :YOUR_BLOCK.EMPLOYEE_COMMISSION := t_bonus(i).comm;
       END LOOP;
    END;This code sample demonstrates the basics, but as it is sample code - you will have to adapt it to your situation.
    Also, I strongly recommend you look at the article InoL listed. This is a very comprehensive discussion on REF CURSORs. If you are set on using a procedure based data source - it is more efficient to pass the table of records back to your form than it is to pass a ref cursor. Using a ref cursor, you might as well just using a standard named cursor and loop through your named cursor. The effect is the same (one row returned at a time creating lots of network traffic). Using the table of records is more efficient because the entire data set is returned so network traffic is reduced.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Can I use a simless iPhone 6 Plus and put in a iPad data only sim from Verizon?

    Can I use a simless iPhone 6 Plus and put in a iPad data only sim from Verizon?

    You can but you will not be able to make or receive phone calls.

  • Manipulating data from a ref cursor in the data block of a form

    I am using Oracle Forms 10g. I have a ref cursor which returns columns A, B, C, D, E where B, C, D, E are values. The "Query Data Source Name" attribute in the datablock contains "CCTR_Extract_pkg.cctr_refcur". The "Column Name" attribute of item A contains "A", item B contains "B", etc. All of these columns are displayed on the form and it all works perfectly.
    I have a new request, the users would like a 6th column displayed - column F - where it equals D - B.
    Is there any way of doing this in the form only or do I need to change the ref cursor to accomodate the new column and then the form?
    If it can be achieved in the Form (only) - then how do I reference the 2 columns?
    Thanks in anticipation
    Michael
    Edited by: user8897365 on 24-Aug-2011 10:32

    Is there any way of doing this in the form only or do I need to change the ref cursor to accomodate the new column and then the form? The REF_CURSOR is the data source of your block so you will have to modify the CCTR_Extract_pkg package and cctr_refcur REF_CURSOR.
    If it can be achieved in the Form (only) - then how do I reference the 2 columns?After you have modified your database package, I recommend you run the Data Block Wizard on your block and let Forms detect the 2 new columns. You can do this manually, but it is safer to let Forms do it for you. If you want to do it manually, open the Query Data Source Columns property and add your new columns.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Wanted to fetch data from ref cursor to nested pl/sql table getting an erro

    create or replace type "DEPT12" as object(dno number(2),dname varchar2(30),loc varchar2(50));
    create or replace type dept_tab as table of "DEPT12"
    create or replace type "LOC12" as object(locno number,loc_name varchar2(100))
    create or replace type loc_tab as table of "LOC12"
    create or replace type dept_loc_rec1 as object (dept_dt dept_tab,eno number,loc_dt loc_tab);
    create type dept_loc_tb as table of dept_loc_rec1
    create table dept_loc_tb_bk1(dept_dt dept_tab,eno number,loc_dt loc_tab)
    NESTED TABLE dept_dt
    STORE AS dept_tab12,
    NESTED TABLE loc_dt
    STORE AS loc_tab12
    insert into dept_loc_tb_bk1 values(dept_tab(dept12(3,'ABD','LOC')
    ,dept12(4,'ABD','LOC')
    ,dept12(5,'ABD','LOC')),3,loc_tab(loc12(21,'AAB'),
    loc12(22,'AAB'),
    loc12(23,'AAB')));
    when I am trying to fetch data from ref cursor to pl/sql table which i am getting an error ora-06504: pl/sql : Return types of result set variables or query do not match.
    I have created a nested table of same as the nested pl/sql object table dept_loc_tb and i have declared the lv_dept_loc_tb of same dept_loc_tb but getting an above error when trying to fetch into that variable.
    Please any one who can solve my problem.
    declare
    type cr is ref cursor;
    cr_obj cr;
    lv_dept_loc_tb dept_loc_tb;
    begin
    open cr_obj for select dept_dt,eno,loc_dt from dept_loc_tb_bk1;
    fetch cr_obj bulk collect into lv_dept_loc_tb;
    close cr_obj;
    end;

    Your query selects 3 separate columns therefore requires 3 collections of corresponding types. You want to treat those 3 columns as an object of DEPT_LOC_REC1 type:
    SQL> declare
      2  type cr is ref cursor;
      3  cr_obj cr;
      4 
      5  lv_dept_loc_tb dept_loc_tb;
      6 
      7  begin
      8  open cr_obj for select dept_dt,eno,loc_dt from dept_loc_tb_bk1;
      9  fetch cr_obj bulk collect into lv_dept_loc_tb;
    10  close cr_obj;
    11  end;
    12  /
    declare
    ERROR at line 1:
    ORA-06504: PL/SQL: Return types of Result Set variables or query do not match
    ORA-06512: at line 9
    SQL> declare
      2  type cr is ref cursor;
      3  cr_obj cr;
      4 
      5  lv_dept_loc_tb dept_loc_tb;
      6 
      7  begin
      8  open cr_obj for select DEPT_LOC_REC1(dept_dt,eno,loc_dt) from dept_loc_tb_bk1;
      9  fetch cr_obj bulk collect into lv_dept_loc_tb;
    10  close cr_obj;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> SY.
    P.S. Discover sys_refcursor.

  • Ref Cursor - Web Services - Data controls

    The quick question : How to get a data control to use a web service based on a ref cursor to work, or point me to tutorial somewhere ?
    The long question : I've created a web service based on the following Oracle package :
    Package Header :
    type ListRecord is Record
    NR NUMBER(3),
    SYMBOL VARCHAR2(2),
    VERSION VARCHAR2(3),
    CREATION_DATE DATE,
    CREATED_BY VARCHAR2(15),
    UPDATE_DATE DATE,
    UPDATED_BY VARCHAR2(15),
    STATUS NUMBER(1),
    TYPE VARCHAR2(1)
    type return_cursor is REF CURSOR return ListRecord;
    function CursorTest return return_cursor;
    Package Body :
    function CursorTest return Return_Cursor is
    c Return_Cursor;
    begin
    Open C for
    select * from stc_languages;
    return C;
    end;
    I created a web service via the PL/SQL web service wizard.
    The web service works correctly.
    I then tried to create a data control from the web service. The data control was created but every time I tried using it I got the following error :
    oracle.adf.model.adapter.AdapterException: DCA-40022: Failed to create the structure for schema element "result". The complex type definition of the element cannot be supported.
    I then searched the forum and found a post where it stated that the datacontrol needs a xsd and an optional xsl file in order to be able to "understand" the return type from the web service. This in turn is due to the wsdl using <any/> in the response soap message.
    I've created an xsd file and I've tried using an empty xsl file (as I don't think any transformation is needed) and a simple xsl file as shown below :
    xsd file :
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb">
    <xsd:element name="ROWSET" type="rowset"></xsd:element>
    <xsd:complexType name="rowset">
    <xsd:sequence>
    <xsd:element name="T_LANGUAGES_T" maxOccurs="unbounded"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="T_LANGUAGES_T">
    <xsd:sequence>
    <xsd:element name="NR" type="xsd:integer" xdb:SQLName="NR"
    xdb:SQLTYPE="NUMBER"></xsd:element>
    <xsd:element name="SYMBOL" xdb:SQLName="SYMBOL" xdb:SQLTYPE="VARCHAR2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="2"></xsd:maxLength>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="VERSION" xdb:SQLName="VERSION" xdb:SQLTYPE="VARCHAR2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"></xsd:maxLength>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="CREATED_BY" xdb:SQLName="CREATED_BY"
    xdb:SQLTYPE="VARCHAR2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="15"></xsd:maxLength>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="UPDATED_BY" xdb:SQLName="UPDATED_BY"
    xdb:SQLTYPE="VARCHAR2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="15"></xsd:maxLength>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TYPE" xdb:SQLName="TYPE" xdb:SQLTYPE="VARCHAR2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="1"></xsd:maxLength>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="STATUS" type="xsd:integer" xdb:SQLName="STATUS"
    xdb:SQLTYPE="NUMBER"></xsd:element>
    <xsd:element name="UPDATE_DATE" type="xsd:dateTime"
    xdb:SQLName="UPDATE_DATE" xdb:SQLTYPE="DATE"></xsd:element>
    <xsd:element name="CREATION_DATE" type="xsd:dateTime"
    xdb:SQLName="CREATION_DATE" xdb:SQLTYPE="DATE"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    xsl file :
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Root template -->
    <xsl:template match="/">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="ROWSET">
    <xsl:for-each select="ROW">
    <xsl:value-of select="NR"/>
    <xsl:value-of select="SYMBOL"/>
    <xsl:value-of select="VERSION"/>
    <xsl:value-of select="CREATION_DATE"/>
    <xsl:value-of select="CREATED_BY"/>
    <xsl:value-of select="UPDATE_DATE"/>
    <xsl:value-of select="UPDATED_BY"/>
    <xsl:value-of select="STATUS"/>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    I then create a JSF page on which I place table and form objects which come from the data control.
    When I execute the JSF page no data is showing in the table or form objects.
    Using the HTTP analyzer I can see the JSF page is calling the web service and that the web service is sending an answer and that the JSF page is requesting the xsl file.
    Can anybody explain how to get a data control to use a web service based on a ref cursor to work, or point me to tutorial somewhere ?
    Many thanks
    Paul

    Hi Robert
    Thanks for taking the time to answer my question :-)
    I'm going to try your method on our system.(fingers and toes crossed :-)
    However I disagree with you when you say that the
    "cursor needs an 'open connection' to the database and you cannot
    get that via a webservice..."
    What the web service does is to create a soap message containing the entire result of the query (in this case the entire table).I've put the CursorTestXML soap answer below.
    It's the WSDL <any/> tag and the data control which would seem to be having problems.
    Soap Answer :
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://pckLanguageTable/WsLanguageTable.wsdl/types/"><env:Body><ns0:cursortestXMLResponseElement><ns0:result><result>
    <ROWSET><ROW num="1"><NR>1</NR><SYMBOL>2F</SYMBOL><VERSION>FR</VERSION><CREATION_DATE>6/4/1997 10:50:1</CREATION_DATE><CREATED_BY>TOTO</CREATED_BY><UPDATE_DATE>9/4/2006 11:0:0</UPDATE_DATE><UPDATED_BY>TOTO</UPDATED_BY><STATUS>1</STATUS></ROW><ROW num="2"><NR>2</NR><SYMBOL>1E</SYMBOL><VERSION>EN</VERSION><CREATION_DATE>6/4/1997 10:50:1</CREATION_DATE><CREATED_BY>TOTO</CREATED_BY><UPDATE_DATE>9/4/2006 11:0:12</UPDATE_DATE><UPDATED_BY>TOTO</UPDATED_BY><STATUS>1</STATUS></ROW><ROW num="3"><NR>3</NR><SYMBOL>3A</SYMBOL><VERSION>AL</VERSION><CREATION_DATE>6/4/1997 10:50:1</CREATION_DATE><CREATED_BY>TOTO</CREATED_BY><UPDATE_DATE>9/4/2006 11:0:21</UPDATE_DATE><UPDATED_BY>TOTO</UPDATED_BY><STATUS>1</STATUS></ROW><ROW num="4"><NR>4</NR><SYMBOL>IT</SYMBOL><VERSION>IT</VERSION><CREATION_DATE>6/4/1997 10:50:1</CREATION_DATE><CREATED_BY>TOTO</CREATED_BY><UPDATE_DATE>8/28/2000 8:21:25</UPDATE_DATE><UPDATED_BY>CEM</UPDATED_BY><STATUS>3</STATUS></ROW></ROWSET></result></ns0:result></ns0:cursortestXMLResponseElement></env:Body></env:Envelope>
    Many thanks
    Paul

  • Link Query and Ref Cursor Query

    Hi all!!
    How can I link Query and Ref Cursor Query??
    I mean, How can I pass input parameters to the PL/SQL procedure if they are not User parameters but they come from another table??
    Thanks a lot
    F.

    I have searched the forum and this is the closest to my problem.
    Just started using ref cursors in my reports.
    The problem I am running into is that I have two ref cursor queries in my report - they each contain a column named seq_no which forms a join (in the database) .
    My report returns the correct number of records in each query, but I can't find a way to enforce the join. I've tried all the methods I can think of including combining the results into one query.
    The IDE won't let me join on a column and when I join on the group (which I make only contain the seq_no fields) that join is ignored.
    Can anyone help me on this?

  • What do the dates and the times on the data sheet mean?

    what does the dates and the times on the data sheet mean?

        marcus19541
    We definitely want to make sure that your data usage reporting is clear so you can monitor everything clearly! The timestamps that appear when viewing your data usage details on My Verizon may not be the exact time that data was completely used. The corresponding usage and time reflect usage from between the last report and the one you're reviewing.
    For example, say there was a report for 312MB at 2AM and the report right before that was for 100MB at 6PM. The 312MB were used between the 6PM report and the 2AM of it's own time stamp.
    Please let us know if you have any further questions about your data usage!
    RuthW_VZW
    Follow us on twitter @VZWSupport

  • How do I get date and time component from a DATE object?

    Hi All,
    I need to get date and time separately from a DATE object, does
    anyone know what function I should call? GetDate()? GetTime()?
    I need this in a SELECT statement.
    Thanks in advance and looking forward to your early reply.
    Regards.
    Gladywin
    30/11/2001

    Hello,
    See following SQL.
    select to_char(sysdate,'dd/mm/rrrr') today_date,
    to_char(sysdate,'hh24:mi') now_time
    from dual
    Adi

  • Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    What folder structure?
    If you're referring to how Aperture stores the originals in a managed library then the answer is you can't change it.
    If having the originals stored in a specific file structure is important to you you will need to switch to a referenced original setup.

  • Ref Cursor closed returning to Form

    Hi,
    I came across this old thread which seems to be an exact match for my problem.
    sys ref cursor is closed
    And whereas the solutions do work as stated there is an issue with it that i wonder if anyone here has since got around.
    Take those examples and make the sql dynamic. on return to the form the ref cursor is instantaneouly closed for you making the thing unusable.
    i.e.
    OPEN cur FOR SELECT 'x' from dual
    works just fine but
    OPEN cur FOR 'SELECT ''X'' from dual'
    resutls in an closed cursor the moment the ref cursor parameter returns to the form. I need the dynamic form because my cursor is truly built dynamically.
    Any ideas anyone?

    Hi,
    try this :
    1. declare in the package specification
    TYPE rec_view IS RECORD(
      COL1        VARCHAR2(250),
      COL2        VARCHAR2(250),
      COL3        VARCHAR2(250),
      COL4        VARCHAR2(250),
      COL5        VARCHAR2(250)
      TYPE t_ref_curs IS REF CURSOR RETURN rec_view;
      TYPE t_rec_c IS REF CURSOR;
    2. define the dynamic sql - procedure
    PROCEDURE   prc_getdata (p_refcur IN OUT t_ref_curs, p_result OUT VARCHAR2,
                             p_filter IN varchar2 DEFAULT NULL, p_orderby In VARCHAR2 DEFAULT NULL)  IS
      BEGIN
            -- dyn cursor ! --
            EXECUTE IMMEDIATE
                    'BEGIN
                          OPEN :a FOR ' ||
                              ' select empno, ename, job, mgr, hiredate, sal  from emp'||' '||
                                p_filter  ||' '||
                                p_orderby ||'; '||
                     'END;'
               USING p_refcur;
       END prc_getdata;
    3. define in the Form a PL/SQL based block on this procedure.
    Hope it helps.
    Best regards
    Friedhold

  • Updating Q and P table of master data using ABAP program

    Hi All
    I have a requirement to update Q and P table(non key and non date fields) of master data using an ABAP program.
    Is this something recommended?
    Will there be any issues if I do that?
    Thanks
    Deepak

    Thanks Vikram. Ok. My look up is on some other master data Q table and that is the reason why I asked about ABAP custom program.
    Look like I will have to do the following approach.
    Load the required supporting master data to BW.
    Execute Attribute change run process for those master data objects.
    Load the actual master data and look up on supporting master data.
    Execute attribute change run process.
    This process takes me long time and I am trying to reduce the overall execution time. let me know if you have some good suggestions.
    Thanks
    Deepak

  • Use Java version 6 update 7 and ASDM 7.1.3

      ASDM access to 5500 using Java was just a frustrating experience. If you manage only one device you may not notice the pain. But if you are managing multiple devices with some device 'forbidden' to update ASA firmware, it is very frustrating. I spend few days looking at the issue and came to a conclusion and decided to post to guide all newer VPN admins who will go through the same pain and hopefully we can reduce some combined wasted time. No thanks to Cisco. This is not a guide but a start point of a dicussion and all input are welcome.
      Recommended Beginning Setup for New Admin :
      Java Version 6 Update 7      
      ASDM 7.1(3)
      Reason for recommendation :
      a. There doesn't seem to be any recommendation to where to start your ASDM journey. So here. Start from here. Attached PDF is simple list of Java version and its release date. http://en.wikipedia.org/wiki/Java_version_history Version 6 Update 7 is unique in that it is the last version to support Win 9x. Why is that important? ASDM is written on Win 9x interface.
      b. It is a very old 2008 release. So why use such an old security cesspool of a product as a base? Security of newer version of Java isn't any better. Recommendation of Java use is to not use it. Java isn't secure. '.' But Cisco is insisting on using it. Shame on Cisco and this ASDM Java debacle is a shameful thing that Cisco even now can't careless.
      c. Attached is the list of release date of Java and Cisco products. ASDMS for FWSM range from 2007-2010, ASA 5500 and PIX 2007-2008, ASA 2010-2013. 2008 seems to fit quite nicely in the middle. Very scientific .
      Recommendation after gaining full access
      a. Update ASA and ASDM firmware to latest. ASDM 7.1.3 has same interface as much older ASDM. Kudos to Cisco on that.. 
      b. Write to US-CERT and CC Cisco to have them remove Java on their key platform. (Android too.. <- now, there's a joke!)

    UPDATE 2...
    ASDM ASA management platform has a major flaw. Different version require different version of Java JRE(Runtime Environment). One would think latest version should be backward compatible. It isn't so.
    So far Java Version 6 and Update 7 has been most compatible for my work. But NSP and other management console also require JRE and they unlike Cisco works well with the latest version but not with older version.
    Keeping and working with multiple version of JRE is a pain because JRE does not have proper control to support that automatically. One way to accomplish launching different version of JRE instead of default is use of command-line.
    In ASDM's shortcut icon properties, add version information in "target:". Find out JRE versions installed in your system under C:\Program Files (x86)\Java. Add option -version:"1.6.0_07" to specify which version to use. My example is JRE version 6 update 7.
    Original line :
    C:\Windows\SysWOW64\javaw.exe -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher
    Modified line :
    C:\Windows\SysWOW64\javaw.exe -version:"1.6.0_07" -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher
    http://docs.oracle.com/javase/6/docs/technotes/tools/windows/java.html
    #ASDM #JAVA #JRE

  • Stored procedure and ref cursor problem

    I am trying to create a stored procedure that can be used in Crystal Reports. To do this I have to create a package and a ref cursor. My SQL is below:
    --Package
    Create or Replace Package Test_Package
    as type test_type is ref cursor;
    end;
    --Procedure
    Create or Replace Procedure Test_Proc
    (test_cursor in out test_package.test_type,
    parameter in string
    as
    begin
    open test_cursor for
    select ClientName from apbpman.cv_client where clientref = parameter;
    end;
    --When trying to execute the SP in Oracle I use:-
    set serveroutput on
    declare
    test_cursor apbpman.test_package.test_type;
    resultset test_cursor%rowtype;
    begin
    apbpman.test_proc(test_cursor,'0096');
    if not test_cursor%isopen then
    dbms_output.put_line ('OK');
    else
    dbms_output.put_line ('Not OK');
    end if;
    fetch test_cursor into resultset;
    while test_cursor%found loop
    dbms_output.put_line(resultset.ClientName);
    fetch test_cursor into resultset;
    end loop;
    end;
    Whenever this runs I receive the following error reports:
    resultset test_cursor%rowtype;
    ERROR at line 3:
    ORA-06550: line 3, column 13:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 3, column 13:
    PL/SQL: Item ignored
    ORA-06550: line 11, column 25:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 11, column 2:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 13, column 24:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 13, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 14, column 26:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 14, column 3:
    PL/SQL: SQL Statement ignored
    I have tried in vain to find a resolution to this but have failed. Please help.
    Thanks,
    Paul

    Unless you are running a really old version of Oracle, any weak ref cursor can just be declared SYS_REFCURSOR. Also, you can't use a weak ref cursor for %ROWTYPE. You can test the procedure in SQL*Plus by using it to populate a refcursor variable.

  • HT201250 Can I partition my external hard drive and use one partion for time machine and the other one for data that i may want to use in different computers?

    I have this doubt. I've just bought an external drive, especifically a Seagate GoFlex Desk 3 tb.
    I want to know if it is recomendable to make a partion exclusively for time machine and let another one so I can put there music, photos, videos, etc that I should need to use or copy to another computer.
    May half and half, 1.5 tb for time machine and 1.5 tb for data.
    I have an internal hard drive of 500 GB (499.25 GB) in my macbook pro.
    Any recommendation?

    As I said, yes. Be sure your Time Machine partition has at least 1 TB for backups.
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to two (2). Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.

Maybe you are looking for

  • Need help on SSO of Portal with SAP UCES.

    I am trying to find some documents/methodologies to establish single sign on between Utility Customer E-Servive (UCES) and SAP Enterprise Portal 7.0. UCES is a SAP Provided solution for Utility customers which provides a web front end for customers t

  • Adobe Photoshop Elements 10 Installation problem

    The installation stopped with the following error:  "The wizard was interrupted before Adobe Photoshop Elements could be installed.  Below mentioned application has failed to install: Shared Technologies."  My operating system is Windows 8 64 bit.  I

  • Customization of OAErrorPage in OAF

    Hi, When an unexpected error occurs in OAF, the OAErrorPage is rendered with the text "You have encountered an unexpected error. Please contact the System Administrator for assistance". We are looking for a solution to display a custom message for su

  • Get in, if u have same problem with DR4-A

    The major problem is my dr4-a locked up my computer, see if anyone can help me This is what happened: Everytime I use "Nero CD-DVD Speed" which by Nero 6 Ultra Editon to running overburn test on CD-R Disc, my Dr4-a Won't stop, the light LED keep flas

  • Is the iTunes 10 download disabled?

    Here's the link for downloading iTunes 10: http://www.apple.com/itunes/download/ I can't find anything clickable on the page (other than the option to switch to Spanish). (And, yes, I actually tried it from that language, too. -- Same effect.) Ideas?