Accessing pkg info from C/C++

The Solaris package database contains important per-package information which is rather useful to access from within an application. Is there any API to do this? The guide at http://docs.sun.com, "Application Packaging Developer's Guide" does not discuss one.
As an example, consider an application suite which needs to refer to its install location for config info or storing logs. Using pkginfo(1) and pkgparam(1) one can see where the package's base install dir is (ex: 'pkgparam SUNWvts BASEDIR' returns '/opt' on my system) located. But can I do the same within my application? What are the perferred mechanisms for my applications to otherwise know where their 'BASDEDIR' is? It would seem that the /var/sadm/pkg repository is a good place to start.
Perhaps a more general question: In providing an application suite, does the pkgadd family of commands remain the preferred method of packaging and delivering s/w? Is this true for Solaris9 and whatever lies beyond? To my understanding, the answer would be 'yes'. Are there other good alternatives recommended by Sun and/or the UNIX community in general? (as in, yes I could write my own hack at one, but would prefer not to!) I don't know, but would like to.

Just out of curiosity, what would you do with it if you had it?
The set of ones and zeroes has little or no meaning without knowing the starting rowid that the particular index entry points to. In a bit mapped index, there will almost certainly be multiple index entries for a single value (e.g 'M') in the bitmap, since it is unlikely that a single index entry could hold enough bits to reflect all the rows in a table big enough to be worth creating a bitmapped index on.
John

