SP2-0734: unknown command beginning “catupgrd.s…” - rest of line ignored

Hi All,

Today while performing manual migration of the database to 10gr2 we encountered the following error while trying to run catupgrd.sql script as shown below

SQL> spool upgrade.log
SQL> @catupgrd.sql
SP2-0734: unknown command beginning “catupgrd.s…” - rest of line ignored

Later on we discovered that error was due to OS which was unix and following line needs to be added to the .profile of the oracle to solve the problem

   if [ “$TERM” = “” ]
        then
                eval ` tset -s -Q -m ‘:?hp’ `
        else
                eval ` tset -s -Q `
        fi
        stty erase “^H” kill “^U” intr “^C” eof “^D”
        stty hupcl ixon ixoff
        tabs

Alternatively we could solve the problem by typing the following command

$stty kill Ctrl-u

$sqlplus

 SQL> spool upgrade.log
SQL> @catupgrd.sql

The stty kill Ctrl-U solved the problem. 

One Response to “SP2-0734: unknown command beginning “catupgrd.s…” - rest of line ignored”

  1. hi all

    i am having a table in d form

    COLNAME VALUE
    NAME ABC
    ROLLNO 2
    ADDRESS DELHI
    CLASS 12TH
    NAME CDE
    ROLLNO 3
    ADDRESS PUNE
    CLASS BSC
    NAME EFG
    ROLLNO 4
    ADDRESS CHD
    CLASS MCA

    And i want d output in the following format by using some query in oracle 9i.

    NAME ROLLNO ADDRESS CLASS
    ABC 2 DELHI 12TH
    CDE 3 PUNE BSC
    EFG 4 CHD MCA

    can sombody help me regarding ds?

    thnx in advance
    aman

Leave a Reply


Close
E-mail It