Sharing XML packages among users

Hello all,
I have a question about the installation of the Oracle XML packages and sharing them among users.
Our DBA thought it might be best to create a special user (user1) and install all of the XML packages, utilities under that user schema. We went this route and were trying to use that users's xml objects with another user (user2).
When trying to generate XML output from SQL using the xmlgen package as user2 we get the following error.
SQL> set serveroutput on size 1000000
SQL> DECLARE
2 v_query VARCHAR2(200) := 'SELECT ''monkey'' AS Animal FROM dual';
3 BEGIN
4 DBMS_OUTPUT.PUT_LINE(DBMS_LOB.SUBSTR(xmlgen.getXML(v_query), 250, 1));
5 END;
6 /
DECLARE
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception: java.util.MissingResourceException:
can't find resource for oracle.xml.sql.mesg.XSUMessages_en_US
ORA-06512: at "SXXML.XMLGEN", line 465
ORA-06512: at "SXXML.XMLGEN", line 456
ORA-06512: at line 4
However running that same anonymous PL/SQL block as user1 we get success:
SQL> set serveroutput on size 1000000
SQL> DECLARE
2 v_query VARCHAR2(200) := 'SELECT ''monkey'' AS Animal FROM dual';
3 BEGIN
4 DBMS_OUTPUT.PUT_LINE(DBMS_LOB.SUBSTR(sxxml.xmlgen.getXML(v_query), 250, 1));
5 END;
6 /
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<ANIMAL>monkey</ANIMAL>
</ROW>
</ROWSET>
So I have several questions:
1> What is the best way to install these XML packages so that all users can use these utilities?
2> What access privileges need to be granted to user2 so that user1 AML utilities are available?
Thanks in advance.
Regards,
Bediako George

Thanks for the quick reply Steve: I have an observation and a couple of questions.
First my observation. I looked for the java resource that "turned up missing" as far as my user2 user is concerned and I couldn't find it in sxxml's schema. ( I was logged in as sxxml). I attempted to create a wrapper package belonging to sxxml sxhema as I understood. However even after granting execute privilege to my second user I got the same message.
Finally I removed the authid as current_user tag from the package declaration and I was able to get it to work.
I am not comfortable with this solution and would like to get this set up the right way. You said my second option was to grant execute privilege on the missing Java resource to my second user.
How do I locate this "missing" Java resource?
How do I grant execute privilege to a Java resource?
What are the ramifications of solving the problem the way I did?
Thanks again for your help.
Regards,
Bediako
create or replace package xmlgen AUTHID CURRENT_USER...This means that it runs under the security domain of whatever user executes it, not under the security domain of the package owner/definer.
Either GRATN EXECUTE on this Java resource to your new user, or alternatively, have your SXXML schema create a wrapper package for XMLGEN that is created using the default of definer's rights. Then, anyone that you GRANT EXECUTE to your wrapper procedure can use it.<HR></BLOCKQUOTE>
null

