Full database exp/imp between RAC and single database
Hi Experts,
we have a RAC database oracle 10GR2 with 4 node in linux. i try to duplicate rac database into single instance window database.
there are same version both database. during importing, I need to create 4 undo tablespace to keep imp processing.
How to keep one undo tablespace in single instance database?
any experience of exp/imp RAC database into single instance database to share with me?
Thanks
Jim
Edited by: user589812 on Nov 13, 2009 10:35 AM
JIm,
I also want to know can we add the exclude=tablespace on the impdp command for full database exp/imp?You can't use exclude=tablespace on exp/imp. It is for datapump expdp/impdp only.
I am very insteresting in your recommadition.
But for a full database impdp, how to exclude a table during full database imp? May I have a example for this case?
I used a expdp for full database exp. but I got a exp error in expdp log as ORA-31679: Table data object "SALE"."TOAD_PLAN_TABLE" has long columns, and longs can not >be loaded/unloaded using a network linkHaving long columns in a table means that it can't be exported/imported over a network link. To exclude this, you can use the exclude expression:
expdp user/password exclude=TABLE:"= 'SALES'" ...
This will exclude all tables named sales. If you have that table in schema scott and then in schema blake, it will exclude both of them. The error that you are getting is not a fatal error, but that table will not be exported/imported.
the final message as
Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is:
F:\ORACLEBACKUP\SALEFULL091113.DMP
Job "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 16:50:26Yes, the fact that it did not export one table does not make the job fail, it will continue on exporting all other objects.
. I drop database that gerenated a expdp dump file.
and recreate blank database and then impdp again.
But I got lots of error as
ORA-39151: Table "SYSMAN"."MGMT_ARU_OUI_COMPONENTS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
ORA-39151: Table "SYSMAN"."MGMT_BUG_ADVISORY" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
......ORA-31684: Object type TYPE_BODY:"SYSMAN"."MGMT_THRESHOLD" already exists
ORA-39111: Dependent object type TRIGGER:"SYSMAN"."SEV_ANNOTATION_INSERT_TR" skipped, base object type VIEW:"SYSMAN"."MGMT_SEVERITY_ANNOTATION" >already exists
and last line as
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 2581 error(s) at 11:54:57Yes, even though you think you have an empty database, if you have installed any apps or anything, it may create tables that could exist in your dumpfile. If you know that you want the tables from the dumpfile and not the existing ones in the database, then you can use this on the impdp command:
impdp user/password table_exists_action=replace ...
If a table that is being imported exists, DataPump will detect this, drop the table, then create the table. Then all of the dependent objects will be created. If you don't then the table and all of it's dependent objects will be skipped, (which is the default).
There are 4 options with table_exists_action
replace - I described above
skip - default, means skip the table and dependent objects like indexes, index statistics, table statistics, etc
append - keep the existing table and append the data to it, but skip dependent objects
truncate - truncate the existing table and add the data from the dumpfile, but skip dependent objects.
Hope this helps.
Dean
Similar Messages
-
Exp/imp between 10g and 9i
Hi Gurus,
In project we would like to transfer data from oracle 10g to 8i.
Option selected in exp data from 10g and import to 9i.
From 9i again export and import to 8i.
Is there any issue between 10g and 9i and 9i to 8i ?
Will normal exp file will work in 9i from 10g ?
Thanks in advance !!!!!!Hi NKU
EXP:
exp FILE=TEST.dmp tables=<<TABLE>> rows=Y STATISTCS=NONE
With the Partitioning, OLAP and Data Mining options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses US7ASCII character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table <<TABLE>> 18 rows exported
Export terminated successfully without warnings.
IMP
imp file=TEST.dmp tables=<<TABLE>> rows=Y STATISTICS=NONE
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit
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
import server uses US7ASCII character set (possible charset conversion)
. importing UKLINK_OWNER's objects into UKLINK_OWNER
. importing UKLINK_OWNER's objects into UKLINK_OWNER
. . importing table <<TABLE(same as above)>> 18 rows imported
Import terminated successfully without warnings.
But i have doubt of character converion issue .
I did statistics=NONE . -
Hi,
My database is having undo segment corruption.I have considered and tried a lot of things to come out of the situation,but didn't get any +ve result. So I have decided to take a full database export,rename the database,create a new database on the same system and import the full database in the new database.Will you plz tell me the steps to do this(full db import)? Plz include a wise syntax for full db exp-imp.
Thanks a lotIf your only identified problem was sudden undo corruption to an online instance and you followed the steps referenced on the Burleson site (switch to manual undo management, create a new undo tablespace, drop the old undo tablespace, and switch back to automatic undo management) and then the very next day encountered undo corruption again, I would recommend two simultaneous courses of action:
1) Get the hardware analyzed, this could be a signal of hard drive or controller problems.
2) Scour metalink for any bug references that may be related (or just go ahead and open an iTar).
If you persist in importing to create the database back on this same system and if you must use the same storage, I would at least try to get the file system or volume that the corruption was on taken offline and recreated.
Just an alternate view of things ... good luck! -
Difference between RAC and MySQL Cluster !
Difference between RAC and MySQL Cluster
Please write me in well explanation , with examples , needed useful link and all other stuffs.
(1)Italian dealers/distributors for MySQL
(2)Difference between RAC and MySQL Cluster
(3)Pricing about MySQL and PostgreSQL
(4)How and which type / Way to deliver support by MySQL
(5)Security features about MySQL Vs Oracle
(6)Management Console
MySQL Vs Oracle
Thanks in advance !
MySQL ClusterHa ha, most amusing.
I suggest you try googling for answers to these things. This is a site dedicated to the Oracle database, the questions are answered by volunteers (not Oracle employees) and we are primarily geeks rather than marketing droids. If you have a specific Oracle question please feel free to post anytime.
Thank you for your interest.
Arrivederci, APC -
Exp/Imp between different OS
Hi,
Could someone please help me clarify that is exp/imp between different OS possible(eg. exp in wind2000 and then imp in Unix)?
ThanksThis reply may be a bit late but I just saw your Q:
The answer is Yes, of course you in imp/exp between different OS, just ensure to transfer the dmp file(the export output) in Binary mode between different OS. -
The issue is the code is not inserting the good records into the MIE table. This is becasue of the error 'OtherError GFSTM_INS_SNURK_NEW_TABLES_PA.gfstm_ins_asn_journal_pr:ORA-01841: (full) year must be between -4713 and +9999, and not be 0' This error is throwing out because of space issue in dt_asn_shipped.
My requirement is to log error if any if not get the next record in the loop and insert it in the table if it has no error. The issue is good records are not getting inserted. The snurk_cmms_crct018_asn_journl in the cursor is a synonym which uses dblionk to connect to the remote db. The dt_asn_shipped data type is char(6) and the format is YYMMDD.
declare
CURSOR cur_asn_journal IS
SELECT NVL(TRIM(cd_asn_plant),' ') cd_asn_plant,
NVL(TRIM(no_journal),0) no_journal,
NVL(TRIM(cd_ship_from),' ') cd_ship_from,
TRIM(no_asn) no_asn,
DECODE(LENGTH(dt_asn_shipped),6, to_date(to_char(to_date(trim(dt_asn_shipped),'YYMMDD'),
'DD-MON-YY'),'DD-MON-YY'), '') dt_asn_shipped,
TRIM(dt_processed) dt_processed,
TRIM(in_manual) in_manual,
TRIM(ts_last_update) ts_last_update
FROM snurk_cmms_crct018_asn_journl;
BEGIN
FOR l_rec_asn_journal IN cur_asn_journal LOOP
BEGIN
INSERT INTO gfstmie_st_cmms_asn_journal
gsdb_site_code ,
journal_num,
gsdb_site_from_code,
adv_shipping_notice_cnum,
adv_sn_shipping_date,
processed_date,
manual_in_code,
cmms_last_update_cdate,
create_userid,
create_dts,
update_userid,
update_dts
) VALUES
l_rec_asn_journal.cd_asn_plant,
l_rec_asn_journal.no_journal,
l_rec_asn_journal.cd_ship_from,
l_rec_asn_journal.no_asn,
l_rec_asn_journal.dt_asn_shipped,
l_rec_asn_journal.dt_processed,
l_rec_asn_journal.in_manual,
l_rec_asn_journal.ts_last_update,
g_con_user_id,
l_dts_current_gmt,
g_con_user_id,
l_dts_current_gmt
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('l_num_exception_pt_7');
--To assign value to error attributes
l_str_email_body := GFSTU_MSG_CONTEXT_STACKER_PA.gfstu_add_msg_context_fn(
SQLERRM || l_str_process_track,
g_con_package_name || l_con_proc_name,
g_con_string_null);
l_rec_apm_error_attributes.job_run_sakey := l_num_job_run_id;
l_rec_apm_error_attributes.proj_acronym_code := GFSTM_PARM_SPECIFICATION_PA.g_con_proj_acronym_code_ta;
l_rec_apm_error_attributes.module_code := l_con_module_code;
l_rec_apm_error_attributes.notes_text := l_str_email_body;
l_rec_apm_error_attributes.msg_id := GFSTM_PARM_SPECIFICATION_PA.g_con_msg_id_invalid_date;
--Calling procedure to log and notify subscribers of transaction
--related errors and informational messages
GFSTM_COMMON_UTL_PA.gfstm_log_message_pr(
SUBSTR(l_str_email_body,1,2000),
g_con_string_null,
g_con_string_null,
SUBSTR(l_str_email_body,1,2000),
l_rec_apm_error_attributes,
g_con_string_null,
l_num_wait_time,
l_num_wait_interval_time,
l_str_msg_action_code,
l_num_oracle_error_code,
l_str_oracle_msg,
l_num_return_code,
l_num_status);
END;
END LOOP;
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('l_num_exception_pt_12');
DBMS_OUTPUT.PUT_LINE('l_num_exception_pt_2 '||l_str_procg_mode_code);
--Rollback uncommitted transactions
ROLLBACK;
--Assigning failure status
o_num_status := g_con_status_failure;
--Assigning procedure end time in GMT
l_dts_end_time := GFSTU_DATETIME_UTILITIES_PA.gfstu_to_gmt_fn;
--To assign value to error attributes
l_str_email_body := GFSTU_MSG_CONTEXT_STACKER_PA.gfstu_add_msg_context_fn(
SQLERRM || l_str_process_track,
g_con_package_name || l_con_proc_name,
g_con_string_null);
l_rec_apm_error_attributes.job_run_sakey := l_num_job_run_id;
l_rec_apm_error_attributes.proj_acronym_code := GFSTM_PARM_SPECIFICATION_PA.g_con_proj_acronym_code_ta;
l_rec_apm_error_attributes.module_code := l_con_module_code;
l_rec_apm_error_attributes.notes_text := l_str_email_body;
l_rec_apm_error_attributes.msg_id := GFSTM_PARM_SPECIFICATION_PA.g_con_msg_id_oracle;
--Calling procedure to log and notify subscribers of transaction
--related errors and informational messages
GFSTM_COMMON_UTL_PA.gfstm_log_message_pr(
SUBSTR(l_str_email_body,1,2000),
g_con_string_null,
g_con_string_null,
SUBSTR(l_str_email_body,1,2000),
l_rec_apm_error_attributes,
g_con_string_null,
l_num_wait_time,
l_num_wait_interval_time,
l_str_msg_action_code,
l_num_oracle_error_code,
l_str_oracle_msg,
l_num_return_code,
l_num_status);
--Calling procedure to update the job status
GFSTM_COMMON_UTL_PA.gfstm_update_job_status_pr(
l_num_job_run_id,
GFSTM_PARM_SPECIFICATION_PA.g_con_process_abort,
l_dts_end_time,
g_con_perf_metric_code,
g_con_zero,
g_con_n,
l_num_oracle_error_code,
l_str_oracle_msg,
l_num_return_code,
l_num_status);
END ;
Thanks,
VinodhHi,
Could you not have reduced your question to what is relevant?
You seem to be saying that this is your problem:
SELECT DECODE ( LENGTH (dt_asn_shipped),
6,
TO_DATE ( TO_CHAR ( TO_DATE ( TRIM (dt_asn_shipped), 'YYMMDD'), 'DD-MON-YY'), 'DD-MON-YY'),
dt_asn_shipped
FROM snurk_cmms_crct018_asn_journl;As far as I can see, problem might be that you decode on UNTRIMMED length.
Also, you could get rid of some the to_date(to_char(to_date), which is nothing more than simply to_date()
Try something like
SELECT CASE LENGTH (TRIM (dt_asn_shipped))
WHEN 6 THEN TO_DATE ( TRIM (dt_asn_shipped), 'YYMMDD')
END
dt_asn_shipped
FROM snurk_cmms_crct018_asn_journl;Regards
Peter -
Hi Experts,
I seem to be getting the error "Error ORA-01841: (full) year must be between -4713 and +9999, and not be 0" when my dates are in the year 2000. Here's my SQL:
DROP TABLE PER_ALL_ASSIGNMENTS_M_XTERN;
create table PER_ALL_ASSIGNMENTS_M_XTERN(
PERSON_NUMBER VARCHAR2(30 CHAR),
ASSIGNMENT_NUMBER VARCHAR2(30 CHAR),
EFFECTIVE_START_DATE DATE,
EFFECTIVE_END_DATE DATE,
EFFECTIVE_SEQUENCE NUMBER(4),
ASS_ATTRIBUTE_CATEGORY VARCHAR2(30 CHAR),
ASS_ATTRIBUTE1 VARCHAR2(150 CHAR),
ASS_ATTRIBUTE_NUMBER20 NUMBER,
ASS_ATTRIBUTE_DATE1 DATE,
ASS_ATTRIBUTE_DATE2 DATE,
ASS_ATTRIBUTE_DATE3 DATE,
ASS_ATTRIBUTE_DATE4 DATE,
ASS_ATTRIBUTE_DATE5 DATE,
ASS_ATTRIBUTE_DATE6 DATE,
ASS_ATTRIBUTE_DATE7 DATE,
ASS_ATTRIBUTE_DATE8 DATE,
ASS_ATTRIBUTE_DATE9 DATE,
ASS_ATTRIBUTE_DATE10 DATE,
ASS_ATTRIBUTE_DATE11 DATE,
ASS_ATTRIBUTE_DATE12 DATE,
ASS_ATTRIBUTE_DATE13 DATE,
ASS_ATTRIBUTE_DATE14 DATE,
ASS_ATTRIBUTE_DATE15 DATE,
ASG_INFORMATION_CATEGORY VARCHAR2(30 CHAR),
ASG_INFORMATION1 VARCHAR2(150 CHAR),
ASG_INFORMATION_NUMBER20 NUMBER,
ASG_INFORMATION_DATE1 DATE,
ASG_INFORMATION_DATE2 DATE,
ASG_INFORMATION_DATE3 DATE,
ASG_INFORMATION_DATE4 DATE,
ASG_INFORMATION_DATE5 DATE,
ASG_INFORMATION_DATE6 DATE,
ASG_INFORMATION_DATE7 DATE,
ASG_INFORMATION_DATE8 DATE,
ASG_INFORMATION_DATE9 DATE,
ASG_INFORMATION_DATE10 DATE,
ASG_INFORMATION_DATE11 DATE,
ASG_INFORMATION_DATE12 DATE,
ASG_INFORMATION_DATE13 DATE,
ASG_INFORMATION_DATE14 DATE,
ASG_INFORMATION_DATE15 DATE
organization external
( default directory APPLCP_FILE_DIR
access parameters
( records delimited by newline skip 1
badfile APPLCP_FILE_DIR:'PER_ALL_ASSIGNMENTS_M_XTERN.bad'
logfile APPLCP_FILE_DIR:'PER_ALL_ASSIGNMENTS_M_XTERN.log'
fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
(PERSON_NUMBER,
ASSIGNMENT_NUMBER,
EFFECTIVE_START_DATE CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
EFFECTIVE_END_DATE CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
EFFECTIVE_SEQUENCE,
ASS_ATTRIBUTE_CATEGORY,
ASS_ATTRIBUTE1,
ASS_ATTRIBUTE_NUMBER20,
ASS_ATTRIBUTE_DATE1 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE2 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE3 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE4 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE5 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE6 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE7 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE8 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE9 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE10 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE11 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE12 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE13 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE14 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASS_ATTRIBUTE_DATE15 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_CATEGORY,
ASG_INFORMATION1,
ASG_INFORMATION_NUMBER20,
ASG_INFORMATION_DATE1 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE2 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE3 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE4 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE5 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE6 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE7 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE8 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE9 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE10 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE11 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE12 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE13 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE14 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY",
ASG_INFORMATION_DATE15 CHAR(20) DATE_FORMAT DATE MASK "DD-MON-YYYY"
location ('PER_ALL_ASSIGNMENTS_M.csv')
REJECT LIMIT UNLIMITED;
...and getting errors when data looks like the following:
E040101,EE040101,*1-Aug-2000*,31-Dec-4712,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040101,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,1-Jan-2012,31-Dec-2012,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
...error message:
error processing column EFFECTIVE_START_DATE in row 19 for datafile /u05/dbadir/jmf/incident_logs/PER_ALL_ASSIGNMENTS_M.csv
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
Thanks,
ThaiHere is a snippet of the bad file data:
E040110,EE040110,01-Aug-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040110,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,27667.2,27667.2,27667.2,27667.2,27667.2,27667.2,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E040100,EE040100,01-May-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040100,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E040101,EE040101,01-Aug-00,31-Dec-12,1,,NDVC,YES,DE,SFC,N,STIP Plan - Pressure,,,,,,,E040101,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5,,,,,,,,,,,,31113,31113,31113,31113,31113,31113,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E000916,EE000916,01-Oct-00,31-Dec-12,1,,NDVC,YES,NL,SFC-Commercial,E,SIP Plan - Control Technologies,,,,,,,E000916,21000000,555000,99000,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10,,,,,,,,,,,,34905.65,34905.65,34905.65,34905.65,34905.65,34905.65,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E000807,EE000807,03-Jan-00,31-Dec-12,1,,NDVC,YES,FR,SFC-Commercial,E,STIP Plan - Cross BU,,,,,,,E000807,,,,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,,,,,,,,,,,,35448.56,35448.56,35448.56,35448.56,35448.56,35448.56,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E000851,EE000851,25-Apr-00,31-Dec-12,1,,NDVC,YES,FR,SFC-Commercial,E,SIP Plan - Control Technologies,,,,,,,E000851,21000000,555000,99000,2080,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,13,,,,,,,,,,,,43283.76,43283.76,43283.76,43283.76,43283.76,43283.76,,,01-Jan-12,31-Dec-12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
So, the successfully loaded data is being loaded where year=2003 in the CSV as year=0003. Even though the data is loaded fine the data is not correct. For some reason the external table is set to have the year truncated. -
Assignment Between Structure and Single Field - CL_ABAP_CONTAINER_UTILITIES
Hi, Need some help on this as I'm not familiar with Java programming.
Basically in ABAP, we can assign a structure (with complex data type) into a field (please refer to link below).
Now we need to do similar thing in PI, since PI only support Java then we need to perform similar logic as in CL_ABAP_CONTAINER_UTILITIES =>FILL_CONTAINER_C, but in Java. Understand that there's no concept of structure in Java, in this case PI will receive multiple fields (with different data type) and need to combine them into one field.
I tried few Java command/method but it doesnt give me the same result as in the ABAP class. Appreciate your help if you know anything about this or some sample program that i can test. thanks!
SAP Help Reference for ABAP
[ABAP - Assignment Between Structure and Single Field|http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm]Hello Rika,
In java we have collection framework instead...
As per your requirement I understood :
1. You will get a list of different type of objects as input.
2. You want to club it in one unit....right...
3. Once done.....I dont know what you will do with that.....I guess pass it somewhere.....
Now, You can use ArrayList in java to club all your objects in one unit....and send it to any function you want....
Arraylist list= new ArrayList();
list.add(new MachineGun());
list.add(new Gun());
But there be carefull when you extract data from List....as you need to type cast them accordingly....
Start trying it...and revert back if you face any problems.....
While extracting you will have to use something like :
if(list.get(0).getClass().getSimpleName().equals("MachineGun")){
//here you can safely cast in the right class
MachineGun mgun= (MachineGun )list.get(0); -
Diference between RAC and Grid
I have 9i r2 RAC.
What is the diference between 10G RAC and 10g Grid?
What are my options to migrate?
What are the advantages and disadvantages between migrating to 10g RAC or migrating to 10g Grid?A lot of the differences are cosmetic. Parallel server in 8i became RAC in 9i became Grid in 10g. There is no such thing as 9i Parallel Server, nor is there such a thing as 10g RAC, at least from a marketing standpoint. Once you understand that, the major differences are incremental-- 10g is probably more maintainable and easier to set up than 9i, 10g is probably more scalable as well.
Migration is just a database upgrade. The upgrade guide will enumerate your options.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
DB Link between RAC and a standalone Database - HELP
Hi Guys,
I have a database DB1 on server1 (192.168.100.10), and then I have a RAC database on physical servers PROD1 192.168.100.1, and PROD2 192.168.100.5 with a load balancer. These two have virtual IPs 192.168.100.2 and 192.168.100.6. I have managed to create a DB Link on the RAC db pointing to DB1 with success, but when I create a db link on the DB1 server pointing to the RAC it fails. TNSPING works fine if I refer to the physical IP, but when I try the virtual IP it fails, but once I logon to the database I fail to connect using a db link or conn user1@prod1_link. Below are my tnsnames.ora entries.
#virtual IPs
PROD=
(DESCRIPTION=
(ADDRESS_LIST=
(LOAD_BALANCE=YES)
(FAILOVER=YES)
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.2)(PORT=1529))
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.6)(PORT=1529))
(CONNECT_DATA=
(SERVICE_NAME=PROD)
PROD1=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.2)(PORT=1529))
(CONNECT_DATA=
(SERVICE_NAME=PROD)
(INSTANCE_NAME=PROD1)
PROD2=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.6)(PORT=1529))
(CONNECT_DATA=
(SERVICE_NAME=PROD.econet.co.zw)
(INSTANCE_NAME=PROD2)
#physical IPs
P1_PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.1)(PORT = 1529))
(CONNECT_DATA =
(SID=PROD)
(INSTANCE_NAME=PROD1)
P2_PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.5)(PORT = 1529))
(CONNECT_DATA =
(SID=PROD)
(INSTANCE_NAME=PROD1)
oracle@server1> tnsping prod1
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 12-OCT-2010 11:52:06
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.2)(PORT=1529)) (CONNECT_DATA= (SERVICE_NAME=PROD) (INSTANCE_NAME=PROD1)))
TNS-12541: TNS:no listener
oracle@server1>
oracle@server1>
oracle@server1> tnsping p1_prod
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 12-OCT-2010 11:09:28
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.1)(PORT = 1529))) (CONNECT_DATA = (SID=PROD) (INSTANCE_NAME=PROD1)))
OK (0 msec)
oracle@server1>
SQL> Create Database Link prod_link
Connect to user1
identified by password
using 'P1_PROD';
Database link created.
SQL>
SQL> select * from global_name@prod_link;
select * from global_name@prod_link
ERROR at line 1:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
SQL>
Help... sorry I could format the above using the "code" text.
Regards,
Kevin
Edited by: Kevin Honde on Oct 12, 2010 12:10 PMTSTRAC1 =
(DESCRIPTION=
(LOAD_BALANCE=OFF)(FAILOVER=ON)
(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.96.165)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.96.167)(PORT=1521))
(CONNECT_DATA=(SID=TSTRAC1)
(INSTANCE_ROLE=PRIMARY)
(SERVER=DEDICATED)
(FAILOVER_MODE=
(BACKUP=TSTRAC2)
(TYPE=SESSION)(METHOD=BASIC)
(RETRIES=10)(DELAY=3))))
TSTRAC2 =
(DESCRIPTION =
(LOAD_BALANCE = OFF)(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.96.167)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.96.165)(PORT = 1521))
(CONNECT_DATA = (SID = TSTRAC2)
(SERVER = DEDICATED)
(FAILOVER_MODE =
(TYPE = SESSION)(METHOD = BASIC)
(RETRIES = 180)(DELAY = 5))))
-- 10.10.96.165 VIP of node 1
-- 10.10.96.167 VIO of node 2
This is the TNS entry for one of RAC DB. You can change accordingly. Then first try to log in to the RAC db from your single instance database. If you can connect successfully then you can create the DB LINK easily.
Regards
Asif Kabir -
Exp/imp procedures, functions and packages question
Hi
I've a 9i R2 version Oracle database. I would like to export procedures, functions and packages from a schema. How do I do that?
Is there any script or command lines can provide?
ThanksHello user12259190.
You can do an export of the user itself, excluding table data as inH:\>exp
Export: Release 10.2.0.1.0 - Production on Tue Dec 22 11:22:52 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: db_user@db_sid
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Enter array fetch buffer size: 4096 >
Export file: EXPDAT.DMP >
(2)U(sers), or (3)T(ables): (2)U > 2
Export grants (yes/no): yes > no
Export table data (yes/no): yes > no
Compress extents (yes/no): yes > no
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses UTF8 character set (possible charset conversion)
Note: table data (rows) will not be exported
Note: grants on tables/views/sequences/roles will not be exported
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user DB_USER
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user DB_USER
About to export DB_USER's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export DB_USER's tables via Conventional Path ...
. . exporting table TABLE_NAMEs
EXP-00091: Exporting questionable statistics.
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully with warnings.Unfortunately, you can't export just the objects you want to unless they are tables.
Using import (imp) you can list the content of your packages, procedures, functions, views, etc. and perhaps that will give you what you need.
Another choice would be to useSELECT * FROM user_source ORDER BY 2, 1, 3;to list the code.
Hope this helps,
Luke -
so I bought an HD big enough to prevent this happening but I get the on error that makes me quit all app on a daily basis. I check on info and says that HD sometimes has nearly 900GB used and other times 500 and bit, in both ocasions have checked after the error appears and despite the difference between available space forces me to quit all applications anyhow.
1.- I dont understand why the massive fluctuation!?
2.- I resist to believe that you must keep less than 500 GB in your hard drive if you have bought a more expensive HD (1T) so surely there must be something wrong.
3.- Admitely am a newby to mac so half the posts already answered here do not make any sense to me as they are very high spec with terms am not yet familiar with, if you can help me using basic guidelines and steps to follow you would make my month as I cant even work here anymore, am about to despair, have tried all possible options including the failed Mckeeper which I had to remove with Mac cleaner application in the end, Onyx and I review my files constantly, emptying the bin etc except checking if any email was been sent countless times and stayed stuck somewhere in my system as I read somewhere because I just dont know how to do that, it might be an option.
I also have an annoying pop up from BT showing up every now and then as well which tell me I have given permission and which havent got a clue how to cancel, this makes me wonder if is there something like a virus trojan or similar mac equivalent on my system causing all of this problem.
I'm sorry that I migrated to avoid these kind of problems but found a lot easier to run an antivirus on my pc than trying to solve a mac problem! Please help meFirst, empty the Trash if you haven't already done so.
Use a tool such as OmniDiskSweeper to explore your volume and find out what's taking up the space.
Proceed further only if the problem hasn't been solved.
ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To really see everything, you have to run it as root.
Back up all data now if you haven't already done so. No matter what happens, you should be able to restore your system to the state it was in at the time of that backup.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
After installing ODS in the Applications folder, drag or copy — do not type — the following line into the Terminal window, then press return:
sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
I don't recommend that you make a habit of this. Don't delete anything while running ODS as root. When you're done with it, quit it and also quit Terminal. -
Problem with ORA-06502 when exp/imp between two identical versions
Hi
I have two identical systems, one system that I develop on and
the test system. The two systems have the same version of the
Portal. When I export and then import the application from the
systems I get a error message on the test system.
ORA-06502: PL/SQL: numeric or value error: character to number
conversion error (WWV-11230)
This error does not appear on the developing system.
The application I have is a form on a table, and I have some
buttons with PL/SQL handels on them. I tried to remove this code
and export with no luck.
Please help.
The system:
Windows NT
Oracle Portal 3.0.8.9.8
Thanks
Jvrgen SwensenCould you pls confirm : Have you exported & Imported the shared
components used by that form?
If you are not too worried about the templates/fonts then try
this:
Click on "Edit" link against that form and click "OK".
Thanx,
Chetan. -
ORA-01841 - (full) year must be between -4713 and +9999, and not be 0
Hi Comunnity,
Let me explain the scenario:
We want to replicate a number of Discoverer reports, adding more columns to the reports. Due to the internal structure of the views and materialized tables, we can not make the joins inside the Discoverer Administration Edition, so we have decided to replicate the original materialized table adding the columns in order to get what we want. So the new materialized table has built as follows:
CREATE TABLE APPS.GUZMAN_STOCK_DEPRE_EXIST_MAT_X
EMPRESA VARCHAR2(240 BYTE),
COD_ORGANIZACION NUMBER,
COD_SECCION VARCHAR2(40 BYTE),
SECCION VARCHAR2(4000 BYTE),
FAMILIA VARCHAR2(40 BYTE),
NOMBRE_PRODUCTO VARCHAR2(240 BYTE),
DESCRIPCION_ARTICULO VARCHAR2(240 BYTE),
UNIDAD_EXISTENCIA_ACT NUMBER,
PRECIO_MEDIO NUMBER,
FECHA_ULT_VENTA DATE,
FECHA_ULT_COMPRA DATE,
FECHA_ULT_MOVIMIENTO DATE,
PRECIO_ULT_COMPRA NUMBER,
CLASE_UNIDAD VARCHAR2(40 BYTE),
COD_ORG_INV NUMBER,
ORG_INV_NAME VARCHAR2(240 BYTE),
COD_ARTICULO NUMBER,
AÑO VARCHAR2(2 BYTE),
MES VARCHAR2(2 BYTE),
ULTIMO_DIA_TRANS DATE,
SEIS_MESES_ANTES DATE,
DOCE_MESES_ANTES DATE,
DIECIOCHO_MESES_ANTES DATE,
SEIS_MESES NUMBER,
SIETE_DOCE_MESES NUMBER,
TRECE_DIECIOCHO_MESES NUMBER,
FCOMVACIA NUMBER,
TIPO_ARTICULO VARCHAR2(80 BYTE),
TRANSACTION_ID NUMBER,
FECHA_MOVIMIENTO DATE,
TIPO_MOVIMIENTO VARCHAR2(80 BYTE)
TABLESPACE APPLSYSD
PCTUSED 40
NOMONITORING;
The bold fields are the new ones. So we added the materialized table as a new folder in our working business area and add the following new intems:
Valor Compra = CASE WHEN Precio Ult Compra = 0 THEN Importe Stocks ELSE Unidad Existencia Act*Precio Ult Compra END
Importe Stocks = Unidad Existencia Act*Precio Medio
Depreciación = CASE WHEN Valor Compra < Importe Stocks THEN Importe Stocks-Valor Compra ELSE 0 END
DiasMes = CASE WHEN ((((((Mes = '01' OR Mes = '03') OR Mes = '05') OR Mes = '07') OR Mes = '08') OR Mes = '10') OR Mes = '12') THEN 31 WHEN (((Mes = '04' OR Mes = '06') OR Mes = '09') OR Mes = '11') THEN 30 ELSE 28 END
fecha_MES = TO_NUMBER(CONCAT(DiasMes,Mes))
Nueva_Fecha = TO_DATE(CONCAT(fecha_MES,Ano))
Dias = NVL(Nueva_Fecha-Fecha Ult Venta,0)
PorcenDepre = CASE WHEN Dias = 0 AND DiasC < 181 THEN 0 WHEN Dias = 0 AND DiasC > 180 THEN 100 WHEN Dias < 181 THEN 0 WHEN Dias < 361 THEN 25 WHEN Dias < 540 THEN 50 WHEN Dias > 541 THEN 100 ELSE 0 END
Valor Depr = Valor Compra*PorcenDepre/100
DiasC = NVL(Nueva_Fecha-Fecha Ult Compra,0)
PorcenDepreC = CASE WHEN DiasC = 0 THEN 100 WHEN DiasC < 181 THEN 0 WHEN DiasC < 361 THEN 25 WHEN DiasC < 540 THEN 50 WHEN DiasC > 541 THEN 100 ELSE 0 END
Valor DepreC = Valor Compra*PorcenDepreC/100
T6 = CASE WHEN Unidad Existencia Act >= SEISMESES THEN SEISMESES ELSE Unidad Existencia Act END
T12 = CASE WHEN Unidad Existencia Act-T6 > DOCEMESES THEN DOCEMESES WHEN Unidad Existencia Act-T6 < DOCEMESES THEN Unidad Existencia Act-T6 WHEN Unidad Existencia Act-T6 = DOCEMESES THEN Unidad Existencia Act-T6 END
T18 = CASE WHEN Unidad Existencia Act-( T6+T12 ) > DIECIOCHOMESES THEN DIECIOCHOMESES WHEN Unidad Existencia Act-( T6+T12 ) < DIECIOCHOMESES THEN Unidad Existencia Act-( T6+T12 ) WHEN Unidad Existencia Act-( T6+T12 ) = DIECIOCHOMESES THEN Unidad Existencia Act-( T6+T12 ) END
TR = Unidad Existencia Act-( T6+T12+T18 )
DT6 = T6*Precio Medio*0/100
DT12 = ( T12*Precio Medio )*25/100
DT18 = T18*Precio Medio*50/100
DTR = TR*Precio Medio*100/100
DTOTAL = DT6+DT12+DT18+DTRVCIA+DFCOMPVCIA
SEISMESES = CASE WHEN NVL(Seis Meses,0) < 0 THEN 0 ELSE NVL(Seis Meses,0) END
DOCEMESES = CASE WHEN NVL(Siete Doce Meses,0) < 0 THEN 0 ELSE NVL(Siete Doce Meses,0) END
DIECIOCHOMESES = CASE WHEN NVL(Trece Dieciocho Meses,0) < 0 THEN 0 ELSE NVL(Trece Dieciocho Meses,0) END
FCOMPVCIA = DECODE(Fecha Ult Compra,NULL,Unidad Existencia Act,0)
TRVCIA = TR-FCOMPVCIA
DTRVCIA = TRVCIA*Precio Medio*100/100
DFCOMPVCIA = FCOMPVCIA*Precio Medio*100/100
Due to Discoverer does not allow foreign characters (ñ), we have changed the name of Field Año to Ano (as you can check in the Nueva_Fecha calculated field).
Now, when we select the fields (Empresa, Cod Sección, Nombre Producto, Unidad Existencia Act, Precio Medio, Fecha Ult Venta, Fecha Ult Compra, Fecha Ult Movimiento, Precio Ult Compra, Org Inv Name, Ano, Mes, Valor Compra, Importe Stocks, Depreciación, Dias, PorcenDepre, Valor Depr, DiasC, PorcenDepreC, ValorDepreC) in order to build a new report, Discoverer shows us the ORA-01841 Error.
Can be produced the error by the way in which discoverer stores the Nueva_Fecha Field?, cause as we check the field in Adminostration Edition, it appears as TO_DATE(CONCAT(fecha_MES,'Ano')) (with the field Ano in simple quotes), or just by any other circumstance?
Thanks a lot for your help.
Luis.
Update:*
It seems that the problem comes with the item created in Discoverer Administration Edition "Nueva_Fecha":
Nueva_Fecha = TO_DATE(CONCAT(fecha_MES,Ano))
(Keep in mind that:
fecha_MES = TO_NUMBER(CONCAT(DiasMes,Mes))
DiasMes = CASE WHEN ((((((Mes = '01' OR Mes = '03') OR Mes = '05') OR Mes = '07') OR Mes = '08') OR Mes = '10') OR Mes = '12') THEN 31 WHEN (((Mes = '04' OR Mes = '06') OR Mes = '09') OR Mes = '11') THEN 30 ELSE 28 END
), so any created field that uses Nueva_Fecha or is derivated from Nueva_Fecha causes the error (e.g. --> Dias = NVL(Nueva_Fecha-Fecha Ult Venta,0))
Then; How can we configure the field in order that discoverer deals with it as a date field?
Regards,
Luis.
Edited by: GGOracle User on 27-may-2010 15:23Hi,
I think you forgot the separator in the string you want to convert to date.
Your problem lies in the format of the date you are trying to create.
try
Nueva_Fecha = TO_DATE(DiasMes||'-'||Mes||'-'||Ano ,'DD-MM-YYYY')
BTW
you can use || instead of CONCAT so that you can concatenate more than 2 values each time
Tamir -
I want to take full exp and imp it to new db, i tried one imp but ended up errors....
What would be the command for full db exp , imp db with data which should end without warnings?. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting triggers
EXP-00056: ORACLE error 1422 encountered
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 55
ORA-06512: at line 1
EXP-00056: ORACLE error 1422 encountered
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 55
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully
Maybe you are looking for
-
How to re-instantiate my movie/swf
hi, here's my scenario i have set of buttons that plays different media types, 4 buttons, 1 for video and 1 for audio 1 for audio podcast and video podcast. and whenever i click on a button it should play an in my player(flvplayback component).and th
-
Internal Order: Change Co Code and Controlling Area
Hi, We have setup internal order -> <i><b>customised</b></i> order type, to store data regarding our projects. The setup involves choosing a Controlling Area which will inherit the Company Code (1:1 mapping between controlling area & co code) once we
-
Anyone else expect original capture date to be retained when transcoding?
I would consider this a bug since knowing the date of original capture is an integral part of project asset management. Bug report: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
-
Define Number Range for Reference Number
Hi all, I am trying to maintain Different Number ranges for Loans in ESS. Once i maintain Define Number Range for Reference Number in Loans ESS and trying to raise a new loan from ESS is till see that the ref number is still displayed 0 while raising
-
When you visit a ftp site with Internet Explorer, you can click File/Login as... and login to see files that have been uploaded. I cannot find this function under Firefox.