Why DBA_OBJECTS.TIMESTAMP is defined as VARCHAR2(19)

Oracle recomends to use TIME STAMP datatypes for timestamp information but itself it is using VARCHAR2(19) for DBA_OBJECTS.TIMESTAMP can any body explain Why it is so?
Oracle version is 10.2.0
thanks in advance.

DBA_OBJECTS is a view. The source is sys.obj$.stime, which is of type date. The Created and Last DDL are also of type date and are carried through as date.
Conclusion: Because Oracle wanted to ensure you see the HH24:MI:SS portion and regular dates will display based on the NLS_DATE_FORMAT of the database.

Similar Messages

  • Why arrays length is defined to be a field not a method in Java?

    Why arrays length is defined to be a field not a method in Java?

    TRANSLATE result USING R.
    This statement replaces all characters in field result according to the substitution rule stored in field string R .  R contains pairs of letters, where the first letter of each pair is replaced by the second letter.
    in your case TRANSLATE result USING '#'.
    menas '#' and  ' ' space are 2 pair of characters.. and # is replaced by ' ' (space).
    for better understanding..
    Example:
    DATA: T(10) VALUE 'AbCdEfGhIj',
    STRING LIKE T,
    RULE(20) VALUE 'AxbXCydYEzfZ'.
    STRING = T.
    TRANSLATE STRING USING RULE.
    WRITE / STRING.
    Output:
    xXyYzZGhIj
    Hope this helps..

  • Why String class is defined as immutable?

    Why String class is defined as immutable? what can be the reason behind it?

    Do try this at home. :)
    public class Main {
        public static void main(String... args) {
            System.out.println("Greetings.");
            System.out.println("Goodbye.");
        static {
            // translates into Japanese. NOT a good idea!
            try {
                final Field field = String.class.getDeclaredField("value");
                field.setAccessible(true);
                char[] chars = new char[8];
                "Sayonara".getChars(0,8,chars,0);
                field.set("Goodbye.", chars);
                chars = new char[10];
                "Konichi-wa".getChars(0,10,chars,0);
                field.set("Greetings.", chars);
            } catch (Exception e) {
                throw new AssertionError(e);
    }

  • How to find out if colums is defined as VARCHAR2 in bytes or char?

    Hello,
    I'd like to know if it is possible to find out if a colum table (or view) is defined as a VARCHAR2 in bytes or in CHAR on Oracle 10g.
    When I do a desc, it shows only VARCHAR2 with its length but not if it is bytes or char. How can I know for sure?
    Thanks,

    SQL> create table t
      id    varchar2 (10 char),
      id2   varchar2 (10 byte)
    Table created.
    SQL> select column_name, data_type, char_used
      from cols
    where table_name = 'T'
    COLUMN_NAME                                   DATA_TYPE       CHAR_USED
    ID                                            VARCHAR2        C       
    ID2                                           VARCHAR2        B       
    2 rows selected.

  • Why users with rights defined as View cannots see the data of the form ?

    Hi,
    I have a nice form page. My application has an authorization scheme with an authentification function : return acl_custom_auth. It is working well. I have defined users with Edit, View and Admin rights. Unfortunately on a form, if the user is defined as "View" he cannot see the data, he only sees the item but their content is not diplayed. I don't understand why. I would like him to see the data.
    The authorization scheme of the page is "Access control -view" as well as the items of the page.
    Do you have any idea of what is going wrong here ?
    Thank you for your kind help !
    Regards,
    Christian

    Another thing that can be done though mon tech-savy people may not know about it.
    Locate a group of PDF's and select at least 5-6 of them as a Group.
    hold down Option key while click on file menu
    Click on Get info.
    One window will open for the group.  in Mountain Lion (OSX.8.2) the term will change to Show Inspector.
    click on the  button next to Open With.
    choose either Reader or Acrobat.
    just bellow is a question Use Acrobat (or Reader) to open all files of this type, Click on it and choose yes.
    Make sure you have a mix of Adobe PDF's and Preview PDF/s for  this to work. If it wasn't good for opening other Type Files I'd compress Preview and throw the original away. It’s a nusiance.

  • Why can't I define bullet paragraph in Basic Paragraph style?

    I would like to set up my Basic Paragraph style so that I can quickly apply bullets to individual paragraphs - using MY preferred indents - without having to create a new style for the bullet paragraphs. I tried changing the settings of the Basic Paragraph style, with no documents open, but it doesn't seem to want to accept my choice of indents. First I selected bullets and set an indent, but then the whole paragraph defaults to bullets. When I switch the bullet setting back to "none" the only thing that it keeps is the last setting I chose for tabs. (Which simultaneously changes the default tab setting for all paragraphs.) But when I create a new doct and start a bullet paragraph, the indents always default to .25/-.25, and any tab setting LESS than .25 results in the first line indenting to the tab setting, but the rest of the paragraph indenting to .25. There seems to be no way to change the default indent for bullets without creating a new paragraph style. And usually I'm fine with that. But I thought I would like to have a quick default using the Basic Paragraph style. Am I missing something or is this just not possible?
    Here is a visual/verbal screenshot to help explain:

    Let's see if I understand this differently from the others. You want to apply bullets manually from time to time without having to select a new style, you want to do this by pressing the bulleted list button in the Control panel, and you want settings for tabs and indents other than the default. Is that correct?
    As far as I can tell there is no way currently to do this. You cannot set up the parameters for bullets unless the text cursor is active or you are defining a style, so there is no way to set up new defaults. You don't want to set up parameteres everytime you need a bullet, so, either you type the bullets manually, tab and insert an indent to here character, which is actually a lot more work, or you go ahead and set up the style. You can access the style list in the dropdown on the Control panel, or you can add a keyboard shortcut to give you quick access, or hit Ctrl (Cmd on Mac) + Enter to access Quick apply and start typing the name of the style (almost as fast as a keyboard shortcut).

  • Timestamp for Week LOV in WebI Prompt Screen

    Hi,
    I have Week Ending Date prompt in my report where I display all the Saturday dates .
    When the report is refreshed, in the prompt screen the week data shows the timestamp as below.
    12/10/2011 12:00:00 AM
    12/3/2011 12:00:00 AM
    11/26/2011 12:00:00 AM
    11/19/2011 12:00:00 AM
    But in the universe, the same LOV does not show any timestamp, only the date is displayed. I tried using Cast(WEEK.WK_DESC as Date) in the universe but still in the WebI the timestamp is coming.
    Also in TD, this week column is defined as Date data type only.
    Can any one please help why this timestamp is coming in the WebI prompt screen and how to remove it?
    Thanks in advance.

    Hi Lavanya
    The sample time stamp 12:00:00am which is coming with the date object LOV in webi even if there is no time stamp in the database, is the default by design behaviour of businessobjetcs.
    You can use formatdate() or Todate() to change the format like dd/mm/yyyy
    And also this below link  will help for universe level
    http://www.forumtopics.com/busobj/viewtopic.php?t=17156
    hope this helps u
    Sunil
    Edited by: K.sunil on Dec 13, 2011 12:27 PM
    Edited by: K.sunil on Dec 13, 2011 12:39 PM

  • Compiler.define in flex-config and compc

    I'm having an issue with compile time constants.  I'd like to define these constants in two places, but when I do the flex compiler forgets constants defined in my flex-config.xml (DEBUG::DEBUGGING and DEBUG::VERBOSE).  I am using flextasks.tasks in ant to build the project.
    In my build.xml:
    <target name="build-project" depends="init">
        <echo message="Building ${proj.swc.file}" />
        <compc output="${proj.target.dir.bin}/${proj.swc.file}"
            target-player="${proj.flashver}">
            <compiler.define name="INFO::VERSION_MAJOR" value="${proj.version.major}" />
            <compiler.define name="INFO::VERSION_MINOR" value="${proj.version.minor}" />
            <compiler.define name="INFO::VERSION_RELEASE" value="${proj.version.release}" />
            <compiler.define name="INFO::BUILD_TIMESTAMP" value="${proj.build.timestamp}" />
            <compiler.define name="INFO::BUILD_TIMEZONE" value="${proj.build.timezone}" />
            <load-config filename="${mx.sdk.dir}/frameworks/flex-config.xml"/>
            <load-config filename="${basedir}/flex-release-config.xml"/>
            <source-path path-element="${proj.build.dir.src}" />
            <include-sources dir="${proj.build.dir.src}" includes="**/*.as **/*.mxml"/>
            <!-- <compiler.external-library-path dir="${proj.build.dir.lib}" includes="*.swc" append="true" /> -->
            <compiler.external-library-path dir="${proj.target.dir.lib}" includes="*.swc" append="true" />
        </compc>
    </target>
    In flex-release-config.xml:
    <flex-config>
        <compiler>
            <debug>false</debug>
            <keep-generated-actionscript>false</keep-generated-actionscript>
            <verbose-stacktraces>false</verbose-stacktraces>
            <optimize>true</optimize>
            <define>
                <!-- Enables debugging mode -->
                <name>DEBUG::DEBUGGING</name>
                <value>false</value>
            </define>
            <define>
                <!-- Provides more information to the developer -->
                <name>DEBUG::VERBOSE</name>
                <value>false</value>
            </define>
        </compiler>
    </flex-config>
    If I compile using compc on the command line I can use -define+=NAME,value and it works.  Why is it not working using the compc task in ant?

    Try adding the append="true" attribute to the define elements. I'm not sure if this will work, but that's how it works (append="true" is the equivalent of +=) for other elements like external libraries.

  • Query related to MAX limit of VARCHAR2

    Hello,
    I have run the below PL/SQL block and it gives out the o/p as follows:
    DECLARE
      LEN1  NUMBER;
    BEGIN
      SELECT LENGTH(RPAD('*', 32760, '*')) INTO LEN1 FROM DUAL;
      DBMS_OUTPUT.PUT_LINE('LEN1: '||LEN1);
    END; Output--> LEN1: 4000
    But why is it that when i run the same PL/SQL block by assigning the 32K character string to a variable it throws an error -
    DECLARE
      LEN1  NUMBER;
      STR   VARCHAR2(32767);
    BEGIN
      STR := RPAD('*', 32760, '*');
      SELECT LENGTH(STR) INTO LEN1 FROM DUAL;
      DBMS_OUTPUT.PUT_LINE('LEN1: '||LEN1);
    END;  Output-->
    ORA-01460: unimplemented or unreasonable conversion requested
    ORA-06512: at line 8
    I understand that VARCHAR2 has a limit of 4000 chars in SQL and 32767 chars in PL/SQL. If so, why not the second block atleast return 4000 going with this limitation?
    Regards,
    Sujana

    Hi,
    Maximum size for VARCHAR2 is 4000. So you cant add 32767 characters to a variable which you have defined with VARCHAR2 datatype.
    Below will work
    DECLARE
      LEN1  NUMBER;
      STR   VARCHAR2(32767);
    BEGIN
      STR := RPAD('*', 4000, '*');
      SELECT LENGTH(STR) INTO LEN1 FROM DUAL;
      DBMS_OUTPUT.PUT_LINE('LEN1: '||LEN1);
    END;Thanks,
    Suri
    Edited by: Suri on Aug 8, 2012 1:50 PM
    Edited by: Suri on Aug 8, 2012 1:52 PM

  • Need to convert the Varchar2 to decimal

    Hi,
    I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator.
    In my source table, column is defined as varchar2 (4) and in target table same column has defined as Decimal (2). So, is there any function to convert the varchar2 data to decimal record.
    thanks,
    keshav.

    Hi SH,
    Thanx so much for your answer!
    Well actually I have managed to do the filters, and right now dealing with the convertion of formats.
    Right now I am working with Oracle DB 11g, and Excel; and what i would like to do is now that is passing from my uploaded excel the info to my Oracle DB would like to control the ways it pases the info.
    Let's say for example, that I have gotten a Field A in my source table (Excel uploaded to ODI), and that on my Orazle Table on Field A i would like to change the data type of the field, or just make sure that the data inserted will always be of certain type? Can I do this with ODI? Could you please give me some advice in how to it? I assume that it should be done on my interface, in the Diagram tab > Target Database > Mapping Area > Implementation Tab > Expression Editor and modify it there, is it?
    As this is mapping from excel, can I just use the excel function? it does not make any sense for me as it is all in Oracle. I am sorry but I am kinda confused now.
    Once again I do really appreciate your help.

  • Need to convert varchar2 into decimal

    Hi,
    I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator.
    In my source table, column is defined as varchar2 (4) and in target table same column has defined as Decimal (2). So, is there any function to convert the varchar2 data to decimal record.
    thanks,
    keshav.

    865709 wrote:
    Hi,
    I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator.You may have more luck in the proper forum
    Data Integrator

  • Is there a way to view timestamps in DIAdem with a higher precision than 100 microseconds?

    I understand DIAdem has limitations on viewing timestamps due to DateTime values being defined as a double value and that this results in 100 us resolution.  Is there any way to get around this?  I am logging time critical data with timestamps from an IEEE 1588 clock source and it is necessary to have higher resolution.  Perhaps I could convert timestamp to a double before logging but then would have to convert it back in Diadem somehow...
    Thanks,
    Ben

    As you said, DIAdem can only display up to 4 decimal positions on a timestamp. Timestamps in DIAdem are recorded as the number of seconds since 01/01/0000 00:00:00.0000. To achieve a higher precision, it would be necessary to use a relative timestamp. Many timestamps are defined from different references anyway, so it might be possible to import the timestamps as numeric values to maintain their precision. Converting the timestamp prior to importing into DIAdem seems like a viable method of working around the precision limit.
    Steven

  • Primary Keys and VARCHAR2 vs CHAR datatypes???

    Could someone please tell me if there is documentation concerning the performance implications of creating a Primary Key using a VARCHAR2 datatype vs a CHAR datatype?

    Well with a CHAR datatype, a value of ‘abc’ equates to ‘abc ’.
    So that if the value of ‘abc’ already existed in the PK in the table and someone tried to Insert another row with a value of ‘abc ‘, it would return a unique constraint violation (the rule from the user being that a value with or without trailing spaces is the same value).
    But if the PK column is defined as VARCHAR2, both the 'abc' and the 'abc ' could be Inserted into the Table because in the nonpadded comparison they are not equal.
    Would defining the column as a VARCHAR2 with a Check Constraint to RTRIM the column be a better way to go?

  • Error when DBMS_LOB.FILEOPEN , why ?

    Hi..
    I create a directory , example : ULLOA
    "create or replace directory ULLOA as 'c:\';"
    This path (c:\) are inside of the server..
    But , when execute the block pl/sql
    l_bfile := bfilename( 'ULLOA', 'setup.txt' );
    dbms_lob.fileopen( l_bfile );
    Obtain the next error :
    ERROR en línea 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_LOB", line 475
    ORA-06512: at line 9
    Why?
    Are correctly defined the path c:\
    Am working in Windows 2000 and my BBDD is Oracle9i
    Atte
    Hector
    PD : Sorry my english

    Thanks Kamal
    See my execution :
    SQL> create or replace directory ULLOA as 'c:\';
    Directory created.
    SQL> declare
    2 l_bfile BFILE ;
    3 begin
    4 l_bfile := bfilename( 'ULLOA', 'setup.txt' ); 5 dbms_lob.fileopen( l_bfile );
    6 end ;
    7 /
    declare
    *ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_LOB", line 504
    ORA-06512: at line 5
    SQL>
    SQL> spool C:\setup.txt
    SQL> prompt Hi Kamal.txt
    Hi Kamal.txt
    SQL> spool off
    SQL>
    SQL> create or replace directory ULLOA as 'c:\';
    Directory created.
    SQL> declare
    2 l_bfile BFILE ;
    3 begin
    4 l_bfile := bfilename( 'ULLOA', 'setup.txt' ); 5 dbms_lob.fileopen( l_bfile );
    6 end ;
    7 /
    declare
    *ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_LOB", line 504
    ORA-06512: at line 5
    I have error , but ...
    MY GREAT ERROR IS THAT EXECUTE COMMAND IN THE CLIENT TO HAVE ERROR , BUT RUNNING THE COMMAND IN THE SERVER , ALL IS OK..
    Sorry gentleman..
    And thanks all

  • Conversion error varchar2 to number

    Hi,
    I have a primary key "regnum", defined as varchar2(5). But all the values are numeric, however the number is positioned at the beginning of the varchar2-attribute.
    Example: 123bb in stead of bb123.
    In sql workshop I used the query "select from where regnum=:p2_regnum", give p2_regnum a value and no record is selected.
    With the query "select from where regnum = 2" a result is displayed.
    As a result (I assume it has the same reason) I can´t generate a form with report: selecting a record in the report, gives no record to fetch.
    How to solve?
    Any reaction will be appreciated.
    Leo

    Leo,
    Ok we can then walk through this and see if it is an issue of the data not being forwarded to your next page.
    On the page where the process is that selects the value do you have a branch to..
    If so then open this up and check to see that the Point (Branch Point) is set to On Submit: After Processing (After Computation, Validation, an Processing), check also the sequence number (let me know if there are other actions firing prior to this one). next check to ensure that the Action (Target Type) is page in this Application and that you do nto have (reset pagination for this page) selected. And that in the Conditions you have (-Select Condtion Type-) nothing needs to be selected.
    Also are you using a submit button or such to transfer the data from this page forward?
    After you have checked these items if it is still not working let me know.
    Randy

Maybe you are looking for