Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SQL> hoswt
SP2-0042: unknown command "hoswt" - rest of line ignored.
SQL> host
[oracle@localhost ~]$ cd /u02/oradata/farhan/
[oracle@localhost farhan]$ ls -ltr
total 1015868
-rw-r----- 1 oracle oinstall 20979712 Oct 9 13:23 temp01.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:04 farhan.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:04 far.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:08 prod.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:09 waseem.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:11 riz.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:11 riz1.dbf
-rw-r----- 1 oracle oinstall 5251072 Oct 9 16:26 users01.dbf
-rw-r----- 1 oracle oinstall 52429312 Oct 9 16:26 redo03.log
-rw-r----- 1 oracle oinstall 52429312 Oct 9 16:26 redo02.log
-rw-r----- 1 oracle oinstall 26222592 Oct 9 17:06 undotbs01.dbf
-rw-r----- 1 oracle oinstall 241180672 Oct 9 17:06 sysaux01.dbf
-rw-r----- 1 oracle oinstall 503324672 Oct 9 17:08 system01.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 17:08 gazala.dbf
-rw-r----- 1 oracle oinstall 10493952 Oct 9 17:08 addu.dbf
-rw-r----- 1 oracle oinstall 52429312 Oct 9 17:09 redo01.log
-rw-r----- 1 oracle oinstall 7061504 Oct 9 17:09 control03.ctl
-rw-r----- 1 oracle oinstall 7061504 Oct 9 17:09 control02.ctl
-rw-r----- 1 oracle oinstall 7061504 Oct 9 17:09 control01.ctl
[oracle@localhost farhan]$ ls -ltr farhan*
-rw-r----- 1 oracle oinstall 10493952 Oct 9 14:04 farhan.dbf
[oracle@localhost farhan]$ rm farhan.dbf
[oracle@localhost farhan]$ exit
exit
SQL> l
1* create tablespace farhaan datafile '/u02/oradata/farhan/farhan.dbf' size 10
0m
SQL> /
Tablespace created.
SQL> drop tablespace farhaan cascade;
drop tablespace farhaan cascade
*
ERROR at line 1:
ORA-02173: invalid option for DROP TABLESPACE
SQL>
login as: root
root@10.0.0.4's password:
Last login: Sat Oct 9 17:07:18 2010 from 10.0.0.1
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Oct 9 17:19:41 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select name from v$tablespace;
NAME
------------------------------
SYSTEM
UNDOTBS1
SYSAUX
USERS
TEMP
ADEEB
FARHAAN
7 rows selected.
SQL> alter tablespace farhaan online;
Tablespace altered.
SQL> alter tablespace farhaan read only;
Tablespace altered.
SQL> alter tablespace farhaan read write
2 ;
Tablespace altered.
SQL> select name from v$tempfile;
NAME
--------------------------------------------------------------------------------
/u02/oradata/farhan/temp01.dbf
SQL> create temporary tablespace temp1 tempfile '/u02/oradata/farhan/temp1.dbf'
size 10m;
\
drop tablespace farhaan including contents and datafiles;