Move datafile from system tablespace
How can i move system datafile in a windows? I need to put database mount?
Tks
• Shutdown the db
• Rename/Move the datafile using the o/s command
• Mount the db
• Alter database rename file <file 1> to <file 2>
• Alter database open;
Similar Messages
-
Missing datafile from system-tablespace?
Hello!
We've got a major power-loss yesterday. After that our database does not start correct.
I got the message:
ORA-00600: Interner Fehlercode, Argumente: [kccpb_sanity_check_2], [9577], [9542], [0x0], [], [], [], []
After that I searched the forum and recreated the controlfiles and started recover database.
Now I always got the following error-message:
ORA-01173:Data dictionary indicates missing data file from system tablespace
I'm not really shure if I created another datafile for that tablespace. Even though there is no other datafile in the "oradata-directory".
Does anyone know how to go further?
Regards, Sascha
Message was edited by:
SoreheadHello,
Need help very quickly please!
I have the same error message. ORacle 10.2.0.3 AIX 5.3 on a datawarehouse.
I need to recover one tablespace from the database.
I restored my system tablespace and the data tablespace on a test environment and recreated the controlfile. I recovered my database. Recover OK and when I open the database resetlogs the message is :
Thread 1 opened at log sequence 1
Current log# 2 seq# 1 mem# 0: /oradata5/RL_G2_1.ORA
Successful open of redo thread 1
Thu Feb 18 13:59:47 2010
SMON: enabling cache recovery
Thu Feb 18 13:59:47 2010
Errors in file /opt/app/oracle/admin/MKT1/udump/mkt1_ora_2318672.trc:
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-01173: data dictionary indicates missing data file from system tablespace
Thu Feb 18 13:59:47 2010
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Instance terminated by USER, pid = 2318672
ORA-1092 signalled during: alter database open resetlogs...
Thanks for help, production data ;) -
Transport table from system tablespace to another tablespace
hi there,
how can we transport a table from system tablespace to another tablespace(example users tablespace)?Assuming you are not trying to move any data dictionary tables.
Use alter table to move it,
ALTER TABLE my_table MOVE TABLESPACE USERS;
Rebuild index after move.
This will work on Oracle 9i and above. -
Droping a datafile from a tablespace
I want to drop a datafile from a tablespace by using the query
SQL> alter tablespace TS1 drop datafile 'OS path\df1';
This query drops the datafile. But physically the datafile is present in the OS path. how to delete the datafile completely from the disk.Version:-
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>
Although it's dropped on database level, I can't delete.If dropped data file from ORACLE, it deletes from OS level too. By any other processes being locked like antivirus and so on?
SQL> select file_name from dba_data_files where tablespace_name='USERS';
FILE_NAME
C:\ORACLE\ORADATA\ORCL\USERS01.DBF
C:\ORACLE\ORADATA\ORCL\USERS02.DBF
SQL> alter tablespace users add datafile 'c:\oracle\oradata\orcl\users03.dbf' size 10m;
Tablespace altered.
SQL> host
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\bn2676>cd c:\Oracle\oradata\orcl
c:\Oracle\oradata\orcl>dir users*
Volume in drive C is System
Volume Serial Number is 1853-3E21
Directory of c:\Oracle\oradata\orcl
02/15/2012 11:25 PM 5,251,072 USERS01.DBF
02/16/2012 09:04 PM 10,493,952 USERS02.DBF
02/16/2012 09:05 PM 10,493,952 USERS03.DBF
3 File(s) 26,238,976 bytes
0 Dir(s) 177,196,707,840 bytes free
c:\Oracle\oradata\orcl>exit
SQL> alter tablespace users drop datafile 'c:\oracle\oradata\orcl\users03.dbf';
Tablespace altered.
SQL> select file_name from dba_data_files where tablespace_name='USERS';
FILE_NAME
C:\ORACLE\ORADATA\ORCL\USERS01.DBF
C:\ORACLE\ORADATA\ORCL\USERS02.DBF
SQL> host
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\bn2676>cd c:\Oracle\oradata\orcl\
c:\Oracle\oradata\orcl>dir user*
Volume in drive C is System
Volume Serial Number is 1853-3E21
Directory of c:\Oracle\oradata\orcl
02/15/2012 11:25 PM 5,251,072 USERS01.DBF
02/16/2012 09:04 PM 10,493,952 USERS02.DBF
2 File(s) 15,745,024 bytes
0 Dir(s) 177,207,398,400 bytes free
c:\Oracle\oradata\orcl> -
Want to drop non-system table from system tablespace
My system tablespace was having some user tables , so I moved those tables to user tablespace. Now that tables are showing in both the tablespaces ex. RET_OFF is showing in system as well as users tablespace I want to drop it from system tablespace only . Can I do it . plz help
Hi Florian , plz check the below details . I am working on Oracle 11g on Windows platform.
SQL> alter table REF_VAT_OFF move tablespace vatsoft;
Table altered.
SQL> select owner, table_name, tablespace_name
2 from dba_tables
3 where table_name='REF_VAT_OFF';
OWNER TABLE_NAME TABLESPACE_NAME
KNVATCEN REF_VAT_OFF SYSTEM
OWNER TABLE_NAME TABLESPACE_NAME
KNVAT REF_VAT_OFF VATSOFT -
Move datafile from asm datafile database to non asm database
Hi Nice morning all DBA Guys, I want move datafile from asm database datafile to non asm configurated database. Hoe to move this?
Datafiles like this
+DATA/saico/datafile/users.259.631612183
+DATA/saico/datafile/DBA.XXX.XXXXXXXXX
Regards
S.AzarThe all files movement of asm to non-asm and vice-versa is given in document id 252219.1 on metalink. Please look at the same. In nut shell you have to do the following:
1. Start your database with ASM.
2. Create pfile from spfile.
3. Edit pfile to reflect controlfile name in file system location.
4. SQL> Startup nomount.
5. Use RMAN to copy the control file from ASM to NON-ASM.
RMAN> RESTORE CONTROLFILE FROM '<filename_of_old_control_file>';
6. SQL> alter database mount;
7. Use RMAN to copy the database from ASM to NON-ASM.
RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';
8. From RMAN
RMAN> SWITCH DATABASE TO COPY;
Regards. -
How to move table from one tablespace to other tablespace?
how to move table from one tablespace to other tablespace?
887274 wrote:
how to move table from one tablespace to other tablespace?
alter table <table_name> move tablespace <new_tablespace_name>;
Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
SQL> create table ttt( ID NUMBER PRimary key);
Table created.
SQL> insert into ttt values (1);
1 row created.
SQL> commit;
Commit complete.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 VALID
SQL> alter table ttt move tablespace users;
Table altered.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 UNUSABLE
SQL> alter index SYS_C0010863 rebuild tablespace users online;
Index altered.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 VALID
SQL> -
How to remove data file from System tablespace
Hi All,
I have wrongly added data file in SYSTEM tablespace, now I want remove it. I have tried to set datafile offline but it is giving me the error system tableapce can not set offline. so please help me. I am working Oracle 10g .
thanks in advance
svIn 10gR2, you can drop a datafile from tablespace, as long it's empty (and of course not the last one):
ALTER TABLESPACE tbs_03 DROP DATAFILE 'tbs_f04.dbf';
Otherwise, there's no direct way to get rid of the file. You can just shrink it and move (i.e. "rename") it another location. For a non-system tablespace, move of all segments to another tablespace (and later renaming it) would be an option, but this of course won't work with system tablespace. -
HOW TO MOVE DATAFILES FROM ONE DISK RAID TO ANOTHER:PLZ HELP ME :=)
Hi all,
For Tunning reasons : perform The I/O from the Instance to datafiles (database). I decide to move some Index datafiles from One DISK RAID to another.
I'm on Linux Redhat Server and Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
My database 's On PRODUCTION and there 're many web applications updating some databases tables and for sure using Index tablespace. I preapared yet my procedure to move datafiles but I'm posting this to be sure that I will not have BAD EFFECTS on my Oracle database.
So I plan without SHUTDOWN MY DATABASE to these steps :
/*Step1 : */
ALTER TABLESPACE INDX OFFLINE ;
/*Step 2 : move datafiles to new disk raid*/
mv /u01/oraindx/DB01/indx01_05.dbf /u01/oraindx2/DB01/indx01_05.dbf
mv /u01/oraindx/DB01/indx01_06.dbf /u01/oraindx2/DB01/indx01_06.dbf
mv /u01/oraindx/DB01/indx01_07.dbf /u01/oraindx2/DB01/indx01_07.dbf
/*Step 3 : */
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_05.dbf' TO '/u01/oraindx2/DB01/indx01_05.dbf';
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_06.dbf' TO '/u01/oraindx2/DB01/indx01_06.dbf';
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_07.dbf' TO '/u01/oraindx2/DB01/indx01_07.dbf';
/*Step 4 : */
ALTER TABLESPACE INDX ONLINE ;
Please verify my procedure and tell me the precautions that I should take care :=)
regards,Werner,
If this is an active databases (indexes are used),
you cannot set offline the index tablespace.you can offline it.
DAB user:
SQL>create tablespace inds datafile '/oracle/newdb/mydb/inds01.dbf' size 10m;
Tablespace created.
Scott user:
SQL>create table t2 (col1 date, id number) tablespace users;
Table created.
SQL>create index t2_ind on t2(id) tablespace inds;
Index created.
SQL>insert into t2 values (sysdate,1);
1 row created.
SQL>insert into t2 values (sysdate,2);
1 row created.
SQL>insert into t2 values (sysdate,10);
1 row created.
DBA user:
SQL>select segment_name,segment_type,tablespace_name
2 from dba_segments
3 where owner='SCOTT' and segment_name like 'T2%';
SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
T2 TABLE USERS
T2_IND INDEX INDS
SQL>alter tablespace inds offline;
Tablespace altered.
SQL>!mv /oracle/newdb/mydb/inds01.dbf /oracle/newdb/mydb/inds0001.dbf
SQL>alter tablespace inds rename datafile '/oracle/newdb/mydb/inds01.dbf' to
2 '/oracle/newdb/mydb/inds0001.dbf';
Tablespace altered.
SQL>alter tablespace inds online;
Tablespace altered.
scott user:
SQL>insert into t2 values (sysdate,20);
1 row created.
SQL>
SQL>select * from t2;
COL1 ID
22-NOV-07 1
22-NOV-07 2
22-NOV-07 10
22-NOV-07 20
SQL>commit;
Commit complete. -
Move objects from one tablespace to another
Hello
Running Oracle 10g rel 2 and I would like to move all objects from one tablespace to another. There are Primary Key indexes to other tables in this tablespace. The size grew too large and I want to reduce the size.
Thank you.Good afternoom Sir!
I believe that below "ask tom - moving tables across tablespaces" may help you.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:47812348053
Regards,
Marcello M. -
DROP DATAFILE FROM A TABLESPACE
What is the difference between "ALTER TABLESPACE DROP DATAFILE ..." and "ALTER DATABASE DATAFILE ... OFFLINE DROP"?
I read the Oracle document before, it tolds me that the "ALTER DATABASE DATAFILE ... OFFLINE DROP" is not really drop data file. But, does the "ALTER TABLESPACE DROP DATAFILE ..." really drop data file?"ALTER DATABASE DATAFILE ... OFFLINE DROP"
will take datafile offline to drop it later. In this case your control file will need to be recreated to de-link the datafile from database.
From 10g onwards you can ALTER TABLESPACE DROP DATAFILE... but in this case datafile should not contain any data in it. -
I want move indexes from one tablespace to other tablespace
i'd like to know how i get move the index from one tablespace to other tablespace.
Thank's
[]'s
Vitor - BrasilThank's for the answer, but i didn`t understand. May you explain better? I`m need to very much!! I want move the procedures from one tablesapce to other tablespace, because when i export the tables to one tablespace, the oracle export to other tablespace. I have to move the tables, but i dìdn`t get move the procedures!!
Thank's
[]'s
Vitor - Brasil -
Hi,
I managed a 9.2.0.1 database located on Solaris 9 and I receive an error message which scared me !! Could you help me?
"2 segments in SYSTEM tablespace unable to extend"
Thanks !
Davidhi dav,
Could you post the out put of this pl?
df-k /u02/oradata/MVXREEL
& run the given query and post the out put pl.
set pagesize 100
set linesize 150
select
f.tablespace_name,
a.total "TotAlloc_In_MB",
u.used "TotUsd_In_MB",
f.free "TotFree_In_MB",
round((u.used/a.total)*100) "% used" ,
round((f.free/a.total)*100) "% Free"
from
(select tablespace_name, sum(bytes/(1024*1024)) total from dba_data_files group by tablespace_name) a,
(select tablespace_name, round(sum(bytes/(1024*1024))) used from dba_extents group by tablespace_name) u,
(select tablespace_name, round(sum(bytes/(1024*1024))) free from dba_free_space group by tablespace_name) f
where a.tablespace_name = f.tablespace_name
and a.tablespace_name = u.tablespace_name
and a.tablespace_name='SYSTEM'
order by 6 desc;
cheers,
kamalesh jk -
How to move segments from one tablespace to another tablespace?
I have created new tablespace now i want to move the old tablespace segments to new one but how?
Please guide
Thanks,
Waheed.If it is Oracle 10g you might consider expdp and impdp and use remap_tablespace. After that you can purge the objects from the old tablespace.
Throught PL/SQL scripting also it is possible.
tables
declare
cursor cursor1 is select table_name from dba_tables where tablespace_name in ('USERDATA1');
begin
for cur1_rec in cursor1 loop
execute immediate 'alter table '||cur1_rec.table_name||' move tablespace userdata2';
end loop;
end;
indexes
declare
cursor cursor1 is select index_name from dba_indexes where tablespace_name in ('USERDATA1');
begin
for cur1_rec in cursor1 loop
begin
execute immediate 'alter index '||cur1_rec.index_name||' rebuild tablespace userdata2';
exception
when others then
null;
end;
end loop;
end;
/ -
Move tables to application tablespace
Hai All,
In my application many tables and indexes stay in system tablespace. Use query 'Alter table table_name move tablespace app_tbs' and 'Alter table index_name move tablespace indx_tbs'. we can move objects from system tablespace to application tablespace. Any other solution for this kind of activity.
Please help,
ShijuAlter table index_name move tablespace indx_tbsThis is not move but rebuild for index.
Nicolas.
Maybe you are looking for
-
Workspace background color : how to change it ?
Hello, Is there a way to change the color (a more dark grey) of the background color of the workspace ? I find the one used by PSE4 (and previous versions) too light. I would prefer a more dark grey, like the one used by Photoshop CS2 (and if this on
-
Hello guys, how are you? I'm developing an online meeting system with audio/video sharing, using Adobe Flex 4 and Flash Media Server 4. I'm using the RTMFP protocol to make the transmission of audio/video which increases considerably the performance.
-
Is it possible to select text from a website and copy it without getting all the HTML link coding too? For instance, I look up an address on google maps and want to copy the text of the address into a word doc or email and get all this HTML code that
-
Jittery animation in Chrome Browser
Hi, Has anyone had any issues with the Chrome browser where the animation is not smooth running? I have created this ecard (with sound) which works fine on all the other latest browsers except for Chrome. I have narrowed it down to the snow falling w
-
iOS7...incoming calls missing RED Decline button? Where did it go? All I get is Remind Me, Message....and Slide to Answer on the bottom.