I load a package into SYS schema but cant resolve references made from a different sc

I loaded javamail-1.2 (and associated dependencies) into the SYS schema, just because it has classes under the same package root "javax".
If I try to load a second class having an import like "javax.mail.*" into a schema other than SYS, I get a message "can't find xxx".
How can I make the SYS new classes visible to a different schema?
Thanks for any help.

1) A WHEN OTHERS exception handler that does not re-raise an exception is almost certainly an error. In your case, you are writing the error message out via DBMS_OUTPUT, but unless your front end happens to try to read and display the DBMS_OUTPUT buffer, the error will be ignored. You realistically want to remove that exception handler.
2) Creating an index will not raise a NO_DATA_FOUND if there is no data in the table, so that exception handler is superfluous.Thank you very much, now that I removed that Exception it is telling me insufficient rights.
3) If you want User A to be able to create an index in User B's schema, User A would need to be granted the CREATE ANY INDEX privilege (directly, not via a role). If you are getting a permissions error creating the index after removing the incorrect exception handlers, that is likely the problem. If you are getting a permissions error dropping the index after removing the incorrect exception handlers, you would need to ensure that User A has been granted the DROP ANY INDEX privilege.I thought that since I had specifically granted the INDEX privledge to SchemaA on a specific table in SchemaB that Schema A would be able to drop and create indexes on that specific table. However.. having just looked again at the documentation it would seem that I would need to be able to do exactly as you say and have the ANY to be able to create it in another schema.
4) Since the various ANY privileges (CREATE ANY INDEX, DROP ANY INDEX, etc) are rather powerful and not restricted to a particular schema, is there a logical reason not to put this code in Schema B to begin with?Nothing in particular other than attempting to keep it all with the "parent" schema so that the select into's are run from the parent and populate the child (schemab). I guess I can have Schema A call the package in schema B and execute it however will that execute as Schema A or B?
Thanks for such a fast and detailed response

