Retrieve the attributes of table of database source Java webservice API

Hello

I have a source of data, with all the columns of mandatoru and the additional columns. I can search these columns, and they are listed in the source database "attribute Mapping" tab.

When I try to get these columns/attributes of Web services Java API ResultElement, I don't have access to them, apparently. I try with the getCustumAttributes(), but it is empty. I also tried mapping of these attributes to something else, but the "Mapping of attributes" tab always reset my selections.

How to read the values of these columns in the result of my search?

Thank you
Søren

Hi Soren,

When you use the Java API, you must indicate ITS what personalized search attributes you want to return. This is done by an fetchAttribute array [integer] ID's discover the Java API in OracleSearchService.doOracleSearch.

Once you add your list to your appeal request, ITS them will return in the resulting XML. I think that the reason that its does not automatically return all custom attributes is to improve performance. Need to return the query more than you need.

I hope this helps.

Best regards

-Stephen

Tags: Oracle

Similar Questions

  • The use of tables of database for authentication in the ADF

    Hello

    I need to use my user table in the database for authentication in ADF (adf 11.1.2).

    I have 3 categories: agent admin and user is unique, each has its own page, logging, the application checks the type of user and directs its jsf task or the page of the jsf page flow.

    I have a user with the type attribute table

    HOW CAN I MAKE THIS PRAYER.

    Hello

    See links below.

    Whatever Fusion Middleware: Tables database user to implement authentication in the ADF

    Java / Oracle SOA blog: the use of tables of database as in WebLogic authentication provider

  • I need to write a vbscript script to retrieve the size of an access database

    Could someone help me write a vbscript script to retrieve the size of an access database. I need to put this in my schedular system to run every morning.

    Hi Rob,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Office IT Pro. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/officeitpro/threads

  • Retrieve the name of tables and its plsql procedure schema

    Hello

    Help me please pass my last training evaluation

    the task is:

    between the username and the password and then who will retrieve tables exist and the script for each table.

    the output should be like:

    user name: -.

    table_name1:

    table_name1 script

    table_name1 script

    table_name1 script

    table_name2:

    table_name2 script

    table_name2 script

    table_name2 script

    .

    .

    .

    and so on

    in the last of the production
    You should see the following:

    No tables for: username: table_numbers

    Please help me.

    If your boss wants to test your ability to write code and understand the dictionary of data, then you can try something like this:

    begin
        for t in (
            select table_name from user_tables order by table_name
        )
        loop
            dbms_output.put_line(t.table_name);
    
            for c in (
                select * from user_tab_columns c
                where  c.table_name = t.table_name
                order by c.column_id
            )
            loop
                dbms_output.put_line('    ' || rpad(c.column_name,31) || c.data_type);
            end loop;
            dbms_output.new_line();
        end loop;
    end;
    

    This just lists the tables and their columns. You must understand how to add more details and to make a set of create table statements.

    If it ask for user name and password there must probably be a SQL * more script (.sql file). He could use ACCEPT to invite (there are examples at the bottom of the page).

  • Search DR. for line of dashboard, dynamic table to retrieve the offices assigned table

    Hello


    I don't have information on the role of the user when running in the session variable.
    Not in the database.


    Now, to get office that manages a Manager I need to get the role, i.e. "areamanager".
    and the username "mike01" to recover the offices "mike01" manages (sql with two parameters?).

    It is possible that a local 'bob12' Office Manager uses the same table edge OBIEE but for him
    the role is 'localmanager' and he would see only the office works in, not all the other offices "mike01" also manages.


    If I had roles in an array of DB Oracle, it would be easy. I'd create just a view of the mapping.
    The problem is, I do not have this information in the DB, but I need
    to prefilter the dash prompt, so the "localmanager" can't select
    all offices but only his own. "mike01" on the other hand, all its functions.

    Now, how do I do that? I thought about the new .rpd 11g function lookup table to pass session variables to
    a SQL function or procedure. Which seems doable?

    Hi metalray,

    Not sure about the transmission session variables return from a procedure...

    But a simple way to do this is to have several guests, one for each role.  Filter them according to your requirements, place them on the dashboard and conditionally hide them based on the role of the user so that only the appropriate message appears.

    JB

  • Retrieve the attributes of a signature?

    I would like to get a digital signature (that is, the name of the topic on the signature) name of the end user while running the postSign script so that I can transcribe in a text field elsewhere in the document. I spent hours surfing to find a solution for this. Is it possible to do? Thanks for reading.

    Search in the Acrobat script reference to the objct of signature. I am sure that it is exposed through this object.

    Paul

  • The eyedropper tool adjustable to pick up only the attributes on a layer active?

    I work in a package so I use several layers in a document. The top layer is an imported dieline (have or pdf) and it usually takes to the whole top of the artboard. If I'm on a layer of text (for example) and use the eyedropper tool to pick up the image of text attributes, it will attempt to retrieve the attributes of the dieline instead. This happens even if the layer dieline is locked. The only way I know to stop it is to turn off the top layers or place layer dieline under the text layer.

    Is there a way to put the dropper to select only the attributes on an active layer? Is there another way around this problem?

    Thank you!

    There is no adjustment of the eyedropper tool. He chose visually, without taking into account layers. The only workarounds are those you met: to disable the offending layer, or put it behind.

  • Design of the attributes in DRM for an export of pivot in database tables

    Hi all

    I need help in the design of export and real estate in DRM configured with the database table.

    Consider a hierarchy has, with 10 Member L1, L2... L10 and each with some leaves (hierarchy level 3). Each Member has a different set of attributes / properties that are associated with, lets call P1A, P1B, P1C for Limb L1, P2A P2B for Limb L2 and so on. P1A property may or may not apply to any other Member, it may be unique to the L1. Each property / attribute has a value for this branch. The requirement now is to get the export table in the format below.

    Name of the node Name of the parent Attribute Value of the attribute
    Leaf1L1P1Asome value
    Leaf1L1P1Bsome value
    Leaf1L1P1CSome value
    Leaf2L1P1A

    a new value

    Leaf2L1P1Ba new value
    .............
    LeafXL2P2Asome value

    Basically, repeat the names of nodes according to the properties that are associated with him.


    One of the approaches I have however is to create 2 properties for each set of attribute associated with a member, which means create property called 'Attribute1' and ' attribute value 1 "for P1A which will allow me to select P1A to property 'Attribute1' and assign the value to the property «value of the attribute 1" for P1A.»» Like to create several properties of the attribute for P1B, P1C. Then for P2A, P2B P2C I can reuse attribut1, assign the value 1, 2 attribute, assign the value 2 and so on.


    But I'm not able to understand how to map attribute 1, 2 attribute, attribute 3 to the same column of the table "Attribute" and similar thing for 'value of the attribute.


    Sorry for the confusion long post. I hope I could clearly explain the requirement, but if I missed anything or anything confused sounds, pls let me know, I can help clarify.


    Any help seeing this through will be greatly appreciated.


    Thanks in advance

    Sam

    var prop_names ="";

    prop_names = String (node. PropValue ("Custom.PropNames"));

    var prop_str ="";

    prop_names = prop_names. Split(",");

    var prop_val ="";

    var val_final ="";

    var arr_itm ="";

    for (i = 0; i<>

    arr_itm = prop_names [i];

    prop_val = node. PropValue (arr_itm);

    prop_str = arr_itm. Replace(/custom./g,""); "

    {if(val_final=="")}

    val_final = prop_str. Concat(";",prop_val);

    }

    else {}

    val_final = val_final. Concat(",",prop_str,";",prop_val);

    }

    }

    Return val_final;

  • SQL to retrieve the specific attributes of an x 509 digital certificate

    I'm curious to know if there is a way to use SQL to retrieve the specific attributes of an x 509 digital certificate. I know how to make using openssl - no problem. But what happens if the pem file is stored in a datebase column and I need to extract the expiration date. Since the openssl command line, I can just do this to extract the date of expiry of the certificate:

    OpenSSL x 509 - noout - in certificate.pem - dates | grep notAfter | AWK-f = '{print $2} '.
    (retrieves only the dates | take only the line with the expiration date | print only the second column of the row delimited =)

    But if certificate.pem is stored in an Oracle database on the ground, how to achieve the same result? Y at - it something like "DBMS_OPENSSL"?

    I got to thinking of V$ PORTFOLIO in an Oracle database. Only columns here are CERT_ID, DN, serial_num, TRANSMITTER, KEYSIZE and STATE - no certificate, which suggests that it is stored elsewhere. As you can tell, I am new to this.

    Thanks for your help!

    You can use a small procedure stored Java to extract the required fields.

    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/CertificateFactory.html
    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/X509Certificate.html

    SQL> create table cert_storage (id integer, cert clob);
    
    Table created
    
    SQL> insert into cert_storage values (1,
      2  '-----BEGIN CERTIFICATE-----
      3  MIIDljCCAn4CCQD2F4J0d4f7rTANBgkqhkiG9w0BAQQFADCBjDEMMAoGA1UEChMD
      4  V0dVMQ0wCwYDVQQLEwRNU0lBMR4wHAYJKoZIhvcNAQkBFg90d2lsbDYzQHdndS5l
      5  ZHUxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MQswCQYDVQQIEwJVVDELMAkGA1UE
      6  BhMCVVMxGjAYBgNVBAMTEVRob21hcyBDIFdpbGxpYW1zMB4XDTEyMTExNjA2NTEx
      7  OFoXDTEzMTExNjA2NTExOFowgYwxDDAKBgNVBAoTA1dHVTENMAsGA1UECxMETVNJ
      8  QTEeMBwGCSqGSIb3DQEJARYPdHdpbGw2M0B3Z3UuZWR1MRcwFQYDVQQHEw5TYWx0
      9  IExha2UgQ2l0eTELMAkGA1UECBMCVVQxCzAJBgNVBAYTAlVTMRowGAYDVQQDExFU
     10  aG9tYXMgQyBXaWxsaWFtczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
     11  ALzwniQTgM79kwIOIqo2GE+Ufl56F0E/Rg956Ho6FoT9tBhvvQfI1SDvRzsrMGYP
     12  2VDAT7I7HEUnwFPMF7YAiLbK/6LlKDv0D+JyP3q9k/ENsZd0Z33KZ3HrJV1sdZZK
     13  iCv7isHKJ7xJgxQq+9ecpBG2Y9Vr5rLg8WPqnjvnaI60PN+NEsWnFNr/u6rBfv9R
     14  CQBtbLG6nhq5rxd67cWYR1hLpQg/S40AYcJBMIOApDN96YzDFXUM269JdHLSMgbt
     15  ZN8F4XeGljNbuVT8BTKOSydDUWWNJA593GLMSQ+OJVzVuwF99JzUwG0TcmPYgcQn
     16  Vav2t9igeXq7bUspcFTHQX8CAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAAoOfoSSo
     17  sN78pSuDAAD95AgATzmCFxLvV9LWrIkFOF6mLwpnvR9UvjoOfQRWjVNnHKZ+1SPw
     18  oRo9KnMaWBltnXgKktfNYsSqCgZ889VaFlZfOL7TTq+jWqG9sRNXcJHkC+o07cxS
     19  IZSXNwjV+c6NMXUJWTf6OWKLcBmQ3Ze0hwiyW06QZvSd7psYqAH4AJHyiOXROG44
     20  eNtbFWxQ5Gg/tgXnEr/vbr2twXuflmmoNkjh94mR9Vf0QJY6/1I6qYkJ4n+xX2kR
     21  yisfvWztlYT+1m/z8jzeJtAkxRIloTIacLrIjaQKpKKsL4rAb0Fd0SUPP6HkIt72
     22  +vQ4jwHbxRhV7g==
     23  -----END CERTIFICATE-----')
     24  ;
    
    1 row inserted
    
    SQL> commit;
    
    Commit complete
     
    
    SQL> create or replace and compile java source named testx509src as
      2  import java.security.cert.*;
      3  import java.io.*;
      4  import java.sql.*;
      5  import oracle.sql.CLOB;
      6  import oracle.sql.TIMESTAMPTZ;
      7
      8  public class TestX509 {
      9      public static TIMESTAMPTZ getExpirationDate(CLOB cert)
     10              throws SQLException, IOException, CertificateException {
     11
     12          Connection conn = (Connection) DriverManager.getConnection("jdbc:default:connection:");
     13          BufferedInputStream is = new BufferedInputStream(cert.getAsciiStream());
     14
     15          CertificateFactory cf = CertificateFactory.getInstance("X.509");
     16          X509Certificate c = (X509Certificate) cf.generateCertificate(is);
     17          is.close();
     18
     19          return new TIMESTAMPTZ( conn, new Timestamp(c.getNotAfter().getTime()) );
     20
     21      }
     22  }
     23  /
    
    Java created
    
    SQL> CREATE OR REPLACE FUNCTION CERT_GetExpirationDate(cert in clob)
      2  RETURN timestamp with time zone
      3  AS LANGUAGE JAVA
      4  NAME 'TestX509.getExpirationDate(oracle.sql.CLOB) return oracle.sql.TIMESTAMPTZ';
      5  /
    
    Function created
     
    
    SQL> select CERT_GetExpirationDate(cert)
      2  from cert_storage
      3  where id = 1;
    
    CERT_GETEXPIRATIONDATE(CERT)
    --------------------------------------------------------------------------------
    16-NOV-13 07.51.18.000000000 AM +01:00
     
    

    If you need to access the fields again, it would be best to wrap them in an Oracle object type and have the Java method return an instance of this object.

  • IOM: Reconciliation with the Tables of database applications connector

    Hello!

    I am using the Application Connector 9.1.0.5.0 database Tables in OIM 11 g to reconcile the accounts of my target system: MySQL 5.1.37. I followed the steps described in the guide of the connector to create and set up and configure my system target as a reliable source.

    The problem is that user accounts are not created in IOM, however, I know the Connector retrieves the information of every user because I can see it in the log messages generated when I run the reconciliation work, so I supossed the problem may be in the "configuration of the connector to modify page", or some time after that.

    In addition, I don't know if it's important, but I don't see "User of Type" field "IOM user account data set" to "change the Connector Configuration Page.

    A I forgot to do something in the configuration or there's something I've had to do but the steps described in the guide?

    Thanks in advance!

    Published by: user10857411 on January 11, 2011 16:10

    Published by: user10857411 on January 11, 2011 16:12

    SUN IDM is better than the IOM
    Reconciliation process in Sun IDM (newest oracle) is easier to implement than IOM (worst solution identity)

    Saludos cordial Zam

  • ITS Table/Database Source

    Hi all
    I created a table data source and was able to find the data in the CONTENT column.
    My question is, don't the results displayed will be in the form of URL only?
    What is the difference between the database and source table?
    If I want to do a search using several columns of different tables in different schemas with and/or condition, I can do this? If not, should I use the API of SES and achieve through custom code?

    Thank you
    Shyamala

    -What are the settings used for research? All columns used in the query in case of source database and content and all of the keys used in the source table?

    ***
    When ITS analyses of the database data source, the robot automatically takes each column returned in the query (less the CONTENT and URL columns and perhaps other reserved columns) and turns them into a Document attribute. If ITS detects the document attribute does not already exist, create it. If there is already (by checking if column name = name of the search attribute of HIS), HIS maps the Document attribute it to the existing search HIS attribute.

    On the data source, see the attribute Mapping tab. This will tell you how ITS mapped columns internally. There will then be a full text search on a specific search based on the attributes on a specific attribute to search HIS. When you run a search FT, ITS research on all data, CONTENT and specific search attributes column. With a search based on attributes, HIS will only search for this specific attribute, nothing else. Using the advanced search to search for the attribute search.
    ***

    -What is the need for a content column?

    ***
    This is the data that ITS takes, is transformed into an HTML page and the index. She becomes the cached version of the document if you use this feature.
    ***

    -If the data type of column is varchar2, how can I use it as content? What is the contenttype to give? I tried CONTENTTYPE ' application/octet-stream' for those other than "text/plain", but it does not work.

    ***
    By the documentation, the CONTENT DO column can be varchar2/clob. If your data if nothing else and that you use the column, you must convert it.

    I'm not your comment about the application/octet-stream. You are indexing files with this data source? The data source for database can index files using the ATTACHMENT_LINK function, but it I'm sure he can't index the binary files. For the list of supported document types, see the tab document to the data source Types.

    Sorry, I don't have any experience using the column CONTENTTYPE can therefore not say whether this should correspond to the actual document of MIMETYPE.
    ***

    -If I have multiple data sources, then search displays the results of all, even if I disable the calendar of other sources. How can I search in the desired source? Should I put in a group of separate data source?

    ***
    Disable the calendar will prevent only the database re-indexed. If the data source is added to a dataset that can be found, the data source will get searched. Yes, put it in a different dataset so that your users can specify what data to search for.
    ***

    I hope this helps.

  • [ADF, JDev12.1.3] (How to set values for the attributes 1) to create a file and 2) committing to the database?

    Hallo,

    in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.

    In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...

    In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...

      public String cwpButton_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams");
        // here I calculate and set the needed params
        // ...
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
          return null;
        }
        return null;
      }
    

    And is ok if I can calculate the values for the attributes before a new record is created.

    But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?

    Thank you

    Federico

    Federico,

    Let me first tell you that our code is activity masking errors (the cache instead of working on them).

    1. If (! operationBinding.getErrors () .isEmpty ()) {}
    2. Returns a null value.
    3. }
    4. Returns a null value.

    This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!

    To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.

    Timo

  • 11g: how to test the VO attributes against the attributes of database

    Hello

    I think about writing JUNIT unit tests to match the VO on the database (table db, attributes and the type of the attribute).
    Also other (other companies) can make a development on the application database and that's why I want to assure
    the straightness of the DB tables and views that are used in our ADF application.

    In my opinion, I can use getAttributeDefs() to loop through all the attributes of a VO, but I don't know how to do the check on the database.

    Does anyone have any advice for me?
    I think it would also be a useful feature of the Junit Wizard "create business components test suite".


    concerning
    Peter

    Assuming you are using an Oracle database, can you make JDBC calls to the database in your unit test? How to read in the Oracle data dictionary to verify that the tables and columns exist?

    CM.

  • Recording on DVD - "Unable to retrieve the table of contents" error

    Hi all

    Whenever I try to record on a DVD a face "could not retrieve the table of contents.

    I tried to change the recording speed, but no use.

    When I go to properties of DVD and click on activate record it does not recognize the DVD or any CD in the drive.

    Please help

    Hello

    1. what software to use to burn cd/dvd discs? Try using Nero, Ashampoo burning studio, alcohol CD and DVD software of engraving,
    2. then, I advise you to use high quality as TDK or Verbatim media.

    3
    Go to Device Manager and remove the drive from the list of devices CD/DVD.
    Then access the registry and delete the Upperfilters and Lowerfilters completely from the following registry key values:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class {4D36E965-E325-11CE-BFC1-08002BE10318}

    Reboot the laptop and wait for the CD/DVD drive would appear once again

    If your problems persist, there may be a problem with your cd/DVD-ROM

  • Insider source subscription. Could not retrieve the client certificate

    Hi all

    I created subscription source initiated between two Windows 2008 R2.

    The source (client) cannot connect to the server. Logs on the client:

    Send the request for operation to the destination machine enumeration and the server.corp.domain.com:5986 port

    Authenticate the user using the Client certificate mechanism

    User authentication failed. The credentials did not work.

    Has received the answer of the layer network; status: 401 (HTTP_STATUS_DENIED)

    WSMan enumeration operation failed, error code 5

    Opens a session on the server.

    Sending HTTP error to the client after a failure of transportation.
    The HTTP status code is 503
    The error code is 995

    Could not retrieve the client certificate

    Send the HTTP 401 response to the client and disconnect the connection after sending the answer

    The user authorization failed with error 5Authorizing the user

    Authentication using client certificate with the client.corp.domain.com object is successfully

    How to fix the error "unable to retrieve the client certificate?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

Maybe you are looking for