Undocumented bind variable data type

I received a level 12 SQL trace file that referenced data type 121 for a bind variable value. I have searched unsuccessfully for documentation in many places. Can anyone tell me what data type this is? Following is the relevant excerpt from the trace file.
bind 18: dty=121 mxl=4000(4000) mal=00 scl=00 pre=00 oacflg=00 oacfl2=1 size=4000 offset=0
bfp=022c1e80 bln=4000 avl=2196 flg=15
value=
Dump of memory from 0x22C1E80 to 0x22C2714
22C1E80 01A214BC 022C1E88 022F1F88 01E0A954 [.....,.../.....T]

Hi
The following are the internal datatypes used by oracle related to 121.
KOTAD, KOTMD, KOTMI, KOTTB, KOTTD
Not sure about their exact use but these datatypes might be used internally for LOB's.
Hope it helps.
Diwakar

Similar Messages

  • Identify bind variable data type 121?

    Looks like the OCI forum is not popular. Reposting here with hopes of better luck... Or perhaps I wasn't specific enough for the forum? OK, this is obviously a binary data type. The problem is that I want to know exactly which of them it is. Or I'd like to know if someone has improperly coded an OCI application. Here's the original post.
    I received a level 12 SQL trace file that referenced data type 121 for a bind variable value. I have searched unsuccessfully for documentation in many places. Can anyone tell me what data type this is? Following is the relevant excerpt from the trace file.
    bind 18: dty=121 mxl=4000(4000) mal=00 scl=00 pre=00 oacflg=00 oacfl2=1 size=4000 offset=0
    bfp=022c1e80 bln=4000 avl=2196 flg=15
    value=
    Dump of memory from 0x22C1E80 to 0x22C2714
    22C1E80 01A214BC 022C1E88 022F1F88 01E0A954 [.....,.../.....T]

    Hi
    The following are the internal datatypes used by oracle related to 121.
    KOTAD, KOTMD, KOTMI, KOTTB, KOTTD
    Not sure about their exact use but these datatypes might be used internally for LOB's.
    Hope it helps.
    Diwakar

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • Declare Variable Data Types

    From my understanding, there is no need to declare variables
    data type like String, Number, Array for it to function. For
    example:
    var abc:String = "abcde";
    var abc:Number = 1234;
    var abc:Array = new Array();
    We can write it in easier way and it is still working.
    abc = "abcde";
    abc = 1234;
    abc = new Array();
    So, what is the purpose and benefit to declare the variable
    specific data type?

    i mean that as3 (= actionscript 3) requires variable typing
    in most situations or the flash compiler will throw an error.
    and no, failing to use strict typing won't cause any
    debugging problems.
    there's also some "feeling" that strict typing enhances code
    efficiency, but i haven't seen anything convincing on this.

  • Variable binding for Date type over ODBC

    Hi I'm trying to parameterize a DATE variable over ODBC. Over JDBC I have no problem doing so in Java but on the ODBC (C-code) I had problem figuring out how to deal with the expression, *{ts '2009-02-23 09:02:10'}.* But eventually based on SQL tracing on the DB side, I found that it gets translated to to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS'). So now I can attempt to parameterize. But that's the side story.
    My question is, do I gain any performance by doing the following (cut and paste from SQL trace)
    SELECT ROWID, reservation_id, job_type, job_start
    FROM reservation_job_queue
    WHERE job_start <= to_date(:1, 'YYYY-MM-DD HH24:MI:SS')
    ORDER BY job_start
    as compared to the original
    SELECT ROWID, reservation_id, job_type, job_start
    FROM reservation_job_queue
    WHERE job_start <= to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS')
    ORDER BY job_start
    Thanks!
    Edited by: pidge66 on Feb 23, 2009 6:27 AM
    Edited by: pidge66 on Feb 23, 2009 6:30 AM

    If I understand you correctly, you want to be able to enter some arbitrary dates in the where-clause of your application.
    Thus, to use the first form with a bind variable is key for performance of your application.
    And yes, you will gain a lot of performance when using to_date(:1, 'YYYY-MM-DD HH24:MI:SS') instead of to_date('2009-02-23 09:02:10', 'YYYY-MM-DD HH24:MI:SS').
    Why not using bind variables is evil you can read best over at AskTom

  • Variable Date type

    Hello,
    I have a date type variable like 05/07/2008 / day/month/year and it works as a string.
    I have a prompt with this date type where I have declared a variable called v_date.
    The problem is how to make a filter in a form with this variable to see actual year and the previous year.
    I have done it many times with other variables like integers or floats like this:
    xxxxxxxx IN (@{v_date},(@{v_date}-1))
    where v_date is an integer variable type.
    I guess I have to convert the string to int with functions like cast and substring to use the formula but it hasn't worked.
    Thank you for your help!

    Thank you for your answer but still not working.
    This is what I have written in my filter of my report:
    "Dim Fecha Dia Curso"."Day Date" IN (Right(@{v_date}, 4),(Cast(Right(@{v_date}, 4) as int) - 1))
    and that's the error I've recieved:
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 932, message: ORA-00932: inconsistent data types: wait for DATE and got NUMBER at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT "Dim Fecha Dia Curso"."Dia Date" saw_0, "- Actuales"."Nº Cons Revisión" saw_1 FROM Volumen WHERE ("Dim Dpto Resp"."Centro Resp" = 'NAV') AND ("Dim Fecha Dia Curso"."Dia Date" IN (Right( TIMESTAMP '2010-01-27 00:00:00', 4),(Cast(Right( TIMESTAMP '2010-01-27 00:00:00', 4) as int) - 1))) ORDER BY saw_0
    I've translated a couple of sentences in the error because I recieved the error in spanish.
    I hope to help you in the translation.
    Thanks!

  • OBIEE 11.1.1.6.2 BP1 Repository Variable data type

    I have some dynamic DATE variables created which fetches date values from a table. In the table the data type for that field is INTEGER.
    But on starting the server all date variables are initialized with .0d appended in the end. LIke 2012.0d etc.
    Kindly provide some pointers!
    Thanks
    KC
    Edited by: 959902 on Oct 30, 2012 8:26 AM

    Of Course we can do that.
    Your substring should not be in init block, it suppose to be where you are referring rep variable.
    In your prompt to set default values use sql query something like
    SELECT Time."Month" FROM "SA" WHERE Time."Year"=SUBSTRING(VALUEOF("PREVIOUS_MONTH") FROM 1 FOR 4)
    If helps pls mark ;)

  • Variable-data type

    Hi,
        I was facing a problem of a variable.,..
    I need to display the minus value and also the decimal values from a variable..In what data type can i declare..
    sample prgm if possible plz

    hi
    good
    there is no specific data type to display the minus value or the decimal value,yes you can declare them as character type and use as per your requirement.
    thanks
    mrutyun^

  • Variable Data Type Error.

    I have a fast question. I am setting up a variable with a
    data type of Number, when I declare the variable it has a default
    value.
    I am trying to pass data to the variable from a input text
    box but I am getting an error when I run the Movie. I have tried
    both a input text box and a Dynamic Text box, but they both produce
    the same error.
    If I remove the data typing from the variable declaration the
    Movie runs and it updates the variable data but from all that I
    have read this is not a good practice.
    I have attached the code, could someone Please help me out. I
    do not remember having these types of problems with ActionScript 2.
    Thanks for the help.
    Code:
    var rectangle:Shape;
    var thick :Number = 2; // line thickness
    var color:Number= 0x000000; // Holds the color value
    myButton_btn.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void
    color = colorField_txt.text; (Line 11)
    thick = lineThick_txt.text; (Line 12)
    rectangle = new Shape();
    rectangle.graphics.lineStyle(thick, color, .5);
    rectangle.graphics.drawRect(10, 10, 100, 150);
    addChild(rectangle);
    myButton_btn.buttonMode = true;
    ERROR MESSAGE:
    1067: Implicit coercion of a value of type String to an
    unrelated type Number. (Refers to line 11)
    1067: Implicit coercion of a value of type String to an
    unrelated type Number. (Refers to line 12)
    Thanks again for any help.
    Mike

    the text property of a textfield is of type String, so to
    place that String into a variable of type Number, you need to first
    convert it to a Number
    eg.
    thick = Number(lineThick_txt.text);
    ActionScript 2 performed this conversion
    automatically.

  • Shared variable data type: Can I choose an array of a custom typedef, without making the array itself a typedef?

    Hi all,
    I'd like to pass an array of a cluster across my network. My cluster is typedef'ed, but I'd like to avoid polluting my project with another redundant typedef.
    Is it possible to use the shared variable's "From Custom Control..." option with an array, without saving the array as a new .ctl file?
    Solved!
    Go to Solution.

    Ah, I didn't realize you were using shared variables. I thought you were just considering it as another option along with TCP/IP or UDP or something like that. In this case, you would have to create a second custom control. This control would be an array with teh typedef cluster in it. No need to make this new control itself a typedef though. Sorry, I know you were hoping for a different answer. I doubt one file will really "clutter" your project though
    CLA, LabVIEW Versions 2010-2013

  • Error in getting Long data type from Table

    Hi All,
    I have one table say xx_long. In this table one column is having Long data type.
    Now I want this values will get in to the PL/SQL variable. I taken variable data type as long but it is showing error "ORA-00997: illegal use of LONG datatype".
    Sample code with which I tried:
    declare
    a long;
    begin
    select slno into a from xx_long where slno = 100;
    dbms_output.put_line('Value:'||a);
    end;
    Please help me on this.
    Thanks in advance.
    Regards,
    Hari

    LONG columns cannot appear in certain parts of SQL statements:
    WHERE clauses, GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or with the DISTINCT operator in SELECT statements
    The UNIQUE operator of a SELECT statement
    The column list of a CREATE CLUSTER statement
    The CLUSTER clause of a CREATE MATERIALIZED VIEW statement
    SQL functions (such as SUBSTR or INSTR)
    Expressions or conditions
    SELECT lists of queries containing GROUP BY clauses
    SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or MINUS set operators
    SELECT lists of CREATE TABLE ... AS SELECT statements
    SELECT lists in subqueries in INSERT statements

  • Designer Custom Data Type

    Hello,
    I've posted a project at some commercial sites to find someone to help me doing it, but couldn't find any. I thought that it might be impossible doing this type of projects. The following is what was posted expecting someone could help/lead me doing it myself or at least providing any valuable hints, Thank you in advance.
    Looking for an Oracle expert to do the software part of a project.
    A data to be populated in Oracle database, but unfortunately Oracle doesn't support the required data type to hold it.
    An expert has to create custom data type with all required procedures/functions to manipulate the data(Read/Update/Insert/Delete), and provide a method to incorporate the solution in Oracle developer suite to model it.(To use it inside designer tools)
    The solution should allow someone to Create a column in a table to hold (for example) three bits in every row(record), mostly used in the project is three bits, but need the solution to be open and customizable to any number from one up to 21. Viewing/entering the data in a record could be as binary string. Saving in a table physically should be in sampling way to save space.
    The functions/procedures for manipulating the data should be based on record level and block level(several records of one column with start/end points). For record manipulations a binary string should be used, and for block manipulations a sampled structure should be used.
    Thank you for your time.
    Platforms:
    Oracle Database 9i and above.
    Oracle Developer Suite 9i and above.
    */

    not sure what exactly do you mean by custom data type in SQL? if you mean if there is a user defined data type in oracle thru PL/SQL yes there is. by using the %Type you need not to declare the variable data type explicitly. all you need to do is associate the variable to the column name of the table and use the %Type. see this example below.
    SQL> declare
      2    vEmpno   emp.empno%Type;
      3  begin
      4    select empno
      5      into vEmpno
      6      from emp
      7     where ename = 'FORD';
      8    dbms_output.put_line('employee no: '||vEmpno);
      9  end;
    10  /
    employee no: 7902
    PL/SQL procedure successfully completed
    SQL> or if you are looking for a collection of data types see this link about OBJECT TYPES

  • Declaring bind variables using decimals

    I'm on Oracle 11.2
    In SQL Developer, I'm having hard time executing a SQL with a bind variable. Below is the test table.
    create table TEST1 (TYP varchar2(3), NUM number(30,18)); 
    insert into TEST1 values ('TTT', 45.15168794137111); 
    commit; 
    Then I execute the below query and it returns no results. Why?
    VARIABLE P1 number; 
    EXEC :P1 := 45.15168794137111; 
    select * from TEST1 where NUM = :P1; 
    The above works in SQL Plus.

    That replaces the SQL before it executes it. It is just like using literals. I wanted to use bind variables for performance testing purposes.
    See the sql developer documentation:
    http://docs.oracle.com/cd/E10405_01/doc/appdev.120/e10406.pdf
    Run Script executes all statements in the Enter SQL Statement box using the Script
    Runner. The SQL statements can include substitution variables (but not bind
    variables) of type VARCHAR2 (although in most cases, VARCHAR2 is
    automatically converted internally to NUMBER if necessary); a pop-up box is
    displayed for entering substitution variable values.
    Notice the 'but not bind variables'

  • How to declare a bind variable with 'date' data type in command prompt?

    how to declare a bind variable with 'date' data type in command prompt?
    sql>variable q date;
    when i execute it show list of datatypes

    Hi,
    As Lokanath said, there are no DATE bind variables.
    You can use a VARCHAR2 bind variable, and convert it to a DATE in your SQL statment.
    If you're using SQL*Plus, consider a substitution variable. It won't be as efficient as a bind variable, but it will be as convenient.
    For example:
    DEFINE  first_entrry_date = "DATE '2010-06-20''
    SELECT   ...
    WHERE   entry_date >= &first_entry_date
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Bind variable for date type

    Hello
    I have a question about bind variable.
    I have a simple query which is a stand alone SQL.
    Its simple select
    select a, b , c from table1, table 2
    where table1.g1 = table 2.p1
    and  table1.pnumber like  :var1 || '%'
    and table2.check_date between :var2 and :var3
    This SQL is embedded in another piece of code.
    I have table1.pnumber like  :var1 || '%'
    So even when I do not pass any value for var1, it will run fine because I concatenate a % with it.
    But  my question is how can I do the same for "table2.check_date like :var2 "
    I can not append % with it because then it throws an error.
    How can I modify my SQL so that I can run it without giving any value for var2 and var3.
    I do not want to use an or condition in which I give a default value of date.
    Is there any way to modify the SQL so that I can run it without giving a value for var2 and var3
    Thanks

    var var2 varchar2(11)
    var var3 varchar2(11)
    EXEC :VAR2 := '01-JUN-1981'
    PL/SQL procedure successfully completed.
    EXEC :VAR3 := '30-JUN-1981'
    PL/SQL procedure successfully completed.
    select * from emp
         where nvl2(:var2,hiredate,to_date('01-JAN-2000','DD-MON-YYYY')) between
         nvl(to_date(:var2,'DD-MON-YYYY'),to_date('01-JAN-2000','DD-MON-YYYY'))
         AND
         nvl(to_date(:var3,'DD-MON-YYYY'),to_date('01-JAN-2000','DD-MON-YYYY'))
    EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
    7782 CLARK      MANAGER        7839 09-JUN-81      2450       100        10
    EXEC :VAR2 := NULL
    PL/SQL procedure successfully completed.
    EXEC :VAR3 := NULL
    PL/SQL procedure successfully completed.
    EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
    7782 CLARK      MANAGER        7839 09-JUN-81      2450       100        10
    7839 KING         PRESIDENT           17-NOV-81      5000       100        10
    7934 MILLER     CLERK          7782 23-JAN-82      1300       100        10
    7566 JONES      MANAGER        7839 02-APR-81                            20
    7902 FORD       ANALYST        7566 03-DEC-81                            20
    7876 ADAMS     CLERK          7788 12-JAN-83                            20
    7369 SMITH      CLERK          7902 17-DEC-80                            20
    7788 SCOTT      ANALYST        7566 09-DEC-82                            20
    7521 WARD       SALESMAN       7698 22-FEB-81                            30
    7844 TURNER     SALESMAN       7698 08-SEP-81                            30
    7499 ALLEN      SALESMAN       7698 20-FEB-81                            30
    7900 JAMES      CLERK          7698 03-DEC-81                            30
    7698 BLAKE      SALESMAN       7839 01-MAY-81                            30
    7654 MARTIN     SALESMAN       7698 28-SEP-81                            30
    Message was edited by: Priyasagi

Maybe you are looking for

  • Power cord is not working

    My Powerbook G4 cord is plugged into the jack, but it won't light up - and consequently won't charge.  Is the cord broken?  Can I charge the computer any other way?

  • Partner Function in Vendor Master With Internal Number Range

    Hello Friends, I am creating vendor master record with internal no range.I wanted following clarifications. 1.In partner function screen, I want to have same vendor no which i am creating to be assigned automatically to VN.OA PI and GS funtions at th

  • RFC_READ_TABLE dump while reading T006- Urgent

    Hi, I am using fm RFC_READ_TABLE ( cloned copy) to get values from another client. But while accessing T006 table it is giving following dump. Error Analysis In the current program "SAPLSDTX", an ASSIGN statement is supposed to          assign a fiel

  • Cube selection

    Hi All, 1. In cube selection screen, Is it possible to disappear SID 's ( Vendor (SID)/Material (SID) ? 2. I have a load contains 25 laks records, I can use both Doc numbers(P.key) or year wise. When I am using year wise it takes long time/Process ov

  • Writing to files on windows

    Hi I have a jvm that will write some text to a file on a windows file system. There is some another process that will read it. This other process is beyond my control i.e. it wont be written by me and won't be java. How do i ensure that my jvm that w