How to flashback a tablespace
hi everyone,
i want to know flashback in detail,
is it possible to flashback a tablespace and a datafiles, if yes could you please explain me
thank you!
You could combine the two features flashback database and transport tablespace to in effect flashback a tablespace.
1) flashback database
2) make tablespace read only
3) export metainfo
4) copy datafile
5) recover database to the point before you did flashback database
6) drop tablespace
7) import tablespace again
But the other option would be to do TSPITR as mentioned by others already. Look here for an example:
http://uhesse.files.wordpress.com/2009/01/tspitr_ou_nl_2009041.pdf
Kind regards
Uwe Hesse
http://uhesse.wordpress.com
Similar Messages
-
How to deal with tablespaces in Oracle XE (10g)
Hi,
First want to say I'm not a DBA so my knowledge on how to work with tablespaces is very limited. I built an application in Apex 3.2.1 on Oracle XE 10g and today for the first time I received this error when trying to save information to the database:
ORA-01691: Unable to extend lob segment by .... for table space FLOW....
What is the best way to deal with this? For now, after doing some google searching, I set my tablespace to AUTOEXTEND (it had reached about 500MB which was its max size). Is this the correct way to deal with this situation? Or should I create a new tablespace? I've never changed any of the default settings/tablespaces that came with the Apex/Oracle XE installation.
Any advice would be greatly appreciated....
Thanks,
Francois
Edited by: HighTen76 on May 1, 2012 2:02 PMORA-01691: Unable to extend lob segment by .... for table space FLOW....
It seem related to tablespace is full and not able to extend more due to low hdd space or autoextend off or xe datasize limit(4g) reached!!!!
SELECT sum(BYTES/1024)/1024 AS SIZE_IN_MB FROM DBA_DATA_FILES;
SIZE_IN_MB must not be more then 4gb
If SIZE_IN_MB is less then 4g then check that Autoextend is off or on.
I hope this help
Regards
Hitgon
Edited by: hitgon on May 2, 2012 12:26 PM -
How to see the tablespace size
hi
how to get the tablespace size??
thxHello,
select SUM(bytes)/1024/1024 MB from dba_data_files
where tablespace_name = 'xxxxxx';
works fine.
I am trying to build a function for that:
select SUM(bytes)/1024/1024 MB
from dba_data_files
where tablespace_name=upper('&user')
However, I need to make some enhancements:
1. how to make comments in sql files?Refer to the REM statement in the sqlplus reference manual
2. a lot of outputs are generated:
SQL> @get_size
Enter value for user: tts1
old 3: where tablespace_name=upper('&user')
new 3: where tablespace_name=upper('tts1')
MB
2048
how to avoid that so that only the size is
displayed.
for example:
SQL> @get_size
Enter value for user: tts1
MB
2048
Refer to set verify off in the sqlplus reference manual.
>
3. how to let the function accept a parameter such
as:
SQL> @get_size tts1
Refer to the define command in the sqlplus reference manual.
>
4. how to include a usage (help) to that function
such as:
SQL> @get_size
usage: get_size <tablespace name>
Many thanksRefer to the prompt statement in the sqlplus reference manual.
Sybrand Bakker
Senior Oracle DBA -
How i can change tablespace of a table in oracle 8.04
Dear I want to move tablespace of a table in oracle 8.04 version but it is not working my statement is
ALTER TABLE ACCOUNTING_ENTRY MOVE TABLESPACE EDI_TSPACE;
and got the following error message:
ORA-14004: missing PARTITION keyword
how i can change tablespace of a tableHi,
It seems that the move tablespace feature is available on 8.1 or higher versions of Oracle. In your case you can try one of the foll....
Option 1:
Step 1:CREATE TABLE T1
TABLESPACE NEWTBS
AS(SELECT * FROM T);
Step 2: Rename or Drop the old table.
Step 3: Rename the new table to the old table name.
Option 2:
Step 1: Export the old table.
Step 2: Rename or Drop the old table.
Step 3: Create the table in the new tablespace. You may use the INDEXFILE from the imp command here.
Step 4: Import the old table and use IGNORE=Y
Reply back if you need assistance on syntax.
Regards. -
How to query the tablespace size increment speed?
Hello,
Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
so could you please give us a guide thanks!RLUO wrote:
Hello,
Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
tablespaces' growth trend -
How to monitor temp tablespace
I server in 11gR2 and 10gR2.
Is there a way to monitor its usage, like, who is using it, how much space a session is using, what are the objects crated, ie. temp tables.
Thanks.Hi
This might helpful
select TABLESPACE_NAME, BYTES_USED, BYTES_FREE from V$TEMP_SPACE_HEADER;Also checkout the below link.
http://blog.flimatech.com/2010/06/15/how-to-monitor-temp-tablespace-usage/
Cheers
Kanchana -
Hello,
We had a UNDO Tablespace of 22Gb but it is using just 2GB. How to shrink undo tablespace. we are using clustered 3 node production database 10.2.0.4
Is there is way that we can shrink UNDO Tablespace or do i need to create a UNDO tablespace and assign the undo tablespace to DB and drop the old UNDO?
How to ensure that transactions are done and free to drop the old UNDO?
Is it something we need to restart all the three nodes as each node has its own UNDO Tablespace.
Need Help on this issue.
would appreciate your quick response.
Thanksif i am in your place i will do the following:
<pre class="jive-pre">1-Query DBA_DATA_FILES to determine the name of the datafiles of the UNDO</pre>
2. Create a new UNDO tablespace.
<pre class="jive-pre">CREATE UNDO TABLESPACE undo_ts2 DATAFILE '/directory/undo_ts2_01.dbf' SIZE xxxM;</pre>
3. Modify the database parameter to use the new UNDO tablespace.
<pre class="jive-pre"> ALTER SYSTEM SET undo_tablespace=undo_ts2 SCOPE=BOTH; </pre>
4-The Drawback:
<pre class="jive-pre">New transactions will begin using the new undo tablespace. After some time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The downside to this approach is that for a short time period, your database will have two UNDO tablespaces</pre>
Regards
Mohamed -
How many datafile in tablespace
Hi,
I have migrate database 9i to 10g so some question is required?
how many datafile in tablespace ?
i hv following query is use
select file_name,tablespace_name from dba_data_file ?Dear Mohamed
Select name, ts#
from v$datafile;
this statment give you only the datafiles
and
select file_name, tablespace_name
from dba_data_files;
give you the tablespace name and datafiles
thank you
Mohamed Tawfik -
How to estimate undo tablespace size in 11g?
I found someone document said, use this sql to estimate undo tablespace:
select (UR*(UPS*DBS))+(DBS*24) as "bytes" from (select value as UR from v$parameter where name='undo_retention'),(select (sum(undoblks)/sum(((end_time-begin_time)*86400))) as UPS from v$undostat),(select value as DBS from v$parameter where name='db_block_size');
but in my 11g database, the "select value as UR from v$parameter where name='undo_retention'" is 0. so above sql is always get 196608(8192*24)
How to estimate undo tablespace size in 11g?
Thanks very much!for undo segments size you should turn it to be autoextend on as well undo management set to be AUTO
i.e
undo_managment='AUTO'
for retention see that link
Ora-01555, snapshot too old: rollback segment number 2 with name "_SYSSMU1
BTW as hemant stated leave it to be auto which is good approach but make sure enough space on disk has been
dedicated for undo segments are allowed to grow to the size they need to be based on the requested undo_retention.
Khurram -
How to identify temp tablespace user in the past
hi,
can anyone guide me on how to identify temp tablespace users and corresponding temp space amount they used in the past?
we have this situation where in we need to identify the top temp tablespace user last jan 1 around a specific time.
is this possible? do these get stored in one of the tables in the dictionary? any sql statement?
thanks.900666 wrote:
hi ckpt,
thats unfortunate..=(
anyways, any sql that can be used to capture current sessions with their used mb in temp tablespace? for future monitoring.
thansk.Here is example
SQL> SET LINESIZE 145
SQL> SET PAGESIZE 9999
SQL> SET VERIFY off
SQL>
SQL> COLUMN tablespace_name FORMAT a15 HEAD 'Tablespace Name'
SQL> COLUMN username FORMAT a15 HEAD 'Username'
SQL> COLUMN sid FORMAT 99999 HEAD 'SID'
SQL> COLUMN serial_id FORMAT 99999999 HEAD 'Serial#'
SQL> COLUMN contents FORMAT a9 HEAD 'Contents'
SQL> COLUMN extents FORMAT 999,999 HEAD 'Extents'
SQL> COLUMN blocks FORMAT 999,999 HEAD 'Blocks'
SQL> COLUMN bytes FORMAT 999,999,999 HEAD 'Bytes'
SQL> COLUMN segtype FORMAT a12 HEAD 'Segment Type'
SQL>
SQL> BREAK ON tablespace_name ON report
COMPUTE SUM OF extents ON report
SQL> SQL> COMPUTE SUM OF blocks ON report
SQL> COMPUTE SUM OF bytes ON report
SQL>
SQL>
SQL> SELECT
2 b.tablespace tablespace_name
3 , a.username username
4 , a.sid sid
5 , a.serial# serial_id
6 , b.contents contents
7 , b.segtype segtype
8 , b.extents extents
, b.blocks blocks
9 10 , (b.blocks * c.value) bytes
FROM
11 12 v$session a
13 , v$sort_usage b
14 , (select value from v$parameter
15 where name = 'db_block_size') c
16 WHERE
17 a.saddr = b.session_addr
18 /
Tablespace Name Username SID Serial# Contents Segment Type Extents Blocks Bytes
TEMP SYSTEM 1333 4725 TEMPORARY LOB_DATA 1 128 1,048,576
SYSTEM 1562 444 TEMPORARY SORT 89 11,392 93,323,264
SYSADM 1602 80 TEMPORARY LOB_DATA 1 128 1,048,576
SYSTEM 1613 18693 TEMPORARY SORT 89 11,392 93,323,264
sum 180 23,040 188,743,680
SQL> -
HT5244 How does Flashback Malware get into a Mac?
How does Flashback Malware get into a Mac?
The ‘Flashback Trojan’:
A version of an existing Trojan Horse posing as a legitimate Flash Player installer (named “Flashback.A” by a security firm) is designed to disable updates to the default Mac OS X anti-malware protection system, potentially leaving the system open to the manual installation of other malware without any system warnings. The most recent versions bypass any user action and automatically installs itself after an affected website is visited.
http://www.appleinsider.com/articles/11/10/19/fake_adobe_flash_malware_seeks_to_ disable_mac_os_x_anti_malware_protection.html
(Adobe is aware of malware posing as its Flash Player and warns users to ignore any updates that didn't originate on its own servers. "Do not download Flash Player from a site other than adobe.com," said David Lenoe, Adobe's product security program manager, in an entry on Adobe Product Security Incident Response Team's PSIRT blog. "This goes for any piece of software (Reader, Windows Media Player, QuickTime, etc). If you get a notice to update, it's not a bad idea to go directly to the site of the software vendor and download the update directly from the source. If the download is from an unfamiliar URL or an IP address, you should be suspicious.")
Flashback Trojan - Prevention of infection:
In order to prevent a potential infection with “Flashback” Trojans, Mac users should always obtain their copy of Adobe Flash Player directly from Adobe’s official website and to disable the "Open 'safe' files after downloading" option in Safari Preferences/General to avoid automatically running files downloaded from the Internet. Also, do not turn on Java in Safari Preferences/Security. Few websites use Java. Javascript is something entirely different and should be left active.
The Flashback Trojan does not affect PPC (non-Intel) Macs, nor has it been noted to affect users running Tiger OS 10.4.11 or Leopard OS 10.5.8.
Last, but by no means least, using Open DNS is the simplest way of preventing infection in the first place. Open DNS also protects against phishing attacks, re-directs, speeds up your internet connection, and works for all users of OS X from Tiger upwards:
http://blog.opendns.com/2012/04/09/worried-about-mac-malware-just-set-up-opendns /
How to get it:
https://store.opendns.com/get/home-free
Flashback Trojan - Detection and Removal
Users with Intel Macs running Snow Leopard OS 10.6 or Lion OS 10.7 should ensure that they have downloaded all the recent Java updates from Apple, which are designed to prevent infection and also remove any infection already present.
New Macs running Lion do not have either Flash Player nor Java installed. If you running Lion and have not already downloaded and installed Java, you should download the ‘Flashback malware removal tool’ from Apple: http://support.apple.com/kb/HT5246 (356KB) which includes the same code as the Java update that plugged a security hole which allowed the malware to automatically install itself without admin authorization.
You can also use this to check whether you have been infected (for Intel Macs only) and remove it if required:
http://www.macupdate.com/app/mac/42571/anti-flashback-trojan
Flashback Trojan - Detection, and how to remove (with caution) if you are running other browsers than Safari:
http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml -
How to define tablespaces in Oracle 10g and how put tables on tablespaces
Hello,
I'm having trouble to define the structure of tablespaces and how to distribute the tables/indexes/lobs on these tablespaces.
Do you know some rules on how to define this?
What I have until now:
1) Put table indexes in separate tablespace
2) Put lobs in separate tablespace and use storage clause when defining the lob column. Not sure how many tablespaces to use, I have tables with millions of lobs and tables with just one lob (with row containing the lob).
3) Please fill more rules here ...
Thank you, Alex.Long story: I received database and schema creation scripts defined in Oracle 9i. I want to redesign the tablespaces number/storage and also to change the distribution of tables into tablespaces.
As an example I will show how tablespaces are created now. There is one tablespace for indexes BLUE_AUTO_INDX and one for each EXTENT MANAGEMENT of:
- 64K for BLOB , name BLUE_K064_BLOB
- 64K for tables , name K064_NTAB
- 128K for tables, name BLUE_K128_NTAB
- 512K for CLOB , name BLUE_K512_CLOB
- 4M for BLOB , name BLUE_M004_BLOB
- 64M for CLOB , name BLUE_M064_CLOB
- 8M for tables , name BLUE_M008_NTAB
- 1M for tables , name BLUE_M001_NTAB
- 256M for tables, name BLUE_M256_NTAB
Definition of each tablespace is like:
CREATE TABLESPACE BLUE_AUTO_INDX DATAFILE 'BLUE_AUTO_INDX01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_K064_BLOB DATAFILE 'BLUE_K064_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_K064_NTAB DATAFILE 'BLUE_K064_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_K128_NTAB DATAFILE 'BLUE_K128_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_K512_CLOB DATAFILE 'BLUE_K512_CLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_M004_BLOB DATAFILE 'BLUE_M004_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_M064_CLOB DATAFILE 'BLUE_M064_CLOB01.DBF' SIZE 400M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_M008_NTAB DATAFILE 'BLUE_M008_NTAB01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 8M SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_M001_NTAB DATAFILE 'BLUE_M001_NTAB01.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO;
CREATE TABLESPACE BLUE_M256_NTAB DATAFILE 'BLUE_M256_NTAB01.DBF' SIZE 512M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256M SEGMENT SPACE MANAGEMENT AUTO;
Does this structure of tablespaces ok? I mean if the logic of one tablespace for different EXTENT SIZEs looks ok? -
How to recover undo tablespace in 9i
How can i recover undo tablespace 9i.Can any provide step by step recovery process
Doc ID 94114.1 on Metalink might be of interest to you
-
How to extend ECC6 tablespace? database is MSSQL
Hello all,
I intall ECC6 IDES, now I want to extend tablespace, but I didn't found command about brtools and sapdba, because my database is not oracle . how to do it? thank you.
OS: WIndows 2003
SAP release: ECC 6
database: Microsoft MSSQL 2005(SQL Server Management Studio)
SQL Server 2005
SQL Server 2008 R2
SQL Server 2008
SQL Server 2012
This topic describes how to increase the size of a database by using Object Explorer in SQL Server Management Studio. The database is expanded by either increasing the size of an existing data or log file or by adding a new file to the database.
To increase the size of a database
In Object Explorer, connect to an instance of the SQL Server 2005 Database Engine, and then expand that instance.
Expand Databases, right-click the database to increase, and then click Properties.
In Database Properties, select the Files page.
To increase the size of an existing file, increase the value in the Initial Size (MB) column for the file. You must increase the size of the database by at least 1 megabyte.
To increase the size of the database by adding a new file, click Add and then enter the values for the new file
Click OK.
-
How to add old tablespaces to newly recreated database
My database was in no archived log mode and system tablespace was corrupted and was requiring recovery for overwritten online redo file.
So I had recreated database.
Now how to include other old tablespace to newly recreated database.
Thanks & regards,yea, Nicolas is right...
but if you have some back up or export file, then you can restore it back...
for restoring back from dmp file, first run the import with show=y, create tablespaces from the logfile and then run the import with full=y ignore=y
Sidhu
http://amardeepsidhu.blogspot.com
Maybe you are looking for
-
Report for pending shipments, PGI and Picking
Hi All, We have few issues with the orders not being picked, if picked some are not being able to PGI and few are not going to the Shipments process. this is creating a backlog. I was wondering if we have any Report or transaction where i can check o
-
Unable to install Acrobat Patch 8.16 on Mac. What can I do?
Unable to install Acrobat Patch 8.16 on Mac. What can I do?
-
I log on to the same wesite on Mozilla and IE. On mozilla the left hand menu overlaps one over the other but the same does not occur with IE, I ask this as I prefer mozilla. Do I need to change any configuration setting. I have a Dell Studio Laptop w
-
Hello Everyone I am pretty new to flex, Mobile development and flash altogether. I originally created an app in flex as a normal adobe flex project 4.0. I want to export this to an android app and compile it into a .apk. I have tried to use adt base
-
Basic customs and import cess flowing in MIGO
Hello , At present basic customs and import cess are flowing in the MIGO document,. The requirement is not to display the basic customs and import cess to flow. Please let us know the config related to it thanks