Oracle Portal, OWA_UTIL.redirect_url and Max Length URL
I have a question relating to the max length of a URL that can be used within Internet Explorer 5.5 and Oracle Portal (3.0.9.8.5) On IAS 9i version 1.0.2.2.2
My portal page submits to a procedure that carries out some basic DML and then uses the OWA_UTIL.redirect_url api to go to a different page.
When I am in the DML procedure, I build up several string "name/pair" values that concatenate onto my redirect url.
i.e.
str1 := 'p_test=1&p_test=2&p_test=3&p_test=4';
str2 := '&p_loc=USA&p_loc=GB&p_loc=NZ';
url := 'http://my_procedure?' || str1 || str2;
OWA_UTIL.redirect_url (url);
The problem I am having is that in some cases the length of the URL that i produce exceeds the max length permitted by Microsoft I.E 5.5 (2048 characters) and hence my redirect fails.
I understand that if i were to submit the name/pair values through the header then I could have as many as necessary and have read somewhere that it is possible while using the OWA_UTIL.redirect_url api to write values into the header and then close it.
If this is possible could someone please explain how giving an example. If not is there a workaround to this problem?
Regards
Duncan
I believe that this API actually writes a redirect request into
the header of the HTTP request. For this redirect to work, the
body of the HTTP request needs to be empty (i.e. you can't have
any HTML being sent in the request).
The OWA_UTIL packages actually provide some leeway here because
it usually reorganizes requests. That gives you some
flexibility with what you can include, but I believe that you're
running into a limitation imposed by the HTTP specifications.
Similar Messages
-
Hello,
I am upgrading EBS 11i to 12i, Discoverer 4 to 11. After completing ebs installation and upgrade successfully, I am now working on the Oracle Fusion piece of the upgrade.
I have installed
1. JDK
2. Repository Creation Utility - RCU (schema)
3. Weblogic - WLS 10.3.6
4. Oracle Fusion - Discoverer 11g Release 1 Patchset 1 11.1.1.2.0 PFRD
5. Oracle Portal, Forms, Reports and Discoverer 11g Patchset 11.1.1.6.0 - Patchset 13517084
6. Executed config.sh and it failed with but continued.
During the Configuration of Oracle Fusion with config.sh there was failure at with "fails at creating data sources" and accidentally proceeded and all seem to go well until after shutting down the servers when Weblogic Managed Server is unable to start.
The start log indicated: "weblogic.store.PersistentStoreFatalException: [Store:280105]The persistent file store "_WLS_WLS_DISCO" cannot open file _WLS_WLS_DISCO000000.DAT." and I have been unable to find a solution for this error?
See log file error at https://dl.dropboxusercontent.com/u/15497130/oracle/ebs11/startManagedWebLogic.sh_nohup.out
If re-installation is my only option, then what are the steps to uninstall, and which components do I have to uninstall given that I had upgraded all the schemas involved?
MathiasHey,
You can always change the JDBC datasources in the Weblogic admin console . but have you recorded what is the specific error you got during the datasources creation .
I prefer...create a new user , give him sysdba privillages . Start RCU and create the DEV_DISCOVERER , DEV_DISCOVERER_PS schemas (prefix is your choice)
The Admin server will start . so go to admin console .
click services -> Data Sources
Check the data sources you have . edit each datasource and update the connection pool information .
after this you can start the Managed server WLS_DISCO
i believe this will solve this .........
if you still get issue again . you can try the link Using the WebLogic Persistent Store
Thanks
Naga -
Install and config issues with Oracle Portal, Forms, Reports and Discoverer
For a while now I've been struggling with migrating a testing database to a newer version.
And right now I'm pretty much stuck at trying to configure Oracle Portal, Forms Reports and Discoverer
What I've got:
Windows server 2008 R2 64bit
Oracle 11g database
Java 6u27 64bit
JDK 1.6 64bit (using this after 1.7 ended up throwing out bugs while trying to start a weblogic server)
JDK 1.7 64bit
Weblogic 10.3.5 (or so i think - I've installed from the wls1035_generic.jar from the oracle website)
PFRD 11.1.1.2 with 11.1.1.3 installed over it, installed without config
and a hanging up configuration
Basically I've been trying to install PFRD (only forms, reports and enterprise manager from it actually) but it kept failing once it got to the configuration stage, so I installed without config, applied 11.1.1.3 and now trying to run the config manually with the good old \bin\config.bat
Result - the config froze for approx.18 hours then failed
There isn't much useful info I could deduct from the logs, mostly just says one or more configuration parts failed. At one place it mentions trying to set up a domain and starting up an adminserver for it - and apparently that's where it hangs up and finally times out and fails.
I'm a little clueless what to do about it as the logs don't say anything else of use I could understand. Any ideas there?Trying the step by step, the only difference between that and what i do seems to be the file copying (which I can't do - there is no windows\extra\ directory anywhere, the files mentionned seem to already be on their places and either only there, or exactly the same) and clistering
So far the news ain't good - the config process hangs on creating domain ->Step Creating Domain started
It isn't frozen per se - the process doesn't use up any processor time, memory consumption within bounds, it reacts to button clicks and all..it just doesn't do anything concerning the said domain
the last thing the .out file shows:
Creating a new AdminServer Object ...
AdminServer port is 7002
Starting the domain ...
LOADING DLL : E:\OracleDb\Middleware\develtools\install\config\\StartUtil64.dlland in the log:
[2011-09-08T11:57:03.456+02:00] [as] [NOTIFICATION] [] [oracle.as.install.engine] [tid: 14] [ecid: 0000J98U0KsFS8XLxuDCiW1EQ92r000005,0] Setting >valueOf(DOMAIN_PORT) to:7002. Value obtained from:USERit's the same it did last time, when after 18hours it woke up with .out saying:
oracle.as.provisioning.util.ConfigException:
Error while starting the domain.
Cause:
An error occurred while starting the domain.
Action:
See logs for more details.
at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3173)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3033)
at oracle.as.provisioning.engine.WorkFlowExecutor._startAdminServer(WorkFlowExecutor.java:1644)
at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:634)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:390)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.as.provisioning.util.ConfigException:
Error while starting the domain.
Cause:
Starting the Admin_Server timed out.
Action:
See logs for more details.
at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3143)
... 18 more
oracle.as.provisioning.exception.ASProvisioningException
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:685)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:390)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
... 13 more
progress in calculate progress4
progress in calculate progress4
oracle.as.provisioning.exception.ASProvisioningException
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:685)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:390)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
... 13 more
Going to execute executeAfterConfig
java.lang.IllegalStateException: Action:Application Configuration failed with error:Configure Classic Failed.
at oracle.as.install.engine.modules.configuration.client.ConfigAction.fail(ConfigAction.java:227)
at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:129)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
at java.lang.Thread.run(Thread.java:619)
In Config Module Finish Event...and the log continuing with some variable setting notifications and this:
[2011-09-08T08:27:45.272+02:00] [as] [ERROR] [] [oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager] [tid: 14] [ecid: >0000J93lRQOFS8XLxuDCiW1EPpn_000005,0] One or More configurations failed. Exitingthen again more traces and notifications until the end marking config as failed
I'm kinda paranoid about the double backslash in the dll path, but other than that no clue as to why the domain doesn't set up
the other link you mentionned seems to have no relevance yet
does that clear up anything for you though?
..can the lack of SOA suite have anything to do with the problem? -
Errors:Installing Oracle Portal, Forms, Reports and Discoverer on Win7
Someone can help me?
I installed Oracle Portal, Forms, Reports and Discoverer on Win7.
I have install:
jdk 64bit
Oracle db 11g (64bit)
Oracle Weblogic 1033 (wls1033_generic.jar)
Oracle Portal, Forms, Reports and Discoverer (ofm_pfrd_win_11.1.1.2.0_64/ofm_pfrd_win_11.1.1.3.0_64)
Configure Components Screen:I just choose the Oracle Forms/reports Oracle Forms/reports builder Enterprise Manager Oracle Web Cache .
Configure Ports Screen:Auto Port Configuration.
Specify Proxy Details Screen:No
Specify Application OID Screen:NO
But when I configure the "Configuring the Classic Instance" under the "Oracle Classic 11g-Home1". It's always pending in "Creating the domain". No any Error information.
the related log information:
Creating a new AdminServer Object ...
AdminServer port is 7001
Starting the domain ...
LOADING DLL : C:\Oracle\Middleware\as_2\install\config\\StartUtil64.dllSince your weblogic is on version 10.3.3, you can only succesfully configure your fusion middleware when you are on version 11.1.1.3.
So (1) restart the install of fusion middleware 11.1.1.2, (2) choose install type INSTALL ONLY, (3) start installation of fusion middleware 11.1.1.3 and finally (4) configure fusion middleware using AS_ORACLE_HOME\bin\config.bat -
Hi,
I am trying to install Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Linux x86-64.
I have installed weblogic 10.3.5 generic jar file.
When i try to install forms and reports server the configuration step fails while creating weblogic domain.
Please help me installing portal and reports.
Is there any patch i am missing or the weblogic version is incorrect?
Thanks.You cannot configure Fmw 11.1.1.2 against WLS 10.3.5. They are not supported nor compatible.
If you want to use WLS 10.3.5, you need to "install" 11.1.1.2, but do not configure. That is an installation option. After you have successfully installed 11.1.1.2 you will need to patch it to 11.1.1.6. After patching, you then can run the configuration (config.bat).
http://docs.oracle.com/cd/E23943_01/install.1111/e10421/install.htm#CLINS256
Version 11 is far more complex than previous versions. I strongly encourage everyone to review the product documentation before trying to install. You can also refer to the following MyOracleSupport note:
Steps to Maintain Oracle Fusion Middleware 11g Release 1 (11.1.1) (Doc ID 1073776.1) -
Dear All Precious Friends,
I am having problem while installing Oracle Portal Forms Reports and Discoverer 11g on Windows Server 2008 64 bit,
I have already installed Oracle Database 11g Release 2 -------
----Then i configured JAVA Access bridge
--------then installed and configured Required Schema using Repository Creation Utility of same version of Database 11g,
-----------then installed Oracle Business Intelligence 11g version 11.1.1.6.0 which includes Web logic..............I am feeling that i did right at this point...........
..............also feeling comfortable after install Oracle Identity and Access Management 11g ..................
-----------------but don't know how to configure OID to install Oracle Portal Forms Reports and Discoverer 11g...............
Please help my Oracle Friends
Your early help will be highly appreciated.
thanks and regards
HassanYou said, "...+I would like to install Release 2(11.1.1.2.0)+ ...". Be careful. 11.1.1.2.0 is not Release 2. The version for Rel 2 is 11.1.2.0, notice that there is one less "1". Also, there is no way to patch from Release 1 to Release 2.
In EDelivery, this is what you should find if you search on "Oracle Fusion Middleware" for "Microsoft Windows x64 (64-bit)":
First look for this link then drill into it:
Oracle Fusion Middleware 11g Media Pack for Microsoft Windows x64 (64-bit)
In this section you will find the following:
This is the full product installation of FMw 11 Release 2 (Forms & Reports)
Oracle Forms and Reports 11g R2 (11.1.2.0.0) for Microsoft Windows x64 (64-bit) V28761-01
This is the full product installation of FMw 11 Release 1 (includes Portal, Forms, Reports, and Disco)
Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 1 of 4) V18785-01
Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 2 of 4)
Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 3 of 4)
Oracle Portal, Forms, Reports and Discoverer 11g (11.1.1.2.0) for Microsoft Windows x86 (64-bit) (Part 4 of 4)
This is the FMw 11 Release 1 patch set that will bring the above 11.1.1.2.0 installation to 11.1.1.6. This is NOT a full product installation - just a patch
Oracle Portal, Forms, Reports and Discoverer 11g Patch Set 5 (11.1.1.6.0) for Microsoft Windows x86 (64-bit) V29850-01
There are no patch sets for Release 2 as of yet. -
Zero fill and max length VC7 Compile to WebDynpro not working
Hi,
i try to call Customer get list and set the attributes zero fill and max length to the input table form.
But the user has to put in the exact length and zero filled.
Any idea what to do
Thanks
UweHi Uwe,
if I understand your question you need something like an alpha conversion.
You can use a formula, therefore is an textfunction called LPAD(text,len,pad).
You can use it like this:
LPAD(@yourtext, 18, "0")
@yourtext contains the input, the length is 18 and filling values is 0 like a alpha conversion.
Best Regards,
Marcel -
Oracle Portal,Forms,Reports and Discoverer 11G
Good evening
I installed the following products
* Oracle Database(to the 1st computer)
* Repository Creation Utility
* WebLogic Server(to the 2nd computer)
* Oracle Portal,Forms,Reports and Discoverer 11G(to the 2nd computer) – during installation I chose forms and reports
Identity Management and SSO are not installed, why they are used for?
While connecting to the base with the help of Visard I open Oracle Forms Builder by and create a primitive form. Everything is good. All are shown. I press Run Form which is written as Oracle Forms in browser and suggests keeping a clear file. Particularly in applied file!
Print screen of my monitor yo can see: http://www.sql.ru/forum/actualthread.aspx?tid=678852
Thanks for attention.Identity Management and SSO are not installed, why they are used for?IDM and SSO is used for user authentication.
You can search for details about that.
>
While connecting to the base with the help of Visard I open Oracle Forms Builder by and create a primitive form. Everything is good. All are shown. I press Run Form which is written as Oracle Forms in browser and suggests keeping a clear file. Particularly in applied file!
Print screen of my monitor yo can see: http://www.sql.ru/forum/actualthread.aspx?tid=678852
Thanks for attention.the port which you have mentioned is it WLS_FORMS_PORT or any other.
Try running default Forms port WLS_FORMS_PORT that will be 9001
or check for the WLS_FORMS_PORT in the portlist.ini file.
Also are you getting any exception in the Java console.? -
Step by step installation of Oracle Portal, Forms, Reports and Discoverer
Hi all
i m using Oracle Enterprise Linux 5. can any one plz tell me step by step installation of Oracle Portal, Forms, Reports and Discoverer?
i watched some tutorials but didnt find any thing. did i need any pre-installation for Oracle Portal, Forms, Reports and Discoverer on Linux?
Regards
SaqibDear Saqib Alam ,
Hope you are fine, and also you have completed the PORTAL installation successfully.
Can you kindly share me the methods you have went..
can you clearly explain us by this OTN, it will be a great Knowledge Sharing for Apps DBA like us.
1) what are the softwares we have to download for the Portal 11g
2) if possible Step by step installation method.
Thanks in advance,
Abdul Hameed -
Hi, i've got a very simple question, i'm very confused with the recent download of the PDK. The problem is that a lot of articles use in their examples the Java API oracle.portal.provider.v1, but the current version of the portal is v2 and in the jar files pdkjava.jar and ptlshare.jar exists an oracle.portal.provider.v2 package and the oracle.portal.provider.v1 package is almost empty and the v2 package is different from the ancient v1, what i really need to know is:
Its possible to use the v1 package in the new portal release without any addicional work?
Has the v2 package fully replaced the v1 packaged, and if so why the documentation is not updated?
Thanks,
Antonio CruzPDK contains both v1 & v2 and the developer is free to choose
whichever version he is comfortable with.
v1 related jpdk information can be found under
{PDK-EXTRACTED-DIR}/pdk/jpdk
v1 related urlservices information can be found under
{PDK-EXTRACTED-DIR}/pdk/urlservices
v2 related information can be found under
{PDK-EXTRACTED-DIR}/pdk/jpdk/v2. It contains both JPDK and URLServices
in it.
To answer you questions -
You can use v1 package without any additional code.
The sample are available in both v1 and v2. So, naturally there is
no need to change the articles.
-AMJAD. -
Instal Oracle Portal for testing and learning purpose on 2 machines
I have two PCs. One is runing Windows XP, one Linux Fedora Core 4. I'd like to usem them for geting to know Oracle Portal. Linux as Aplication Server, Win as DB server.
I can't seem to find minimum HW requirements for Portal. Linux machine is 256MB RAM, Pentium II 350 MHz. As I said, it doesn't have to run fast. it just has to run for the beggining. Then I can decide whether to use it and think of the real configuration for business purposes.
Please advise.RAM requirement for Infrastructure is 1GB - this included an Oracle 10G database for identity management. RAM requirement for Middle Tier (Portal and Wireless) is an additional 1GB.
Requirements to run both on one host is (according to Oracle) 1.5GB.
I have it all on a single host here (SuSE Linux Enterprise Server 9) with only 1GB ram (It's an Athlon 1.4) so there is some flexibility here. You may get away with the CPU, but I think you need a lot more RAM.
Your athlon Windows Machine could do it all. I have a working 10G Application Server on a 2GHz Pentium M laptop (2 GB RAM). If you don't start it up automatically every time the OS starts then you will have plenty of resources.
Since 10G AS also includes 10G DB then only one machine is all you would need.
Good luck -
Oracle portal text search and bespoke table
We have the oracle portal text searching working okay.
We also have a bespoke table that users are uploading word documents into a blob column.
Is it possible to get oracle portal text searching to search this bespoke table as well. Maybe by creating an index that points at this table or
when a document is uploaded an api call that registers the document in oracle text searching??????The oracle Portal text is created for content that can directly be mapped to items, folders etc on portal. The BLOB column you want to indexed has not been mapped to content uploaded in portal.
You might want to explore crawling using the Ultrasearch table datasource for the same -
Split string into two based on end of word and max length
I have the following procedure, which is passed a comma separated string as it input, and it has to split it into two, and the split has to occur at the end of a word, and the first split part can't be more than 15 in length.
Is there an more efficient way of achieving this? I have a loop in my main code that calls this procedure and in effect a nested loop has been created here.
e.g. Hello, everyone, welcome, to, split, string' would be split into 'Hello' and 'everyone, welcome, to, split, string'
create or replace procedure split_str
(pi_str in varchar2,
po_str1 out nocopy varchar2,
po_str2 out nocopy varchar2) is
i number;
begin
if (len(pi_str) <= 15) then
po_str1 := pi_str;
po_str2 := NULL;
else
i := 1;
loop
exit when len(SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1)) > 15;
po_str1 := SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1);
po_str2 := SUBSTR(pi_str, INSTR(pi_str, ',', 1, i)+2);
i := i+1;
end loop;
end if;
end split_str;You want to find the last space character before the 15th character.
x := INSTR ( SUBSTR ( pi_str, 1, 15) , ' ' , -1)Then the first string is SUBSTR(pi_str,1,x) and the second string is SUBSTR(pi_str,x+1) -
Need xml tags for min and max length and required fields
Hi - the following is the code that I am using to create a schema,register the schema, create a xml table and insert data into the table. notice that I am using the minOccurs and maxOccurs in the schema defenition but when I insert a record into the table with a value larger then the maxOccurs had been set to and I was able to succesful in the insert. Can someone tell me if I am usig the right tags and if not which tags am I supposed to be sing?
EXEC dbms_xmlschema.deleteSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd',dbms_xmlschema.DELETE_CASCADE_FORCE);
declare
doc1 clob:= '
<schema elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
xmlns:hematest="http://www.specialtysystems.com/fraamed/kaylatest.xsd">
<element name =�airspace�>
<complexType>
<sequence>
<element name=�airspace_areas� minOccurs=�0� maxOccurs=�unbounded�>
<complexType>
<sequence>
<element name=�area� minOccurs=�1� maxOccurs=�1�>
<simpleType>
<restriction base="integer">
<minInclusive value="-999999"/>
<maxInclusive value="9999999"/>
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
begin
dbms_xmlschema.registerSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd', doc1);
end;
Drop table kaylatest;
create table kaylatest(
schedules xmltype)
xmltype column schedules
XMLSCHEMA "www.specialtysystems.com/fraamed/kaylatest.xsd"
element "airspace";
insert into kaylatest (schedules) values
(XMLTYPE('
<airspace
xmlns="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.specialtysystems.com/fraamed/kaylatest.xsd
http://www.specialtysystems.com/fraamed/kaylatest.xsd">
<airspace_areas>
<area>99999999999999999999999999</area>
</airspace_areas>
</airspace>Please see the posting guidelines thread...
Posting Guidelines...
BTW also note that the forum has a search capability. -
Installing and Configuring Oracle Portal
http://oraclelabs.com/index.php/2010/08/30/installing-and-configuring-oracle-portal-forms-reports-and-discoverer/
Try running the diag.cmd and see for the log.If u cannot fig out just post the log too.
Maybe you are looking for
-
Logic pro 9 has lost its libraries
Hi There. I've had logic pro 9 for a while. My older Mac broke, so I got a new one and re-installed Logic on it. I opened it up but now it doesn't seem to find any presets as per screenshots below. The same problem occurs when I open e.g. a new "Hip
-
How to execute the output of the below query automatically
Hi All, I want to execute the output of the below query automatically, instead of manually copying it and execute. select 'alter database ['+name+'] set recovery simple' from master.sys.databases where database_id > 4 and state_desc = 'online' Please
-
Java is pure object oriented programing language or not why?
please clear java is pure object oriented programing language or not why?
-
"Will Logic Pro 9 run on a 2007 4GB ram, 320GB hard drive, Intel 2 duo 2ghz mac mini?" I am looking for the cheapest way possible to run Logic Pro 9 and will purchase a second hand mac mini if it will run the software. Thank you!
-
I need help for cloud and ios5
Help me for cloud and ios5