Similar Messages

  • Looking for resource: accessing session info from JPS portlets

    Hi! The Portal Developer's Guide 10g Release 10.1.4, section 7.2.5 shows how to access session information from PDK portlets. I'm looking for information (tutorials, books) on how to do this from JPS portlets in the Oracle Portal environment.
    Thx!

    If u are using JSPProvider, then for getting the Session variable, peruse the below points:
    JSPProvider p=(JSPProvider)pageContext.getAttribute("JSPProvider");
    Session ses=p.getSession();

  • How to migrate the userwise organization access rights info from 11i to R12

    Dear All,
    Is there a way to migrate the user-wise organization access rights information from 11i to R12 ? Does this falls under DBA purview ?

    I assume you are talking about Organization Access (in Inventory). As far as I know, there is no api for this. You can consider using a key-mapping software such as Data loader / winparrot.
    OR
    you can write your own script to insert records into the org_access table. It should be a straight forward insert. You just need to ensure that the combination of organization_id, responsibility_id and resp_application_id is valid.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • Does Windows 8.1 support NVMe admin commands to access SMART info from SSD?

    Hi, we are developing and testing our new "NVMe SSD" and toolbox.
    When we try to get SMART info from our NVMe SSD at Windows 8.1, we are having troubles that Windows 8.1 seems not pass "Get Log page" command which is one of NVMe admin commands.
    However, we can successfully get SMART info from SATA-based SSD without any issues.
    So, just wondering if Windows 8.1 natively support all NVMe admin commands, or we need to develop our own special driver instead of Windows in-box driver (StorNVMe.sys).
    Thanks in advance for any help.
    BR, 
    HJ

    Hi HJ,
    StorNVMe.sys supports the admin commands internally. On win8.1, the miniport driver doesn't allow NVMe pass-though commands thus you cannot get NVMe log out of the driver.
    Regards,
    Michael Xing [MSFT]
    Thanks, Michael!
    Is there any other walk around to get NVMe log out of the driver?
    I found an old thread (below) that you mentioned SCSI pass through IOCTL commands, could you give me some more detailed information on how to do it?
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8882bd78-b12e-43e3-a892-92a044ce4882/how-should-we-manage-the-nvme-devices-in-ws2012r2-?forum=wdk#f741642d-ec39-4fc2-a99c-e38bde20e7f9
    Thanks a lot!
    HJ

  • Accessing Instance info from external app

    We would like to provide a view of the instance information in BPEL within another web app. Specifically, a list of Instances, with the ability to click and get the Audit info.
    This would allow us some production visibility of our processes, without giving access to BPEL console directly.
    Anyway recommended "easiest" route to this?
    - Direct calls to BPEL DB?
    - Are there existing .jsps/components within BPEL that we can simply invoke?
    _mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Excellent, anyone have a link to the 10.1.2 JAVA BPEL API docs??
    _mike                                                                                                                                                                                       

  • Error in OHW Configuration when accessing OCS help from OCS Admin Page

    Hi.
    Getting "Error in OHW Configuration OHW configuration file error detected. Please contact the system administrator." when i try to access help info from the OCS Adminsitration Page.
    Any feedback on what's wrong is welcomed ...!
    Regards, Luis ...!

    http://dbatoolz.orapros.com/tp/3125.how-to_recreate_corrupted_ohwconfig-xml.html

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    how do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    ok so i have my own i tunes library - how do i get all my old apps onto my new library?

  • I recently had the genius bar change my imac hard drive because it crashed. For some reason Time Machine didn't back up some of my important files. Can I get my damaged hard drive back from the genius bar to see if I can access that info?

    I recently had the genius bar change my imac hard drive because it crashed. For some reason Time Machine didn't back up some of my important files. Can I get my damaged hard drive back from the genius bar to see if I can access that info?

    Unfortunately, that drive is long gone, probably back to the mfr. Drives are not returned when they are exchanged. You can go by and ask them, but the chances are slim to none.

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

  • HT4796 have migrated the info from old pc to mac, but cant access it, and ideas?

    i have migrated the info from my old PC, but cannot access it, any advice please?

    Do this from the system preferences window.
    Click on Users&Groups.
    Click on the padlock (bottom left) to unlock it if it's not unlocked.
    Then highlight the account in the left pane that you want to remove...
    and then click on the MINUS symbol on the bottom left of that window.
    Just make sure when you delete an account, that you're currently NOT LOGGED INTO that account, or it's not going to work.
    Feel free to chose the delete home-folder option when it prompts you.

  • HT6114 after i migrate my pictures and music from my PC to my Macbook Air, how do i access that info? does it have something to do with changing the user?

    I wirelessly migrated successfully my pictures and music via Wi-Fi from my PC laptop to my new Macbook Air but I don't now how to access that info. The space was used up on my Mac Air, but can't find music or pictures. Does it have something to do with changing user and if so what do I do when I change it. I think I got that far but got stuck.

    Hello jeycool1,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Switch Basics: Migrate your Windows files to your Mac
    http://support.apple.com/kb/ht2518
    If you transferred a user account from your Windows PC to your Mac, you can log into the account on your Mac.
    Have a nice day,
    Mario

  • HT201272 I recently upgraded from an Iphone 4S to 5. I am having trouble with magicjack; each time i install it it gives me an error message "The installation associated with this device is invalid". Cannot seem to access account info or make calls.

    I recently upgraded from an Iphone 4S to 5. I am having trouble with magicjack; each time i install it it gives me an error message "The installation associated with this device is invalid". Cannot seem to access account info or make calls.

    I have exactly the same trouble.
    If you wet the answer, please let me know!!

  • I don't have my phone anymore and need to get access to my contact list. Is there a way to get into my backed up info from the PC I'm using right now?

    I don't have my phone anymore and need to get access to my contact list. Is there a way to get into my backed up info from the PC I'm using right now?

    You can use another iPhone (or iPad) to restore it too, or you can login to www.icloud.com (assumng you weer using iCloud) and export your contacts from there.

  • How do I get info from Active Directory and use it in my web-applications?

    I borrowed a nice piece of code for JNDI hits against Active Directory from this website: http://www.sbfsbo.com/mike/JndiTutorial/
    I have altered it and am trying to use it to retrieve info from our Active Directory Server.
    I altered it to point to my domain, and I want to retrieve a person's full name(CN), e-mail address and their work location.
    I've looked at lots of examples, I've tried lots of things, but I'm really missing something. I'm new to Java, new to JNDI, new to LDAP, new to AD and new to Tomcat. Any help would be so appreciated.
    Thanks,
    To show you the code, and the error message, I've changed the actual names I used for connection.
    What am I not coding right? I get an error message like this:
    javax.naming.NameNotFoundException[LDAP error code 32 - 0000208D: nameErr DSID:03101c9 problem 2001 (no Object), data 0,best match of DC=mycomp, DC=isd, remaining name dc=mycomp, dc=isd
    [code]
    import java.util.Hashtable;
    import java.util.Enumeration;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class JNDISearch2 {
    // initial context implementation
    public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    public static String MY_HOST = "ldap://99.999.9.9:389/dc=mycomp,dc=isd";
    public static String MGR_DN = "CN=connectionID,OU=CO,dc=mycomp,dc=isd";
    public static String MGR_PW = "connectionPassword";
    public static String MY_SEARCHBASE = "dc=mycomp,dc=isd";
    public static String MY_FILTER =
    "(&(objectClass=user)(sAMAccountName=usersignonname))";
    // Specify which attributes we are looking for
    public static String MY_ATTRS[] =
    { "cn", "telephoneNumber", "postalAddress", "mail" };
    public static void main(String args[]) {
    try { //----------------------------------------------------------        
    // Binding
    // Hashtable for environmental information
    Hashtable env = new Hashtable();
    // Specify which class to use for our JNDI Provider
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    // Specify the host and port to use for directory service
    env.put(Context.PROVIDER_URL, MY_HOST);
    // Security Information
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, MGR_DN);
    env.put(Context.SECURITY_CREDENTIALS, MGR_PW);
    // Get a reference toa directory context
    DirContext ctx = new InitialDirContext(env);
    // Begin search
    // Specify the scope of the search
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the actual search
    // We give it a searchbase, a filter and the constraints
    // containing the scope of the search
    NamingEnumeration results = ctx.search(MY_SEARCHBASE, MY_FILTER, constraints);
    // Now step through the search results
    while (results != null && results.hasMore()) {
    SearchResult sr = (SearchResult) results.next();
    String dn = sr.getName() + ", " + MY_SEARCHBASE;
    System.out.println("Distinguished Name is " + dn);
    // Code for displaying attribute list
    Attributes ar = ctx.getAttributes(dn, MY_ATTRS);
    if (ar == null)
    // Has no attributes
    System.out.println("Entry " + dn);
    System.out.println(" has none of the specified attributes\n");
    else // Has some attributes
    // Determine the attributes in this record.
    for (int i = 0; i < MY_ATTRS.length; i++) {
    Attribute attr = ar.get(MY_ATTRS);
    if (attr != null) {
    System.out.println(MY_ATTRS[i] + ":");
    // Gather all values for the specified attribute.
    for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
    System.out.println("\t" + vals.nextElement());
    // System.out.println ("\n");
    // End search
    } // end try
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    My JNDIRealm in Tomcat which actually does the initial authentication looks like this:(again, for security purposes, I've changed the access names and passwords, etc.)
    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://99.999.9.9:389"
    connectionName="CN=connectionId,OU=CO,dc=mycomp,dc=isd"
    connectionPassword="connectionPassword"
    referrals="follow"
    userBase="dc=mycomp,dc=isd"
    userSearch="(&(sAMAccountName={0})(objectClass=user))"
    userSubtree="true"
    roleBase="dc=mycomp, dc=isd"
    roleSearch="(uniqueMember={0})"
    rolename="cn"
    />
    I'd be so grateful for any help.
    Any suggestions about using the data from Active directory in web-application.
    Thanks.
    R.Vaughn

    By this time you probably have already solved this, but I think the problem is that the Search Base is relative to the attachment point specified with the PROVIDER_URL. Since you already specified "DC=mycomp,DC=isd" in that location, you merely want to set the search base to "". The error message is trying to tell you that it could only find half of the "DC=mycomp, DC=isd, DC=mycomp, DC=isd" that you specified for the search base.
    Hope that helps someone.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

Maybe you are looking for

  • How can I change the default Country for my account!!!

    Hi, I just move in to U.S. and i'm trying to use the U.S. store but the systems tells me tha my account it's only valid for Venezuela... What can I do??? thanksin advance  for any help!!!!

  • Power button not working in Ideapad Flex14

    power button of Ideapad Flex14 is not working, i have to boot using the Novo button. the Volume Buttons on the side of the laptop also doesnot work. the Windows button the Screen (the windows hardware button on the display) also doesnt work.

  • Solid Yellow Light requiring reset

    I have an AirPort Extreme base station with two iMacs as my basic wireless home network. I have a TiVo Series 2 unit also on the network. My DSL modem is attached to the AirPort Extreme base station and I have a rock solid connection to the Internet

  • CUP - custom field and match code

    Hi, is it possible to have a custom field in CUP with a match code to help searching ? the only two way that i found are dropdown lists for a table from a backend system and free field ( varchar, date, numeric) thanks Regards Aurelien

  • Do we still have com.crystaldecisions.ePortfolio.plugin.crystalenterprise.*

    Hello, I am just wondering if we still have package com.crystaldecisions.ePortfolio.plugin.crystalenterprise.* ? I used a class com.crystaldecisions.ePortfolio.plugin.crystalenterprise.webi.WebiUtility in my SDK code for XIR2, but could not found suc