Similar Messages

  • Sharing portlet preferences among users

    Hello,
    Is it possible to share portlet preferences among users? So that the
    portlet preferences would be stored per portlet instance, and would be
    the same for every user?
    If this is not possible with Java portlets (JSR-168), can it be done
    with other portlet types (JSP portlet, page flow portlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preference attributes are user specific,
    it does not make any provision at API level or at semantic level for
    sharing preference attributes among users. If a portal/portlet-container
    implementation provides an extension mechanism for sharing preference
    attributes, it should be well documented how the sharing of preference
    attributes works."

    Betsy,
    Does WLP provide a way to allow a user to store only a subset of all
    his portlet preferences (using only JSR 168 api) ?
    My aim is to try to create a JSR 168 compliant portlet where few of
    the preferences are allowed to modified by the user (in the edit
    mode), while all other preferences may be modified only by a portal
    admin (thru admin view). However, the PortletPreferences.store()
    method seems to store values of all current preferences for the
    particular user, with the result that future changes by the admin are
    not reflected for any user who has already customized his
    preferences.You can let the admin propagate changes to the user via admin tools.
    There is an option in admin tools to do that.
    Setting the preference <read-only> attribute to 'true' does not help
    either, as the store method still attempts to store the value and
    then throws a ReadOnlyException.In this case, the setValue/setValues/reset and not the store will throw
    the ReadOnlyException.
    Why does WLP attempt to store all preference values; as opposed to
    setting only those which have been explicitly set using
    PortletPreferences.setValue(key, value)?The implementation does not keep track of changes explicitly in memory.
    Even if it keeps track of changes, I'm not sure if this would solve your
    use case.
    Will BEA be changing this in future releases, and is there a
    work-around for now?The suggested approach is to let admins propagate changes to users.
    Subbu
    >
    Thanks, Betsy
    Although WLP does not support the notion of sharing preferences,
    WLP lets you manage preferences in a hierarchy via the admin tools.
    When an admin sets preferences on a portlet, as long as users don't
    customize their portlets, all users get the same portlet instances,
    and hence share preferences.
    Subbu
    Bob said the following on 02/12/2004 04:08 AM:
    Hello,
    Is it possible to share portlet preferences amongusers? So that the
    portlet preferences would be stored per portletinstance, and would be
    the same for every user?
    If this is not possible with Java portlets(JSR-168), can it be done
    with other portlet types (JSP portlet, page flowportlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preferenceattributes are user specific,
    it does not make any provision at API level or atsemantic level for
    sharing preference attributes among users. If aportal/portlet-container
    implementation provides an extension mechanism forsharing preference
    attributes, it should be well documented how thesharing of preference
    attributes works."

  • Sharing Music files on the same Mac among user profiles

    How can I share music among user profiles on the same Mac? I have an itunes account for me but I don't want my kids to have one yet. So, I want to download music but then share some music files for their itunes on their profile. The Home sharing feature only discusses sharing among different computers on the same network.

    Check out:
    http://support.apple.com/kb/ht1203
    http://www.macosxhints.com/article.php?story=20090219133314985
    and:
    http://steve-on-sakai.blogspot.com/2009/07/really-sharing-your-itunes-library.ht ml

  • Use Sparse Bundle Disk Image for sharing library among users?

    Apple's knowledge base article HT1198 (http://support.apple.com/kb/HT1198) on sharing iphoto libraries among multiple users on the same Macintosh describes using a sparse disk image in the /users/Shared/ directory. For a Mac that uses a Time Capsule for Time Machine backups won't this require the entire iPhoto library to be backed up anytime a picture is added or modified?
    Would using a sparse bundle disk image instead work better?
    Also, HT1198 doesn't say anything about "Partitions" parameter setting in Disk Utility when creating a blank sparse image or sparse bundle disk image. Does it matter what setting is selected if the image is being kept on the Mac internal disk drive?
    Is there any difference between iPhoto '08 or iPhoto '09 when attempting sharing the iPhoto library among users?

    I believe it may require the entire bundle to be backed up. You'd best ask that question in the Time Machine forum. They would know more about the ins and outs of TM there.
    If you can afford an external FW hard drive that would be the best option by far. No worry about filling up the sparse bundle, and you could use the external HD as a work platform to help keep a minimum of 20 GB of free space on your boot drive for optimal performance of system and applications.

  • How do I stop sharing mail with other users on my computer

    How do I stop sharing mail with other users on my Macbook pro?

    You may have to set up different user accounts in the computer if you wish to
    continue sharing the computer among other people, and only use the Mail app.
    Otherwise, if you use a webmail such as yahoo, gmail, or other, just use a browser
    and login each time; then there is no saving of your email to the computer as such.
    I've never used an email client software, nor had an ISP based email account. So
    my numerous computers have never downloaded email into software. No loss.
    But the answers do include setting up extra user accounts, not admin level, so the
    other users do not mess with the operating system; a standard account or just a
    guest account to use a browser to access web-based login email accounts, works.
    There are third-party email client for OS X, some are free applications, others are
    part of a larger browser product, such as SeaMonkey, & other Mozilla derivatives.
    They provide an email segment or client aspect; unlike Firefox that's a browser.
    Setup information should be within the Help viewer in the computer itself. Or by a
    simple search online, including the OS X version and any email client software
    your computer may have installed. Some browser software includes email client.
    Also there are several ways to go in this matter. I don't see questions, only answers.
    To learn how the Mail application works, if you want to import everyone's mail, then
    figure how to set up user accounts in the OS X. Or use web-mail & login by browser.
    Hopefully you can find the best solution for the unasked question.
    Good luck & happy computing!

  • Xml import of users and groups - webex connect mode

    Hi all,
    is there a way to import a *.xml file with users/groups?
    We´re using Jabber for Windows in a cloud based environment and i´m wondering if its possible to import /export users in the same way it was possible with the webex connect client...
    e.g.
    ?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <buddylist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <group>
    <gname>Sales</gname>
    <uname>[email protected]</uname>
    </group>
    Steffen

    We have almost completed this feature and if all goes to plan we'll include the feature in the next MR, 9.2.3 which be available early July.

  • Sharing Library with Multiple Users on  SAME COMPUTER

    My wife and I use Windows XP Pro. We imported all of our CDs to the iTunes on her user account. How do I access or import the library to the iTunes on my account? I want to avoid logging into her account to listen to the music.
    The help index has info on sharing music for multiple computers on a network but I didn't see an answer for sharing music between multiple user accounts in XP on one computer. PLEASE HELP!!!!

    Use tweakUI, google on it to get it and install it.
    More details are here or do a search discussions for "TweakUI" if you need more.
    http://discussions.apple.com/thread.jspa?messageID=1175181&#1175181

  • Sharing music with different users on the same computer

    Please help i can not configure my computer share music from the itunes library with others users whit different devices

    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
    You could set up two completely separate libraries and share music via Home Sharing.
    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
    Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
    Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
    Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804

  • Sharing iPhoto library between users on same imac

    I just updated to the latest iphoto (9.5.1).  Previously, I've had the library located in a shared directory and each user on the computer used that library.  Now with the update, I get an error that I don't have the correct permissions.  iPhoto prompts to fix it, but then is unable to.  If I rebuild the library, then the other users do not have the correct permissions.  The permissions for the file itself is set to read and write for everyone.  I don't want to waste hard drive space with 2 or more full libraries that are all identicle.  Is there a setting somewhere I'm missing?

    Yes, but what if you want to keep it on the Mac drive?
    To be realistic an external drive, is not practical or functional when people are moving a macbook around all the time; not to mention the lag with a big library if it's a USB drive.
    So is it possible on the original Macbook drive?

  • Sharing folders for 2 users on the same mac

    Hey
    I have a Vista Virtual Machine (VM) created in VMware fusion and it is stored on a partition on my Bay 2 HDD in my mac pro. it all runs fine when i log in since i am the admin on the box.
    I created a Standard user account for my wife. I want my wife to open up VMware Fusion and launch the Vista VM as she pleases to do her work under her account. So i went to sharing in system preferances and selected the folder that contains the VM in "Shared folders" and under "Users" i gave her account read & write permissions. When i log in as my wife and try to launch the VM it says she does not have permissions. I can browse to the folder without any issues. I get the same message if i were to double click the VM also.
    I then logged in as the admin and gave her account admin privileges to see if that will fix the issue. when i log in under her account i still get don't have permissions. If she has admin privileges should't she able to have access to any folder on my mac?
    The goal is to leave my VM on my Bay2 HDD and have both of us launch Vista VM using VMware fusion successfully from this location under both our accounts
    What am i doing wrong here?
    Thanks
    Rpk

    Admin permissions does not give you blanket rights to any file. It only gives you the ability to give yourself permission to access a file.
    doogald is correct to observe that you have to give your wife permission to read and write to the files inside the folder, and not just read and write permissions on the folder itself. In addition, if your wife doesn't have at least read permission on the folders in which the VM folder is contained, all the way up to the root folder, then she may continue to have problems.
    If VM Fusion will allow this, it might be best to move the folder which contains the VM to /Users/Shared. You will still need to ensure that your wife has read and write permission for the folder +and its contents+ but the purpose of /Users/Shared is to share files and folders. This way you won't need to manipulate your permissions beyond making sure the shared folders and files themselves are read-writable by you and your wife.

  • How to list all calendars that are shared to a specific user?

    Hi,
    Using Exchange Management Shell/Powershell, I want to list all calendars that are shared to a specific user 'myuser'. 
    I have tried different approaches; list all calendars for all users and then figure out which ones are shared to 'myuser', list all mailboxfolders for 'myuser' with path 'calendar' and sort out the shared ones, ... No luck so far.
    Anybody?
    babu

    Hi
    If you try this command:
    Get-MailboxPermission MyUser

  • Error trying to run SSIS Package via SQL Server Agent: DTExec: Could not set \Package.Variables[User::VarObjectDataSet].Properties[Value] value to System.Object

    Situation:
    SSIS Package designed in SQL Server 2012 - SQL Server Data Tools
    Windows 7 - 64 bit.
    The package (32 bit) extracts data from a SQL Server db to an Excel Output file, via an OLE DB connection.
    It uses 3 package variables:
    *) SQLCommand (String) to specify the SQL Statement to be executed by the package
    Property path: \Package.Variables[User::ExcelOutputFile].Properties[Value]
    Value: f:\Output Data.xls
    *) EXCELOutputFIle (String) to specify path and filename of the Excel output file
    Property path: \Package.Variables[User::SQLCommand].Properties[Value]
    Value: select * from CartOrder
    *) VarObjectDataSet (Object) to hold the data returned by SQL Server)
    Property path: \Package.Variables[User::VarObjectDataSet].Properties[Value]
    Value: System.Object
    It consists out of 2 components:
    *) Execute SQL Task: executes the SQL Statement passed on via a package variable. The resultng rows are stored in the package variable VarObjectDataSet
    *) Script Task: creates the physical output file and iterates VarObjectDataSet to populate the Excel file.
    Outcome and issue:The package runs perfectly fine both in SQL Server Data Tools itself and in DTEXECUI.
    However, whenever I run it via SQL Server Agent (with 32 bit runtime option set), it returns the errror message below.
    This package contains 3 package variables but the error stating that a package variable can not be set, pops up for the VarObjectDataSet only.  This makes me wonder if it is uberhaupt possible to set the value of a package variable
    of type Object.
    Can anybody help me on this please ?
    Message
    Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  6:40:20 PM  DTExec: Could
    not set \Package.Variables[User::VarObjectDataSet].Properties[Value] value to System.Object.  Started:  6:40:20 PM  Finished: 6:40:21 PM  Elapsed:  0.281 seconds.  The package execution failed.  The step failed.
    Thank you very much in advance
    Jurgen

    Hi Visakh,
    thank you for your reply.
    So, judging by your reply, not all package variables used inside a package need to be set a value for when run in DTEXEC ?
    I already tried that but my package ended up in error (something to do with "... invocation ...." and that error is anything but clearly documented. Judging by the error message itself, it looks like it could be just about anything. that is why I asked my
    first question about the object type package variable.
    Now, I will remove it from the 'set values' list and try another go cracking the unclear error-message " ... invocation ...". Does an error message about " ... invocation ..." ring any bells, now that we are talking about it here ?
    Thx in advance
    Jurgen
    Yes exactly
    You need to set values only forthem which needs to be controlled from outside the package
    Any variable which gets its value through expression set inside package or through a query inside execute sql task/script task can be ignored from DTExec
    Ok I've seen the invocation error mostly inside script task. This may be because some error inside script written in script task. If it appeared after you removed the variable then it may because some reference of variable existing within script task.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Oracle BPM 11g Workspace -  Load Management Among Users

    Hi,
    We are using version Oracle BPM 11g - 11.1.1.5 Feature Pack.
    Kindly throw light how to distribute work among users in a group. This can be achieved using group rules in BPM workspace.
    1. Logged in as weblogic in bpm workspace.
    2. Go to Preferences -> My Rules -> Other Rules tab.
    3. Enter the group name and click search icon.
    4. Select the group & click green plus icon to create a rule.
    5. Here, select the Round Robin option.
    6. Save the rule.
    Yet tasks are assigned to all the users in the group & not in Round Robin fashion.
    Please help.
    Thanks.
    Edited by: user10307325 on May 9, 2012 10:33 PM

    Were you able to achieve this . Maybe this can help -
    Check hbuelow's reply @ Unable to see the application in BPM Workspace for Sales Quote tutorial
    Edited by: Sudipto Desmukh on May 9, 2012 7:02 PM

  • Oracle 10g : XML* packages have become synonyms of DBMS_XML* paclages

    Hello,
    I noticed that old 9i XML* packages are now synonyms for DBMS_XML* packages.
    Those package in Oracle 9i were different from the DBMS_ packages.
    Now my application is not working anymore because we are now Is there a kit to install on 10g to get the old packages ?

    David
    The decsion to prevent access to the filesystem was taken as part of the general process of hardening the database for security reasons.
    I use XSL with includes in the following form without any problems
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="http://www.w3.org/2001/XMLSchema" xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xfiles="http://xmlns.oracle.com/xfiles" xmlns:xr="http://xmlns.oracle.com/xdb/XDBResource.xsd">
         <xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html" method="html"/>
         <xsl:include href="/cabo/XSL/XFilesCommon.xsl"/>
         <xsl:variable name="reverseSort">

  • How to access XML packages in Applet?

    Hi all,
    I am new to XML.
    I just found, in any Java Applet program, if I include a declartion from Java XML packages, like this.
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    Java will comiple, but when I try to run that java applet, I got an error message like this:
    java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
    at LogoBounce.init(LogoBounce.java:23)
    at sun.applet.AppletPanel.run(AppletPanel.java:344)
    at java.lang.Thread.run(Thread.java:484)
    I searched all the related posts in this forum and found two solutions.
    1 One suggest to use
    DocumentBuilderFactory factory = new com.sun.xml.parser.DocumentBuilderFactoryImpl();
    but I suspect DocumentBuilderFactoryImpl() method is in old version Java XML. Because I can't find it in the lates API document.
    2 Change the .Policy file
    grant {
    permission java.util.PropertyPermission "javax.xml.parsers.DocumentBuilderFactory", "read";
    I tried this, but it dosen't work.
    I am very sure my .jar file is installed correctly and my Classpath is correct. Because I can run sample examples provided by Sun. (they are all Appliction programs).
    Can anyone give me a suggestion on this issue?
    Thanks.

    Say, doesn't this sound like the question in http://forum.java.sun.com/thread.jsp?thread=194313&forum=4&message=636602

Maybe you are looking for

  • Issue in Assignment of company codes to controlling area  TKAO2 and OKKP

    Hello Gurus, I configured company code and controlling area in development client  and transport to Testing client.But in QA client I can see  in the Table TKA02 and respective assignment of company code to controlling area .But if I am checking in T

  • BI web queries in HR portal without federation

    Is it possible to display BI queries in a portal that is not the "BI portal".  My landscape is as follows. Have 1 EP 7 HR portal running ESS Have 1 Dual stack NW2004s system running BI ABAP, BI JAVA, and EP. CAn you get creative and use old bex repor

  • Schedule Report in Oracle SQL Developer

    Just wonder if Oracle SQL Developer has capability to setup a schedule to run reports automatically as Microsoft*SQL does. Please advise.

  • Can ODBC set by Instant Client be used in MS SQL linked Server?

    Hi: I want to know if a ODBC set by Instant Client can be used to set a linked server in MS SQL. I follow the install instruction about Instant Client. I create a ODBC setting and the connection tested successful. I also build it in DTS package in MS

  • Charge led blinks every second when Laptop NX9420 is turned off.

    I have a new battery, in a HP Compaq NX9420 and it can run the laptop for 2 hours isch, it can also run it on power adaptor only, battery removed, so both battery and charger is ok. But, When turning off the laptop from within windows it goes off and