Strategic review of using Pro * C package vs embedded SQL Select

Hello
I have an old application package.procedure that I'm looking using proC call to get the necessary data through Oracle Package.Procedure. Real call to the package see below, 1 parameter, released as a REF Cursor, SQL Select is simple-nothing fancy.

I was wondering what might be the benefits (if any) to do that instead of coding real SQL Select into my proC code?
In the case of any change, you need to change the proC and body package, rather than just do it in place if used directly?

Source control, PM, nice structure inside of the Oracle, departmental approach just? Everyone at least one list?

Appreciate your opinion, thank you all.



Trent

----------------
DECLARE
number of in_idryba2;
SIA OUT_LIST. UP_CRUD_ryba. SOR_LIST;
RLIST SIA.t_ryba%ROWTYPE;
BEGIN
IN_IDryba2: = 2;
SIA. UPK_CRUD_ryba. USP__GETLIST_01 (in_idryba2 = > in_idryba2, OUT_LIST = > OUT_LIST);
LOOP
EXTRACT THE OUT_LIST IN RLIST;
WHEN THE EXIT OUT_LIST % NOTFOUND;
DBMS_OUTPUT. PUT_LINE ("ID ='|") RLIST.ID_ryba |' DESCRP =' | RLIST. SRIPT);
END LOOP;

END;

Hello

This is not so much a direct answer to your question, but this thread AskTom discusses some of the advantages to using code in the database and the client.

http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:30732069210515

If search you around you can find several other discussions about the same thing.

The centralization and reusability are two factors that lead me to focus on the code that is stored in the database.

Kind regards

Mark

Tags: Oracle

