Veritas Storage Foundation™ for Oracle 5.0.1 Administrator's Guide

To drop an existing temporary tablespace and recreate using Quick I/O files
1
Drop the temporary tablespace, including its contents:
$ sqlplus /nolog
SQL> connect / as sysdba;
SQL> drop tablespace tablespace_name including contents;
2
Create a Quick I/O file on a VxFS file system:
# /opt/VRTS/bin/qiomkfile -h header_size -s size \
/mount_point/filename.dbf
3
Change the owner and group permissions on the file
# chown oracle:dba .filename
# chmod 660 .filename
4
Create a new temporary tablespace using the create temporary tablespace
command.
To use the create temporary tablespace command:
$ sqlplus /nolog
SQL> connect / as sysdba;
SQL> create temporary tablespace tablespace_name \
tempfile '/mount_point/new_filename.dbf' size size reuse;
This example shows how to drop tablespace tempts, create a Quick I/O file
temp01.dbf, change permissions and then create a new temporary tablespace
tempts using the create temporary tablespace command:
$ sqlplus /nolog
SQL> connect / as sysdba;
SQL> drop tablespace tempts including contents;
Tablespace dropped.
# /opt/VRTS/bin/qiomkfile -h 32k -s 100M /db01/temp01.dbf
# chown oracle:dba .temp01
# chmod 660 .temp01
$ sqlplus /nolog
SQL> connect / as dba;
SQL> create temporary tablespace tempts \
tempfile '/db01/temp01.dbf' \
Using Veritas Quick I/O
Handling Oracle temporary tablespaces and Quick I/O
92