return of the packages

Hi Expert,

The concept of the ACL on the router, to the statement ACL "established" for return packages that is the author. As in the following example, it is not ACL on outbound traffic, but controls only inbound traffic.

! 2811 router

!

FE0/1 interface

IP 192.168.106.1 255.255.255.0

Access-group 150

!

access list 150 permit tcp any gt host 192.168.106.105 eq 443 1023 Workbench

!

I'm going to config the ASA. Should I contact the similar concept ASA? If so, what "key words" to represent the return package?

RDG

Anita

Anita-

You would be better served by asking questions of firewall in the firewall forum.

Firewalls Cisco perform the function 'established' by default on any TCP session that is allowed to be launched from inside interface for the external interface. You don't have to set the properties of the return circulation, simply to allow the traffic to leave (until the TCP session is started from the inside).

-Bob

Tags: Cisco Security

Similar Questions

  • Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and t

    Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and avoid paying twice for the product? I can return the package open, if necessary. He was ordered on Amazon.ca. Thank you

    Use the serial number located inside the retail box to save the download version

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

  • error code: win32 error code returned by the print processor: 6. the handle is not valid.

    When I try to print to a network printer, the print job does not print anI getting the error code: win32 error code returned by the print processor: 6. the handle is not valid. All ideas

    Hello

    In this case seems to be with the corrupted printer drivers.

    Follow the steps below to reinstall the driver.

    1. click on the "Start" button, type PRINTERS in the start search box and press ENTER.

    2. find the icons that are associated with the printer, and then remove them.

    3. right click on the blank part of the window and choose "Run as Administrator"-> "Server Properties".

    4. on the tab drivers, select the printer listed and click Remove. Please, select Remove driver and driver package.

    5. open the start menu, enter APPWIZ. CPL in the search box and press ENTER to launch the "programs and features".

    6. try to remove all related printer software.

    7. then download the latest driver from the printer manufacturer's Web site.

    8 install the driver.

    All the best!

  • HP simplepass a referral was returned from the server

    Hello

    I have a problem opening HP Simplepass, error message: a referral was returned by the server. Please tell us how to fix this problem. Thank you in advance.

    Found the fix.  Go to HP support and driver download page.  Navigate to the item of security and select the package Simplepass Identity Protection (latest version) and install it.  Worked fine for me.

  • Failed to update Windows and Update Installation failures the package

    Hello world

    I have a new 1650 precision and I tried to install the KB971033 from Microsoft updates as well as IE 10 update and they constantly risk to fail.  When I manually installed KB971033 my PC blue screened and then restarted and uninstalled the update.  How can I get these updates to install, or are they still necessary?  I run CheckSUR and the log shows the output below.  How can I solve these corruption issues and it is for this reason that I can not install updates?  Even run the tool MIcrosoft FixIT will attempt to fix the problem, but when the PC restarts and the installation process begins it says it fails and returns to before the repair.  This whole issue is trying to install iTunes 11 on this new PC and get the error:

    «An error occurred during the installation of assembly'Microsoft.» VC80. CRT.type = "win32", version = "8.0.50727.6195", publickeytoken = "1fc8b3b9a1e18e3b" processorArchitecture = "x 86".  See Help and Support for more information. HResult:0 x 80073712.

    I know it's the Microsoft forum, so I don't expect a response on the question of iTunes, but if someone has a solution or saw before any help would be appreciated.  Thank you all for your help!

    =================================
    Preparation of control system was updated.
    Binary version 6.1.7601.21645
    Version of the package 18.0
    2013-04-11 15:31

    Checking Windows Service Packages

    Checking of manifests package and catalogs
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_1_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_1_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_2_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_2_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_2_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_2_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_3_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_3_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_for_KB2522422_SP1~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_for_KB2522422_SP1~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_for_KB2522422~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_for_KB2778344_SP1~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_for_KB2778344_SP1~31bf3856ad364e35~amd64~~6.1.1.0.cat
    (f) CBS MUM corrupt 0x800F0900 servicing\Packages\Package_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.mum line 1:
    (f) CBS catalogue Corrupt 0x800B0100 servicing\Packages\Package_for_KB2778344~31bf3856ad364e35~amd64~~6.1.1.0.cat

    Checking package Watchlist

    Watchlist checking

    Checking packages

    Control components store

    Summary:
    Seconds executed: 98
    Found 16 errors
    CBS MUM corrupt count: 8
    Total corrupt CBS catalog number: 8

    Unavailable repair files:
    servicing\packages\Package_1_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_1_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_2_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_2_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_2_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_2_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_3_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_3_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2522422_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2522422_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2778344_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2778344_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.mum
    servicing\packages\Package_1_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_1_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_2_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_2_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_2_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_2_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_3_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_3_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2522422_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2522422_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2522422~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2778344_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2778344_SP1~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat
    servicing\packages\Package_for_KB2778344~31bf3856ad364e35~AMD64~~6.1.1.0.cat

    nfullington,

    the system image recovery puts your computer at the factory, all files and folders will be lost. Back up files and folders before using this option.

    System Restore, use a system restore point, usually created by starting the computer in Windows 7 or a Windows Update. I would go back before Tuedays updated.

    Rick

  • The package called Apex passing values

    Hello

    I'm using Oracle 11.g and 4.2 of the Apex.

    I have an Oracle (body and spec) package that works very well with a heel of test data. My next step is to call this package from a screen of Apex. I would like to pass to two variables:

    mail_event_prim_key - a number

    mail_list_name - a varchar2 (1024)

    I have two questions.
    (1) how to build the package receive two values only IN Apex? No value shall be returned at the Apex.

    (2) how to call this the apex. I guess I would use a PL/SQL function to do so.

    My current package spec is:

    create or replace PACKAGE "PKG_MAIL_SEND" as 
      PROCEDURE proc_mail_send;
      PROCEDURE proc_job_mail_send;
      PROCEDURE proc_kill_job_mail;
    end PKG__MAIL_SEND;

    Part of the package body is:

    create or replace the BODY of PACKAGE 'PKG_MAIL_SEND '.

    PROCEDURE proc_parish_mail_send

    is

    number of mail_event_prim_key;

    mail_list_name varchar2 (1024);

    CRLF varchar2 (2): = Chr (10) | CHR (13).

    CLOB l_html;

    l_html_header varchar2 (1024);

    CLOB l_html_body;

    l_html_footer varchar2 (1024);

    CLOB l_html_total;

    l_addresses DBMS_SQL.varchar2_table;

    l_from varchar2 (1024);

    l_to varchar2 (2048);

    l_subject varchar2 (2048);

    l_smtp_hostname varchar2 (2048);

    l_smtp_port varchar2 (2048);

    l_smtp_username varchar2 (2048);

    l_smtp_password varchar2 (2048);

    BEGIN

    -Initialize Variables

    mail_event_prim_key: = '1';

    mail_list_name: = 'list My name. "

    Select lu_value in the hymn_lookup l_smtp_hostname where lu_type = 'smtp_hostname ';

    -A lot more code here

    End proc_mail_send;

    -Code of PROCEDURE proc_job_mail_send;

    -Code of PROCEDURE proc_kill_job_mail;

    end PKG_MAIL_SEND;

    Thanks for looking at this.

    Hello

    I had confused packages and procedures.

    I didn't need a package.  I created a procedure and it is called the Apex successfully.  The procedure now looks like this:

    create or replace PROCEDURE 'proc_mail_send '.

    (mail_event_prim_key IN number, mail_list_name IN varchar2)

    is

    CRLF varchar2 (2): = Chr (10) | CHR (13).

    CLOB l_html;

    l_html_header varchar2 (1024);

    CLOB l_html_body;

    l_html_footer varchar2 (1024);

    CLOB l_html_total;

    l_addresses DBMS_SQL.varchar2_table;

    l_from varchar2 (1024);

    l_to varchar2 (2048);

    l_subject varchar2 (2048);

    l_smtp_hostname varchar2 (2048);

    l_smtp_port varchar2 (2048);

    l_smtp_username varchar2 (2048);

    l_smtp_password varchar2 (2048);

    BEGIN

    -Initialize Variables

    Select lu_value in the hymn_lookup l_smtp_hostname where lu_type = 'smtp_hostname ';

    -A lot more code here that reacts to the two variables in the procedure

    End;

    Apex I made a page of PL/SQL process that is triggered when you press the submit button.  This process looks like:

    Start

    "proc_mail_send" (: P55_MAIL_EVENT,: P55_MAIL_LIST); "."

    end;

    Everything works fine now.

  • PLS-00323: subprogram or cursor is declared in a package specification and must be defined in the package body

    Hi all

    Please help me understand why I receive PLS-00323 error when my function exists in the header and body of the package.

    Please find below the source code.

    Maybe I should post more details here, please tell me what else should I show to get help.

    I tried to compile my drawing

    EXEC DBMS_UTILITY.compile_schema (pattern = > 'ZVIT');

    but still

    Select * from user_errors

    Returns

    NAME TYPE SEQUENCE LINE (LINE)

    ------------------------------ ------------ ---------- ---------- ----------

    TEXT

    --------------------------------------------------------------------------------

    ATTRIBUTE MESSAGE_NUMBER

    --------- --------------

    PACKAGE 2 8 12 PKG_PK8842_ACCNOTMOVE BODY

    PLS-00323: subprogram or cursor "ACCNOTMOVEFIZ" is declared in a specific package

    cation and must be defined in the package body

    ERROR 323

    PACKAGE 1 3 12 PKG_PK8842_ACCNOTMOVE BODY

    PLS-00323: subprogram or cursor "ACCNOTMOVEJUR" is declared in a specific package

    cation and must be defined in the package body

    ERROR 323

    2 selected lines.

    source code:

    CREATE OR REPLACE PACKAGE ZVIT. PKG_PK8842_AccNotMove

    AS

    FUNCTION AccNotMoveJUR)

    p_contragentId dwh_CR_contragent.ID%TYPE,

    p_date Date)

    RETURN number;

    FUNCTION AccNotMoveFIZ)

    p_contragentId dwh_CR_contragent.ID%TYPE,

    p_date Date)

    RETURN number;

    FUNCTION DtLastMove)

    p_Id B2_OLAP. DIMAACCOUNT_ALL.ID%TYPE)

    Date of RETURN;

    END;

    /

    CREATE OR REPLACE PACKAGE BODY ZVIT. PKG_PK8842_AccNotMove

    AS

    FUNCTION AccNotMoveJUR)

    p_contragentId zvit.dwh_CR_contragent.ID%TYPE,

    p_date Date)

    RETURN number

    IS

    l_Result Number (1);

    l_contragentId zvit.dwh_CR_contragent.ID%TYPE;

    l_dateopen Date;

    Date of l_dtMove1;

    Date of l_dtMove2;

    BEGIN

    l_Result: = 0;

    BEGIN

    Select Distinct a.contragentid

    In l_contragentId

    OF B2_OLAP. DIMAACCOUNT_ALL one

    where a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and a.ACCOUNTSTATEID not in (1,2);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_contragentId: = NULL;

    END;

    IF l_contragentId IS NOT NULL THEN

    l_Result: = 0;

    ON THE OTHER

    BEGIN

    Select MAX (a.dateopen)

    In l_DateOpen

    OF B2_OLAP. DIMAACCOUNT_ALL one

    where a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and a.ACCOUNTSTATEID <>2

    and a.DateOpen > p_date;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DateOpen: = NULL;

    END;

    IF l_DateOpen IS NOT NULL THEN

    l_Result: = 0;

    ON THE OTHER

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and d.ACCOUNTBID = a.Id

    and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and not in Substr (d.accountano, 1, 4) ('2608 ', ' 2658');

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and d.ACCOUNTBID = a.Id

    and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and not in Substr (d.accountano, 1, 4) ('2608 ', ' 2658');

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and d.ACCOUNTAID = a.Id

    and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2600,2650)

    and d.arcdate > = p_date

    and d.ACCOUNTAID = a.Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    l_Result: = 1;

    On the other

    l_Result: = 0;

    End If;

    END IF;

    END IF;

    RETURN l_Result;

    END AccNotMoveJUR;

    --------------------------------------------------------------------------------

    FUNCTION AccNotMoveFIZ)

    p_contragentId zvit.dwh_CR_contragent.ID%TYPE,

    p_date Date)

    RETURN number

    IS

    l_Result Number (1);

    l_contragentId zvit.dwh_CR_contragent.ID%TYPE;

    l_dateopen Date;

    Date of l_dtMove1;

    BEGIN

    l_Result: = 0;

    BEGIN

    Select Distinct a.contragentid

    In l_contragentId

    OF B2_OLAP. DIMAACCOUNT_ALL one

    where a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and a.ACCOUNTSTATEID not in (1,2);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_contragentId: = NULL;

    END;

    IF l_contragentId IS NOT NULL THEN

    l_Result: = 0;

    ON THE OTHER

    BEGIN

    Select MAX (a.dateopen)

    In l_DateOpen

    OF B2_OLAP. DIMAACCOUNT_ALL one

    where a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and a.ACCOUNTSTATEID <>2

    and a.DateOpen > p_date;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DateOpen: = NULL;

    END;

    IF l_DateOpen IS NOT NULL THEN

    l_Result: = 0;

    ON THE OTHER

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and d.ACCOUNTBID = a.Id

    and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and Substr(d.accountano,1,4) <>'2628';

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and d.arcdate > = p_date

    and d.ACCOUNTBID = a.Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and Substr(d.accountano,1,4) <>'2628';

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and d.ACCOUNTAID = a.Id

    and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    BEGIN

    SELECT MAX (d.arcdate)

    In l_dtMove1

    OF B2_OLAP. DIMAACCOUNT_ALL has,

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE a.contragentid = p_contragentId

    and a.BACCOUNTID in (2620,2625)

    and d.arcdate > = p_date

    and d.ACCOUNTAID = a.Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_dtMove1: = NULL;

    END;

    END IF;

    IF l_dtMove1 IS NULL THEN

    l_Result: = 1;

    On the other

    l_Result: = 0;

    End If;

    END IF;

    END IF;

    RETURN l_Result;

    END AccNotMoveFIZ;

    --------------------------------------------------------------------------------

    FUNCTION DtLastMove)

    p_Id B2_OLAP. DIMAACCOUNT_ALL.ID%TYPE)

    Date of RETURN

    IS

    l_Result Date;

    Date of l_DtLast1;

    Date of l_DtLast2;

    Date of l_DtLast3;

    Date of l_DtLast4;

    BEGIN

    l_Result: = NULL;

    BEGIN

    SELECT MAX (d.arcdate)

    In l_DtLast1

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE d.ACCOUNTBID = p_Id

    - and d.arcdate > = p_date

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and Substr (d.accountano, 1, 4) not in ('2608', ' 2658 ', ' 2628');

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DtLast1: = NULL;

    END;

    BEGIN

    SELECT MAX (d.arcdate)

    In l_DtLast2

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE d.ACCOUNTBID = p_Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3)

    and Substr (d.accountano, 1, 4) not in ('2608', ' 2658 ', ' 2628');

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DtLast2: = NULL;

    END;

    BEGIN

    SELECT MAX (d.arcdate)

    In l_DtLast3

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE d.ACCOUNTAID = p_Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DtLast3: = NULL;

    END;

    BEGIN

    SELECT MAX (d.arcdate)

    In l_DtLast4

    B2_OLAP.AR_DOCUMENT d,

    B2_OLAP. DIMDOCUMENTTYPE dt

    WHERE d.ACCOUNTAID = p_Id

    and d.DOCUMENTTYPEID = dt.id

    and dt. OPERATIONTYPEBYSUMMAID not to (2,3);

    - and d.DOCUMENTSTATEID = 2

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    l_DtLast4: = NULL;

    END;

    l_DtLast1:=NVL(l_DtLast1,to_date('01.01.1900','dd.mm.yyyy'));

    l_DtLast2:=NVL(l_DtLast2,to_date('01.01.1900','dd.mm.yyyy'));

    l_DtLast3:=NVL(l_DtLast3,to_date('01.01.1900','dd.mm.yyyy'));

    l_DtLast4:=NVL(l_DtLast4,to_date('01.01.1900','dd.mm.yyyy'));

    l_Result: = Greatest (l_DtLast1, l_DtLast2, l_DtLast3, l_DtLast4);

    IF l_Result = TO_DATE('01.01.1900','dd.mm.yyyy') THEN

    l_Result: = NULL;

    END IF;

    RETURN l_Result;

    END DtLastMove;

    ---////////////////////////////////////////////////////

    END;

    /

    You declare your parameter with a different type between the specification and body, your statements must match.

  • Integrate the Table function in the package

    Hey everybody,

    I had a problem with my table function. I don't have it created in a package as a function table on the database. Now I have to integrate it in my package,

    but it does not work. What I have to put the type and Assembly in the package_spec? I always get the error: "each cursor or subprogramm in the package_spec statement must have a corresponding definition in the package body.

    But I already joined the funtion in the body. Maybe someone can help me? I would be very grateful!

    It's my spec package: (sorry, I don't know how to insert the code in this forum, maybe you can tell me)

    The search_type is declared, but so far not in the package:

    ----------------------------------------

    create or replace package test is

    TYPE search_set IS TABLE OF THE schema.search_type;

    function search (.)

    Return search_set;

    end test;

    ----------------------------------------

    create or replace package test body is

    function search (.)

    return search_set

    pipelined is

    ..

    search for late;

    ----------------------------------------

    create or repplace type search_type as object

    (..);

    ---------------------------------------

    If I lump the search_type package specifications, it will not accecpt the 'object '.

    It would be great if you can help me! I would also like to update my post I have someone tell me how to integrate the code correctly in this post.

    Many thanks!

    In your message the definition of function in the SPECIFICATION does not PIPELINED keyword, but your BODY plan has it.

  • Database trigger can not see the package global variable after assign in my form

    Hello

    I faced the problem with the trigger and the package variable global using the form designer

    first of all, I get the local IP address machine using WEBUTIL in triggering of the PREFORM and initialize my global package variable by ' Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO.» GET_IP_ADDRESS); ", then I tried to make the DML operation in my form and at the same time I trigger database also uses the package global variable of" Client_Info_Pkg.Gand_IP_Address; "to read in the package, and then insert it into the audit table


    The question this database trigger may not feel the initialization "Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO. GET_IP_ADDRESS)' I did in triggering of the PREFORM and I used to wonder if oracle create new session to run this trigger so he can't see my boot or what?!. .

    the package

    CREATE OR REPLACE PACKAGE Client_Info_Pkg

    Global_IP_Address VARCHAR2 (100);

    FUNCTION Get_IP_Address RETURN VARCHAR2;

    PROCEDURE Set_IP_Address (p_Machine_Name IN VARCHAR2);

    END Client_Info_Pkg;

    /

    CREATE OR REPLACE PACKAGE BODY Client_Info_Pkg

    FUNCTION Get_IP_Address RETURN VARCHAR2 IS

    BEGIN

    RETURN Global_IP_Address;

    END;

    PROCEDURE Set_IP_Address (p_IP_Address IN VARCHAR2) IS

    BEGIN

    Global_IP_Address: = p_IP_Address;

    END;

    END Client_Info_Pk

    relaxation

    --------------

    CREATE OR REPLACE TRIGGER RUNERP.FO_DOC_TYPES_L_T

    BEFORE INSERT OR UPDATE OR DELETE ON FO_DOC_TYPES

    REFERRING AGAIN AS NINE OLD AND OLD

    FOR EACH LINE

    BEGIN

    IF THE INSERTION

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("I",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address' HELP: NEW.) DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF THE UPDATE CAN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("U",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF REMOVE THEN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("D",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    END;

    /

    Thanks in advance

    I solved my problem by using the CONTEXT object, Michael thank you for your interest.

  • Creating a container of the package fails on the last stage by renaming the .exe in .dat

    I tried several times to create a package without success. All files seem to have downloaded when I look in C:\Users\MichaelK\AppData\Local\Adobe. There is data here 14.5Gig.

    I get the following.

    25/11/2015 15:20:04 [INFO] AdobePackageBuilder - Build Version - 1.9.2.53

    25/11/2015 15:20:04 [INFO] AdobePackageBuilder - verbosity Logging Level Set of 4

    25/11/2015 15:20:10 [INFO] AdobePackageBuilder - Sucessfully extracted products at D:\Temp\{5B1E86DF-7A0C-4934-89B3-5EBADC1096D9}\ACCCx3_4_0_180

    25/11/2015 15:20:10 [INFO] AdobePackageBuilder - Extraction completed with return code = 0

    25/11/2015 15:20:16 [WARN] AdobePackageBuilder - no file exist at the (D:\Downloads\Adobe CC\CC Install\Build\ASU\Tools\CCC\Uninstall\deploy\remove.xml)

    25/11/2015 15:20:18 [INFO] AdobePackageBuilder - copied the file/folder Installer (packages)

    25/11/2015 15:20:19 [INFO] AdobePackageBuilder - Setup copy file/folder (resources)

    25/11/2015 15:20:19 [INFO] AdobePackageBuilder - copied the file (Set - up.exe)

    25/11/2015 15:20:19 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.db)

    25/11/2015 15:20:19 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.sig)

    25/11/2015 15:20:19 [INFO] AdobePackageBuilder - copied file (payloads\Setup.xml)

    25/11/2015 15:20:22 [INFO] AdobePackageBuilder - copied the file/folder Installer (packages)

    25/11/2015 15:20:23 [INFO] AdobePackageBuilder - Setup copy file/folder (resources)

    25/11/2015 15:20:23 [INFO] AdobePackageBuilder - copied the file (Set - up.exe)

    25/11/2015 15:20:23 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.db)

    25/11/2015 15:20:23 [INFO] AdobePackageBuilder - copied file (payloads\Media_db.sig)

    25/11/2015 15:20:23 [INFO] AdobePackageBuilder - copied file (payloads\Setup.xml)

    25/11/2015 15:20:23 [ERROR] AdobePackageBuilder - cannot rename the path (D:\Downloads\Adobe CC\CC Install\Build\Setup\AME9.0en_GB\Set-up.exe) to the path (D:\Downloads\Adobe CC\CC Install\Build\Setup\AME9.0en_GB\Set-up.dat)

    How can I successfully create a container to the package.

    Have you tried to clear the cache of CCP and try again? Damaged in the cache files can cause errors when building your package.

    Go to the 'Welcome' on the menu drop-down menu > Preferences, then choose "click here to purge the cache folder.

  • Technical details of the package in the data dictionary

    Hi can u tell someone in what data dictionary table func or procedure declared in the package specification is stored?

    For ex.

    CREATE OR REPLACE PACKAGE IN THE PKG_TEST

    F_1 FUNCTION RETURN NUMBER;

    F_2 FUNCTION RETURN NUMBER;

    F_3 FUNCTION RETURN NUMBER;

    -----------------------------

    -----------------------------

    -------------------------------

    FUNCTION F_10 RETURN NUMBER;

    END PKG_TEST;

    Now the data dictionary tables, I want to know what are the functions created in PKG_TEST.i.e. He me F_1 would list at F_10.

    I checked in User_Source, but finding not useful.

    user_procedures

  • Lock the package

    Hi all

    I can't compile my package because of a lock held on it. Let me give the details for clarity.
    select * from dba_ddl_locks where session_id=111 and owner='RAHUL';
    
    session_id  owner       name                type                           mode_held         mode_requested
    111           RAHUL     RAHUL_PKG        BODY                          NULL              None
    111           RAHUL     RAHUL_PKG     Table/Procedure/Type      NULL              None
    The details of the session of the 111 session id is as below
    select sid,serial#,user#,username,command,status,process,sql_exec_start from v$session where sid=122
    
    
     sid          serial#          user#                   username                     command                             status                     process      SQL_EXEC_START 
    111          3558             222                         RAHUL                      47                                   KILLED                   4420            13-DEC-12 02.00.00 AM
    Strange is that we tried to kill this session and State above «KILLED» of the same shows, the dba_ddl_locks stilll shows the details of the lock on the RAHUL_PKG package and we are unable to compile the package (the locking session runs from December 13, 2012) and we are unable to kill. Also, is that if I run a package that refers to another package, then we used to be able to compile the package referenced until and unless the dependent package has finished running?


    Thank you

    Published by: Rahul K on February 13, 2013 22:59

    The command "+ alter system kill session +" does not end the session - he asked the session to terminate (probably through a structure of the IPC in the LMS).

    The session must be able to read this request to kill - and end it. So instead of killing the process, this cette commande command looks more like a request for suicide.

    In some cases the session itself is waiting on a call (call blocking / synchronous). Which means that he cannot just see this request to kill. In this case, the session is shown as killed, but still running, the database.

    In such a case, we can kill the physical process (or thread on Windows) that killed session. And sometimes it's the only alternative when call blocking on which that session waits, is stuck and would never return control to the session.

    It is pretty safe to kill the (correct) physical process/thread in this way. Oracle is pretty robust in this respect - and has its own threads/processes of internal management which will detect that you have removed physically the session and will clean up after him.

  • Why we need to create the package instead of procedure or function in Oracle

    Hello

    Recently, I attended an interview, they asked,
    why we must create the package instead of procedure or function in oracle. Is a specific advantage, if we create together.
    I'm not sure. can u tell me please someone.

    Thank you and best regards,
    Sanjeev.

    Hello

    A part of the oracle documentation.

    What is a PL/SQL Package?
    A package is a schema object which includes subroutines, variables, and logically related PL/SQL types. Packages have two parts: a specification (spec) and a body. Sometimes, the body is unnecessary. The specification is the interface to the package. It declares the types, variables, constants, exceptions, cursors, and subprograms that can be referenced from outside the package. The body defines queries for the sliders and the code for the subprogrammes.

    Benefits of the PL/SQL Packages
    Packages have a long history in software engineering, offering important characteristics for a reliable, maintainable, and reusable code, often in team for large systems development efforts.

    Modularity

    Packages allow you to logically encapsulate Associates types, elements, and subroutines in a module named PL/SQL. Each package is easy to understand, and the interfaces between packages are simple, clear and well defined. This facilitates the development of applications.

    Easier application design

    When you design an application, all you need initially is the interface information in the package specification. You can code and compile a spec without his body. Stored subprograms that reference the package can then be compiled as well. You should not set the package body entirely until you are ready to complete the application.

    Information masking

    With packages, you can specify which types, elements, and subprogrammes are (and accessible) public or private (hidden and inaccessible). For example, if a package contains four subprogrammes, three can be public and one private. The package hides the implementation of the subprogramme private so that only the package (not your application) is affected if the application changes. This simplifies maintenance and improvement. Also, by hiding the implementation details of the users, you protect the integrity of the packaging.

    Feature added

    Sliders and packed public variables persist for the lifetime of a session. They can be shared by all the subprogrammes that are running in the environment. They allow you to manage data in any of the transactions without storing in the database.

    Best performance

    When you call a subprogram packaged for the first time, the whole package is loaded into memory. Subsequent calls to related subprograms in package require no disk i/o.

    Packets stop cascading dependencies and avoid an unnecessary recompilation. For example, if you change the body of a packaged function, Oracle does not recompile other routines that call the function; These routines only depend on parameters and return value that are declared in the specification, so they are recompiled only if the specification changes.

  • Could not publish the package of transfer - unknown error (failed the nfc connection)

    Hello

    I finally installed see almost all packages, only the transfer option is left.

    I have configured the server, installed a certificate, and now I want to publish the main image in the repository of transfer for the linked clone desktops.

    The beginning of the publishing process, it initializes, progress to 0% and he breaks up with an error message "could not publish the package to transfer."

    Everything is setuped very well, the repository is shared correctly, inside the folder "Processing" a new folder with the ID of the publication process is created, inside this folder is created a new folder named "work", but there is nothing inside.

    OK, I looked in the file transfer server debug log:


    2011-04-26 13:54:50, 776 < Thread-6 > [RepoMessageHelper] DEBUG message filter received: Type = RepoLifeCycle, RepoOperationName = COURSE, GUID = 6f84bcab-8f85-47f0-8fd7-8ced7dd9e90a
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] unable to connect to the server esx1.atb - potsdam.de:902: unknown error 10060 (0x274c)
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] CnxAuthdConnect: returning false because CnxAuthdConnectTCP has failed
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] CnxConnectAuthd: returning false because CnxAuthdConnect has failed
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] Cnx_Connect: returning false because CnxConnectAuthd has failed
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] Cnx_Connect: error message: unable to connect to server esx1.atb - potsdam.de:902
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] TicketNFCOperations::TicketNFCOperations: could not establish NFC connection: unable to connect to server esx1.atb - potsdam.de:902.
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] MVDIServer_CreateTransferFilesForPublish: error opening of session of the NFC.
    2011-04-26 13:54:54, 011 DEBUG < MessageFrameWorkDispatch > [ws_mvdi] MVDIServer_CreateTransferFilesForPublish: completed.
    2011-04-26 13:54:54, ERROR < MessageFrameWorkDispatch > 011 [ws_mvdi] failed to make the NFC connection to host ' esx1.atb - potsdam.de' while trying to generate files for transfer to desktop PC "serverDn.
    2011-04-26 13:54:54, ERROR 011 < PublishWorker-6f84bcab-8f85-47f0-8fd7-8ced7dd9e90a > [PublishWorker] package transfer error editing: 6f84bcab-8f85-47f0-8fd7-8ced7dd9e90a com.vmware.vdi.transfer.imagerepository.PublishWorker.run(SourceFile:123)
    com.vmware.vdi.transfer.commoncontrol.TransferServerException: Mvdi error occurred during queue: mvdi, Tip: createTransferFilesForPublish. Mvdi error code: 1
    at com.vmware.vdi.transfer.commoncontrol.TransferServerException.fromFrameworkError(SourceFile:68)
    at com.vmware.vdi.transfer.imagerepository.DiskBasedPublishWorker.a(SourceFile:402)
    at com.vmware.vdi.transfer.imagerepository.PublishWorker.run(SourceFile:85)
    at java.lang.Thread.run(Thread.java:619)

    2011-04-26 13:55, 776 < Thread-8 > [RepoMessageHelper] DEBUG message filter received: Type = RepoLifeCycle, RepoOperationName = COURSE, GUID = 6f84bcab-8f85-47f0-8fd7-8ced7dd9e90a
    2011-04-26 13:55:12, 261 DEBUG < MessageFrameWorkDispatch > [ws_vmx] Rpci: send request = 'machine.id.get'
    2011-04-26 13:55:12, 261 DEBUG < MessageFrameWorkDispatch > [ws_vmx] Rpci: Envoy request = 'machine.id.get', reply ='vdi.broker.useSvi = 0;

    I searched on Google, the VMware KBs, this forum, I have no solutions for this problem.

    You have the forwarding server in the same ESX/Cluster as desktop computers to be transffered?

    Also check if the forwarding server can contact esx on port 902

    ----------------

    > [ws_mvdi] unable to connect to the server esx1.atb - potsdam.de:902: unknown error 10060 (0x274c)
    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] CnxAuthdConnect: returning false because CnxAuthdConnectTCP has failed
    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] CnxConnectAuthd: returning false because CnxAuthdConnect failed

    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] Cnx_Connect: returning false because CnxConnectAuthd has failed
    2011-04-26 13:54:54, DEBUG 011 [ws_mvdi] Cnx_Connect: error message: unable to connect to server esx1.atb - potsdam.de:902

    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] TicketNFCOperations::TicketNFCOperations: could not establish NFC connection: unable to connect to server esx1.atb - potsdam.de:902.
    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] MVDIServer_CreateTransferFilesForPublish: error opening of session of the NFC.
    2011-04-26 13:54:54, 011 DEBUG [ws_mvdi] MVDIServer_CreateTransferFilesForPublish: completed.
    2011-04-26 13:54:54, ERROR 011 [ws_mvdi] failed to make the NFC connection to host ' esx1.atb - potsdam.de' while trying to generate files for transfer to desktop PC "serverDn.

    ----------------------

    -noble

  • Appellant the package with the cursor type and registration type variables

    Hello
    I tried the following package, which is similar to my requriement, the package has been successfully created, when you call it gives me error, the number of false arguments
    CREATE OR REPLACE PACKAGE Pkg_test1
    IS
      ----- Record Variable ----
      TYPE rec_job IS RECORD
       ( job varchar2(50),
         ename varchar2(50),
         sal number
       );
      TYPE typ_job IS TABLE OF rec_job;
      
      -- cursor declaration
      cursor emp_cur is select empno from  emp;
      TYPE emp_ttyp IS TABLE OF emp_cur%ROWTYPE INDEX BY PLS_INTEGER;
      ---- Procedure Declaration ----
    PROCEDURE proc_job ( p_cur IN   emp_ttyp,
                         o_Rat     OUT  typ_job );
     
    END Pkg_test1;
    /
    
    CREATE OR REPLACE PACKAGE BODY Pkg_test1
    IS
     
     PROCEDURE proc_job ( p_cur IN   emp_ttyp, o_Rat     OUT  typ_job )
      IS 
        -- Declare collection variable 
        l_typ_job typ_job; 
     
    BEGIN
       for i  in 1..p_cur.count loop
        select job,ename,sal bulk collect into l_typ_job
          from emp
          where empno=p_cur(i).empno ; 
    o_Rat:= l_typ_job;
    end loop;
    --Output
    for i in 1..o_rat.count loop
     DBMS_OUTPUT.PUT_LINE ( 'Output :'||o_rat(i).job||','||o_rat(i).ename||','||o_rat(i).sal );
      end loop;
    
    EXCEPTION
      WHEN OTHERS THEN 
           DBMS_OUTPUT.put_line('Procedure proc_job  - '|| SQLCODE|| '-'|| SQLERRM);
     END proc_job;
      end pkg_test1;
    /
    The package is created without errors
    But during the call, it gives me errors
    DECLARE 
      P_CUR PKG_TEST1.emp_ttyp;
      O_RAT PKG_TEST1.rec_job;
    BEGIN 
      PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
      COMMIT; 
    END; 
    Error is:
    PLS-00306: wrong number or types of arguments in call to 'PROC_JOB'
    Can you let me see how to overcome this error...

    Thank you..

    Published by: Smile on 9 may 2012 07:27
    SQL> DECLARE
      2  P_CUR PKG_TEST1.emp_ttyp;
      3  O_RAT PKG_TEST1.typ_job := PKG_TEST1.typ_job(null);
      4  BEGIN
      5  PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
      6  END;
      7  /
    Procedure proc_job  - -6531-ORA-06531: Reference to uninitialized collection
    
    PL/SQL procedure successfully completed.
    
    SQL> CREATE OR REPLACE PACKAGE BODY Pkg_test1
      2  IS
      3
      4   PROCEDURE proc_job ( p_cur IN   emp_ttyp, o_Rat     OUT  typ_job )
      5    IS
      6      -- Declare collection variable
      7      l_typ_job typ_job := typ_job();
      8
      9  BEGIN
     10     for i  in 1..p_cur.count loop
     11      select job,ename,sal bulk collect into l_typ_job
     12    from emp
     13    where empno=p_cur(i).empno ;
     14  o_Rat:= l_typ_job;
     15  end loop;
     16  --Output
     17  if o_rat is null then return; end if;
     18  for i in 1..o_rat.count loop
     19   DBMS_OUTPUT.PUT_LINE ( 'Output :'||o_rat(i).job||','||o_rat(i).ename||','||o_rat(i).sal );
     20    end loop;
     21  EXCEPTION
     22    WHEN OTHERS THEN
     23     DBMS_OUTPUT.put_line('Procedure proc_job  - '|| SQLCODE|| '-'|| SQLERRM);
     24   END proc_job;
     25    end pkg_test1;
     26  /
    Package body created.
    
    SQL> DECLARE
      2  P_CUR PKG_TEST1.emp_ttyp;
      3  O_RAT PKG_TEST1.typ_job;
      4  BEGIN
      5  PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
      6  END;
      7  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

