Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
database dismounted.
oracle instance shut down.
sql> start nomount;
sp2-0310: unable to open file "nomount.sql"
sql> startup nomount;
oracle instance started.
system altered.
database altered.
database altered.
name
--------------------------------------------------------------------------------
d:\oracle\oradata\iimdba\users01.dbf
sql> ed
wrote file afiedt.buf
tablespace altered.
sql> host
tablespace altered.
tablespace altered.
sql> ---------- we want to phsyically remove the file users01.dbf from oradata
folder
sql>
sql> shutdown immediate;
database closed.
database dismounted.
oracle instance shut down.
sql> startup
oracle instance started.
tablespace altered.
sql>
sql> alter tablespace users online;
alter tablespace users online
*
error at line 1:
ora-01157: cannot identify/lock data file 9 - see dbwr trace file
ora-01110: data file 9: 'd:\bkp\users01.dbf'
sql> --------- why media recovery came means if remove the tablespace from oradata
folder and then we made any changes in tables or transcation we want to rollback
the data if it is not rollbacked than the media recobery error comes
sql>
sql> ------ to avoid this error
sql>
sql> recover tablespace users;
media recovery complete.
sql> alter tablespace online;
alter tablespace online
*
error at line 1:
ora-02140: invalid tablespace name
tablespace altered.
sql>
sql> shutdoen immediate;
sp2-0734: unknown command beginning "shutdoen i..." - rest of line ignored.
sql> shutdown immediate;
database closed.
database dismounted.
oracle instance shut down.
sql> startup;
oracle instance started.