Oracle/wss_username_token_client_policy adding not token in the soap header

Hello

I'll call an external web service (external reference) of bpel in a version of the composite application 11.1.1.7, service I call you requires ws-security usernametoken and is accessible by https, I joined oracle/wss_username_token_client_policy and oracle/log_policy policy so I can see the whole of the SOAP message, (I also did the configuration of basic.credentials and I tried with the oracle.webservices.auth.password and oracle.webservices.auth.username properties too without success). The problem is that the soap request message sent by bpel does not put the username and password in the header, all I can see in the soap header is as follows:

< env:Header > < wsa: to > https://myserver:7000 / GC3Services/IntXmlService/call < / wsa: to > < process of wsa: action > < / wsa: action > < wsa: MessageID > urn: 0CF65DF0F8AD11E38F787D1F1907427F < / wsa: MessageID > < wsa: RelatesTo > urn: 0CF65DF0F8AD11E38F787D1F1907427F < / wsa: RelatesTo > < wsa: ReplyTo > < wsa:Address > http://www.w3.org/2005/08/addressing/anonymous " < / wsa:Address > < ReferenceParameters, such > < instra:tracking.ecid xmlns:instra = ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 11d1def534ea1be0:5514321:146b552a766:-8000-000000000000cb45 < /instra:tracking.ecid > < xmlns:instra = instra:tracking.conversationId ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > urn: 0CF65DF0F8AD11E38F787D1F1907427F < /instra:tracking.conversationId > < instra:tracking.parentComponentInstanceId = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > Reference: 20010 < /instra:tracking.parentComponentInstanceId > < instra:tracking.compositeInstanceCreatedTime = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 2014-06-20T 11: 59:40.808 - 07:00 < /instra:tracking.compositeInstanceCreatedTime > < / ReferenceParameters, such > < / wsa: ReplyTo > < FaultTo > < wsa:Address > http://www.w3.org/2005/08/Addressing/Anonymous < / wsa:Address > < ReferenceParameters, such > < = xmlns:instra instra:tracking.ecid ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 11d1def534ea1be0:5514321:146b552a766:-8000-000000000000cb45 < /instra:tracking.ecid > < xmlns:instra = instra:tracking.conversationId ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > urn: 0CF65DF0F8AD11E38F787D1F1907427F < /instra:tracking.conversationId > < instra:tracking.parentComponentInstanceId = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 ' > Reference: 20010 < /instra:tracking.parentComponentInstanceId > < instra:tracking.compositeInstanceCreatedTime = xmlns:instra ' http://xmlns. Oracle.com/SCA/Tracking/1.0 "> 2014-06-20T 11: 59:40.808 - 07:00 < /instra:tracking.compositeInstanceCreatedTime > < / ReferenceParameters, such > < / FaultTo > < / env:Header > .

I don't know why bpel does not send the user name and password if oracle/wss_username_token_client_policy policy is enabled (I also tried with politics oracle/wss_username_token_over_ssl_client_policy without success).

Thank you

Carlos.

The problem has been the oracle/log_policy policy because it shows not all of the SOAP message, the oracle/log_policy policy hides the security part (which I think is a weird behavior).

Tags: Fusion Middleware

