Error: ORA-00054 &; ORA-01452 when performing full charge CAD
Hi friends,Previously, I ran at full load... it went well. And I did some examples of reports also in 7.9.6.2 BI applications
Now, I changed a few settings as directed by the company, and I try to re-run the full load... But I struck with few similar errors. I deleted two or three errors of DB.
Please, help me fix the errors below.
1 FAULT INFO: Error executing: TRUNCATE TABLE: W_SALES_BOOKING_LINE_F
MESSAGE: com. Siebel.etl.Database.IllegalSQLQueryException: DataWarehouse: TRUNCATE TABLE W_SALES_BOOKING_LINE_F
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
-I checked W_SALES_BOOKING_LINE_F, it contains data.
2 FAULT INFO: Error executing: CREATE INDEXES: W_GL_REVN_F:W_GL_REVN_F_U1
MESSAGE: Java.lang.exception: Error executing: CREATE UNIQUE INDEX
W_GL_REVN_F_U1
WE
W_GL_REVN_F
(
INTEGRATION_ID ASC
DATASOURCE_NUM_ID ASC
)
NOLOGGING
with the DataWarehouse error: CREATE a UNIQUE INDEX
W_GL_REVN_F_U1
WE
W_GL_REVN_F
(
INTEGRATION_ID ASC
DATASOURCE_NUM_ID ASC
)
NOLOGGING
ORA-01452: cannot CREATE a UNIQUE INDEX. duplicate keys found
-Yes, I found duplicate values in the W_GL_REVN_F table. But, how can I rectify. I've done some genius, but failed.
Please tell me the steps to achieve...
Thanks in advance...
Stone
The suggestions made by user3490450 are correct. I saw the ' ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired ' error occur when archiving logs does not get removed correctly. Anyway what a DBA question. For the unique index error, deletion will fix it but if it happens again, you should check your source system and see why you have data that are originally in double integration IDs. This can occur because of a bad porcessed of the source system. If you wish, you can trace this back (PLP-> SIL-> SDE) and see whence the duplicate.
Tags: Business Intelligence
Similar Questions
-
Hi all
your help is greatly appreciated...
Calling B.fucntion inside an A.fonctions to insert data into a table.
Here when you call the B.fucntion to insert data in the table... receiver AM a mistakeOmitted in B - SQL Error: ORA-14551: cannot perform a DML operation inside a query...
Can someone please help me to clarify this...
The FUNCTION A(varUPD_TYPE IN VARCHAR2) RETURN VARCHAR2 IS
varRETURN_VALUE VARCHAR2 (25): = NULL;numALLOWED_COUNT PROD. PROCESS_COUNTER. TYPE % ALLOWED_COUNT;
numLAST_COUNT_ADDED PROD. PROCESS_COUNTER. TYPE % LAST_COUNT_ADDED;
dtCHANGE_DATE DATE: = NULL;
varSTMT VARCHAR2 (2000);
bln_Allowed BOOLEAN;
myVar VARCHAR2 (32767).
BEGINIF varUPD_TYPE = "A" THEN
BEGIN
SELECT CH_DATE, LAST_COUNT_ADDED, ALLOWED_COUNT
IN dtCH_DATE, numLAST_COUNT_ADDED, numALLOWED_COUNT
PROD. PROCESS_COUNTER
WHERE NOM_PROCESSUS = "DAILY".
AND COUNTER_IND = A 'IF dtCH_DATE < = trunc (sysdate) THEN
numLAST_COUNT_ADDED: = 0;
END IF;EXCEPTION
WHILE OTHERS THEN
numLAST_COUNT_ADDED: = 0;
numALLOWED_COUNT: = 1;
END;
IF numALLOWED_COUNT > = numLAST_COUNT_ADDED + 1 THEN
bln_Allowed: = True;
varSTMT: = "UPDATE PROD. TMS_PROCESS_COUNTER ';
varSTMT: = varSTMT | ' SET last_count_added = ' | (numLAST_COUNT_ADDED + 1);
varSTMT: = varSTMT | "WHERE nom_processus =" DAILY "';
varSTMT: = varSTMT | "AND COUNTER_IND ="D"';
IF varSTMT IS NOT NULL
THEN
MyVar: = B(96,varSTMT);
PROC_LOG (' CALL B ': myVar);
IF myvar > 0 THEN
NULL;
END IF;
END IF;
On the other
End if;END IF;
EXCEPTION WHEN OTHERS THEN
PROC_LOG ("A failed '");
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS A NULL VALUE.
PUT AN END TO;The FUNCTION B(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURNS NUMBER IS
varINSERT_BATCH_STMT VARCHAR2 (32767): = NULL;
varADD_REC_TYPE BATCH_TABLES. TYPE % ADD_REC_TYPE;BEGIN
INSERT INTO BATCH_STATEMENT (ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID)
VALUES (Numidian, numTABLE_ID, varSQL_STATEMENT, 1);EXCEPTION WHEN OTHERS THEN
PROC_LOG ('B failed');
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END B;
Structure of the Batch_statement table:
ID Number (15) not null
number (2) not null table_id
Statement varchar2 (4000) not null
Queue_sequence_id number (5) not nullWhy do you do such coding mess full of bad practices.
Remove the exceptions WHEN OTHERS, you're a turing a mistake in this way, they are bugs and (never) use functions to perform DML.
Functions are not intended for DML. Period.
-
Why I don't have the error: ORA-14551: cannot perform a DML operation inside a query
Hello
create table table_1 (phone number)
create or replace function function_a return number is l_rv number; begin l_rv := dbms_random.value(); insert into table_1 values(l_rv); return l_rv; end;
Select double function_a
Now, I get the error:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "FUNCTION_A", line 6
create the table table_2 (phone number)
insert into table_2 select function_a from dual
Now, I make the same mistake. It is to insert records into table_2
Can someone please clarify this?
Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production
Post edited by: O - O added: (select double function_a)
O - O wrote:
To be called from instructions SQL, stored function must obey "purity" following rules, which are intended to control the side effects:
- rule1) When it is called from a
SELECT
statement or a parallelizedINSERT
,UPDATE
, orDELETE
statement, the function cannot change database tables. - rule2) When it is called from a
INSERT
,UPDATE
, orDELETE
statement, the function cannot query or modify database tables modified by that statement.
Can you please explain this? I think that these statements are contradicted with
insert into select double function_a table_2
Now, I make the same mistake. It is to insert records into table_2
When your function is called by a select statement, an error is triggered because of rule1).
When your function is called in an insert statement, no error is raised. The insert does not work in parallel (this is an insert row after all). So rule1) is also not infringed. The insert is on the table2, change table1. Because it does not modify the same table rule2) is not violated. So no reason to trigger an error.
- rule1) When it is called from a
-
Table binding error ORA-01485 when I try to get in an associative array
Hello
I test to pass in an array associative odp.net
So I created a simple testpackage:
CREATE TABLE jwetesttab (CLIENTNR NUMBER (10) NOT NULL);
CREATE OR REPLACE PACKAGE IN THE JWETEST_PK
TYPE t_CLIENTNRS IS TABLE OF NUMBER INDEX OF PLS_INTEGER;
PROCEDURE TestArrayIn (p_CLIENTNRS IN t_CLIENTNRS, p_NbOfRowsInserted OUT NUMBER);
END JWETEST_PK;
/
CREATE OR REPLACE PACKAGE BODY JWETEST_PK AS
PROCEDURE TestArrayIn (p_CLIENTNRS IN t_CLIENTNRS, p_NbOfRowsInserted ON the NUMBER)
IS
BEGIN
FORALL i IN p_CLIENTNRS.first... p_CLIENTNRS. Last
INSERT INTO jwetesttab (CLIENTNR) VALUES (p_CLIENTNRS (i));
p_NbOfRowsInserted: = SQL % ROWCOUNT;
COMMIT;
END TestArrayIn;
end JWETEST_PK;
/
Then I did as simple testapp as follows:
Protected Int As Integer = 0
Dim arrNums() As Integer = {1, 2, 3}
Dim cmd As New OracleCommand
Dim cnn as new OracleConnection (s_conn)
Try
With cmd
. ArrayBindCount = 3
. Connection = cnn
. CommandText = "JWETEST_PK. TestArrayIn ".
. CommandType = CommandType.StoredProcedure
Var p_Clientnrs As OracleParameter = New OracleParameter
With p_Clientnrs
. ParameterName = "p_CLIENTNRS."
. DbType = DbType.Int32
. CollectionType = OracleCollectionType.PLSQLAssociativeArray
. Value = arrNums
. Size = 3
Ends with
. Parameters.Add (p_Clientnrs)
. Parameters.Add (New OracleParameter ("p_NbOfRowsInserted", OracleDbType.Int32, ParameterDirection.Output))
CNN. Open()
cmd ExecuteNonQuery()).
Int = CInt (.) Parameters ("p_NbOfRowsInserted"). Value)
Ends with
Catch ex As Exception
MsgBox (ex.) Message)
Finally
If (cnn IsNot Nothing) = False Then
CNN. Close()
CNN. Dispose()
End If
End Try
When I run my testapp, the lines are inseterd in the database, but it gives me an error: link table error: ORA-01485Liaison of the table and the associative arrays are two different functions and tend to confuse because they both have the word Array in them.
The table binding is for "run this procedure and statement number X times, all the data here is at the front. ''
Associative array is to "perform this procedure once, here is the table I want to that you pass in.Start by removing ArrayBindCount = 3and see if that helps
If you still have problems, see the example of associative array on your hard disk to %OH%\ODP.NET\samples\2.x\AssocArray
It will be useful,
Greg -
Error ORA-00979 when you run the SQL in Oracle 11.2.0.3
Hi Oracle Experts,
I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.SELECT "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result, AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus, TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt, TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate STD.stdev, getCL.cl FROM ( SELECT ROUND(stddev(INS.avg_result),2) stdev FROM ( SELECT "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result, AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus, TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt FROM "SAMPLE", "SAMPLE_RESULT", "ACTIVITY" WHERE ( "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID" ) AND ( "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance ( sample.sampleid, sample_result.testid, sample_result.propertyid ) ) AND ( "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID" ) AND ( ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End') ) AND ( ACTIVITY.LOCATIONID = 'S-5003C' ) AND ( SAMPLE.EVENTID <> 'AD-HOC' ) AND ( "SAMPLE"."SAMPLESTATUS" = 'L' ) AND ( TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR( :StartDate,'dd-Mon-RRRR')) + 6 ) AND ( SAMPLE_RESULT.PROPERTYID = 'GCV' ) GROUP BY SAMPLE_RESULT.PROPERTYID, SAMPLE_RESULT.QUALIFIER, TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') ) INS ) STD, ( SELECT ROUND(AVG(INS.avg_result),2) cl FROM ( SELECT "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result, AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus, TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt FROM "SAMPLE", "SAMPLE_RESULT", "ACTIVITY" WHERE ( "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID" ) AND ( "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance ( sample.sampleid, sample_result.testid, sample_result.propertyid ) ) AND ( "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID" ) AND ( ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End') ) AND ( ACTIVITY.LOCATIONID = 'S-5003C' ) AND ( SAMPLE.EVENTID <> 'AD-HOC' ) AND ( "SAMPLE"."SAMPLESTATUS" = 'L' ) AND ( TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR( :StartDate,'dd-Mon-RRRR')) + 6 ) AND ( SAMPLE_RESULT.PROPERTYID = 'GCV' ) GROUP BY SAMPLE_RESULT.PROPERTYID, SAMPLE_RESULT.QUALIFIER, TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') ) INS ) getCL, "SAMPLE", "SAMPLE_RESULT", "ACTIVITY" WHERE ( "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID" ) AND ( "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid, sample_result.testid, sample_result.propertyid) ) AND ( "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID" ) AND ( ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End') ) AND ( ACTIVITY.LOCATIONID = 'S-5003C' ) AND ( SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point', 'HC Dew Pts') ) AND ( TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate, 'dd-Mon-RRRR')) + 6 ) GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'), STD.stdev, getCL.cl )
But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.
Please advice how can I fix this problem.
Published by: xysOra on 29 April 2013 19:37It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".
You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).
In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.
Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").
These changes can take you the ORA-00979 not one group by expression.
Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of
TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate, 'dd-Mon-RRRR')) + 6
use
TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
I hope this helps.
David -
How to find duplicate keys found when error ORA-01452: cannot CREATE a UNIQUE INDEX.
Hi gurus,
I fall for this stupid error
"cannot CREATE a UNIQUE INDEX; duplicate keys found.
It is that the Unique Index key is composed of multiple columns
CREATE A UNIQUE KEY001AUTORISATIONS_APPORT ON TFT_AUTORISATIONS_APPORT INDEX
(AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION)
TABLESPACE KEYS_TFT NOPARALLEL NOLOGGING
Now,.
My question is, how to find duplicates keys blocking Index creation?
Thanks if you can help
Run this query to display the list of the duplicates already existing.
Select AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION, count (1) as cnt
of TFT_AUTORISATIONS_APPORT
Group
AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION
view count (1) > 1
Concerning
NJ
-
Error (ORA-06502) when addinng a LOV-more element in a table
I created the collection. Then, I created in a table, this collection from.
In the form of tables, I created 3 elements, based on the "list of (named LOV) selection.
It is ok.
LOV:
Select SN_ZVET display_value, KOD_ZVET return_value
of PLENKA
order by 1
Table (PLENKA):
KOD_ZVET NUMBER (3.0)
FN_ZVET VARCHAR2 (50 BYTE)
SN_ZVET VARCHAR2 (25 BYTE)
FIRMA_IZGOTOV VARCHAR2 (50 BYTE)
SETTING VARCHAR2 (30 BYTE)
KOD_ED_IZM NUMBER (2.0)
NAZ_ZVET NUMBER (6.3)
KOD_PVX NUMBER (2.0)
KOD_PR NUMBER (1.0)
When I added 4th element, based on the same LOV, I get error:
error report:
ORA-06502: PL/SQL: digital or value error: character string buffer too small
What evil? Why I created 3 identical items and could not created one more element (the same)?Alex - selection lists can generate a lot of HTML code. If it exceeds 4K for all a "column in your query, or if the cumulative for all 'a line' size exceeds 32K, you will get this error. How many items in each LOV?
Scott
-
Error ORA-20001 when you create a new application
Hello
I am creating a new application of an existing table in the database and I get the following error. The application is created using the Wizard (type of database application, from scratch, report and our page)
ORA-20001: unable to create modules. ORA-20001: create error pages. ORA-20001: unable to create form page. ORA-20001: Error Page = 2 item = 'P2_NON_ORACLE_EMPLOYEE_SPEAKER' id = '1975288532127294112' ORA-20001: error page 2 item = = "P2_NON_ORACLE_EMPLOYEE_SPEAKER" id = "1975288532127294112" a same name something like existing at the level of applications. ORA-0000: normal end successfully
The table I created the app on is defined as follows:
I use APEX version 4.0.2.00.07CREATE TABLE "TABLE_1" ( "ID" NUMBER, "SESSION_EXTERNAL_PAPER" VARCHAR2(30), "OWNER_CFP_SUBMITTER1_FULL_NA" VARCHAR2(255), "OWNER_CFP_SUBMITTER1_COMPANY" VARCHAR2(255), "STATUS" VARCHAR2(30), "SESSION_ID" NUMBER, "TITLE" VARCHAR2(255), "ABSTRACT" VARCHAR2(4000), "SESSION_TYPE" VARCHAR2(30), "SESSION_CATEGORY" VARCHAR2(30), "STREAM" VARCHAR2(30), "PRIMARY_TRACK" VARCHAR2(255), "OPTIONAL_TRACK" VARCHAR2(255), "CROSS_STREAM_TRACK" VARCHAR2(30), "SUPPORTING_VIDEO" VARCHAR2(4000), "ATTENDEE_ROLE" VARCHAR2(255), "TO_RATING" VARCHAR2(30), "TO_COMMENTS" VARCHAR2(4000), "COMMENTS" VARCHAR2(4000), "ORACLE_PARTNERNETWORK" VARCHAR2(30), "IS_YOUR_OPN_MEMBERSHIP_UNDER_A" VARCHAR2(255), "ORACLE_PARTNER_TYPE" VARCHAR2(255), "OPN_MEMBERSHIP_LEVEL" VARCHAR2(30), "ORACLE_REGION_BASED" VARCHAR2(30), "ORACLE_VALIDATED_INTEGRATION" VARCHAR2(30), "HAS_YOUR_COMPANY_ACHIEVED_SPEC" VARCHAR2(4000), "PLEASE_DESCRIBE_THE_VALUE_OF_O" VARCHAR2(4000), "INCLUDE_CASE_STUDY" VARCHAR2(30), "PROVIDE_NAME_OF_THE_CUSTOMER_F" VARCHAR2(255), "PLEASE_PROVIDE_A_BRIEF_DESCRIP" VARCHAR2(4000), "NON_ORACLE_EMPLOYEE_SPEAKER1_F" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER1_C" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER1_FULL" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER1_COMPA" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER2_F" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER2_C" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER2_FULL" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER2_COMPA" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER3_F" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER3_C" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER3_FULL" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER3_COMPA" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER4_F" VARCHAR2(255), "NON_ORACLE_EMPLOYEE_SPEAKER4_C" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER4_FULL" VARCHAR2(255), "ORACLE_EMPLOYEE_SPEAKER4_COMPA" VARCHAR2(255), "CREATED" DATE, "CREATED_BY" VARCHAR2(50), "LAST_UPDATE" DATE, "LAST_UPDATED_BY" VARCHAR2(50), CONSTRAINT "OOW_PAPER_PK" PRIMARY KEY ("ID") ENABLE ) ;
Any idea what could be wrong and what can be done to solve the problem?
See you soon,.
AndyIf you add a synonym for display to the database, the generator must see and allow you to use...
Thank you
Tony Miller
Webster, TXNever argue with a fool. They do you drag down to their level, then beat you with experience.
If you answer this question, please mark the thread as closed and give points where won...
-
Error ORA-12712 when changing the character set AL32UTF8 to nls
Hello
It is strongly advised to use the AL32UTF8 database character set when ever a database is used with our XML capabilities. The database character set in the installed base is WE8MSWIN1252. To use XML DB functionality, I need to change it to AL32UTF8. But, when I try to do that, I get ORA-12712: new character set must be a superset of the old character set. Is there a way to fix this?
Thanks in advance,
Divya.Hello
a change of we8mswin1252 to al32utf8 is not directly possible. This is because al32utf is not a binary superset of we8mswin1252.
There are 2 options:
-use any export and import
-Use of the altar in a kind of limitedDepends on the method, you can choose the characters in the database, is that only ASCII then the other can work, in other cases, one is necessary.
It is all described in Note 260192.1support, "replacing the NLS_CHARACTERSET AL32UTF8 / UTF8 (Unicode). Get on-site support/metalink.
You can also read the chapters about it in the Guide of globalization: [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430] change characterset.
Herald tiomela
http://htendam.WordPress.com -
ERROR "ora-01422" during insertion in the table?
Hello
I have created the dynamic action of PL/SQL to insert data but founded by page_item
declare x_found_pages number; x_auth_id number; x_user_id number; begin x_user_id := :P41_USR_ID; -- this is my page_item _____ successful run When change it to number value .. ! select count(V_APP_PAGES.PAGE_ID) into x_found_pages from V_AUTH_DTL V_AUTH_DTL,V_APP_PAGES V_APP_PAGES where V_AUTH_DTL.PAGE_ID!=V_APP_PAGES.PAGE_ID and V_AUTH_DTL.USR_ID = x_user_id; select T_AUTH.ID into x_auth_id from T_AUTH_DTL T_AUTH_DTL,T_AUTH T_AUTH where T_AUTH_DTL.AUTH_ID=T_AUTH.ID and T_AUTH.USR_ID = x_user_id; -- Checking...? if x_found_pages > 0 then for i in (select V_APP_PAGES.PAGE_ID from V_AUTH_DTL V_AUTH_DTL,V_APP_PAGES V_APP_PAGES where V_AUTH_DTL.PAGE_ID!=V_APP_PAGES.PAGE_ID and V_AUTH_DTL.USR_ID = x_user_id) loop insert into T_AUTH_DTL (AUTH_ID,PAGE_ID) values (x_auth_id,i.PAGE_ID); end loop; end if; end;
Please help me to avoid the ERROR "ora-01422" when running code in the dynamic action...
Thank you...
AMR Abdeen wrote:
I have created the dynamic action of PL/SQL to insert data but founded by page_item
- declare
- number of x_found_pages;
- number of x_auth_id;
- number of x_user_id;
- Start
- x_user_id: =: P41_USR_ID; -It is my page_item _ successfully performed when change to value the number...!
- SELECT count (V_APP_PAGES. Page_id) in x_found_pages
- of V_AUTH_DTL V_AUTH_DTL, V_APP_PAGES V_APP_PAGES
- where V_AUTH_DTL. PAGE_ID! = V_APP_PAGES. PAGE_ID
- and V_AUTH_DTL. USR_ID = x_user_id;
- Select T_AUTH.ID from x_auth_id
- of T_AUTH_DTL T_AUTH_DTL, T_AUTH T_AUTH
- where T_AUTH_DTL. AUTH_ID = T_AUTH.ID
- and T_AUTH. USR_ID = x_user_id;
- -Checking...?
- If x_found_pages > 0 then
- I'm in (select V_APP_PAGES. PAGE_ID
- of V_AUTH_DTL V_AUTH_DTL, V_APP_PAGES V_APP_PAGES
- where V_AUTH_DTL. PAGE_ID! = V_APP_PAGES. PAGE_ID
- and V_AUTH_DTL. USR_ID = x_user_id)
- loop
- insert into T_AUTH_DTL (AUTH_ID, PAGE_ID) values (x_auth_id, i.PAGE_ID);
- end loop;
- end if;
- end;
Please help me to avoid the ERROR "ora-01422" when running code in the dynamic action...
The error is explicit:
ORA-01422: exact fetch returns more than number of lines
Cause: The exact extraction specified number is less than the rows returned.
Action: Rewrite the query or change the number of rows requested
This would imply the query in line 16 as County dissociated in the previous one will always return only one row.
Run
select T_AUTH.ID into x_auth_id from T_AUTH_DTL T_AUTH_DTL,T_AUTH T_AUTH where T_AUTH_DTL.AUTH_ID=T_AUTH.ID and T_AUTH.USR_ID = :x_user_id
in the workshop of SQL by using the P41_USR_ID value in the variable link to find out how many rows it returns.
It is likely that the entire block can be replaced by a single INSERT statement. If you provide instructions CREATE TABLE, INSERT statements to create sample data and a clear definition of the requirements that we try to do.
What is the point of the inclusion of tables aliases that are exactly the same as the names of the tables?
-
How to fix error ORA-02289 using msync.exe for WIN32
Hi all
I'm testing OLITE 10.3.0.1.0 and I got the error Ora-02289 when I sync
any idea to fix it?
Kind regards.
CharlyHello
The Mobile Manager not correctly delete/create mobile user.
Mobile Manager is a J2EE Application that connects to the Mobile using the Oracle JDBC Thin Driver repository, it is possible that when some users have been deleted or created, the http connection or JDBC connections has been cut.
Can you try to reset the metadata cache, delete the mobile user, create and configure this mobile user and then synchronize.
It will do a full refresh, but it must synchronize the fine after.
Kind regards.
Marc -
Connection to the PROD database error: ORA-20
Salvation of DBA
When running custom reports, I get the following error.
Connection to the PROD database error: ORA-20
When I run the same report again, it works fine.
Please tell me why it behaves like this? and advice me please how to fix this.
Best regardsSuresh,
Follow the recommendations of the following note to set the initialization of the PROCESS parameter correctly.
Note: 216205,1 - parameters to initialize database for Oracle Applications Release 11i
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=216205.1Another possible solution is to give your opinion on tune your custom code.
-
Error: ORA-01841: (full) year must be between-4713 and 9999 and not 0
Hi - I get error ORA-01841 ((full) year must be between-4713 and 9999 and not 0) because of the following line in my where clause:
AND p_run_date < ((add_months (ip. insured_plan_termination_date,,13) nvl), to_date (31-DEC-9999. ' ' DD-MON-YYYY '))
I look and what I read speaks not to compare the strings that contain dates, but that is not the case here. p_run_date is without a doubt a date. I've hardcoded even on a specific date, and I still get the error.
Any help is greatly appreciated.
Thank you
Christine
Hi, Christine.
What is insured_plan_termination_date when you get the error? If it's December, 9998 or later version, you cannot add 13 months, which would put the year beyond 9999, everything as the error message said.
You said p_run_date is without a doubt one DATE, but what about insured_plan_termination_date?
It would really help if you could post a test script complete (including CREATE TABLE and INSERT and your complete query instructions) so that people can recreate the problem and test their ideas.
Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?
-
SQL error: ORA-31038: invalid number '420,05' when extracting data from XML
Hello everyone ,
J’ai créé dietingDBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >
" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">
< xs: element name = "Monsigniore" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "FechaCreacion" type = "xs: DateTime" / >
< xs: element name = "Version" type = "xs: String" / >
< xs: ELEMENT ref = "News" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "News" >
< xs: complexType >
< xs: Choice >
< xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "T_OrdenCompra" >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "News" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "OrdenCompraBusqueda" >
< xs:complexContent >
< xs:extension base = "T_OrdenCompra" >
< / xs:extension >
< / xs:complexContent >
< / xs: complexType >
< xs: element name = "Item" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
"< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >
< xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Fechas" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Comprador" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" nillable = "true" / >
< xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Proveedor" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,
FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);
I have a table with one xml domain.
CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,
Fecha_Ordenes number not null,
Correlativo_Ordenes number not null,
Codigo_Orden varchar2 (20) not not null primary key,
Cant_Item,
Date of InicioProceso,
Date of FinProceso,
Xmltype Orden_Detalle not null)
Orden_Detalle XMLTYPE COLUMN
STORE AS BINARY XML
XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "
ELEMENT "command";
I inserted data like that, without any Errors:" < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
< Number > 1 < / quantity >
< FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >
v1 < version > < / Version >
< Return >
< OrdenCompra xsi: type = "OrdenCompraBusqueda" >
3879-2661-SE14 < code > < / code >
< Number > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / number >
< CodigoEstado > 6 < / CodigoEstado >
3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >
< Description > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / description >
< CodigoTipo > 8 < / CodigoTipo >
< Type > SE < / Type >
< TipoMoneda > CLP < / TipoMoneda >
Is < State > < / Estado >
< CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >
Is < EstadoProveedor > < / EstadoProveedor >
< Fechas >
< FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >
< FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >
< FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >
< FechaCancelacion xsi: Nil = "true" / >
< FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >
< / Fechas >
< TieneItems > 1 < / TieneItems >
< PromedioCalificacion > 5 < / PromedioCalificacion >
< CantidadEvaluacion > 1 < / CantidadEvaluacion >
< Well > 0 < / well >
cargo <>0 < / cargo >
< TotalNeto > 53782 < / TotalNeto >
< PorcentajeIva > 19 < / PorcentajeIva >
< Impuestos > 10218 < / Impuestos >
< total > 64000 < / Total >
< Financing > 1140569 < / financing >
< Country > CL < / Pais >
< TipoDespacho > 12 < / TipoDespacho >
< FormaPago > 2 < / FormaPago >
< comprador >
< CodigoOrganismo > 118069 < / CodigoOrganismo >
< NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >
< RutUnidad > 69.141.200 - 8 < / RutUnidad >
< CodigoUnidad > 4799 < / CodigoUnidad >
Daem < NombreUnidad > < / NombreUnidad >
< Actividad / >
< DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >
Bulnes < ComunaUnidad > < / ComunaUnidad >
< RegionUnidad > Region del Biobio < / RegionUnidad >
< Country > CL < / Pais >
Antonella Brunetti < NombreContacto > < / NombreContacto >
Adquisiciones < CargoContacto > < / CargoContacto >
< FonoContacto > 56-42-2204053-2204054 < / FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / comprador >
< Proveedor >
< Code > 275020 < / code >
Luis < number > < / number >
< Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >
< CodigoSucursal > 280820 < / CodigoSucursal >
Luis < NombreSucursal > < / NombreSucursal >
< RutSucursal > 5.940.940 - 9 < / RutSucursal >
< Address > Carlos Palacios 125 < / address >
Bulnes < Comuna > < / Comuna >
Region del Biobio < region > < / region >
< Country > CL < / Pais >
< NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >
Gerente < CargoContacto > < / CargoContacto >
< FonoContacto > (56) (42) 631498 < /FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / Proveedor >
elements <>
< Quantity > 7 < / quantity >
< Return >
< item >
< Correlativo > 1 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1550 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 15500 < / Total >
< / point >
< item >
< Correlativo > 2 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1150 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 11500 < / Total >
< / point >
< item >
< Correlativo > 3 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 8 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 170 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1360 < / Total >
< / point >
< item >
< Correlativo > 4 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 580 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 2900 < / Total >
< / point >
< item >
< Correlativo > 5 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > NESCAFE < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 2 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 3900 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 7800 < / Total >
< / point >
< item >
< Correlativo > 6 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 340 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1700 < / Total >
< / point >
< item >
< Correlativo > 7 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 31 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto >420,05< / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 13021,550000000001 < / Total >
< / point >
< / News >
< / object >
< / OrdenCompra >
< / News >
< / Monsigniore >
However when I extract data, for example:
Select *.
from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))
passage (select Orden_Detalle
of xml_Orden_Detalle
where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)
path of columns Correlativo varchar2 (15) 'Correlativo '.
, Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.
, Path Categoria Varchar2 (100 CHAR) "category.
, Path of varchar2 (15) CodigoProducto 'CodigoProducto '.
, Path of Producto Varchar2 (100 CHAR) 'product '.
, Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".
, Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".
, Amount varchar2 (15) path 'amount '.
, Path of the Moneda Varchar2 (16 CHAR) "Moneda".
, Path of varchar2 (15) PrecioNeto 'PrecioNeto '.
, Path of varchar2 (15) TotalCargos 'TotalCargos '.
, Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.
, Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.
, Path of varchar2 (15) total 'Total '.
);
delivery the following error:
Informed of error:
SQL error: ORA-31038: Valor number no valido: "420,05."
«31038 00000 - "value not valid %s: \"%s\»»
* Cause: The text in the XML document does not represent a valid
value given the data type and other constraints in the schema.
* Action: Make sure the value specified in the XML documents is valid
regarding the data type and other constraints in the schema.
Note that extract le agenda [1] but the reported error is à la point [7]
Please If anyone can Help me with le solution for no report error
Thank you very much in advanceCarlosin Chile, the decimal point are ', 'no'.', the xml data table is OK for us
You do not understand.
Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.
(3) TO_CHAR (...) the code is part of a procedure
Again, do NOT build a dynamic path like that.
Why not just move through the records returned by the query (if you need close at all)?
FOR rec in)
SELECT x.*
From your_table t
XMLTABLE (...) x
)
LOOP
END LOOP;
What is the role of the v_CantItems variable? Paging?
Whence its value?
-
Download "error: ORA-01031: insufficient privileges" when try to add relief of database
Hi all
I get insufficient privileges error when I added a standby database to dg configuration. I read some blog and he said that dgmgrl does not support os authentication, which means that I need to connect with sys and password. But I found that if I keep standby and primary SIDs are the same, the error will not occur even if I don't provide a password. Anyone know the reason? And no workaround?
The process as follows:
main SID: orcl ensures sid: prxx
connect to "dgmgrl / '.
Run ' add the database ' prxx_stby "as an identifier of connection is"prxx_stby"
Download:
Error: ORA-01031: insufficient privileges
Failed.But if sid main: orcl ensures sid: orcl
connect to "dgmgrl / '.
Run ' add the database ' orcl_stby "as an identifier of connection is"orcl_stby"
Download:
Database "orcl_stby" added
Liz
I think still you can connect as "dgmgrl /", but its recommended to use "dgmgrl sys / * '.
As rchem has said, there can be question of password. It doesn't matter whether the SID is the same or not primary and standby so different locations. So the best practice is to connect to the database from the primary server before using Oracle net service and test whether you connect or not.
Ex: Prim_host > sqlplus sys/***@stby as sysdba
There are a lot of possible issues
-Missing or invalid password file
-Service name is not registered with earphone
-service incorrect, mentioned in the tns names
and so many things, overlaps with these things.
Maybe you are looking for
-
On a MBP upgrade Sierra retina I was getting no audio alert when I did the update that made me go and look at the prefs. and here there was no plist for Mail just a 'shared '. (I have no idea how long this has been the case). So, what should I do to
-
Texts of Web sites are buged...
In the websites, some texts are bug, but if I choose this text, text debug... here an impression: http://i.imgur.com/sSm9BLw.png As you can see, have some texts put on listening... So, how can I fix it? Kind regards.
-
Macro Express works in all other browsers (and programs), but is no longer working in Firefox. The arrow pointing upwards and down arrow works in all other browsers, but in Firefox, instead of moving her down (or up) a line at a time, the page will m
-
Question about audio input on Satellite 1410 304
Who can help me? I want to connect my discs rotates through an amplifier to my Satellite 1410 304 to digitize my vinyl. I used the helmet on the amplifier output and connected to the audio input on the laptop (microfone entry), but don't get all the
-
Upgrade CPU HP Pavilion DV6-6B25TX Intel Core i3 - 2350M of Core™ i7 - 2620 M processor?
Hello Can I upgrade CPU HP Pavilion DV6-6B25TX Intel Core i3 - 2350M Core™ i7 - 2620 M processor? RAM can be upgraded to 16 GB... ? 8 GB / dimm Pls. suggest / recommend... Concerning Manish Singh