Creating Table in Oracle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Naveen Kumar Srivastava
    New Member
    • Sep 2007
    • 17

    Creating Table in Oracle

    Hi to All

    I want to create a table in oracle having name more than 16 character how i can?

    I know that oracle support table namt upto 28 character by default it support 15 character but i don't know how to change size.

    If any one know please reply me.

    Thanks
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Originally posted by Naveen Kumar Srivastava
    Hi to All

    I want to create a table in oracle having name more than 16 character how i can?

    I know that oracle support table namt upto 28 character by default it support 15 character but i don't know how to change size.

    If any one know please reply me.

    Thanks
    You can create a table with name of lengh 30 charcaters or less in 9i version. Which version of oracle you are using?

    You can use CREATE STATEMENT to create a table.Try creating for length of 16 and post if it errors out.

    Comment

    • BMantri
      New Member
      • Apr 2008
      • 7

      #3
      Hello,
      SQL> create table testtesttesttes ttesttesttest(n ame varchar2(10));

      Table created.

      There is no issue if you put the name of the identifier less than or equal to 30 character.

      I am using the oracle version as
      Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
      PL/SQL Release 10.2.0.1.0 - Production
      CORE 10.2.0.1.0 Production
      TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
      NLSRTL Version 10.2.0.1.0 - Production



      Please specify your oracle version by

      select * from v$version;


      Regards,
      BMantri

      Comment

      • Naveen Kumar Srivastava
        New Member
        • Sep 2007
        • 17

        #4
        Originally posted by amitpatel66
        You can create a table with name of lengh 30 charcaters or less in 9i version. Which version of oracle you are using?

        You can use CREATE STATEMENT to create a table.Try creating for length of 16 and post if it errors out.

        Thanks for reply

        Actually i am doing R&D in oracle i dont know what i do but the table max length character is set to 15 Whenever i create the table it will truncated to 15 character . how i increase the max lenght.

        Comment

        • Naveen Kumar Srivastava
          New Member
          • Sep 2007
          • 17

          #5
          Originally posted by amitpatel66
          You can create a table with name of lengh 30 charcaters or less in 9i version. Which version of oracle you are using?

          You can use CREATE STATEMENT to create a table.Try creating for length of 16 and post if it errors out.
          I am doing R&D in oracle 10g .and i donot know what i do the default length of the table will set to 15 character when i create the table it will truncate to 15 character .
          I want to know how to set default length of oracle table name.

          Comment

          • Naveen Kumar Srivastava
            New Member
            • Sep 2007
            • 17

            #6
            Originally posted by BMantri
            Hello,
            SQL> create table testtesttesttes ttesttesttest(n ame varchar2(10));

            Table created.

            There is no issue if you put the name of the identifier less than or equal to 30 character.

            I am using the oracle version as
            Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
            PL/SQL Release 10.2.0.1.0 - Production
            CORE 10.2.0.1.0 Production
            TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
            NLSRTL Version 10.2.0.1.0 - Production



            Please specify your oracle version by

            select * from v$version;


            Regards,
            BMantri



            I am doing R&D in oracle 10g .and i donot know what i do the default length of the table will set to 15 character when i create the table it will truncate to 15 character .
            I want to know how to set default length of oracle table name.

            Comment

            Working...