SQL> drop tablespace intsupfct_data_index_2 INCLUDING CONTENTS AND datafiles CAS CADE CONSTRAINTS; drop tablespace intsupfct_data_index_2 INCLUDING

CONTENTS AND datafiles CASCADE CONSTRAINTS * ERROR at line 1: ORA-23515: materialized views and/or their indices exist in the tablespace select 'drop materialized view '||owner||'.'||name||' PRESERVE TABLE;' from dba_ registered_snapshots where name in (select table_name from dba_tables where tablespace_name = 'INTSUPFCT_DATA_INDEX _2' and owner='INTSUPFCT2') AND OWNER='INTSUPFCT2' ----------------------

CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '+DGCORE04' SIZE 30g AUTOEXTEND ON NEX T 100M MAXSIZE UNLIMITED; ----/u01/orapla/temp01.dbf /u01/oracle/ORAERP/db/apps_st/data/temp1.dbf CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '/u02/oracle/ORAERP/db/apps_st/data/temp.dbf' SIZE 1g; ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp; DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles; ----------------------------------------------------------------CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE '/u01/oracle/ORAERP/db/apps_st/data/temp3.dbf' SIZE 500m; ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1; DROP TABLESPACE temp INCLUDING CONTENTS AND datafiles; --------------------------------------------------------------CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE '/u01/oracle/ERPQA/db/apps_st/data/temp2.dbf' SIZE 1g; ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1; DROP TABLESPACE temp INCLUDING CONTENTS AND datafiles;

---/u01/orapla/undotbs01.dbf CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE '/u05/orapla/undotbs02.dbf' SIZE 500M; ALTER SYSTEM SET undo_tablespace = 'UNDOTBS2'; DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES; -------

dat' offline dro p. DROP TABLESPACE APPS_UNDOTS1 INCLUDING CONTENTS AND DATAFILES. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp.dbf' SIZE 1G. ---------------------------------------------------------------------------CREATE UNDO TABLESPACE APPS_UNDOTS DATAFILE '/u01/oracle/ERPAPD/db/apps_st/data/undo01. -----------------------------------------------------------------------ALTER DATABASE DATAFILE '/disco4/oradata/oraqa/tspc_mdr_idx_s03. ALTER SYSTEM SET undo_tablespace = 'UNDOTBS1'. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- drwxr-xr-x 3 ororaerp dboraerp 4096 Feb 3 20:15 oracle mkdir -p /u03/oracle/backup/hot -------------------------------------------------------------------------CREATE UNDO TABLESPACE APPS_UNDOTS DATAFILE '/u01/oracle/ORAERP/db/apps_st/data/undo01. ALTER SYSTEM SET undo_tablespace = 'APPS_UNDOTS'. create /disco4/oradata/oraqa/tspc_mdr_idx_s03. DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles.dbf' SIZE 5G.CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE '/u07/orapla/undotbs01.dat -----------tablespace ALTER DATABASE TEMPFILE '/u01/oracle/ORAERP/db/apps_st/data/temp1.dbf' DROP INCL .dbf' SIZE 1G. DROP TABLESPACE UNDOTBS2 INCLUDING CONTENTS AND DATAFILES. DROP TABLESPACE APPS_UNDOTS1 INCLUDING CONTENTS AND DATAFILES. CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '/u01/oracle/ORAERP/db/apps_st/data/temp1.dbf' SIZE 6G. ALTER SYSTEM SET undo_tablespace = 'APPS_UNDOTS'.

