ORA-01727 during impdp transportable datafiles:numeric precision specifier
I started impdp the rman converted the datafiles into tartget and got error on one of the table:
ORA-01727: numeric precision specifier is out of range 1 to 38
I tried to fix it by create the table definition by change several columns number (126) to number (38), it worked, and then I tried to impdp again with tables=tablename
content=data_only, it give me error that the imp dump file is specific for transportable tablespace.
I dont know how to fix this issue. Can anybody help on this?
Thanks in advance.
Here is the error after I created the table and then trying to import the data:
impdp system/password dumpfile=dp_tts.dmp table_exists_action=APPEND tables=asset.customer_ticket content=data_only;
Import: Release 11.2.0.3.0 - Production on Mon May 6 01:01:41 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
ORA-39002: invalid operation
ORA-39061: import mode TABLE conflicts with export mode TRANSPORTABLE
Similar Messages
-
- ORA-01727: numeric precision specifier is out of range (1 to 38)
What is cause of above error??
SQL> SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_task_1') from DUAL;
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK_1')
GENERAL INFORMATION SECTION
Tuning Task Name : my_sql_tuning_task_1
Tuning Task Owner : SYS
Workload Type : Single SQL Statement
Scope : COMPREHENSIVE
Time Limit(seconds): 3600
Completion Status : COMPLETED
Started at : 09/27/2012 13:24:45
Completed at : 09/27/2012 13:24:45
Schema Name: PDS
SQL ID : 4wv8x1b10dvk0
SQL Text : INSERT INTO dlg_participant
(dp_dg_id, dp_dlg_id, dp_customer_id, dp_context,
dp_inserted_timestamp, dp_moved_timestamp, dp_active,
dp_internal_id)
(SELECT
cast(:1 as number(:"SYS_B_0")),
cast(:2 as number(:"SYS_B_1")),
mh_customer_id,
mh_context,
SYSDATE,
SYSDATE,
cast(:3 as number(:"SYS_B_2")),
cast(:4 as number(:"SYS_B_3"))
FROM
(SELECT
Relations.MARE_ID as mh_customer_id,
:"SYS_B_4" as mh_context,
null as mh_participant_id
FROM
(select *
from Testuser.RelationsEnriched_10M
) Relations
WHERE
((:5 >= Relations.MARE_ID))) AND
NOT EXISTS (SELECT
dp_id
FROM
dlg_participant,
dlg_group
WHERE
(dp_dg_id = dg_id) AND
(dg_dlg_id = :6) AND
(dp_active = :7) AND
(dp_customer_id = Relations.MARE_ID))) mh_container)
Bind Variables :
2 - (NUMBER):9
4 - (NUMBER):9
6 - (NUMBER):18
8 - (NUMBER):18
10 - (NUMBER):1500000
11 - (NUMBER):1053
12 - (NUMBER):0
ERRORS SECTION
- ORA-01727: numeric precision specifier is out of range (1 to 38)
-------------------------------------------------------------------------------Strange as none of the number datatype is more than 38
SQL> desc testuser.relationsenriched_10m
Name Null? Type
MAEX_VALUE_CODE_002 NUMBER(38)
MAEX_PHONE_IND_DATE DATE
MAEX_TOTAL_SWITCH_DATE DATE
MAEX_VALUE_CODE_002_DATE DATE
MARE_COMP_FS_PC VARCHAR2(199)
MARE_DEALER_RETAIL VARCHAR2(7)
MARE_CONSODATA_IND VARCHAR2(2)
MAEX_VALUE_CODE_003 NUMBER(38)
MARE_EXT_KEY1_NR VARCHAR2(199)
MARE_GM_CARD_CODE VARCHAR2(199)
MAEX_LAST_CHANGE_DATE DATE
MAAD_MARE_ID NUMBER(38)
MAEX_MAIL_IND_DATE DATE
MARE_PERS_TITLE VARCHAR2(6)
MARE_EXT_KEY3_NR VARCHAR2(199)
MARE_BSM_DATE VARCHAR2(199)
MARE_ID NUMBER(38)
MARE_GM_CARD_STATUS VARCHAR2(199)
MAAD_PREFERED_IND VARCHAR2(2)
MAEX_SMS_IND_DATE DATE
MARE_RELATED_CODE VARCHAR2(199)
MARE_FAX FLOAT(126)
MACA_MARE_ID NUMBER(38)
MACA_REGDATE_OWNER_YEAR NUMBER(38)
MAEX_EMAIL_IND_DATE DATE
MAEX_MAILABLE_IND6 VARCHAR2(2)
MARE_PERS_LAST_NAME VARCHAR2(42)
MARE_PERS_SALUTATION VARCHAR2(9)
MARE_PERS_FIRST_NAMES VARCHAR2(51)
MARE_SUB_TYPE VARCHAR2(2)
MACA_PREFERED_IND VARCHAR2(2)
MAEX_CONTROL_GROUP_DATE DATE
MARE_MOBILE_PHONE VARCHAR2(21)
MARE_COMP_ID NUMBER(38)
MARE_EXT_KEY1_CHAR VARCHAR2(16)
MARE_FIRST_CONTACT_DATE DATE
MARE_MOI1_DESCR VARCHAR2(21)
MAEX_MAILABLE_IND9 VARCHAR2(2)
MARE_MOI1 VARCHAR2(11)
MARE_MAAD_ID_T NUMBER(38)
MARE_COMP_SIZE_CAT NUMBER(38)
MAEX_SMS_IND VARCHAR2(2)
MARE_PERS_LAST_NAME_SECOND VARCHAR2(15)
MAEX_VALUE_CODE_001_DATE DATE
MARE_ORDER_T NUMBER(38)
MARE_BSM_IND VARCHAR2(2)
MACA_BRAND VARCHAR2(12)
MACA_DEALER_RETAIL VARCHAR2(7)
MARE_HOME_PHONE VARCHAR2(21)
MAEX_MAIL_IND VARCHAR2(2)
MARE_PERS_BIRTH_DATE DATE
MARE_CNSMR_TYPE VARCHAR2(2)
MAEX_MAILABLE_IND5 VARCHAR2(2)
MARE_PERS_AGE NUMBER(38)
MAEX_MAILABLE_IND1 VARCHAR2(2)
MARE_INSRC_RNWL_DATE DATE
MACA_NEW_USED VARCHAR2(5)
MARE_LOAD_DATE DATE
MARE_PERS_MAR_STATUS VARCHAR2(199)
MARE_PERS_PREFIX VARCHAR2(7)
MARE_COMP_SIZE NUMBER(38)
MAEX_VALUE_CODE_100_DATE DATE
MARE_HISTORY_FILE VARCHAR2(26)
MARE_COMP_NAME VARCHAR2(108)
MARE_IDX_T VARCHAR2(51)
MARE_DEALER_RETAIL_NAME VARCHAR2(41)
MACA_OWNER_TYPE VARCHAR2(2)
MARE_CREATION_DATE DATE
MARE_MACA_ID_T NUMBER(38)
MARE_EXT_KEY3_CHAR VARCHAR2(199)
MAAD_POSTAL_CODE VARCHAR2(8)
MAEX_MARE_ID NUMBER(38)
MARE_CNSMR_TYPE_CODE NUMBER(38)
MARE_SOURCE VARCHAR2(5)
MARE_LAST_CONTACT_DATE DATE
MARE_EXT_KEY2_CHAR VARCHAR2(199)
MAEX_ID NUMBER(38)
MAEX_TOTAL_SWITCH VARCHAR2(2)
MARE_EMAIL VARCHAR2(53)
MARE_DEALER_SERV_NAME VARCHAR2(41)
MARE_WORK_PHONE VARCHAR2(21)
MAEX_VALUE_CODE_100 NUMBER(38)
MAEX_PHONE_IND VARCHAR2(2)
MARE_AERD VARCHAR2(199)
MARE_SPS_FILE_ID NUMBER(38)
MAEX_LOAD_DATE DATE
MARE_MOI5 VARCHAR2(11)
MAEX_MAILABLE_IND7 VARCHAR2(2)
MAEX_VALUE_CODE_001 NUMBER(38)
MARE_COMP_NAME_2 VARCHAR2(172)
MARE_SOFI_NR VARCHAR2(17)
MARE_COMP_CODE VARCHAR2(199)
MARE_COMP_FS_CC VARCHAR2(199)
MAEX_MAILABLE_IND4 VARCHAR2(2)
MARE_DEALER_PREF VARCHAR2(7)
MARE_LANG_CODE VARCHAR2(3)
MACA_REGDATE_CAR_YEAR NUMBER(38)
MARE_PERS_INITIALS VARCHAR2(7)
MARE_DEAR_SALUTATION VARCHAR2(50)
MAEX_MAILABLE_IND8 VARCHAR2(2)
MAEX_TITLE_IND VARCHAR2(2)
MARE_MATCHING_IDX VARCHAR2(199)
MARE_MOI3 VARCHAR2(11)
MARE_DEALER_PREF_NAME VARCHAR2(2)
MARE_ENVELOPE_NAME VARCHAR2(199)
MARE_PERS_CHILD_UNDER_18 VARCHAR2(199)
MARE_MOI2 VARCHAR2(11)
MARE_RELATED_DESCR VARCHAR2(199)
MARE_EXT_KEY2_NR VARCHAR2(199)
MARE_PERS_GENDER VARCHAR2(2)
MACA_MODEL VARCHAR2(16)
MARE_PERS_HH_SIZE VARCHAR2(199)
MAEX_TITLE_IND_DATE DATE
MARE_LAST_CHANGE_DATE DATE
MARE_MOI4 VARCHAR2(11)
MAEX_MAILABLE_IND2 VARCHAR2(2)
MARE_DEALER_SERV VARCHAR2(7)
MAEX_VALUE_CODES VARCHAR2(25)
MARE_NAME_T VARCHAR2(51)
MAEX_VALUE_CODE_003_DATE DATE
MARE_PERS_HH_CARS VARCHAR2(199)
MAEX_MAILABLE_IND3 VARCHAR2(2)
MARE_ERD NUMBER(38)
MAEX_CREATION_DATE DATE
MARE_IERD VARCHAR2(199)
MAEX_CONTROL_GROUP NUMBER(38)
MAEX_EMAIL_IND VARCHAR2(2)
MARE_COMP_FS_TOT VARCHAR2(199)
MARE_RELT_ID NUMBER(38)
MARE_PERS_ID NUMBER(38)
SQL> desc pds.dlg_participant
Name Null? Type
DP_ID NOT NULL NUMBER(18)
DP_DG_ID NOT NULL NUMBER(9)
DP_DLG_ID NOT NULL NUMBER(9)
DP_CUSTOMER_ID NOT NULL NUMBER(38)
DP_CONTEXT NOT NULL NVARCHAR2(128)
DP_INSERTED_TIMESTAMP NOT NULL DATE
DP_MOVED_TIMESTAMP NOT NULL DATE
DP_PART_STAMP NVARCHAR2(3)
DP_ACTIVE NOT NULL NUMBER(18)
DP_INTERNAL_ID NUMBER(18)
DP_CUSTOM_VALUES NCLOB -
How can I avoid the display of ORA-31684 during impdp import?
Hello,
I'm working on a cross-platform tablespace migration (from SunOS to RedHat Enterprise Linux).
During the import with DataPump, I have several ORA-31684 error messages ("Object type TYPE : "OWNER"."OBJ_NAME" already exists"). Some of my TYPE objects exist already in the Linux instance of the DB. The messages appear only for 4-5 TYPE objects, while overall I have around 180 TYPE objects owned by the schema owner.
How can I avoid the display of these error messages? I don't want to drop the TYPE objects individually from the Linux instance, as the object list may vary in time.
Thank you,
AdrianHi,
There is no way to tell the impdp to ignore those errors. They will be printed to the error log and to the screen where the job is being run.
Dean -
Hi all,
My db is in 10.1.0.5
I took export of an table in my prod db and tried to import the table in preprod db.
But It threw the following error.
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'LFOPRODSELECT' does not exist
Failing sql is:
GRANT SELECT ON "LFO_UAT"."QUESTION" TO "LFOPRODSELECT"
Because of this error few of the constraints are not getting created.
Please help....
Thanks in advanceHello,
Here is a test case using expdp/impdp option you posted here. So my recommendation create a role without any grants in UAT schema before importing your table, hope this helps
create role LFOPRODSELECT;
EXPORT*
1. created a table in "prd" schema: my_objects
2. bitmap index on my_objects.owner (just for test purpose)
3. A role "myrole" with grant select on my_objects
grant select on prd.my_objects to myrole;
C:\expdp prd/prd directory=TEST_DIR dumpfile=myobjects.dmp logfile=myobjects.log tables=prd.my_objects
Export: Release 10.2.0.1.0 - Production on Friday, 26 December, 2008 22:19:10
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Starting "PRD"."SYS_EXPORT_TABLE_01": prd/******** directory=TEST_DIR dumpfile=myobjects.dmp logfile=myobjects.log tables=prd.my_objects
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 184 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "PRD"."MY_OBJECTS" 141.6 MB 1516176 rows
Master table "PRD"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
Dump file set for KLONDIKE.SYS_EXPORT_TABLE_01 is:
E:\U01\ORADATA\DSS\LOG\MYOBJECTS.DMP
Job "KLONDIKE"."SYS_EXPORT_TABLE_01" successfully completed at 22:19:34
Import test case 1: Without ROLE to recreate error at import_
C:>impdp uat/uat directory=TEST_DIR dumpfile=myobjects.dmp remap_schema=prd:uat remap_tablespace=orion_data_ts:ama_data logfile=myimport.log table_exists_action=replace
Import: Release 10.2.0.1.0 - Production on Friday, 26 December, 2008 23:09:30
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Master table "UAT"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "UAT"."SYS_IMPORT_FULL_01": uat/******** directory=TEST_DIR dumpfile=myobjects.dmp remap_schema=prd:uat remap_tablespace=orion_data_ts:ama_data logfile=myimport.log table_exists_action=replace
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "UAT"."MY_OBJECTS" 141.6 MB 1516176 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'MYROLE' does not exist
Failing sql is:
GRANT SELECT ON "UAT"."MY_OBJECTS" TO "MYROLE"
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "UAT"."SYS_IMPORT_FULL_01" completed with 1 error(s) at 23:10:16
Test Case 2: With role_
SQL> create role myrole;
C:\>impdp uat/uat directory=TEST_DIR dumpfile=myobjects.dmp remap_schema=klondike:testme remap_tablespace=orion_data_ts:ama_data logfile=myimport.log table_exists_action=replace
Import: Release 10.2.0.1.0 - Production on Friday, 26 December, 2008 23:12:55
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Master table "UAT"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "UAT"."SYS_IMPORT_FULL_01": uat/******** directory=TEST_DIR dumpfile=myobjects.dmp remap_schema=prd:uat remap_tablespace=orion_data_ts:ama_data logfile=myimport.log table_exists_action=replace
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "UAT"."MY_OBJECTS" 141.6 MB 1516176 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "UAT"."SYS_IMPORT_FULL_01" successfully completed at 23:13:43Regards
Edited by: OrionNet on Dec 26, 2008 11:32 PM
Edited by: OrionNet on Dec 26, 2008 11:33 PM
Edited by: OrionNet on Dec 26, 2008 11:33 PM -
How to turn off ORA-31684 during impdp?
when impdp a schema like:
impdp emsuser/mypwd DIRECTORY=dmp_dir table_exists_action=replace DUMPFILE=$dmp schemas=emsuser
got the ignorable annoying ora-31684. HERE ignore=y doesn't work anymore.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Master table "EMSUSER"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "EMSUSER"."SYS_IMPORT_SCHEMA_01": emsuser/******** DIRECTORY=dmp_dir table_exists_action=replace DUMPFILE=expdp_emsuser_071029_081108.dmp schemas=emsuser
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"EMSUSER" 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/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Job "EMSUSER"."SYS_IMPORT_SCHEMA_01" completed with 1 error(s) at 09:42:02syntax issue:
impdp emsuser/mypwd DIRECTORY=dmp_dir table_exists_action=replace DUMPFILE=$dmp exclude=USER:\"=\'EMSUSER\'\"
Import: Release 10.2.0.2.0 - 64bit Production on Monday, 29 October, 2007 13:28:47
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Master table "EMSUSER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "EMSUSER"."SYS_IMPORT_FULL_01": emsuser/******** DIRECTORY=dmp_dir table_exists_action=replace DUMPFILE=expdp_emsuser_071029_081108.dmp exclude=USER:"='EMSUSER'"
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/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Job "EMSUSER"."SYS_IMPORT_FULL_01" successfully completed at 13:28:52 -
ORA-39145 during expdmp when DIRECTORY option not specified.
expdp dumpfile=<dirname>:<dumpname.dmp>
Using expdp, but getting error :
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39145: directory object parameter must be specified and non-null
Command run is :
$ expdp tables=regions DUMPFILE=table.dmp
Is the option DIRECTORY compulsory ?
As per the Oracle 10gR2 Utilities guide it states :
Users with access to DATA_PUMP_DIR need not use the DIRECTORY parameter at all.
I have already given the user HR access of read,write to the directory DATA_PUMP_DIR.user11169028 wrote:
Users with access to DATA_PUMP_DIR need not use the DIRECTORY parameter at all.yes and this is related to privileged user which then assumes that you have EXP_FULL_DATABASE and IMP_FULL_DATABASE role
from the documenation :
The following is an example of using the default DATA_PUMP_DIR directory object available to privileged users. This example assumes that the EXP_FULL_DATABASE and IMP_FULL_DATABASE roles have been granted to the user hr. After the DATA_PUMP_DIR directory object has been created, a privileged user need not use the DIRECTORY parameter. Dump files, log files, and SQL files will be written to the path associated with DATA_PUMP_DIR.
SQL> CREATE DIRECTORY data_pump_dir AS '/usr/dba/dpumpfiles':
$ expdp hr/hr DUMPFILE=emp.dmp LOGFILE=emp.log TABLES=hr.employeesThe emp.dmp and emp.log files will be written to /usr/dba/dpumpfiles.
If the DATA_PUMP_DIR directory object had not first been created by a DBA, then the following error messages would have been displayed:
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name DATA_PUMP_DIR is invalid Remember that the default DATA_PUMP_DIR directory object is not available to nonprivileged users. In the following example, user sh is a nonprivileged user. Therefore, because no directory object is specified, error messages are generated and the export is not performed.
$ expdp sh/sh DUMPFILE=sales.dmp LOGFILE=sales.log TABLES=sh.sales
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39145: directory object parameter must be specified and non-null -
Hi,
I am using ODP 10.2.0.2.21 with c# and .Net 2.0 and Oracle 10g.
Most of my stored procedures output the results back to the caller in the form of a generic REF CURSOR. When I call OracleDataAdapter.Fill to populate a data-set using a call to one of these stored procedures, it works fine as long as the stored procedure returns data. If no rows are returned, I get the following error:
[Oracle.DataAccess.Types.OracleTypeException]: numeric precision specifier is out of range (1 to 38).
Looking up this error, I've found that it normally occurs as a result of an attempt to run some DDL SQL that creates a table with a numeric column whose precision exceeds the maximum allowable e.g. numeric(39). This is not the case here, as the stored procedures that are failing are mostly pure select statements and do not even utilise temporary tables or bulk collection. It is almost as if the OracleDataAdapter is unable to get the schema representation of the column when there is not at least one row of data.
I have pasted the full exception stack below:
at Oracle.DataAccess.Types.OracleDecimal.ConvertToPrecScale(OracleDecimal value1, Int32 precision, Int32 scale)
at Oracle.DataAccess.Client.OracleParameter.PreBind_Decimal()
at Oracle.DataAccess.Client.OracleParameter.PreBind(OracleConnection conn, IntPtr errCtx, Int32 arraySize)
at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
Any help on this would be appreciated.
Regards
Roy Griffiths.Hi Mark,
It would be difficult to distill this down to a small enough example to post, but I could email you an example if you want.
I have done a bit more investigation however, and believe that I have found the cause of the problem.
My application obtains the parameters for any stored procedure that it calls using OracleCommandBuilder.DeriveParameters. As this is an expensive call (it requires a round trip to the database), I cache the output when a stored procedure is called for the first time. Specifically, I store a number of properties for each stored procedure parameter, including its precision and scale. I then use the cached properties to build the parameters collection on the command object when the stored procedure is called.
I've noticed that the OracleParameter.Precision and OracleParameter.Scale properties always return zero, regardless of the definition of the parameter on the stored procedure. I've also noticed that there are 2 private member variables (m_precision and m_scale) that contain non-zero values. If I use reflection to obtain and cache these values and use them to set the scale and precision of Command.Parameters[n] then the problem goes away.
I'm not particularly keen on this as a solution however, and would much rather use the public properties for precision and scale (OracleParameter.Precision and OracleParameter.Scale). Do you have any idea why they don't return values?
Regards
Roy. -
ORA-30352: inconsistent numeric precision or string length
Trying to create a materialized view and am getting this error.
ORA-30352: inconsistent numeric precision or string length
How do I fix this?Mix and matching of types with my facts and dimensions. Making them the same resolved this.
Edited by: user7853353 on Jun 18, 2012 5:33 PM -
ORA-01180: can not create datafile 1 during RMAN restore.
Hello,
I am trying to refresh one of our QA environments and I am getting this error message:
RMAN> run
2> {
3> allocate channel c1 device type disk;
4> allocate channel c2 device type disk;
5> restore database;
6> recover database;
7> }
allocated channel: c1
channel c1: SID=5 device type=DISK
allocated channel: c2
channel c2: SID=131 device type=DISK
Starting restore at 08-NOV-12
using channel ORA_DISK_1
creating datafile file number=1 name=+DATA1/alephpr/datafile/system.269.722874729
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/08/2012 16:27:40
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '+DATA1/alephpr/datafile/system.269.722874729' I created a new database from scratch with the same name as is in Production, later on I will proceed to rename it to the right one. I started the steps for refreshing the PRD copy:
RMAN> shutdown immediate
using target database control file instead of recovery catalog
database dismounted
Oracle instance shut down
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
Total System Global Area 534462464 bytes
Fixed Size 2228200 bytes
Variable Size 176160792 bytes
Database Buffers 348127232 bytes
Redo Buffers 7946240 bytes
RMAN> set dbid=3573460394
executing command: SET DBID
RMAN> restore controlfile from '/restorealeph/c-3573460394-20121106-01';
Starting restore at 08-NOV-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=130 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
+output file name=+DATA1/alephpr/controlfile/current.260.798747585+
+output file name=+FLASH/alephpr/controlfile/current.276.798747585+
Finished restore at 08-NOV-12
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1Once the control file is restored, I need to crosscheck, delete expired and catalog the backups at the new server:
RMAN> crosscheck backup;
Crosschecked 48 objects
RMAN> delete noprompt expired backup;
Deleted 48 EXPIRED objects
RMAN> list backup summary;
specification does not match any backup in the repositoryI need now to catalog the backups we transferred from Prod into the QA server's directory /restorealeph:
RMAN> catalog start with '/restorealeph/';
searching for all files that match the pattern /restorealeph/
List of Files Unknown to the Database
=====================================
File Name: /restorealeph/9cnpm51u_1_1
File Name: /restorealeph/9enpm6lj_1_1
File Name: /restorealeph/c-3573460394-20121107-00
File Name: /restorealeph/c-3573460394-20121107-01
File Name: /restorealeph/c-3573460394-20121106-01
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /restorealeph/9cnpm51u_1_1
File Name: /restorealeph/9enpm6lj_1_1
File Name: /restorealeph/c-3573460394-20121107-00
File Name: /restorealeph/c-3573460394-20121107-01
File Name: /restorealeph/c-3573460394-20121106-01
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
4097 B F A DISK 07-NOV-12 1 1 NO BACKUP_ALEPHPR.TUR_110712030000
4098 B A A DISK 07-NOV-12 1 1 NO BACKUP_ALEPHPR.TUR_110712030000
RMAN> list backup tag="BACKUP_ALEPHPR.TUR_110712030000";
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
4097 Full 178.04G DISK 00:00:00 07-NOV-12
BP Key: 4097 Status: AVAILABLE Compressed: NO Tag: BACKUP_ALEPHPR.TUR_110712030000
Piece Name: /restorealeph/9cnpm51u_1_1
List of Datafiles in backup set 4097
File LV Type Ckp SCN Ckp Time Name
1 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/system.269.722874729
2 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/sysaux.266.722874731
3 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.289.722874727
4 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.257.722874727
5 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/users.298.722874731
6 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/audit.299.723372305
7 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_datos.260.723372307
8 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_indices.261.723372307
9 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_hist.262.723372309
10 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_l.264.723372319
11 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_long.265.723372349
12 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_md.270.723372355
13 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.271.723372369
14 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_xl.272.723372375
15 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_l.273.723372401
16 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_md.274.723372427
17 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_sm.275.723372455
18 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_xl.276.723372473
19 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/tools.278.723372501
26 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.300.736088959
27 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_meta.301.746385117
28 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_pstore.302.746385119
29 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_cache.304.746385121
30 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.305.796391931
31 Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.306.796392185
BS Key Size Device Type Elapsed Time Completion Time
4098 16.89G DISK 00:00:00 07-NOV-12
BP Key: 4098 Status: AVAILABLE Compressed: NO Tag: BACKUP_ALEPHPR.TUR_110712030000
Piece Name: /restorealeph/9enpm6lj_1_1
List of Archived Logs in backup set 4098
Thrd Seq Low SCN Low Time Next SCN Next Time
1 35722 6919870864350 06-NOV-12 6919871887697 06-NOV-12
1 35723 6919871887697 06-NOV-12 6919872372211 06-NOV-12
1 35724 6919872372211 06-NOV-12 6919872410158 06-NOV-12
1 35725 6919872410158 06-NOV-12 6919872447301 06-NOV-12
1 35726 6919872447301 06-NOV-12 6919872503332 06-NOV-12
1 35727 6919872503332 06-NOV-12 6919872551564 06-NOV-12
1 35728 6919872551564 06-NOV-12 6919872603881 06-NOV-12
1 35729 6919872603881 06-NOV-12 6919872655942 06-NOV-12
1 35730 6919872655942 06-NOV-12 6919872698722 06-NOV-12
1 35731 6919872698722 06-NOV-12 6919872741655 06-NOV-12
1 35732 6919872741655 06-NOV-12 6919872782284 06-NOV-12
1 35733 6919872782284 06-NOV-12 6919872872302 06-NOV-12
1 35734 6919872872302 06-NOV-12 6919872910206 06-NOV-12
1 35735 6919872910206 06-NOV-12 6919872945577 06-NOV-12
1 35736 6919872945577 06-NOV-12 6919872980056 06-NOV-12
1 35737 6919872980056 06-NOV-12 6919873013411 06-NOV-12
1 35738 6919873013411 06-NOV-12 6919873050761 06-NOV-12
1 35739 6919873050761 06-NOV-12 6919873084996 06-NOV-12
1 35740 6919873084996 06-NOV-12 6919873122049 06-NOV-12
1 35741 6919873122049 06-NOV-12 6919873521767 06-NOV-12
1 35742 6919873521767 06-NOV-12 6919873952773 06-NOV-12
1 35743 6919873952773 06-NOV-12 6919874258549 06-NOV-12
1 35744 6919874258549 06-NOV-12 6919874472213 06-NOV-12
1 35745 6919874472213 06-NOV-12 6919874744856 06-NOV-12
1 35746 6919874744856 06-NOV-12 6919875113086 06-NOV-12
1 35747 6919875113086 06-NOV-12 6919875733337 06-NOV-12
1 35748 6919875733337 06-NOV-12 6919876139061 06-NOV-12
1 35749 6919876139061 06-NOV-12 6919876707162 06-NOV-12
1 35750 6919876707162 06-NOV-12 6919877706313 06-NOV-12
1 35751 6919877706313 06-NOV-12 6919877919039 06-NOV-12
1 35752 6919877919039 06-NOV-12 6919878024429 06-NOV-12
1 35753 6919878024429 06-NOV-12 6919878107673 06-NOV-12
1 35754 6919878107673 06-NOV-12 6919878258511 06-NOV-12
1 35755 6919878258511 06-NOV-12 6919878308336 06-NOV-12
1 35756 6919878308336 06-NOV-12 6919878424419 06-NOV-12
1 35757 6919878424419 06-NOV-12 6919878488485 06-NOV-12
1 35758 6919878488485 06-NOV-12 6919878827092 06-NOV-12
1 35759 6919878827092 06-NOV-12 6919879350098 07-NOV-12
1 35760 6919879350098 07-NOV-12 6919879675556 07-NOV-12
2 35949 6919870864360 06-NOV-12 6919871494640 06-NOV-12
2 35950 6919871494640 06-NOV-12 6919871887487 06-NOV-12
2 35951 6919871887487 06-NOV-12 6919872410655 06-NOV-12
2 35952 6919872410655 06-NOV-12 6919872552468 06-NOV-12
2 35953 6919872552468 06-NOV-12 6919872698940 06-NOV-12
2 35954 6919872698940 06-NOV-12 6919872872690 06-NOV-12
2 35955 6919872872690 06-NOV-12 6919872980371 06-NOV-12
2 35956 6919872980371 06-NOV-12 6919873085902 06-NOV-12
2 35957 6919873085902 06-NOV-12 6919873569082 06-NOV-12
2 35958 6919873569082 06-NOV-12 6919873949096 06-NOV-12
2 35959 6919873949096 06-NOV-12 6919874404640 06-NOV-12
2 35960 6919874404640 06-NOV-12 6919875011814 06-NOV-12
2 35961 6919875011814 06-NOV-12 6919875631429 06-NOV-12
2 35962 6919875631429 06-NOV-12 6919876324885 06-NOV-12
2 35963 6919876324885 06-NOV-12 6919876363526 06-NOV-12
2 35964 6919876363526 06-NOV-12 6919876748508 06-NOV-12
2 35965 6919876748508 06-NOV-12 6919877741784 06-NOV-12
2 35966 6919877741784 06-NOV-12 6919878108943 06-NOV-12
2 35967 6919878108943 06-NOV-12 6919878424477 06-NOV-12
2 35968 6919878424477 06-NOV-12 6919879012111 06-NOV-12
2 35969 6919879012111 06-NOV-12 6919879260589 07-NOV-12
2 35970 6919879260589 07-NOV-12 6919879350086 07-NOV-12
2 35971 6919879350086 07-NOV-12 6919879464935 07-NOV-12
2 35972 6919879464935 07-NOV-12 6919879548399 07-NOV-12
2 35973 6919879548399 07-NOV-12 6919879675564 07-NOV-12
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 ALEPHPR 3573460394 PARENT 1 13-MAY-10
2 2 ALEPHPR 3573460394 PARENT 2229467 28-JUN-10
3 3 ALEPHPR 3573460394 CURRENT 6918261828355 26-SEP-12The ASM structure is created...
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 509282 507421 0 507421 0 N DATA1/
MOUNTED EXTERN N 512 4096 1048576 50641 42850 0 42850 0 N FLASH/
ASMCMD> cd DATA1/ALEPHPR/DATAFILE
ASMCMD> pwd
+DATA1/ALEPHPR/DATAFILEBoth source and target databases are 11.2.0.2 PSU 6 running on Linux x64. I cannot use RMAN Duplicate since there is no visibility among different environments (PROD - QA in this case).
Any idea?
Thanks
Martin
Edited by: martin.morono on Nov 8, 2012 11:19 AM
Edited by: martin.morono on Nov 8, 2012 11:49 AMThanks Levi,
I slightly modified your script to recatalog the backup pieces since they are note stored at the same location in PR and QA.
No luck. The error message is different but the result is the same... it keeps failing.
RMAN> run {
2> allocate channel c1 device type disk;
3> allocate channel c2 device type disk;
4> restore controlfile from '/restorealeph/c-3573460394-20121107-01';
5> startup mount;
6> catalog start with '/restorealeph/';
7> restore database from tag 'BACKUP_ALEPHPR.TUR_110712030000';
8> }
allocated channel: c1
channel c1: SID=191 device type=DISK
allocated channel: c2
channel c2: SID=131 device type=DISK
Starting restore at 09 NOV 2012 13:11:09
channel c2: skipped, AUTOBACKUP already found
channel c1: restoring control file
channel c1: restore complete, elapsed time: 00:00:15
output file name=+DATA1/alephpr/controlfile/current.260.798747585
output file name=+FLASH/alephpr/controlfile/current.276.798747585
Finished restore at 09 NOV 2012 13:11:24
database is already started
database mounted
Starting implicit crosscheck backup at 09 NOV 2012 13:11:31
Crosschecked 52 objects
Finished implicit crosscheck backup at 09 NOV 2012 13:11:39
Starting implicit crosscheck copy at 09 NOV 2012 13:11:39
Crosschecked 2 objects
Finished implicit crosscheck copy at 09 NOV 2012 13:11:40
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_1.279.795017193
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_34950.273.795014469
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_1.281.795017413
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_2.283.795017519
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_3.290.795018411
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_4.291.795018559
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_5.292.795018707
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_6.293.795018811
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_7.294.795018899
File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_8.295.795020509
File Name: +flash/ALEPHPR/CONTROLFILE/Current.268.798725123
searching for all files that match the pattern /restorealeph/
List of Files Unknown to the Database
=====================================
File Name: /restorealeph/9cnpm51u_1_1
File Name: /restorealeph/9enpm6lj_1_1
File Name: /restorealeph/c-3573460394-20121107-00
File Name: /restorealeph/c-3573460394-20121107-01
File Name: /restorealeph/c-3573460394-20121106-01
Do you really want to catalog the above files (enter YES or NO)? YEs
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /restorealeph/9cnpm51u_1_1
File Name: /restorealeph/9enpm6lj_1_1
File Name: /restorealeph/c-3573460394-20121107-00
File Name: /restorealeph/c-3573460394-20121107-01
File Name: /restorealeph/c-3573460394-20121106-01
Starting restore at 09 NOV 2012 13:11:48
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/09/2012 13:11:48
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 31 found to restore
RMAN-06023: no backup or copy of datafile 30 found to restore
RMAN-06023: no backup or copy of datafile 29 found to restore
RMAN-06023: no backup or copy of datafile 28 found to restore
RMAN-06023: no backup or copy of datafile 27 found to restore
RMAN-06023: no backup or copy of datafile 26 found to restore
RMAN-06023: no backup or copy of datafile 19 found to restore
RMAN-06023: no backup or copy of datafile 18 found to restore
RMAN-06023: no backup or copy of datafile 17 found to restore
RMAN-06023: no backup or copy of datafile 16 found to restore
RMAN-06023: no backup or copy of datafile 15 found to restore
RMAN-06023: no backup or copy of datafile 14 found to restore
RMAN-06023: no backup or copy of datafile 13 found to restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN>Just in case, I re-run this script including the crosscheck backup and the delete noprompt expired backups before restoring an the error messages were the same.
THanks again for your help.
Regards.
Martin
Edited by: martin.morono on Nov 9, 2012 7:21 AM -
ORA-39126 during an export of a partition via dbms_datapump
Hi ,
i did export using datapump in command line everything went fine but while exporting via dbms_datapump i got this:
ORA-39126 during an export of a partition via dbms_datapump
ORA-00920
'SELECT FROM DUAL WHERE :1' P20060401
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6228
the procedure is:
PROCEDURE pr_depura_bitacora
IS
l_job_handle NUMBER;
l_job_state VARCHAR2(30);
l_partition VARCHAR2(30);
v_sql VARCHAR2(2000);
BEGIN
-- Create a user-named Data Pump job to do a "table:partition-level" export
-- Local
select 'P'|| to_char((select min(STP_LOG_DATE) from SAI_AUDITBITACORA),'YYYYMM')||'01'
into l_partition
from user_tab_partitions
where table_name = 'SAI_AUDITBITACORA'
and rownum = 1;
l_partition := rtrim (l_partition,' ');
l_job_handle:= DBMS_DATAPUMP.OPEN
operation=>'EXPORT',
job_mode =>'TABLE',
job_name =>'EXPORT_ORACLENSSA'
-- Schema filter
DBMS_DATAPUMP.METADATA_FILTER
handle => l_job_handle,
name => 'SCHEMA_EXPR',
value => 'IN (''ORACLENSSA'')'
DBMS_OUTPUT.PUT_LINE('Added filter for schema list');
-- Table filter
DBMS_DATAPUMP.METADATA_FILTER
handle => l_job_handle,
name => 'NAME_EXPR',
value => '=''SAI_AUDITBITACORA'''
DBMS_OUTPUT.PUT_LINE('Added filter for table expression');
-- Partition filter
DBMS_DATAPUMP.DATA_FILTER
handle => l_job_handle,
name => 'PARTITION_EXPR',
value => l_partition,
table_name => 'SAI_AUDITBITACORA'
DBMS_OUTPUT.PUT_LINE('Partition filter for schema list');
DBMS_DATAPUMP.ADD_FILE
handle => l_job_handle,
filename => 'EXP'||l_partition||'.DMP',
directory => 'EXP_DATA_PUMP',
filetype => 1
DBMS_DATAPUMP.ADD_FILE
handle => l_job_handle,
filename => 'EXP'||l_partition||'.LOG',
directory => 'EXP_DATA_PUMP',
filetype => 3
DBMS_DATAPUMP.START_JOB
handle => l_job_handle,
skip_current => 0
DBMS_DATAPUMP.WAIT_FOR_JOB
handle => l_job_handle,
job_state => l_job_state
DBMS_OUTPUT.PUT_LINE('Job completed - job state = '||l_job_state);
DBMS_DATAPUMP.DETACH(handle=>l_job_handle);
END;
I've already drop and recreate the directory, granted read, write to public and to user, grant create session, create table, create procedure, exp_full_database to user, restart the database and the listener with the var LD_LIBRARY pointing first to $ORACLE_HOME/lib, and add more space to temporary tablespace.The basic problem is:
Error: ORA 920
Text: invalid relational operator
Cause: A search condition was entered with an invalid or missing relational
operator.
Action: Include a valid relational operator such as =, !=, ^=, <>, >, <, >=, <=
, ALL, ANY, [NOT] BETWEEN, EXISTS, [NOT] IN, IS [NOT] NULL, or [NOT]
LIKE in the condition.
Obviously this refers to the invalid statement 'SELECT FROM DUAL ...'. I also recommend, you should contact Oracle Support, because it happens inside an Oracle provided package.
Werner -
Key mapping during the transportation (lookup tables)
Hello,
For look up tables with key mapping during the transportation from DEV-> QA -> Prod it is asked to copy development repository with "out master data" How can we do it? and also how are workflows and matching stragetits transported ?
ThanksHi
For look up tables with key mapping during the transportation from DEV-> QA -> Prod it is asked to copy development repository with "out master data" How can we do it? and also how are workflows and matching stragetits transported ?
When we are moving from dev to QA to prod normally the remote system to which MDM is interacting also moves to similar environments. In different environments the reference table data may not match and hence it is advised not to move with same data. You can do this by simply exporting the schema of the repository from dev to QA and so on. That is create a new repository in QA and Prod by using option of "Export from Schema".
Matching strategies and workflows are not supported in this schema transport for MDM 5.5
These has to be created manually once the repository has been created.
Good news is MDM 7.1 supports this.
regards
Ravi -
Hi all,
Need some help from all out there
In our Sun Cluster 3.1 Data Service for Oracle RAC 9.2.0.7 (Solaris 9) configuration, my team had encountered
ora-29701 *Unable to connect to Cluster Manager*
during the startup of the Oracle RAC database instances on the Oracle RAC Server resources.
We tried the attached workaround by Oracle. This workaround works well for the 1^st time but it doesnt work anymore when the server is rebooted.
Kindly help me to check whether anyone encounter the same problem as the above and able to resolve. Thanks.
Bug No. 4262155
Filed 25-MAR-2005 Updated 11-APR-2005
Product Oracle Server - Enterprise Edition Product Version 9.2.0.6.0
Platform Linux x86
Platform Version 2.4.21-9.0.1
Database Version 9.2.0.6.0
Affects Platforms Port-Specific
Severity Severe Loss of Service
Status Not a Bug. To Filer
Base Bug N/A
Fixed in Product Version No Data
Problem statement:
ORA-29701 DURING DATABASE CREATION AFTER APPLYING 9.2.0.6 PATCHSET
*** 03/25/05 07:32 am ***
TAR:
PROBLEM:
Customer applied 9.2.0.6 patchset over 9.2.0.4 patchset.
While creating the database, customer receives following error:
ORA-29701: unable to connect to Cluster Manager
However, if customer goes from 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the problem does not occur.
DIAGNOSTIC ANALYSIS:
It seems that the problem is with libskgxn9.so shared library.
For 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the install log shows the following:
installActions2005-03-22_03-44-42PM.log:,
[libskgxn9.so->%ORACLE_HOME%/lib/libskgxn9.so 7933 plats=1=>[46]langs=1=> en,fr,ar,bn,pt_BR,bg,fr_CA,ca,hr,cs,da,nl,ar_EG,en_GB,et,fi,de,el,iw,hu,is,in, it,ja,ko,es,lv,lt,ms,es_MX,no,pl,pt,ro,ru,zh_CN,sk,sl,es_ES,sv,th,zh_TW, tr,uk,vi]]
installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]]
For 9.2.0.4 -> 9.2.0.6, install log shows:
installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]] does not exist.
This means that while patching from 9.2.0.4 -> 9.2.0.5, Installer copies the libcmdll.so library into libskgxn9.so, while patching from 9.2.0.4 -> 9.2.0.6 does not.
ORACM is located in /app/oracle/ORACM which is different than ORACLE_HOME in customer's environment.
WORKAROUND:
Customer is using the following workaround:
cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk rac_on ioracle ipc_udp
RELATED BUGS:
Bug 4169291Check if following MOS note helps.
Series of ORA-7445 Errors After Applying 9.2.0.7.0 Patchset to 9.2.0.6.0 Database (Doc ID 373375.1) -
ORA32004, ORA error during installation
Hi,
During SAP installation I got below error
SAP 2004S
Oracle 10.2
Oracle installation was done successfully(SID-ANK) during SAP installation I am getting this error....
ERROR 2009-07-09 08:32:28
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-32004: obsolete and/or deprecated parameter(s) specifiedORACLE instance started.
ERROR 2009-07-09 08:32:28
MUT-03025 Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined.
ERROR 2009-07-09 08:32:28
FCO-00011 The step createDatabase with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Doublestack_OneHost|ind|ind|ind|ind|3|0|NW_Cr
eateDB|ind|ind|ind|ind|10|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|in
d|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|c
reateDatabase was executed with status ERROR .
also during starting oracle...via SQL I am getting error
SQL> startup
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
I am not sure if both issues are related to each other.
Just for info..
OracleServiceANK is in start mode
OracleANK102Listener is also in start mode.
Also attaching listener.ora sqlnet.ora and tnsnames.ora
listener.ora
Filename......: listener.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#3 $
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = ANK.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = ANK)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = INLD50057853A)
(PORT = 1521)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SDU = 32768)
(SID_NAME = ANK)
(ORACLE_HOME = C:\oracle\ANK\102)
tnsnames.ora
Filename......: tnsnames.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#3 $
ANK.WORLD=
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = INLD50057853A)
(PORT = 1521)
(CONNECT_DATA =
(SID = ANK)
(GLOBAL_NAME = ANK.WORLD)
sqlnet.ora
Filename......: sqlnet.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/SQLNET.ORA#3 $
AUTOMATIC_IPC = ON
TRACE_LEVEL_CLIENT = OFF
NAMES.DEFAULT_DOMAIN = WORLD
NAME.DEFAULT_ZONE = WORLD
SQLNET.EXPIRE_TIME = 0
SQLNET.AUTHENTICATION_SERVICES = (NTS)
TCP.NODELAY=YES
Please do let me know if you need more inputs.
Regards,
Ankit BaphnaHi,
Thanks,
I got this...now
SQL> alter system set enqueue_resources='';
alter system set enqueue_resources=''
ERROR at line 1:
ORA-25138: ENQUEUE_RESOURCES initialization parameter has been made obsolete
SQL> create pfile from spfile;
create pfile from spfile
ERROR at line 1:
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 356515840 bytes
Fixed Size 1248984 bytes
Variable Size 188743976 bytes
Database Buffers 163577856 bytes
Redo Buffers 2945024 bytes
ORA-00205: error in identifying control file, check alert log for more info
Regards,
Ankit Baphna
Edited by: I041468 on Jul 9, 2009 10:56 AM -
ORA 01180 and ORA 01110 during restore
Hi there
Env: Oracle 10g R2 EE on ASM (10.2.0.5.0) - non-RAC, RHEL 5.8 64bit
RMAN backup location: /ora_backup
I have a database on PROD server. I took full RMAN backup of this database and it is stored in "/ora_backup".
I have a new DEV server which has this "/ora_backup" mounted on it. DEV has same Oracle version/patches, directory structure, etc.
I have to create the database with same name as in PROD on the DEV server.
I create the ASM instance with required diskgroups (same names and size as in PROD) and creating same directories on the filesystem for the database. I copied the pfile from PROD to the DEV server and started the database in NOMOUNT mode. I issued following commands to initiate the restore.
$ RMAN target /
RMAN> restore controlfile from '/ora_backup/CA411/autobackup/2013_11_28/o1_mf_s_832702400_99hmjjhr_.bkp';
Starting restore at 28-NOV-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=320 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:11
output filename=+DATA/ca411/controlfile/current.257.832712891
output filename=+RECOVERY/ca411/controlfile/current.260.832712891
Finished restore at 28-NOV-13
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> restore database;
Starting restore at 28-NOV-13
Starting implicit crosscheck backup at 28-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=320 devtype=DISK
Crosschecked 172 objects
Finished implicit crosscheck backup at 28-NOV-13
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /ora_backup/CA411/autobackup/2013_11_28/o1_mf_s_832702400_99hmjjhr_.bkp
File Name: /ora_backup/CA411/autobackup/2013_11_13/o1_mf_n_831408851_988495gc_.bkp
using channel ORA_DISK_1
creating datafile fno=1 name=+DATA/ca411/datafile/system.284.822662475
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/28/2013 21:08:41
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '+DATA/ca411/datafile/system.284.822662475'
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 CA411 3492870531 PARENT 1 05-AUG-13
2 2 CA411 3492870531 CURRENT 13405519 13-NOV-13
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
785 B F A DISK 28-NOV-13 1 1 YES TAG20131128T175829
786 B F A DISK 28-NOV-13 1 1 YES TAG20131128T175829
787 B F A DISK 28-NOV-13 1 1 YES TAG20131128T175829
788 B F A DISK 28-NOV-13 1 1 YES TAG20131128T175829
789 B F A DISK 28-NOV-13 2 1 YES TAG20131128T175829
790 B F A DISK 28-NOV-13 1 1 NO TAG20131128T181244
791 B A A DISK 28-NOV-13 1 1 NO TAG20131128T181308
792 B A A DISK 28-NOV-13 1 1 NO TAG20131128T181308
793 B A A DISK 28-NOV-13 1 1 NO TAG20131128T181308
794 B F A DISK 28-NOV-13 1 1 NO TAG20131128T181320
795 B F A DISK 13-NOV-13 1 1 NO TAG20131113T185411
RMAN>
========================
SQL> select db.DBID,NAME,db.CREATED,db.CONTROLFILE_TIME, db.VERSION_TIME,dbinc.RESETLOGS_TIME, dbinc.PRIOR_RESETLOGS_TIME
from v$database db, v$database_incarnation dbinc where dbinc.INCARNATION# = db.LAST_OPEN_INCARNATION#;
DBID NAME CREATED CONTROLFI VERSION_T RESETLOGS PRIOR_RES
3492870531 CA411 05-AUG-13 28-NOV-13 28-NOV-13 05-AUG-13
SQL>
=========================================
drwxrwxr-x 7 oracle oinstall 420 Nov 15 06:20 ora_backup
I used this exact same method to restore the database on TEST server with no issues. I am not sure what is the problem?
Since I was able to restore the database on TEST server, this is definitely not due to the bug mentioned in MOS.
I have read some posts on the forum including these MOS docs (727655.1, 1265151.1, 392237.1) but none fits my situation or solves the problem.
Any clues?
Best regardsyes this is the error but I don't know the cause because I followed exact same steps to restore the DB to TEST server.
ASM does have free space.
ASMCMD> lsdg
State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
MOUNTED EXTERN N N 512 4096 1048576 1705984 1705853 0 1705853 0 DATA/
MOUNTED EXTERN N N 512 4096 1048576 602112 601939 0 601939 0 RECOVERY/
Best regards -
ORA-16009: invalid redo transport destination;
Dear friends.
I am trying to set up phycial standby in Oracle 11g on linux in vmware.
Everything seems to fine but The configuration is not taking effect.
An error cropping repeatedly
ORA-16009
I am putting the errors and some of the contents.
Standby System
archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /disk1/oradata/arch
Oldest online log sequence 2
Next log sequence to archive 3
Current log sequence 3
Production System
atabase log mode Archive Mode
Automatic archival Enabled
Archive destination /disk1/oradata/arch
Oldest online log sequence 8
Next log sequence to archive 9
Current log sequence 9
on Client Errors:
ORA-16009: invalid redo transport destination
PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
Fri May 04 22:45:54 2012
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
ORA-16009: invalid redo transport destination
PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
Fri May 04 22:47:45 2012
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
ORA-16009: invalid redo transport destination
PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
Fri May 04 22:49:48 2012
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
ORA-16009: invalid redo transport destination
PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
Fri May 04 22:51:40 2012
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc0_10286.trc:
ORA-16009: invalid redo transport destination
PING[ARC0]: Heartbeat failed to connect to standby 'to_orcl1'. Error is 16009.
On Production System Errors:
ORA-16009: invalid redo transport destination
Fri May 04 22:47:37 2012
Error 1034 received logging on to the standby
Fri May 04 22:47:48 2012
RFS[43]: Assigned to RFS process 17922
RFS[43]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
RFS[43]: Client instance is standby database instead of primary
RFS[43]: Not using real application clusters
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_17922.trc:
ORA-16009: invalid redo transport destination
Fri May 04 22:49:17 2012
Destination LOG_ARCHIVE_DEST_2 is UNSYNCHRONIZED
Thread 1 advanced to log sequence 14 (LGWR switch)
Current log# 2 seq# 14 mem# 0: /disk1/oradata/oracldir/redolog2.log
Fri May 04 22:49:18 2012
Archived Log entry 17 added for thread 1 sequence 13 ID 0x2a7a0eb4 dest 1:
Fri May 04 22:49:50 2012
RFS[44]: Assigned to RFS process 17999
RFS[44]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
RFS[44]: Client instance is standby database instead of primary
RFS[44]: Not using real application clusters
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_17999.trc:
ORA-16009: invalid redo transport destination
Fri May 04 22:51:42 2012
RFS[45]: Assigned to RFS process 18057
RFS[45]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
RFS[45]: Client instance is standby database instead of primary
RFS[45]: Not using real application clusters
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_18057.trc:
ORA-16009: invalid redo transport destination
Fri May 04 22:52:00 2012
Error 1034 received logging on to the standby
Fri May 04 22:52:32 2012
Error 1034 received logging on to the standby
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc2_17414.trc:
ORA-01034: ORACLE not available
FAL[server, ARC2]: FAL archive failed, see trace file.
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_arc2_17414.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
ORACLE Instance orcl3 - Archival Error. Archiver continuing.
Fri May 04 22:53:42 2012
RFS[46]: Assigned to RFS process 18115
RFS[46]: Database mount ID mismatch [0x2a846b0e:0x2a856e71] (713321230:713387633)
RFS[46]: Client instance is standby database instead of primary
RFS[46]: Not using real application clusters
Errors in file /disk1/oradata/oracldir/diag/rdbms/orcl3/orcl3/trace/orcl3_rfs_18115.trc:
ORA-16009: invalid redo transport destinationOK;
I see several issues. Will post results back here in a Moment.
Primary
Missing several parameters :
FAL_SERVER
DB_UNIQUE_NAME
LOG_ARCHIVE_DEST_STATE_1 ( should be ENABLE )
LOG_ARCHIVE_DEST_STATE_2 ( should be ENABLE )
Incorrect settings
log_archive_dest_1
log_archive_dest_2
YOURS
log_archive_dest_1="location=/disk1/oradata/arch"
EXAMPLE FROM MINE
log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
YOURS
log_archive_dest_2="Service=to_orcl1 lgwr sync affirm reopen=3"
EXAMPLE FROM MINE
log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
Standby
Missing several parameters :
LOG_ARCHIVE_DEST_STATE_1 ( should be ENABLE )
LOG_ARCHIVE_DEST_STATE_2 ( should be DEFER )
FAL_SERVER
DB_UNIQUE_NAME
Incorrect settings
log_archive_dest_1
log_archive_dest_2
(similar to primary issues)
Summary
OK, this is way off. I don't in any way want to be unprofessional or rude but I'm not sure how to help without wasting you time or mine. So I'm going to take a few educated guesses and hope I'm helping you.
First I have a short note on how to do this here :
http://www.visi.com/~mseberg/data_guard_on_oracle_11_step_by_step.html
Second, you really need to understand the Oracle parameters needed by Data Guard so I would ask you read :
Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02
The section in chapter 3 "Set Primary Database Initialization Parameters"
Third, you say vmware. By that do you mean two separate vmware servers? A Primary and a Standby of something else?
More details here might help. Vmware is fine, but if I'm setting this up I want two Servers, one for the Primary and one for the Standby database.
Will still post the details of Standby INIt ASAP
Best Regards
mseberg
Edited by: mseberg on May 4, 2012 12:48 PM
Edited by: mseberg on May 4, 2012 1:43 PM
Maybe you are looking for
-
Gone globetrotting can't get my apps or my music
2 yrs ago I decided to leave my hombebase Switzerland and go globetrotting. I took my iGadgets since they were supposedly all about being globally mobile. Take your music and your apps with you anywhere in the world! Worldwide accessibility! So we th
-
I have just purchased a new my book hard drive and would like to connect it to my time capsule and store my itunes and iphoto contentent there to free up space on my internal hard drive . Can this be done and what is the process?
-
can't open adobe premiere element 11 on my MacBook Pro? which I buy it from App Store? plz help its says that its currently not availabe I have so many work counting on this programme plz help
-
Caling WD Application from one program
Hi Experts, How i can call the WD Application from one program without creating the TCODE for the WD application. Thanks Mahesh
-
Linking SNP PPM to desired ECC production version
Hi We have a need where we manually create SNP PPMs and so the APO and ECC have no connection in terms of the PPM or production version. I have two SNP PPM1, PPM2 in APO and I have two production versions in SAP ECC, VA and VB. The requirement is to