Cannot grant_permission on a library

Hello I am trying to access to a DDL C++ com object using a java code (JNI) in the database 10.1 on a windows 2003 server.
Following the step that I made :
- copy my DLL in the $ORACLE_HOM/lib
- I load my library : CREATE LIBRARY JNIUNIVOPT AS 'D:\oracle\product\10.2.0\db_1\LIB\JNIUNIVOPT.dll';
- load the class :
CREATE JAVA CLASS USING BFILE (Bfile_UNIVOPT,'JNIUNIVOPT.class');
CREATE JAVA CLASS USING BFILE (Bfile_UNIVOPT,'JNIUNIVOPTConstants.class');
CREATE JAVA CLASS USING BFILE (Bfile_UNIVOPT,'JNIUNIVOPTJNI.class');
CREATE JAVA CLASS USING BFILE (Bfile_UNIVOPT,'UOA_FPARRAY.class');
CREATE JAVA CLASS USING BFILE (Bfile_dir, 'UnivoptTests_JNI.class');
CREATE JAVA CLASS USING BFILE (Bfile_dir, 'Uoa');
- Publish my test class :
CREATE OR REPLACE PACKAGE uoa AS
FUNCTION price return NUMBER
AS
LANGUAGE java
NAME 'Uoa.price() return double';
end;
When I test I get the error :
ORA-29532: Java call terminated by uncaught Java exception: string
Cause: A Java exception or error was signaled and could not be resolved by the Java code.
In the Udump i get the following log :
java.lang.ExceptionInInitializerError at com.mbrm.universal_addins.UNIVOPT.JNIUNIVOPT.UOA_MULTITHREAD(JNIUNIVOPT.java:429) at Uoa.price(Uoa.java:78)
Caused by: java.security.AccessControlException: the Permission (java.lang.RuntimePermission loadLibrary.JNIUNIVOPT) has not been granted to MBRM. The PL/SQL to grant this is dbms_java.grant_permission( 'MBRM', 'SYS:java.lang.RuntimePermission', 'loadLibrary.JNIUNIVOPT', '' )
When I try to execute the procedure dbms_java.grant_permission, I get an other error :
ORA-29532: Java call terminated by uncaught Java exception: string
Cause: A Java exception or error was signaled and could not be resolved by the Java code.
At this point I am locked. My java test clas Uoa work at Windows level.
If any people can help-me I will apreciate
Thanks in advance

Hello I Discuss to the support and I get my answer :
CAUSE DETERMINATION
====================
The grant operation fails because it is restricted by JVM security policies. During Oracle
JVM installation, the java.lang.RuntimePermission is added to the java policy ta
ble, and afterwards, all users including SYS, are restricted from granting this
permission in future.
SOLUTION / ACTION PLAN
=======================
To implement the solution, please execute the following steps:
-- connect to database as SYS user
SQL> connect / as sysdba
-- identify the key ID of java policy that prevents any user (including SYS) to grant 'java.lang.RuntimePermission'
for LoadLibrary method
SQL> select seq from dba_java_policy
where type_name = 'oracle.aurora.rdbms.security.PolicyTablePermission'
and name = '0:java.lang.RuntimePermission#loadLibrary.*';
SEQ
54
-- disable this java policy
SQL> exec dbms_java.disable_permission(54);
-- grant java.lang.RuntimePermission for 'loadLibrary.JNIUNIVOPT' successfully
SQL> exec dbms_java.grant_permission( 'MBRM', 'SYS:java.lang.RuntimePermission', 'loadLibrary.JNIUNIVOPT', '' );
-- enable the restricting java policy again
SQL> exec dbms_java.enable_permission(54);