----------------------------------------------------------------------------- SQL> ALTER SYSTEM SET undo_tablespace = 'UNDOTBS02'.dbf' SIZE 512m. ALTER TABLESPACE temp ADD TEMPFILE '/u02/oradata/TESTDB/temp01. DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles. -----------------UNDO----------------------SELECT name. -CREATE UNDO TABLESPACE APPS_UNDOTS1 DATAFILE '/u02/oracle/ORAERP/db/apps_st/data/undo01. ALTER TABLESPACE undotbs02 OFFLINE.UDING DATAFILES.dbf' SIZE 10G. ALTER SYSTEM SET undo_tablespace = 'APPS_UNDOTS1'.'undo_table space'). alter tablespace tspc_bocms_dat rename to tspc_bocms_datidx. DROP TABLESPACE APPS_UNDOTS2 INCLUDING CONTENTS AND DATAFILES.dbf' SIZE 5G. DROP TABLESPACE undotbs02 INCLUDING CONTENTS AND DATAFILES. SQL> DROP TABLESPACE undotbs01 INCLUDING CONTENTS AND DATAFILES. NAME VALUE -----------------------undo_management AUTO undo_tablespace UNDOTBS01 CREATE UNDO TABLESPACE APPS_UNDOTS2 DATAFILE '/u02/oracle/ORAERP/db/apps_st/data/undo02.value FROM v$parameter WHERE name IN ('undo_management'. DROP TABLESPACE APPS_UNDOTS1 INCLUDING CONTENTS AND DATAFILES. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp4. ALTER SYSTEM SET undo_tablespace = 'APPS_UNDOTS2'.dbf' SIZE 40G AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL UNIFO RM SIZE 5120K SEGMENT SPACE MANAGEMENT AUTO.dbf' SIZE 100M. SQL> ALTER TABLESPACE undotbs01 OFFLINE. ---------------CREATE TEMPORARY TABLESPACE TEMP4 TEMPFILE '/u01/oracle/ERPDES/db/apps_st/data/temp04. --------------------------------------------------CREATE BIGFILE TABLESPACE "DEVFCT_DATA_INDEX_1" DATAFILE '/u02/oradata/CORDES/de vfct_data_index_1. . SQL> ALTER SYSTEM SET undo_tablespace = 'UNDOTBS01'.

SELECT * FROM v$sort_usage. -----------------------------------------------------------------------------ALTER TABLESPACE temp1 TABLESPACE GROUP ''. desc dba_tablespace_groups SELECT * FROM dba_tablespace_groups. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE app_grp. ALTER TABLESPACE temp2 TABLESPACE GROUP ''. DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp4. TABLESPACE GROUP temp_grp. ALTER TABLESPACE temp2 TABLESPACE GROUP ''.CREATE TEMPORARY TABLESPACE TEMP4 TEMPFILE '/u01/oracle/ERPAPD/db/apps_st/data/temp04. ALTER TABLESPACE tools TABLESPACE GROUP apps_grp. DROP TABLESPACE temp2 INCLUDING CONTENTS AND datafiles.dbf' SIZE 1000M. DROP TABLESPACE temp INCLUDING CONTENTS AND datafiles. SELECT * FROM v$sort_segment.dbf' SIZE 1000m extent management local uniform size 128k. ----------------------------------------------------------SELECT * FROM dba_temp_files SELECT * FROM dba_users ------------------------------------------------------------------------CREATE TEMPORARY TABLESPACE temp4 TEMPFILE '/u01/oracle/ERPQA/db/apps_st/data/temp04. eliminar tablespace de grupo ALTER TABLESPACE temp1 TABLESPACE GROUP ''. DESC dba_tablespace_groups SELECT * FROM dba_tablespace_groups.dbf' SIZE 100M. DROP TABLESPACE temp2 INCLUDING CONTENTS AND datafiles. DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles. ALTER TABLESPACE tools TABLESPACE GROUP apps_grp. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp4. . CREATE TEMPORARY TABLESPACE TEMP4 TEMPFILE '/u01/oracle/ERPDES/db/apps_st/data/temp04.

u.f' SIZE 1M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp_ts_group.dbf' size 2000m extent management local uniform size 128k.saddr AND c. u. v$process c WHERE a.osuser. ALTER USER scott TEMPORARY TABLESPACE temp_ts_group.a. SYSDATE FROM v$sort_usage a. alter database default temporary tablespace temp1.TABLESPACE.b. b.session_addr = b.Assign group as the default temporary tablespace.username.USERNAME. SUM(u.Assign group as the temporary tablespace for a user.paddr ORDER BY extents DESC .----si no coloco nada es igual que escribir esto EXTENT MANAGEMENT LOCAL UNIFORM SIZE 2M.TABLESPACE. -------------------------------------------------------------------------------------------------------------------------------------------------para despues de un post-clone --------------------------------------create temporary tablespace temp1 tempfile '/u01/oracle/ERPAPD/db/apps_st/data/t emp1.extents. b. drop tablespace temp including contents and datafiles.b.MACHINE.USERNAME -----------------------------------------------------col tablespace for a10 col machine for a20 col username for a10 col osuser for a15 col terminal for a10 col sid for 9999 col spid for 9999 SELECT a.blocks)*8/1024 "mb_temp_used" FROM v$tempseg_usage u GROUP BY u.terminal.a.spid.addr = b. ---es igual que no col oque ningun parametro EXTENT MANAGEMENT LOCAL AUTOALLOCATE.---------------------------------------------------------.sid.a.TABLESPACE. v$session b. ------------------------------------------------------------------------------------------CREATE TABLESPACE auto_seg_ts DATAFILE 'file_2. b. c. chequeo de tablespace temporal---------------------------------SELECT u. -.CONTENTS.blocks.

object_name.used_blocks * D. SYSDATE FROM v$sort_usage a. b.object_id = b. C. b.BYTES-F. sm$ts_used u WHERE T.used_blocks * D.00') " %KB USADOS" FROM SM$TS_AVAIL t. TO_CHAR((U.a.sql_text FROM v$sqlarea s. (T.BYTES). CON EL TAMAÑO TOTAL Y EL USADO ---------------------------------------------------------------SELECT T.address=x.bytes) / 1024 / 1024 mb_total FROM v$tablespace B.mb_total.ts# GROUP BY B.username.block_size) / 1024 / 1024 mb_free FROM v$sort_segment A. b.name GROUP BY A. v$tempfile C WHERE B.child_number from v$sql where users_executing > 0.CONTENTS.tablespace_name TABLESPACE.osuser.sql_hash_value AND s.saddr AND c. (SELECT b. D. C.sid thesid.2 ---------------locked -------------select oracle_username os_user_name.extents.x.BYTES/1024) "KB TOTAL".BYTES/T.address.b.sql_address ORDER BY 1.dba_objects b where a.TABLESPACE. SUM (A.block_size) / 1024 / 1024 mb_used.SUM (A.TABLESPACE_NAME = F.BYTES)/1024 "KB USADOS".session_addr = b. locked_mode.object_id ---------------sql usados ------------select sql_text.mb_total .TABLESPACE_NAME AND T.block_size.mb_total.name.hash_value=x.b.username.TABLESPACE_NAME = U. object_type from v$locked_object a. v$session b.sql_address.sql_hash_value.paddr ORDER BY extents DESC) x WHERE s.blocks. D.TABLESPACE. D. ---MUSTRAS TODOS LOS TABLESPACES.a. sm$ts_FREE f.block_size ) D WHERE A.ts#= C. s. SUM (C. --modification a.spid.TABLESPACE_NAME. (T.x. v$process c WHERE a.a.hash_value.TABLESPACE_NAME / . c.name.terminal.addr = b.thesid.MACHINE.tablespace_name.tablespace_name = D. SELECT x. ( SELECT B.'9990.b.SELECT A.

dbf cp /u01/oracle/ORAERP/db/apps_st/data/system10.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system09.dbf /data/system07.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system04.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system05.alter tablespace TSPC_MDR_IDX_S add datafile '$2$DUA56:[ORACLE..dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system05.DAT' size 256M reuse..la base de datos debe estar montada ($ startup mount) 4.copiar archivo en bd abajo 3.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system04.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system12..dbf'.dbf /data/system06.dbf /data/system04.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system07.subir bd .dbf /data/system02.dbf /data/system12.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system11.----bajar base de datos (shutdown immediate) 2.dbf'.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system06.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system08.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system03. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system06.dbf'.. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system03.dbf /data/system11. to to to to to to .dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system02.dbf /data/system05. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system04. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system05.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system03.dbf /data/system03. cp /u01/oracle/ORAERP/db/apps_st/data/system01. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system02..alter database open.dbf'.dbf /data/system01.dbf /data/system09. drop tablespace tspc_cifqa_dat_s including contents and datafiles. ------------------------------------------------MOVER DATAFILE DE SYSTEM-----------------------------------------------------------1.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system01.dbf /data/system10.MDR]TSPC_MDR_IDX_S04.dbf /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st /u01/oracle/ERPAPD/db/apps_st alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system01.dbf /data/system08.dbf'.dbf'.se renombran los tablespace ( alter database rename file 'origen' to 'destin o' 5.dbf cp /u01/oracle/ORAERP/db/apps_st/data/system02.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system06.

dbf -rw-r----.dbf -rw-r----.) 3.1 ororaerp dboraerp 17179877376 Apr 28 10:13 a_txn_ind09.dbf -rw-r----. (abort) noo es necesario6..BCT]TSPC_BCTQA _IDX_S04.dbf .dbf cp /u02/oracle/ORAERP/db/apps_st/data/a_txn_data10.. 5..dbf'. drop tablespace tspc_sfr_tmp including contents and datafiles.dbf /u03/a_txn_data11.alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system07. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system10.dbf'.dbf /u03/a_txn_data10.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system12.dbf'.dbf alter tablespace apps_ts_tx_idx offline.1 ororaerp dboraerp 2147491840 Apr 28 10:23 temp2.se dejan los tablespace de datos e indices offline (alter tablespace nombre offline.se renombran los tablespace (alter tablespace nombre rename datafile 'origen data' to 'destino data fisica') por ej: alter tablespace TSPC_BCT_DAT_S rename datafile '$2$DUA56:[ORACLE.1 ororaerp dboraerp 33286004736 Apr 28 10:08 a_txn_data10.dboraerp /u03 [ororaerp@srverpora1 ~]$ ll /u02/oracle/ORAERP/db/apps_st/data/ total 81867968 -rw-r----. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system12. ---------------------------------------------------para cambiar tablespace de datos e indices a otro disco o ubicacion 1..) 4.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system09.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system07. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system11. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system09.dbf /u03/a_txn_ind09. cp /u02/oracle/ORAERP/db/apps_st/data/a_txn_ind09. to to to to to to ---------------------------------------------------------------------------------------------para borrar un tablespaces---------alter tablespace tspc_sfr_tmp offline.dbf --cp /u02/oracle/ORAERP/db/apps_st/data/a_txn_data11.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system11.dbf'.se deja los tablespace "online" ----------------------------------------noo es necesario2.dbf'.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system08.1 ororaerp dboraerp 31138521088 Apr 28 10:19 a_txn_data11.dbf' '/u01/oracle/ERPAPD/db/apps_st/data/system10. alter tablespace apps_ts_tx_data offline. alter database rename file '/u01/oracle/ORAERP/db/apps_st/data/system08..se baja la instancia sql> shutdown immediate.dbf'.DAT'.BCT]TSPC_BCT_DAT_S04.se sube la instancia (sql> startup) ----------------------------------------mkdir -p /u03/oracle/backup/hot ororaerp dboraerp chown -R ororaerp.DAT' TO $2$DUA56:[ORACLE.se copian todos los archivos de datos e indices a los directorios destino ( tienen que estar los archivos de origen y de destino en los directorio especi f..

dat alter tablespace tspc_crd_dat_s rename datafile '/u01/oralqa1/tspc_crd_dat_s01.dbf'.dbf'.dat ------------------------------------------------------------------ll /U02 -mkdir -p /u02/oracle/ORAERP/db/apps_st/data chown -R ororaerp:dboraerp /u02 -----------------movimiento de datafile de OEM --------------------------------------------------alter tablespace MGMT_TABLESPACE offline. cp /u01/app/oracle4/oradata/oraoem/mgmt_depot.dbf' to '/u03/a_txn_ind09. cp /u01/app/oracle4/oradata/oraoem/mgmt_ad4j.dbf'.db f alter tablespace MGMT_ECM_DEPOT_TS rename datafile '/u01/app/oracle4/oradata/ora oem/mgmt_depot.dbf' to '/u03/a_txn_data11.dbf' TO '/u03/oradata/oem/mgmt. cp /u01/oralqa1/tspc_crd_dat_s01.alter tablespace apps_ts_tx_idx rename datafile '/u02/oracle/ORAERP/db/apps_st/d ata/a_txn_ind09. alter tablespace tspc_crd_dat_s online.dbf'.dbf /u03/oradata/oem/mgmt_ad4j. -alter tablespace apps_ts_tx_idx online. alter tablespace apps_ts_tx_data online.dbf alter tablespace MGMT_AD4J_TS rename datafile '/u01/app/oracle4/oradata/oraoem/ mgmt_ad4j.dat'. rm -f /u01/oralqa1/tspc_crd_dat_s01.d at' to '/u05/oralqa1/tspc_crd_dat_s01.dbf'.dat /u05/oralqa1/tspc_crd_dat_s01. alter tablespace MGMT_AD4J_TS online.dbf alter tablespace MGMT_TABLESPACE rename datafile '/u01/app/oracle4/oradata/orao em/mgmt.dbf' to '/u03/a_txn_data10.dbf' SIZE 1000m. cp /u01/app/oracle4/oradata/oraoem/mgmt. CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE '/u03/oradata/oem/temp1. alter tablespace MGMT_AD4J_TS offline. alter tablespace tspc_crd_dat_s offline. . alter tablespace MGMT_ECM_DEPOT_TS online.dbf'.dbf' TO '/u03/oradata/oem/mgmt_depot. ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1. alter tablespace MGMT_ECM_DEPOT_TS offline.dbf /u03/oradata/oem/mgmt_depot.dbf' TO '/u03/oradata/oem/mgmt_ad4j. -alter tablespace apps_ts_tx_data rename datafile '/u02/oracle/ORAERP/db/apps_st/ data/a_txn_data11. alter tablespace MGMT_TABLESPACE online. alter tablespace apps_ts_tx_data rename datafile '/u02/oracle/ORAERP/db/apps_st/ data/a_txn_data10.dbf /u03/oradata/oem/mgmt.

dbf /u02/oracle/ORAERP/db/apps_st/data/a_txn_data10.dbf --cp /u03/a_txn_data11.dbf cp /u03/a_txn_data10.dbf alter tablespace orabpel rename datafile '/u01/app/oracle/oradata/oralxbp/orabpe l. dbf' to '/u02/oradata/oralxbp/users01.dbf alter tablespace sysaux rename datafile '/u01/app/oracle4/oradata/oraoem/sysaux 01.DROP TABLESPACE temp INCLUDING CONTENTS AND datafiles. rm -f /u01/app/oracle/oradata/oralxbp/users01.dbf' TO '/u03/oradata/oem/sysaux01.dbf /u02/oradata/oralxbp/users01. . cp /u01/app/oracle/oradata/oralxbp/orabpel. alter tablespace sysaux offline. -alter tablespace apps_ts_tx_idx online.dbf /u02/oracle/ORAERP/db/apps_st/data/a_txn_ind09.dbf alter tablespace users rename datafile '/u01/app/oracle/oradata/oralxbp/users01.dbf /u02/oradata/oralxbp/orabpel. alter tablespace orabpel online. cp /u03/a_txn_ind09.dbf' SIZE 1000M. ----------------------------------------------------alter tablespace apps_ts_tx_idx offline.dbf' TO '/u0 2/oracle/ORAERP/db/apps_st/data/a_txn_data11.dbf' to '/u02/oradata/oralxbp/orabpel.dbf' SIZE 500m.dbf alter tablespace apps_ts_tx_idx rename datafile '/u03/a_txn_ind09.dbf' TO '/u02/ oracle/ORAERP/db/apps_st/data/a_txn_ind09. CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE '/u03/oradata/oem/undotbs01.dbf'. cp /u01/app/oracle/oradata/oralxbp/users01. ALTER SYSTEM SET undo_tablespace = 'UNDOTBS1'.dbf /u02/oracle/ORAERP/db/apps_st/data/a_txn_data11.dbf alter tablespace orabpel offline. alter tablespace apps_ts_tx_data offline.dbf'. -alter tablespace apps_ts_tx_data rename datafile '/u03/a_txn_data11.dbf' TO '/u0 2/oracle/ORAERP/db/apps_st/data/a_txn_data10.dbf CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '/u02/oradata/oralxbp/temp1. alter tablespace sysaux online. cp /u01/app/oracle4/oradata/oraoem/sysaux01.dbf'. alter tablespace users online.dbf'.dbf'. rm -f /u01/app/oracle/oradata/oralxbp/orabpel.dbf'. alter tablespace apps_ts_tx_data rename datafile '/u03/a_txn_data10. alter tablespace apps_ts_tx_data online. DROP TABLESPACE UNDOTBS2 INCLUDING CONTENTS AND DATAFILES. -----------------------------------------------------------------alter tablespace users offline.dbf /u03/oradata/oem/sysaux01.

.DAT' size 262144K.Drop an undo tablespace.ORA]TSPC_UNDO1.ORA]TSPC_UNDO..DAT' size 10 M.DAT' size 10 M.dbf' SIZE 500M.MDR]TSPC_MDR_DAT_S05.ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp. ALTER SYSTEM SET undo_tablespace = 'UNDOTBS2'.Perform backup operations ALTER TABLESPACE undotbs_01 BEGIN BACKUP.se baja la instancia entrando como system (sql> shutdown 2. DROP TABLESPACE temp1 INCLUDING CONTENTS AND datafiles. tienen el sigueinte trato??????? (o se pueden cr ear de nuevo) 1. ----------------------------------------------------------ALTER SYSTEM SET UNDO_TABLESPACE = TSPC_UNDO2..DAT' size 262144K reuse extent management local uniform size 512K nologging. ---Si se quiere agregar un nuevo archivo de tablespace alter tablespace TSPC_MDR_DAT_S add datafile '$2$DUA52:[ORACLE. DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES. ALTER TABLESPACE undotbs_01 END BACKUP. --------------UNDO---------------------------------------SELECT * FROM DBA_ROLLBACK_SEGS -.se renombran los tablespace ( alter database rename file 'origen' to 'destin o' ------------------------------------------------------------------------CREA TABLESPACE DE DATOS O INDICES -------------------------------------------------------------------alter tablespace tspc_CIFQA_IDX_S offlINE. drop tablespace tspc_undo INCLUDING CONTENTS AND DATAFILES. ------------------------------------------------------------------------------para los tablespace temporales.se copian los tablespace temporales al area destino 3. CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE '/u02/oradata/oralxbp/undotbs02. DROP TABLESPACE undotbs_01. CAMBIA TSPC_UNO POR TSPC_UNDO2.MDR]TSPC_MDR_DAT_S01.la base de datos debe estar montada ($ startup mount) 4. CREATE UNDO TABLESPACE tspc_undo2 datafile '$2$DUA52:[ORACLE. create tablespace TSPC_MDR_DAT_S datafile '$2$DUA56:[ORACLE. ------CREA TABALESPACE TEMORALES -------------------------------------------------------------------- . DROP TABLESPACE TSPC_CIFQA_IDX_S INCLUDING CONTENTS AND DATAFILES. ALTER TABLESPACE TSPC_UNDO2 ADD DATAFILE '$2$DUA52:[ORACLE. -..

--------------------------------------------------------------------borrar tempfiles------------------alter database tempfile '/oracle/oradata/V901/temp2_01.MDR]TSPC_MDR_TMP_01. SQL> DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES.DROP TABLESPACE TEMP INCLUDING CONTENTS AND DATAFILES. Tablespace created.DAT' size 5152K reuse extent management local uniform size 128K. SQL> CREATE TEMPORARY TABLESPACE temp 2 TEMPFILE '/u02/oradata/TESTDB/temp01.DAT' size 262144K.ORA]TEMP01. -create temporary tablespace tspc_mdr_tmp tempfile '$2$DUA56:[ORACLE.DAT' size 256M reuse extent management local uniform size 128K. SQL> DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES.tmp' drop. Database altered. Database altered. create temporary tablespace TEMP tempfile '/u01/orapla/temp01. Alter user nombre_de_usuario temporary tablespace nombre_de_tablespace.dbf' size 5152K reuse extent management local uniform size 128K. alter tablespace TSPC_MDR_TMP . ---------------------------------------alter tablespace TSPC_MDR_TMP add tempfile '$2$DUA52:[ORACLE. Tablespace dropped.dbf' SIZE 500M REUSE 3 AUTOEXTEND ON NEXT 100M MAXSIZE unlimited 4 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M.MDRTMP]TSPC_MDR_TMP_02. create temporary tablespace TEMP tempfile '$2$DUA54:[ORACLE. SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp. -------------------------------------------------------------------------------------------------------------------------------------------------tablespace temporales---------------------------------SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2.

MDRTMP]TSPC_MDR_TMP_02. -------------------------------------------------------------------select * from v$datafile select * from v$tablespace select * from v$tempfile .DAT' size 256M reuse.add tempfile '$2$DUA52:[ORACLE.

Sign up to vote on this title
UsefulNot useful