syntax of the function

Hey hii

I just wanted to know that is it possible to just find the syntax a function integrated in oracle?


as we in cmd on windows or ny else the help command, so we know what are the arguments to this function.

810345 wrote:
Hey can u please explain
say that my function is substr how to know abt his arguments using dictionary

You already know that information is contained in all_arguments. To see what information is available:

DESC  all_arguments

Output:

Name                                      Null?    Type
----------------------------------------- -------- -----------------

OWNER                                     NOT NULL VARCHAR2(30)
OBJECT_NAME                                        VARCHAR2(30)
PACKAGE_NAME                                       VARCHAR2(30)
OBJECT_ID                                 NOT NULL NUMBER
OVERLOAD                                           VARCHAR2(40)
...

For the functions built-in such as SUBSTR, you know that the owner is SYS, and the name of the package is STANDARD, so you can say:

SELECT     *     -- or list specific columns
FROM     all_arguments
WHERE     owner          = 'SYS'
AND     package_name     = 'STANDARD'
AND     object_name     = 'SUBSTR'
;

Remember, anything inside quotes is case-sensitive, so "Sys" or "sys" work above.

Tags: Database

Similar Questions

  • Syntax of the function Evaluate in OBIEE

    Hello
    I have traveled the docs but could not find the syntax for the function Evaluate. Could someone pass me the full syntax and if possible a useful example against essbase.
    Thank you

    Hello
    without a doubt

    syntax:- REVIEW ('your db function (%1, %2)', list of parameters)
    %1 and %2 here no.of (columns or constant values of May) parameters to pass to the function db
    If you have 3 parameters, you must also use %3... We hear the columns to move.

    following exapmples are for ORACLE db,
    EX1: EVALUATE ('upper (%1)', "kishore kumar") gives the result-> KISHORE KUMAR
    Ex2: EVALUATE ('upper (%1)', 'Markets.Region') Markets.Region this is column.

    Alternatively, you can call the functions defined by the user through to reassess
    Evaluate ('functioname (%1, %2), column1, column2)
    the function above has 2 parameters input

    Thank you & best regards
    Kishore Guggilla

    Published by: Kishore Guggilla, January 16, 2009 23:00

  • Syntax of the function BOX when multiple values equals the same result?

    I tried using the key word 'IN' with the CASE function, but it does not work, each case must be indicated separately? trying to save a few lines...

    has tried:

    case me607.rmc_code
    When to (',' MS', 'MP') then 'H311.
    end as carrier_code

    What I do:

    case me607.rmc_code
    When'm ' then 'H311.
    When "MS," then "the H311.
    When 'MP' and then 'the H311.
    end as carrier_code,
    etc...

    Thanks for any help...
    case when me607.rmc_code
     in ('M','MS','MP') then 'H311'
    end as carrier_code
    

    Max

  • Run the syntax of the function

    Hello

    to run the stored procedure, this is the code:
    DECLARE
    
    arg1 datatype;
    
    BEGIN
    
    procedure_name(arg1);
    
    END;
    So, what's the code for the execution of a function?

    Thank you

    Hello

    CREATE OR REPLACE FUNCTION return_unique RETURN NUMBER IS
       p_num NUMBER;
    BEGIN
       SELECT inv_id_seq.NEXTVAL INTO p_num FROM dual;
    
       RETURN p_num;
    END return_unique;
    
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2     p_num NUMBER;
      3  BEGIN
      4     p_num := return_unique();
      5     dbms_output.put_line(p_num);
      6  END;
      7  /
    
    6
    
    PL/SQL procedure successfully completed
    
    SQL> /
    
    7
    
    PL/SQL procedure successfully completed
    
    SQL> 
    

    Kind regards

  • How do the function of Oracle database in OBIEE Administration tool

    Hi all
    I want to use an Oracle database function as a column in OBIEE (BM, presentation model). Can someone made this inOBIEE. Pointers to this is much appreicated.

    Thank you

    Hi user7417334,

    You cannot use the formulas in the presentation layer (not that I know well). But you can certainly use functions of oracle database in MDB layer.

    You want to use the function EVALUATE. It works like this:

    can EVALUATE (' TO_DATE (%1, %2) "AS DATE, 31 December 2009", "MM/DD/YYYY" ")

    Generic version: EVALUATE ('' AS , value1, value2, etc.)

    FUNC) is the syntax for the function you are calling. All parameters must be replaced with %, where number refers to the order in which you specify your settings.
    DATATYPE) the type of data that will allow to evaluate the function. In this case, the DATE.
    Value1) the last part of the formula is a list separated by commas of all parameters used in the function. In this case, this is the date I want to ride
    Value2) is the second parameter. You need as many times as you have referenced in your function. In this case, it is the date format.

    Good luck and if you found this post useful, please give points!

    Best regards

    -Joe

  • Need to validate the syntax of the url by using the functions of DBMS

    All,

    I need to validate the syntax of the url in a table. Please suggest is there any function of DBMS is available to do
    action in PL/SQL, stored procedure. Help, please.

    use regular expressions... check by using the following in regexp_like...

    ^ http\: / / [a-zA-Z0 - 9-------.] +. [a-zA-Z] {2,3} (/ \S*)?$)

  • How to use the syntax of the flatfile to target RDBMS to_date function in odi

    I'm doing a to_date function in 11 ODI. When I select the target column I get TO_DATE (ERP. Calendar_Day, '20150419', 'YYYYMMDD')

    but this when you run the function that it does not work. I supply from a flatfile strimng that looks like 20150102 I would like to than the format to look like this 05/02/15 (dd-mm-yy)

    How can this be achieved? is it possible to launch the expression as inforatica Editor?

    What is your area of transit technology, it supports the to_date function? If it's Oracle, then the function TO_DATE ('20150419', 'YYYYMMDD') that would convert the string and store it in the database as a standard date.

  • FIRST HP: HP first Cas.Mode in the functions of the program

    Hello community, I learn HP first language programming but I am not really associated with this, I would like to know the basic structure using the matrix and CASE work (both in programming mode). I have "he's really appreciate some examples with programs using both of the present. If I am not clear.

    Hello

    It is a field/area whide here!

    First, you must know that they are 2 in HP's premium programming languages. They are relatively similar, but not exactly, which can be at the same time a plus (1 thing to learn) and a sign less (subtle differences are not very visible, and can cause problems)...

    In any case, to create a new program of CASE, go to the program catalog (program shift) and click New, enter the name of the program and check the CASE.

    This will create a basic program, empty along the lines of:

    #cas

    TEST(): =.

    BEGIN

    return 0;

    END;

    #end

    TEST is the name of the function (you can have as many as you want in your case program)

    you will find the arguments in parentheses. In this case, no, but add that you ever want or need as in:

    TEST (param1, param2, param3)

    between the BEGINNING and the END, you will find at the heart of your program. There you can assign values to the variables (by using the nom_de_variable: = expression_that_returns_a_value;)  syntax. For details: a: = 1 + 2

    You will find many (but not all), orders of matrix in the Toolbox key / menu math/matrix.

    You can access (read and write) an element of a matrix by var [row, col]

    The menu item template (in the main window of the program of the editor) should show you what the Basic programming constructs are similar (tests and looks).

    This should help you get started. Once you have experienced this, you should be able to come back on this forum and ask more specific questions.

    Kind regards

    Cyrille

  • Using the function Array SetElements

    Hi all

    I am using the Array SetElements function to set a value of specific index in an initialized array, but I can't understand what's the syntax for the optional parameter 2. I tried a whole bunch that seem to make sense but still get an error. Anyone used this function before that can let me know what is the syntax to use?

    Thank you

    Nick

    The SetElements function does not support noncontiguous ranges elements, so there is not much interest to use it if you do not have to pay the entire table or a range of elements. You can just do:

    table [1] = 0,

    Array [3] = 0,.

    Array [4] = 0,.

    Array [8] = 0,.

    -Doug

  • Is there a way to parse a string containing % (percentage symbols) using the function 'analysis of the chain?

    I am communication in series with a mirror device and the syntax of the input string contains this text: "% hr ="

    I was not able to find a way to say to the function that the percentage here is not a format specifier. Is it possible, or should I just try to use a different function?

    Thank you.

    Use %% in your format string for what he knows to use the percent literally.  So % RH = %f

    EDIT: Darin has one here in front of me.  It seems to be-% and % both work.

  • To call the function in sql and script call

    Hello

    I'll have a .sql script that returns the name of the partition and I need to run alter table Exchange partition something like this

    get_part. SQL

    COLUMN file_name new_value by sub_script_col

    accept the start_date char prompt arguments ' input start (exact): '

    accept the end_date char prompt "enter end date (exact): '"

    create or replace function get_part_name (p_date in date)

    VARCHAR2 is back

    date d;

    RETP varchar2 (30);

    spirit date: = to_date('4444-01-01','yyyy-mm-dd');

    Str varchar2 (32000);

    cursor c is

    Select high_value, nom_partition p

    of all_tab_partitions

    where table_name = 'TO_TEHBLNC ';

    Start

    for r in c loop

    Str: = r.high_value;

    run immediately 'select'. Str |' double ' in d;

    If p_date < d and d, then the spirit

    RETP: = r.p;

    spirit: = d;

    end if;

    end loop;

    return pter;

    end;

    Select get_part_name ('& 1') twice;

    ACCEPT user_yn PROMPT ' do you want to partion with < partition name > table? (Y, N) : "

    SELECT THE CHECK BOX

    WHEN TOP (LTRIM (' & user_yn')) AS 'y %. "

    THEN "insert_partition".

    ELSE 'do_nothing.

    END AS sub_script_col

    DOUBLE;

    @ &sub_script_col < partition_name >

    sub_script_col. SQL

    ALTER TABLE to_tehblnc

    SWAP PARTITION < name patition >

    WITH TABLE T1

    WITHOUT VALIDATION

    UPDATE GLOBAL INDEXES;

    I need to call once again for the sub_script.sql based on start_date and end_date, for example 1st January 2015 and January 5, 2015 I must first get the parition name and proceed to modify the table with that respective partition name returned by the function, so that it will be 5 times alter the table to swap partition

    I'll have a .sql script that returns the name of the partition and I need to run alter table Exchange partition

    This is just a continuation of your other thread

    For the name of the partition in the partition range table

    As I said it you do not have to know the name of the partition to make an EXCHANGE. I gave you an example in this other thread.

    ACCEPT user_yn PROMPT ' do you want the table to partition with ? (Y, N) : "

    That makes no sense at all. You cannot partition a table that is already partitioned. If there is a name for the partition and then the table is partitioned already - then ask why to partition?

    ALTER TABLE to_tehblnc

    SWAP PARTITION

    WITH TABLE T1

    WITHOUT VALIDATION

    UPDATE GLOBAL INDEXES;

    I need to call once again for the sub_script.sql based on start_date and end_date, for example 1st January 2015 and January 5, 2015 I must first get the parition name and proceed to modify the table with that respective partition name returned by the function, so that it will be 5 times alter the table to swap partition

    No - you don't have. Just use the code example I provided in your other thread. You don't need to know the name of the partition and use dynamic sql statements to make the Exchange.

    Just use PARTITION syntax as shown in the example.

    Do things the EASY way. Your code and the script is totally useless.

  • Hyperion Planning and Smartview: build the function Description HS

    Hi all

    I am currently using Hyperion planning 11.1.2.2, I want to display in excel of the ad-hoc reports description of some members of the dimension through smartview.
    To this end, I used the feature to "build the function:
    I selected an empty cell and call the feature, a window appears with two parameters:

    1-connection: this field is filled in automatically (WSFN |) HP | PC | Planning | Plane1)
    2 - members list: I want to wire it manually ex: '#100 account '.

    I click on validate: the following message appears: selected connection does not support this new function.select connection.

    I would like to know what is meant by connection? What is the syntax of the connection string? could you please give an example?

    Thank you
    Best regards.
    Toufik

    Published by: user11081975 on May 12, 2013 12:55

    Hsdescription is not supported by connection of planning.

    You can use it with Essbase connection.

    Read http://docs.oracle.com/cd/E17236_01/epm.1112/sv_user/ch17s01s08s15.html

    He talks about what are connections shared and private.

    Concerning

    Celvin
    http://www.orahyplabs.com

  • Not able to get the values of distict even after the definition of the FUNCTION of MEMBERSHIP card

    Hello

    I'm trying to get distinct values of a query to an array type. Please see the code below
    CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
    IS
      OBJECT
      (
        eventId               VARCHAR2(100),
        eventDescription      VARCHAR2(100),
        promoMonthDescription VARCHAR2(100),
        promoStartDate        VARCHAR2(100),
        promoEndDate          VARCHAR2(100),
        PROMOCOSTSTARTDATE    VARCHAR2(100) ,
        ,
        MAP MEMBER FUNCTION sort_key
        RETURN VARCHAR2 );
    CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
    AS
      MAP MEMBER FUNCTION sort_key
      RETURN VARCHAR2
    IS
    BEGIN
      RETURN eventId ;
    END;
    END;
    /
    CREATE OR REPLACE TYPE T_EVENT_TABLE
    IS
      TABLE OF T_COPY_EVNT_DTL; 
    
              with event_data as (
    select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all      
    select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual ) 
    SELECT  cast(collect(distinct t_copy_evnt_dtl(event,
                                                                                                                        event_desc,
                                                                                                                        promo_month_desc,
                                                                                                                        promo_start_date,
                                                                                                                       promo_end_date,
                                                                                                                  promo_cost_start_date) ORDER BY
                                                                event_desc,
                                                                promo_month_desc,
                                                                promo_start_date,                                                    
                                                                promo_end_date,                                            
                                                                promo_cost_start_date) as t_event_table)  from event_data;
    
    result :
    
    T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')
    Please help me find the reason why it does not work...

    Manjusha Muraleedas wrote:
    Please see the link: http://www.oracle-developer.net/display.php?id=514
    Title: using complex types

    And as the article says, combining DISTINCT and ORDER BY does not work so well:

    The diagram of the syntax in the documentation suggests that the two extensions can be combined to build ordered and distinct collections for each group.
    However, in the version 11.2.0.1, this does not work.

    I can confirm that this does work on 11.2.0.2 either.

    As a solution, I would probably use a subquery or MULTISET:

    select cast(
             multiset(
               select distinct
                      event
                    , event_desc
                    , promo_month_desc
                    , promo_start_date
                    , promo_end_date
                    , promo_cost_start_date
               from event_data
               order by event_desc
                      ,     promo_month_desc
                      ,     promo_start_date
                      ,     promo_end_date
                      ,     promo_cost_start_date
             )
             as t_event_table
           )
    from dual;
    
  • How to access the functions

    Hey,.

    thing_btn.addEventListener (MouseEvent.CLICK, clicked);

    thing2_btn.addEventListener (MouseEvent.CLICK, clicked2)

    function clicker(event:MouseEvent) {}

    trace ("hey");

    }

    function clicker2(event:MouseEvent) {}

    clicker(event:MouseEvent);

    }

    with the above code how you call the function clicker2 clicker?
    as with the code I comes up with the error "1084: syntax error: expected rightparen befor colon.
    Thanks :)

    The only place where it will work for you, is if you put somewhere where the event is defined, which is so far only inside your functions.  If you want to call the spaceDown function without actually using the keyboard, you can modify the code to be...

    function spaceDown (event: KeyboardEvent= null) {}

    Press ++;

    if(Event.keycode == 32) {}

    moverTimer.stop ();

    }

    whichLine = "Line" + String (pressed)

    trace (whichLine)

    moverTimer.start ();

    }

    spaceDown();

    but then your code inside the function wil has another error as he tries to use the object of the event, which will be null.

    Your first assignment had a some sense based on what you ask, but you seem to have twisted what you asked for and applied to the implementation of something totally different.  I can't say I know what you're up to at this point.  You should probably take a step back and try things right.

  • Syntax of the Recordset

    Hello. I have some problems with the proper syntax to retrieve a Recordset.

    the call normal dreamweaver generates: < % = (rsOrder.Fields.Item("UserEmail"). % of the value) >

    However, I am browsing a table where the field is represented by a variable. My question is what would be the proper syntax to achieve this?

    Thanks

    I believe that the error occurs with the use of the function restore in your select statement. For example replace (rsOrder__filterField, "'", "" "); It would be the results

    before replacing: "ID".
    After replace: ""ID"

    I think you can add too many quotes, you don't need quotes around your names column in your select statement. Your filter fields must also equal something. It does not resemble your filter fields will be compared to anything. Therefore, you have too few parameters.

    Make sure you that you only use the function replace when you actaully need to replace something.

Maybe you are looking for

  • Qosmio G30 gel mode failure & installation

    HelloMy Qosmio G30 (Vista Ultimate installed) freezes during startup. In safe mode, it hangs on crcdisk.sys. I tried recovery from Vista DVD but still it crashes just after loading files when it shows the progress bar for the Microsoft Corporation be

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days? This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if som

  • PC companion acts crazy

    Why it takes too long to download updates? Look at this screenshot and the judge http://i.imgbox.com/9XowrXdy.PNG My net speed is 1Gbit/s, I download the files of 20-30 gb in a few minutes, I don't think that it will be a problem for me to download a

  • Error when installing PHP

    Hello I went to an error message says "msvcr110.dll is missing from my computer", when I tired to install PHP on my computer. Could you please let me know me how to solve this problem? Best, Carol107

  • Users of blackBerry Smartphones Rookie with Feedback

    My new BlackBerry Pearl is a wonderful tool for my business - I am is more chained to my desktop and can receive my email, even when I'm at a client site! But I have one criticism which asked each cell phone, I've owned in the last 10 years, and is o