Don't know the source table space to use in REMAP_TABLESPACE
11.2.0.2/Solaris 10We have a dump expdp of a related development scheme. We had dropped the source DB. Now, we want to create a new scheme in a new DB using this dump. We do not know the storage space used by the schema of the source as this DB does not exist today.
To find the storage space used by the schema of the source, I can go ahead and impdp and cross errors "tablespace does not exist" in the log file impdp (need to do some research on Google to create an awk for this script)
But y at - it another way to determine the storage space used by the schema of the source when the source database no longer exists? We do not have the expdp log file is (currently looking for it)
I see 2 options for you.
1. run your grep sqlfile import and then that file for the keyword TABLESPACE. This will give you all the tablespaces to be used when ordering import.
2. start your import but with these:
keep_master = master_only y = nom_du_travail y = my_master_only
This will load just the main table, and then you can query the master to find storage space. If your dumpfile is important, it can be a lot
faster than sqlfile once the import is complete, do a query like this:
SQL > connect schema_running_job/password
SQL > select unique object_tablespace from my_master_only where process_order > 0 and duplicate = 0;
SQL > select unique object_name from my_master_only where process_order > 0 and duplicate = 0 and object_type = 'TABLESPACE ';
I hope this helps.
Dean
Published by: Dean WINS 12 Sep, 2012 10:22
Tags: Database
Similar Questions
-
Don't know the name of tablespace from source to use in REMAP_TABLESPACE
11.2.0.3/RHEL 5.4
You asked me to restore a table since a dumpfile expdp use impdp. The source DB no longer exists, so I don't know the name of tablespace from source to use in REMAP_TABLESPACE. The source in the dumpfile table is a table partitioned using at least 5 tablespace for data and indexes. In the target, all the data and the indexes will use a tablespace. Is there a way I can restore this table without knowing source tablespace names?Hello
You can useImpdp sqlfile = xxx.sql
just, it generates a text file with all create commands and is not actually create anything in the database - you can then grep on all tablespace names
If the export was a full
You can probably even sayImpdp sqlfile = xxx.sql include = tablespace
(it might be tablespaces and tablespace - can't remember syntax)
See you soon,.
Harry -
whenever I run this code I get this error
SQL Error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
Don't know wht goes wrong!
SQL:
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s
full outer join (select * provider where COMPANY_CODE = 2) d
on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
UPDATE SET s.VENDOR = d.VENDOR
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (SELLER, COMPANY_CODE)
VALUES (d.VENDOR, d.COMPANY_CODE)
Work request: (deleted the duplicate data in tables (source and target))
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR))
- AND D.ACTIVEDATE = S.ACTIVEDATE
and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))
and (d.COMPANY_CODE = s.COMPANY_CODE)
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from suppliers where COMPANY_CODE = 2) d
full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s
on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)
VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)
-
I don't know the size of tablespaces
I make a plsql for insert on transaction 700,000,000.00 program a table has only 5 int column. I'm not a database, I do the program practice sql, forms and report. My tablespace has just 50 m, that's why the plsql gives me an error. I don't know the size of a tablespace again. Can anyone help?joaquin2 wrote:
Thank you for your help. The table is
create table numbers
(int num1, num2 int, int num3, num4 int, int num5);The table space is
Numbers of CREATE TABLESPACE
DATAFILE 'C:\calculos\numeros' SIZE 30G AUTOEXTEND ON
MINIMUM 500K
DEFAULT STORAGE (INITIAL 500K NEXT 500K MAXEXTENTS 500 PCTINCREASE 0)
ONLINE
/Management of the space will be much more effective if you use uniform extensions and specify a reasonable size for autoextend:
> CREATE TABLESPACE numeros DATAFILE 'C:\calculos\numeros' SIZE 30G AUTOEXTEND ON next 1g uniform size 512k ONLINE /
Published by: JohnWatson on January 9, 2013 16:26
I should have added, what is your db_block_size? If the default 8 k, your maximum file size is of 32G. -
FUSION IN: ORA-30926: failed to get a stable set of rows in the source tables
Hi all
Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production 0
PL/SQL Release 12.1.0.1.0 - Production 0
CORE 12.1.0.1.0 Production 0
AMT for 64-bit Windows: Version 12.1.0.1.0 - Production 0
NLSRTL Version 12.1.0.1.0 - Production 0
When you use the MERGE clause, if executed more than once, I get the below error
ORA-30926: failed to get a stable set of rows in the source tables
create table CBC (nums number, sname varchar2 (10))
create tar (tnum number, tNom varchar2 (10)) table
Insert in src values (1, 'a')
Insert in src values (1, 'b')
Insert in src values (2, "c")
merge into tar
using the CBC
on (nums = tnum)
when matched
then
update the value tNom = sname
When not matched
then
Insert the values(snum,sname);
What expect, it's that first time itself (when inserted), he must raise the error. But it's not.
Select * from tar
TNUM TNOM
1 b
1 a
2 c
But if we run for the second time it shows the error.
I saw the document of the Oracle and he said
MERGE
is a deterministic statement. You cannot update the same row in the target table multiple times in the sameMERGE
statement.I've seen below cela son but failed to get the solution for this.
Someone at - it make a clarification?
I don't want to insert records into the first time itself. for example, to run the first time he must raise the error. can I do this using MERGE?
Thank you
Hello
O - O wrote:
Thanks knani, Frank.
One more doubt.
When you run the MERGE statement, the first time, there is no rows in the target table, so no rows in the target table is what it is.
So we cannot perform below sqls using MERGE when the target table is empty?
insert into tar values (1, 'a')
updated tar tNom = 'b' set where tnum = 1
insert into tar values (2, "c")
Is - that means that the MERGER will be only works with validated data?
Right; a MERGE statement will not update a line which has been previously inserted into the same MERGE statement. All fact tables reference to the data in the tables by the time the MERGER began.
-
change the source tables in the materialized view
If I change the name of the source table in a materialized view, I have to delete and recreate the MV? For example, My MV uses a table from a DBlink. Instead I want to physically copy the table in the schema, and then create the MV using the local table, then change MV to use the remote table and I expect to start refreshing the MV for incremental data. Can I do it?
No, you can't. Oracle has no way of knowing that the modified table (name) is identical to the original table.
Hemant K Collette
-
Purge the table FND_LOBS (attachmentolders of 2 years) to the cleaning table space
Hello
I have a requirement to serve the table FND_LOBS (spare part which is over 2 years old) in the cleaning table space.
Please advise me which is the best way to serve FND_LOBS.
I already went through the Notes below, but no luck...
--
871721.1 - how to purge FND_LOBS?
555463.1 - how generic Purge or purchase spare part of the Table FND_LOBS
298698.1 - avoiding an abnormal growth of the FND_LOBS table in 11i Applications
303709.1 - recovering unused space in the tablespace APPLSYSD
555463.1 - how generic Purge or purchase spare part of the Table FND_LOBS
--
Thank you
Genoo
Published by: Geno on April 1, 2013 05:32Geno says:
None notes solve my requirement, I don't see an option to purge only the data that is older than 2 years.Thank you
GenooPurge FND_LOBS table can simultaneous running of 'Purge obsolete generic Queue Manager Data' program - simultaneous treatment - how to add the simultaneous program "Purge obsolete generic Queue Manager Data" to the Sysadmin User. [216541.1 ID]
You can find more information about the settings for this program at the same time (questions on purge stale data of generic file manager [1165208.1 ID]).
Thank you
Hussein -
Impossible to get a stable set of rows in the source tables
Hi guys,.
I use the following query to fusion in a stored procedure.
The procedure raises error * "Unable to get a stable set of rows in the source tables" * as a result of the query. But if I run the query individually, it works very well. Please help me solve this problem.MERGE INTO tt_OPEN_IN_TMP B Using (Select * From Tt_Sl_Fifo) A ON ( A.Store_Code = B.Store_Code AND A.item_code = B.item_code And A.Packing = B.Packing And A.Serial_No = B.Serial_No ) When Matched Then Update Set Opn_Fifo_Cost = A.Rate_Bc;
Thank you
RAM.The error is due to what there is in double store_code, item_code, packaging, combination of serial_no in the Tt_Sl_Fifo table. If there are multiple records with the same store_code, item_code, packaging, serial_no Oracle has no way to determine which to use for the update. If you know that there is whenever duplicates they will all have the same column of rate_bc then instead of using
(select * from tt_sl_fifo)
use
(select distinct store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo)
Or if there is other criteria, like a date column, you can use to determine what is the one you want to use to day then you can use something like
(select store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo where (store_code, item_code, packing, serial_no, add_date) in (select store_code, item_code, packing, serial_no, max(add_date) from tt_sl_fifo group by store_code, item_code, packing, serial_no))
-
HP S55 10y: don't know the BIOS password
Im trying to reimage my office but I don't know the BIOS password to change settings. Someone please HELP! Laughing out loud
Hello:
Instructions to clear the password of the BIOS for your model are at the link below, under clearing BIOS settings > clear the BIOS password.
There's a separate rider to clear the BIOS password, and instructions as written should work.
-
Windows Live ID problem
Hello world.
I have a small problem regarding the Windows Live account. My account is: * e-mail address is removed from the privacy *, I forgot my password.I need to answer the questions about my "ID". I don't know the answers that I've tried over and over again and I even tried to make security issues and I could not answer.What can I do?Hello RobertKristof,
The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:
Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.
-
Hello guys, as I said I don't know the user and the password in the web settings page of the basis of my WRT120N (Linksys router model) and I almost tried everything with my reset button, and it does not seem to reset my router. Please, if you guys know something I could do to fix my router, that would be great. Thanks for the help!
Be fixed by myself some moderator let this thread closed.
-
Don't know the name or the password for the administrator account
'Useful' for my internet service technical advisor has created a new administrator account for my non-it network. I don't know the name of the administrator account or the password and am accessing the computer via a guest account. However, because the guest is not the administrator I can't upgrade or changes to the operating system. How can I find the information needed/creat a new administrator/do prompt the administrator? I use Vista Home Premium 32 bit OS. It seems that I can't do a clean install.
This new admin account that technology has created for you could be the built-in Administrator account.
It is, by default, has no password.Try to connect to it by clicking on this account > Inbox password by pressing the Enter key.
If this does not work and you can ONLY log on to your computer to the guest account, so you don't have any hope of creating a new admin account, activate account built-in Administrator, or you can use the cmd to this effect.
Remind your internet service, tell them what the 'useful' technician had done before and ask them to help, such as...
1. create new admin with a password that you can remember.
2 delete the one that you do not have the password.
If this cannot be done, the only suggestion that we offer is to re - install Vista.
-
Not receive a computer given to nine, but don't know the user name and password
I got a refurbished computer and I don't know the user name and password. Someone knows what to do?
* original title - I received a refurbished computer and I don't know the user name and password. Someone knows what to do? *
Hello
Reinstall vista
I'm sorry, but the strategy of microsoft in these forums is that without assistance will be given about lost or forgotten passwords
read the policy at the link below
Here are the different ways to reinstall vista
Contact the computer manufacturer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it
they do it for a nominal cost of $
also ask them if you have a recovery partition on your hard drive to get back to the way you bought
you would normally press F10 or F11 or Alt + F10, 0 at startup to start the recovery process according to the manufacturer
Ask them of the exact key sequence
or borrow a microsoft dvd vista
Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer
they contain all versions of vista
This is the product key that determines which version of vista is installed
http://www.theeldergeek.com/Vista/vista_clean_installation.html
Save all data, because it will be lost, do the above
How to replace Microsoft software or hardware, order service packs and replace product manuals
-
I don't know the password
I don't know the password
We are not allowed to help users to bypass the password protection, regardless of what are "reasons".
Here's the Microsoft Policy about this:
http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem. -
15 - f004wm: call, but I don't know the serial number of my laptop
I don't know the serial number of my laptop and I need to call support because the files are missing
Remove the battery and check the label stuck in the compartment. If you can still boot into Windows, you can also open HP Support Assistant and lists the serial number at the bottom of the screen. Or-just hold ctrl & alt and tap key S and a box will open with the info.
Maybe you are looking for
-
Rectangle vertical lines on Macbook
Turned on my Macbook Air and was greeted with this screen: I tried from a Thunderbolt/HDMI connection our TV without success. I can't the computer after the screen "Do you want to reset your password?". As my HD is encrypted, I can't launch from th
-
Hi all Our Church podcast sermons on Sunday and I would like to submit a podcast to itunes. The power link is http://stbarnabas.davidblowes.com/sermonpodcast I get the following error: Cannot download episodes of your workflow. I don't know what is h
-
I don't know what the hell I did. As far as I know that is my "file, output, display, Favorites etc. are no longer visible or fields of research.» This has happened Just once or twice == July 12, 2010
-
HP Pavilion g6-1035ex Notebook PC
I need drivers for the follwing ID for HP Pavilion g6-1035ex Notebook PC PCI\VEN_1002 & DEV_6760 & SUBSYS_1670103C & REV_00PCI\VEN_1002 & DEV_6760 & SUBSYS_1670103CPCI\VEN_1002 & DEV_6760 & CC_030000PCI\VEN_1002 & DEV_6760 & CC_0300
-
Whenever I have select multiple photos to download or move somewhere and I get to a number of selected images, Windows, or everything he does makes copies of selected images. It's a stupid program because it does not check to see if a copy had alread