Similar Messages

  • Java error while trying download jar file into SYS Schema

    Hi,
    I am trying to use UTL_DBWS package for Consuming Web Services in Oracle 10.2.0.4
    I donwloaded latest copy of the dbwsclient.jar file from the below link.
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    I chose the below option for downloading the jar file since i use 10.2.0.4 oracle version.
    10.1.3.1 Callout Utility for 10g and 11g RDBMS (ZIP, ~13MB)
    I tried to download the jar file into SYS schema using the below command.
    loadjava -u sys/password -r -v -f -genmissing -s -grant public D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientws.jar D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientdb102.jar
    But i keep getting the below error.
    class oracle/security/wss/interceptors/ClientSecurityDescriptor: resolution
    existing : Failures occurred during processing
    Can you please advice how do i resolve this error.
    Regards,
    MSP

    I suspect that there is more to the error message than what you are reporting.
    If so please post the entire message.

  • ITunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video. Any thoughts on why not?

    iTunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video.
    I'm using 2 PCs, each with video files (.MP4) on their respective hard drives, and also one external drive with other video files on that I move between the two devices.
    iTunes on one PC will (sometimes!) let me add video content from the external hard drive, which is clearly iTunes-compatible, because I can then copy it over to my iPod Nano. On the other PC, I couldn't load that same video from the external hard drive. But if I copied that same video on to the PC's internal hard drive first, then iTunes would let me import it. That was yesterday - now iTunes is refusing to load any files from the internal or external hard drive(s).
    Any thoughts or suggestions, please?

    So I tried copying the files from the external hard drive to a USB drive. I could import the video files from the USB drive!
    So then I tried importing the same files on to my PC's internal hard drive again. I could import the video files from the internal hard drive!
    So then I tried to import the very same files that failed to load on the very same PC previously. I could now import them!
    I still can't import from the external hard drive directly, though.
    I really don't think I like the process of importing things into iTunes very much... any suggestions on what's causing any of this behaviour would be very interesting.

  • Got a replacement Ipod Touch 3rd Generation and backed up to store version on computer and now it will not work. Goes into restore mode but cant restore. Any suggestions?

    Got a replacement Ipod Touch 3rd Generation and backed up to store version on computer and now it will not work. Goes into restore mode but cant restore. Any suggestions

    What happens when you try to restore? Error message?

  • "Loading Public Synonyms" in SYS schema hangs indefinitely

    When I try to expand "Public Synonyms" in SYS schema tree, the "Loading Public Synonyms" message window appears and hangs indefinitely without giving any result.
    Trying the same in Reports/All Objects/Public Synonyms I get the result within a second.
    What's wrong?
    I'm running SQL Developer 1.1.2.25.79, Oracle Database 10g R2 (10.2.0.3) on 32-bit RHEL-4.4 AS using Sun jdk1.6.0_01.
    N.J.

    If you do a select count(*) from dba_synonyms where owner='PUBLIC' you'll get a figure around 20,000 (I get 19697 from a 10.2.0.1 database out of a total of 23992). So, it'll not only take a while to return all the public synonyms but it'll also take a while to sort the output.
    However, I've created a test report with the following SQL and it works quickly
    select *
    from dba_synonyms
    where owner='PUBLIC'
    I guess it's a bug in SQL Developer - perhaps one of the development team could confirm?

  • I am loading a video into Photoshop CC but getting no audio track

    When I load an mov or mp4 file into my photoshop CC installation. I get no audio track showing up.
    When I add the video as a wmv file, an audio track shows up, but the video pixels go to transparent as soon as I click the Play button (and I can hear no sound, although there appears to be a track playing). Nothing is muted.
    Please advise.
    Thank you.

    Thanks. I realize I could use other software I but my question has to do with Photoshop CC. Details on the video files will make a difference to the answer? How so?
    Sent from my BlackBerry 10 smartphone on the Rogers network.

  • How to move functions and procedures from packages into a schema?

    Hello,
    I have below requirements for a homework and my question is if someone can point me in the right direction to find documentation which can help me solve the below. Any information will be very much appreciated. Thank you.
    Write procedures and functions (included or not in packages)under the form scripts  .txt or .sql . Once they have been launched in SQL developer they should more the functions and the procedures from the packages in the current schema. If the current schema contains only 2 packages, pac1( with procedures p11,p12 and the functions f11,f12,f13) and pac2( contains the following procedures p21,p22,p23 and the functions f21 and f21( overloading cases), the execution of the scripts will generate the following effects:
    The procedures p11,p12,p21,p22 ,p23 and the functions f11,f12 and f13 will be created in the current schema.
    pac2 will contain 2 instances of the overloading function- f21; they will be kept in the package, without being created in the current schema; so all the procedures/functions overloaded will be kept in the original packages
    If pac1 contains variables, cursors and public types, we will keep only the package specifics( and delete the body);generally if the packages do not contain procedures or functions overloaded the body will be deleted and if no variables, cursors, public types then we will delete the header.
    If in the triggers, procedures, functions  we will call procedures/functions from the packages(the procedures and the functions moved in the current schema) they reference will need to be updated ( via amending the body or recompile) for example if pa1.p12 will need to be replaced with p12.
    The scripts will have to have numbers in the following series( 01....n) and characters that explain the content.

    My only advice would be to remember that these are public forums and if YOU can find them, so can your instructors.
    Also, those are horrible procedure and function names
    This assignment seems to be around overloading pl/sql objects and order of precedence...do a search on the Oracle Docs around overloading and inheritence
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28371/adobjplsql.htm#i21148

  • I was given an older ipod as a gift and want to load the songs into my computer, but it says that I can not access the sync feature.  I registered for an Apple ID and when I tried it won't let me register.

    When I was given the iPod it had a GREAT load of songs already on it. (That was part of the whole "gift" thing.)  I want to sync it and create playlists in my own library and copy the songs to my computer's library too.  I applied for an Apple ID, and find that this is so old that eventhough it was NEVER registered it is listed under a weird username and won't let me register as the new owner to access the music and sync.  What do I do?  It is an older version (I'm assuming) with 80G and only 25 have been used.  I can't access the music already loaded and don't want to lose the mp3 files I have in my existing library now too. 
    Any help is greatly appreciated.

    Not sure if this helps:-
    The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered  owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work.  Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple  Store and explain that they were gifted to you and ask how you can use them.  The best way to gift music files is to buy the gift tokens and give these. Hope above helps.

  • SSIS 2012 package runs under SSDT but fails with permission error from SSMS

    I have a simple package that pulls data from a text file located on a Windows file server that runs successfully from SSDT on my client.
    However, when deployed and running the package via SSMS from the client, the package fails with a permission error, with the error stating that the data file could not be opened.
    I have done some investigation and have seen some info that states that a package run from SSMS runs under the account on which you are logged on to the machine, which I would have thought is correct. This is therefore the same account when running from
    SSDT (which works) and I can see from the SSIS Report that the 'Caller' is stated as my account, so if this is the case why isin't the package working.
    I've also seen an MSDN forum answer which stated the opposite that the package when run from the IS Catalog in SSMS doesn't run under the account on which the client is logged on with, which is the opposite of the above, but doesn't indicate which account
    it is using.
    So what account is being used to run SSIS 2012 packages from the IS catalog from within SSMS ?
    If it is the account on which you are logged onto the client running SSMS, why is it not working when the account has the necessary permissions (as provent when running from SSDT) ?

    I am aware it's using my account and not one of the service. There's nothing in the posts above which suggests I'm using the service account. I don't know why people keep assuming that I'm running the package from a job. I've never stated that in any of
    the posts I'm running the package from a job. It's been made quite clear I'm running the package from the IS Catalog on SSMS:
    "This is simply selecting a package from the IS Catalog, right-clicking and selecting Execute package.", as per the Nov 18 post, and in the original post "....So what account is being used to run SSIS 2012 packages from the IS catalog from
    within SSMS".
    Just to be clear, the package is NOT being run from a job. It's using the Execute package option when selecting the package within SSMS from the IS Catalog and it's running under the account on which I am logged on to my client.
    Please read carefully. I was just answering your question "So what account is being used to run SSIS 2012 packages from the IS catalog from within SSMS ?" and stating that you where right and that it uses your account to run the package
    when you execute a package manually from the Catalog and that you can prove that by logging the system variable.
    A good suggestion about using a share in the task to map the drive and I will try this. I would find it strange that SSMS requires this mapping whereas SSDT does not though.
    Ok let us know your findings. If it doesn't work you can also test it with a password and username:
    net use f: \\financial\public  yourpassword /user:username
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Have down loaded spb tv on nokia n8 but cant view

    can any one explain and help me solve please i have the new nokia n8 have downloaded spb tv from ovi store but every time i try and view all i get is a cube puzzle and saying down loading but doesnt any ideas please

    I tried the free version of SPB TV but haven't used it in a while because the free channels aren't very good and you have to pay to get the rest.
    The only suggestion I have is to try another access point. You are prompted to select an access point when you start the application and if you select an invalid one it is supposed to prompt to you to select another but these things don't always work as planned. 

  • I purchased a macbook air in July, 2013 which did not come with a pre-loaded iworks package. i have later learned that apple has made iworks free for OSX mavericks users. can you please suggest me a way to download the iworks package for free.

    I purchased a MacBook Air in July, 2013. I have later learnt that Apple has made iWorks free for OSX Mavericks users. However, the App Store still shows the package as paid for me. I want to know a way of downloading it for free.

    http://www.apple.com/creativity-apps/mac/up-to-date/

  • Open PDF in browser - but cant control/close window from javascript

    Hi
    I hope I picked the correct forum
    Basically I have a site in asp classic. From a button I opens 2
    windows via javascript.
    One contains info, one shows a related file ( could be tiff or pdf ).
    When user closes info-window, I also close the file window via javascript, so that user only hav to click once.
    That works with tiff, but not with pdf, '!file.closed' returns that window are already closed.
    Somehow I simply loose contact to that window when I open pdf.
    My Adobe is set  with "open pdf in browser", version 10.1.2
    Any Ideas ?
    Overview what I do:
    function openTwoWindows(jnr,vikar,hvorfra){
              var left, top,vikar;
              width = (window.screen.availWidth/2)+80;
              width2 = (window.screen.availWidth/2)-80;
              height  = (window.screen.availHeight);
              info = window.open('info.asp'','top=0,left=0,height='+height+',width='+width+',resizable=yes,scr ollbars=yes,status=yes');
              var settings= 'toolbar=no,location=no,directories=no,'+
              'status=no,menubar=no,scrollbars=no,resizable=yes, top=0, left='+width+', height='+height+',width='+width2;
              file = window.open('showfile.asp?strJnr='+jnr+'&print=false','file',settings);
              info.focus();
    function closeFileWindow(){
                if(file && !file.closed){
                             file.close();
    if the file is a pdf -> showfile code in asp classic:
    Response.AddHeader "Content-Disposition","inline;filename=filename.pdf"
    Response.ContentType = "Application/pdf"
    'Response.Clear
    Response.Buffer = true
    // fetch file from database
    Response.BinaryWrite rsTmp("Fil")
    Response.Flush
    Response.End

    Read this:
    http://forums.adobe.com/thread/535609?tstart=0

  • Authorised new 2nd Comp but cant play downloaded tunes from itunes store

    Having just bought a new laptop as my old comp died I am having great difficulty getting my music that I have bought from itunes onto this comp. I am getting a message saying authorised comp successful however when i click on one of the songs on itunes library to play a message comes up "the song could not be used because the original file could not be located. Would you like to locate it"
    Where is it??? please does anyone know how i can get my tunes off ipod onto new laptop.
    Sony Vaio   Windows XP  

    Try this:
    How to use your iPod to move your music to a new computer
    http://www.info.apple.com/kbnum/n300173

  • I downloaded adobe digital editions on my ipad but cant access my library (from my pc)

    The library in my ipad account is empty..
    Can I copy books from my pc account? shouldnt it be automatic? That I share info from same account in diff devices?
    ThankS!!

    <moved from Downloading, Installing, Setting Up to Adobe Digital Editions>

  • I have good wifi connection, but cant download any app from app store

    since i updated to IOS  7.0.3, i cant download any app; i always get the "impossible to download the app" message as if i wouldnt have internet connection.

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings.iTunes and App Store and sign out and sign back in
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - Try when connect to another network

Maybe you are looking for

  • Sony Docking station will no longer play audio on Alarm after ios 7 upgrade

    I have read through many of the community postings and hate to have to start a new question when there are over 90,000 that have viewed or commented on this same type issue, but I have tried all the suggestions from community users and they work for

  • How to install windows xp over vista on a toshiba satellite A200 1YO

    How to install raid/scsi drivers and get rid of vista for good what you will need â?¢ 1 USB external floppy drive â?¢ 2 floppy disks â?¢ 1 set of drivers for the hard drive you have in the computer â?¢ a legal copy of windows xp pro WHAT TO DO WITH T

  • External Samsung 2443BW native resolution not listed

    I have a 2007 24" iMac to which I have just added a Samsung Syncmaster 2443BW external monitor on the mini DVI interface. The Mac finds the monitor fine but the preferences panel only shows available resolutions up to 1680 x 1050 at 59.9 Hz rather th

  • FB60 validation help

    Hi Friends, I am using the copy standard program 'rggbr000' to Z for my validation rule for Tcode FB60. My requirement is when the user enter Part.Bank field(invfo-BVTYP) in Payment tab then my validation exit should done some check. The problem is,

  • How to Generate a Spacer Item in 10.1.3

    10.1.3.2 JDev, 10.1.3.1.26 JHS. Scenario: a two-column region where a couple items on the right need to have blank spaces between them so they line up with certain items on the left. In 10.1.2 and before, we created non-base table VO attributes, set