Accidentally dropped a Datafile
Hi friends
I run oracle 11.2.0.3.0 on windows machine
I have accidentally dropped a datafile on develop DB without media recovery active, so that, I cant just turn the file offline as shown below:
SQL> ALTER DATABASE DATAFILE 88 OFFLINE;
ALTER DATABASE DATAFILE 88 OFFLINE
ERROR at line 1:
ORA-01145: offline immediate disallowed unless media recovery enabled
What Can I do to bypass this datafile or even the tablespace that its not so important and could be lost?
I tryed remove the tablespace without success:
SQL> DROP TABLESPACE V_FISCO_INDX;
DROP TABLESPACE V_FISCO_INDX
ERROR at line 1:
ORA-01109: database not open
the status is mounted
**** Can I turn on the media recovery and place the datafile offline?
or I'll have to re-create the control file?
If so, how?
Thanks a lot friends
Hi friends
It worked now.
SQL> alter database archivelog;
Database altered.
SQL> ALTER DATABASE DATAFILE 88 OFFLINE;
Database altered.
SQL> alter database open;
Database altered.
SQL> SELECT DISTINCT(OWNER) FROM DBA_TABLES WHERE TABLESPACE_NAME='V_F';
no rows selected
SQL> DROP TABLESPACE V_F including contents and datafiles;
Tablespace dropped.
SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP MOUNT
ORACLE instance started.
Total System Global Area 6396977152 bytes
Fixed Size 2265120 bytes
Variable Size 3841986528 bytes
Database Buffers 2533359616 bytes
Redo Buffers 19365888 bytes
Database mounted.
SQL>
SQL>
SQL> ALTER DATABASE NOARCHIVELOG;
Database altered.
SQL> ALTER DATABASE OPEN
2 ;
Database altered.
tks a lot.
Similar Messages
-
I accidentally dropped my friend's macbook air that was in a book bag. The keyboard is working because I can see the light but the screen is black and it won't turn off. How should I fix this? Please Help ME!!
I tried to turn it off and it didn't work... and I held on to the shift key too and it still doesn't work..
Please help me..Accidental damage is not covered under Apple warranty. And it seems there is much accidental damage. Only a Genius Bar tech looking at it can tell how much it will cost to repair.
Cost to repair will be high, I suspect (though Genius Bar will confirm/deny.
There is no gentle way to say this sir/ma'am ... someone will need to pay for your friend's MBA repairs. -
My iPod touch is being unresponsive. I accidentally dropped it screen down and now when I go to slide to unlock it, it won't work. I've tried numerous times at resetting it, holding the home and sleep/wake button until it resets, with no luck. The Wi-Fi isn't even connecting. And the notification pull down screen and the pull up screen isn't present either. Would really like to know what is wrong with it. Thanks.
Try the following but you likely have a hardware problem:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I accidentally dropped by old ipod in the garage and drove over it. So I bought an ipod nano 7th gen. to replace it. Can I transfer the itunes from my old ipod to my new one? I only have about 30.
AAll of your iTunes purchases can be re-downloaded again. Log into iTunes Store, select the Purchases tab for Apps, Music, etc.
if you've been syncing your old iPod with iTunes, you can restore everything to your new iPod from the old backup. -
I accidentally dropped my iPhone 5s in water. .
I accidentally dropped my iphone 5s in water....
but i was not able to put it in rice as soon as it happened. it took me 2 hours.. it is currently in rice and i am hoping it'll be fine.... I switched it off as soon as it happened.
Is there something else I can do? Please Help...thank u for your help...but do i fully submerge it? put it face down? or leave it standing?
-
Accidentally dropped 600 songs into one album!!
I have accidentally dropped 600 songs - all from different albums - into one album. The only remaining meta data for each song left is the name. Is there a program or way I can get the songs to be arranged at least roughly into there previous album folders? Or is the only solution to go through each song individuelly and change the meta data like album name/artist etc?
Tks for any suggestions!In iTunes an "album" is any collection of tracks with the same Album title and the same Album Artist, or Artist if Album Artist is blank, or for which Part of a compilation is true. This can be further complicated by inappropriate values in the various sort fields. See Grouping tracks into albums for more.
tt2 -
How to drop the datafile in a tablespace
hi,
I need to drop the datafile in a tablespace.How to drop the datafile in the tablespace.If iam able to drop the datafile and is it possible to create the datafiles with the same name.could u pls help me out..
Thanks in advance,
R.Ratheeshsql > alter database <datafile> offline drop ;
sql > alter database open ;What if the datafile have the segments in it, I believe users will not be able to access them. And system will put the datafile to Recovry mode not drop it.
Dropping a datafle is possible only in 10G. In 9i you can reduce the size of file below the size of your min extents so that the space wont be allocated from that datafile or you may need to recreate a new tablespace copy all the segments from old tablespace and drop old one.
Cheers -
Portal30_sso accidentally dropped
Hello ssoers,
I have a big trouble. I have accidentally dropped the portal30_sso. I tried to import this user from my last backup but i am getting the following errors:
Connected to: Oracle8i Release 8.1.7.0.0 - Production
JServer Release 8.1.7.0.0 - Production
Export file created by EXPORT:V08.01.07 via conventional path
import done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set
. importing PORTAL30_SSO's objects into PORTAL30_SSO
. . importing table "CREATE$JAVA$LOB$TABLE" 0 rows imported
. . importing table "JAVA$CLASS$MD5$TABLE" 2 rows imported
. . importing table "WWCTX_COOKIE_INFO$" 1 rows imported
. . importing table "WWCTX_SSO_SESSION$" 143 rows imported
. . importing table "WWC_VERSION$" 1 rows imported
IMP-00017: following statement failed with ORACLE error 439:
"BEGIN DBMS_RLS.ADD_POLICY('PORTAL30_SSO', 'WWC_VERSION$','WEBDB_VPD_POLIC"
"Y','PORTAL30_SSO','WEBDB_VPD_SEC','SELECT,INSERT,UPDATE,DELETE',TRUE,TRUE);"
" END;"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Fine-grained access control
ORA-06512: at "SYS.DBMS_RLS", line 0
ORA-06512: at line 1
. . importing table "WWDOC_DOCUMENT$" 0 rows imported
IMP-00017: following statement failed with ORACLE error 439:
I do not know how to procede. Please help me out.
Thanks
Hardy.Hi Hardy,
Follow this steps:
1. First check wether portal30_sso schema still exist or not. If yes and if it does not have any objects then simply drop that user explicitly. ie drop user portal30_sso
2. Then this step depends on your version of Oracle 9iAS. In the previous version, for the portal and login server installation 2 seperate options were available in the 9iAS Portal Configuration assistance. But in the latest version ie 1.0.2.2, it has single option to install both portal and login server schema. So you can't use this to install just your login server schema. Instead you can install the login server using a script available in portal30 directory. So just check with your configuration assistance and see wether it provides seperate options to install portal and login server. If yes then reinstall the login server or else go to next step.
3. Here is the step to install only the login server schema using script files. The name of the script is linstall.cmd. Its located in 9iAS_Home/portal30/admin/plsql/ directory
Example: linstall -o portal30_sso -i portal30_sso_ps -s http://webdbsvr.us.oracle.com:3000/pls/portal30_sso/ -r 12345 -p change_on_install -u users -t temp -d users -l users -c orcl
For more information you can open that cmd file in a text editor and view all the parameters.
4. Once you install login server, then you can try Portal export/import to get your data back.
5. At last check wether you login server has the correct configuration information or else run the ssodatan.cmd script again with proper parameters.
This are just my suggestions. You can try this and lets hope that it works fine for you.
Cheers,
Pranav -
Recover from dropped SYSAUX datafile
Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups, but I want to drop the tablespaces (not SYSAUX) and in trying to do so, I'm getting an error about the SYSAUX tablespace for some reason. How can I rebuild or recover from the SYSAUX issue, since I cannot drop the SYSAUX tablespace, as it seems to be preventing me from dropping any of the other tablespaces that have missing datafiles as well. I really just need to recreate the tablespaces, but get the below error when I try to drop the schemas (with cascade) or the tablespaces (including contents).
SQL> drop tablespace DATA001 including contents;
drop tablespace DATA001 including contents
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01111: name for data file 3 is unknown - rename to correct file
ORA-01110: data file 3: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00003'
ORA-06512: at line 19
Any help to get past the first issue of dropping the non-SYSTEM tablespaces would be great, and any follow-up on how to rebuild/recreate/recover from the dropped SYSAUX datafiles would be appreciated as well.
DB is 10gR2 on Windows.user4257171 wrote:
Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups,
> DB is 10gR2 on Windows.
Without backups you are not going to be able recover the dropped data files. Given that one of the tablespaces was the required SYSAUX tablespace you are most likely looking at a rebuild instead of a restore. -
Drop a datafile that is offline and not on the OS
I am running a 2 node rac on ASM . 10gR2 on HP UX.
By mistake 1 datafile has been deleted on the OS , and that datafile is marked as offline in the dba_data_files.
How can I drop the datafile from the database.
since when I query the dba_data_files the datafile 10 ( which was deleted on OS ) , shows its still present and online_status is offline.
The datafile is not required and also there is no backup for the datafile.
ThanksHi,
ALTER DATABASE DATAFILE '<full file spec>' OFFLINE DROP;
example: just give '+dg1/../../..' if it not exists also give the same
Kind Regards,
Rakesh Jayappa -
ORA-03264: cannot drop offline datafile of locally managed tablespace
Hi list
A datafile was acidentally created on filesystem in one node of two nodes RAC.
After that the filesystem on which the datafile was created was out of space because of automatic control file backup and sysadmin move this datafile to another device. And before this action RMAN backup stopped work.
Now we replace the datafile to the original location, but it stay offline and recover status, and we cant bring them online because the customer dont have necessary archive logs to recover this datafile. RMAN backup is now working. But now we need to create a DataGuard on a third server and want to drop this datafile.
This datafile dont have any data segment and stay in most critical tablespace of the customer application which have more datafiles. This datafile in question isnt the first datafile of the tablespace.
SQL> select file#, status from v$datafile where name='/oracle/product/db/ars/dbs/arsystem.old';
FILE# STATUS
21 RECOVER
SQL> select file#, status from v$datafile_header where name='/oracle/product/db/ars/dbs/arsystem.old';
FILE# STATUS
21 OFFLINE
How can I drop this datafile?
Thanks
CristianoReview this metalink note, what to do:
How to 'DROP' a Datafile from a Tablespace
Doc ID:111316.1
If you cannot recover the datafile, you have to export the 'rest' of the tablespace (after statement 'alter database datafile '/oracle/product/db/ars/dbs/arsystem.old' offline drop;' was successfully issued). Afterwards drop the tablespace,recreate it and import the data).
Werner -
Oracle Database version - 10.2.0.3
I have a tablespace with 2 datafiles. One of the datafile is offline since couple of months. Now I am trying to drop the offline datafile but its not possible to drop that datafile.
As its production environment I can not take the tablespace in offline mode.
Can anyone please suggest suitable solution to drop the datafile?
Regards,
SandeepSQL> alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf';
alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf'
ERROR at line 1:
ORA-03264: cannot drop offline datafile of locally managed tablespace
SQL> -
How to drop the datafile?
Hello Everybody
is it possible to drop the datafile? i have run the query ALTER DATABASE DATAFILE 'c:\oracle\oracle_db\m300\user\user01.dbf' offline drop. After i checked with DBA_DATA_FILES its there.Can any one help in this regards
Regards
HameedPlease see this link:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#i1006556
Restrictions for Dropping Datafiles
The following are restrictions for dropping datafiles and tempfiles:
The database must be open.
If a datafile is not empty, it cannot be dropped.
If you must remove a datafile that is not empty and that cannot be made empty by dropping schema objects, you must drop the tablespace that contains the datafile.
You cannot drop the first or only datafile in a tablespace.
This means that DROP DATAFILE cannot be used with a bigfile tablespace.
You cannot drop datafiles in a read-only tablespace.
You cannot drop datafiles in the SYSTEM tablespace.
If a datafile in a locally managed tablespace is offline, it cannot be dropped.
Regards -
Nokia E72 was accidentally dropped :(
Guys i accidentally dropped my phone out of my hands
and when i picked the phone there was a message about memory card (i can't remember)
i pressed ok put it seems that home screen wallpaper and themes and every thing on memory card disappeared.!!!!!
i restarted the phone and nothing happened, it still with the original home screen setting (the golden business theme).
i feel terrible so i removed m card and the reinserted it . and i heard a beep but my theme wasn't set even my wallpaper and when i switched modes i found the personal theme was unaffected.
did this drop made something(damaged) to the phone, do i have to go to nokia care.?
wiered as i dropped a lot of phones b4 and nothing happened.
Nokia E72-1 Black
firmware : 053.001
of 26 of nov 2010
Solved!
Go to Solution.well thank u all guys
and 4 sure i 'll try to be more carefull as i do like my phone and i'm alittle worried about my Baby E72 and it was an accident, i didn't intend to drop it. but it happened
thanks again
p.s the memory card was already in the slot and didn't came out and i didn't touch it
first i restarted the device but nothing happened and then i removed the m.card and then reinserted it again untill i heard the beep and then i began to reaasign the theme and wallpaper and i guess it's working fine thank god.
Nokia E72-1 Black
firmware : 053.001
of 26 of nov 2010 -
Dropping a Datafile and Deleting its References
Using sqlplus how do I delete datafiles and any references to them?
At the moment I start the database in mount mode and use:
ALTER DATABASE DATAFILE 'O:\BCS\test.ora' OFFLINE DROP;
Which drops the datafile, but when I try to open the database it fails because it is still referencing the datafile.
How do I delete this reference?
Any thoughts or suggestions are greatly appreciated.
Regards
TobyI usually use the following sql to see what is in a tablespace before I drop it with
"drop tablespace users including contents and datafiles;"
column meg format 999999999
column tablespace_name format a20
set wrap off
set lines 120
set heading on
set pages 50
select round(sum(a.bytes)/1024/1024) meg,
count(*) extents,a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
from dba_extents a
where a.tablespace_name=upper('&1')
group by a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
order by round(sum(a.bytes)/1024/1024)
I also map the contents of datafiles with the following you can get the file_id from v$datafile or dba_data_files:
column owner format a30
column object format a30
set lines 120
set wrap off
set trunc off
set pages 50
set feedback on
column file_id format 999
select /*+ Rule */ 'free space' owner /*"owner" of free space*/
, ' ' object /*blank object name*/
, file_id /*file id for the extent header*/
, block_id /*block id for the extent header*/
, blocks /*length of the extent, in blocks*/
from dba_free_space
where file_id=&1
union
select /*+ Rule */ substr(owner,1,20)||' '||substr(segment_type,1,9) /*owner name (first 20 chars)*/
, substr(segment_name,1,32)||'.'||partition_name /*segment name*/
, file_id /*file id for the extent header*/
, block_id /*block id for the extent header*/
, blocks /*length of the extent, in blocks*/
from dba_extents
where file_id=&1
order by 3,4
And datafiles can be dropped in 10g if they are empty:
alter tablespace users drop datafile '/oracle/oradata/users01.dbf';
Good luck
Maybe you are looking for
-
I recently got a brand new 27 inch Imac, and put CS4 on it. Every program in the suite and even Lightroom work great, EXCEPT illustrator. The load screen some on, and when it gets to initializing plug ins "PDF suite" it ALWAYS crashes. I've created n
-
I have been using the iPad for email for a year. WIFI connection cannot be established for some reason, I am stuck on 3G. I am sitting next to the WIFI router. Why can't I send email using my only email address hplar45ATcomcastDOTnet? Why can't I g
-
Upgrade CUCM 9.1 (BE6K) to CUCM 10.5
Hi All, We are facing the process to update CUCM and I&M on a BE6K platform from 9.1 version to the latest one (CUCM 10.5), The UCSS is still valid. Could someone put us on the right direction? Is Expressway Core and Edge already included if my CUCM
-
When I share a garageband file to itunes the volume is way too soft.
I don't know what I did. Suddenly everything I export to iTunes comes out way too soft compared to files I have exported before. My master volume seems to be set right, it plays loud enough in GB, my export settings are set to Auto Normalize, compres
-
Phase One color cast in Bridge
Hi all: I know there are a lot of photographers in this forum, so I'm hoping one you can help/enlighten me. We just received IIQ images from a photography, shot on a Phase One P45. When previewing in Bridge CS5, I'm seeing a strong blue cast over the