Question about ALTER TABLESPACE add/drop datafile
Good afternoon,
As an exercise, I created a tablespace STORETABS and added a datafile to it using the command:
SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;This step succeeded. A new file was created in the root of e: as expected.
Following that command, I issued:
SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
Tablespace altered.The command succeeded. However, the file *'e:/storetabs3.dbf'* was not removed. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I get the impression that removing the O/S file itself is something that always needs to be done manually.
The question: Am I correct that there is no option to cause the "alter tablespace <tablespace> drop datafile <datafilename>" to delete the O/S file ? In other words, must the O/S file always be manually deleted as a separate step ?
Thank you for your help,
John.
I believe in windows directory paths used backslash and not forward slash.
You can argue why oracle does not give error, either while creating or while dropping ;)
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 Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> select tablespace_name, file_name from dba_data_files ;
TABLESPACE_NAME
FILE_NAME
USERS
/u01/app/oracle/oradata/orcl/users01.dbf
UNDOTBS1
/u01/app/oracle/oradata/orcl/undotbs01.dbf
SYSAUX
/u01/app/oracle/oradata/orcl/sysaux01.dbf
SYSTEM
/u01/app/oracle/oradata/orcl/system01.dbf
EXAMPLE
/u01/app/oracle/oradata/orcl/example01.dbf
SCOTT_TBS
/home/oracle/scott_f1.dat
6 rows selected.
SQL> !ls -l scott_f1.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
SQL> alter tablespace scott_tbs add datafile '/home/oracle/scott_f2.dat' size 10M ;
Tablespace altered.
SQL> !ls -l scott_*.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
-rw-r----- 1 oracle oinstall 10493952 Sep 11 21:18 scott_f2.dat
SQL> alter tablespace scott_tbs drop datafile '/home/oracle/scott_f2.dat' ;
Tablespace altered.
SQL> !ls -l scott*.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
Similar Messages
-
Alter tablespace add datafile taking too much time
Hi All,
DB Version :10.2.0.1
OS Version: Windows Server 2003 32 Bit
When i am trying to add datafile into tablespace it takes lot of time approx 8 hours.but earlier it take approx 40 to 60 mins
When i check Alert log file i got the message:
ORA-604 signalled during: alter tablespace crbt add datafile
I check there is sufficent space in Disk as i need to add Datafile of 30G.
Syntax i am using is
ALTER TABLESPACE TEST
ADD DATAFILE 'C:\TEST02.DBF' SIZE 30G
Can anyone tell me exactly the reason for the same
Thanks in advanceHi Aman,
The space is added sometime but most of the time i am getting this error
SQL> ALTER TABLESPACE IN_OCT2011
2 ADD DATAFILE 'E:\CAT\IN_OCT04.DBF' SIZE 30G REUSE;
ALTER TABLESPACE IN_OCT2011
ERROR at line 1:
ORA-19502: write error on file "E:\CAT\IN_OCT04.DBF", blockno 11008
(blocksize=8192)
ORA-27072: File I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process
has locked a portion of the file.
Kindly help over the same
Edited by: Vikas Kohli on Nov 5, 2011 8:38 PM -
How to alter tablespace add in pdb from cdb root
Hi Experts,
Is there a way to run the "alter tablespace xx add tempfile ..." command in root cdb while the tablespace xx belongs to a pdb. Is it possible to do it without login or change session to pdb? Thanks.Krishna-Oracle wrote:
You have to login into particular PDB using alter session set container command and then make changes.
You are confusing logging to PDB with setting PDB as current container. These are two completely different actions. Create common user:
SQL> connect /@sol12 as sysdba
Connected.
SQL> create user c##ommon identified by common container = all;
User created.
SQL> grant create session to c##ommon container = all;
Grant succeeded.
SQL> grant set container to c##ommon container = all;
Grant succeeded.
Create after login trigger for the common user in a PDB:
SQL> connect /@pdb1sol12 as sysdba
Connected.
SQL> create or replace
2 trigger c##ommon_logon_trigger
3 after logon
4 on c##ommon.schema
5 begin
6 raise_application_error(-20500,'You are not allowed logging to this PDB.');
7 end;
8 /
Trigger created.
SQL>
Now I will login as c##ommon to CDB and with set container to PDB:
SQL> connect c##ommon@sol12
Enter password: ******
Connected.
SQL> alter session set container = pdb1sol12;
Session altered.
SQL>
As you can see, AFTER LOGON trigger wasn't executed. And now I will try logging to PDB:
SQL> connect c##ommon@pdb1sol12
Enter password: ******
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-20500: You are not allowed logging to this PDB.
ORA-06512: at line 2
Warning: You are no longer connected to ORACLE.
SQL>
Now you see SET CONTAINER != LOGIN.
SY. -
Informations about 'alter tablespace ... coalesce'
Hi,
I'm quite new relatively to the DBA functions. I have an Oracle 8i database on a RedHat Linux server.
I've examined my tablespaces and I found that many of my tablespaces have the pctincrease=0. In this case the process SMON don't join the adjacent free extents so I have a lot of free extents but only few of them are coalesced.
I thought to coalesce them with the command 'alter tablespace nametablespace coalesce', but I don't know very much this command. I'd like to know more informations about it, above all if I can launch it when my users are working on the database or if it's better to stop the listener and to do a backup before to launch it (among the tablespace that I need to coalesce I have also the Temp tablespace).
In other words: is the alter tablespace coalesce an harmless command or I need to take some precutions ? And Where I can find more informations about this command ?
Thanks
MarcoYou can find more information about the command by reading the manual.
Coalescing tablespaces is a relatively harmless command. You can run it while users are on the system. They might experience a momentary slowdown, but probably not. All the command does is delete and update entries in an Oracle internal table (FET$ if anyone cares). Coalesce will do nothing if there are no adjacent blocks of free space to coalesce.
You do not want to coalesce the freespace in your temp tablespace. Oracle manages this internally, and it is more efficient to have a lot of fragments for temp. It saves a lot of recursive sql when a new extent is needed for a sort.
In the other tablespaces, if the blocks of free space are relatively large, then coalescing will not really gain anything. If your fragments are small, and your segments are frequently allocating new extents (which in itself is a problem), then you may gain a little performance by manually coalescing the tablespace. However, Oracle will coalesce free space if required to get enough space to allocate a new extent.
If you want to see if coalescing will do anything, you can use:
SELECT tablespace_name,file_id,block_id,block_id + blocks next_free
FROM dba_free_space
ORDER BY 1,2,3Then check if next_free in the previous row is the same as block_id in the current row.
TTFN
John -
Questions about the new add folder/add item api functions ...
I have a few questions about using the wwsbr_api.add_folder and wwsbr_api.add_item functions for 3.0.8.
1. How do I retrieve the parent_id for the current folder or if I am running a batch add folder?
2. How do I set a folder style other than the parent folder's?
Any help would be appreciated.
BethanyBethany,
This post is best suited to the Oracle9iAS Portal Content Areas forum.
Thanks -
Question about Alter table syntax
Hi all,
I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
ALTER TABLE SCHEMA.TABLE
ADD PARTITION &&1
VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
TABLESPACE LARGE_DATA94 COMPRESS;
I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY ('AUG12') I can run this query:
select
(to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
from dual;
With the output of 20120901. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!
Edited by: 962466 on Oct 1, 2012 8:42 AM
Grammar962466 wrote:
Hi all,
I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
ALTER TABLE SCHEMA.TABLE
ADD PARTITION &&1
VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
TABLESPACE LARGE_DATA94 COMPRESS;
I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY (AUG12) I can run this query:
select
(to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
from dual;
With the output of 20120801. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!I don't understand why you are taking a string, converting it to a date, then converting the date BACK TO a string ... then trying to convert that string to a number.
What is the data type of the partitioning key? It appears that it is a NUMBER, but actually represents a DATE. If so, that is a fundamentally flawed design. -
Question about Undo Tablespace?
Hello;
The size requirement of the undo tablespace is related to the number and size of transactions that occur on the database.But I dont need to query any of these transaction for a schema or table by using flashback so is there a way of disabling writing any transactions on a table or schema to undo tablespace ?
Edited by: Ecimen on 04.Mar.2013 03:50
Edited by: Ecimen on 04.Mar.2013 03:51Rob_J wrote:
Hi,
No, that's not what I meant. What I meant was that if you say your logging tables are creating a lot of UNDO it must mean that you are writing/updating/deleting a lot of information from them. I was just throwing out the thought that if this is the cause of the issue, can you reduce the amount of data you write to these tables? In other words, do you need all this logging data? It's a question for the business and/or designers of your application to answer.
RobHello Rob;
i got it now , and yes we need to logging all this data because its production database occuring many transactions always...
Edited by: Ecimen on 04.Mar.2013 06:28
Edited by: Ecimen on 04.Mar.2013 06:31 -
Another question about altering nav bar templates
I'm currently building a site using the "modern" template in iweb. So far I've been able to do a lot of customizations, which I love, but the nav bar is driving me CRAZY!
I've read a bunch of other topics and from that I've managed to create my own text box nav bar, but it's still not 100% what I'd like. Here's what I'm looking for:
I love the modern template except the rollover colour in the nav bar being red. I'd like the colour to be dark grey when rolled over just like it is when you're visiting the current page. I made my own text bar in that way but now when I'm on a specific page, that page heading in the nav bar doesn't stay highlighted in dark grey. Is that clear? I'm not familiar with web design and the language that corresponds so if there's anything I can do to clarify, please let me know. I need to know how I can get both: nav bar rolled over in dark grey AND the current page (page being viewed) in dark grey. If anyone has any information to help, I'd greatly appreciate it!
Thanks in advance,
SHi OT!
Thanks for the help. I've already done what you suggested but it unfortunately doesn't answer what I'm looking for.
In the modern template, when you're on a specific page, that page's header in the nav bar is dark grey whereas the other tabs in the nav bar remain light grey. I don't want the tabs the change after they've been clicked, rather, I want to keep the function of the template and simply change the rollover colour. Two questions:
1. Is there are way to make a text nav bar do the same thing as the template so when I'm viewing a specific page, the page's nav bar tab remains dark grey but goes back to light grey when I'm viewing a different page?
2. Thank you for the link with the HTML snippet. I had found that link last week but couldn't find it again. I don't know how to alter HTML so while this seems like a great option, I'm wondering how it works. If I put an HTML snippet in the header, is it viewable when the website is live? Is there a way to view the source code of a page?
I apologize if these questions seem rudimentary....I'm quite new to all of this!!!
Thanks for all your help!!!
S -
Question about ALTER SYSTEM ARCHIVE LOG START
Good morning,
I'm trying (unsuccessfully) to get my database to be in archive log mode.
These are the steps I followed:
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 377487824 bytes
Database Buffers 150994944 bytes
Redo Buffers 5804032 bytes
Database mounted.
SQL> select log_mode from v$database;
LOG_MODE
ARCHIVELOG
SQL> show parameter log_archive_start;
NAME TYPE VALUE
log_archive_start boolean FALSE
SQL> alter system archive log start;
System altered.
SQL> show parameter log_archive_start;
NAME TYPE VALUE
log_archive_start boolean FALSE
SQL>I've gone thru that process twice but, I don't seem to be able to get the ARCH process to start. (newbie mistake I'm sure...)
Thank you for your help (again!),
John.The parameter log_archive_start is no more needed John (as suggested already) and the best way to check the archive options is through the archive log list command.
[oracle@edhdr2p0-orcl oui]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 10 10:51:57 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 11
Current log sequence 13
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 418484224 bytes
Fixed Size 1336932 bytes
Variable Size 318769564 bytes
Database Buffers 92274688 bytes
Redo Buffers 6103040 bytes
Database mounted.
SQL> select process,status from V$archive_processes;
PROCESS STATUS
0 STOPPED
1 STOPPED
2 STOPPED
3 STOPPED
4 STOPPED
5 STOPPED
6 STOPPED
7 STOPPED
8 STOPPED
9 STOPPED
10 STOPPED
PROCESS STATUS
11 STOPPED
12 STOPPED
13 STOPPED
14 STOPPED
15 STOPPED
16 STOPPED
17 STOPPED
18 STOPPED
19 STOPPED
20 STOPPED
21 STOPPED
PROCESS STATUS
22 STOPPED
23 STOPPED
24 STOPPED
25 STOPPED
26 STOPPED
27 STOPPED
28 STOPPED
29 STOPPED
30 rows selected.
SQL>
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
archive log list;
Database altered.
SQL> Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 11
Next log sequence to archive 13
Current log sequence 13
SQL>
SQL> select * from V$archive_processes where status <> 'STOPPED';
PROCESS STATUS LOG_SEQUENCE STAT
0 ACTIVE 0 IDLE
1 ACTIVE 0 IDLE
2 ACTIVE 0 IDLE
3 ACTIVE 0 IDLEHTH
Aman.... -
Question about altering graphic frames.
Say I have an image thats 11x12 inside a frame of 4x3. If I modify the size of the frame it will show a ghosted back preview of the entire 11x12 image. I need to know if there is a way to turn this feature off.
Thanks in advance.Try setting live screen drawing to never.
Bob -
Dynamic alter tablespace statement to add datafiles
Hi Gurus,
I need a PL/SQL stored procedure which will accept a datafile name as parameter and dynamically create and execute "alter tablespace" command to add this passed datafile dynamically.
Thanks
Amitava.See this demo : 11.2.0.1 Windows
Before running this demo, I logged into SYS account and said :
grant create tablespace to scott;
grant select on dba_tablespaces to scott;
grant select on dba_data_files to scott;
grant alter tablespace to scott;
even scott user is having DBA role. Then I login as scott user and :
set serveroutput on;
create or replace procedure create_tbs(tbs_name in varchar2, filename in varchar2) as
rt dba_tablespaces%rowtype;
str_tbs varchar2(500);
v_tbs varchar2(100);
begin
str_tbs := 'create tablespace ' || tbs_name || ' datafile '''||filename|| ''' size 1m' ;
dbms_output.put_line(str_tbs);
select * into rt from dba_tablespaces where tablespace_name=upper(tbs_name);
dbms_output.put_line('tablespace exists');
exception
when no_data_found then
execute immediate str_tbs;
dbms_output.put_line('tablespace was created');
end;
select tablespace_name from dba_tablespaces;
TABLESPACE_NAME
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
EXAMPLE
PERFSTAT
7 rows selected.
SQL> exec create_tbs('TESTTBS','c:\data\test.dbf');
create tablespace TESTTBS datafile 'c:\data\test.dbf' size 1m
tablespace was created
PL/SQL procedure successfully completed.
SQL> exec create_tbs('SYSAUX','c:\data\test.dbf');
create tablespace SYSAUX datafile 'c:\data\test.dbf' size 1m
tablespace exists
PL/SQL procedure successfully completed.
SQL> drop tablespace testtbs including contents and datafiles;
Tablespace dropped.
SQL>Now I am going to create add datafile procedure, which is your question :
column file_name for a50;
column tablespace_name for a20;
select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
6 rows selected.
create or replace procedure alter_tbs(tbs_name in varchar2, filename in varchar2) as
rt dba_data_files%rowtype;
str_tbs varchar2(500);
v_tbs varchar2(100);
begin
str_tbs := 'alter tablespace ' || tbs_name || ' add datafile '''||filename|| ''' size 10m' ;
dbms_output.put_line(str_tbs);
select * into rt from dba_data_files where tablespace_name=upper(tbs_name) and file_name=upper(filename);
dbms_output.put_line('Datafile already exists.');
exception
when no_data_found then
execute immediate str_tbs;
dbms_output.put_line('Datafile added.');
end;
SQL> exec alter_tbs('users','E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF');
alter tablespace users add datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF' size 10m
Datafile added.
PL/SQL procedure successfully completed.
SQL> column file_name for a50;
SQL> column tablespace_name for a20;
SQL> select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF USERS
7 rows selected.
SQL> alter tablespace users drop datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF';
Tablespace altered.
SQL> select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
6 rows selected.
SQL>Similar thread : Create a procedure to dynamically add a tablespace
Regards
Girish Sharma -
I'm new to oracle.
After I extended a tablespace I understood that it was too large.
I've been reading about how to drop a tablespace, but I don't want to drop the entire tablespace. I just want to drop the last datafile of this tablespace.
I know how to drop tablespaces in sapdba and brtools, but I don't know how I can drop one specific datafile (number 29) of the tablespace PSAPBTABD?
Please Help med.
Best regards
Harald VHello Harald,
see please this thread:
Re: How to drop data file?
also the section 43. <i>How can I delete a data file that was created by mistake</i>
in the SAP Note<i><b> 592393 - FAQ: Oracle</b></i>
if you have Oracle 9i databases, it is not easy to drop a datafile, but in Oracle 10g
you can drop a datafile like that:
<b><i>ALTER TABLESPACE</i></b> <<u><i>Tablespace Name</i></u>> <b><i>DROP DATAFILE</i></b> '<<u>PATH und NAME of Datafile</u>>';
for example, you have a tablespace called PSAPC11 and you want to drop a datafile called dat.data15 of this tablespace, you can drop it like that:
e.g. <b><i>alter tablespace</i></b> <u>PSAPC11</u> <b><i>drop datafile</i></b> <u>'/oracle/C11/psapc11/dat.data15'</u>
Best regards
Baran -
Command to add multiple datafiles in multiple tablespace in one time.
Send me command to
command to add multiple datafiles in multiple tablespace in one time.Just list the files separated by a comma.
SQL> alter tablespace example
2 add datafile 'e:\oradata\scratch\example02.dbf' size 100m,
3 'e:\oradata\scratch\example02.dbf' size 100m;
Tablespace altered.
SQL>
You will have to use more then one command to add datafiles to multiple tablespaces. -
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. -
Drop datafile from a offline tablespace
We are running oracle 9.2 on windows.
Out of the 3 datafiles in a non-system tablespace A, one datafile A-DF1 was accidently droped from the file system by our DBA.
The other two datafiles were brought online by using the ALTER DATABASE RECOVER command by bringning the database in mount phase.
Now we want to remove that datafile A-DF1 from the tablespace and bring that tablespace online.
The database is not in archive mode and no cold backup was present.
The solution that we want to try is:
1-drop the tablespace A without dropping the datafiles
2-create a new tablespace and reuse those datafiles
3-assign this new tablespace to the affected user
Would this work? Do you have any other safe solution for this problem?
thanks
ImranHi..
Your solution is a wrong solution.
1. I guess, that the tablespace A won't be a empty tablespace.As, the objects are present in the tablespace you can't drop the tablespace without dropping its contents.You will have to use *DROP TABLESPACE <tbs_name> INCLUDING CONTENTS; -- This will drop all the contents.
2. Do, you have a export backup, or any kind of backup.As the database is in no archivelog mode, you won't be able to do complete recovery.
3. Take the datafile A-DF1 OFFLINE and keep the tablespace online. -- alter database datafile 'datafile_name' offline;
If you don't have any kind of backup, the data is LOST.
Anand
Maybe you are looking for
-
Hello All, Is possible to install the Oracle 9i in Solaris 8.0 to Intel? T+
-
Logic 7.1.x and Korg software M1
I used Korg softsyn M1 as one of AU plug-in in Logic pro 7.1.1 I found the patch (sound instrument) and other parameters could not be changed (or freezed) when the Korg M1 is in multi-channel mode (8 channels). Any ideas? Howard
-
How to save 4 artboards as 1 JPG image in Adobe Illustrator?
I am doing an online class for fundamentals of design. I had to create 4 different designs, so I did this by doing them on 4 different artboards. I need to save my work for "web and devices..." as a JPG image in Adobe Illustrator (this i can do). But
-
When i try to export a video in FCPX 10.0.3 i get this error message
When I try to export a edited video in FCPX I get this error message.... The operation couldn't be completed. (com.apple.Compressor.CompressorKit.ErrorDomain error -1.) Any one know how i can export please? What and why am I getting this message.
-
Anyone FINALLY see an improvement in Airport reception with Mac OSX 10.5.7
Well as you know, it ain't no secret that airport is krap when it comes to MBP's and wireless. Anyone FINALLY see an improvement with 10.5.7? I just updated and besides the revolving blue screen of death (yes, the loop that's running rampid here http