Maybe you are looking for

  • Update firmware 7.7.7 7.6.7

    My airport express and extreme are updated to firmware again offers: 7.7.7 and 7.6.7 for adults. It is not announced and what's inside

  • iWork Installer

    I wiped my own machine and reinstalled OSX10.10.5, I migrated my files and applications. When I go to launch the pages he tells me that iWorks Setup is missing. I can't find that anywhere and downloaded the app store Age iWorks there. any ideas?

  • Cannot download iPhotos on Apple Retail Store or the Apple website.

    The reason or to do it is because I just upgraded my OS from 10.7 to Yosemite. The old iPhotos does not work. When I tried to download the new worm from the App Store, it prevents me from doing and motivated "update not available with this Apple ID".

  • Envy-15: Downgrade new notebook with Windows to Windows 7 (drivers) 10

    Hi, I just bought a new laptop with 10 Windows preinstalled as the base OS. For various reasons, I want to upgrade to Windows 7. I have an authentic copy of the retail of Windows 7 with a valid license key. What I really need is drivers for Windows 7

  • t540p wireless function key does not work do not.

    I am a PC technician a Thinkpad T540p of construction for the end user. It is currently running Windows 7 Enterprise 64-bit. I installed all the drivers directly from the Lenovo support page. My problem is that the function key to enable the wireless