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?
Thanks
I'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
Similar Messages
-
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 -
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_schemasHi 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. -
ORA+27478 when requesting new workspace
Hi,
after going through the wizard for creating a new workspace, I get the following errorÖ
ORA-27478: job "APEX_040000.ORACLE_APEX_MAIL_QUEUE" is running
Error requesting Workspace: .
Return to application.
Language: en
Application Express 4.0.0.00.46If I login as the ADMIN user I can see the request but if I try to approve it I get the same error.
The Job monitor reports that the ORACLE_APEX_MAIL_QUEUE job is running.
Not sure where to look for solutions_
Cheers,
AndyThanks,
this is what I get when I am querying the dba_jobs view:
select job, INSTANCE, FAILURES, SCHEMA_USER from dba_jobs;
JOB INSTANCE FAILURES SCHEMA_USER
4001 0 0 APEX_030200
4002 0 0 APEX_030200
23 0 0 SYSMANThis doesn’t look right at all as the schema_user isn't APEX_04..... or am I missing something?
I have alsochecked the job_queue_processes parameter:
show parameter JOB
NAME TYPE VALUE
job_queue_processes integer 1000-Andy
Edited by: A Tael on Aug 6, 2010 9:19 AM
Edited by: A Tael on Aug 6, 2010 9:46 AM -
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.
-
Java GSS API - Kerberos - Receive timed out when requesting service ticket.
Hi,
I'm following the following exercises about Kerberos/JGSS-API :
http://java.sun.com/javase/6/docs/technotes/guides/security/jgss/lab/
On exercise 3, I get an exception (when requesting a service ticket) from the client side:
"+Exception in thread "main" java.security.PrivilegedActionException: GSSException: No valid credentials provided (Mechanism level: Receive timed out)
etc.+"
This seems to happen when the GSSContext.initSecContext(...) method is called.
The server side receives the client connection:
"+Waiting for incoming connection...+
+Got connection from client /xxx.xxx.x.xxx+"
But then displays the following exception:
"+Exception in thread "main" java.security.PrivilegedActionException: java.net.SocketException: Connection reset
etc.+"
I checked my KDC (win 2003 Server SP2) and added SPNs with setspn but the error remains.
Any suggestion are more than welcome !The TGT is already present on my Client machine because it is acquired automaticaly from the KDC during the Windows opening session.
I use then JAAS to access the LSA and obtain the TGT - This doesn't need any further connection to the KDC.
But the Service Ticket is requested to the KDC by my client machine..
Here is the complete output (Client side) after I destroyed the tickets (with Kerberos MIT Leash.exe and/or kdestroy.exe ):
Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
+>>>KinitOptions cache name is C:\Documents and Settings\user.MYDOMAIN\krb5cc_user+
+>> Acquire default native Credentials+
+>>> Obtained TGT from LSA: Credentials:+
[email protected]
server=krbtgt/[email protected]
authTime=20080529135209Z
startTime=20080529135209Z
endTime=20080530015209Z
renewTill=20080702135209Z
flags: FORWARDABLE;RENEWABLE;INITIAL;PRE-AUTHENT
EType (int): 23
Principal is [email protected]
Commit Succeeded
+Authenticated principal: [[email protected]]+
Connected to address host1/xxx.xxx.x.xxx
Found ticket for [email protected] to go to krbtgt/[email protected] expiring on Fri May 30 03:52:09 CEST 2008
Entered Krb5Context.initSecContext with state=STATE_NEW
Found ticket for [email protected] to go to krbtgt/[email protected] expiring on Fri May 30 03:52:09 CEST 2008
Service ticket not found in the subject
+>>> Credentials acquireServiceCreds: same realm+
Using builtin default etypes for default_tgs_enctypes
default etypes for default_tgs_enctypes: 3 1 23 16 17.
+>>> CksumType: sun.security.krb5.internal.crypto.RsaMd5CksumType+
+>>> EType: sun.security.krb5.internal.crypto.ArcFourHmacEType+
+>>> KrbKdcReq send: kdc=yyy.yyy.y.y UDP:88, timeout=30000, number of retries =3, #bytes=1262+
+>>> KDCCommunication: kdc=yyy.yyy.y.y UDP:88, timeout=30000,Attempt =1, #bytes=1262+
SocketTimeOutException with attempt: 1
+>>> KDCCommunication: kdc=yyy.yyy.y.y UDP:88, timeout=30000,Attempt =2, #bytes=1262+
SocketTimeOutException with attempt: 2
+>>> KDCCommunication: kdc=yyy.yyy.y.y UDP:88, timeout=30000,Attempt =3, #bytes=1262+
Exception in thread "main" java.security.PrivilegedActionException: GSSException: No valid credentials provided (Mechanism level: Receive timed out)
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at javax.security.auth.Subject.doAs(Subject.java:396)+
+ at SimpleAuthzz2.loginAndAction(SimpleAuthzz2.java:56)+
+ at SimpleGssClient.main(SimpleGssClient.java:36)+
SocketTimeOutException with attempt: 3
Caused by: GSSException: No valid credentials provided (Mechanism level: Receive timed out)
+ at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:659)+
+ at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:213)+
+ at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:158)+
+ at SimpleGssClient$GssClientAction.run(SimpleGssClient.java:121)+
+ ... 4 more+
Caused by: java.net.SocketTimeoutException: Receive timed out
+ at java.net.PlainDatagramSocketImpl.peekData(Native Method)+
+ at java.net.DatagramSocket.receive(DatagramSocket.java:662)+
+ at sun.security.krb5.internal.UDPClient.receive(UDPClient.java:77)+
+ at sun.security.krb5.KrbKdcReq$KdcCommunication.run(KrbKdcReq.java:278)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:195)+
+ at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:140)+
+ at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:106)+
+ at sun.security.krb5.KrbTgsReq.send(KrbTgsReq.java:215)+
+ at sun.security.krb5.internal.CredentialsUtil.serviceCreds(CredentialsUtil.java:293)+
+ at sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(CredentialsUtil.java:106)+
+ at sun.security.krb5.Credentials.acquireServiceCreds(Credentials.java:561)+
+ at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:585)+
+ ... 7 more+
It seems like the TGT is still present in the cache, even if Leash displays "no tickets".
Meanwhile, in the KDC-server side:
-What is the correct spn to add? C:\setspn GssServer/host1 user ? (I in fact tried many possibilities)..
-Is there any other special configuration to do in the KDC ?
Thanks a lot! -
ORA-19007 when coping a table with an xml type in it to a new schema in the
ORA-19007 when coping a table with an xml type in it to a new schema in the same database.
Hi all,
When I copy a table with an xml type in it to a new schema in the same database I get an ora-19009.
The setup is as follows I have a schema a with table TABLE_WITH_XMLTYPE where data is:
CREATE
TABLE TABLE_WITH_XMLTYPE
FOLDER_ID NUMBER (10, 0) NOT NULL,
SEARCH_PROPERTIES XMLTYPE ,
CONSTRAINT TABLE_WITH_XMLTYPE PK PRIMARY KEY (FOLDERID) USING INDEX
XMLTYPE COLUMN SEARCH_PROPERTIES XMLSCHEMA
"http://xxxxxxx.net/FolderProperties.xsd" element "FolderProperties"
VARRAY SEARCH_PROPERTIES."XMLDATA"."PROPERTIES"."PROPERTY" STORE AS TABLE
PROPERTY_TABLE
(PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX)) ORGANIZATION INDEX OVERFLOW
Both schemas have the following xml schema registered as a local xml schema
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xxxxxxx.net/FolderProperties.xsd',
SCHEMADOC =>
'<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb"
xdb:storeVarrayAsTable="true">
<xs:element name="FolderProperties"
type="FolderPropertiesType"
xdb:defaultTable="FOLDER_SEARCH_PROPERTIES" />
<xs:complexType name="FolderPropertiesType" xdb:SQLType="FOLDERPROPERTIES_T">
<xs:sequence>
<xs:element name="FolderID" type="FolderIDType" minOccurs="1" xdb:SQLName="FOLDER_ID"/>
<xs:element name="Properties" type="PropertiesType" xdb:SQLName="PROPERTIES"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PropertiesType" xdb:SQLType="PROPERTIES_T">
<xs:sequence>
<xs:element name="Property" type="PropertyType" maxOccurs="unbounded"
xdb:SQLName="PROPERTY" xdb:SQLCollType="PROPERTY_V"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PropertyType" xdb:SQLType="PROPERTY_T">
<xs:sequence>
<xs:element name="DateValue" type="DateType" xdb:SQLName="DATE_VALUE"/>
<xs:element name="NumValue" type="NumType" xdb:SQLName="NUM_VALUE"/>
<xs:element name="StringValue" type="StringType" xdb:SQLName="STRING_VALUE"/>
</xs:sequence>
<xs:attribute name="Name" xdb:SQLName="NAME" xdb:SQLType="VARCHAR2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="FolderIDType">
<xs:restriction base="xs:integer"/>
</xs:simpleType>
<xs:simpleType name="DateType">
<xs:restriction base="xs:dateTime"/>
</xs:simpleType>
<xs:simpleType name="NumType">
<xs:restriction base="xs:decimal"/>
</xs:simpleType>
<xs:simpleType name="StringType">
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:schema>',
LOCAL => TRUE,
GENTYPES => TRUE,
GENTABLES => FALSE);
END;
when I try to do the following insert:
insert into schemaB.TABLE_WITH_XMLTYPE ( FOLDER_ID, SEARCH_PROPERTIES)
select FOLDER_ID, SEARCH_PROPERTIES from schemaB.TABLE_WITH_XMLTYPE;
I’ll get an ora-19007.
Can some one point me in the right direction how to solve this error.
Thanks Roelof.Who did you create the second table, in other words, how did you COPY the table as you said...
If you created the second table via a CTAS (create table as select) then you will have created a table that is not the same as the original one. AFAIK I have once created an enhancement request for this after discovering that JDeveloper, for example, creates a "copy" via a CTAS which creates the wrong structure. Double check via package DBMS_METADATA.
SQL> set long 1000000
SQL> select DBMS_METADATA('TABLE','TABLE_WITH_XMLTYPE','SchemaA') from dual;
SQL> select DBMS_METADATA('TABLE','TABLE_WITH_XMLTYPE','SchemaB') from dual;If you have got two different tables, than Mark's solution should help.
M.
Edited by: Marco Gralike on Feb 15, 2009 11:16 AM -
ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http
I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
when browsed through some of the messages they point to setting Oracle Wallet Manager.
I am trying to connect
Any idea on how to resolve this issue ?
your input is appreciated.
Thanks
RaviDuplicate post ... please ignore.
-
When creating self service request contains attachments and it's approved
when creating self service request contains attachments and it's approved is the attachments automatic transfer to the applet form or not?
resolved
-
I am trying to call a web service using apex_web_service.make_request function.
It works fine when all the parameters are correct. However, when something is wrong in the request XML, it throws an exception instead of returning the soap:fault message:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29269: HTTP server error 500 - Internal Server Error
ORA-06512: at "APEX_040200.WWV_FLOW_WEBSERVICES_API", line 130
ORA-06512: at line 37
I need to get back the soap:fault and parse it to display a proper error message to the users (e.g. what was wrong with the input), yet the call throws an exception instead of returning it.
I am trying the exact same request from soapUI and it returns me the soap:fault below:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Fault occurred while processing.</soap:Text>
</soap:Reason>
<soap:Detail>
<ns1:RegisterFault xmlns:ns1="http://www.exchangenetwork.net/wsdl/register/1">
<description xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1">The security token has expired.</description>
<errorCode xsi:type="ns2:RegisterErrorCode" xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">E_TokenExpired</errorCode>
</ns1:RegisterFault>
</soap:Detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
How do I get this back from APEX?
Thanks!Hi,
I've just run into this.
If the webservice returns a fault, such as:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>INVALID_REQUESTER_INFO</faultstring></soap:Fault></soap:Body></soap:Envelope>
then the user gets presented with an unfriendly error message and there's no chance to output a more friendly one.
The response above is seen when testing the webservice, when run from the Form/Report page, we get something like:
soap:ServerINVALID_REQUESTER_INFO
Contact your application administrator.
OK
When OK button is clicked everything is rolled back and we don't even get the fault XML.
It would be good if Apex could be optionally set to not give the unfriendly messages, so that we could code such a message ourselves.
Unless anybody has a workaround for this, I guess that I'll have to see if I can code this in PLSQL.
Regards,
Chris -
ORA-28759 when trying to open wallet
Hello,
I have a problem when I try to do a https request via utl_http.
Database version is
SYS@tcp_iig9_test> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionThe database is running on a Windows Server 2008 32 bit Standard SP2.
I create a simple wallet using orapki on the database server the following way
c:\> orapki wallet create -wallet wallet-client -auto_loginthe wallet is created successfully, I have the ewallet.e12 file and a cwallet.sso file in the wallet-client directory:
C:\wallet-client>dir
Volume in drive C is System
Volume Serial Number is 5C03-B54D
Directory of C:\wallet-client
10/11/2010 01:58 AM <DIR> .
10/11/2010 01:58 AM <DIR> ..
10/11/2010 01:58 AM 3,589 cwallet.sso
10/11/2010 01:58 AM 3,512 ewallet.p12
2 File(s) 7,101 bytes
2 Dir(s) 475,807,744 bytes freeJust to be sure I opened the wallet with the wallet manager successfully.
after that I want to do a request with the following code:
SYS@tcp_iig9_test> r
1 declare
2 vReq varchar2(2000);
3 begin
4 utl_http.set_wallet('file:c:\wallet-client', '<pwd>');
5 vReq := utl_http.request('https://supporthtml.oracle.com');
6* end;
declare
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-28759: failure to open file
ORA-06512: at line 5Note that I do not care if the certificate chain is OK at this time (the root certificate of the oracle support portal would be from verisign which is in the wallet btw.).
same thing happens if I pass the path to the wallet directly to utl_http.request :
SYS@tcp_iig9_test> r
1 declare
2 vReq varchar2(2000);
3 begin
4 vReq := utl_http.request('https://supporthtml.oracle.com', null, 'file:c:/wallet-client', '<pwd>');
5* end;
declare
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-28759: failure to open file
ORA-06512: at line 4To add: I created ACL's like here:
http://www.morganslibrary.org/reference/dbms_network_acl_admin.html
and after the ACL's where created correctly I ended up with the above error.
To exclude this has anything to do with Network ACL's I tested the whole stuff with the sys user (as seen above) - the error persists.
When searching the documentation for ORA-28759 I get here: http://download.oracle.com/docs/cd/B28359_01/network.111/b28530/asossl.htm#ASOAG9698
Which begs the question: what has this to do with SQL*Net SSL authentication? Anyway; I added the WALLET_PATH to my sqlnet.ora on the server just to be sure:
WALLET_LOCATION =
(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=c:\wallet-info)))which resulted in exactly the same behaviour (yes I did bounce the listener and the oracle service just to be sure)...
A google search came back with the same advice: add the correct WALLET_LOCATION to your sqlnet.ora for version 10.2.x. Just to add: I tested the same thing on 10.2.0.4 WITHOUT adding WALLET_LOCATION to the sqlnet.ora successfully, so I am really wondering what I am missing here.
Yes, I do have read / write privilages to the directory (to test I wrote a file using utl_file ), yes I am darn sure I passed the correct password for the wallet, and yes I am darn sure the wallet is correct (as said I opened it successfully using wallet manager).
Did anyone encounter a similar issue?
cheersFound the solution: as noted in the 11gR2 documentation for set_wallet (http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/u_http.htm#i998681): If the wallet is auto-login enabled, the password may be omitted and should be set to NULL. The password passed to utl_http.request should (well, moreover a must ) be set to null when auto-login is enabled, after that it works...This is different to 10gR2...Yeah well, if you can read, you'll be in the lead...
It get's funny though if you open the wallet with wallet manager (this fancy GUI bloatware I used to check if I entered the password correct in the first place). Once the wallet is opened and saved with Wallet Manager the error is back wheter I pass a password or not.
cheers -
CsDbUnableToStartTransaction() ORA-01013: user requested cancel of current
Hello Guru's,
We are getting this error once in a while(may be once in 20 check-in's). Please through some lights why this error occurs? Thanks in advance.
Error Log :
sscproducmap02.ph.rc: Event generated by user 'fmwadmin' at host 'xxxxxxxxxxxx:7151'. csDbUnableToStartTransaction() ORA-01013: user requested cancel of current operation
csDbUnableToStartTransaction() ORA-01013: user requested cancel of current operation
java.sql.SQLException: ORA-01013: user requested cancel of current operation [ Details ]
An error has occurred. The stack trace below shows more information.
!$sscproducmap02.ph.rc: !csUserEventMessage,fmwadmin,xxxxxxxxxxx:7151!$!csDbUnableToStartTransaction,!$ORA-01013: user requested cancel of current operation<br>!csDbUnableToStartTransaction,!$ORA-01013: user requested cancel of current operation<br>!syExceptionType2,java.sql.SQLException,ORA-01013: user requested cancel of current operation<br>
intradoc.common.ServiceException: !csDbUnableToStartTransaction,!$ORA-01013: user requested cancel of current operation
at intradoc.data.WorkspaceTransactionWrapper.beginTransaction(WorkspaceTransactionWrapper.java:52)
at intradoc.server.ServiceRequestImplementor.beginTransaction(ServiceRequestImplementor.java:285)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1186)
at intradoc.server.Service.doActions(Service.java:447)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1121)
at intradoc.server.Service.executeActions(Service.java:433)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
at intradoc.server.Service.doRequest(Service.java:1707)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
Caused by: intradoc.data.DataException: !csDbUnableToStartTransaction,!$ORA-01013: user requested cancel of current operation
at intradoc.jdbc.JdbcWorkspace.handleSQLException(JdbcWorkspace.java:2371)
at intradoc.jdbc.JdbcWorkspace.beginTranEx(JdbcWorkspace.java:1059)
at intradoc.data.WorkspaceTransactionWrapper.beginTransaction(WorkspaceTransactionWrapper.java:47)
... 9 more
Caused by: java.sql.SQLException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:961)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
at oracle.jdbc.driver.OracleStatement.doScrollExecuteCommon(OracleStatement.java:4086)
at oracle.jdbc.driver.OracleStatement.doScrollStmtExecuteQuery(OracleStatement.java:4234)
at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1661)
at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1626)
at intradoc.jdbc.JdbcWorkspace.beginTranEx(JdbcWorkspace.java:1038)
... 10 moreThe ORA-01013 error is a database error. The error is thrown when an activity is cancelled by the requested user before it was completed.
In this case UCM is the application that is cancelling a database query/update/etc. UCM does this automatically if a database action takes
longer then a treshold value (I think by default it's 30 seconds, but I am not completely sure).
If you are suffering from ORA-01013 it might be good to contact your DBA and ask if there are any queries from your UCM application that
take a long time. Or trace the systemdatabase event and look for queries that take a long time. -
"Request Product Service" form on apple's website doesn't work
I'm trying to get Apple to repair my broken IPod. I go to the Request Product Service online form (http://depot.info.apple.com/ipod/), fill in all my info, and when I get to the page that asks "Describe Your Issue," I get stuck on the first part: "Select an issue which describes the reason for service," it says, and provides a drop-down menu - for which there are no options. Try continuing, and it won't let you. I'm so frustrated - is this Apple's way of getting out of servicing IPod's? It's such an obvious technical glitch in the form (I've tried using a different web browser, same thing happens), it's amazing.
What are my options? Take it to a store?You can call apple at 1-800-275-2273 if your still stuck they will help you sort it out. By the way if you are canadian make sure you are filling out the canadian code, and same for u.s. good luck
-
ORA-29273: HTTP request failed ORA-12535: TNS:operation timed out
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 151001371 wrote:
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 15
the most frequent cause for TIMEOUT is a FireWall on or between client & server.
when was last time this worked without error?
what changed since then? -
Hi, I have been trying for push Notification Services in Windows 8 Store Apps. I am requesting For notification channel in the following manner
publicasyncvoidregisterChannelForNotification(
try
TileUpdateManager.CreateTileUpdaterForApplication().Clear();
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Clear();
varvProfile =
NetworkInformation.GetInternetConnectionProfile();
if(vProfile.GetNetworkConnectivityLevel()
== NetworkConnectivityLevel.InternetAccess)
varvChannel =
awaitPushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
varvBuffer =
CryptographicBuffer.ConvertStringToBinary(vChannel.Uri,
BinaryStringEncoding.Utf8);
varvUri =
CryptographicBuffer.EncodeToBase64String(vBuffer);
varvClient =
newHttpClient();
try
varvResponse =
awaitvClient.GetAsync(newUri(Constants.SERVER_URL));
if(vResponse.IsSuccessStatusCode)
sendDeviceTokenRequest(vChannel.Uri);
catch(HttpRequestException)
catch(Exceptionex)
This gives me the exception,The wait operation timed out. (Exception from HRESULT: 0x80070102) when requesting for pushNotification channel. What could be the possible reason and how to solve this issue
Nikhil Sharma10Hi,
I have currently the same problem with requesting a push channel.
But iam not sure if it is a problem with my phone, or my application.
I cant get rid of this error. The solution says: "retry the channel request later". But it doesn
matter if I retry the channel request later (triggerd by pressing a button) the same day or the next day.
I resetted my windows phone, installed the newest dev preview, but it is still not working. But the same code worked a few months ago. On the same phone.
Thats why Iam not sure what I changed (accidentally) in my app code which causes now the 0x80070102 error.
Any ideas why the same code is not working any more?
Thanks
Greetings from Germany
Simon
Maybe you are looking for
-
USB Think/Travel Keyboard with UltraNav Win 7
Although Lenovo assured me I would not have problems with my trackpoint keyboard (USB Think/Travel Keyboard with UltraNav), Windows 7 Pro 64 bit (ThinkCenter M93p) does not recognize UltraNav. The functions (example: scroll) work correctly in some ap
-
Any way to automatically run discoverer reports based on an event ?
I am using discoverer 3.1.36. I am trying to automate the running of discoverer reports - the objective is to automatically run a set of discoverer reports after a particular event. This is part of a very critical solution for a large bank. One of th
-
After ntrans-j2ee, matching ppath objects are ignored
Aa of WS7.0u2, I'm seeing that ppath objects that should match are being ignored whenever an explicit JSP file is specified, but not for any other type. This is different from WS7.0u1 and earlier. In earlier versions, the ppath object always matched,
-
Button onclick not working in the calculated field
Hi Everyone, I have to add the button in the calculated field through list definition. On click of button it should call the java script function. I can add the button but on click event is not working. this is my code: <Field Name="Accept" ID="{1F73
-
9i jdbc driver change causes problems
Hello all, I was wondering if anyone had any problems with jdbc when migrating to oracle 9i. We are using timestamps from java which were mapped to dates. In oracle there is a function which takes a date. Now this won't work anymore as the mapping ch