Similar Questions

  • Cannot be getNodeWithProps. AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header.

    Hi all

    Cannot be getNodeWithProps. AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header.

    " < = xmlns:env env:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ ' > < env:Header / > < env:Server env:Body > < env:Fault > < faultcode > < / faultcode > < faultstring > cannot getNodeWithProps.» AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header. "< / faultstring > < details > < DrmServiceException xmlns ="http://drm.webservices.epm.oracle"> < Message xmlns:ns2 ="http://drm.webservices.epm.oracle"xmlns =" "> cannot getNodeWithProps." AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header. "< / Message > < Code xmlns:ns2 ="http://drm.webservices.epm.oracle"xmlns =" "> 0 < / Code > < / DrmServiceException > < / details > < / env:Fault > < / env:Body > < / env:Envelope > "

    clues?

    Thank you

    Mady

    Hi Mady,

    Have you run a test of the DRM of this URL service section? Part of the SOAP message that must be sent to the web service DRM when calling the AppParameters is in the header of the SOAP message. This is the example that gives the URL:


    http://DRM.WebServices.EPM.Oracle">
    http://DRM.WebServices.EPM.Oracle ">http://localhost:5240 / Oracle/Drm/APIAdapter "
    http://DRM.WebServices.EPM.Oracle "> ProductVersion = 11.1.2 CultureName = US, TimeZoneOffset =-360"

    The error is just saying that the section of AppParamters doesn't seem to be there in the SOAP message that was received. How you call the web service DRM method that returns this error? It seems just that, however, it is called the AppParameters is missing in the SOAP message is sent to.

    Do you need some kind of common authentication method setting upward for Weblogic and Shared Services, but not necessarily OID. I mentioned a possibility without using an external LDAP directory here on a case where you set up a development environment Re: configuration of the DRM web service API

    Concerning

    Craig

  • Add the soap header for the data to the web service control

    Hello

    I use jdeveloper 11.1.2.4, I have to call soap webservice jet data control, what I I create the control of data using WSDL, but when run the SOAP header does not appear in call xml, so I create java code extends SOAPProvider and supplier of the set to the data control to the custom class as below:

    public class CustomSOAProvider extends SOAPProvider {
        public CustomSOAProvider() {
            super();
        }
    
    
        public void handleRequest(SOAPMessage soapMessage) {
            super.handleRequest(soapMessage);
        }
    
        public void handleResponse(SOAPMessage soapMessage) throws AdapterException {
            super.handleResponse(soapMessage);
        }
    }
    

    I need to add the header shot

       <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <wsse:UsernameToken wsu:Id="UsernameToken-XXXX" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsse:Username>XXXX</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
       </soap:Header>
    

    Any suggestion

    Hani,

    Please check out the blog of Frank will give you the details on the handling of the https://blogs.oracle.com/jdevotnharvest/entry/how_to_access_the_ws_soap_message_using_ws_dc SOAP header

    K

  • Add the soap header in the salt

    Hello world!

    I want to send a soap (a UUID) header using salt, and honestly, I have not found a detailed explanation or an example on how to do this.

    The only thing I know to date is:

    -Add in the file '.wsdf': < Property name = "mapsoapheader" value = "true" / >

    -And then somehow using "TA_WS_SOAP_HEADER" (previously included by wssoapflds.h) I'll get what I need.

    So I'm in the right direction to solve my problem?

    If so, how exactly should I set TA_WS_SOAP_HEADER in my C code?

    I don't know if you need more information, ask me and I will answer you as soon as possible.

    Thanks in advance,
    Daniel.

    If want to use the soap header, the data type must be FML32.
    SALT will add a TA_WS_SOAP_HEADER field type for the user FML32 buffer.

    The only feature in the SAVORY version is greater than 12 c Release 1

  • Custom in the SOAP header values

    Hi all
    I use OSB to do an HTTP post to a URL. I want to add SOAP headers custom in my message that I send.
    The SOAP header looks like this. Is it possible to insert these items before making the post? I tried to assign the value to the variable of routing header, legends of service but that can help force. I couldn't get a lot of information from the documents either. Is this possible with OSB?

    < soapenv:Header >
    < ocp:DeliveryInformation xmlns:ocp = "http://www.example.com/ocp" >
    < ocp:DocumentType > COSTCOLLECTION < / ocp:DocumentType >
    < ocp:TrackingIdentifier indicator 'messageId' = > 4741E9E0E6CB2FFCE10000000ACC033E < / ocp:TrackingIdentifier >
    < ocp:ReceiverIdentifier identifierType = "DUNSNumber" > 200103377 < / ocp:ReceiverIdentifier >
    < ocp:SenderIdentifier = "DUNSNumber" > 999999999 identifierType < / ocp:SenderIdentifier >
    < / ocp:DeliveryInformation >
    < / soapenv:Header >

    Thanks in advance.

    It is certainly possible and addition of xml fragment at $header is the right way to do it. I think you're on the right track. Actually, what is your problem? What you get on business? Don't forget that you can always turn to see the data via message tracking services.

  • Oracle Forms URL not accessible outside the server

    Dear all,

    I am facing problems of access to the URL of Forms under Oracle Forms 11 g when you access from the server.

    Intended to test, I created a new Oracle Forms on a VMWare Server environment.

    Details on my environment

    Windows 2008 R2 64-bit Server

    Oracle Web Logic Server 11g R1 64-bit

    Oracle 11 g R2 64-bit forms and reports

    Oracle Database 11 g R2 64 bit

    Virtual machine network connection works fine. I am able to Remote Desktop, sqlplus and access the Admin of WebLogic Console (port 7002) from my local system.

    But when connecting to the URL of the form it does not connect. It gives me the following error. Forms URL works fine when accessing the server.

    It seems you're connected to the Internet, but you might want to try to reconnect to the Internet.


    By using the following URL format to access the Forms http://formsserver:7007/forms/frmservlet? config = < appname >


    Please let me know if anyone has the solution.

    Thank you

    Mohamed Yusuf Salih

    Be careful when you make changes.  If you are not familiar with the operation of the listeners, you can easily make a problem worse.  Assuming that you have installed using the "Deployment" installation option, the default non - ssl ports must be as follows:

    OSH - 8888

    Server administration WLS - 7001

    WLS_FORM - 9001

    WLS_REPORTS - 9002

    Once configured correctly, calling the forms or reports occurs through the same port of OSH.  Thus, for example:

    http://server:8888/forms/frmservlet ...

    http://server:8888/reports/rwservlet ...

  • Oracle XE is not running on the CentOS machine

    Hello

    I installed Oracle-XE on a CentOS machine a few months back and it was running fine since then, however for the last 2 days he does not work after I rebooted the machine.
    When I checked the status of /etc/init.d/oracle-xe output has been
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 21-AUG-2012 12:32:42
    
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                21-AUG-2012 12:32:35
    Uptime                    0 days 0 hr. 0 min. 7 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File         /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcrf.open-ims.test)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I am not able to connect any user with sql * more the command window, it just gives
     conn techm
    Enter password: 
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Here are my tnsnames.ora and listener.ora

    tnsnames.ora
    # tnsnames.ora Network Configuration File:
    
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = pcrf.open-ims.test)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
        )
      )
    
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        )
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
        )
      )
    Listener.ora
    # listener.ora Network Configuration File:
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
          (PROGRAM = extproc)
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
          (ADDRESS = (PROTOCOL = TCP)(HOST = pcrf.open-ims.test)(PORT = 1521))
        )
      )
    
    DEFAULT_SERVICE_LISTENER = (XE)
    Published by: Prost on August 21, 2012 12:18 AM
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda9             9.7G  9.7G     0 100% / 
    

    Well?
    You have free space to other places, but your root partition is full. 9.7 G is not a lot of space for such a place if you do not properly install the other parts of the file system.
    I don't know where this is, but why you get on sites like + / usr1 + instead of + / usr +? It seems that something was not quite there...

    -Udo

  • Oracle Home is not valid on the TOAD

    Jin

    I installed Oracle Database 11 g (64-bit) on my computer of Windows Server 2008 R2 64-bit (Machine A).
    On my PC (Machine B) ' TOAD for Oracle Version 8.6 "has been installed. I could easily connect my database using the
    This TOAD. However after installing the TOAD 8.6 (or higher version 10) v. on my Machine (database server).
    TOAD gave the message that the * 'Oracle Home is not valid' * when I tried to connect the database.

    I couldn't have managed to fix this message, and for this reason, I could not connect my database locally my database server (Machine A)
    using TOAD 8.6 or v.10 v.

    Y at - it one thing miss me about TOAD or ORACLE?

    As already said TOAD is not a product of Oracle. See the system requirements for your version of TOAD (or ask Quest) that they already support 11 GR 2 in general and in particular the 64-bit version.
    GR 11, 2 on Windows was released a few days ago, I guess that 3rd party products need a little more time.

    Werner

  • Functional test Oracle Forms: adding new row in the Table

    Hello

    I try to create a Test Script for creating order sale to R12.  I use OpenScript Version: 12.5.0.1 Build 287

    I am able to create the script for all orders with less than 9 lines.

    Currently, it has more than 8 lines, the script does not work. The threshold is unable to find the object to line 9.

    "//forms:textField [(@name ='LINE_ORDERED_ITEM_DSP_" + getVar ("{{setLine}}") + "" ")] .

    The reason could be, when I scroll down to line 9 in the form, I guess the name of the textfield object is changed.

    If everyone faced the similar problem, please throw some light on this.

    Thank you

    Guna.

    Hi Guna,

    You will need to provide the "maxvisiblelines" for the part of lines to BBA. This must be done at the component level. When you define a component itself, you must specify the value for maxvisiblelines

    Thank you

    Anand

  • Is it possible to send the response to the client with the SOAP header containing the user information in JAX - WS?

    Hello

    I use JDev 11.1.1.7.0 and Weblogic 10.3.

    I have a JAX - WS based web service on which authentication and authorization was in place and operational.

    The SOAP request carries information of SOAP header with the token of user name and password for authentication. Similarly the SOAP response can also transport header to the client information? So that the customer who receives the answer happens to knowledge of who he actually received the answer.

    Thanks in advance.

    Hi Harsha,

    Is quite easy to define soap headers in a response message soap envelope. No need to use handlers either. Please find the link that would be useful below.

    You must use the WebParam property and set the modes for messages (IN, OUT, INOUT) and you can pass multiple values JAX WS service using "javax.xml.ws.Holder".

    http://tomee.Apache.org/examples-trunk/WebService-holder/Readme.html

    Please find the sample and put interfaces implement the Web service for the same.

    Interface:

    @WebMethod (operationName = "GetItemDetails", action = "http://xmlns.org/ItemService/GetItemDetails/V1")

    Public Sub getItemDetails)

    @WebParam (name = "ItemCandListServiceMessage", targetNamespace = "http://xmlns.org/ItemCandList", partName is "ItemRequest" mode = Mode.IN) ItemCandListServiceMessageCmplxType itemRequest,.

    @WebParam (name = "ItemServiceMessage", targetNamespace = "http://xmlns.org/Item", partName is "ItemResponse" mode = Mode.OUT) owner itemResponse,.

    @WebParam (name = "ItemSOAPHeader", targetNamespace = "http://xmlns.org/ItemSOAPHeader", "ItemSOAPHeader" = partName, header = true, mode = Mode.INOUT) holder itemSOAPHeader)

    throws ItemFaultMessage

    ;

    Implementation:

    public void getItemDetails (ItemCandListServiceMessageCmplxType itemRequest, door itemResponse, door itemSOAPHeader) throw {ItemFaultMessage}

    itemResponse.value = objectFactory.createItemServiceMessageCmplxType ();

    itemSOAPHeader.value.setRequestId ("response");

    itemResponse.value = itemServiceBean.getItemDetails (itemRequest, itemSOAPHeader.value, itemResponse.value);

    }

  • Adding custom information in the HTTP header in a request out of GWWS

    Is it possible to send information to custom header with the webservice (HTTP post) request that arrives via a GWWS Server?

    All the methods that I've read about deal with management of the SOAP envelop that is sent.
    We are looking for ways that will enable us to custom information in the headers.

    I know there is something we can do by using the Plugins of salt.
    For example, we can write only an Out bound plugin that has a capacity to put the "Authentication: Basic...» "in the header.
    Then there is message conversion plugin which deals with the transformation of the message, which allows us to control the soap body.

    Is it possible to put information in the header of outgoing (from GWWS) request to a web service?

    Thank you and best wishes,
    Christelle

    It was enhanced salt11gR1 and addressed in edocs as below:

    http://docs.Oracle.com/CD/E18050_01/salt/docs11gr1/admin/config.html#wp1094154

  • WSSE WSRP missing in the SOAP header element

    Hello

    I have a wlp 9.2.3 producer and consumer, I implement the SAML security between these 2 areas, and it worked very well. Now suddenly wsse: Security section is missing in the soap headers that are passed from the consumer to the producer. What could be the reason for the missing WSSE... How to add them

    soapenv:envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" >
    * < header xmlns = "http://schemas.xmlsoap.org/soap/envelope/" / > *.
    < soapenv:Body >
    < xmlns:urn urn: initCookie = "urn: oasis: names: tc: wsrp:v1:types" >
    < urn: registrationContext >
    < urn: registrationHandle > 24002 < / urn: registrationHandle >
    < / urn: registrationContext >
    < / urn: initCookie >
    < / soapenv:Body >
    < / soapenv:Envelope



    Thank you
    Jesh

    The most likely cause is that the user is not connected.
    Other issues include the SAML Credential Mapper or a misconfiguration of the WSDL strategy in the field of consumer safety.

    Hope this helps,

    Nate

  • Blade tool precision is off, not cut on the read head

    When you try to cut (using the CMD + B tool or a blade to cut the read head) it's offset Cup at the beginning of a block of gray 1 second at the place where the playhead is actually.

    How can I get the tool of the blade to cut on the head rather than be compensated?

    Here's a screen shot where I got the cut occur (as directed by the read head)

    Here's a screen shot where the Cup is happening really (at the beginning of a block of 1secondgrey in the timeline)

    Here's a quick GIF of the problem thus:

    You zoomed with so you can see the video images individually. It is not possible to cut in a single video frame, it is possible to cut at the level of framework sup with audio.

    Russ

  • Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server

    Hello

    Try to call the Web service to oralce pl/sql function

    created a function

    Unable to invoke the web service from the server of the SOA.

    CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as

    Server sys.utl_dbws. SERVICE;

    APPEL_ sys.utl_dbws. CALL;

    service_qname sys.utl_dbws. QNAME;

    port_qname sys.utl_dbws. QNAME;

    response sys. XMLTYPE;

    application sys. XMLTYPE;

    BEGIN

    sys.utl_dbws.set_http_proxy ("hostname: Port'");

    service_qname: = sys.utl_dbws.to_qname ("ns1", "process");

    Server: = sys.utl_dbws.create_service (service_qname);

    APPEL_: = sys.utl_dbws.create_call (server);

    sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');

    sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');

    asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '"); 

    answer: = sys.utl_dbws.invoke (APPEL_, request);

    return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval(); 

    DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");

    -Of return ';

    END;

    Run - the code below:

    Select HelloWorld_WebServices ('Hi') to double;

    Error:

    ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError

    ORA-06512: at "SYS." UTL_DBWS', line 403

    ORA-06512: at "SYS." UTL_DBWS', line 400

    ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74

    29532 00000 - "Java call terminated by eception Java exception: %s."

    * Cause: A mistake or a Java exception has been reported and could not be

    solved by Java code.

    * Action: Modify Java code, if this behavior is not expected.

    Hello

    Fixed the error

    After loading once again of DBA and network provided access files JAR/JVM firewall

    and the correction on the threshold

    Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();

  • Question newbie Oracle SQL adding columns to count the contents of the other columns

    Greetings,

    I do not understand how to integrate charges to my current SQL code that would consist of food and then the elements of the car for each person. Once I understood this concept I want to apply to my real data base (Oracle) where I count medication and problems for each patient.

    Using my data of test below, for example the My goal would be to have the number of columns show that Cathy had County 3 foods and an element 1 cars (the County would need to ignore the values zero in these columns). I really don't like if the counter value is repeated in every row for that person.

    Select data1. Name, data1. Category, Data1.Results,

    Box When data1. IN category ("food") then end FOOD data1.results,

    Box When data1. IN category ('Cars') then data1. Results end of CARS

    Of

    (

    Select T1.name name, category null, null results in a_Main T1, a_Food T2 where T1.cpi_seq = T2. CPI_SEQ

    UNION

    Select T1.name, 'food', T2. Food a_Main T1, a_Food T2 where T1.cpi_seq = T2. CPI_SEQ

    UNION

    Select T1.name, 'cars', T3. Cars a_Main T1, a_Cars T3 where T1.cpi_seq = T3. CPI_SEQ

    ) data1

    where data1. Category is not null

    by name, category

    NameCategoryResultsFOODCARS
    CathycarsFieroNULL VALUEFiero
    CathyfoodSoaking of the pointsSoaking of the pointsNULL VALUE
    CathyfoodScoopScoopNULL VALUE
    CathyfoodSoftServeSoftServeNULL VALUE
    DavecarsFirebirdNULL VALUEFirebird
    DavecarsGremlinNULL VALUEGremlin
    DavecarsTransportNULL VALUETransport
    DavecarsVegaNULL VALUEVega
    DavefoodCount ChoculaCount ChoculaNULL VALUE
    DavefoodDonutsDonutsNULL VALUE
    DavefoodLittle retardedLittle retardedNULL VALUE
    DavefoodPizzaPizzaNULL VALUE
    MarycarsTaurusNULL VALUETaurus
    MaryfoodBird seedBird seedNULL VALUE
    MikecarsHondaNULL VALUEHonda
    MikecarsJeepNULL VALUEJeep
    MikefoodBurgerBurgerNULL VALUE
    MikefoodFriesFriesNULL VALUE
    MikefoodFoamFoamNULL VALUE
    SuecarsPintoNULL VALUEPinto
    SuecarsTaurusNULL VALUETaurus
    SuefoodHumusHumusNULL VALUE
    SuefoodKabooliKabooliNULL VALUE

    Select data1. Name, data1. Category, Data1.Results,

    Box When data1. IN category ("food") then end FOOD data1.results,

    Box When data1. IN category ('Cars') then data1. Results end of CARS,

    Count (*) over (partition t1.name, data1. NTC category),

    Of

    (

    Another way would be

    Select

    ..

    de)

    all

    )

    Group

    name

    Category

    order by

    name

    Category

    Depends on your needs (for example, the final projection).

Maybe you are looking for