Table Backup
Hi,
I want to take the backup of a table through query.
i tried
create table as select * from org_table;
but above query does not copy the constraints and indexes from the original table.Can some one help how to copy the same table as it is from the original except manually doing it.
Below is the structure of the original table
-- Create table
create table CITI_USER_DATA_CUSTOMIZE
UNIQUE_ID NUMBER(20) not null,
NAME VARCHAR2(20) not null,
VALUE CLOB
tablespace TS_CITI
pctfree 10
initrans 1
maxtrans 255
storage
initial 128K
minextents 1
maxextents unlimited
-- Create/Recreate primary, unique and foreign key constraints
alter table CITI_USER_DATA_CUSTOMIZE
add constraint CITI_PK_DATA_CUSTOMIZE primary key (UNIQUE_ID,NAME)
using index
tablespace TS_CITI_IDX
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
alter table CITI_USER_DATA_CUSTOMIZE
add constraint CITI_FK_USE_BAS__US_DA_CU foreign key (UNIQUE_ID)
references CITI_USER_BASE (UNIQUE_ID)
deferrable;
-- Grant/Revoke object privileges
grant select, insert, update, delete on CITI_USER_DATA_CUSTOMIZE to CITI_USER_APTHGCB_OBJROLE;
grant select, insert, update, delete on CITI_USER_DATA_CUSTOMIZE to CITI_USER_OBJROLE;
grant select on CITI_USER_DATA_CUSTOMIZE to JFPQRY_OBJROLE;
grant select, insert, update, delete on CITI_USER_DATA_CUSTOMIZE to JFP_USER;
grant select, insert, update, delete on CITI_USER_DATA_CUSTOMIZE to JFP_USER_APTHGCB;
You can try to :
1. use DBMS_METADATA.GET_DDL to retrieve constraints and indexes from source table (see an example for constraints in Re: Definition of a CHECK constraint
2. process DBMS_METADATA.GET_DDL output to replace some names such as index names for the target table.
Similar Messages
-
Table Backup and Best Practice
Hi Guys,
We have 2 tables, master and child with millions of records in it.These tables gets populated from flat files that we receive from external systems.The major operation on this table are insert/delete(update). The way we do update is, if the record from flat file already exist in table we delete the matching record from master table & child table and re-insert the data from flat files.
Business has decided to delete (archive) old and inactive data from these 2 tables. This process is run every year. I want to take a backup of this table by creating a similar table in database and start the delete process.
What would be the best approach to take backup of table,because we run the archive process every year. Archive process here refers to physically deleting a record from a table.
Any help is greatly appreciated.922855 wrote:
Hi Guys,
We have 2 tables, master and child with millions of records in it.These tables gets populated from flat files that we receive from external systems.The major operation on this table are insert/delete(update). The way we do update is, if the record from flat file already exist in table we delete the matching record from master table & child table and re-insert the data from flat files.
Business has decided to delete (archive) old and inactive data from these 2 tables. This process is run every year. I want to take a backup of this table by creating a similar table in database and start the delete process.
What would be the best approach to take backup of table,because we run the archive process every year. Archive process here refers to physically deleting a record from a table.
Any help is greatly appreciated.expdp -
Single table Backup FND_STATS_HIST in Oracle11i
Hi
i need to purge FND_STATS_HIST table before purging i need to take backup of FND_STATS_HIST table .
what is best practice for backup of single table FND_STATS_HIST ?
Thanks
With Regards
A-ZHi;
i need to purge FND_STATS_HIST table before purging i need to take backup of FND_STATS_HIST table .
what is best practice for backup of single table FND_STATS_HIST ?You can take export if size huge or you can try below
create table FND_STATS_HIST_bckp as (select * FND_STATS_HIST)
Regard
Helios -
Hi
How to take backup of SAP table on oracle 11.2 and db2 9.7 env
Thanks a tonHi Daniel,
You can you can export the content of the table using export (SQL) commands at DB level.
Please have a look at below links for more details.
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.admin.dm.doc%2Fdoc%2Ft0004554.html
http://www.oracle.com/technetwork/database/enterprise-edition/index-093639.html
Hope it helps..
Thanks,
Siva Kumar -
Export without taking a specific table backup
How can I take logical backup of my database without taking backup of one particular table as it some . I have to give it to client and he will import it at some other location
Oracle Version
Go for expdp utility with Exclude option. -
Hi friends,
Can we take backup of one table into hard disk and can we restore it into database.If possible how ?.
Thanks in Advnace
-SriniHi,
use export import utilities to put one table into the hard disk and restore it back.
regards
gaurav -
Table backup - develop utility in R3
Hi I would like to write a utility tools to back up an entire table, what sort of option do i have in R3?
Hi,
One option to backup would be to use function module GUI_DOWNLOAD so that you can fetch all data into internal table and then pass to this function module to download into excel sheet.
Hope this helps.
Regards,
Mansi. -
Taking USOBX tables backup before Su25 update
Hi All,
Can anyone help me out how to take backup of tables in mycase USOBX * TABLES before updating through SU25.>
Auke Visser wrote:
> You should not upload these tables. the download should only be used as comparison. any mistakes you find will have to be manually reapplied via SU24, and i doubt there will be much to reapply.
In the majority of situations I agree. In the unlikely event of it getting hosed then it would be an option, but it would have to be completely wrecked to even consider it. D/L the tables "just in case" is a reasonable step to take when doing stuff like this & it keeps your options open. -
Rule set/mitigation control tables backups
I am working in GRC AC 5.3 with old SPs. How can I take backup of existing rule set and mitigation controls so that I can compare those after GRC AC SP upgrade. Please guide me in detail.
You can download the ruleset via rule architect -> utilities -> export and mitigation via mitigation -> utilities -> export.
Regards,
Alpesh -
Dear all,
I have intertied a DPM 2012 server which is perform short (to disk) and long (tape) backups. However the tape backups always seem to fail with various errors / warning. I have noticed that the server has fire streamer and a physical tape drive setup,
I would like to remove fire streamer and also get some granular logon on the errors so that I can perform some analysis.Hi,
What update rollup are you running on the DPM 2012 R2 server ? DPM 2012 R2 UR5 introduced a new refresh feature that will re-enumerate data sources on an individual protected server.
Check for VSS errors inside the guests that are having problems being backed up.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights. -
EXP-00015: error while exporting a table !!!
Hi
I was trying to take table backup by exp and import method.
Got the following error
Please adivse.
EXP-00015: error on row 7548444 of table LOADER_POS, column VERSIONDATE, datatype 12
From
PJaffar
Appreciate your response.
There is enough space.
When u say analyze table structure ..
Are you talking about the Updating the statistics. ?
Please explain.
Thanks again.
From
PBy "analyze table structure", you can see if you have any corruptions of block :
analyze table table_name validate structure;[pre]
or
[pre]analyze index index_name validate structure;[pre]
Nicolas. -
Is it possible to import existing tables dump into another tables.
Hi,
i have a schema called "xyz". in that i have a,b,c tables. i took a,b,c tables backup using normal export. and also i have e,f,g tables in same schema ("xyz"). i want to import a,b,c data into e,f,g tables. can anyone please let me know what is the import command. dont give me the data pump options. i have some problems to take the data pump expors of those 3 tables.841731 wrote:
Hi,
i have a schema called "xyz". in that i have a,b,c tables. i took a,b,c tables backup using normal export. and also i have e,f,g tables in same schema ("xyz"). i want to import a,b,c data into e,f,g tables. can anyone please let me know what is the import command. dont give me the data pump options. i have some problems to take the data pump expors of those 3 tables.not possible using exp & imp -
Create a new "z" table as copy to mbew table
Hello Gurus,
I need a new "Z" table as copy of MBEW table for execute a stocks reports.
the MBEW table have 15 millions of records, but i dont know how i do for create the new table with all MBEW data.
I think make a table backup and restore this as ZMBEW object in DB library; but R/3 dont see this copy.
Any suggestions???
Best Regards,
Ernesto Castro.Hi Ernesto,
first of all, you need to define this ZMBEW table in SE11 (DDIC) - you could copy the DDIC from MBEW. Then you have to activate that one and it will be empty.
I would then use CPYF with "from record 1" on OS level.
If you want to use your rstobj technique, I'm not sure, if something goes wrong, because not everything is changed:
- primary key contraint: "MBEW+0"
Regards
Volker Gueldenpfennig, consolut international ag
http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de -
Backup restore scenario problem
Hi Experts,
One of the user accidentally truncated a table(exp_data) in morning. that table is in exp_tab01 tablespace. that tablespace only contains exp_data table. we want to recover that table. backup was taken yesterday.
Flashback doesnt work as table truncated. it says definition changed. we dont want to recover whole database, because database size is more than 1 TB.
our backup mount point doesnt have sufficient space to hold complete database backup at one time. we run are backups in chunks because of space issue.
Is there any way i can just only recover a tablespace?
Thanks in advance.
DaveHi,
If you have space constraints on your current production server might be a partial restore and recover on a second server could help out.
Than use data pump to re insert the lost data.
The datafiles needed for the partial restore would be:
select file#
from v$datafile
where ts# in (select ts#
from v$tablespace
where name in ( 'SYSTEM','SYSAUX','EXP_TAB01')
or name like 'UNDO%');
Regards,
Tycho -
Hi team,
I have one big production database; under this production database one very important table is there.
Here I am updated the table wrongly, but I have table backup before updating the table.
Here how we can restore the backup table into old backup table.In your case, Its better to use the same condition to update the value from backup tables by joining the columns on a key combination.
update T1
set T1.<column1>=T2.<column1>,
T1.<Column2>=T2.<Column2>
FROM <TableName> T1 INNER JOIN <Table_Backup> T2 on T1.id=T2.id
Where t1.id between 100 and 1000
OR
If there are no inserts/updates/deletes happen after the change, then you can try dropping the original table and rename the backup table by re-creating all the metadata
-Prashanth
Maybe you are looking for
-
windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.
-
Recent windows 7 updates caused serious conflicts??
I have two NI PCIe-1433 boards and the NI Max v5.4 installed. Recent win 7 (64 bit) automatic updates, within the last 10 days seemed to cause serious problems. Win 7 couldn't boot any more. Sometimes computer turns on and off by itself before the wi
-
I've lost my old firefox, how do i get it back? My MAC mini is OS 10.5
i've lost my old firefox, how do i get it bak. My Mac mini has OS 10.5.
-
Content generation [Error: Unable to access the output directory. The directory is not writable, so the folio cannot be saved.] This means? This is fun BTW. Two days and two different silly errors applying themselves arbitrarily. Yesterday was the ne
-
I've always wanted to get into Swing, but I have two left feet. Okay, so in all seriousness I was wondering what you think the best Swing tutorial is? I'd prefer online to paper, but I'm open to any suggestions. As to what I want to do with Swing, I