Datapump exp and imp using API method
Good Day All,
I want to know what is the best way of error handling of datapump export and Import using API. I need to implement in my current project as there lot of limitations and the only way to see the process worked is writing the code with error handling method using exceptions. I have seen some examples on the web but if there are practicle examples or good links with examples that will work sure way, I would like to know and explore. I have never used API method so I am not sure of it.
Thanks a lot for your time.
Maggie.
I wrote the procedure with error handling but it does not out put any information of the statuses while kicking off the expdp process. I have put dbms_output.put_line as per oracle docs example but it doesnt display any messages, just kicks off and created dumpfiles. As a happy path its ok but I need to track if something goes wrong. I even stated set serveroutput on sqlplus. It doesnt even display if job started. Please help me where I made a mistake to display the status . Do I need to modify or add anything. Help!!
CREATE OR REPLACE PROCEDURE SCHEMAS_EXPORT_TEST AS
--Using Exception Handling During a Simple Schema Export
--This Proceedure shows a simple schema export using the Data Pump API.
--It extends to show how to use exception handling to catch the SUCCESS_WITH_INFO case,
--and how to use the GET_STATUS procedure to retrieve additional information about errors.
--If you want to get status up to the current point, but a handle has not yet been obtained,
--you can use NULL for DBMS_DATAPUMP.GET_STATUS.http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_api.htm
h1 number; -- Data Pump job handle
l_handle number;
ind NUMBER; -- Loop index
spos NUMBER; -- String starting position
slen NUMBER; -- String length for output
percent_done NUMBER; -- Percentage of job complete
job_state VARCHAR2(30); -- To keep track of job state
sts ku$_Status; -- The status object returned by get_status
le ku$_LogEntry; -- For WIP and error messages
js ku$_JobStatus; -- The job status from get_status
jd ku$_JobDesc; -- The job description from get_status
BEGIN
h1 := dbms_datapump.open (operation => 'EXPORT',job_mode => 'SCHEMA');
dbms_datapump.add_file (handle => h1,filename => 'SCHEMA_BKP_%U.DMP',directory => 'BKP_SCHEMA_EXPIMP',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
dbms_datapump.add_file (handle => h1,directory => 'BKP_SCHEMA_EXPIMP',filename => 'SCHEMA_BKP_EX.log',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
---- A metadata filter is used to specify the schema that will be exported.
dbms_datapump.metadata_filter (handle => h1, name => 'SCHEMA_LIST',value => q'|'XXXXXXXXXX'|');
dbms_datapump.set_parallel( handle => h1, degree => 4);
-- Start the job. An exception will be returned if something is not set up
-- properly.One possible exception that will be handled differently is the
-- success_with_info exception. success_with_info means the job started
-- successfully, but more information is available through get_status about
-- conditions around the start_job that the user might want to be aware of.
begin
dbms_datapump.start_job (handle => h1);
dbms_output.put_line('Data Pump job started successfully');
exception
when others then
if sqlcode = dbms_datapump.success_with_info_num
then
dbms_output.put_line('Data Pump job started with info available:');
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error,0,
job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end if;
else
raise;
end if;
end;
-- The export job should now be running. In the following loop, we will monitor the job until it completes.
-- In the meantime, progress information is displayed.
percent_done := 0;
job_state := 'UNDEFINED';
while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error +
dbms_datapump.ku$_status_job_status +
dbms_datapump.ku$_status_wip,-1,job_state,sts);
js := sts.job_status;
-- If the percentage done changed, display the new value.
if js.percent_done != percent_done
then
dbms_output.put_line('*** Job percent done = ' ||to_char(js.percent_done));
percent_done := js.percent_done;
end if;
-- Display any work-in-progress (WIP) or error messages that were received for
-- the job.
if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0)
then
le := sts.wip;
else
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
else
le := null;
end if;
end if;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end loop;
-- Indicate that the job finished and detach from it.
dbms_output.put_line('Job has completed');
dbms_output.put_line('Final job state = ' || job_state);
dbms_datapump.detach (handle => h1);
-- Any exceptions that propagated to this point will be captured. The
-- details will be retrieved from get_status and displayed.
Exception
when others then
dbms_output.put_line('Exception in Data Pump job');
dbms_datapump.get_status(h1,dbms_datapump.ku$_status_job_error,0, job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
spos := 1;
slen := length(le(ind).LogText);
if slen > 255
then
slen := 255;
end if;
while slen > 0 loop
dbms_output.put_line(substr(le(ind).LogText,spos,slen));
spos := spos + 255;
slen := length(le(ind).LogText) + 1 - spos;
end loop;
ind := le.NEXT(ind);
end loop;
end if;
end if;
END SCHEMAS_EXPORT_TEST;
Similar Messages
-
Using expdp and impdp instead of exp and imp
Hi All,
I am trying to use expdp and impdp instead of exp and imp.
I am facing few issues while using expdb. I have a Job which exports data from one DB server and then its imported so another DB server. Both DB servers are run on separate machines. Job runs on various clients machine and not on any of DB server.
For using expdp we have to create DIRECTORY and as I understand it has to be created on DB server. Problem here is Job can not access DB Server or files on DB server. Also dump file created is moved by Job to other machines based on requirement( Usually it goes to multiple DB server).
I need way to create dump files on server where job runs.
If I am not using expdp correctly please guide. I am new to expdp/impdp and imp/exp.
Regards,Thanks for quick reply ..
Job executing expdb/impdp runs on Red Hat Enterprise Linux Server release 5.6 (Tikanga)
ORACLE server Release 11.2.0.2.0
Job can not access the ORACLE server as it does not have privileges (In fact there is no user / password to access ORACLE server machines). Creating dump on oracle server and moving is not an option for this JOB. It has to keep dump with itself.
Regards, -
Scripts for exp and imp in linux
please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.
user13653962 wrote:
please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.try this.. change the same script for your environment
$ crontab -l
00 22 * * * sh /u01/db/scripts/testing_user1.sh
$ cat /u01/db/scripts/testing_user1.sh
. /home/oracle/TEST1.env
export ORACLE_SID=TEST1
export ORA_USER=dbdump
export ORA_PASSWORD=dbdump
export TNS_ALIAS=TEST1
expdp $ORA_USER/$ORA_PASSWORD@$TNS_ALIAS tables=YOUR_tables_NAMEs dumpfile=TEST_`date +'%Y-%m-%d`.dmp directory=YOUR_DUMPDIR logfile=TEST_`date +'%Y-%m-%d`.logif you need for original export change the exp command,
exp username/password tables=table_name1,table_name2,etc... file=your_file_name log=your_log_file_name -
Error in parallel exp-imp using ftp method
Hi,
We are doing migration of ERP system running on redhat linux 6 and sybase 15.7 .
Trying to do parallel export import using ftp method.
Here when we start the export monitor, it gives the below error.
Required system resources are missing or not available:
Structure of subdirectories in local export directory '/export/TRS_Mock_Export/ABAP' and FTP export directory '/usr/sap/TRQ/DVEBMGS00/TRS_Mock_Export/ABAP' on '<ip>' server is different.
But the structure is entirely same.
Even we have moved the export directory which got created after sapinst was run (before starting migmon) to the target server.
Below is a content of export monitor file .
export_monitor_cmd.properties
ftpCopy
dbType=SYB
exportDirs=/export/TRS_Mock_Export/ABAP
installDir=/media/sapinst_logs/Mock_Exp_Imp/sapinst_instdir/BS2010/ERP605/LM/COPY/SYB/EXP/CENTRAL/AS-ABAP/EXP/log_17_Apr_2015_05_03_53
ddlFile=/export/TRS_Mock_Export/ABAP/DB/DDLSYB_LRG.TPL
r3loadExe=/usr/sap/TRS/DVEBMGS00/exe/R3load
tskFiles=yes
dataCodepage=4103
jobNum=8
monitorTimeout=30
loadArgs=-stop_on_error
ftpHost=ip
ftpUser=user
ftpPassword=pw
ftpExportDirs=/usr/sap/TRQ/DVEBMGS00/TRS_Mock_Export/ABAP
ftpExchangeDir=/media/sbx_exchange_dir
ftpJobNum=3
trace=all
Please suggest.
Regards,
Amit Jana.Thanks for the steps Siddhesh.
ftp is working.
in the properties file for ftp user earlier gave a different user.
Now gave sidadm and this error is resolved.
Now facing a different issue.
In the properties file we gave 'server' in the beginning . This is only starting R3load processes but ftp transfer does not start.
Then gave 'ftp' below 'server' but got the below error.
Check below the file contents and error :
export_monitor_cmd.properties
server
ftp
dbType=SYB
exportDirs=/export/TRS_Mock_Export/ABAP
installDir=/media/sapinst_logs/Mock_Exp_Imp/sapinst_instdir/BS2010/ERP605/LM/COPY/SYB/EXP/CENTRAL/AS-ABAP/EXP/log_17_Apr_2015_05_03_53
ddlFile=/export/TRS_Mock_Export/ABAP/DB/DDLSYB_LRG.TPL
r3loadExe=/usr/sap/TRS/DVEBMGS00/exe/R3load
tskFiles=yes
dataCodepage=4103
jobNum=8
monitorTimeout=30
loadArgs=-stop_on_error
ftpHost=ip
ftpUser=user
ftpPassword=pw
ftpExportDirs=/usr/sap/TRQ/DVEBMGS00/TRS_Mock_Export/ABAP
ftpExchangeDir=/media/sbx_exchange_dir
ftpJobNum=3
trace=all
=======================================
TRACE: 2015-04-20 06:14:57 sun.net.ftp.impl.FtpClient readServerResponse
Server [/192.168.51.12:21] --> 230 Login successful.
ERROR: 2015-04-20 06:14:57 com.sap.inst.migmon.exp.ExportStandardTask run
Fatal exception during execution of the Export Monitor.
java.io.IOException: illegal filename for a PUT
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:528)
at com.sap.inst.lib.ftp.FtpService.put(FtpService.java:160)
at com.sap.inst.migmon.exp.ExportExchangeTask.removeExportStatistics(ExportExchangeTask.java:277)
at com.sap.inst.migmon.exp.ExportStandardTask.doRun(ExportStandardTask.java:92)
at com.sap.inst.migmon.MigrationTask.run(MigrationTask.java:431)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:791)
INFO: 2015-04-20 06:14:57
Export Monitor is stopped. -
Disable RightClick on PDF in Browser using API methods ?
How to use adobe acrobat API method/events to capture function keydown effectively disabling rightclick menu in Reader in browser?
Question: can anyone illustrate how to disable menu right click ? ive seen methods/events in the acrobat api that look to capture the rightclick keydown event but I dont know how to call/implement a function to pull this off.
I read that one might use the notification AVAppRegisterForPageViewRightClicks and do nothing inside the callback procedure to disable entire right click operation inside a Pdf. Sounds good but how?
The AVPageView has methods like AVPageViewKeyDownProc and that's registered using AVAppRegisterForPageViewKeyDown.
I'm getting this from http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/API_References/Acrobat _API_Reference/AV_Layer/
I found this on "How to Disable right click pop-up menu items" :
http://forums.adobe.com/thread/441260
but I can't follow the posters own resolution which is to "We only need to use the notification AVAppRegisterForPageViewRightClicks and do nothing inside the callback procedure to disable entire right click operation inside a Pdf."
While that sound correct - how would someone implement this? Can anyone show examples ?Hi Dentaur,
I actually posted the resolution at http://forums.adobe.com/thread/441260. However, can't share the source code here as its proprietory for the company I work for. On a high level I did the following to disable right clicks after opening a Pdf inside Acrobat via a plug-in.
1. Register a callback for the Right Click notification during plug-in initialization.
2. Simply return true from the callback.
3. Destroy the callback during plug-in destruction. -
Get locals and globals using API
Hi, I am making in LV an editor for TS. User should be able to change the value of file globals and locals variables. Using TS API, is possible to get all the file globals and locals variables without knowing the name that those variable have in TS? I mean, if I knew the name I could use the Get Property Value with the lookup string. But if the I do not know the name of the variable, can I get the list (and their values) of the variable?
Thanks a lot.
Solved!
Go to Solution.Try the following link
http://forums.ni.com/ni/board/message?board.id=330&message.id=3390&query.id=6624776#M3390
In summary:
Use GetNumSubProperties method to get the total number of Locals / FileGlobals.
Use GetNthSubProperty to get the sub properties using the an index starting at 0 to GetNumSubProperties-1
Use the Name property to obtain the Name of the subproperty.
Regards
Ray Farmer
Regards
Ray Farmer -
Create Roles and Permissions using API
Hello,
I'm new to Java and I'm trying to create Roles and Permissions in LiveCycle using API's. Can someone please check and correct my code below?
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
// Create an AuthorizationManagerServiceClient object
AuthorizationManagerServiceClient amClient = new AuthorizationManagerServiceClient(myFactory);
RoleImpl ri = new RoleImpl();
ri.setName("Test ES Role");
ri.setDescription("Test Role via API");
ri.setMutableStatus(true);
amClient.createRole(ri);
Executing the above code throws exception as below;
com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:java.lang.IllegalStateExceptionchainedExceptionMessage:null chainedException trace:java.lang.IllegalStateException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:72)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
at com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient.createRole(Autho rizationManagerServiceClient.java:159)
at com.adobe.lc.ManageRolesAndPermissions.main(ManageRolesAndPermissions.java:70)
Caused by: java.lang.NoClassDefFoundError: javax.ejb.EJBException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(ServiceClientF actory.java:595)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:215)
... 2 more
Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBException
Thank you,
SandeepMahesh,
Refer to your other thread ..
API to create new items in inventory
API to create new items in inventory
Regards,
Hussein -
Conversions between character sets when using exp and imp utilities
I use EE8ISO8859P2 character set on my server,
when exporting database with NLS_LANG not set
then conversion should be done between
EE8ISO8859P2 and US7ASCII charsets, so some
characters not present in US7ASCII should not be
successfully converted.
But when I import such a dump, all characters not
present in US7ASCII charset are imported to the database.
I thought that some characters should be lost when
doing such a conversions, can someone tell me why is it not so?Not exactly. If the import is done with the same DB character set, then no matter how it has been exported. Conversion (corruption) may happen if the destination DB has a different character set. See this example :
[ora102 work db102]$ echo $NLS_LANG
AMERICAN_AMERICA.WE8ISO8859P15
[ora102 work db102]$ sqlplus test/test
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 25 14:47:01 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 SQL> create table test(col1 varchar2(1));
Table created.
TEST@db102 SQL> insert into test values(chr(166));
1 row created.
TEST@db102 SQL> select * from test;
C
¦
TEST@db102 SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[ora102 work db102]$ export NLS_LANG=AMERICAN_AMERICA.EE8ISO8859P2
[ora102 work db102]$ sqlplus test/test
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 25 14:47:55 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 SQL> select col1, dump(col1) from test;
C
DUMP(COL1)
©
Typ=1 Len=1: 166
TEST@db102 SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[ora102 work db102]$ echo $NLS_LANG
AMERICAN_AMERICA.EE8ISO8859P2
[ora102 work db102]$ exp test/test file=test.dmp tables=test
Export: Release 10.2.0.1.0 - Production on Tue Jul 25 14:48:47 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in EE8ISO8859P2 character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P15 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table TEST 1 rows exported
Export terminated successfully without warnings.
[ora102 work db102]$ sqlplus test/test
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 25 14:48:56 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 SQL> drop table test purge;
Table dropped.
TEST@db102 SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[ora102 work db102]$ imp test/test file=test.dmp
Import: Release 10.2.0.1.0 - Production on Tue Jul 25 14:49:15 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
import done in EE8ISO8859P2 character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P15 character set (possible charset conversion)
. importing TEST's objects into TEST
. importing TEST's objects into TEST
. . importing table "TEST" 1 rows imported
Import terminated successfully without warnings.
[ora102 work db102]$ export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
[ora102 work db102]$ sqlplus test/test
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 25 14:49:34 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 SQL> select col1, dump(col1) from test;
C
DUMP(COL1)
¦
Typ=1 Len=1: 166
TEST@db102 SQL> -
Generate CSR using API method??
Hi all ,
I have this piece of code below using JDK 1.3 and BouncyCastel Provider
//some other import ... i am using bouncyCastle Provider
import javax.crypto.Cipher;
import org.bouncycastle.jce.PKCS10CertificationRequest;
import org.bouncycastle.asn1.x509.X509Name;
public class test
public static void main(String []args) throws Exception
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
KeyStore ks=KeyStore.getInstance("JKS");
ks.load(new FileInputStream("test.keystore"),"one1234".toCharArray());
Enumeration e = ks.aliases();
X509Certificate c=null;
while(e.hasMoreElements())
String alias = e.nextElement().toString();
if(ks.isKeyEntry(alias))
c = (X509Certificate) ks.getCertificate(alias);
break;
String subject = c.getSubjectDN().getName();
X509Name xname = new X509Name(subject);
PrivateKey priv = (PrivateKey) ks.getKey("mykey","one1234".toCharArray());
PublicKey pub = (PublicKey) c.getPublicKey();
PKCS10CertificationRequest csr = new PKCS10CertificationRequest("MD5WithRSA",xname, pub,null,priv);
byte buf[] = csr.getEncoded();
FileOutputStream os = new FileOutputStream("request.crt");
OutputStreamWriter wr = new OutputStreamWriter(os);
wr.write("-----BEGIN NEW CERTIFICATE REQUEST-----\n");
wr.write(new sun.misc.BASE64Encoder().encode(buf));
wr.write("\n-----END NEW CERTIFICATE REQUEST-----\n");
wr.flush();
The coding Was OKAY and ran successfully...
The Problem is i want to get the same result as if i generate a csr using KEYTOOL utility...
BUT somehow i got different result , is it due because of signature algorithm or encoding??
Please help me ....
Thanks....Unfortunately, I don't believe this can be done conveniently using the JCE providers from Sun. The dname components are actually kept in a self-signed certificate that is bound to the alias for the key. The KeyStore class lets you do this using the KeyStore.setKeyEntry methods, and perhaps also the KeyStore.setCertificateEntry method (caveat: I haven't actually tested this).
The difficulty lies in the need to generate a certificate: there's no API for this. keytool evidently implements some custom method to generate a certificate. You can try something similar, but I suspect it would be quite painful.
Possibly less painful is to use the bouncycastle provider. It contains classes and methods to generate certificates. See http://www.bouncycastle.org/docs/docs1.5/index.html and in particular the certificate generators at http://www.bouncycastle.org/docs/docs1.5/org/bouncycastle/x509/package-summary.html -
Hi,
I expoted(EXP) data from database by using following command in Ms-Dos.
C:\ImpExp>exp userid=scott/tiger@orcl tables=emp
Now EXPDAT.DMP at C:\ImpExp.
How to import this file this into database table.
pls guide me.
Regards,
VenkatHi,
U forget about previous error message. Manuall mistake in command.
This is the error.
D:\ImpExp>imp scott/tiger@kzt0sy file=EXPDAT.DMP log=EXPDAT.DMP.log tables=emp3
My target table is emp3. This is empty need to load data.
Import: Release 10.2.0.1.0 - Production on Fri Jun 20 15:52:04 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options Export file created by EXPORT:V10.02.01 via conventional path import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set . importing SCOTT's objects into SCOTT IMP-00033: Warning: Table "EMP3" not found in export file Import terminated successfully with warnings. -
Database merge with the exp and imp...
Hi All,
I am very new to these dba activities. I have two databases with the same schema and has some data in both of it. Now I would like to merge both the databases and come up with one database. In this process I don't wanted to loose any data.
Does the oracle exp/imp helps in this scenario ? If not any other tools helps us in doing this?
What are the best practices to follow when we are doing this kind of work?
What kind of verifications we need to do pre/post merge ?
Any help would really be appreciated... Thank you in adavance...
K.NewBPELUser wrote:
Hi All,
I am very new to these dba activities. I have two databases with the same schema and has some data in both of it. Now I would like to merge both the databases and come up with one database. In this process I don't wanted to loose any data.
Does the oracle exp/imp helps in this scenario ? If not any other tools helps us in doing this?
What are the best practices to follow when we are doing this kind of work?
What kind of verifications we need to do pre/post merge ?
Any help would really be appreciated... Thank you in adavance...
K.What do you mean with "merging" data?
How many objects are in both schemas?
Are both schemas need to be merged in mutual way or in one way?
Do you have option to use MERGE command for each object in the schema?
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9016.htm#SQLRF01606
P.S. If the version of the database is greater than 9i, then use Data Pump (expdp/impdp) instead of deprecated exp/imp utitlies
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/ -
Virtual ESA appliance update and upgrade using static method
What are the static servers for updates and upgrading if you are using a virtual appliance ?
I know that the if you use a standard appliance they are:
downloads-static.ironport.com: 208.90.58.105 on port 80
update-manifests.ironport.com: 208.90.58.5 on port 443
updates-static.ironport.com: 208.90.58.25 on port 80
But I see that my virtual appliance is trying to go to "update-manifests.sco.cisco.com" - are there other differences for the virtual appliance ?Yes, I can confirm through my own experiences over the past week that the Virtual Appliances do not use the same update servers.
Virtual Appliances point to dynamichost update-manifests.sco.cisco.com - 208.90.58.6. I'm not sure about the static update IPs, as the static sub domains do not seem to exist on the sco.cisco.com and it looks like Cisco is using Akamai CDN to distribute updates over port 80. You may need to allow iyour Virtual ESAs out on port 80 any, and 443 seems to be a single host.
Also I found the following article most helpful for Virtual ESA Updates:
http://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/118065-maintainandoperate-esa-00.html -
Missing job schedulers after complete db exp and imp
We are using Oracle apps and the database version is 10.2.0.4 and inorder to delink the database and application we have run the export (using expdp) and run the import in different server (using impdp). Now the database is up and the application has been linked to the new database. The problem is I don't see any jobs (which was available in the database).
I don't see any rows in dba_scheduler_jobs for the custom jobs created by the users.
How do we migrate the jobs?
Regards,
ARSHi,
Check this thread : Jobs in schema export -
what is the primary difference between datapumps and imp/exp utilities?
Thank youThe 10g Utilities manual lists the new capabilities that Data Pump provides over imp/exp:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#i1010248
That is a pretty complete list. The original exp/imp chapter mentions two things that should be fairy obvious:
You need to use the original imp to import dump files generated by the original exp.
You need to use exp to generate files that can be read by imp on earlier (pre-10) versions of Oracle.
Last but not least, many of us have become accustomed to writing to and reading from named pipes with exp and imp. This is a popular way to compress or pipe across rsh/ssh on the fly. Unfortunately, this is impossible with Data Pump! I would say that is among the most strenuous complaints I hear about Data Pump.
Regards,
Jeremiah Wilton
ORA-600 Consulting
http://www.ora-600.net -
How to use " toFront() " method in java application and in which package or
How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.
The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".
Maybe you are looking for
-
DSO - What key fields and data fields in dso
Hi experts, I need to create a dso in between the cube and 2 data sources(2lis_11_vaitm, 2lis_12_vcscl) to stage the data. My question is: what key fields and data fields to choose for the dso? is there a standard dso to copy? please explain in detai
-
I'm sure this is a setting fix, but can't find it-. All of my windows for mac programs open when I turn on my computer, such that I have to close each one individually to get to my desk top. How do I adjust so none of them open unless I choose to?
-
Can you help unlocking iPhone 3gs
I have been in touch with iTunes and I was informed that iPhone 3gs which I bought from EBay over 3-4 years ago is looked on 02 UK, I got in touch with 02UK and my son bought me a credit £20 so 02 UK can unlock my iPhone 3gs remotely and afterward I
-
why my ipad doesn't sync wi-fi since I upgraded to iOS 5.1 and iTunes 10.6.0.40? I have a pc running windows 7 and my Bonjour service is started. I use the Remote app (airplay) normally but the ipad doesn't appear listed in iTunes to sync wi-fi.
-
Hi, I'm trying to create a custom report in ISE from the default report in the catalog AAA Protocols > Radius Authentications. I'm able to open it and then I click on the "Launch Interactive Viewer" which gives me the editing controls. However, all