Similar Questions

  • Search for information using Multi-SCORM Packager

    The title pretty much everything said.  I'm looking for a good reference on how to use Multi-SCORM Packager.

    Thank you.

    Jay

    How to package multiple SCOs using Adobe Multi-SCORM Packager

  • Can I use it for packaging?

    Can I use it for packaging?

    Hello

    Yes, you can.  Please check the license terms for more information - Royalty free images, pictures and graphics. Adobe Stock

    Thank you

    Bev

  • I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    Hey paulc6148125,

    Please try the mode settings different button in Adobe Acrobat Reader DC-> leModifiermenu-> preferences-> general categories.

    Kind regards

    Nicos

  • Can I add watermarks to PDF files using the PDF package?

    Can I add watermarks to PDF files using the PDF package?

    Hi Susannah,

    Adobe PDF Pack does not allow to edit a PDF file. To do this, you would need Acrobat. We invite you to try Acrobat free for 30 days: see http://www.adobe.com/products/acrobat.html for more information.

    This help document describes how to watermark a PDF in Acrobat: add watermarks to PDF

    Best,

    Sara

  • How to use pro Prime Minister during 1 month

    How to use pro Prime Minister during 1 month

    If you only need a month just download the trial and let it expire in 30 days.

  • Can we use the same package for main and begotten of concurrent programs.

    Hello

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1? If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    Thank you
    HC

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1?

    Yes you can.

    If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    When you second the 2nd program it will not work if the 1st program execution, and he has to wait until you have completed the 1st program.

    Don't know what code you use in the first and second procedures or even in the whole, but you can try this in a TEST instance first and check whether or not it works as expected.

    Thank you
    Hussein

  • Impossible to install IPA using a standard package in Flash Builder 4.6 (Air 3.1)

    I created an application hello world that doesn't use any external resources (it draws just a box on the screen) and I can't seem to be installed in one of my iDevices (5G, iPhone 3GS, iPhone 4, iPod touch run all IOS 4 or above) using standard packaging in Flash Builder 4.6.

    When I try to install the IPA file using the iPhone Configuration utility it comes up with the error:

    "Could not install application on the device. Error: a signed resource has been added, changed, or deleted. »

    If I use the fast option in Flash Builder to package then I don't get any errors and the application installs works on all devices. The problem with this option is that I want to run performance tests and obviously using rapid option packaging not give me the actual data.

    I use Windows 7 for my development - I do not own a Mac.

    My certificates and provisions are very good because I double checked the.

    That's why others can get to work in Flash Builder 4.6 packaging standards (Air 3.1) on Windows 7? If Yes - can anyone suggest fixes for the please my problem?

    Just found the answer to this by experimentation.

    Its the iPhone Configuration Utility, which is the problem. If I use iTunes then packaging standard works. Do not know why the iPhone Configuration utility has a problem with the standard package, although

  • Email scripts do not when using the UTL_TCP package

    Hi all

    I wrote a script to email using the UTL_TCP package.

    create or replace procedure pr_email (p_email_from in varchar2,
    p_email_to in varchar2,
    p_email_cc in varchar2,
    p_email_subject in varchar2,
    p_email_text in varchar2
    *) is *.

    l_conn utl_tcp.connection;

    l_result pls_integer;
    l_localhost varchar2 (100): = ' ora - drs.dryers.com';

    Start
    dbms_output.put_line ('Start: execution of ' |) "PR_EMAIL");
    l_conn: = utl_tcp.open_connection (l_localhost, 1523);
    dbms_output.put_line ('open Connection');
    l_result: = utl_tcp.write_line (l_conn, 'DRS HELO');
    dbms_output.put_line ('The L_RESULT' | l_result);

    dbms_output.put_line (' checking the connection ' |) UTL_TCP.get_line (l_conn, true, true)); _ + / * mkk * / *

    l_result: = utl_tcp.write_line (l_conn, l_localhost);
    l_result: = utl_tcp.write_line (l_conn, ' MAIL FROM: ' | ') p_email_from);
    l_result: = utl_tcp.write_line (l_conn, ' RCPT TO: ' | ') p_email_to);

    l_result: = utl_tcp.write_line (l_conn, ' RCPT TO: ' | ') p_email_cc);
    dbms_output.put_line ('The L_RESULT' | l_result);
    l_result: = utl_tcp.write_line (l_conn, 'DATA');
    l_result: = utl_tcp.write_line (l_conn,
    *'Date: ' | *
    TO_CHAR (sysdate, ' dd my yy hh24:mi:ss'));)
    l_result: = utl_tcp.write_line (l_conn,
    *' De : ' || p_email_from | ' <' || *
    p_email_from | ') ;
    l_result: = utl_tcp.write_line (l_conn, "MIME-Version: 1.0 '");
    l_result: = utl_tcp.write_line (l_conn,
    *'To: ' || p_email_to | ' <' || *
    p_email_to | ') ;

    --*
    l_result: = utl_tcp.write_line (l_conn,
    *'Cc: ' || p_email_cc | ' <' || *
    p_email_cc | ') ;
    --*
    l_result: = utl_tcp.write_line (l_conn, ' subject: ' | p_email_subject);
    l_result: = utl_tcp.write_line (l_conn, ' Content-Type: text/plain "");
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line (l_conn, p_email_text);
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line (l_conn, '.');
    l_result: = utl_tcp.write_line (l_conn, 'QUIT');
    UTL_TCP.close_connection (l_conn);
    dbms_output.put_line ("' closed connection");

    dbms_output.put_line ('End: execution of ' |) "PR_EMAIL");

    end pr_email;


    When I'm the enforcement procedure
    pr_email exec ('[email protected]', '[email protected]', '[email protected]', 'Test', 'Test');
    It's a failure to comment . MKK.

    I get an error message:
    ORA-29259: end-of-input reached
    ORA-06512: at "SYS." UTL_TCP", line 127
    ORA-06512: at "SYS." UTL_TCP", line 321
    ORA-06512: at "SYS." UTL_TCP", line 391
    ORA-06512: at "DRS_MGR. PR_EMAIL", line 20
    ORA-06512: at line 1


    When I comment the code dbms_output.put_line (' checking the connection ' |) UTL_TCP.get_line (l_conn, true, true)); + / * mkk * / _
    and run the procedure, I get no error, but I do not receive the mail.

    FOR INFO:
    The hostname and PortNumber I got from our Listner.ora file to our database.


    Let me know I do everything wrong here.

    Appreciate your help.

    Thank you
    Madhu K.

    UTL_MAIL is the new package to send mail from PL/SQL. UTL_SMTP was the package to do before 10.1.

    Normally, you would ask the administrator of the mail server if they are really running the SMTP server on a very unusual port on that server. Except that you can manually telnet to the server specified on the specified port, type "HELO" and see what was the answer. If there's nothing listening on the port, the telnet session fails. If there is an SMTP server listens on this port, it must respond to the HELO command.

    Justin

  • USING SEQUENCES IN PACKAGE SPEC

    I want to use Sequence.NEXTVAL & Sequence.CURRVAL in the package. How can I report the sequence of global variable and make them available for all procedures stored inside the package?

    Any help much appreciated...

    Thank you all in advance

    Data Boy wrote:
    No, I know who, but directly using SEQUENCES. CURRVAL inside the Insert statement is not a good practice.

    We need to declare a variable in this procedure and then extract the SEQUENCE. CURRVAL in this variable
    and use this variable within the insert statement. But we have this scope variable will only be available within this procedure.
    If I want the same CURRVAL in another stored procedure. How can I get... That is my Question.

    What exactly are you trying to achieve?

    If it is a case of needing to know the value of the sequence number assigned to an inserted record, you would normally use the RETURNING clause on the Insert...

    SQL> create table temp (id number, val varchar2(20));
    
    Table created.
    
    SQL> create sequence temp_seq;
    
    Sequence created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create trigger trg_temp before insert on temp
      2  for each row
      3  begin
      4    select temp_seq.nextval into :new.id from dual;
      5* end;
    SQL> /
    
    Trigger created.
    
    SQL> set serverout on
    SQL> declare
      2    v_num number;
      3  begin
      4    insert into temp (val) values ('Fred') returning id into v_num;
      5    dbms_output.put_line('ID inserted was: '||to_char(v_num));
      6  end;
      7  /
    ID inserted was: 1
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from temp;
    
            ID VAL
    ---------- --------------------
             1 Fred
    
    SQL>
    
  • Tables used in a package

    Hello
    I would like to know the tables used in a bunch of sql navigator?

    Query USER_DEPENDENCIES:

    SQL> create package tp is
      2  procedure p;
      3  end;
      4  /
    
    Package creato.
    
    SQL> create or replace package body tp is
      2  procedure p is
      3  begin
      4  delete t1;
      5  end;
      6  end;
      7  /
    
    Creato package body.
    
    SQL> desc user_dependencies;
     Nome                                      Nullo?   Tipo
     ----------------------------------------- -------- ----------------------------
     NAME                                      NOT NULL VARCHAR2(30)
     TYPE                                               VARCHAR2(17)
     REFERENCED_OWNER                                   VARCHAR2(30)
     REFERENCED_NAME                                    VARCHAR2(64)
     REFERENCED_TYPE                                    VARCHAR2(17)
     REFERENCED_LINK_NAME                               VARCHAR2(128)
     SCHEMAID                                           NUMBER
     DEPENDENCY_TYPE                                    VARCHAR2(4)
    
    SQL> select REFERENCED_NAME, REFERENCED_TYPE
      2  from user_dependencies
      3  where NAME='TP';
    
    REFERENCED_NAME                                                  REFERENCED_TYPE
    ---------------------------------------------------------------- -----------------
    T1                                                               TABLE
    TP                                                               PACKAGE
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

  • List of tables used in a package

    Is there a way to know the list of all the tables used in a package?

    Yes there is:

    select referenced_owner,referenced_name
    from dba_dependencies
    where name='your package_name' and owner='your package owner'
    and referenced_type='TABLE';
    

    Toon

  • How to use the DBMS_ROWID package

    Hello

    I am not able to use this DBMS_ROWID package, I ran this script in my schema dbmsrwid.sql

    When I use this sql I get the following error:

    SQL > select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    2 FROM emp3
    3 where id = 1;
    Select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    *
    ERROR on line 1:
    ORA-04067: not executed, the package body "KAM. DBMS_ROWID' does not exist
    ORA-06508: PL/SQL: called program unit is not found: "KAM. DBMS_ROWID.
    ORA-06512: at line 1

    and also when I try to use below that I get the same above erro

    SQL > DBMS_ROWID. () ROWID_BLOCK_NUMBER

    If I connect with scott so I am able to do it as below:

    SQL > select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    2 FROM emp
    3. WHERE ename = 'KING '.

    DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    ------------------------------------
    30
    Thank you and best regards,
    Kam

    Did you run dbmsrwid.sql in the KAM schema? Because it seems that the DBMS_ROWID package has been created it there.

    I suggest you drop the package in the KAM schema version, unless there is a specific reason that you need (very, very unlikely that you do).

    DROP PACKAGE kam.dbms_rowid
    

    If you do this, the SELECT statement that has worked in the SCOTT schema should also work in the KAM schema.

    SQL > SYS. DBMS_ROWID. () ROWID_BLOCK_NUMBER
    SP2-0734: unknown command starts 'SYS. DBMS_R... "- rest of line is ignored.

    You cannot call a function like this just to the SQL * quicker. You need to put it in a SELECT statement. If you add the SYS prefix to the query that you previously had, it should work as well. But if you do not file the package, you will always have an invalid version of DBMS_ROWID in the KAM schema.

    Justin

  • Cannot see data in excel after using the export_excel package

    After using the export_excel package of some cells in the display worksheet "#". If the cell is selected displays the data, but it disappears when you exit the cell and try to print it. Anyone know what causes this problem?

    Thank you

    Hello

    From the following link, the maximum width of a column in Excel 2000 is 255 characters: http://support.microsoft.com/kb/264626

    So, it seems that you may need to be upgraded, divide the cell into 2 or more cells, or add in a few line breaks?

    Andy

  • version of the application server to be installed to make use of the package-srw

    Hello

    If we have 9.2. version of the database, is there a specific version of the reporting services must be installed in order to use the srw package?

    Thank you
    Sisi

    Sisi,
    The package SRW is a built-ins primary packaging in the Oracle reports. It is available in all versions of reports since the 2.5 version (at least that's when I started to use the reports and the package was there). :-) I think the more appropriate question is: which version of reports is your report created with files and use this version on the server. If you configure the Application Server for the first time and you will begin to develop reports using Oracle reports Builder, then I suggest to use the latest version of Oracle (10 g version) reports.

    I hope this helps.
    Craig...

    -If my response or response from another is useful answers your question, please check the response accordingly. Thank you!

Maybe you are looking for