How to register the same schema with same URL
I'm getting ORA-31085 error when try to register the same schema with same URl.
My requirement is that I should be able to reregister the same schema with the same URL .
I'm using the following function :
PROCEDURE validateXmlSchema(inp_xmlMsg IN VARCHAR2,
out_isValidDoc IN OUT NUMBER,
inp_xmlSchema IN OUT VARCHAR2,
out_varchar_notused OUT VARCHAR2)IS
xmldoc XMLType;
res number;
BEGIN
xmldoc := XMLtype(inp_xmlMsg);
res := xmldoc.isSchemaValid(inp_xmlSchema);
IF (xmldoc.isSchemaValid = 1) THEN
out_isValidDoc := 1;
ELSE
out_isValidDoc := 0;
END IF;
END validateXmlSchema;
This is used recursively.Until the schema is not validated for a given URL this function should keep on throwing error and once the schema is validated the data should be inserted in the DB.
But its not happening as of now instead the ORA-31085 is thrown second time.
Plz provide pointers to solve the issue.
"mjs" <[email protected]> wrote in message
news:g7kjk5$o6$[email protected]..
> "mjs" <[email protected]> wrote in message
> news:g7gl2g$i3d$[email protected]..
>> "Zorrrro" <[email protected]> wrote
in message
>> news:g7gcjv$a6n$[email protected]..
>>> I'm completely nuckered trying to find an answer
for this...
>>>
>>> Does anyone know how to keep the same width an
position of the submenus
>>> of a
>>> horizontal dropdown menu?
>>> Thank you in advance.
>>>
>>> Cheers.
>>
>> Doesn't a simple style="width:200px" in the input
tag work?
>
> I'll asume the answer is "yes", then. ;) You're welcome.
I believe the OP is talking about a dropdown menu like this
one
http://www.tjkdesign.com/articles/keyboard_friendly_dropdown_menu/default.asp
not about a "select menu".
I could be wrong though...
Thierry
Articles and Tutorials:
http://www.TJKDesign.com/go/?0
http://developer.yahoo.com/
helps you build applications and mashups
Similar Messages
-
How to differentiate the insp lots with same lot origin
Hi,
My client is
1. Procuring a Finished good directly ( same way as Raw material is being procured ) & then sale it.
2. In another scinarion the same material may be produced at Vendor's end ( Sub contracting )
3. In another scinario this is in house produced material.
Now the requirement is seperate tracking / list for each case.
Inspection type 04 can be activated to address the 3'rd case.
But how to segregate 1'st & 2'nd case from each other ???
I have created one new inspection type Z01 for lot origin 01. Similarly insp type 01 is also activated.
If Z01 insp type is marked as preferred insp type, then system always consider this insp type.
How to differentiate inspection type Z01 & 01 at incoming inspection stage ????
regards,Dear Gajesh / Roderick
Thanks for reply & Sorry for the delayed reply from my side.
Gajesh as per your suggestion i used the break point in user exit QAAT0001 & after that i have executed PO & MIGO transaction, But after executiing it did not stop at a particular break point.
AM i doing some thing wrong???? or any alternate solution is there??
Roderick, i have explored the status profile but found to be use fulll for changing stage one time only. i.e. between 0101 to 01. But here i want to choose the inspection type base on PO type.
Kindly suggest further action.
Once abain thanks.
regards,
Singh
Edited by: Singh15667 on Jul 24, 2009 10:54 AM -
Registering the file format with the system
Hey,
I have a program which saves files using objectstream.. How can register the new format with the operating system so that it knows which program to use to open it.. Can any one help me with this..i want this to be platform independent... Is it possible to do it in java.. Or may be some tool to make the java program installable... Is it possible????
-
How do You Transfer iTunes from One Log-in to another Log-in on the SAME computer with SAME account?
Move the files to the /Users/Shared/ folder and then to the other account's home folder.
(85927) -
A computer illiterate friend created 3 accounts on his iPhone 5 but forgot the passwords. He can't reset the password as his yahoo address is no longer valid. Erasing the phone doesn't solve the issue as the Apple server identifies the hardware as registered. How to register the phone with Apple?
I helped him create a new email address and new iCloud account on my Mac but when we try to register the phone with Apple it says: Maximim accounts limit reached for this device. How can he register the phone? I read different threads and found out that only Apple care can do that. We're in Romania and don't know where to call. Any suggestions on how we fix this?When I checked the support site for Romania, you apparently don't have an Apple Care contact center. You "may" try calling the US Apple care number to verify the account and have the password reset sent to a different email address. 800-694-7466
-
How to program a midi foot controller on Mainstage? Does anyone knows how to program the foot controller with exclusive solo channel in order not to dance "tip tap" while from clean guitar I go to crunch or solo? How to do this programming on Mainstage?
I basically managed to learn how to invert parameters which allows me to be as default in the clean guitar channel and if I switch the first button on the midi foot controller I switch to crunch, but at this point I tryied so hard to programm the second and third button to switch, only through a button in one step, to a third channel for distorsion or a 4th channel for solo guitar but I couldn't figured out how this work can be done!
I would appreciate if anyone could help or share this experience with others who are experiencing the same problem.
Cheers.
F.I cannot seem to get mainstage to recognize my FCB either. I am using IFCB. Anyone figure this out?
Thanks,
Eric -
How to set the screen size with nested Iview screen
Can someone show me how to set the screen size with nested IView screen.
at the moment i only try it with trial and error untill it looks somewhat close. Is there a property in VC to set the size for Height and width.
The same question is for the form. the form elements inside the form is easy but the actual form is still a challenge.Hi,
Yes you are correct ,Still the Form and iview are not able to change thier Layout Structure using a Propery.
it is available with VC7.1
Govindu -
I own an iPod Touch 4g. Now i'm planning to buy iPod Touch 5g. Is it possible for me to register the new iPod with existing Apple ID so that i can transfer the apps from my existing account to my new Ipod 5g?
There should definitely be no issue. You can register more than one Apple device with the same Apple ID and get the same apps on both devices without having to pay for the apps again.
Alternatively, if you want all your settings to say the same, do a backup of your old iPod Touch and then whe you receive the new iPod, restore the backup on it and it'll save you the trouble from having to redownload everything.
Cheers. -
How to make the wifi connection with Ipad in china since it requires user's name and password just like the dialed-up?
The same way you would connect to a secure wifi network in any other country. Supply the username and password when prompted.
-
How to synchronize the FieldPoint time with my computer time?
When I using MAX to read the values from my FieldPoint cFP-1804 module, there is and timestamp generated for every measurement, but it does not match my PC's system time. How to synchronize the FieldPoint time with my windows PC?
I found a thread on the forum regarding this problem (http://digital.ni.com/public.nsf/allkb/C4E56AD6450FC5FD86256DFF0007FF01), it ask me to select the Time Zone on the System Setting tab, but I didn't find any System Setting tab and Time Zone setting in my MAX screen. (MAX version4.4)
I'm using the cFP-1804 without embedded CPU module, I'm using asp.net, measurement studio to link with the cFP-1804, not by using Labview. Does cFP-1804 have a Time Server function? Please tell me how to match the FieldPoint time with my PC.
ThanksHi Presario2100,
In order to obtain an updated timestamp with each FieldPoint Read, you should
use a Flat Sequence structure. In the same frame as the
FieldPoint Read, use a Get Date/Time In
Seconds node.
The program obtains a fresh Timestamp each time the FieldPoint Read VI is
called.
I hope this helps.
Message Edited by Pie56694 on 08-15-2008 05:58 PM
Attachments:
TSUpdates.jpg 38 KB
FlatSequence.jpg 54 KB -
How to register the recipient when create job by function
I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
Can you tell me how to register the recipient when create the job.
( in sm36, it is easily to do but how to do in coding? )
regards,
slamHi
I think in Back ground using the above fun modules you can't send a mail to the receipient.
see the use of the above fun modules;
IF p_bjob = 'X'.
CONCATENATE sy-cprog sy-datum sy-uzeit
INTO jobname SEPARATED BY '_'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT ybrep
WITH < sel Screen>
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE i029 WITH jobname.
ENDIF.
ELSE.
MESSAGE s000 WITH text-003.
STOP.
ENDIF.
ENDIF.
Reward points if useful
Regards
Anji -
How to find the DB schema of XI DB tables to operate on the XI DB table
Hi all,
I have to execute some queries on internal XI DB. For this I need the schema name of the DB table where the data about the message is available. Can anyone tell, how to find the DB schema-name of the DB table? I have PI 7.1 system with internalDB.
How to access the DB of the PI 7.1 system using NWA?
Regards,
SooryaHi,
The PI 7.1 Server shall definitely posses a Database. This Database shall have the ABAP and Java Dictionary tables in 2 different database schemas.You sholud be getting the names of the schema from the basis team supporting your server.
I hope your are referring to the Java DB Schema for access. In order to get the schema name for the Java Dictionary, you should have access to the NetWeaver Adminstrator (NWA) of the PI Server.
Logon to NWA, navigate to Configuration Management --> Infrastructure --> Application Resources. Select the Resurce Type to show as JDBC Drivers. Select the system driver and click on Dependent JDBC Datasources. This table should give you the schema name of the Java Table Storage of the PI 7.1 server.
Regards,
Alka. -
How to calculate the cumulative sum with certain interval in SAP HANA
Hi Experts,
I have a scenario in which I have a column with Boolean values and need to calculate the cumulative values in the interval where there are consecutive ones as mentioned below,
ID Date column 1
1 9-14-2014 14:22:00 1
1 9-14-2014 14:25:00 1
2 9-14-2014 13:22:00 0
1 9-14-2014 15:02:00 0
1 9-14-2014 14:37:00 0
2 9-14-2014 14:25:00 1
2 9-14-2014 14:32:00 1
1 9-14-2014 14:05:00 1
2 9-14-2014 14:45:00 0
2 9-14-2014 14:59:00 0
1 9-14-2014 15:12:00 1
1 9-14-2014 15:18:00 1
1 9-14-2014 15:21:00 1
First needs to group by 'ID' and Order By ' Date' and calculate the calculated column 'cumulative sum' for the consecutive ones in 'column1' as
ID Date column 1 Cumulative sum
1 9-14-2014 14:05:00 1 1
1 9-14-2014 14:22:00 1 2
1 9-14-2014 14:25:00 1 3
1 9-14-2014 14:37:00 0 0
1 9-14-2014 15:02:00 0 0
1 9-14-2014 15:12:00 1 1
1 9-14-2014 15:18:00 1 2
1 9-14-2014 15:21:00 1 3
2 9-14-2014 13:22:00 0 0
2 9-14-2014 14:25:00 1 1
2 9-14-2014 14:32:00 1 2
2 9-14-2014 14:45:00 0 0
2 9-14-2014 14:59:00 0 0
Is there any function and way to calculate this without loops in procedure?
Please help!!. Thank you!!
-GayathriHi Henrique,
The SQL,
SELECT id, date, col1, sum(col1) over (partition by col1 order by id, date) as cumulative_sum
will give me the cumulative value for all the col 1 with same value which is not my requirement,
the above will give the result as shown below. I have also added the correct values as per my requirement as well
ID Date column 1 Cumulative sum correct ***_sum
1 9-14-2014 14:05:00 1 1 1
1 9-14-2014 14:22:00 1 2 2
1 9-14-2014 14:25:00 1 2 3
1 9-14-2014 14:37:00 0 0 0
1 9-14-2014 15:02:00 0 0 0
1 9-14-2014 15:12:00 1 4 1
1 9-14-2014 15:18:00 1 5 2
1 9-14-2014 15:21:00 1 6 3
2 9-14-2014 13:22:00 0 0 0
2 9-14-2014 14:25:00 1 1 1
2 9-14-2014 14:32:00 1 2 2
for my requirement , I need to find the cumulative value only for the consecutive 1s if there are 0s in between then there should be a break and cumulative sum should start again for the next set of consecutive 1s
Hope you could help. Thanks.
-Gayathri -
I am trying to register the xml schema and getting error
SQL> BEGIN
2 DBMS_XMLSCHEMA.registerSchema(
3 SCHEMAURL => 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd',
4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998.dtd'),
5 CSID => nls_charset_id('AL32UTF8'));
6 END;
7 /
BEGIN
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00247: invalid Document Type Declaration (DTD)
Error at line 45
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
the xml i am trying to register is
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
<metadata>
<idinfo>
<citation>
<citeinfo>
<origin>MRF</origin>
<pubdate>20040512</pubdate>
<pubtime>09000000</pubtime>
<title>BAS_EASEMENT</title>
etc.
Pls help me in registering the xml schema.I am registering fgdc-std-001-1998-sect01.xsd, but it is
giving error about citeinfo element.XSD is
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" blockDefault="#all">
<xsd:element name="idinfo" type="idinfoType"/>
<xsd:complexType name="idinfoType">
<xsd:sequence>
<xsd:element ref="citation"/>
<xsd:element ref="descript"/>
<xsd:element ref="timeperd"/>
<xsd:element ref="status"/>
<xsd:element ref="spdom"/>
<xsd:element ref="keywords"/>
<xsd:element ref="accconst"/>
<xsd:element ref="useconst"/>
<xsd:element ref="ptcontac" minOccurs="0"/>
<xsd:element ref="browse" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="datacred" minOccurs="0"/>
<xsd:element ref="secinfo" minOccurs="0"/>
<xsd:element ref="native" minOccurs="0"/>
<xsd:element ref="crossref" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="citation" type="citationType"/>
<xsd:complexType name="citationType">
<xsd:sequence>
<xsd:element ref="citeinfo"/>
</xsd:sequence>
</xsd:complexType>
SQL> BEGIN
2 DBMS_XMLSCHEMA.registerSchema(
3 SCHEMAURL => 'fgdc-std-001-1998-sect01.xsd',
4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998-sect01.xsd'),
5 LOCAL => TRUE,
6 GENTYPES => TRUE,
7 genbean => FALSE,
8 GENTABLES => FALSE,
9 force => False,
10 CSID => nls_charset_id('UTF8'));
11 END;
12 /
BEGIN
ERROR at line 1:
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00021: undefined element "citeinfo"
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
I am unable to understand xsd, is there any manual to understand
xsd or some literature.I need to create new xsd as per requirements
also.But Pl could you help me right now with registering current xsd. -
How to get the current schema name
Hi,
Can anybody please tell me how to get the current schema name, there is some inbuilt function for this,but i am not getting that. Please help me.
Thanks
Jogeshok folks, I found the answer at Tom's as usual.
http://asktom.oracle.com/tkyte/who_called_me/index.html
I rewrote it into a function for kicks. just pass the results of DBMS_UTILITY.FORMAT_CALL_STACK to this function and you will get back the owner of the code making the call as well some extra goodies like the name of the code and the type of code depending on the parameter. This ignores the AUTHID CURRENT_USER issues which muddles the schemaid. Quick question, does the average user always have access to DBMS_UTILITY.FORMAT_CALL_STACK or does this get locked down on some systems?
cheers,
paul
create or replace
FUNCTION SELF_EXAM (
p_call_stack VARCHAR2,
p_type VARCHAR2 DEFAULT 'SCHEMA'
) RETURN VARCHAR2
AS
str_stack VARCHAR2(4000);
int_n PLS_INTEGER;
str_line VARCHAR2(255);
found_stack BOOLEAN DEFAULT FALSE;
int_cnt PLS_INTEGER := 0;
str_caller VARCHAR2(30);
str_name VARCHAR2(30);
str_owner VARCHAR2(30);
str_type VARCHAR2(30);
BEGIN
str_stack := p_call_stack;
-- Loop through each line of the call stack
LOOP
int_n := INSTR( str_stack, chr(10) );
EXIT WHEN int_cnt = 3 OR int_n IS NULL OR int_n = 0;
-- get the line
str_line := SUBSTR( str_stack, 1, int_n - 1 );
-- remove the line from the stack str
str_stack := substr( str_stack, int_n + 1 );
IF NOT found_stack
THEN
IF str_line like '%handle%number%name%'
THEN
found_stack := TRUE;
END IF;
ELSE
int_cnt := int_cnt + 1;
-- cnt = 1 is ME
-- cnt = 2 is MY Caller
-- cnt = 3 is Their Caller
IF int_cnt = 1
THEN
str_line := SUBSTR( str_line, 22 );
dbms_output.put_line('->' || str_line);
IF str_line LIKE 'pr%'
THEN
int_n := LENGTH('procedure ');
ELSIF str_line LIKE 'fun%'
THEN
int_n := LENGTH('function ');
ELSIF str_line LIKE 'package body%'
THEN
int_n := LENGTH('package body ');
ELSIF str_line LIKE 'pack%'
THEN
int_n := LENGTH('package ');
ELSIF str_line LIKE 'anonymous%'
THEN
int_n := LENGTH('anonymous block ');
ELSE
int_n := null;
END IF;
IF int_n IS NOT NULL
THEN
str_type := LTRIM(RTRIM(UPPER(SUBSTR( str_line, 1, int_n - 1 ))));
ELSE
str_type := 'TRIGGER';
END IF;
str_line := SUBSTR( str_line, NVL(int_n,1) );
int_n := INSTR( str_line, '.' );
str_owner := LTRIM(RTRIM(SUBSTR( str_line, 1, int_n - 1 )));
str_name := LTRIM(RTRIM(SUBSTR( str_line, int_n + 1 )));
END IF;
END IF;
END LOOP;
IF UPPER(p_type) = 'NAME'
THEN
RETURN str_name;
ELSIF UPPER(p_type) = 'SCHEMA.NAME'
OR UPPER(p_type) = 'OWNER.NAME'
THEN
RETURN str_owner || '.' || str_name;
ELSIF UPPER(p_type) = 'TYPE'
THEN
RETURN str_type;
ELSE
RETURN str_owner;
END IF;
END SELF_EXAM;
Maybe you are looking for
-
I want to create a personal hotspot on my Iphone 4. How do I do that?
I want to create a personal hotspot on my Iphone 4. How do I do that? <Discussion moved from Windows Mobile to iPhone 4 for more expsoure.> Message was edited by: Verizon Moderator
-
Is there a way to make two different text fields be "either or" like a "yes no" check box?
I'm have Acrobat 9 Pro on a Mac running Yosemite. I have two text fields that each are formatted to have a number entered, but the user chooses which to fill out - either "number of weeks" OR "number of months" (two separate text fields). I don't wan
-
Reading the drop down value in interactive adobe forms in WDJ
Hi, I have a scenario like this: Drop down menu with values being populated from model . when i select the value from drop down and update the backend with that value, it is not done. It always takes the same value ( first one in the drop down list)
-
Post Author: mike7510uk CA Forum: Formula i have a report where i have the days of the month along the top. I use this formula to get the day number ... int(day(DateAdd ("D",0,cdate({Command_1.startdate} )))) ... where the 0 is incremented along the
-
Flash CS3 won't launch after installation
Any Ideas I've just installed CS3 Web standard on 19 PC's ( Win XP SP2 2 GB RAM) but for some reason Flash won't launch on some of these computers. When you try and launch Flash you get as far initializing fonts and then closes down. It's quiet stran