Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2003
    Posts
    20

    Unanswered: Timestamp problem

    Hi all,

    I'm a newbie to Oracle and am following the Oracle manuals for Intro to 9i SQL. On page 9-16, the following script generates an error:

    CREATE TABLE time_example
    (order_date TIMESTAMP WITH LOCAL TIME ZONE);

    The error is: invalid datatype. If I add the precision for the TIMESTAMP, eg. TIMESTAMP(7), it generates a "missing right paranthesis" error. The same happens if I make the datatype TIMESTAMP WITH TIME ZONE or even just TIMESTAMP. If however I make the datatype DATE, it works fine.

    The database is running on my local PC on Windows 2000. I have all the appropriate permissions. I can't see what I'm doing wrong, but I'm sure it's something stupid.

    Can anyone help ??

  2. #2
    Join Date
    Jul 2002
    Posts
    29

    Re: Timestamp problem

    Originally posted by ajdbn_za
    Hi all,

    I'm a newbie to Oracle and am following the Oracle manuals for Intro to 9i SQL. On page 9-16, the following script generates an error:

    CREATE TABLE time_example
    (order_date TIMESTAMP WITH LOCAL TIME ZONE);

    The error is: invalid datatype. If I add the precision for the TIMESTAMP, eg. TIMESTAMP(7), it generates a "missing right paranthesis" error. The same happens if I make the datatype TIMESTAMP WITH TIME ZONE or even just TIMESTAMP. If however I make the datatype DATE, it works fine.

    The database is running on my local PC on Windows 2000. I have all the appropriate permissions. I can't see what I'm doing wrong, but I'm sure it's something stupid.

    Can anyone help ??

    I am running 9.2.0.1.0 and the CREATE TABLE statement works correctly. What version or Oracle are you using?

    - rajXesh
    All you need in this life is ignorance and confidence, and then success is sure.
    -- Mark Twain (1835 - 1910)

  3. #3
    Join Date
    Mar 2003
    Posts
    20
    Hi RajXesh,

    I think it's 9.0.1.0.1 but the compatible parameter is set to 8.1.5.

    Are you also running the db on Win 2000? I can't see what I'm doing wrong.

    Kind regards.

  4. #4
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1
    Originally posted by ajdbn_za
    Hi RajXesh,

    I think it's 9.0.1.0.1 but the compatible parameter is set to 8.1.5.

    Are you also running the db on Win 2000? I can't see what I'm doing wrong.

    Kind regards.
    With compatible parameter set to 8.1.5, you can't use features introduced AFTER 8.1.5 - that's the whole purpose of the parameter!

  5. #5
    Join Date
    Mar 2003
    Posts
    20
    Hi Tony,

    Drat. I didn't think the answer would be that obvious. :-)

    Thanks Tony ... and sorry for asking such a stupid question. It's been a long month.

    Kind regards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •