12.1.3 extension XSLT editor Query-database mapping function

Hello

, We are trying to move from 11.1.1.7 to 12.1.3 JDeveloper. We have developed a number of xsl maps in 11.1.1.7 using the function oraext:query - database Oracle extension (where the namespace oraext is xmlns:oraext ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" "). This works in JDeveloper 11.1.1.7 when the test of the card where the call to the map looks like this:

< xsl: value-of select = "oraext:query - database (concat (& quot; Select fvalue GetMapCodeList ("param1", "param2", "param3") of double, quot;), false (), false (), & quot;jdbc:oracle:thin:dbuser/dbpassword@dbhost:1521:dbservicename & quot;) "/ >"

In the statement select above is "select GetMapCodeList" which is a function defined in the database which takes 3 parameters. This works very well for us in 11.1.1.7. We are new to 12.1.3 and we get an error test map XSLT in JDeveloper. The error is

file:/[file path] / [file name] .xsl: XML-22044: function (error) Extension error: Error invoking 'queryDatabase':'java.lang.NoClassDefFoundError: oracle/jdbc/OracleConnection '.

It seems that it cannot find the ojdbc6.jar file, but I don't see where that should be added.

Edit:

OK, I realized that the extension functions XPath of Oracle do not appear in my XSLT Map Editor component palette. I also see that when I change the XPath of the oraext:query - database is highlighted by JDev as being invalid. I think my problem is with the extension being not loaded XPath functions.

Thanks in advance.

Steve

OK, after working with the support of the Oracle, the answer is that the ojdbc6.jar did indeed need to be added to the configuration of JDeveloper 12.1.3. To do this the following line was added at the end of the jdev.conf file:

AddVMOption - Xbootclasspath/r:... /... /.. /oracle_common/modules/Oracle.jdbc_12.1.0/ojdbc6.jar

The jdev.conf file is located in your Oracle_Home\jdeveloper\jdev\bin directory. Don't forget to adjust the relative path to match your environment. In addition, please note that the only spaces in the AddVMOption line are a space immediately after "AddVMOption".

Another concern in this thread that the functions of data base in the XPath Group advanced components from the component Palette was missing. The groups Advanced general XPath XPath and XSLT components model will appear only in the component Palette if the application is a SOA application.

A score more. I don't know if Oracle sees this as a bug and the ojdbc6.jar to be in the classpath without the user set it up like that in the jdev.conf. If it's a bug, and then if all goes well it will be resolved in a future release, and this configuration will be necessary.

Tags: Java

Similar Questions

  • Problem using the command oraext:query-database() in the xslt file

    Hello

    I ask a function through the query command - database () in a certain xslt in a BPEL process as below:

    < name of xsl: variable = "Company" >

    < xsl: value - of select = "string ('CORPORATION')" / >

    < / xsl: variable >

    < name of xsl: variable = "CustAccIdFrmDB" >

    < xsl: value-of select ='orext:query - database (concat ("select xx_egytrans_integration.get_xid(",$getCustAccID,",",$Corporation,") from the dual"), false (), false (), string("jdbc/otmdatasource")) "/ >"

    < / xsl: variable >

    But, after the deployment of the BPEL process and when running it, I get the error at run time.

    Here is the error,

    " < bpelFault > < faultType > 0 < / faultType > < subLanguageExecutionFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < a name ="summary"part > < summary > XPath expression cannot run." An error occurs during the processing of the XPath expression; the term is ora: OutputVariable.OutputParameters). the XPath expression cannot run; the reason was: javax.xml.transform.TransformerException: XML-22900: (Fatal Error) an internal error condition has occurred. Check the detailed origin described in the text of the exception message and verify that the XPath query is correct. < Summary / > < / part > < part name = "code" > < code > XPathExecutionError < / code > < / piece > < / subLanguageExecutionFault > < / bpelFault >


    Could if it you please let me know the probable reason for the error? Please help as soon as possible.


    Thank you

    Imane

    Hello

    The problem is now solved by adding an alias for the columns like below:

    Select xx_egytrans_integration.get_xid (21468, 'CORPORATION') result of double;

    Now, it could be used in xsl.

    Thank you

    Imane.

  • Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

    Hello!
    I m facing a problem with the help of oraext: query-database.

    In my transformation im try the following (Simplified):
    <xsl:template match="*">
      <xsl:variable sqlQuery="select ....."/>
      <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    {code}
    
    This always results in +some+ +other+ +val+ !!
    I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.
    
    {code}
    <xsl:template match="*">
      <xsl:variable sqlQuery=select ....."/>
      <xsl:variable name="storeSec">
        <ROWSET>
         <ROW num="1">
           <STORE_PART_SECTION>A100</STORE_PART_SECTION>
         </ROW>
         <ROW num="2">
           <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
         </ROW>
        </ROWSET>
      </xsl:variable>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    How to get the correct value when you use oraext:query - database?

    How should you exit? Several item ID with each having a value of the result set?
    If Yes, then you can try following:

     
                        
                            
                        
                             
                                  
                             
                        
                            
    
  • Is it possible to use the AND condition in oraext:query-database()

    Hello world.

    I think the answer to my question is no because it seems straight forward if it was possible, but I failed to do so.

    I tried:

    oraext:query - database (concat ('select create_ts the menu where order_num = ', substring($ticket,10,15)', and where table_num =', substring ($ticket, 20, 5)), false (), false (),'jdbc:oracle:thin:sysdba / oracle1 @localhost: 21/SOAINFRA ')

    Anyone confirm that with the help of State cannot be used oraext:query-database()?

    Thank you.

    I just saw my error. I have two WHERE clauses.

  • Error running query database

    I have a web application written in CF8 with Oracle 11 g as primary server. This application has been used very often for over 6 years. Currently, I'm moving to CF10 and you only a small code change CF. When I ran the new application in my test server, everything seems to work fine except when it calls an Oracle Package. This action generates an error: error running database query the strange thing is all work before and after the call to the procedure, I tested using cfabort this Package Oracle still works in the production server (CF8), but not when it is called by CF10. My question is: are there changes for CF10 when you call a procedure? or is there any fix that I don't know? The code is as follows: SELECT box trim (to_char (SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' another '2' end HAVE double TodaysDate

    SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE Trim (create_date) =

    SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE (create_date) = CF Trim codes to stop the process and email admin

    Error performing query of database appears when it hit to run cfstoredproc. The codes are exactly the same that in CF8, this model has not been changed. Exceptions 14:03:53.053 - database Exception: in /home/space/users/www/GL/glproc.cfm: line 93 runtime error query database.

    I found the answer! In case someone out there also face the same question. In Administrator, Datasource Advance, go down and find: authorized SQL where there are checkboxes for Select, Update, Delete, Insert and one of them is to store the process checkbox. My box was not checked that's why ColdFusion is unable to call a stored procedure. I checked and recorded and I'm good to go.

  • DRG-51030: extension of generic query after the use of @.

    The following query returns a single line:

    Select * from userinterface where contains (searchtx, "Smith in name" and %gmx.de within the email) > 0;
    Returns a line.



    If I add (= > %@gmx.de within the email) the following error occurs:

    Select * from userinterface where contains (searchtx, "Smith in name" and %@gmx.de within the email) > 0;
    Returns
    ERROR on line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle text error:
    DRG-51030: extension of generic query resulted in terms too


    @ Special character is causing the expansion of generic query? "@gmx.de" is more restictive compared to the 'gmx.de"(Oracle 10.2.0.4)


    Select * from userinterface where contains (searchtx, "Smith in name" and % within the email) > 0;
    also works and returns three rows.

    '@' is a character by default, which means that your search for "%@gmx" will turn into a search for the phrase "% gmx.

    Because '%' on its own matches each word in the index, you get this error.

    Not part of your question, but in general it's a bad idea to use wildcards, unless you use the option SUBSTRING_INDEX. With a wildcard to start Oracle text may not use the index on the table "list of words" $I and is forced to do a full table scan to find the corresponding tokens.

  • Difference between "query database" than "DBAdapter.

    I want to know the advantages and disadvantages of the use of "query database" than "DBAdapter.

    my query is ' select * from the table t1, table t2 where ti .col1 = t2.col2.

    Thanks in advance

    DBAdapter takes care of mapping the relational structure in XML format using toplink, there is more overhead in doing this. You must perform additional configuration if you want the infrastructure of database adapters using the application servers-data sources otherwise it uses is the own connection pool.

    query-database, I expect to be faster and use application servers data sources directly. If you select several columns in the database then I think you would need to perform a few additional steps before you are able to use the returned content because it won't return XML.

  • Using the function 'query-database' database

    Hello

    I try to use the database function "query-database.

    It works fine when I give a value hardcoded in the where condition. But when I try to pass an xpath expression to the condition where it is not.
    I have a flat file that contains two fields (firstname and lastname). I need read this file and write to another file with an extra field saying. roll_num I have a database table that contains three fields (firstname, lastname, and roll_num).

    In the funtion of database query, I spent

    "Select roll_num from the stud_details where firstname = / imp1:Root - element / imp1:Person / imp1:FIRSTNAME'.

    as the value for the parameter sqlquery. This gives nothing in the output.

    But when I hard code the firstname value it gives the desired result.
    "Select roll_num from the stud_details where firstname = robert'-it works very well."

    Please suggest if my use is wrong.

    Thank you
    RV

    It would be good if you could post your code but generally if you and where the condition to be dynamic, you need to use the concat command that your select statement is looking for roll_num where firstname = /imp1:Root - element / imp1:Person / imp1:FIRSTNAME instead of the value of the element.

    ORCL:query - database (concat ("select roll_num from the stud_details where firstname =" ", / imp1:Root - element / imp1:Person / imp1:FIRSTNAME,"'""), false (), false (), "jdbc/Db")

    It gets tricky with varchar2 you need to put quotes. I tried to show in the example above.

    see you soon
    James

  • query not given function function index in oracle 11g

    I have a query that uses function based indexes when run in oracle 9i, but when I run the same query
    without any change, it does not consider the index. This is the query:

    SELECT distinct patient_role.domain_key, patient_role.patient_role_key,
    patient_role.emergency_contact_name,
    patient_role.emergency_contact_phone, patient_role.emergency_contact_note,
    patient_role.emergency_contact_relation_id,
    patient_role.financial_class_desc_id, no_known_allergies, patient_role. CREATED_BY,
    patient_role. CREATED_TIMESTAMP,
    patient_role. CREATED_TIMESTAMP_TZ, patient_role. UPDATED_BY, patient_role. UPDATED_TIMESTAMP,
    patient_role. UPDATED_TIMESTAMP_TZ,
    patient_role.discontinued_date
    MEETING, patient_role
    WHERE patient_role.patient_role_key = encounter.patient_role_key
    AND SUPERIOR (TRIM (main: encounter.account_number SYS_B_0)) = UPPER (TRIM (main: SYS_B_1 of))
    ((: SYS_B_2))
    AND patient_role.discontinued_date IS null
    AND encounter.discontinued_date IS null;

    Definition of the index:

    CREATE INDEX "user1". "' IX_TRIM_ACCOUNT_NUMBER ' ON 'user1 '. MEETING"(AT THE TOP (TRIM (LEADING))
    ('0' TO 'ACCOUNT_NUMBER')), 'PATIENT_ROLE_KEY', 'DOMAIN_KEY', 'DISCONTINUED_DATE')
    PCTFREE, INITRANS 10 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    DEFAULT USER_TABLES)
    TABLESPACE "user1".

    Database: Oracle 11g (11.2.0.3)
    O / s: 64-bit Linux (the query does not consider the index even on the windows operating system)

    Any suggestions?

    -Onkar

    Published by: onkar.nath on July 2, 2012 15:32

    Onkar,

    I don't appreciate posting you this issue in several forums at the same time.
    If I know you also posted this on Asktom, I wouldn't even bother.
    As for your "problem":
    First of all: some kind cursor_sharing MUST have been implemented. Oracle is a predictable system, not a fruitmachine.
    Anyway, your statement that '0' is replaced by a variable binding is simply false. If you really believe this isn't fake, SUBMIT an SR.

    But your real problem isn't Oracle: it is your 'application', which is a mess anyway. Allowing for alphanumeric numbers is a very bad idea.
    Now, you already put workaround on workaround on workaround on workaround.
    Question is this: it is terminal, and you must either to kill him or to replace it.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • What is the best way to optimize a SQL query: call a function or doing a join?

    Hi, I want to know what is the best way to optimize a SQL query, call a function inside the SELECT statement, or make a simple join?

    It depends on.  Could be a.  Could be the other.  Could be no difference.  You would need to compare with your tables in your environment with your settings.

    If you put a gun to my head, I was given no other information and required that I answered the question, I would tend to wait that the join would be more effective.  In general, if you can do something in pure SQL, it will be more effective than if you call PL/SQL.

    Justin

  • Database Validation function Question

    In the Page 37 of the APEX_listener_v1.pdf, it is mentioned that we can create a function "check_valid_procedure".

    I guess it's similar to the version of the EPG, wwv_flow_epg_include_mod_local.

    My problem is that the admin screen will not accept it.

    Request could not be processed due to the error:
    Sea 14 Jul 09:58:48 EDT 2010
    Database Validation function CHECK_VALID_PROCEDURE is not valid.


    Should what I use to create this function?

    You will need to prepend the proc with the diagram unless you've granted to public and have a public syn your help.
    -kris

  • How to program querying database adapter?

    Hello

    I have a database adapter that queries a table and intiiates a transaction in BPEL. I have a requirement as I need survey for reporting only on time (as of 21:00 to 12:00 every day not 24 x 7) Y at - it an option or a way to achieve SOA Suite 11.1.1.6?

    Thank you

    Well if not, you can create the schedule jobs according to your requirement in the database and put the value not read from the db table that is being queried by your process.

    or

    You can use the Scheduler as quartz etc.

    Kind regards

    Anshul

  • List of extensions to the query

    Hello

    Is there a mechanism to query the list of saved to a vcenter server extensions programmatically?

    Thank you

    Liz

    See attached a sample java program that includes code to list all extensions vCenter.

  • Cannot install the behavior extension for server and database for Dreamweaver CC 2014

    Hello

    I try to install the server behavior & extension of the database in my CC of Dreamweaver 2014 of the trial.  I've added it to https://creative.adobe.com/addons/patches/2176#.VGJ7TvnF-DA and it shows I have, but it has not yet appear in Dreamweaver.  I followed the steps outlined in the troubleshooting list:

    Internet works

    The application is compatible with the addon

    The application of CC desktop is installed and running

    Synchronization of files is enabled

    After that, I tried to install it through the Adobe Extension Manager.  As soon as I loaded up the Manager has crashed.  Whenever I open it crashes immediately.  Here is the error report:

    Signature of the problem:

    Problem event name: APPCRASH

    Name of the application: Adobe Extension Manager CC.exe

    Application version: 7.3.2.0

    Application timestamp: 5423f0ba

    Fault Module name: MSVCR100.dll

    Fault Module Version: 10.0.40219.325

    Timestamp of Module error: 4df2be1e

    Exception code: 40000015

    Exception offset: 0008d6fd

    OS version: 6.3.9600.2.0.0.256.4

    Locale ID: 1033

    Additional information 1: 9b2b

    More information 2: 9b2bdea32afaae877182c5486bcda189

    3 more information: f7dd

    Additional information 4: f7dd51dc76fb06d86332126480a431b7

    I then removed my addons, then deleted and reinstalled the extensions Manager.  As soon as I tried to open the Manager it still crashes.

    Any ideas?

    Running Windows 8.1

    Thank you

    -James

    Try the following.

    1. Uninstall the current extension.
    2. Install the DMXZone extensions Manager
    3. Using the extension Manager DMXZone, install the connections/data server behaviors panel
  • Error in querying database using OSB

    Hello

    I'm querying the database. After the vote, I call you a split join which inturn has some service SOA calls. Everything worked fine until recently I observed that the polling stops after a few attempts and I get an error like:

    # < 6 March 2013 14:49:03 this > < error > < BPEL Kernel > < edadapp01 > < osb_server1 > < ExecuteThread [ASSET]: '20' to queue: '(self-adjusting) weblogic.kernel.Default' > < < anonymous > > <>< 84653bbbef33069c:-6fd16400:13d3f9fe982: - 8000-0000000000000257 > < 1362577743258 > < BEA-2032000 > < error during the invocation of 'Splitjoin/PROJ/SplitJoin' for the event "JobEvent". ': Use button [56] ' type 'com.bea.bpel.interpreter.internal.scheduler.JobEvent '.
    java.lang.IllegalStateException: 13 Thread already has a job in the job queue.
    at com.bea.bpel.services.state.InMemoryJobQueue.offer(InMemoryJobQueue.java:113)
    at com.bea.bpel.interpreter.internal.concurrent.BlockedListener.queueBlockedJob(BlockedListener.java:59)
    to com.bea.bpel.interpreter.internal.concurrent.BlockedListener. < init > (BlockedListener.java:50)
    to com.bea.bpel.interpreter.internal.concurrent.BlockedListener. < init > (BlockedListener.java:39)
    at com.bea.bpel.interpreter.internal.concurrent.LockTransactionImpl.lock(LockTransactionImpl.java:91)
    at com.bea.bpel.interpreter.internal.program.StackFrameImpl.lockObject(StackFrameImpl.java:275)
    at com.bea.bpel.interpreter.internal.program.StackFrameImpl.findVariable(StackFrameImpl.java:184)
    at com.bea.bpel.interpreter.internal.instruction.assign.VariableDataResolver.getExclusiveKeys(VariableDataResolver.java:35)
    at com.bea.bpel.interpreter.internal.instruction.assign.AssignExtensionOperation.getExclusiveKeys(AssignExtensionOperation.java:38)
    at com.bea.bpel.interpreter.internal.instruction.concurrent.ExclusiveDataHandler.lock(ExclusiveDataHandler.java:47)
    at com.bea.bpel.interpreter.internal.instruction.concurrent.LockInstruction.enter(LockInstruction.java:43)
    at com.bea.bpel.interpreter.internal.process.ProcessNodeImpl.enter(ProcessNodeImpl.java:181)
    at com.bea.bpel.interpreter.internal.Interpreter.interpret(Interpreter.java:155)
    at com.bea.bpel.interpreter.internal.Interpreter.invoke(Interpreter.java:87)
    at com.bea.bpel.internal.dispatcher.EngineManagerImpl.dispatch(EngineManagerImpl.java:66)
    at com.bea.bpel.internal.dispatcher.EngineManagerImpl.dispatch(EngineManagerImpl.java:44)
    at com.bea.bpel.internal.dispatcher.SchedulerServiceContextImpl.fireEventJobScheduled(SchedulerServiceContextImpl.java:87)
    at com.bea.bpel.internal.dispatcher.SchedulerServiceContextImpl.fireEvent(SchedulerServiceContextImpl.java:68)
    to com.bea.alsb.flow.scheduler.SchedulerServiceImpl$ 1.run(SchedulerServiceImpl.java:32)
    at weblogic.work.ContextWrap.run(ContextWrap.java:41)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)


    Now, the error repeats only inside the error 'event' gets changed sometimes, but except that everything is the same. Thus, database is not get questioned.

    It works after after you remove and redeploy the code on the server, but after 3-4 rounds of the same question.

    Anyone has an idea about this, please help.


    Thanks in advance,
    Tarun

    Published by: Tarun Rousseau on March 7, 2013 01:29

    This is a Bug related to the updated global vars in different branches of a join split catch block.
    Take a look at BugID:13627312 in Metalink and request the hotfix.

    Kind regards
    Fabio Douek.

Maybe you are looking for

  • Satellite C battery only if it is fully discharged

    I'm fighting with my battery charging! It will load only when the laptop it has completely discharged.The laptop shows that it is plugged into the charger but not charging. The battery last for a good time when the power is off.The small LED on the f

  • Windows installation disc

    Hello I have a hp g61, but by accident I deleyed my files so rang the help line and bought the hp recovery dics but when I put in my laptop, nothing happens I can get this work help

  • Repair (printhead to replace the Assembly)

    Printer - HP 6180 c Problem - will not print black. Print head needs. Another problem - unit was shipped to BEST BUY in Atlanta. HP will not sell a new Assembly seat to BEST BUY. HP will not provide me with a list of repair facilities who can repair

  • Merge and merge/easels with great graphics

    I do (boxes) bridges for an event using Avery Tent cards 5302. The design I have is a background on any map and a white rectangle, top, with the names inside the rectangle, but I can't get mail merge to work properly with this design. If I first ask

  • experienced problems for a HP Deskjet 1000 c printer to print using windows 7 64 bit

    One known problems get a HP Deskjet 1000 c to print using windows 7 64 bit. I have updated the drivers for parallel port and a printer. the computer recognizes the printer is there, but no documents will print.