Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-4391

During Oracle db upgrade, syntax error in Oracle DML scripts

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.4
    • ambari-server
    • None

    Description

      When executing Ambari-DML-Oracle-FIX_LOCAL_REPO.sql, the following error occurs to every single query with INSTR() function:

      SQL> SQL>   2    3    WHERE INSTR('HDPLocal' in current_stack_version) > 0
                               *
      ERROR at line 3:
      ORA-00907: missing right parenthesis
      

      When executing Ambari-DML-Oracle-INSERT_METAINFO.sql

      • Need commit;
      • Need to single-quote string values
      • Need to double-quote metainfo column names, because the create script uses double-quoted column names.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ncole@hortonworks.com Nate Cole
            ncole@hortonworks.com Nate Cole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment