ORA-31061: Error XDB
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
don't know what I'm doing wrong here. (I don't use xml often if I'm sure it's something obvious)OK has created the following table and sequence
CREATE TABLE saved_queries
(
seq_cd NUMBER,
user_id VARCHAR2 (50 BYTE) NOT NULL,
query_name VARCHAR2 (200 BYTE) NOT NULL,
create_dt DATE NOT NULL,
last_update_dt DATE NOT NULL,
query_info SYS.XMLTYPE NOT NULL
);
ALTER TABLE saved_queries ADD (
CONSTRAINT SAVED_QUERIES_PK
PRIMARY KEY (SEQ_CD));
ALTER TABLE saved_queries ADD (
CONSTRAINT SAVED_QUERIES_UQ unique (user_id , query_name ));
CREATE SEQUENCE saved_queries_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
However, when I try my insertINSERT INTO saved_queries (seq_cd,
user_id,
query_name,
create_dt,
last_update_dt,
query_info)
VALUES (
saved_queries_seq.nextval,
'Bdellinger',
'My First Query',
SYSDATE,
SYSDATE,
sys.xmltype.
createxml (
'<query>
<DropDownListAssignedTo>Bryan Dellinger</DropDownListAssignedTo>
< DropDownListTaskStatus>In-Progress</DropDownListTaskStatus>
< DropDownListTaskStatus>Pending</DropDownListTaskStatus>
</query>'));
I getORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
In line 3 of orastream:
LPX-00231: invalid character 32 (' ') found in a Name or Nmtoken
Thanks for your helpLet me know if you need more info.
"Would it be the space after the"<' in="" this="">'>
< DropDownListTaskStatus>In-Progress
< DropDownListTaskStatus>Pending
?
Tags: Database
Similar Questions
-
ORA-31061 XDB-error: special tank tank escaped conversion failed
I build a script to export data in a table to an xml file. After that, I came across this error: ORA-31061 XDB-error: special tank tank escaped conversion failed.
I have reduced the problem in 1 column and now knows that this query will trigger the problem:
Customer OF SELECT XMLELEMENT ('name', lastname)
clearly, there are some lastname in the array that contains some sort of bad character. The table contains 24,000,000 customers.
Is it possible to know what record (or records) are the cause of the problem?
Version information:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE Production 11.2.0.2.0
AMT for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionErik_NL wrote:
WE8MSWIN1252Oracle recommends to use Unicode (AL32UTF8) as the database character set. Anyway, I'm still not sure that the problem is necessarily tied to the character set. So, as you suggest, it might be useful to have the list of family names is generating the error.
You can try something similar to the following:
CREATE OR REPLACE TYPE names_ty IS TABLE OF VARCHAR2(50) / CREATE TABLE bad_names(lastname VARCHAR2(50) NOT NULL); CREATE OR REPLACE PROCEDURE logBadName(p_name VARCHAR2) AUTHID CURRENT_USER IS PRAGMA AUTONOMOUS_TRANSACTION; BEGIN INSERT INTO bad_names(lastname) VALUES(p_name); COMMIT; END logBadName; / SHOW ERRORS; DECLARE customersNames names_ty := names_ty(); BAD_NAME_EXCEPTION EXCEPTION; PRAGMA EXCEPTION_INIT(BAD_NAME_EXCEPTION, -31061); xmlInfo XMLTYPE; idx PLS_INTEGER; lastName VARCHAR2(50); BEGIN SELECT lastname BULK COLLECT INTO customersNames FROM customer; idx := customersNames.FIRST; WHILE idx IS NOT NULL LOOP lastName := customersNames(idx); BEGIN SELECT XMLElement("name", lastName) INTO xmlInfo FROM dual; EXCEPTION WHEN BAD_NAME_EXCEPTION THEN logBadName(p_name=>lastName); END; idx := customersNames.NEXT(idx); END LOOP; END; /
And finally the rows in the bad_names table will give you the information you're looking for.
I hope this can help you.
Kind regards
DariyooshEdited by: dariyoosh June 4, 2013 08:32
Edited by: dariyoosh June 4, 2013 09:47
Edited by: dariyoosh June 4, 2013 09:48
-
Hello
I have a table in which I will be storing an XMLTYPE column based on an XML schema. I use the following version of the database:
Now, when I run my test InPlace Schema Evolution, I get the following error message:SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 23 18:20:12 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
< font color = "red" >
< / make >ORA-31166: internal error code to handle ignorable attributes
I built a re-producable case of test for the purpose of this post on the forum. For starters, I have a database scheme grants the following privileges:
All other scripts are run as the database schema. For the purposes of clarity, let's call the {*} TEST_DB_SCHEMA {*}. I follow the steps below in this scheme:DIRECTLY GRANTED SYSTEM PRIVS ============================= CREATE TRIGGER ALTER SESSION CREATE TABLE EXECUTE PRIVS (SYS-OWNED PACKAGES) ============= EXECUTE ON DBMS_XMLSCHEMA ROLES GRANTED ============= CONNECT DATA_ROLE DATA_ROLE DDL ============= create role DATA_ROLE not identified; grant create database link to DATA_ROLE; GRANT CREATE MATERIALIZED VIEW TO DATA_ROLE; grant create procedure to DATA_ROLE; grant create sequence to DATA_ROLE; GRANT CREATE SYNONYM TO DATA_ROLE; grant create table to DATA_ROLE with admin option; grant create trigger to DATA_ROLE; grant create view to DATA_ROLE; grant select any dictionary to DATA_ROLE;
H3. 1. run this PL/SQL script to record the Version 1 of my XML schema:
H3. 2. create a bunch of Table with an XMLTYPE column based on version 1 of my XML schema:PROMPT -------------------------------; PROMPT INITIAL XML SCHEMA REGISTRATION; PROMPT -------------------------------; SET SERVEROUTPUT ON SET FEEDBACK OFF DECLARE l_xsd_url_con CONSTANT VARCHAR2(60) := 'http://home/xsd/test_binXML_v1.xsd'; l_xml_schema VARCHAR2(32767); E_XSD_ALREADY_REGISTERED EXCEPTION; PRAGMA EXCEPTION_INIT(E_XSD_ALREADY_REGISTERED, -31085); BEGIN l_xml_schema := '<xs:schema'||CHR(10)|| 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'||CHR(10)|| 'xmlns:xdb="http://xmlns.oracle.com/xdb"'||CHR(10)|| 'version="1.0"'||CHR(10)|| 'xdb:storeVarrayAsTable = "true">'||CHR(10)|| ' <xs:element name="TransactionBatch" type="TransactionBatchType" xdb:defaultTable="XSD_TEST_BATCH_BINXML1"/>'||CHR(10)|| ' <xs:complexType name="TransactionBatchType">'||CHR(10)|| ' <xs:sequence>'||CHR(10)|| ' <xs:element name="Transaction" type="TransactionType" minOccurs="1" maxOccurs="unbounded" xdb:defaultTable="XSD_TEST_TRANSACTION_BINXML1"/>'||CHR(10)|| ' </xs:sequence>'||CHR(10)|| ' </xs:complexType>'||CHR(10)|| ' <xs:complexType name="TransactionType">'||CHR(10)|| ' <xs:sequence>'||CHR(10)|| ' <xs:element name="Portal" type="PortalType" minOccurs="1" maxOccurs="1" />'||CHR(10)|| ' <xs:element name="CustomerId" type="CustomerIdType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="TransactionQuantity" type="TransactionQuantityType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="AppTransactionId" type="AppTransactionIdType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="TransactionDetails" type="TransactionDetailType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="Username" type="UsernameType" minOccurs="1" maxOccurs="1" />'||CHR(10)|| ' </xs:sequence>'||CHR(10)|| ' </xs:complexType>'||CHR(10)|| ' <xs:simpleType name="PortalType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="30"/>'||CHR(10)|| ' <xs:enumeration value="TEST1"/>'||CHR(10)|| ' <xs:enumeration value="TEST2"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| ' <xs:simpleType name="CustomerIdType">'||CHR(10)|| ' <xs:restriction base="xs:string"/>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| ' <xs:simpleType name="TransactionQuantityType">'||CHR(10)|| ' <xs:restriction base="xs:integer">'||CHR(10)|| ' <xs:minExclusive value="0"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| ' <xs:simpleType name="AppTransactionIdType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="20"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| ' <xs:simpleType name="TransactionDetailType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| ' <xs:simpleType name="UsernameType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="30"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| ' </xs:simpleType>'||CHR(10)|| '</xs:schema>'; DBMS_XMLSCHEMA.REGISTERSCHEMA( schemaurl => l_xsd_url_con, schemadoc => l_xml_schema, local => TRUE, -- XSD must only be visible to the Owner DB Schema in which this script is run. genTypes => FALSE, -- Don't want to generate object types, as we're using Binary XML. force => FALSE, -- Raise all errors on creation owner => USER, -- XML Schema will belong to the currently executing user. options => DBMS_XMLSCHEMA.REGISTER_BINARYXML -- We wish to register the XSD as Binary XML. ); EXCEPTION WHEN E_XSD_ALREADY_REGISTERED THEN DBMS_OUTPUT.PUT_LINE('XML Schema '||l_xsd_url_con||' is already registered.'); END; / SET FEEDBACK ON
H3. 3. fill this table with the test data.PROMPT ----------------------; PROMPT ONE-OFF DDL STATEMENTS; PROMPT ----------------------; DROP TABLE test_batch; DROP SEQUENCE seq_test_batch_id; CREATE TABLE test_batch ( batch_id NUMBER(20), batch_timestamp TIMESTAMP DEFAULT SYSTIMESTAMP, batch_xml XMLTYPE, CONSTRAINT tbh_batch_id_nn CHECK(batch_id IS NOT NULL), CONSTRAINT tbh_batch_timestamp_nn CHECK(batch_timestamp IS NOT NULL), CONSTRAINT tbh_batch_xml_nn CHECK(batch_xml IS NOT NULL) ) XMLTYPE COLUMN batch_xml STORE AS SECUREFILE BINARY XML XMLSCHEMA "http://home/xsd/test_binXML_v1.xsd" ELEMENT "TransactionBatch" PARTITION BY RANGE(batch_timestamp) INTERVAL (NUMTOYMINTERVAL(1, 'MONTH')) ( PARTITION P_TEST_BATCH_201208 VALUES LESS THAN (TO_DATE('01-SEP-2012', 'DD-MON-YYYY')) TABLESPACE &&TABLSPACE_OF_YOUR_CHOICE ); CREATE UNIQUE INDEX idx_tbh_batch_id ON test_batch(batch_id) TABLESPACE TXTREME_IDX_XLG; ALTER TABLE test_batch ADD CONSTRAINT tbh_batch_id_pk PRIMARY KEY (batch_id) USING INDEX idx_tbh_batch_id; CREATE SEQUENCE seq_test_batch_id START WITH 1 INCREMENT BY 1 MAXVALUE 99999999999999999999 CYCLE NOCACHE NOORDER;
H3. 4. save the Version 2 of my XML schemaPROMPT --------------------------; PROMPT CREATING INITIAL TEST DATA; PROMPT --------------------------; TRUNCATE TABLE TEST_BATCH; SET TIMING ON DECLARE l_batch_count_con CONSTANT NUMBER(4) := 200; l_transaction_count PLS_INTEGER; l_total_transactions PLS_INTEGER DEFAULT 0; l_transaction_xmlclob CLOB; l_transaction_xmldoc XMLTYPE; BEGIN FOR idx IN 1..l_batch_count_con LOOP l_transaction_count := TRUNC(DBMS_RANDOM.VALUE(1,100)); -- Initialise XML CLOB String. l_transaction_xmlclob := '<?xml version="1.0"?>'||CHR(10)||'<TransactionBatch>'; -- Insert the contents of the XML CLOB String. FOR idx IN 1 .. l_transaction_count LOOP l_transaction_xmlclob := l_transaction_xmlclob||CHR(10)|| ' <Transaction>'||CHR(10)|| ' <Portal>TEST1</Portal>'||CHR(10)|| ' <CustomerId>1234567891</CustomerId>'||CHR(10)|| ' <TransactionQuantity>4</TransactionQuantity>'||CHR(10)|| ' <AppTransactionId>1232K89C</AppTransactionId>'||CHR(10)|| ' <TransactionDetails>This is another long free text field</TransactionDetails>'|| ' <Username>Jimbo2</Username>'||CHR(10)|| ' </Transaction>'; END LOOP; --Terminate XML CLOB String. l_transaction_xmlclob := l_transaction_xmlclob||CHR(10)||'</TransactionBatch>'; -- Create XMLTYPE XML Document. l_transaction_xmldoc := XMLTYPE.createXML(l_transaction_xmlclob); -- Populate the TEST_BATCH Table. INSERT INTO test_batch ( batch_id, batch_timestamp, batch_xml ) VALUES ( SEQ_TEST_BATCH_ID.NEXTVAL, SYSTIMESTAMP, l_transaction_xmldoc ); l_total_transactions := l_total_transactions + l_transaction_count; END LOOP; DBMS_OUTPUT.PUT_LINE('Inserted a total of '||l_total_transactions||' transaction XML pieces across '||l_batch_count_con||' Test Batches.'); COMMIT; DBMS_OUTPUT.PUT_LINE('Commit complete.'); END; / SET TIMING OFF
H3. 5 test to insert a new XML document in line with the second XML schema. This test fails as expected.PROMPT -----------------------------------------------------------------------------------; PROMPT NEW XML SCHEMA REGISTRATION - IDENTICAL TO OLD SCHEMA EXCEPT FOR NEW <Test> ELEMENT; PROMPT -----------------------------------------------------------------------------------; SET FEEDBACK OFF DECLARE l_xsd_url_con CONSTANT VARCHAR2(60) := 'http://home/xsd/test_binXML_v2.xsd'; l_xml_schema VARCHAR2(32767); E_XSD_ALREADY_REGISTERED EXCEPTION; PRAGMA EXCEPTION_INIT(E_XSD_ALREADY_REGISTERED, -31085); BEGIN l_xml_schema := '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">'||CHR(10)|| '<xs:element name="TransactionBatch" type="TransactionBatchType" xdb:defaultTable="XSD_TEST_BATCH_BINXML2"/>'||CHR(10)|| '<xs:complexType name="TransactionBatchType">'||CHR(10)|| ' <xs:sequence>'||CHR(10)|| ' <xs:element name="Transaction" type="TransactionType" minOccurs="1" maxOccurs="unbounded" xdb:defaultTable="XSD_TEST_TRANSACTION_BINXML2"/>'||CHR(10)|| ' </xs:sequence>'||CHR(10)|| '</xs:complexType>'||CHR(10)|| '<xs:complexType name="TransactionType">'||CHR(10)|| ' <xs:sequence>'||CHR(10)|| ' <xs:element name="Portal" type="PortalType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="CustomerId" type="CustomerIdType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="TransactionQuantity" type="TransactionQuantityType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="AppTransactionId" type="AppTransactionIdType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="TransactionDetails" type="TransactionDetailType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="Username" type="UsernameType" minOccurs="1" maxOccurs="1"/>'||CHR(10)|| ' <xs:element name="Test" type="TestType" minOccurs="0" maxOccurs="1"/>'||CHR(10)|| ' </xs:sequence>'||CHR(10)|| '</xs:complexType>'||CHR(10)|| '<xs:simpleType name="PortalType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="30"/>'||CHR(10)|| ' <xs:enumeration value="TEST1"/>'||CHR(10)|| ' <xs:enumeration value="TEST2"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="CustomerIdType">'||CHR(10)|| ' <xs:restriction base="xs:string"/>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="TransactionQuantityType">'||CHR(10)|| ' <xs:restriction base="xs:integer">'||CHR(10)|| ' <xs:minExclusive value="0"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="AppTransactionIdType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="20"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="TransactionDetailType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="UsernameType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="30"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '<xs:simpleType name="TestType">'||CHR(10)|| ' <xs:restriction base="xs:string">'||CHR(10)|| ' <xs:minLength value="1"/>'||CHR(10)|| ' <xs:maxLength value="30"/>'||CHR(10)|| ' </xs:restriction>'||CHR(10)|| '</xs:simpleType>'||CHR(10)|| '</xs:schema>'; DBMS_XMLSCHEMA.REGISTERSCHEMA( schemaurl => l_xsd_url_con, schemadoc => l_xml_schema, local => TRUE, -- XSD must only be visible to the Owner DB Schema in which this script is run. genTypes => FALSE, -- Don't want to generate object types, as we're using Binary XML. force => FALSE, -- Raise all errors on creation owner => USER, -- XML Schema will belong to the currently executing user. options => DBMS_XMLSCHEMA.REGISTER_BINARYXML -- We wish to register the XSD as Binary XML. ); EXCEPTION WHEN E_XSD_ALREADY_REGISTERED THEN DBMS_OUTPUT.PUT_LINE('XML Schema '||l_xsd_url_con||' is already registered.'); END; / SET FEEDBACK ON
H3. 6. try Inplace development of Version 1 of the XML schema in Version 2.PROMPT ---------------------------------------------------------------; PROMPT ATTEMPT TO INSERT V2 XSD-COMPLIANT XMLDOC INTO TEST_BATCH TABLE; PROMPT ---------------------------------------------------------------; DECLARE l_transaction_xmldoc XMLTYPE; E_XSD_VALIDATION_FAILURE EXCEPTION; PRAGMA EXCEPTION_INIT(E_XSD_VALIDATION_FAILURE, -31061); BEGIN l_transaction_xmldoc := XMLTYPE.createXML( '<?xml version="1.0" encoding="UTF-8"?>'||CHR(10)|| '<TransactionBatch>'||CHR(10)|| ' <Transaction>'||CHR(10)|| ' <Portal>CARMAN</Portal>'||CHR(10)|| ' <CustomerId>1234567891</CustomerId>'||CHR(10)|| ' <TransactionQuantity>4</TransactionQuantity>'||CHR(10)|| ' <AppTransactionId>1232K89C</AppTransactionId>'||CHR(10)|| ' <TransactionDetails>This is a long free text field</TransactionDetails>'||CHR(10)|| ' <Username>Jimbo2</Username>'||CHR(10)|| ' <Test>This is an In-Place Schema Evolution Test</Test>'||CHR(10)|| ' </Transaction>'||CHR(10)|| '</TransactionBatch>' ); -- Attempt to populate the SUBMISSION_BATCH Table. INSERT INTO submission_batch ( batch_id, batch_timestamp, batch_xml ) VALUES ( SEQ_SUB_BATCH_ID.NEXTVAL, SYSTIMESTAMP, l_transaction_xmldoc ); DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT||' row inserted.'); COMMIT; DBMS_OUTPUT.PUT_LINE('Commit complete.'); EXCEPTION WHEN E_XSD_VALIDATION_FAILURE THEN DBMS_OUTPUT.PUT_LINE('Insert failed as expected.'||CHR(10)); DBMS_OUTPUT.PUT_LINE(SQLERRM); END; /
H3. The scripts above provide the following Test output:PROMPT --------------------------------------------------------------------------------------; PROMPT PERFORM IN-PLACE EVOLUTION AND DE-REGISTER/PURGE OLD SCHEMA IF EVOLUTION IS SUCCESSFUL; PROMPT --------------------------------------------------------------------------------------; SET TIMING ON DECLARE l_current_schema XMLTYPE; l_new_schema XMLTYPE; l_xsd_differences XMLTYPE; l_resource BOOLEAN; BEGIN SELECT schema INTO l_current_schema FROM user_xml_schemas WHERE schema_url = 'http://home/xsd/test_binXML_v1.xsd'; SELECT schema INTO l_new_schema FROM user_xml_schemas WHERE schema_url = 'http://home/xsd/test_binXML_v2.xsd'; SELECT XMLDIFF(l_current_schema, l_new_schema) INTO l_xsd_differences FROM dual; DBMS_OUTPUT.PUT_LINE('Successfully extrapolated XDIFF XML Document.'); DBMS_XMLSCHEMA.inPlaceEvolve( 'http://home/xsd/test_binXML_v1.xsd', l_xsd_differences, DBMS_XMLSCHEMA.INPLACE_TRACE ); DBMS_OUTPUT.PUT_LINE('Successfully evolved original XML Schema.'); EXCEPTION WHEN OTHERS THEN ROLLBACK; DBMS_OUTPUT.PUT_LINE('Error issued during InPlace XML Schema Evolution:'); DBMS_OUTPUT.PUT_LINE(SQLERRM); END; /
NOTE: When I ran the above tests, I had already created the test of XML schemas. That's why the output messages, say...Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 Connected as TEST_DB_SCHEMA@dbs02local SQL> ------------------------------- INITIAL XML SCHEMA REGISTRATION ------------------------------- XML Schema http://home/xsd/test_binXML_v1.xsd is already registered. Executed in 0 seconds ---------------------- ONE-OFF DDL STATEMENTS ---------------------- Table created Executed in 0.016 seconds Index created Executed in 0.016 seconds Table altered Executed in 0 seconds Sequence created Executed in 0 seconds -------------------------- CREATING INITIAL TEST DATA -------------------------- Table truncated Executed in 0.032 seconds Inserted a total of 10259 transaction XML pieces across 200 Test Batches. Commit complete. PL/SQL procedure successfully completed Executed in 8.487 seconds ----------------------------------------------------------------------------------- NEW XML SCHEMA REGISTRATION - IDENTICAL TO OLD SCHEMA EXCEPT FOR NEW <Test> ELEMENT ----------------------------------------------------------------------------------- XML Schema http://home/xsd/test_binXML_v2.xsd is already registered. --------------------------------------------------------------- ATTEMPT TO INSERT V2 XSD-COMPLIANT XMLDOC INTO TEST_BATCH TABLE --------------------------------------------------------------- Insert failed as expected. ORA-31061: XDB error: XML event error ORA-19202: Error occurred in XML processing LSX-00213: only 0 occurrences of particle "Transaction", minimum is 1 PL/SQL procedure successfully completed -------------------------------------------------------------------------------------- PERFORM IN-PLACE EVOLUTION AND DE-REGISTER/PURGE OLD SCHEMA IF EVOLUTION IS SUCCESSFUL -------------------------------------------------------------------------------------- Successfully extrapolated XDIFF XML Document. Error issued during InPlace XML Schema Evolution: ORA-31166: internal error code to handle ignorable attributes PL/SQL procedure successfully completed Executed in 0.046 seconds SQL>
H4. Now, as it is the first time I've ever tried evolution of XML schema in Oracle XMLDB, is there someone who could potentially open the door please, re. solve the < font color = "red" >ORA-31166< / police > error?Hello
First of all, thank you for your efforts on the provision of a decent test case.
However, there are a few inconsistencies:
-Step 5 attempts to insert into SUBMISSION_BATCH, but the table created above is TEST_BATCH
-Same for the sequence nameNow back to the real question...
I think the problem comes because you run XMLDiff against two versions saved of your drawings.
When Oracle stores a schema, it adds a large number of attributes for internal use (you can see them by querying USER_XML_SCHEMAS. DIAGRAM) but we as end users don't have to worry about them.
However, by building the Xdiff document based on these two 'internal' versions, we explicitly say Oracle whose internal attributes must be changed during the evolution of the scheme, leading to potential conflicts.A few other comments:
-Given that you're using the binary XML schema, you must also set "genTables-online false" and more "genTypes-online false."
-Also delete all annotations from xdb:defaultTable and xdb:storeVarrayAsTable on the diagrams, they are of no use in this situation.
-Do not save the schema of the v2, it is not necessary. Just use a transient instance when calling XMLDiffSo, to summarize:
-XMLDiff run against both original patterns (do not save a new in any case, the process of evolution will take care of replacing the old).
-of course, don't forget to change the INPLACE_TRACE to INPLACE_EVOLVE when ready :)Hope that helps.
Published by: odie_63 on August 23, 2012 16:31 - fixed some typos
-
ORA-00604: error occurred at recursive SQL level 1 ORA-01882: region time zone not found
Dear all,
IAM trying to connect to establish a connection to a database using JDBC thin oracle client. IAM getting the following error.
Could someone help me with a solution please
Operating system: Oracle linux
Database Version: 12 c
java.sql.SQLException: ORA-00604: error occurred at the SQL level 1 recursive
ORA-01882: zone schedule region not found
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:144)
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:73)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java:1243)
at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.getLocalConnect(SnpsDialogTestConnet.java:173)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$ 400 (SnpsDialogTestConnet.java:51)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 5.doInBackground(SnpsDialogTestConnet.java:629)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 5.doInBackground(SnpsDialogTestConnet.java:625)
at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:947)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: ORA-00604: error occurred at the SQL level 1 recursive
ORA-01882: zone schedule region not found
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:144)
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:73)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter.getConnection(OnConnectOnDisconnectDataSourceAdapter.java:87)
to oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ ConnectionProcessor.run (LoginTimeoutDatasourceAdapter.java:228)
to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615)
... 1 more
Caused by: java.sql.SQLException: ORA-00604: error occurred at the SQL level 1 recursive
ORA-01882: zone schedule region not found
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:503)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:546)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:436)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1021)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:682)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:789)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:412)
at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:385)
at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:352)
at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:331)
... 6 more
Best regards
Hi CPR1,.
I tried to connect to database using ODI.
What I did at work is
Double-click the database server--->, click Properties, and then you have the key and the value
In the Insert key as oracle.jdbc.timezoneAsRegion, and its value is FALSE
Thank you
Best regards
-
connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent
Hi all
I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.
I want to connect to MySQL. I do the following
Configure Listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(= Extproc PROGRAM)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(SID_NAME = ORCL)
)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(PROGRAM = HSODBC)
(ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
)
Tnsnames.ora configuration
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)create file initodbc.ora in the folder hs
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = OFF
Restart the listner
tnsping
C:\users\administrator > tnsping mysql
AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
015 13:02:52Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
(PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
OK (0 msec)Create the connection odbc for Unicode
the test is successful
now, I create the dblink
create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";
then try to select from a table inside the MySQL database
SQL > select * from appeal@mysql;
Select * from appeal@mysql
*
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MYSQL
How could I solve this problem?
Thank you.
Hello
I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows. You can not install the 32-bit on WIndows 64-bit HSODBC.
Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database. HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.
Kind regards
Mike
-
ORA-19625: error identification of file
Hi all;
SYS > select name, database_role, protection_mode from v$ database;
NAME DATABASE_ROLE PROTECTION_MODE
--------- ---------------- --------------------
PERFORMANCE MAXIMUM STANDBY PHYSICS CRMS
SYS > select max(sequence#) from v$ log_history;
MAX(SEQUENCE#)
--------------
14424
SYS > list of archive logs;
Database log mode Archive Mode
Active AutoArchive
Destination of archive USE_DB_RECOVERY_FILE_DEST
Sequence of journal online oldest 14427
Log sequence to archive 0
Current log sequence 14428
> > I got some error at the time of replication messages. (errros are from alert.log to waiting for database)
Physical Standby Database mounted.
Lost write protect mode the "typical" value
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:
ORA-00313: open failed for members of the Journal 4 of the thread group 0
ORA-00312: threads of journal online 4 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo4.log'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:
ORA-00313: open failed for members of the Journal 4 of the thread group 0
ORA-00312: threads of journal online 4 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo4.log'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:
ORA-00313: open failed for the members of the newspaper group 5 of the thread 0
ORA-00312: threads of journal online 5 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo5.log'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
..
...
Completed: alter database mount standby
Fri 30 Oct 23:08:35 2015
RMAN DUPLICATE: Errors in krbm_getDupCopy
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:
ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/system01.dbf
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
RMAN DUPLICATE: Errors in krbm_getDupCopy
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:
ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/sysaux01.dbf
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
RMAN DUPLICATE: Errors in krbm_getDupCopy
Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:
ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/users01.dbf
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
11.2.0.1 on redhat
It seems that two copies has been tried or done more than once and on the second time, he threw the "Krbm_getDupCopy" (which made me think see the stop).
So if you ever have to re-create the day before do not delete files on the standby is the lesson.
OR
You have the error because RMAN checks the files on the two copies of 11.2 on. (This is probably what happened)
Thank you! I learned something new!
See
RMAN DUPLICATE: Errors in Krbm_getDupCopy found in the alert.log (Doc ID 1476641.1)
Best regards
mseberg
-
DB not starting not due ORA-00205: error in the identification of 11GRAC control file
Hello
I have it configured in the OEL5 11 g RAC (11.2.0.1.0). When I tried to start the database using the command srvctl or by manually I get the below error. \
RPRC-1079: failed to start of ora.rac.db resources
ORA-00205: error in the identification of control files, see log alerts for more information
CRS-2674: beginning of 'ora.rac.db', 'ractwo' failed
CRS-2632: there is no more servers to try to place the "ora.rac.db" resource on which will achieve its investment policy
ORA-00205: error in the identification of control files, see log alerts for more information
CRS-2674: beginning of 'ora.rac.db', 'racone' failed
The content of the alert below log.
ORA-00210: could not open the specified control file
ORA-00202: control file: "+ RACDG/rac/controlfiles/control02.ctl".
ORA-17503: ksfdopn:2 could not open the file +RACDG/rac/controlfiles/control02.ctl
ORA-15001: diskgroup 'RACDG' does not exist or is not mounted
ORA-15055: unable to connect to the ASM instance
ORA-27140: attach to post/wait installation failed
ORA-27300: OS dependent operating system: invalid_egid failed with status: 1
ORA-27301: OS Error Message: operation not permitted
ORA-27302: an error occurred at: skgpwinit6
ORA-27303: additional information: current startup egid = 500 (oinstall), egid = 503 (asmadmin)
ORA-00210: could not open the specified control file
ORA-00202: control file: "+ RACDG/rac/controlfiles/control01.ctl".
ORA-17503: ksfdopn:2 could not open the file +RACDG/rac/controlfiles/control01.ctl
ORA-15001: diskgroup 'RACDG' does not exist or is not mounted
ORA-15055: unable to connect to the ASM instance
ORA-27140: attach to post/wait installation failed
ORA-27300: OS dependent operating system: invalid_egid failed with status: 1
ORA-27301: OS Error Message: operation not permitted
ORA-27302: an error occurred at: skgpwinit6
ORA-27303: additional information: current startup egid = 500 (oinstall), egid = 503 (asmadmin)
But my ASM instance is running and I am able to see the controlfiles.
State Type sector Rebal to Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files name of the block
EXTERN MOUNTED N 512 4096 1048576 20472 13772 0 13772 0 N RACDG.
I don't know is there any problem of perission. Oracle cluster and DB is running as user 'oracle '.
Nobody does face this problem before? Let me know where to check this error.
Kind regards
007
Hello
Check "the correct permission must be" - rwsr - s - x '.»»»
Stop the CRS.
Change the permissions of the file to GI_HOME/bin/oracle for "- rwsr - s - x":$su - grid
$cd GI_HOME/bin
$chmod 6751 oracle
Oracle-l $lsStart the /CRS.
Start your database.
Thank you
Sundar
-
Get ORA-00942 error with the clause, but not when the user sys.
Hello
About 3 weeks ago we increased our memary to PGA_aggregate_target = 60 GB, SGA_target = 58 GB Oracle instance. About 1 week ago our cognos user started having errors ORA-00942 for these queries generated with clause, with the same authorization. i.e.
with 'aBmtQuerySubject4' as
(select "BANK_NOTE_ADI_INFO_T". ' ' PRINT_BATCH_ID ' 'PRINT_BATCH_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
'BANK_NOTE_ADI_INFO_T '. ' ' RDP_ID ' 'RDP_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' FI_ID ' 'FI_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' DEPOSIT_NB ' 'DEPOSIT_NB '.
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_MACHINE_ID ' 'PROCESS_MACHINE_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' OUTPUT_STACKER_TYPE_CE ' 'OUTPUT_STACKER_TYPE_CE '.
'BANK_NOTE_ADI_INFO_T '. ' ' PARTITION_KEY ' 'PARTITION_KEY '.
'BANK_NOTE_ADI_INFO_T '. ' ' LOAD_ID ' 'LOAD_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' SERIAL_NUMBER_ID ' 'SERIAL_NUMBER_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' SHIFT_NB ' 'SHIFT_NB '.
'BANK_NOTE_ADI_INFO_T '. ' ' BANK_NOTE_COUNT_NB ' 'BANK_NOTE_COUNT_NB '.
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
)
'CountResultQuery5' as
(select count ("aBmtQuerySubject4". "BANK_NOTE_COUNT_NB") 'C_1' "
, count (1) 'C_2' of 'aBmtQuerySubject4 '.
After having count (*) > 0)
Select 'CountResultQuery5 '. "' C_2 ' 'Count1.
of 'CountResultQuery5 '.
;
with 'aBmtQuerySubject4' as
(select "BANK_NOTE_ADI_INFO_T". ' ' LOAD_ID ' 'LOAD_ID '.
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
)
'CountResultQuery5' as
(select count ("aBmtQuerySubject4". "LOAD_ID") 'C_1' "
, count (1) 'C_2 '.
of 'aBmtQuerySubject4' having count (*) > 0
)
Select 'CountResultQuery5 '. "' C_2 ' 'Count1' of 'CountResultQuery5 '.
;-output like:
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
*
ERROR at line 3:
ORA-00942: table or view does not exist
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
*
ERROR at line 3:
ORA-00942: table or view does not existSince 2 days ago, we get ORA-0403.
One thing I noticed that the coguser can run above queries correctly after they are run by a user sys...
Could you please help me on how I can resolve ORA-00942 error?
Thank you very much, much in advance for all your help and your advice! :-)
Jihong.
"One thing I've noticed the coguser can run over queries correctly after they are run by a user sys... »
Jihong,
Do you mean that queries can be run successfully as a sys user, or as long as once a sys cognos user user has run the query at least once?
Gerard
-
ORA-17628: error Oracle 19505 returned by remote Oracle - Dup Active Server
Hi all
I'm doing a duplicate RMAN of a 11.2.0.4 database to another host on a different IP address.
Goal
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Auxiliary (nomount)
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
I've added an entry static listener to the file on the server to THE listener and start the instance in nomount.
(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = IST_11G) (ORACLE_HOME = /devdb3/u01b/app/oracle/product/11.2.0.4) (SID_NAME = IST_11G) )
TNSNAMES on the server to THE:
points to the TARGET server:
IST_11G_192 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.48)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
the server pointing to THE
IST_11G = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
TNSNAMES on the TARGET server:
IST_11G_NEW = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
instance pFile to THE:
Using parameters in Server pfile /devdb3/u01b/app/oracle/product/11.2.0.4/dbs/initIST_11G.ora-side
Parameters of the system with default values:
db_name = "IST_11G".
I have sftp file password above and named correctly.
Check the connections
--from target $ sqlplus sys/xxx@IST_11G_NEW as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 30 08:32:10 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
Since in THE
$ sqlplus sys/xxx@IST_11G_192 as sysdba
SQL * more: Release 11.2.0.4.0 Production on Mar 30 08:32:32 June 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL >
So I checked that I have two means of connection, my at THE start and I can connect.
Here's my RMAN command (Note: the TARGET servers and have the same host name, don't ask...) "This is why we use the IP address in the TNSNAMES):
connection:
rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log
run { duplicate target database to IST_11G from active database NOFILENAMECHECK spfile set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; }
$ rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:37:02 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> run 2> { 3> duplicate target database to IST_11G from active database NOFILENAMECHECK spfile 4> 5> 6> set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' 7> set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' 8> set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' 9> set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; 10> } 11> 12> Starting Duplicate Db at Jun 30 2015 08:37:10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=216 device type=DISK contents of Memory Script: { backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' ; sql clone "alter system set spfile= ''/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora''"; } executing Memory Script Starting backup at Jun 30 2015 08:37:11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 06/30/2015 08:37:12 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:37:12 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
I can't understand why I'm getting ORA-17628: error Oracle 19505 returned by remote Oracle server.
So, I try one of the commands connecting memory se scripts to check if was not a problem with my execution block.
backup copy reuse targetfile ' / devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format ' / devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora';
$ rman target sys/sys_IST_11G@IST_11G_192 auxiliary sys/sys_IST_11G@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:41:00 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora'; Starting backup at Jun 30 2015 08:41:15 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:41:17 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
Same mistake. Nothing is written for the journal of alerts. IM starting to pull the hair is left on my head out and people start screaming for this database. I could go back to datapump but I want to understand this. Any help would be very much appreciated.
Thank you.
Yes, although this:
connected to target database: IST_11G (DBID = 525645852)
connected to the auxiliary database: IST_11G (unassembled)
can say you that RMAN you connected the two separate databases, the process, instances should do research each other using tnsnames file entries. Thus, incorrect tnsnames entries can have one instance pointing to itself.
Hemant K Collette
-
ORA-29285: error writing file
Hi, I'm trying to clear a table in a flat file, & provided the stored procedure using my Tom Kyte @ https://asktom.oracle.com/pls/asktom/f?p=100:11:0:NO:P11_QUESTION_ID:88212348059.
It worked well at first, but now I always get the following error message:
ERROR on line 1:
ORA-29285: error writing file
ORA-06512: at "OFSA_ATOMIC. DUMP_TAB_TO_CSV", line 45
ORA-06512: at line 1
The search for this error ORA out Virgin on MOS.
Any ideas how to solve this problem?
I already checked for space on the file system and there is lots of space available.
Also, the file is created with a size of 0 bytes before the procedure was abandoned.
Thank you
-CV
Hello
trying to figure out what has changed since it worked. Length of the line would be greater than 1024 default that uses Tom proc?
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/u_file.htm#ARPLS70900
The
FOPEN
max_linesize
parameter must be a number in the range 1 to 32 767. If not specified, Oracle provides a default value of 1024. -
Hello people,
bin ratlos.
BS2000 unter'm Oracle 10.2.0.4 DB - customer gibt're diesen Fehler:
ORA-05112: error creating memory pool
WER kann mir helfen?
It is a call of support throughout the day.
-
ORA-28545: error diagnosed by Net8 when connecting to an agent
Hi all
This question was asked several times in this forum and I went to many discussions in this forum, but unfortunately I failed.
I want to connect to MySQL database to oracle. I have the following configurations.
- Oracle database edition company 12 c (12.1.0.2.0) 64 bits on 64-bit Windows server 2012
- I have 5.6.11 MySQL on windows 7 64 bit
- I downloaded the driver site for delivery of oracle ODBC (MySQL Connector/ODBC 5.3.4 MSI for Windows x 86 (64 bit))
- I have install ODBC on my oracle server, a full install which installs the Unicode and Ansi versions.
- I create the connection ODBC for Unicode by going to control panel-> administrator tools-> (64-bit) ODBC Data Sources-> system DSN. I test and the test succeeded.
- I have set up my files Listner.ora, Tnsname.ora and initmysql.ora as below;
Listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = c:\app\Administrator\product\12.1.0\dbhome_1)
(= Extproc PROGRAM)
(ENVS = "EXTPROC_DLLS=ONLY:c:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = C:\app\Administrator\product\12.1.0\dbhome_1)
(PROGRAM = dg4odbc)
(ENVS = LD_LIBRARY_PATH = C:\app\Administrator\product\12.1.0\dbhome_1\LIB)
)
)LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
)Tnsnames.ora
PDBORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = pdborcl.hct.org)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.hct.org)
)
)MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)initmysql.ora (C:\app\Administrator\product\12.1.0\dbhome_1\hs\admin\)
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = OFF
then I stop and start the listener, the listener status is less than
LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on April 23, 2015 09:16
: 52Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=ORADEV.hct.org) (PORT = 152
(1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
TNSLSNR for Windows 64-bit version: Version 12.1.0.2.0 - Prod
ction
Start date April 23, 2015 09:13:56
Uptime 0 days 0 h 2 min 59 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
C:\app\Administrator\product\12.1.0\dbhome_1\network\a Listener parameter file
dmin\listener.ora
C:\app\Administrator\diag\tnslsnr\ORADEV\listener\aler log listener
t\log. XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ORADEV.hct.org) (PORT = 1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
"Mysql" service has 1 instance (s).
"Mysql", status UNKNOWN instance, has 1 operation for this service...
Service 'orcl.hct.org' has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
Service 'orclXDB.hct.org' has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
Service 'pdborcl.hct.org' has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
The command completed successfullytnsping MySQL
AMT Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 23-APR-2
015 09:17:54Copyright (c) 1997, 2014, Oracle. All rights reserved.
Use settings files:
c:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = N410FS02)
() (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS = OK))
OK (40 msec)then I open sqlplus and connect to my plug-in database as user sys and create a link from public database for the test scheme that I have created in the MySQL database.
create public database link mysql connect to test identified by test using 'mysql';
then I try the table1 which lies in the scheme of test of MySQL to sqlplus as below
SQL> select * from table1@mysql; select * from table1@mysql * ERROR at line 1: ORA-28545: error diagnosed by Net8 when connecting to an agent Unable to retrieve text of NETWORK/NCR message 65535 ORA-02063: preceding 2 lines from MYSQL
I have tried versions of Ansi and Unicode ODBC, but the same question.
where is the problem in my setup?
Thank you.
You use the wrong host name in the tnsnames.ora.
Take a look at the Oracle listener - it is configured with the address: (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
In your tnsnames.ora you specified in the mysql alias: (ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))
It does not work. Alias configured in the tnsnames.ora AMT must reference an Oracle listener who begins the process of bridge, so in your case at ORADEV.hct.org.
So please correct your tnsnames.ora entry:
MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)
-
Hello
I get below error frequently in the log database alerts.
ORA-12012: error on auto work 754461
ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters ' RCPT TO: ' unrecognized or missing
ORA-06512: at "SYS." UTL_SMTP", line 20
ORA-06512: at "SYS." UTL_SMTP", line 98
ORA-06512: at "SYS." UTL_SMTP", line 240
ORA-06512: at the 'APPS '. EIS_UTIL_PKG', line 94
ORA-06512: at the 'APPS '. HKD_PO_ADDON_PKG', line 110
ORA-06512: at line 1
The syntax error comes from the SMTP server, not to the job itself, so I disagree with your solution.
-
Why I'm not able to associate the user defined exception with ORA-01403 error code
why I am not able to
Associate a user defed exception with ORA-01403 error code?
declare myException Exception; pragma exception_init(myException ,-1403); begin raise myException ; Exception when myException then dbms_output.put_line('raised due to myException '); end; /
exception of ABC;
*
ERROR on line 2:
ORA-06550: line 2, column 4:
PLS-00701: ORACLE error-1403 of PRAGMA EXCEPTION_INIT illegal number
ORA-1403 is an outgoing BOF NO_DATA_FOUND exception. And we used to NO_DATA_FOUND in pragma exception_init + 100.
Thus, instead of the you can used this different exception code which is not associated with any exception.
For example:
declare
Exception myException;
pragma exception_init (myException,-7856);
Start
raise myException;
Exception
When myException then
dbms_output.put_line ('high due myException');
end;
-
ORA-02374: error loading conversion table / ORA-12899: value too large for column
Hi all.
Yesterday I got a dump of a database that I don't have access and Production is not under my administration. This release was delivered to me because it was necessary to update a database of development with some new records of the Production tables.
The Production database has NLS_CHARACTERSET = WE8ISO8859P1 and development database a NLS_CHARACTERSET = AL32UTF8 and it must be in that CHARACTER set because of the Application requirements.
During the import of this discharge, two tables you have a problem with ORA-02374 and ORA-12899. The results were that six records failed because of this conversion problem. I list the errors below in this thread.
Read the note ID 1922020.1 (import and insert with ORA-12899 questions: value too large for column) I could see that Oracle gives an alternative and a workaround that is to create a file .sql with content metadata and then modifying the columns that you have the problem with the TANK, instead of BYTE value. So, as a result of the document, I done the workaround and generated a discharge .sql file. Read the contents of the file after completing the import that I saw that the columns were already in the CHAR value.
Does anyone have an alternative workaround for these cases? Because I can't change the CHARACTER set of the database the database of development and Production, and is not a good idea to keep these missing documents.
Errors received import the dump: (the two columns listed below are VARCHAR2 (4000))
ORA-02374: error loading «PPM» conversion table "" KNTA_SAVED_SEARCH_FILTERS ".
ORA-12899: value too large for column FILTER_HIDDEN_VALUE (real: 3929, maximum: 4000)
"ORA-02372: row data: FILTER_HIDDEN_VALUE: 5.93.44667. (NET. (UNO) - NET BI. UNO - Ambiente tests '
. . imported "PPM". "' KNTA_SAVED_SEARCH_FILTERS ' 5,492 MB 42221 42225-offline
ORA-02374: error loading «PPM» conversion table "" KDSH_DATA_SOURCES_NLS ".
ORA-12899: value too large for column BASE_FROM_CLAUSE (real: 3988, maximum: 4000)
ORA-02372: row data: BASE_FROM_CLAUSE: 0 X '46524F4D20706D5F70726F6A6563747320700A494E4E455220 '.
. . imported "PPM". "' KDSH_DATA_SOURCES_NLS ' lines 229 of the 230 308.4 KB
Thank you very much
Bruno Palma
Even with the semantics of TANK, the bytes for a column VARCHAR2 max length is 4000 (pre 12 c)
OLA Yehia makes reference to the support doc that explains your options - but essentially, in this case with a VARCHAR2 (4000), you need either to lose data or change your data type of VARCHAR2 (4000) to CLOB.
Suggest you read the note.
Maybe you are looking for
-
I'm trying to upgrade to Quicktime Pro in the Quicktime 7 application and he continues to send me to this information page unrelated to an upgrade or buy and download option. How to upgrade my Quicktime 7 Player Quicktime 7 Pro?
-
13.10 updated AMD graphics card
Does anyone have an idea if HP will release the 13,10 update for users of hp pavilion g6? I currently have version 13.8 and I can't update because graphics switchable. I have a hp pavilion 1305ev g6
-
Reset the factory settings and Take Back up to 8.1 Windows
Hello I have an older 17 inch HP DV7 laptop which is still in very good condition. Currently, it has a minimum on it software and is for Windows 8.1. I would like however to wipe back to factory settings which bring to Windows Vista, I think, but I p
-
Print spooler does not and I went through different ways to fix and impossible to reinstall the printer or the update and found there is no more an update for the most part since May 14, which is exactly how long I was not able to print from my lapto
-
Hello. From the start, I try to stay calm and professional, objective. Pretty sure I missed the mark, but then, read on... I'm having some problems with the OS 10.3.1 update. Before someone says to the research councils, I. For hours. On various Inte