ORA-31000 when register schema in oracle 10g
I am trying to register a schema in oracle10g rel2. The schema contain "<xs:include schemaLocation="papiNetCommonDefsV2R31.xsd"/>" and papiNetCommonDefsV2R31.xsd is successfully registered in Oracle repository. But i am still getting the error as
1 begin
2 dbms_xmlschema.registerSchema
3 ('http://localhost:8080/home/xdb/xsd/PurchaseOrderV2R31.xsd',
4 xdburitype('/home/xdb/xsd/PurchaseOrderV2R31.xsd').getCLOB(),
5 FALSE,
6 TRUE,
7 FALSE,
8 TRUE
9 );
10* end;
SQL> /
begin
ERROR at line 1:
ORA-31000: Resource 'papiNetCommonDefsV2R31.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
ORA-06512: at line 2.
I can view 'papiNetCommonDefsV2R31.xsd' when i run the query - select schema_url from user_xml_schemas
Hi Glyn,
Can you create a script that recreates the problem?
I have a similiar problem, but can not recreate the exact operations sequance that cause the ORA-07445.
Avi.
Similar Messages
-
ORA-00600 when shutdown in an Oracle 10G Database
Each time we shutdown the database it raises an ORA 600 error.
We are using ASM, the databases (+ASM, "mercap") startup clean, not when shutdown.
Regards,
T.Justin,
Thanks very much for the tip!
Do you know if Oracle 10g has any kind of built-in tool for editing data? I have heard of "The Vault", but that appears to be a tool for administering database users, reports, etc. I am looking for some kind of tool that shows the data in a grid layout (like Microsoft Excel) and allows someone to edit and save data in that grid. A web-based tool would be best, but a desktop tool (especially if it's already part of Oracle 10g) would also be good.
Thanks again,
Rachel -
ORA-31094 & ORA-31082 when registering Schemas generated w/generateSchema()
I have genereated several Schemas using DBMS_XMLSCHEMA.generateSchema(). However, trying to register these Schemas results in error messages. The error messages state that "REF" and also my own Types were incompatible SQL-Types for an Attribute or Element (ORA-31094). Also, they state that "SQLSchema" was an invalid Attribute (ORA-31082).
As an example, I have included one of the Schemas that has been generated, the procedure used to register it and and also the type OTYP_Artikel it has been generated from. I would like to know why the Schemas generated by Oracle contain these errors and how to fix this.
declare
doc varchar2(2000) := '<xsd:schema targetNamespace="http://ns.oracle.com/xdb/OO_CHEF" xmlns="http://ns.oracle.com/xdb/OO_CHEF" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb http://xmlns.oracle.com/xdb/XDBSchema.xsd">
<xsd:element name="OTYP_ARTIKEL" type="OTYP_ARTIKELType" xdb:SQLType="OTYP_ARTIKEL" xdb:SQLSchema="OO_CHEF"/>
<xsd:complexType name="OTYP_ARTIKELType">
<xsd:sequence>
<xsd:element name="ARTIKEL_NR" type="xsd:string" xdb:SQLName="ARTIKEL_NR" xdb:SQLType="VARCHAR2"/>
<xsd:element name="MWST" type="xsd:hexBinary" xdb:SQLName="MWST" xdb:SQLType="REF"/>
<xsd:element name="BEZEICHNUNG" type="xsd:string" xdb:SQLName="BEZEICHNUNG" xdb:SQLType="VARCHAR2"/>
<xsd:element name="LISTENPREIS" type="xsd:double" xdb:SQLName="LISTENPREIS" xdb:SQLType="NUMBER"/>
<xsd:element name="BESTAND" type="xsd:double" xdb:SQLName="BESTAND" xdb:SQLType="NUMBER"/>
<xsd:element name="MINDESTBESTAND" type="xsd:double" xdb:SQLName="MINDESTBESTAND" xdb:SQLType="NUMBER"/>
<xsd:element name="VERPACKUNG" type="xsd:string" xdb:SQLName="VERPACKUNG" xdb:SQLType="VARCHAR2"/>
<xsd:element name="LAGERPLATZ" type="xsd:double" xdb:SQLName="LAGERPLATZ" xdb:SQLType="NUMBER"/>
<xsd:element name="KANN_WEGFALLEN" type="xsd:double" xdb:SQLName="KANN_WEGFALLEN" xdb:SQLType="NUMBER"/>
<xsd:element name="BESTELLVORSCHLAG" type="xsd:date" xdb:SQLName="BESTELLVORSCHLAG" xdb:SQLType="DATE"/>
<xsd:element name="NACHBESTELLUNG" type="xsd:date" xdb:SQLName="NACHBESTELLUNG" xdb:SQLType="DATE"/>
<xsd:element name="NACHBESTELLMENGE" type="xsd:double" xdb:SQLName="NACHBESTELLMENGE" xdb:SQLType="NUMBER"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>';
begin
dbms_xmlschema.registerSchema('http://www.oracle.com/best.xsd', doc);
end;
DROP TABLE otab_artikel
DROP TABLE otab_mwstsatz
DROP TYPE otyp_artikel
DROP TYPE otyp_mwstsatz
CREATE OR REPLACE TYPE otyp_mwstsatz AS OBJECT (
mwst integer,
prozent number (3,3),
beschreibung varchar2(10),
MAP MEMBER FUNCTION mwst_order RETURN REAL,
PRAGMA RESTRICT_REFERENCES
(mwst_order, RNDS, WNDS, RNPS, WNPS),
STATIC FUNCTION construct_mwst (in_mwst IN INTEGER,
in_prozent IN NUMBER, in_beschreib IN VARCHAR2)
RETURN otyp_mwstsatz
show errors
CREATE OR REPLACE TYPE BODY otyp_mwstsatz AS
MAP MEMBER FUNCTION mwst_order RETURN REAL IS
BEGIN
RETURN prozent;
END mwst_order;
STATIC FUNCTION construct_mwst (in_mwst IN INTEGER,
in_prozent IN NUMBER,
in_beschreib IN VARCHAR2)
RETURN otyp_mwstsatz IS
BEGIN
IF in_mwst < 0 THEN
DBMS_OUTPUT.PUT_LINE ('Mwst-Schluessel muss >=0 sein');
raise_application_error(-1,'Wertfehler bei mwst',FALSE);
ELSE
RETURN otyp_mwstsatz(in_mwst,in_prozent,in_beschreib);
END IF;
END construct_mwst;
END;
show errors
CREATE TABLE otab_mwstsatz OF otyp_mwstsatz
mwst NOT NULL,
prozent NOT NULL,
CONSTRAINT pk_mwstsatz PRIMARY KEY (mwst)
CREATE OR REPLACE TYPE otyp_artikel AS OBJECT (
artikel_nr varchar2(4),
mwst REF otyp_mwstsatz,
bezeichnung varchar2(15),
listenpreis number(8,2),
bestand number(5,0),
mindestbestand number (5,0),
verpackung varchar2(15),
lagerplatz number(2,0),
kann_wegfallen number(1,0),
bestellvorschlag date,
nachbestellung date,
nachbestellmenge number(5,0),
MEMBER FUNCTION get_mwst RETURN REAL,
PRAGMA RESTRICT_REFERENCES (get_mwst, WNDS, WNPS)
show errors
CREATE OR REPLACE TYPE BODY otyp_artikel AS
MEMBER FUNCTION get_mwst RETURN REAL IS
lvar_prozent NUMBER(3,3);
lvar_mwst otyp_mwstsatz;
BEGIN
SELECT DEREF(mwst) INTO lvar_mwst
FROM dual;
lvar_prozent := lvar_mwst.prozent;
RETURN lvar_prozent;
END get_mwst;
END;
show errors
CREATE TABLE otab_artikel OF otyp_artikel (
CONSTRAINT pk_artikel PRIMARY KEY (artikel_nr),
CONSTRAINT nn_mwst mwst NOT NULL,
CONSTRAINT nn_bezeichnung bezeichnung NOT NULL,
CONSTRAINT nn_listenpreis listenpreis NOT NULL,
CONSTRAINT nn_bestand bestand NOT NULL,
CONSTRAINT chk_bestand CHECK (bestand >= 0),
CONSTRAINT nn_mindestbestand mindestbestand NOT NULL,
CONSTRAINT chk_mindestbestand CHECK (mindestbestand >= 0),
CONSTRAINT chk_nachbestell
CHECK (nachbestellmenge IS NULL OR nachbestellmenge >= 0)
);Please post your question to XML DB forum for further help.
-
Help In XML schema using oracle 10g
i want to give seminar in XML schema using oracle 10g. n i m very new in this topic. so help me out which topic i include & any document regarding this
XML Schema has various aspects.
1. Creating an XML Schema, which may be done in JDeveloper.
2. Initializing an XML document from an XML Schema, which may also be done in JDeveloper.
For creating and initializing an XML Schema please refer
http://www.regdeveloper.co.uk/2007/10/01/build_xml_schema_jdeveloper/
3. Validating an XML document with an XML Schema.
http://www.oracle.com/technology/pub/articles/vohra_xmlschema.html -
SQL QUERY to create new schema in Oracle 10g Express
Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.
Can anyone provide a SQl query to create a
schema/user named 'test' with username as 'system'
and password as 'manager'system user is created during database creation, it's internal Oracle admin user that shouldn't be used as schema holder.
In Oracle database, Oracle user is schema holder there's no seperate schema name to be defined other than username. -
ORA-12560: TNS:protocol adapter error Oracle 10G
hi,
I just installed Oracle 10G Express Edition. Installation was successful, when I tried to connect the database using
Scott/tiger or hr/hr it does not Connect and throwing an exception :
ORA-12560: TNS:protocol adapter error
How can I get rid of this error to connect to the database.
I am using Windows Vista 64 Bit OS....
Thanks
SUDHEER
Edited by: user9274918 on Mar 4, 2010 8:49 PMuser9274918 wrote:
I am using Windows Vista 64 Bit OS....IF you are using DHCP to get the IP address, and you have not installed the Microsoft Loopback Adapter, the chances are very high that you will get 12560.
It is also possible to get that message is you are not using the same adapter (or do not have networking) when the listener attempts to start or when trying to connect.
Post the results of
ipconfig /all
lsnrctl status
and the contents of the listener.ora and tnsnames.ora found in the %ORACLE_HOME%\network\admin directory
And tell us what steps you skipped/missed in the install doc at http://www.oracle.com/pls/xe102/homepage -
When can I download Oracle 10g R2?
I just installed Solaris 10 ..actually finally installed after couple of tries.
However...I can't install Oracle 10g R1 on Solaris 10 because officially R1 doesn't support Solaris 10.
Fortunately, Oracle 10g R2 for Linux and Windows is released so I think R2 for Solaris will be released.....
Does anyone have any idea about when it will be launched?Hi,
Subscribe to this RSS feed and you will be updated as and when new products are available.
http://www.oracle.com/technology/syndication/rss_otn_soft.xml
Thanks,
Khalid -
Memory Leak when TOMCAT connects to Oracle 10g RAC using JDBC Thin driver.
We had experienced Memory leak when a Oracle 10g (10.2.0.3) RAC node was evicted. TOMCAT app server is connecting to the Oracle 10g RAC database instances using JDBC 10.2.0.3 thin driver.
Anyone had similar experience?
Any ideas? Any bugs reported/fixed?
Thanks,
RajIf you're doing XA, we absolutely do not support
driver-level load-balancing OR failover. Use neither.
For non-XA, you can use driver-level failover. For
non-XA, you could set load-balancing, but it won't
help because we get connections from the driver,
and keep them indefinitely, so the driver never gets
the chance to affect which connections the pool
uses after that. -
How get scott user database schema in oracle 10g express edition
hi
plz any on can tell me how to get the scott user database table details into the oracle 10g express edition
Iam created the user as scott but but i didn't get the table details
...plz give me the details correctly.You will go into this path C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql. You can get scott.sql script yhen you need to run the script like @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql. Otherwise you just copy the below script and save it into one file then run that file using @
Rem Copyright (c) 1990 by Oracle Corporation
Rem NAME
REM UTLSAMPL.SQL
Rem FUNCTION
Rem NOTES
Rem MODIFIED
Rem gdudey 06/28/95 - Modified for desktop seed database
Rem glumpkin 10/21/92 - Renamed from SQLBLD.SQL
Rem blinden 07/27/92 - Added primary and foreign keys to EMP and DEPT
Rem rlim 04/29/91 - change char to varchar2
Rem mmoore 04/08/91 - use unlimited tablespace priv
Rem pritto 04/04/91 - change SYSDATE to 13-JUL-87
Rem Mendels 12/07/90 - bug 30123;add to_date calls so language independent
Rem
rem
rem $Header: utlsampl.sql 7020100.1 94/09/23 22:14:24 cli Generic<base> $ sqlbld.sql
rem
SET TERMOUT OFF
SET ECHO OFF
rem CONGDON Invoked in RDBMS at build time. 29-DEC-1988
rem OATES: Created: 16-Feb-83
GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY TIGER;
ALTER USER SCOTT DEFAULT TABLESPACE USERS;
ALTER USER SCOTT TEMPORARY TABLESPACE TEMP;
CONNECT SCOTT/TIGER
DROP TABLE DEPT;
CREATE TABLE DEPT
(DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY,
DNAME VARCHAR2(14) ,
LOC VARCHAR2(13) ) ;
DROP TABLE EMP;
CREATE TABLE EMP
(EMPNO NUMBER(4) CONSTRAINT PK_EMP PRIMARY KEY,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO REFERENCES DEPT);
INSERT INTO DEPT VALUES
(10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES
(30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES
(40,'OPERATIONS','BOSTON');
INSERT INTO EMP VALUES
(7369,'SMITH','CLERK',7902,to_date('17-12-1980','dd-mm-yyyy'),800,NULL,20);
INSERT INTO EMP VALUES
(7499,'ALLEN','SALESMAN',7698,to_date('20-2-1981','dd-mm-yyyy'),1600,300,30);
INSERT INTO EMP VALUES
(7521,'WARD','SALESMAN',7698,to_date('22-2-1981','dd-mm-yyyy'),1250,500,30);
INSERT INTO EMP VALUES
(7566,'JONES','MANAGER',7839,to_date('2-4-1981','dd-mm-yyyy'),2975,NULL,20);
INSERT INTO EMP VALUES
(7654,'MARTIN','SALESMAN',7698,to_date('28-9-1981','dd-mm-yyyy'),1250,1400,30);
INSERT INTO EMP VALUES
(7698,'BLAKE','MANAGER',7839,to_date('1-5-1981','dd-mm-yyyy'),2850,NULL,30);
INSERT INTO EMP VALUES
(7782,'CLARK','MANAGER',7839,to_date('9-6-1981','dd-mm-yyyy'),2450,NULL,10);
INSERT INTO EMP VALUES
(7788,'SCOTT','ANALYST',7566,to_date('13-JUL-87')-85,3000,NULL,20);
INSERT INTO EMP VALUES
(7839,'KING','PRESIDENT',NULL,to_date('17-11-1981','dd-mm-yyyy'),5000,NULL,10);
INSERT INTO EMP VALUES
(7844,'TURNER','SALESMAN',7698,to_date('8-9-1981','dd-mm-yyyy'),1500,0,30);
INSERT INTO EMP VALUES
(7876,'ADAMS','CLERK',7788,to_date('13-JUL-87')-51,1100,NULL,20);
INSERT INTO EMP VALUES
(7900,'JAMES','CLERK',7698,to_date('3-12-1981','dd-mm-yyyy'),950,NULL,30);
INSERT INTO EMP VALUES
(7902,'FORD','ANALYST',7566,to_date('3-12-1981','dd-mm-yyyy'),3000,NULL,20);
INSERT INTO EMP VALUES
(7934,'MILLER','CLERK',7782,to_date('23-1-1982','dd-mm-yyyy'),1300,NULL,10);
DROP TABLE BONUS;
CREATE TABLE BONUS
ENAME VARCHAR2(10) ,
JOB VARCHAR2(9) ,
SAL NUMBER,
COMM NUMBER
DROP TABLE SALGRADE;
CREATE TABLE SALGRADE
( GRADE NUMBER,
LOSAL NUMBER,
HISAL NUMBER );
INSERT INTO SALGRADE VALUES (1,700,1200);
INSERT INTO SALGRADE VALUES (2,1201,1400);
INSERT INTO SALGRADE VALUES (3,1401,2000);
INSERT INTO SALGRADE VALUES (4,2001,3000);
INSERT INTO SALGRADE VALUES (5,3001,9999);
COMMIT;
SET TERMOUT ON
SET ECHO ON -
ORA-30951 when registering TPoX schemas
Hello,
I am trying to register the schemas for TPoX benchmark of XMLType Object Relational storage.
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://www.fixprotocol.org/FIXML-4-4 fixml-fields-base-4-4.xsd',
SCHEMADOC => bfilename('XML_FILES_DIR','fixml-fields-base-4-4.xsd'),
LOCAL => TRUE,
CSID => nls_charset_id('AL32UTF8'));
END;
I get the following error:
ORA-30951: Element or attribute at Xpath /schema/simpleType[131]/annotation/appinfo[2][@] exceeds maximum length
The element it refers to, indeed is quite large:
<xs:appinfo xmlns:x="http://www.fixprotocol.org/fixml/metadata.xsd">
<x:EnumDoc value="EUSUPRA" desc="EuroSupranationalCoupons"/>
<x:EnumDoc value="FAC" desc="FederalAgencyCoupon"/>
<x:EnumDoc value="FADN" desc="FederalAgencyDiscountNote"/>
<x:EnumDoc value="PEF" desc="PrivateExportFunding"/>
<x:EnumDoc value="SUPRA" desc="USDSupranationalCoupons"/>
<x:EnumDoc value="FUT" desc="Future"/>
<x:EnumDoc value="OPT" desc="Option"/>
<x:EnumDoc value="CORP" desc="CorporateBond"/>
<x:EnumDoc value="CPP" desc="CorporatePrivatePlacement"/>
<x:EnumDoc value="CB" desc="ConvertibleBond"/>
<x:EnumDoc value="DUAL" desc="DualCurrency"/>
<x:EnumDoc value="EUCORP" desc="EuroCorporateBond"/>
<x:EnumDoc value="XLINKD" desc="IndexedLinked"/>
<x:EnumDoc value="STRUCT" desc="StructuredNotes"/>
<x:EnumDoc value="YANK" desc="YankeeCorporateBond"/>
<x:EnumDoc value="FOR" desc="ForeignExchangeContract"/>
<x:EnumDoc value="CS" desc="CommonStock"/>
<x:EnumDoc value="PS" desc="PreferredStock"/>
<x:EnumDoc value="BRADY" desc="BradyBond"/>
<x:EnumDoc value="EUSOV" desc="EuroSovereigns"/>
<x:EnumDoc value="TBOND" desc="USTreasuryBond"/>
<x:EnumDoc value="TINT" desc="InterestStripFromAnyBondOrNote"/>
<x:EnumDoc value="TIPS" desc="TreasuryInflationProtectedSecurities"/>
<x:EnumDoc value="TCAL" desc="PrincipalStripOfACallableBondOrNote"/>
<x:EnumDoc value="TPRN" desc="PrincipalStripFromANoncallableBondOrNote"/>
<x:EnumDoc value="UST" desc="USTreasuryNoteDeprecatedValueUseTNOTE"/>
<x:EnumDoc value="USTB" desc="USTreasuryBillDeprecatedValueUseTBILL"/>
<x:EnumDoc value="TNOTE" desc="USTreasuryNote"/>
<x:EnumDoc value="TBILL" desc="USTreasuryBill"/>
<x:EnumDoc value="REPO" desc="Repurchase"/>
<x:EnumDoc value="FORWARD" desc="Forward"/>
<x:EnumDoc value="BUYSELL" desc="BuySellback"/>
<x:EnumDoc value="SECLOAN" desc="SecuritiesLoan"/>
<x:EnumDoc value="SECPLEDGE" desc="SecuritiesPledge"/>
<x:EnumDoc value="TERM" desc="TermLoan"/>
<x:EnumDoc value="RVLV" desc="RevolverLoan"/>
<x:EnumDoc value="RVLVTRM" desc="RevolverTermLoan"/>
<x:EnumDoc value="BRIDGE" desc="BridgeLoan"/>
<x:EnumDoc value="LOFC" desc="LetterOfCredit"/>
<x:EnumDoc value="SWING" desc="SwingLineFacility"/>
<x:EnumDoc value="DINP" desc="DebtorInPossession"/>
<x:EnumDoc value="DEFLTED" desc="Defaulted"/>
<x:EnumDoc value="WITHDRN" desc="Withdrawn"/>
<x:EnumDoc value="REPLACD" desc="Replaced"/>
<x:EnumDoc value="MATURED" desc="Matured"/>
<x:EnumDoc value="AMENDED" desc="AmendedRestated"/>
<x:EnumDoc value="RETIRED" desc="Retired"/>
<x:EnumDoc value="BA" desc="BankersAcceptance"/>
<x:EnumDoc value="BN" desc="BankNotes"/>
<x:EnumDoc value="BOX" desc="BillOfExchanges"/>
<x:EnumDoc value="CD" desc="CertificateOfDeposit"/>
<x:EnumDoc value="CL" desc="CallLoans"/>
<x:EnumDoc value="CP" desc="CommercialPaper"/>
<x:EnumDoc value="DN" desc="DepositNotes"/>
<x:EnumDoc value="EUCD" desc="EuroCertificateOfDeposit"/>
<x:EnumDoc value="EUCP" desc="EuroCommercialPaper"/>
<x:EnumDoc value="LQN" desc="LiquidityNote"/>
<x:EnumDoc value="MTN" desc="MediumTermNotes"/>
<x:EnumDoc value="ONITE" desc="Overnight"/>
<x:EnumDoc value="PN" desc="PromissoryNote"/>
<x:EnumDoc value="PZFJ" desc="PlazosFijos"/>
<x:EnumDoc value="STN" desc="ShortTermLoanNote"/>
<x:EnumDoc value="TD" desc="TimeDeposit"/>
<x:EnumDoc value="XCN" desc="ExtendedCommNote"/>
<x:EnumDoc value="YCD" desc="YankeeCertificateOfDeposit"/>
<x:EnumDoc value="ABS" desc="AssetbackedSecurities"/>
<x:EnumDoc value="CMBS" desc="CorpMortgagebackedSecurities"/>
<x:EnumDoc value="CMO" desc="CollateralizedMortgageObligation"/>
<x:EnumDoc value="IET" desc="IOETTEMortgage"/>
<x:EnumDoc value="MBS" desc="MortgagebackedSecurities"/>
<x:EnumDoc value="MIO" desc="MortgageInterestOnly"/>
<x:EnumDoc value="MPO" desc="MortgagePrincipalOnly"/>
<x:EnumDoc value="MPP" desc="MortgagePrivatePlacement"/>
<x:EnumDoc value="MPT" desc="MiscellaneousPassthrough"/>
<x:EnumDoc value="PFAND" desc="Pfandbriefe"/>
<x:EnumDoc value="TBA" desc="ToBeAnnounced"/>
<x:EnumDoc value="AN" desc="OtherAnticipationNotesBANGANEtc"/>
<x:EnumDoc value="COFO" desc="CertificateOfObligation"/>
<x:EnumDoc value="COFP" desc="CertificateOfParticipation"/>
<x:EnumDoc value="GO" desc="GeneralObligationBonds"/>
<x:EnumDoc value="MT" desc="MandatoryTender"/>
<x:EnumDoc value="RAN" desc="RevenueAnticipationNote"/>
<x:EnumDoc value="REV" desc="RevenueBonds"/>
<x:EnumDoc value="SPCLA" desc="SpecialAssessment"/>
<x:EnumDoc value="SPCLO" desc="SpecialObligation"/>
<x:EnumDoc value="SPCLT" desc="SpecialTax"/>
<x:EnumDoc value="TAN" desc="TaxAnticipationNote"/>
<x:EnumDoc value="TAXA" desc="TaxAllocation"/>
<x:EnumDoc value="TECP" desc="TaxExemptCommercialPaper"/>
<x:EnumDoc value="TRAN" desc="TaxRevenueAnticipationNote"/>
<x:EnumDoc value="VRDN" desc="VariableRateDemandNote"/>
<x:EnumDoc value="WAR" desc="Warrant"/>
<x:EnumDoc value="MF" desc="MutualFund"/>
<x:EnumDoc value="MLEG" desc="MultilegInstrument"/>
<x:EnumDoc value="NONE" desc="NoSecurityType"/>
<x:EnumDoc value="WLD" desc="WildcardEntry"/>
</xs:appinfo>
Which parameter should I change in order to register the schema?
Any help much appreciated!For example (code snippet)...
declare
V_FILENAME VARCHAR2(700) := 'CMFXML.SWIFT.MT543.xsd';
V_XMLSCHEMA XMLTYPE := xmltype(bfilename('XMLDIR',V_FILENAME),nls_charset_id('AL32UTF8'));
-- res boolean;
begin
dbms_xmlschema_annotate.addXDBNamespace(V_XMLSCHEMA);
dbms_xmlschema_annotate.setDefaultTable(V_XMLSCHEMA,'CMFXML','CMFXML_MT543_TABLE');
dbms_xmlschema_annotate.DISABLEDEFAULTTABLECREATION(V_XMLSCHEMA);
-- DEBUG generated xdb annotations via resource
-- if (dbms_xdb.existsResource('/public/'||V_FILENAME)) then
-- dbms_xdb.deleteResource('/public/'||V_FILENAME);
-- end if;
-- res := dbms_xdb.createResource('/public/'||V_FILENAME,V_XMLSCHEMA);
dbms_xmlschema.registerSchema
schemaurl => V_FILENAME,
schemadoc => V_XMLSCHEMA.getClobVal(),
local => TRUE,
genTypes => TRUE,
genBean => FALSE,
genTables => TRUE,
enablehierarchy => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE,
owner => user
end;
declare
V_FILENAME VARCHAR2(700) := 'CMFXML.SWIFT.MT544.xsd';
V_XMLSCHEMA XMLTYPE := xmltype(bfilename('XMLDIR',V_FILENAME),nls_charset_id('AL32UTF8'));
-- res boolean;
begin
dbms_xmlschema_annotate.addXDBNamespace(V_XMLSCHEMA);
dbms_xmlschema_annotate.setDefaultTable(V_XMLSCHEMA,'CMFXML','CMFXML_MT544_TABLE');
dbms_xmlschema_annotate.DISABLEDEFAULTTABLECREATION(V_XMLSCHEMA);
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TIndicator-22F-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TAmount-19A-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TDate-98A-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TRate-92A-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TFlag-17B-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TQuantityOfFinancialInstrument-36B-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TReference-20C-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
select insertChildXML
V_XMLSCHEMA,
'//xsd:element[@type="TParty-95PQR-01"]',
'@xdb:SQLInline',
'false',
'xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
into V_XMLSCHEMA
from dual;
dbms_xmlschema_annotate.setOutOfLine(V_XMLSCHEMA,'element','ReceiveFreeConfirmationType','TwoLegTransactionDetails','MT544_TWO_LEG_TRANS_TABLE');
dbms_xmlschema_annotate.setOutOfLine(V_XMLSCHEMA,'element','ReceiveFreeConfirmationType','TradeDetails','MT544_TRADE_DETAILS_TABLE');
dbms_xmlschema_annotate.setOutOfLine(V_XMLSCHEMA,'complexType','TTradeDetails','FinancialInstrumentAttributes','MT544_FIN_INST_ATTRS_TABLE');
-- DEBUG generated xdb annotations via resource
-- if (dbms_xdb.existsResource('/public/'||V_FILENAME)) then
-- dbms_xdb.deleteResource('/public/'||V_FILENAME);
-- end if;
-- res := dbms_xdb.createResource('/public/'||V_FILENAME,V_XMLSCHEMA);
dbms_xmlschema.registerSchema
schemaurl => V_FILENAME,
schemadoc => V_XMLSCHEMA.getClobVal(),
local => TRUE,
genTypes => TRUE,
genBean => FALSE,
genTables => TRUE,
enablehierarchy => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE,
owner => user
end;
-- -
ORA-44356 when running report from Oracle Application Server 10g
All,
We have some reports that we developed using Reports Builder 10g. We use a few program units that run with every record that use the exec_sql package to run dynamic sql in a remote database. Everything runs fine when we test the reports in Reports Builder. After we compile the reports into the .rep format and place them on our Oracle Application Server 10g portal instance, we are running into the subject error when we try to run the report from the website. From the research that I've done, it seems that this error has to do with the use of exec_sql, but there is not too much info on the web regarding this error number. Running a trace when running the report in Reports Builder doesn't show any errors, and to further complicate things, this error only occurs on some reports...others that use the exec_sql package work fine.
Does anyone have any ideas as to why this might be happening?
Thanks for your help,
TomNothing is different between the reports in the exec_sql section. The strange part is that the reports will bomb out seemingly at random, at different times, and during the execution of different program units. I was able to find a work-around using DB Links, but I'd rather not use the DB Link if I can avoid it.
-
ORA-00942 when creating external table under 10g with AQ
I have an application that runs with AQ. The front-end queues up batch-type
tasks in a queue. When one particular kind of message is dequeued, it
initiates a data load. That load requires the creation of an external
table.
The schema in question is owned by user BL (bulkload). The queue
is owned by BLB (bulkload batch), primarily to simplify some of the
rules needed by the resource manager in order to limit the total CPU
a batch process can consume. The BLB user has full access to the
BL schema, along with the following rights:
CREATE TYPE
CREATE TABLE
CREATE SEQUENCE
CREATE PROCEDURE
CREATE VIEW
CREATE SYNONYM
CREATE SEQUENCE
ALTER SESSION
CREATE SESSION
QUERY REWRITE
CREATE ANY CONTEXT
EXECUTE_CATALOG_ROLE
CREATE MATERIALIZED VIEW
CREATE ANY DIRECTORY
DROP ANY DIRECTORY
The table creation works fine under 9.2.0.8 (our current required
version). However the application generates an ORA-00942 table or view does
not exist when run under 10g (10.2.0.1 and 10.2.0.3).
The following statement is the problem:
CREATE TABLE bulkload33 (
field1 VARCHAR2(2000),field2 VARCHAR2(2000),field3 VARCHAR2(2000))
ORGANIZATION EXTERNAL (
TYPE oracle_loader DEFAULT DIRECTORY EXT_100
ACCESS PARAMETERS ( RECORDS DELIMITED BY "\r\n"
CHARACTERSET 'WE8ISO8859P1'
BADFILE EXT_100:'bulkload_bad.csv'
LOGFILE EXT_100:'bulkload_log.csv'
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL REJECT ROWS WITH ALL NULL FIELDS (
field1 CHAR(2000),field2 CHAR(2000),field3 CHAR(2000),field4 CHAR(2000)))
LOCATION ('bulkload.csv')
) REJECT LIMIT UNLIMITED PARALLEL;
To clarify, the preceding statement, when handled by the process
for a queue message, failes with an ORA-00942.
Note that I can issue the command directly, as BLB or SYS, against
the BL schema with no problems. Further, as user BLB or SYS, I can do
the following:
CREATE OR REPLACE PROCEDURE dotest
IS
l_sql varchar2(2000);
BEGIN
l_sql := 'CREATE TABLE bulkload33 (
field1 VARCHAR2(2000),field2 VARCHAR2(2000),field3 VARCHAR2(2000))
ORGANIZATION EXTERNAL (
TYPE oracle_loader DEFAULT DIRECTORY EXT_100
ACCESS PARAMETERS ( RECORDS DELIMITED BY "\r\n"
CHARACTERSET ''WE8ISO8859P1''
BADFILE EXT_100:''bulkload_bad.csv''
LOGFILE EXT_100:''bulkload_log.csv''
FIELDS TERMINATED BY '',''
OPTIONALLY ENCLOSED BY ''"'' MISSING FIELD VALUES ARE NULL REJECT ROWS WITH ALL NULL FIELDS (
field1 CHAR(2000),field2 CHAR(2000),field3 CHAR(2000),field4 CHAR(2000)))
LOCATION (''bulkload.csv'')
) REJECT LIMIT UNLIMITED PARALLEL';
EXECUTE IMMEDIATE l_sql;
END;
show errors
EXEC dotest
Does anyone have any ideas of why this doesn't work under 10g? Metalink
has yielded no clues so far.
Thanks.Define "has full access to the BL schema" given that it is impossible to grant access rights, in Oracle, by schema. What was done and how was it done?
My guess is that the privs were granted in a role, rather than explicitly, as is required for PL/SQL. -
ORA-29382 when requesting schema service
Hi Experts,
I'm trying to request a schema (Database Cloud Self Service Portal->My Databases->Request->Schema). But I always got the following errors:
Step: Create the resource plan and groups
Error message:
Step: Evaluate expression (Failed)
name from repository ORA-29382: validation of pending area failed ORA-29375: sum of values 101 for level 1, plan EM_RSC_PLAN exceeds 100 ORA-06512: at "SYS.DBMS_RMIN", line 444 ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 815 ORA-06512: at line 1
e from repository ORA-29382: validation of pending area failed
ORA-29375: sum of values 101 for level 1, plan EM_RSC_PLAN exceeds 100
ORA-06512: at "SYS.DBMS_RMIN", line 444
ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 815
ORA-06512: at line 1
Incidents
213 EM-03703 evaluateExpression(378972)
Centralized Logging
08:59:18 [INCIDENT_ERROR] - Error executing compute step CREATE_RESOURCE_PLAN_AND_GROUP for procedure Schema_as_a_Service
The version of my EM is 12.1.0.2.0.
Any suggestions?
ThanksI've got very similar problem some months ago. After some back and forth stage I've realized that the problem was in some expressions in source query that used locally defined PL/SQL functions. It appeared that Oracle tried to execute this local functions on remote server and finalyy I've got an error
ORA-04052: error occurred when looking up remote object <schema>.<package name>@<local server url>
When I removed the calls to local functions everything began to work fine.
What are exact expressions for columns in your
select col_1,...,col_n
from local_table
Are there any function calls there?
Cheers -
ORA-20233 when requesting schema service
Hi Experts,
I'm trying to request a schema (Database Cloud Self Service Portal->My Databases->Request->Schema). But I always got the following errors:
Step: "reate Database Service target and Promote Metrics."->"Promote Database Service Metrics"
Error message:
Unable to promote the target metrics. ORA-20233: Either the target or the metric does not exist for <target_name>/<metric_name>/<metric_column> schemaas.clouddemo.oracle.com_schemaas1/tbspAllocationspaceUsed ORA-06512: at "SYSMAN.EM_REP_METRIC", line 390 ORA-06512: at "SYSMAN.EM_REP_METRIC", line 629 ORA-06512: at "SYSMAN.EM_REP_METRIC", line 1775 ORA-06512: at "SYSMAN.MGMT_TARGET", line 4057 ORA-06512: at "SYSMAN.GENSVC", line 153 ORA-06512: at "SYSMAN.GENSVC", line 273 ORA-06512: at "SYSMAN.GENSVC", line 1048 ORA-06512: at "SYSMAN.MGMT_SERVICE", line 3269 ORA-06512: at line 1
CPU Warning threshold limit specified : 80.0
CPU Critical threshold limit specified : 90.0
Memory Warning threshold limit specified : 819.0
Memory Critical threshold limit specified : 921.0
Storage Warning threshold limit specified : 819.0
Storage Critical threshold limit specified : 921.0
About to create the metric property for Storage...
Storage metric property created successfully...
About to create the metric property for CPU...
CPU metric property created successfully...
About to promote the database service taret metrics...
Error while evaluating expression:[Error evaluating expression: ${promoteMetricStep()} : [Unable to promote the target metrics. ORA-20233: Either the target or the metric does not exist for <target_name>/<metric_name>/<metric_column> schemaas.clouddemo.oracle.com_schemaas1/tbspAllocationspaceUsed
ORA-06512: at "SYSMAN.EM_REP_METRIC", line 390
ORA-06512: at "SYSMAN.EM_REP_METRIC", line 629
ORA-06512: at "SYSMAN.EM_REP_METRIC", line 1775
ORA-06512: at "SYSMAN.MGMT_TARGET", line 4057
ORA-06512: at "SYSMAN.GENSVC", line 153
ORA-06512: at "SYSMAN.GENSVC", line 273
ORA-06512: at "SYSMAN.GENSVC", line 1048
ORA-06512: at "SYSMAN.MGMT_SERVICE", line 3269
ORA-06512: at line 1
The version of my EM is 12.1.0.2.0.
Any suggestions?
ThanksI've got very similar problem some months ago. After some back and forth stage I've realized that the problem was in some expressions in source query that used locally defined PL/SQL functions. It appeared that Oracle tried to execute this local functions on remote server and finalyy I've got an error
ORA-04052: error occurred when looking up remote object <schema>.<package name>@<local server url>
When I removed the calls to local functions everything began to work fine.
What are exact expressions for columns in your
select col_1,...,col_n
from local_table
Are there any function calls there?
Cheers -
Getting error "Column is not indexed " when executing query on ORACLE 10g
Hi all,
When executing the below query im getting the error "ORA-20000:Column is not indexed"
query:
select xmlelement("nexml:result",xmlattributes('http://namespaces.nextance.com/nex/xml' as "xmlns:nexml"),xmlelement("nexml:value",count(*))).getClobVal()
from "permission"
where ( ((contains(object_value,'(searchDocument) inpath(/permission/action)') > 0)) and ((existsNode(object_value,'/permission[resource/resourcekey/@type[. = "document"]]') = 1)) and ((contains(object_value,'(GeneralUser) inpath(/permission/principal/@name)') > 0)) and ((existsNode(object_value,'/permission[principal/@type[. = "group"]]') = 1)) and ((existsNode(object_value,'/permission[type[. = "allow"]]') = 1)) and ((contains(object_value,'(nexip) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Corporate) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(ProcurementAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Procurement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(SalesAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0)) )
Then after checking some forum, i replaced "contains" with "ora:contains" and executed the query. Now im not getting the first error but got a new error "invalid relational operator"
So please help me in resolving the errors?
Thanks in advance.Anil kumar wrote:
Hi,
Thanks for your reply. Could you please explain your solution in detail?Hi,
I just have a try...
create table t (id int,my_lob clob)
begin
insert into t values(101,'Oracle redwood shores USA');
insert into t values (102,'HP palo alto USA');
insert into t values(103,'Capgemini FRANCE');;
end;
create index my_idx on t(my_lob) indextype is ctxsys.context
select *
from t
where contains(my_lob,'USA',1)>0
Output
ID MY_LOB
101 Oracle redwood shores USA
102 HP palo alto USA Hope it helps,
CKLP
Maybe you are looking for
-
Hi, I m using Oracle 8i and EXP/IMP command to Export/Import all my data. Daily, I have to import my data in other computer, it takes many hours, as I have to delete all data first, then import all the data again. I want to insert only new/updated da
-
Edit link for Report with form
Hi, I create report on Page1 with form on Page2 using Wizard. For this reports select always returns me only one record. On my report I see edit image, it has records 'id' value and branching me to Page2. I need edit link on another region in Page1.
-
Problem: I have 2 mail and {name @ me . com} {name @ yandex . ru} I stopped using {name @ yandex . ru}, how to remove it from the profile?
-
Losing songs during sync process
I am having to recreate an iTunes library for my son. He swears the next sync will erase all of this songs. Is this true? If so, how can I prevent that from happening?
-
Could someone advise me on a fix for my compiler
I have Xcode installed with both gcc-3.3 and gcc-4.0.1... BUT... i think that there is another version (gcc-4.1.1) floating around that I must have inadvertantly (or advertantly, but long enough ago that I don't remember doing it) installed through w