Functions in Standar Built-In Package

Hi..
I need information about somethings function, incluide into
"Standar package spec" on Forms in Built-in Packages.
Ex.
USERENV
If anyone can helpme, where find it, thanks.
null

Hi BioDave,
I appreciate that you took the time to update your post when you found the solution. That saved me some time, that I now can use to help others...
Thanks!
- Philip Courtois, Thinkbot Solutions

Similar Messages

  • Can i create any procedure or function inside a oracle reserve package?

    Hi!
    Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
    Thanks in advance.
    Satyaki De.

    No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
    Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
    Re: DBMS_OUTPUT.PUT_LINE

  • Stproc built in package

    Hello All,
    We are using an ancient version of report writer i.e. 2.5! I have got a very old report to modify which is accessing a stored package procedure. The procedure had to be modified to accept one more parameter. Now the report does not compile. That is because the form has a local package definition with the same package name. The local version seems to have been generated by stproc built in package of report writer. It does not seem to have any business logic but some kind of "interface" with the RDBMS package. If the local version is dropped the report still does not compile (Though there is only one reference to the package in the entire report).
    Modifying the local version of the package to match the changes in RDBMS is extremely painful, as it seems to be generated code, which has entire code of one page in just "one line", wrapped around (see attached). Finally we managed to change it and got the form working. Oracle documentation seems to have not much about stproc except that "it is internal and should not be used".
    What I need to know is
    1. Are there situations where such "interface local version" is necessary. If not why dropping local version is causing problems?
    2. How can this local version be updated without manual intervention to synchronize with modified RDBMS package?
    Thanks in Advance,
    NAG

    Sorry, missed the attachment mentioned above.
    The local package spec & body are as follows -
    package PKG_SAS_UTILS is function DF_GET_ADDRESS (P_ADD_REFNO NUMBER) return CHAR; function DF_GET_NAME (P_PEO_REFNO INTEGER) return CHAR; procedure DP_CREATE_KCS (P_SESSION_ID CHAR, P_ALE_REFNO CHAR, P_APP_REFNO NUMBER, P_AREA_CODE CHAR); procedure DP_CREATE_PRA (P_SREV_ID NUMBER, P_SREV_HRV_STATUS CHAR, P_DOMAIN CHAR, P_CODE CHAR); function DF_APP_FILE_REF (P_APP_REFNO NUMBER) return CHAR; function DF_GET_SYS_PARAM (P_PARAM_CODE CHAR) return CHAR; function DF_APP_APPROVED_DATE (P_APP_REFNO NUMBER, P_HRV_APPLCAT CHAR) return DATE; function DF_GET_TEAM (P_ADD_REFNO NUMBER) return CHAR; function DF_APP_ADDRESS (P_APP_REFNO NUMBER, P_TYPE CHAR) return CHAR; function DF_APP_NAME (P_APP_REFNO NUMBER) return CHAR; function DF_GET_DSP_SCODES (P_STATUS_CODE CHAR) return CHAR; procedure DP_LENGTH_OF_ASSIST (P_APP_REFNO NUMBER, P_RLI_CODE CHAR, P_NO_DAYS out NUMBER, P_TOT_AMT out NUMBER, p_date_till in date); end;
    package body PKG_SAS_UTILS is function DF_GET_ADDRESS (P_ADD_REFNO NUMBER) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_GET_ADDRESS(:P_ADD_REFNO); end;'); stproc.bind_o(X0); stproc.bind_i(P_ADD_REFNO); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_GET_NAME (P_PEO_REFNO INTEGER) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_GET_NAME(:P_PEO_REFNO); end;'); stproc.bind_o(X0); stproc.bind_i(P_PEO_REFNO); stproc.execute; stproc.retrieve(1, X0); return X0; end; procedure DP_CREATE_KCS (P_SESSION_ID CHAR, P_ALE_REFNO CHAR, P_APP_REFNO NUMBER, P_AREA_CODE CHAR) is begin stproc.init('begin PKG_SAS_UTILS.DP_CREATE_KCS(:P_SESSION_ID, :P_ALE_REFNO, :P_APP_REFNO, :P_AREA_CODE); end;'); stproc.bind_i(P_SESSION_ID); stproc.bind_i(P_ALE_REFNO); stproc.bind_i(P_APP_REFNO); stproc.bind_i(P_AREA_CODE); stproc.execute; end; procedure DP_CREATE_PRA (P_SREV_ID NUMBER, P_SREV_HRV_STATUS CHAR, P_DOMAIN CHAR, P_CODE CHAR) is begin stproc.init('begin PKG_SAS_UTILS.DP_CREATE_PRA(:P_SREV_ID, :P_SREV_HRV_STATUS, :P_DOMAIN, :P_CODE); end;'); stproc.bind_i(P_SREV_ID); stproc.bind_i(P_SREV_HRV_STATUS); stproc.bind_i(P_DOMAIN); stproc.bind_i(P_CODE); stproc.execute; end; function DF_APP_FILE_REF (P_APP_REFNO NUMBER) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_APP_FILE_REF(:P_APP_REFNO); end;'); stproc.bind_o(X0); stproc.bind_i(P_APP_REFNO); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_GET_SYS_PARAM (P_PARAM_CODE CHAR) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_GET_SYS_PARAM(:P_PARAM_CODE); end;'); stproc.bind_o(X0); stproc.bind_i(P_PARAM_CODE); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_APP_APPROVED_DATE (P_APP_REFNO NUMBER, P_HRV_APPLCAT CHAR) return DATE is X0 DATE; begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_APP_APPROVED_DATE(:P_APP_REFNO, :P_HRV_APPLCAT); end;'); stproc.bind_o(X0); stproc.bind_i(P_APP_REFNO); stproc.bind_i(P_HRV_APPLCAT); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_GET_TEAM (P_ADD_REFNO NUMBER) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_GET_TEAM(:P_ADD_REFNO); end;'); stproc.bind_o(X0); stproc.bind_i(P_ADD_REFNO); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_APP_ADDRESS (P_APP_REFNO NUMBER, P_TYPE CHAR) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_APP_ADDRESS(:P_APP_REFNO, :P_TYPE); end;'); stproc.bind_o(X0); stproc.bind_i(P_APP_REFNO); stproc.bind_i(P_TYPE); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_APP_NAME (P_APP_REFNO NUMBER) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_APP_NAME(:P_APP_REFNO); end;'); stproc.bind_o(X0); stproc.bind_i(P_APP_REFNO); stproc.execute; stproc.retrieve(1, X0); return X0; end; function DF_GET_DSP_SCODES (P_STATUS_CODE CHAR) return CHAR is X0 CHAR(2000); begin stproc.init('begin :X0 := PKG_SAS_UTILS.DF_GET_DSP_SCODES(:P_STATUS_CODE); end;'); stproc.bind_o(X0); stproc.bind_i(P_STATUS_CODE); stproc.execute; stproc.retrieve(1, X0); return X0; end; procedure DP_LENGTH_OF_ASSIST (P_APP_REFNO NUMBER, P_RLI_CODE CHAR, P_NO_DAYS out NUMBER, P_TOT_AMT out NUMBER, p_start_date in date) is begin stproc.init('begin PKG_SAS_UTILS.DP_LENGTH_OF_ASSIST(:P_APP_REFNO, :P_RLI_CODE, :P_NO_DAYS, :P_TOT_AMT, :p_date_till); end;'); stproc.bind_i(P_APP_REFNO); stproc.bind_i(P_RLI_CODE); stproc.bind_o(P_NO_DAYS); stproc.bind_o(P_TOT_AMT); stproc.bind_i(p_date_till); stproc.execute; stproc.retrieve(3, P_NO_DAYS); stproc.retrieve(4, P_TOT_AMT); end; end;

  • Orace CDC tables (built in package)

    Hi,
    Currently I am working on a project about the CDC(Change Data Capture) tables: after I enable the cdc tables in the oracle database for some tables, I need to query some data from these cdc tables. since this related to very complex pl sql, so I am wondering are there some built in packages which allow me to use directly to query some useful data from the cdc tables?
    Please let me know if you know something, thank you very much.
    here is a simple example:
    there are several tables about a users application to some program:
    the online application form will be saved in the table: application
    Now I enable the cdc table of application table, and now I have the cdc table: application_cdc
    this cdc table will record any changes of the application table that the applicant made,
    Now I need to get some table from table: application_cdc,
    is there some good built in functions or procedure that i can use directly?

    Hi,
    Thank you for the information, and sorry for the confusion, yes, I am looking for the packages that allow me to get some information from those cdc tables(I already have cdc tables with change records in it). what you told me about the DBMS_CDC_UTILITY package is useful, but it is too general(high level) that I can not use.
    For the CDC tables I have, there are many changes records over there, I just need some useful records(rows), now it is difficult for me to write plsql to get it directly.
    The Oracle DB I am using is 11g, Synchronous, and related to the subscriber, and I have the dw_.._cdc tables already, if there are not so many built in package for me to query the dw_.._cdc tables, what I can do is:
    (1) to write complex plsql directly to query these cdc tables
    or
    (2)recreate the cdc tables(many original tables combined to one table): to modify the publisher part to make the data(for subscriber) more related to what I want
    Im new to the cdc concept, please give me some advise, Thank you.

  • How can I use 3D function in Photoshop CS6 (student package)?

    Please let me know how can I use 3D function in Photoshop CS6 (student package)?
    Thanks,

    Thanks so much for your helpful reply.
    Now I' ve already installed Adobe Creative Suite 6 Production Premium (Student Package), Extended included. But when I open Photoshop CS6, there' s still no 3D function in menu bar.
    Would you please tell me how to activate this function?
    Thanks,

  • Replacing some text in a text file using TEXT_IO built-in package

    Hi everybody...
    I have written a form procedure in order to replace some text in a text document using the TEXT_IO built-in package. Although the text to be replaced is found , eventually the text is not replaced....
    Obviously , the new file - after the replacement - is not saved(?)..
    So , what should i do?
    The procedure is as follows...
    BEGIN
    in_file := Text_IO.Fopen(filename, 'a');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    IF INSTR(linebuf,'C:\LIBS\')<>0
    THEN
    I:=INSTR(linebuf,'C:\LIBS\')-1;
    SUB_STR_BEFORE_VAR:=SUBSTR(linebuf,1,I);
    SUB_STR_AFTER_VAR:=SUBSTR(linebuf,I+9);
    Text_IO.PUT(in_file,SUB_STR_BEFORE_VAR||'D:/SIM/'||SUB_STR_AFTER_VAR);
    END IF;     
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Fclose(in_file);
    END;
    WHERE :linebuf : is the variable in which the line contents are saved...
    SUB_STR_BEFORE_VAR : is the variable which keeps the substring before the first character of the search string
    SUB_STR_AFTER_VAR : is the variable which keeps the substring after the last character of the search string
    I : variable which keeps the number of character in line (variable linebuf) in which the first character of the search string is found
    Thanks , a lot
    Simon

    Hello,
    The A (Append) mode is used to add data at the end of the file. It will not replace existing data.
    Open the source file in R mode, open the target file in W mode, then rename it with the source name when finished.
    Francois

  • Information on built-in packages of HTMLDB

    Hi All,
    I have recently started working on HTMLDB.
    Can anybody tell me where from can i get information abt the built-in packages of HTMLDB. I have came across many like WWV_ . But, i dont know where from can i get detailed info abt them.
    Thanks in advance,
    Regards,
    Monika

    Monika,
    The packages available to be used in your own applications are the ones starting with htmldb_. They are documented in the Oracle HTML DB Documentation (http://www.oracle.com/technology/products/database/htmldb/index.html), chapter 16, HTML DB APIs.
    Regards,
    Marc

  • How can i find start line of any functions or procedures stored in package body?

    hi
    how can i find start line of any functions or procedures stored in package body?
    is there any way to write a query from for example user_source?
    thanks

    how can i find start line of any functions or procedures stored in package body?
    Why? What will you do differently if a procedure starts on line 173 instead of line 254?
    Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
    If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
    Try this simple sample code. The query is modified from that doc sample:
    -- tell the compiler to collect the info
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    -- recompile the package
    CREATE OR REPLACE package SCOTT.pack1 as
    PROCEDURE proc1;
    PROCEDURE proc2;
    END;
    CREATE OR REPLACE package BODY SCOTT.pack1 as
    PROCEDURE proc1 IS
    BEGIN
      NULL;
    END;
    PROCEDURE proc2 IS
    BEGIN
      proc1;
    END;
    PROCEDURE proc3 IS
    BEGIN
      proc1;
      proc2;
    END;
    END;
    -- query the info for the package spec
    WITH v AS (
      SELECT    Line,
                Col,
                INITCAP(NAME) Name,
                LOWER(TYPE)   Type,
                LOWER(USAGE)  Usage,
                USAGE_ID,
                USAGE_CONTEXT_ID
        FROM USER_IDENTIFIERS
          WHERE Object_Name = 'PACK1'
            AND Object_Type = 'PACKAGE'
    SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
                     Name, 20, '.')||' '||
                     RPAD(Type, 20)||
                     RPAD(Usage, 20)
                     IDENTIFIER_USAGE_CONTEXTS
      FROM v
      START WITH USAGE_CONTEXT_ID = 0
      CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
      ORDER SIBLINGS BY Line, Col
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             declaration        
    2,  Proc1............. procedure           declaration        
    3,  Proc2............. procedure           declaration        
    -- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             definition         
    2,  Proc1............. procedure           definition         
    6,  Proc2............. procedure           definition         
    8,    Proc1........... procedure           call               
    10,  Proc3............. procedure           declaration        
    10,    Proc3........... procedure           definition         
    12,      Proc1......... procedure           call               
    13,      Proc2......... procedure           call               

  • Function call in procedure within Package Body

    I am a novice in PL/SQL so that I can't find out where the problem is. I am testing a function call in procedure within a Package Body.
    But the PL/SQL Complier doesn't compile the package body but I don't know what I do wrong. Plz let me know how to call a function in procedure within a Package Body?
    Here are the Packaget test programs..
    CREATE OR REPLACE PACKAGE manage_students
    IS
    PROCEDURE find_sname;
    PROCEDURE find_test;
    PROCEDURE find_test_called;
    FUNCTION GET_LASTMT
    RETURN SEQUENCE_TEST.SEQ_NO%TYPE;
    END manage_students;
    CREATE OR REPLACE PACKAGE BODY manage_students AS
    v_max_nbr SEQUENCE_TEST.SEQ_NO%TYPE;
    PROCEDURE find_sname
    IS
    BEGIN
    BEGIN
    SELECT MAX(SEQ_NO)
    INTO v_max_nbr
    from SEQUENCE_TEST;
    DBMS_OUTPUT.PUT_LINE('MAX NUMBER is : '||v_max_nbr);
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    RETURN;
    END;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    END find_sname;
    PROCEDURE find_test
    IS
    BEGIN
    BEGIN
    DBMS_OUTPUT.PUT_LINE('MAX NUMBER Called from another procedure : '||v_max_nbr);
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    RETURN;
    END;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    END find_test;
    FUNCTION GET_LASTMT
    RETURN SEQUENCE_TEST.SEQ_NO%TYPE
    IS
    v_max_nbr SEQUENCE_TEST.SEQ_NO%TYPE;
    BEGIN
    SELECT MAX(SEQ_NO)
    INTO v_max_nbr
    from SEQUENCE_TEST;
    RETURN v_max_nbr;
    EXCEPTION
    WHEN OTHERS
    THEN
    DECLARE
    v_sqlerrm VARCHAR2(250) :=
    SUBSTR(SQLERRM,1,250);
    BEGIN
    RAISE_APPLICATION_ERROR(-20003,
    'Error in instructor_id: '||v_sqlerrm);
    END;
    END GET_LASTMT;
    PROCEDURE find_test_called
    IS
    BEGIN
    BEGIN
    V_max := Manage_students.GET_LASTMT;
    DBMS_OUTPUT.PUT_LINE('MAX_NUMBER :'|| V_max);
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    RETURN NULL;
    END;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN DBMS_OUTPUT.PUT_LINE('Error in finding student_id: ');
    END find_test_called;
    END manage_students;
    DECLARE
    v_max SEQUENCE_TEST.SEQ_NO%TYPE;
    BEGIN
    manage_students.find_sname;
    DBMS_OUTPUT.PUT_LINE ('Student ID: Execute.');
    manage_students.find_test;
    manage_students.find_test_called;
    END;
    -----------------------------------------------------------------------------------------------

    Hi,
    Welcome to the forum!
    You'll find that there are a lot of people willing to help you.
    Are you willing to help them? Whenever you have a problem, post enough for people to re-create the problem themselves. That includes CREATE TABLE and INSERT statements for all the tables you use.
    Error messages are very helpful. Post the complete error message you're getting, including line number. (It looks like your EXCEPTION sections aren't doing much, except hiding the real errors. That's a bad programming practice, but probably not causing your present problem - just a future one.)
    Never post unformatted code. Indent the code to show the extent of each procedure, and the blocks within each one.
    When posting formatted text on this site, type these 6 characters:
    \(all small letters, inside curly brackets) before and after each section of formatted test, to preserve the spacing.
    For example, the procedure find_test_called would be a lot easier to read like this:PROCEDURE find_test_called
    IS
    BEGIN
         BEGIN
              V_max := Manage_students.GET_LASTMT;
              DBMS_OUTPUT.PUT_LINE ('MAX_NUMBER :' || V_max);
         EXCEPTION
              WHEN OTHERS
              THEN
                   DBMS_OUTPUT.PUT_LINE ('Error in finding student_id: ');
                   RETURN      NULL;
         END;
         COMMIT;
    EXCEPTION
         WHEN OTHERS
         THEN
              DBMS_OUTPUT.PUT_LINE ('Error in finding student_id: ');
    END find_test_called;
    It's much easier to tell from the code above that you're trying to return NULL from a procedure.  Only functions can return anything (counting NULL); procedures can have RETURN statements, but that single word"RETURN;" is the entire statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • All Oracle Sample Schemas and all Oracle Built-in Packages in XE?

    Hi,
    I am trying to install Oracle 10g on my home system to improve my knowledge of PL/SQL. Because I'm doing it at home, I have to solve DBA issues I'm somewhat clueless about.
    I would like to install Oracle 10g Express Edition and include the built-in packages (DBMS_OUTPUT, UTL_FILE, DBMS_UTILITY, DBMS_JOB, DBMS_JAVA, DBMS_RANDOM, etc.) as well as the Oracle sample schemas (HR, OE, PM, SH, and IX). None of these, except HR, is included in the express edition.
    If necessary, I'd like to be able to install these things after installing the express edition. How can I do this?
    Thanks,
    Mike

    Hi Mike,
    checking the documentation is always helpful:
    http://www.oracle.com/pls/xe102/homepage
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_programs.htm#i2432
    You can always do a quick search on the documentation homepage, e.g. for utl_file:
    http://www.oracle.com/pls/xe102/search?remark=advanced_search&word=utl_file&format=ranked&book=&preference=
    There shouldn't be a need to install any packages. They should come preinstalled already.
    If not, you can find them here:
    C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN
    Just be very careful before trying to install something into the data dictionary. If you are not experienced, you might mess up your database.
    For example, utl_file is installed but invisible to most users, e.g. HR.
    Look at this example:
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    ERROR:
    ORA-04043: Objekt "SYS"."UTL_FILE" ist nicht vorhanden
    SQL> conn sys@XE as sysdba
    Kennwort eingeben:
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    SQL> grant execute  on utl_file to HR;
    Benutzerzugriff (Grant) wurde erteilt.
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    PROCEDURE FCOPY
    ...So, after granting execute privileges on utl_file to HR, the user HR can now access utl_file. No need to install it.
    The default packages are installed in the schema SYS.
    Regards,
    ~Dietmar.

  • Is there a built in package show components sql statement

    is there an exisitng package that will break down the components of a sql statement, as in the where clause, columns, etc?

    thanks, i had pointed him to that package but it apparenty didn't meet his needs.
    he may have to write something if there isn't a built in package that work.

  • Execute Built-in Packages

    We have recently installed 8.1.7. I am trying to make use of the built in package DBMS_SPACE. I see that it exists in the SYS schema, but when trying to execute it from the SYSTEM schema I get the error that SYS.DBMS_SPACE does not exist. Do I need to grant execute to SYSTEM from SYS on each package that I want to use individually, or is there some way to grant execute on the whole suite of built-ins?
    Thanks for any response.

    Thanks. Now I am able to call the package directly while logged on as system. However, I have another package that I have created in the system schema which calls the DBMS_SPACE package, and when I run this one, it comes back with:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SPACE", line 40
    Does this intermediary package need some special privilege? I thought it would have the privileges of the owner of the package (in this case SYSTEM).
    Thanks again for any response

  • We look for BAPI/Function to As-Built for Serialized Material (tran.COIB)

    Hello ,
    We look for BAPI/Function to As-Built for Serialized Material (transaction COIB).
    We check transaction COIB in order to create insatlled base for production orders(bill of equipments)
    We look for BAPI/ Function in order to run that process automatically in background base of some rules we will decide. Do you know if there is BAPI/ Function  refer to it?

    Sorry but I found the function group IBPP with the function modules:
    IBPP_CHANGE_IBASE
    IBPP_CREATE_IBASE
    IBPP_GET_IBASE_DOWN_ALL
    For our requirements these fmodules are sufficient.
    Regards

  • Built in package that executes when running a Multi-task

    What built-in package(or procedure) runs when executing a multi-task?

    I think with the many questions you have on the same issue, the Extensibility Documentation will help a lot.
    http://download-uk.oracle.com/docs/cd/B19306_01/em.102/b16246/toc.htm
    Also, you can access other EM documents from the menu here:
    http://www.oracle.com/pls/db102/portal.portal_db?selected=21

Maybe you are looking for