How to replace all existed objects when impdp a schame ???
I wrote 2 functions which do expdp and impdp
the impdp funciton is :
create or replace function impdp_schema(fromusr in varchar2,
tousr in varchar2,
dir in varchar2,
dmpfile in varchar2,
logfile in varchar2 default null)
return number as
h1 NUMBER;
job_name varchar2(128);
job_state varchar2(32767);
ret number;
BEGIN
if dir is null or dmpfile is null then
return 1;
end if;
ret := 0;
job_name := 'IMP' || to_char(sysdate, 'yyyymmddhh24miss');
h1 := DBMS_DATAPUMP.OPEN('IMPORT',
'SCHEMA',
NULL,
job_name,
'COMPATIBLE',
DBMS_DATAPUMP.KU$_COMPRESS_METADATA);
DBMS_DATAPUMP.ADD_FILE(h1,
dmpfile,
dir,
null,
DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
if logfile is not null then
DBMS_DATAPUMP.ADD_FILE(h1,
logfile,
dir,
null,
DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
end if;
DBMS_DATAPUMP.METADATA_REMAP(h1,
'REMAP_SCHEMA',
UPPER(fromusr),
UPPER(tousr));
DBMS_DATAPUMP.set_parameter(h1, 'TABLE_EXISTS_ACTION', 'REPLACE');
DBMS_DATAPUMP.START_JOB(h1);
dbms_datapump.wait_for_job(h1, job_state);
dbms_datapump.detach(h1);
dbms_output.put_line(job_state);
return ret;
exception
when others then
dbms_output.put_line(SQLERRM);
dbms_datapump.detach(h1);
return 1;
END;------------------------------------
when I test this function, I found some errors :
Master table "SYS"."IMP20100823152536" successfully loaded/unloaded
Starting "SYS"."IMP20100823152536":
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"WIS00001" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_ID_WIS_LOG" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_TID_TABLENAME" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WIS_MASS" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_1" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_2" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_3" already exists
ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSEDIT" already exists
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "WIS00001"."WITS_98_PIC" 28.28 KB 97 rows
. . imported "WIS00001"."DRAWING_CONTROL" 26.94 KB 218 rows
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
ORA-31684: Object type PROCEDURE:"WIS00001"."PROC_GETITEM" already exists
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
**Job "SYS"."IMP20100823152536" completed with 9 error(s) at 15:30:12**---------------
how to replace all objects when exist ??? include sequence, table, procedure/function???
</pre>
Edited by: UNISTD on 2010-8-23 上午12:50
I love posts without a 4 digit version number. This may well be because of a bug, and as this post is lacking a 4 digit version number, nobody will be able to answer it.
You posted in vain.
I recommend you search on Metalink whether there are issues with this parameter.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
How use replace all grid row with variable value
hi master
sir i have master detail form
in detail form i have 5 column grid thate have 25 row at time
one column name id
such as id have value 23
but i want replace all id row with 555
how i replace all id in grid with 555 befor commit_form
how i use loop for grid
or any other method
please give me idea
thank's
aamirGo_Block('Detail');
First_Record;
Loop
:detail.item := '...' ;
Exit when :system.last_Record = 'TRUE' ;
Next_record;
End loop;
First_Record ;Francois -
How to activate all inactive objects for current user
Hi
How to activate all inactive objects for current user ...
... I have found a (long winded) way to do this:
- Environment / Inactive Objects
- Add to Worklist
- Display Worklist
- Select All
- Activate
this will open a dialog titled "Inactive Objects for <username>"
which has the exact functionality I need ... but I can't figure out how to get to this dialog directly - without so many intermediate steps
the SAP docs repeatedly mention the ability to activate the inactive worklist - but do not mention how
does anybody know the TCode for this dialog?
thanks
ps does the term "mass activation" apply to importing change requests rather than development activation?
Edited by: FireBean500 on Jun 4, 2010 11:07 PMNo other way. But usually it's far more simple as all objects are already in our own worklist.
I wonder why your objects are not already in your worklist, as everytime you create or maintain an object, it is added to your worklist. -
How to recompile all invalid objects of APPS?
Dear all:
How to recompile all invalid objects of APPS? my environment is ORACLE 9.2.0.5 32bit.
Regards
Terryvarun4dba wrote:
hi Terry,
did you tried adadmin?
thanks.Do you mean:
Compile/Reload Database Objects
1. Compile APPS schema
2. Compile menu information
3. Recreate grants and synonyms for APPS schema
4. Compile flexfield data in AOL tables
5. Reload JAR files to database
6. Return to Main Menu -
How to get all the objects in a stack frame
Hi, what I'm trying to do is get all the objects on the top of the stack and time stamp them.
What I have is this:
static void mearthScanStack(jvmtiEnv *env, jmethodID method, jthread thread){
jobject obj;
int i;
jlong tag;
jvmtiError err;
jvmtiLocalVariableEntry *localVarTable;
jint entryCount;
err = (*env)->GetLocalVariableTable(env, method, &entryCount, &localVarTable);
if(err == JVMTI_ERROR_ABSENT_INFORMATION || err == JVMTI_ERROR_NATIVE_METHOD){
return;
check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local variable table");
for(i = 0; i < entryCount; i++){
if( (localVarTable.signature)[0] == 'L'){
err = (*env)->GetLocalObject(env, thread, 0, localVarTable[i].slot, &obj);
check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local object");
err = (*env)->GetTag(env, obj, &tag);
check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get tag for local object");
timeStampObject(env, obj);
(*env)->Deallocate(env, localVarTable);
}To walk through, first I get the local object variable table, then I loop through each entry in the table. I check each entries signature to see if it is an object (starts with "L"), and if it is, I try get its tag, and time stamp it.
This doesn't seem to work, however, because I get JVMTI_ERROR_INVALID_SLOT errors on the call to GetLocalObject. How can it be an invalid slot if I am getting the slot out of the local variable table? Am I going about this the right way
Additionally, when I get the the table, I'm ignoring the JVMTI_ERROR_ABSENT_INFORMATION error. I'm not exactly sure under what circustances this information is absent. Is there a way I could scan the stack frame even if it is not available (just probe through the slots maybe?)
Any help is greatly appreciated.I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
Ian -
ADF how to add an existent object to collection
I have three tables,
PRODUCT, PRODUCT_GROUP, PRODUCT_GROUP_LINK.
relationship between tables is
PRODUCT_GROUP (one-to-many) PRODUCT_GROUP_LINK (many-to-one) PRODUCT
Problem is,
I can not add a new record to the PRODUCT_GROUP_LINK table with ADF :(
If I use "Create" button for Iterator "ProductGroupLinkCollection",
after "Commit" command ADF automatically try add new PRODUCT_GROUP,
but I need to use existent PRODUCT_GROUP from PRODUCT_GROUP table.
What do you think about this problem?
Thanks.Hi Arum,
What I would most suggest is reading the ADF Developer's Guide (For Forms/4GL developers, if that describes your background). Before you start creating your web UI, you need to create business components. From your description of this problem, you'll need at least the following:
- An entity object based on PRODUCT_GROUP_LINK (by default, it will be called ProductGroupLink).
- A view object based on that entity object (by default called ProductGroupLinkView).
- A view object based on a query along the lines of "SELECT ID, NAME FROM PRODUCT_GROUP" (say, ProductGroupView)
- A view object based on a query along the lines of "SELECT ID, NAME FROM PRODUCT" (say, ProductView).
- An application module with instances of all three view objects
When you have all that, you'll want to let the user select a row from ProductGroupView and one from ProductView, and use the ID attributes for those rows to create a new row for ProductGroupLinkView. (You could make the ProductGroupLinkView instance a detail of either ProductGroupView or ProductView, which would automatically populate one of the attributes. There's a way to make a VO instance a detail of two others, but IIRC it's a lot more trouble than just populating the other attribute manually.) That will have the effect of adding an existing product to an existing product group.
But check out the ADF developer's guide first. There's also a very good book, by Peter Koletzke and Duncan Mills, called "Oracle JDeveloper 10g for Forms Developers", that is very useful if you're not very familiar with business components.
Best,
Avrom -
How to Replace All the Bridge CS6 Stock Keywords With Bridge CS5 Keywords
I have CS6 working in a different computer than the one that houses CS5. Bridge CS6 can read CS5 keywords when it opens an "old" photo but it has none of its own (besides the stock ones that came with the program). How can I replace all the stock CS6 keywords with the keywords from CS5?
Have you tried the Import/Export options from the tiny menu at the top-right of the Keywords panel?
-
How to Replace/Update existing book in ACS4?
I want to know how to replace/upadate book in ACS4. ? I trite with replace request but it give error that duplicate item in inventory?
Edit: For things below to work, you do need to edit packaging.conf as xnormand stated above.
This seems to be what you said your tried, but since you were not very detailed:
If you use the tool UploadTest bundled with ACS4.1 distribution (it has to be 4.1 or above; 4.0's will not replace already existing resources), create the associated XML:
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://ns.adobe.com/adept">
<action>replace</action>
<resource>urn:uuid:00000000-0000-0000-0000-000000000000</resource>
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>XXXXXXX</dc:title>
<dc:creator>XXXXXXX</dc:creator>
<dc:publisher>XXXXXXX</dc:publisher>
<dc:format>application/epub+zip</dc:format>
</metadata>
<dataPath>/home/myuser/epubs/filename.epub</dataPath>
</package>
Note that, in the XML:
<resource> has to be exactly the same as the UUID of the book already in ACS that you intend to replace.
There is a directive <action>replace</action>.
You use <dataPath> if you'd prefer to package an epub residing not on your local machine, but on the server. Inside it you specify the path where it resides on the server.
Then run the tool from the Terminal like this:
java -Xmx512M -jar /pathTo/UploadTest-1_2.jar http://domain.com/Package ~/epubs/ -datapath -xml -jpg -pass yourpassword
Where:
/pathTo/UploadTest-1_2.jar points to ACS 4.1 or above's UploadTest sample tool.
http://domain.com/Package is the URL to your server's ACS's install of the Packaging service (depending on your server's install, port may have to be specified like http://domain.com:8080/Package)
~/epubs/ is your local path where the XML resides. Note that UploadTest will try to process all XML in that folder, not just the one you just created.
Again, you use -datapath if you are packaging an epub residing not on your local machine, but on the server. Obviously requires the dataPath in the XML.
yourpassword is your password to ACS' Packaging service. Since you are running this on the shell, watch out for plaintext password leftovers in your command history. Some UNIX installs do not add lines to the command history if the command is preceded with a space (but YMMV). -
How to compile all invalid objects in SQL Developer
Hi
I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
1 ) To list all invalid objects and then compile them.
2) Invoke window similar to “Command window” in PL\Sql Developer
Thanks for help
GroxyCould I please revive this and ask how do I use UTL_RECOMP?
Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
Thanks a lot. -
Newbie: How can find all unused objects in XI ?
How can I find all unused objects in XI Integration Repository?
Thanks,
BadariHi,
Have a look at these thread, it might be helpful to you
XI Server Object Cleanup
How to delete Integration Repository Objects?
Thanks,
Pooja
ps: please mark helpful answers -
How to replace a Smart object content with folder of JPGs
Greetings!
Sorry if that title is not clear. I have a cover design template (see example). The image is a transformed Smart Object. I want to streamline my workflow.
Say I have a folder of jpgs, and need to replace the smart object of the template with the new cover jpg, then save for web as a JPG comp. Repeat.
I already have a nice "scale layer to current canvas size" script from Michael L Hale. Which would be necessary in case the jpg is larger or smaller than the Smart object's content it will replace.
Any thoughts if this could be done?
Michael's resize script is here: http://forums.adobe.com/thread/1233856
Thanks
MaxiRemember in that other tread I wrote you would need to take aspect ratio into account if you don't want distortion. You do not want distortion placing in images. You also do not want to place in all image in canvas size. If your images vary in size you do not want to replace the contents of a smart object layer for the smart object associated transform to work correctly you need the replace the embedded object with an object with exactly the same size of the original embedded object.
Also in that other thread I gave you code from one of my Photoshop Photo Collage Toolkit. You seem to be creating a collage. You man want to look at my Photo Collage Toolkit.
Templates are very easy to create for my Toolkit's scripts to work, You just need to follow four simple easy rules.
The Four Rules:
Size the photo collage templates for the print size you want - width, height and print DPI resolution.
Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
So your template would be easy and look like this, Red rectangle outlines my scripts.
You would then use one of the scripts like interactive popopulate select the template then hit create collage
The script would the open the template copy it the go to full screen show you a cyan mask as to where the next image will be placed, And put you into an interactive select image dialog.
Once you select the script will place in the image resize and position it the put you in an interactive transform so you can tweak the position and size. The Populated collage will remain open in Photoshop.
Documentation and Examples -
HOW TO DELETE ALL INFO OBJECTS IN A SYSTEM
HI! gurus,
I want to know how to delete all user created info objects in my laptop.the situation is while practicing SAP in my laptop ...creation of user info objects occured heavily resulting in degrading the system performance.so is there any procedure to delete all info objects(user created)making a system a newly SAP installed one....please help me....
Regards
Ravikanth PinipoluHi Ravi,
u can try it manually to delete the User defined objects..
or u can use the prg: RSDG_IOBJ_DELETE and in that u can give some selection of objects for the deletion..
Give it a try..
Thanks
Hope this helps -
How to reference ALL child objects?
How can I reference ( ALL ) child objects.... for example in
an objects constructor I have applied mouse movement events. But
how could I also code - "apply mousemove events to ALL children of
this object". ?
Note - these child objects have been added AFTER compilation
via the addChild method. They are not children created using
inheritance.What is it that you're trying to accomplish?
What problem is it that you have, where you think the solution is to get a list of every instantiated object?
What are you planning to do with that list?
Even a very small, short-lived program can easily create hundreds or thousands of objects during its lifetime, so it's unlikely that a complete list will be of any practical use.
If you want to observe, for example, which objects are consuming the majority of your memory because you're trying to reduce the memory footprint, you could use a profiler, such as JProbe, JProfiler, OptimizeIt, or VisualVM. -
How to delete all users (objects) in 9i database?
Hi friends:
I did a full database exp/imp for a dev database, before imp, I need to delete all objects in the old dev database, I know delete one user is
drop user user_name cascade;
how about all users (objects)???? in 9i database
thank you very muchHi,
I will use
select ' drop user ' ||username|| ' cascade;' from all_users where username not
in ('SYS','SYSTEM', ‘DBSNMP’);
Is there any other users I don't need to drop off besides the above three ones?
thank you very much -
How can get all anchored objects?
How can we get a document's all anchored objects labeled as "Anchored" by 1 or 2 line javascript code?
myAnchs = app.documents[0].stories.everyItem().pageItems.item("Anchored").getElements();
returns an array of all such anchored items.
Dave
Maybe you are looking for
-
Requisition Change History - not showing all records from CDHDR/CDPOS
Hello, When viewing the Item Changes for a requisition in ME53N, I don't always see all the records that are contained in tables CDHDR / CDPOS. The missing records are related to release strategies. Does anyone have any ideas why this happens? Thank
-
Hi, I have send my laptop to Toshiba depot for repair, because one fine morning the laptop stopped functioning. The depot received my laptop through ups on December 21, 2010. Reference number <removed>, serial no <removed> Till now the status is "
-
Problem of selecting combobox in JTable!!
I click comboBox in jtable and choose one item then move mouse away and then click the comboBox again It turns out to be strange: the selectedItem of the comboBox changes the first item at once I refered to the demo "TableRenderDemo.java" in http://j
-
Installation error for Acrobat Pro XI Trial on windows 8
-
After downloading and installing OS X Update 10.10.3 I am not able to open my Phot App. It opens and immediately shuts down. I've sent messages to Apple for help and no answers. Help!