i am trying to do this which uses a wrapper but that is failing so i need to do this by connecting directly to the db
nhStopDb immediate
$NH_HOME/bin/sys/nhisql -sysdba 'startup migrate'
$NH_HOME/bin/sys/nhisql -sysdba 'select status from v$instance;'
If the output is "OPEN MIGRATE" then continue...
$NH_HOME/bin/sys/nhisql -sysdba '@$ORACLE_HOME/rdbms/admin/catpatch'
$NH_HOME/bin/sys/nhisql -sysdba '@$ORACLE_HOME/rdbms/admin/catalog'
$NH_HOME/bin/sys/nhisql -sysdba 'alter table sys.mon_mods$ add ( drop_segments number default 0 );'
but all i get is this after i've stopped the db ....
D:\>cd ehealth60\bin\sys\nhisql -sysdba 'startup migrate'
The system cannot find the path specified.
D:\>d:\ehealth60\bin\sys\nhisql -sysdba 'startup migrate'
ERROR:
ORA-12560: TNS

rotocol adapter error
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<connect_string>] | /
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<connect_string>] | /
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
D:\>