Creation of a "null schema?
We have a database of vendor 11g where records are distributed between two patterns - ACTIVE patterns and an ARCHIVE. Each object has a corresponding object both of ASSETS and patterns of ARCHIVE.The seller also has a third scheme where each object is simply a UNION ALL operation of schema objects associated with ASSETS and ARCHIVES. In the sake of the example, I'll call this schema COMBO.
Over the years, we have created queries and reports that reference ARCHIVES and the COMBO patterns and which worked very well.
The seller has set up a secondary database for us that we can use when the primary database is currently offline for the application of patches/updates / etc. The problem is this secondary database has only the scheme ASSETS and records. The seller will write no records of ARCHIVE to it.
In short:
Primary DB: patterns of ASSETS, ARCHIVE and COMBO
Secondary DB: only the ACTIVE schema.
This is probably wishful thinking, but is it possible to implement the schemes of ARCHIVE and missing COMBO on the DB side such that we will not have to rewrite our SQL to take account of the absence of a scheme of ARCHIVE when we move reports database backup?
Of course, no record will be returned from the diagram ARCHIVE virtual, but I'd love for intact SQL to run without error.
Thank you!
You can certainly generate an export of diagrams ARCHIVE and active COMBO, excluding data from the database and import the metadata into the secondary database. Who will create the schema, create the tables, create views, etc., but will not import any data.
Of course, if the seller changes one of these tables (adding or dropping a column), you will need to apply the same changes to your secondary database.
Justin
Tags: Database
Similar Questions
-
Error step 7, creation of WebCenter, and schemas content using the remote control
Hi all
I have the installation of the portal WebCenter using JSK, but the failure of the process when it tries to create patterns using the remote, it shows "Time out when connecting to the database. The current values expires 30 seconds. "UCR-6090: jump main operation: validation stage of connection failure.
This is the content of install_setup.log
Thu Aug 14 10:12:32 CLT 2014: END STEP 6 22: Configurion of the database Instance
Thu Aug 14 10:12:32 CLT 2014: START STEP 7 22: creation of the WebCenter and patterns content using the remote control. Estimated time is 1 minute. Please wait..
localhost.localdomain:1521:ORCL
Installation of patterns Begin spaces
Please enter the password(User:sys) of the database:
Processing of command line...
Timeout connecting to the database. Current timeout value is 30 seconds.
UCR-6090: jump main operation: validation step connection failure
And the rcu.log
14-08-2014 10:14:38.925 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.RCUCommandLineParser::process: processing command line...
14-08-2014 10:14:38.927 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.SilentRCUModel::performOperation: from validations...
14-08-2014 10:14:38.934 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: the connection to the database: user: sys, role: sysdba, connectString: (description = (address = (host = localhost.localdomain)(protocol=tcp) (port = 1521)) (connect_data = (service_name = ORCL) (server = dedicated)))
14-08-2014 10:15:39.250 rcu ERROR: oracle.sysman.assistants.rcu.backend.validation.StepValidator::isConnectionStepValidated: unable to connect to database: timeout when connecting to the database. Current timeout value is 30 seconds.
14-08-2014 10:15:39.250 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: the connection to the database: user: sys, role: sysdba, connectString: (description = (address = (host = localhost.localdomain)(protocol=tcp) (port = 1521)) (connect_data = (sid = ORCL) (server = dedicated)))
14-08-2014 10:16:39.192 NOTIFICATION rcu: oracle.sysman.assistants.common.util.SilentMessageHandler::writeToLog: timeout when connecting to the database. Current timeout value is 30 seconds.
14-08-2014 10:16:39.192 rcu ERROR: oracle.sysman.assistants.rcu.backend.validation.StepValidator::isConnectionStepValidated: SQLFatalErrorException:
oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: timeout when connecting to the database. Current timeout value is 30 seconds.
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:585)
at oracle.sysman.assistants.rcu.backend.validation.StepValidator.connectDatabase(StepValidator.java:358)
at oracle.sysman.assistants.rcu.backend.validation.StepValidator.connectDatabase(StepValidator.java:253)
at oracle.sysman.assistants.rcu.backend.validation.StepValidator.isConnectionStepValidated(StepValidator.java:1366)
at oracle.sysman.assistants.rcu.backend.SilentRCUModel.performOperation(SilentRCUModel.java:140)
at oracle.sysman.assistants.rcu.backend.RCUModel.startOperation(RCUModel.java:346)
at oracle.sysman.assistants.rcu.Rcu.execute(Rcu.java:339)
at oracle.sysman.assistants.rcu.Rcu.main(Rcu.java:363)
2014-08-14 10:16:39.193 rcu ERROR: oracle.sysman.assistants.rcu.backend.SilentRCUModel::performOperation: UCR-6090: operation hand jump: validation step connection failure
2014-08-14 10:16:39.193 NOTIFICATION rcu: oracle.sysman.assistants.common.util.SilentMessageHandler::writeToLog: UCR-6090: operation hand jump: validation step connection failure
Any suggestions?
Best regards!
Hello
(1) you see no error on the Setup screen? If Yes please download the screenshot?
(2) the UCR is a failure because it is not able to connect to the database. Please make sure that you have entered the correct database details.
Also, can you please try the following and check the box.
Go to
the location / / rcu/config / Take backup for the file rcu.properties, and then change the below
JDBC_LOGIN_TIMEOUT = 30
TO
JDBC_LOGIN_TIMEOUT = 300
and try again.
Concerning
Françoise
-
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
-
Several BPEL schemas in a database
Hello. I have already installed in my BPEL database. Now I need to install another BPEL of another group of people. Is it possible to install an another BPEL using a different (than ORABPEL) diagram in the same database instance? IRCA script does not seem to allow the creation of a different scheme than "ORABPEL" (which would replace my existing already in use schema). Installer also does not seem to allow the use of a different pattern as 'ORAPBEL '. So is it possible to run two independent BPELs over a database instance?
Thank you.No u cannot have two schemas with the same name in the database. Y don't u create domains for each user.
Suryaveer
-
column of username in dba_users PLS-00306: wrong number or types of arguments
Can someone please help me understand what is happening here? I need to insert items in schemas a little, but I can't get the column username to work for some reason any.
SQL > start
2 for v_username looping (select username from dba_users)
3 dbms_output.put_line (v_username);
4 end of loop;
5 end;
6.
dbms_output.put_line (v_username);
*
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
SQL > dba_users desc;
Name Null? Type
----------------------------------------- -------- ----------------------------
USER NAME NOT NULL VARCHAR2 (30)
USER_ID NOT NULL NUMBER
PASSWORD VARCHAR2 (30)
ACCOUNT_STATUS NOT NULL VARCHAR2 (32)
DATE OF LOCK_DATE
EXPIRY_DATE DATE
USER_USERS NOT NULL VARCHAR2 (30)
TEMPORARY_TABLESPACE NOT NULL VARCHAR2 (30)
CREATION DATE NOT NULL
PROFILE NON-NULL VARCHAR2 (30)
INITIAL_RSRC_CONSUMER_GROUP VARCHAR2 (30)
EXTERNAL_NAME VARCHAR2 (4000)
SQL >>
for v_username in a loop (select username from dba_users)
>
v_username in the loop is a CURSOR that represents the WHOLE folder.If you need to access the columns in the record using the dot notation. It works for me.
declare v_username varchar2(30); begin for v_username in (select username from dba_users) loop dbms_output.put_line(v_username.username); end loop; end; SCOTT . . .
-
Errors when creating FOD demo scripts
I followed the steps of creation of oracle 11g scheme as written in http://www.oracle.com/technetwork/testcontent/connection11g-088156.html#t1s1:
I got these errors:
BuildFile: F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.xml
init:
[javac] F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.XML:38: caveat: 'includeantruntime' has not been defined, or by default in build.sysclasspath = last; Set to false for the reproducible versions
[javac] Compiling 1 source file for F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\classes
[javac] WARNING: class bootstrap [options] path not defined jointly with - source 1.5
[javac] 1 WARNING
setProperties:
createDatabase:
refreshSchema:
BUILD FAILED
F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.XML:51: The following error occurred during the execution of this line:
F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.XML:100: The following error occurred during the execution of this line:
F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.XML:63: The following error occurred during the execution of this line:
F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.XML:28: C:\Oracle\Middleware\jdeveloper\wlserver_10.3\server\lib does not exist.
Total duration: 11 seconds
Hey guys find a solution for this.
I followed the steps to solve the problem below:
1 - in the build.properties file make sure that middleware.home=C:/Oracle/Middleware is where you have the folder oracle_common folder and jdeveloper. It wasn't the case for me, I had to change
middleware. Home = C: / Oracle/middleware to middleware.home=C:/Oracle/Middleware//Oracle_Home.
I also use Jdeveloper 12.1.3.
2. fix the error below
F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.XML:28: C:\Oracle\Middleware\jdeveloper\wlserver_10.3\server\lib does not exist.
To do this, you need to click on the error. It will take you to the file in question (F:\programs\sql_oracle11g\sql\sql_oracle11_reference\Fusion_order_demo\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml).
Search for below the line of code:
You should change the wlserver_10.3 with the name of the folder that you have. in my case it was wlserver.
3. you will notice after this line:
you have: it you must download the ojdbc6.jar and put it in the folder of the server weblogic C:\Oracle\Middleware\jdeveloper\wlserver guess.
Those not done for me. hope that helps.
-
Configuration of CPQ-set used with cim, db error
I am installing CPQ reference integration using http://docs.oracle.com/pdf/E66154_01.pdf
I have installed:
- Java
- JBoss
- MDEX
- Services platform
- Tools and frameworks
- ATG
Then I downloaded Oracle trade and integration reference CPQ (11.1.0.0.0) and unzipped to endeca/ATG/ATG11.1
Now I'm stuck in the IMC when I import the schema for the coins of 1 / 3 of Oracle 11 g database goes without problem of Production:
CIM looks like:
Production base
* [I] import data
[S] Skip
>
-PRODUCTION CORE DATA IMPORT-
Enter [h] support, [m] main Menu, [q] Quit to exit
The combination of the tasks of model... Success
/CIM/tmp/import/nonswitchingCore-import1.XML import (1 of 2):
/MotorpriseJSP/install/data/contracts.XML to/atg/commerce/contract/Contracts
/MotorpriseJSP/install/data/inventoryRepository.XML/ATG/Commerce/inventaire /.
InventoryRepository
/ MotorpriseJSP/install/Data/giftlists. XML to/atg/commerce/gifts/Giftlists
/MotorpriseJSP/install/data/profileAdapterRepository.XML /ATG./userprofiling.
ProfileAdapterRepository
/MotorpriseJSP/install/data/orderRepository.XML/ATG/Commerce/commande /.
OrderRepository
/MotorpriseJSP/install/data/profilePurchaseLists.XML /ATG./userprofiling.
ProfileAdapterRepository
... Error
/CIM/tmp/import/nonswitchingCore-import2.XML import (2 of 2):
/MotorpriseJSP/install/data/ProductCatalog.XML/ATG/Commerce/catalogue /.
ProductCatalog
/MotorpriseJSP/install/data/priceLists.XML/ATG/Commerce/pricing/tarifs /.
Price lists
... Error
Update password (1 of 1). Update no ignored, no action required.
Please see the cim.log for more details.
-------DATA IMPORT FAILED-------------------------------------------------------
Enter [h] support, [m] main Menu, [q] Quit to exit
Make sure that you have configured the connection details and have created the diagram.
2 2 data import errors. Please visit /usr/local/endeca/ATG/ATG11.1/CIM/
log/CIM.log for more details.
and when I look at the first error of cim.log says:
Info game Sep 17 08:24:13 UTC 2015 1442478253837 atg.cim.task.ant.utility.AntLogger [exec] * error Thu Sep 17 08:24:13 UTC 2015 1442478253835/atg/multisite/SiteRepository Table 'B2B_SITE_ATTRIBUTE' in the point descriptor: 'siteConfiguration' does not exist in a space of accessible table by the data source. DatabaseMetaData.getColumns returns without columns. Catalog = null Schema = PRODUCTION
Please can someone help me find out why B2B_SITE_ATTRIBUTE is not created
It turns out that, before importing initial data for the production scheme to do step 5 - adding data CPQ.
In my case, the files were endeca/ATG/ATG11.1/sql/db_components
and I had to run the ddl files.
-
Increase the size of the workspace
Hello
Please need your help because I'm completely confused how to increase the size of the workspace.
I made a mistake by one of my workspaces 50 Mb instead on 500 MB, now I can not find any way in Apex to change this.
Please help me understand the process, I guess it should be within the Apex Admin, but I can find it.
Thank you very much
Andrei
Hi Andrei,
aracila wrote:
Hello
Please need your help because I'm completely confused how to increase the size of the workspace.
I made a mistake by one of my workspaces 50 MB on the 500 MB, now I can't find some way in the Apex to change that.
Please help me understand the process, I guess it should be within the Apex Admin, but I can find it.
Thank you very much
Andrei
The method mentioned by benhamdia and Jitendra is to make a service request and appoving it.
This is done as follows:
- Sign in your workspace as administrator of the workspace and make a service request to add storage. Maximum storage that can be added to the existing is 500 GB. Reference: http://docs.oracle.com/cd/E37097_01/doc.42/e35129/aadm_request.htm#AEADM144
- Log in Instance of the Administration of the APEX and approve the service request. Reference: http://docs.oracle.com/cd/E37097_01/doc.42/e35129/adm_ser_rqst.htm#CIHFDCFJ
But I'd rather make the DBA way as follows (to make this connection in sqlplus with the sys and privilege sysdba user):
- Determine the name of the file and the size of the associated workspace schema table space:
select file_name,tablespace_name,bytes/1024/1024 as MB from dba_data_files;
Assume that storage space is "APEX_25383616320599297" and the name of the file is "/ u01/app/oracle/oradata/orcl/APEX_25383616320599297.dbf".
- Resize the tablespace to the selected size:
alter database datafile '/u01/app/oracle/oradata/orcl/APEX_25383616320599297.dbf' resize 500m;
In addition, rather than create the schema when creating workspace, I prefer to create tablespace, then create a schema associated with the table space manually (as there is more control over the options during the creation of tablespace or schema).
After you manually create the schema and the tablespace, just associate the schema for the workspace while creating the workspace.
I hope this helps!
Kind regards
Kiran
-
How to check if a key has been used
Hi all
Is there a way to determine whether a key has been used in a SQL statement?
Example of
I received a call from a developer said that their request was going very slowI checked what oracle was doing
He was using an index with 5 distinct values on a table with a number of lines of 9.2 million
Selectivity is very bad.
Then I discovered after talking to the Director it was a hint to use the (silly) hints
Once we had the suspicion that he did a scan of Table full and actually ran much faster.
However, when I was watching the SQL text in v$ sql and v$ sqlarea he had no way of knowing if we used a hint
IE, I saw: / * + RULE * / in the code.
Does anyone know how to check (from the DB), if an indication is used in a sql statement?
And if the indication is used, what is the indicator.
Thank you
G.
You can use the following to see the execution plan with the outline and see advice
Select * from table (dbms_xplan.display_cursor (null, null, 'schema'));
select /*+ rule */ sum(id) from t1 where flag = 0 Plan hash value: 2170464548 ------------------------------------------------ | Id | Operation | Name | ------------------------------------------------ | 0 | SELECT STATEMENT | | | 1 | SORT AGGREGATE | | | 2 | TABLE ACCESS BY INDEX ROWID| T1 | |* 3 | INDEX RANGE SCAN | T1_FLAG | ------------------------------------------------ Outline Data ------------- /*+ BEGIN_OUTLINE_DATA IGNORE_OPTIM_EMBEDDED_HINTS OPTIMIZER_FEATURES_ENABLE('10.2.0.1') RBO_OUTLINE OUTLINE_LEAF(@"SEL$1") INDEX(@"SEL$1" "T1"@"SEL$1" ("T1"."FLAG")) END_OUTLINE_DATA */ Predicate Information (identified by operation id): --------------------------------------------------- 3 - access("FLAG"=0) Note ----- - rule based optimizer used (consider using cbo)
HTH
Kind regards
Jagdeep Seven
-
In my development environment, when I run the production server, I get the following error in the server.log. I have configured the data source for the production. I use ATG 10.1. Please help solve this problem. Here are the logs
22:46:45, 765 full repository INFO [ProfileAdapterRepository] SQL boot
22:46:45, 988 full repository INFO [AdminSqlRepository] SQL boot
22:46:45, 990 Initializing INFO [AdminAccountInitializer] account database/atg/dynamo/security/AdminAccountManager of/atg/dynamo/security/SimpleXmlUserAuthority
22:46:46, 450 ERROR [ProfileAdapterRepository] Table 'dbc_user' in the descriptor of the item: 'user' does not exist in a space of accessible table by the data source. DatabaseMetaData.getColumns returns without columns. Catalog = null Schema = null
22:46:46, 466 WARN [ProfileAdapterRepository] atg.adapter.gsa.GSARepository-> loadColumnInfo: SQLException in Table.loadColumnInfo. Try again.
com MySQL.JDBC.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atgcoredb.dbc_user' does not exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1476)
to com.mysql.jdbc.DatabaseMetaData$ 7.forEach(DatabaseMetaData.java:3966)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:51)
at com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3950)
at atg.adapter.gsa.Table.loadColumnInfo(Table.java:1926)
at atg.adapter.gsa.GSARepository.loadColumnInfos(GSARepository.java:7534)
to atg.adapter.gsa.GSARepository$ 1.run(GSARepository.java:5431)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
22:46:46, 467 WARN [ProfileAdapterRepository] unknown JDBC type for property: businessAddress, element type: user. Make sure that the column names in the database and match model. The business_addr column is not found in the set of columns returned by the database: {} for this table.
22:46:46, 470 ERROR [ProfileAdapterRepository] Table 'dbc_buyer_billing' in the descriptor of the item: 'user' does not exist in a space of accessible table by the data source. DatabaseMetaData.getColumns returns without columns. Catalog = null Schema = null
22:46:46, 470 WARN [ProfileAdapterRepository] atg.adapter.gsa.GSARepository-> loadColumnInfo: SQLException in Table.loadColumnInfo. Try again.
com MySQL.JDBC.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atgcoredb.dbc_buyer_billing' does not exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1476)
to com.mysql.jdbc.DatabaseMetaData$ 7.forEach(DatabaseMetaData.java:3966)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:51)
at com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3950)
at atg.adapter.gsa.Table.loadColumnInfo(Table.java:1926)
at atg.adapter.gsa.GSARepository.loadColumnInfos(GSARepository.java:7534)
to atg.adapter.gsa.GSARepository$ 1.run(GSARepository.java:5431)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
22:46:46, 471 WARN [ProfileAdapterRepository] unknown JDBC type for the property: myBillingAddrs, element type: user. Make sure that the column names in the database and match model. The addr_id column is not found in the set of columns returned by the database: {} for this table.
22:46:46, ERROR 611 [ProfileAdapterRepository] Table 'dbc_org_billing' in the descriptor of the item: "organization" does not exist in a space of accessible table by the data source. DatabaseMetaData.getColumns returns without columns. Catalog = null Schema = null
22:46:46, 611 WARN [ProfileAdapterRepository] atg.adapter.gsa.GSARepository-> loadColumnInfo: SQLException in Table.loadColumnInfo. Try again.
com MySQL.JDBC.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atgcoredb.dbc_org_billing' does not exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1476)
to com.mysql.jdbc.DatabaseMetaData$ 7.forEach(DatabaseMetaData.java:3966)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:51)
at com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3950)
at atg.adapter.gsa.Table.loadColumnInfo(Table.java:1926)
at atg.adapter.gsa.GSARepository.loadColumnInfos(GSARepository.java:7534)
to atg.adapter.gsa.GSARepository$ 1.run(GSARepository.java:5431)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
22:46:46, 612 WARN [ProfileAdapterRepository] unknown JDBC type for the property: myBillingAddrs, element type: Organization. Make sure that the column names in the database and match model. The addr_id column is not found in the set of columns returned by the database: {} for this table.
You want to run the B2BCommerce module? If so, then you must run the $dynamo_home /... / B2BCommerce/SQL/db_components/MySQL/b2b_user_ddl. SQL ddl because you are missing the B2BCommerce tables. If this isn't the case, you will have to redo without the B2BCommerce module.
Thank you
Joe
-
ATG export data using startSQLRepository in CommerceReferenceStore
Today, I tried to export data for ProfileAdapterRepository using strartSQLRepository for commerceReferenceStore and use the following command.
startSQLRepository -m CommerceReferenceStore.Store -export all d:\profile_data.xml -repository /atg/userprofiling/ProfileAdapterRepository
and the above command works fine.
But when I tried the below command.
startSQLRepository -m CommerceReferenceStore.Store.EStore -export all d:\profile_data.xml -repository /atg/userprofiling/ProfileAdapterRepository
It throws the error.
**** info Sat Feb 22 11:40:51 IST 2014 1393049451776 /atg/commerce/pricing/Promotions Resolving reference to /atg/commerce/catalog/Produc tCatalog **** Warning Sat Feb 22 11:40:52 IST 2014 1393049452658 DistributorSender No remote servers configured **** info Sat Feb 22 11:40:53 IST 2014 1393049453259 /atg/commerce/pricing/priceLists/PriceLists SQL Repository startup complete **** Error Sat Feb 22 11:40:53 IST 2014 1393049453440 /atg/commerce/pricing/priceLists/PriceLists Table 'dcs_price_list' in item-descriptor: 'priceList' does not exist in a table space accessible by the data source. DatabaseMetaData.getColumns returns no columns. Catalog=null Schema=null **** Warning Sat Feb 22 11:40:53 IST 2014 1393049453542 /atg/commerce/pricing/priceLists/PriceLists atg.adapter.gsa.GSARepository->loadColumnIn fo : SQLException in Table.loadColumnInfo. Trying again. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'production.dcs_price_list ' doesn't exist **** Warning Sat Feb 22 11:40:53 IST 2014 1393049453542 /atg/commerce/pricing/priceLists/PriceLists at sun.reflect.NativeConstructorAcc essorImpl.newInstance0(Native Method) **** Warning Sat Feb 22 11:40:53 IST 2014 1393049453542 /atg/commerce/pricing/priceLists/PriceLists at sun.reflect.NativeConstructorAcc essorImpl.newInstance(NativeConstructorAccessorImpl.java:39) **** Warning Sat Feb 22 11:40:53 IST 2014 1393049453542 /atg/commerce/pricing/priceLists/PriceLists at sun.reflect.DelegatingConstructo rAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) **** Warning Sat Feb 22 11:40:53 IST 2014 1393049453542 /atg/commerce/pricing/priceLists/PriceLists at java.lang.reflect.Constructor.ne wInstance(Constructor.java:513)
For both the above command I copied the FakeXADataSource and the JTDataSource in as below.
FakeXADataSource.properties
URL=jdbc:mysql://localhost:3306/production user=root password=root driver=com.mysql.jdbc.Driver
and JTDataSource.properties
$class=atg.service.jdbc.MonitoredDataSource dataSource=/atg/dynamo/service/jdbc/FakeXADataSource transactionManager=/atg/dynamo/transaction/TransactionManager
So can you explain twhy I amd not able to export the module data EStore.
If you need further clarification the on my side the please let me know
The error:
Property $class not defined in the configuration for/atg/dynamo/service/jdbc/FakeXADataSource_switchinga
means that you are missing the key $class in the /FakeXADataSource_switchinga properties file.
$class = atg.service.jdbc.FakeXADataSource
-
do not harvest the orderrepository.xml custom project
Hello
Written the orderrepository.xml at the following location in my project. "atg\commerce\order\orderrepository.xml."
"But ATG do not pick up the custom orderrepository.xml."
I need to make additional configurations.
can you please share the reason for this.
Kind regards
Satya.Hello
According to the newspaper below your OrderRepository points to the schema of 'CRS10_1_2_CORE '.
13:39:08, 226 table of ERRORS [OrderRepository] "OMS_ORDER" in the descriptor to point: 'command' does not exist in a space of accessible table by the data source. DatabaseMetaData.getColumns returns without columns. Catalog = null Schema = CRS10_1_2_CORE
but the source of data/schema that you are mentioning / talk is 'CRS10_1_2_OMS '.
KPOmsDS
........
CRS10_1_2_OMS If the new table (OMS_ORDER) must be created in the schema "CRS10_1_2_CORE" in CRS10_1_2_OMS. Once this table is created in the schema core and app rebooted you should not receive this error.
Thank you.
-
After importing bulk - query performance initially very badly but ok next day?
Hello
We noted two times so far, that after the creation of a new schema and data on the spatial tables queries import block are very slow.
(We will not check the non-space tables however). After you import the data, indexes and statistics are created.
All the data is quite low (less than features 250'000 spread over several tables). This slowdown was evident hours after creating indexes and statistics. But after returning back to the work of the performance of the queries next day was good - as originally planned. No one does something in the meantime. Database is 11 GR 2.
I vaguely remember I read that statistical etc. could not be used immediately after the creation/update but I didn't know there are so many kick. Is there an explanation of the behavior? It isn't really a problem for us, but I would like to know why this happens,
Thank you, RobRob,
Note that since 10g there is an automated collection of statistics DBMS_STATS work that takes place during the night. It seems that this creates appropriate statistics that result in a plan of execution. Take a look in Enterprise Manager to see the details of this work.
You mentioned that collect you statistics after execution of your loading mass - I guess the problem is that you are not with the same characteristics as night work. Can you put the command you run to collect the statistics after bulk loading?
John
-
I have this request:
and I got thisselect null link, creationdate label, COUNT(PROBLEM) BER from INCIDENTS where PROBLEM=:p10_id AND SOURCE = 'BER' and creationdate between (select (min(creationdate)) from INCIDENTS where PROBLEM=:p10_id) and SYSDATE group by creationdate, PROBLEM order by creationdate asc
LINK LABEL ASR
-1 27/08/2012
-1 27/08/2012
-1 27/08/2012
-1 27/08/2012
-1 27/08/2012
-1 27/08/2012
-1 28/08/2012
-1 28/08/2012
-1 28/08/2012
-1 28/08/2012
I want to count the amount on each date. For example the query returned 6 Articles for 27/08/2012 how I see it like this:
LINK LABEL ASR
-6 27/08/2012
-4 28/08/2012Hi, you should probably be truncate your date of creation
select null link, trunc(creationdate) label, COUNT(PROBLEM) BER from INCIDENTS where PROBLEM=:p10_id AND SOURCE = 'BER' and creationdate between (select (min(creationdate)) from INCIDENTS where PROBLEM=:p10_id) and SYSDATE group by trunc(creationdate), PROBLEM order by trunc(creationdate) asc
Kofi
-
Hello
I have a target table in an Oracle schema/server with very limited access. When I created my interface I selected the transit area as another scheme I have enough previlage.
But always ODI attempts to create the work table in the target schema and the process fails.
At the time of the creation of the logical schema for target connection, I chose the same pattern as my work schedule because I do not have access to other patterns of this server.
But I thought by choosing different staging area that ODI would create the tables there. Any help is appreciated.
-appODI will create temporary tables in the schema of work specified in the topology.
So, if you have a main schema (which hoalds the actual tables), and then create a scheme of work which has the right to select on the table and use it as your scheme of work. So that all temporary tables will be created in the scheme of work.Thank you
Fati
Maybe you are looking for
-
Not switching devices not between the bases of the airport?
Hi all! I write because that through my research, I have not found quite the answer. I have 5 Airport extreme (AP) in my house. One of them is connected to the ISP (this also ISP DHCP box) box. All of them are set up to extend wifi as a long string.
-
As he tried to stop the computer, he sleeps off the coast
Original title: Won't turn off... flashing blue light... will start When my eMachine is set to off, it would be 'sleep' rather... blue flashing light. Not turn off and I have to unplug it to turn it off. In this mode it will not turn on either. Then
-
help XP Windows (.exe, .lnk)
Problem: cannot open all of the files on my computer and tried to the low fixed charge, restorations of registry, but they do not work because I can't open anything with an extention. Is anyway to solve this problem, or a site online where to read an
-
How to find MSVCP71.dii
computer says can't start because ashDisp.exe found MSVCP71.dll
-
Where short term deposit files are placed to Foglight on a Windows machine and they wear in general?