Similar Messages

  • I have a new Windows tablet computer with limited hard drive space, and cannot transfer my itunes library to the hard drive. Can I run t media from an external hard drive? If so, how do I transfer my files?

    I have a new Windows tablet computer with limited hard drive space (32 GB), and cannot transfer my itunes library to the hard drive. Can I run itunes from an external hard drive? I have tried to follow some of the directions on this site, but am having no success. Thanks.

    iTunes will run fine with the media on an external drive.
    However, I suggest that a tablet computer with a tiny hard drive is not ideal as the primary computer for managing an iTunes library, even a small one. If you have another machine, perhaps a big, boxy, inexpensive old desktop with a decent amount of storage, that might be a better choice.
    http://support.apple.com/kb/HT1364

  • On my Mac pro I cannot see my iTunes library in my slideshow as a music selection

    I cannot see my iTunes library in iPhoto to add music to a slideshow

    Hi Mary3400,
    I'm not sure which version of iPhoto you are using, but see if the troubleshooting in this article helps.
    iPhoto '11: Add music to a slideshow
    The top section explains how to, the second section is for if you don't see your iTunes library as a source.
    Best regards,
    Nubz

  • Home sharing - cannot connect to media library - iOS 4.3.1 not working

    This question might be answered... Posting anyway in case it helps anyone else (did not find answer when I searched). Feel free to ignore or contribute as you wish.
    iPhone 3GS currently streaming a movie from MacBook Pro iTunes library so home sharing is working. It connected fine the first try.
    iPad has not been able to connect. When it tries, it shows the library in the list. I select the library and the spinner starts. After about a minute (60 seconds) the error says Cannot connect to media library.
    I have tried logging both devices off the wifi and logging back on while they are sitting right next to each other.
    My wifi is set up with the wireless modem (n) with an Ethernet cable to another router used simply to extend the signal to the other side of the house (same network name -- this will probably cause some questions but I can't be sure it's the problem) ... So far AirPlay has worked fine, Apple tv works fine.
    The library is not too large, only 1,000 songs and a couple dozen movies.
    Not sure what other variables would be relevant.
    iTunes 10.2.1
    OSX 10.6.7
    MacBook Pro
    iPad (not iPad 2) iOS 4.3.1 (8G4)
    iPhone 3GS iOS 4.3 (8F190)
    Hmm... I wonder if that is the problem. The version on the iPad (not working) is newer than the iPhone (working).
    I thought I just updated both to the newest but I guess 4.3.1 is only a few days old.
    Might have just answered my own question.

    There is definitely something wrong with 4.3.1.
    My setup:
    iMac OS X 10.6.6
    iTunes 10.2.1(1)
    iPhone 4 4.3.1 (8G4), Remote app on this phone was working fine with ATV's until I upgraded it to 4.3.1 today. Now it can not find the home share library or the ATV's.
    iPad 2 32GB Verizon 4.3.1 (8G4), Just upgraded to 4.3.1, not seeing home share library at all.
    ATV2 OS 4.3 (8F202), Software 4.2.1, Was working until the last update, now don't see home share library at all.
    ATV2 OS 4.2.1 (8C154), Software 4.1.1, This one I did NOT get the update, works fine with no issues at all.
    I have tried to turn Home Share On/Off, turn ATV's/iPhone/iPad On/Off and reset Home Sharing. Nothing works. I think it is pretty telling that the ATV without update works fine were all devices with 4.3.1 stopped working.
    Apply please fix!!

  • I cannot get my iTunes library from my old computer to my new one. The old computer is so messed up that I cannot even get google to open. I tried to copy to an external hard drive and the music was there until I went to upload to the new computer.

    I cannot get my iTunes library/music from my old computer to my new one. The old computer is so messed up that I cannot even open a browser.I tried to copy to an external hard drive and the music was there until I went to upload to the new computer. I disconnected my old computer so I will have to reconnect it I am sure. thank you for any help. Last time I transferred I used a product I purchased. That was a long time ago.

    First of all make sure that you've definitely backed up the movies to your external hard disc.
    In iMovie click on any event you don't want, go to the file menu and select 'move event to trash'. Then do the same for any unwanted projects - 'move project to trash'. Quit out of iMovie and empty the trash.
    Hope that helps!

  • I recently upgraded to Mavericks and now don't have access to iphoto.  I cannot find my iphoto library to back the photos up before upgrading the iphoto but see the photos when I try to change screensaver?  Where are my photos so I can back them up?

    I recently upgraded to Mavericks and now don't have access to iphoto.  I cannot find my iphoto library to back the photos up before upgrading the iphoto but see the photos when I try to change screensaver?  Where are my photos so I can back them up?

    The iPhoto library should be in your user folder/Pictures unless it was moved.

  • Cannot attach PL/SQL library APPCORE... forms6i

    Hello,
    I am trying to open the template.fmb form and I cannot seem to get forms to recognize the FORMS60_PATH variable in the registry.
    I transferred (in binary) all the .pll files from $AU_TOP/resource to a local directory ORACLE_HOME\FORMS60\resource.
    I transferred (in binary) TEMPLATE.fmb and APPSTAND.fmb to the same directory.
    I set the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\FORMS60_PATH to 'C:\oracle\ora806\FORMS60\resource' (without the quotes).
    I added HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORACLE_APPLICATION and set it to 'TRUE'
    I added the FORMS60_PATH to the system variable file in windows to 'c:\oracle\ora806\FORMS60\resource'.
    I rebooted the machine.
    I am still getting the same error message.
    I reinstalled forms so that it was the only Oracle product on my machine.
    version (6.0.8.24.1)
    I am running windows XP SP2
    Can anyone tell me what I am missing? Or why I cannot get the libraries to attach?

    There is a whole list of them that won't attach -
    FRM-10102: Cannot attach PL/SQL library APPCORE. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPDAYPK. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library VERT. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library PSAC. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library CUSTOM. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGILUTIL. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGILUTIL2. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGI_CBC. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPCORE. This library attachment will be lost if the module is saved.
    --- all Oracle .pll files that are required to modify the template form.... APPDAYPK, APPCORE,VERT, etc. I have not tried attaching (and don't actually have) a personal library
    Message was edited by:
    bonnibelle

  • HT1151 I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install

    I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install okay

    Hello Valerie Anderson,
    I'm Harry from Norton Support team. Please check the information provided in a similar thread here:
    https://discussions.apple.com/message/21854775#21854775
    Let me know if this helps.
    Thanks!
    Harry

  • TS1368 I cannot sync my iTunes library to my iphone 5 can you help I get error message connection could not be established to iPhone

    I cannot sync my iTunes library to my iphone5 can you help I get error message a connection could not be established to the iPhone

    Yes it is.
    Initially I got an error message saying can't connect because of Date & Time settings.
    Went in and re-verified that those were correct.
    Tried to update downloads and then got a new error message: "Can't connect to iTunes Store".
    I live in the US and that's where I created my iTunes a/d and Apple ID.
    I am currently in India --- can that coause confusion re date & time?

  • Home sharing "cannot connect to media library"

    I've had a few successful home sharing moments and it really is brilliant, trouble is its a bit flakey when it comes to connection reliability.
    I am using iTunes 10.2.2 iOS 4.3.2 (both devices) I've set the password and user account up on both my iPad and iPhone and  TV and all of them work fine, no problems.
     TV seems to be the most reliable one after I made sure it remains plugged in and doesn't have its power removed.
    Then, the next time I go back after a couple of days or hours they show "cannot connect to media library" what do I need to do to stop this from happening, to make it just work as it should?

    Hi
    I'm afraid I'm having exactly the same problem.  I've not experienced an issue like this for a long time.  I've read other posts and tried each suggestion but no joy.  This really shouldn't be that difficult. 
    Any thoughts out there????

  • I cannot see my itunes library on the main menu under computers despite the network being active and the home sharing on on both the devices the mac and apple tv. Any ideas?

    I cannot see my itunes library on the main menu under computers despite the network being active and the home sharing on on both the devices the mac and apple tv. Any ideas?

    Hi Monty,
    Sorry to say it, but this is normal for Apple TVs. I've owned a TV2 and a TV3, and neither lasted for an entire year. They are quite fragile and of low quality, and as you can see here, quite fussy even when they work. The wi-fi receiver on these are cheap and unreliable.
    Consider the $99 an annual rental fee. They rarely work for a whole year, so if you are going to use the platform, you will have to replace them constantly.
    Also, when one dies under warranty, never, never send it to Apple for repair. Go to the Apple Store for replacement. I sent my ATV3 in for warranty repair using a box sent to me by Apple, and although FedEx tracking showed it was accepted by Apple, it was never seen again. Apple won't replace it or even return my calls.

  • Cannot read remote iPhoto library after upgrade

    I have an iPhoto library on a remote hard drive which was completely readable and accessible prior to the recent upgrade of iPhoto.  I can access and read the library on my MacBook, but now, cannot read the iPhoto library on the remote drive.  It will not convert to the new 'format' to allow it to be readable.  Help.

    I had the same problem. Luckily, my remote drive was connected to another Mac Server. I used Screen Sharing to login and open iPhoto remotely to upgrade my libary. Unfortunately, I was not able to. It hung for days not being able to upgrade. What I then did was copy the library to another location. I then created a new library and imported all my photos from the old library. I now had a new library I could work with much to the loss of my previous database. The trouble does not end though. I tried remotely accessing the new iPhoto library and iPhoto would continuously crash and/or was extremely slow. I thought then that maybe it might be because the enormity of photos I had. I decided I would break up my photo library then by year. I started with 2013. Once I'd created my 2013 library, I tried to access this remotely. I had the same problem. iPhotos was extremely slow and volatile. Keep in mind, this is an all new iPhoto library with only my 2013 photos in it. It's lean and new and still causing problems.
    ... skip to the end ...
    I installed picasa. I'm happy. Sorry iPhoto. I wanted to make it work with you.
    <Edited by Host>

  • I recently installed IOS 8.02 and Photoshop Express cannot access my full library of images. What could be the problem? Also, w

    Problem with Photoshop Express IOS 8.02 - I recently installed IOS 8.02 on my iPad Air and Photoshop Express cannot access my full library of images. Also, when opening the app, I'm not given the option of selecting "Open from Adobe Revel", "Take a Picture" or "Open from Camera Roll".......I am taken directly to a small selection of images. The only images that show up are the saved photos previously adjusted through Photoshop Express. I also updated my iPhone 5s with IOS 8.02 and Photoshop Express works perfectly on the iPhone with all images in my library visible.
    What could be the problem?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Cannot add songs to library

    Afetr uprading to Itunes 11 I cannot add songs to Library. I need Help.

    I hope someone can help as I am having a similiar problem. I have multi users on one macbook. I have Itunes for all users set to the same shared folder for music (to eliminate multi copies of music files) I just added new music to the shared folder by dragging it into the folder (not thru itunes). The user I orginally did the dragging and dropping in, I was able to add to the library however, Now I am not able to add to the library on the other users. When I go to add to librabry and select the itunes folder with all the music nothing happens. Even if i try one song folder at a time nothing happens. I have had this macbook for a week and am new to mac (this is my first mac) I am geting frustrated so any and all help would be greatly appreciated.
    Thanks

  • Error:HDLCompiler:104: Cannot find float_alg_pkg in library ieee_proposed

    When I synthesize the VHDL code from Vivado HLS in Xilinx ISE, some errors appeared.
    All the errors are caused by the ' aesl_fp_wrapper.vhd ' file and the first one is described like below:
    ERROR:HDLCompiler:104:HDLCompiler:104 - "/home/xq32/code/rvc-cal/shared-cal-programs/meanShift/HLSBackend0801/HLSBackend/TopVHDL/aesl_fp_wrapper.vhd" Line 681: Cannot find <float_alg_pkg> in library <ieee_proposed>. Please ensure that the library was compiled, and that a library and a use clause are present in the VHDL file.
    The code is like:
    Library IEEE;
    use IEEE.std_logic_1164.all;
    Library work;
    use work.all;
    Library ieee_proposed;
    use ieee_proposed.float_pkg.all;
    use ieee_proposed.float_alg_pkg.all; (ERROR HAPPENED HERE)
    entity AESL_WP_FLog is
      generic (
        NUM_STAGE : INTEGER := 13;
        din0_WIDTH : INTEGER := 32;
        din1_WIDTH : INTEGER := 32;
        dout_WIDTH : INTEGER := 32);
      port  (
        clk, reset, ce : std_logic;
        din0 : in std_logic_vector(din0_WIDTH-1 downto 0);
        din1 : in std_logic_vector(din1_WIDTH-1 downto 0);
        dout : out std_logic_vector(dout_WIDTH-1 downto 0));
    end AESL_WP_FLog;
    More information:
    The Vivado HLS generate a folder: ieee_FP_pkg
    The following files and folder are inside it:
    aesl_fp_wrapper.vhd     fixed_pkg_c.vhd  fuse.xmsgs
    fixed_float_types_c.vhd  float_pkg_c.vhd  isim
    Within the isim folder: isim>work>fixed_float_types.vdb
    Does anyone have idea?
    Many thanks

    You should add a library which means <float_alg_pkg> .add to library

Maybe you are looking for