To Know the Risk with  dbms_java.grant_permission

Hi Everyone,
I am Using dbms_java.grant_permission to give the grant for java execution.
begin dbms_java.grant_permission('****','java.net.SocketPermission','***.****.co.in','connect,resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission', '***.****.co.in','resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission', '***.****.co.in','connect'); end;
begin dbms_java.grant_permission('SYS','SYS:java.net.SocketPermission','***.****.co.in','connect,resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission','*','connect,resolve'); end;
begin dbms_java.grant_permission( '****', 'SYS:java.util.PropertyPermission','java.security.egd', 'read,write' ); end;
begin dbms_java.grant_permission( '****', 'java.util.PropertyPermission','java.security.egd', 'read,write' ); end;
begin dbms_java.grant_permission('****', 'java.util.PropertyPermission','*','read,write'); end;
begin dbms_java.grant_permission('****', 'java.io.FilePermission','*','read,write'); end;
begin dbms_java.grant_permission('****','java.util.PropertyPermission', '*','read,write');
call dbms_java.grant_permission('****', 'java.util.PropertyPermission','*','read,write');
is there any security related problem if i am giving above grant in my DBMS.
Please give me your valuable opinion on this.
Thanks in Advance.

Hi Everyone,
I am Using dbms_java.grant_permission to give the grant for java execution.
begin dbms_java.grant_permission('****','java.net.SocketPermission','***.****.co.in','connect,resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission', '***.****.co.in','resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission', '***.****.co.in','connect'); end;
begin dbms_java.grant_permission('SYS','SYS:java.net.SocketPermission','***.****.co.in','connect,resolve'); end;
begin dbms_java.grant_permission('****','java.net.SocketPermission','*','connect,resolve'); end;
begin dbms_java.grant_permission( '****', 'SYS:java.util.PropertyPermission','java.security.egd', 'read,write' ); end;
begin dbms_java.grant_permission( '****', 'java.util.PropertyPermission','java.security.egd', 'read,write' ); end;
begin dbms_java.grant_permission('****', 'java.util.PropertyPermission','*','read,write'); end;
begin dbms_java.grant_permission('****', 'java.io.FilePermission','*','read,write'); end;
begin dbms_java.grant_permission('****','java.util.PropertyPermission', '*','read,write');
call dbms_java.grant_permission('****', 'java.util.PropertyPermission','*','read,write');
is there any security related problem if i am giving above grant in my DBMS.
Please give me your valuable opinion on this.
Thanks in Advance.

Similar Messages

  • I jailbroke my phone without knowing the risk but now i want to undo it how can i do it im on 4.2.1 please help

    I jailbroke my iphone 4 with out knowing the risks im on 4.2.1 can  i unjailbreak it if i take it back to the apple store or any other sugestions????

    Just follow the steps in:
    http://support.apple.com/kb/ts1275
    It is all about update and restore alert messages.

  • Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.  DVD burning works fine.  Anyone know the problem with blu-ray?  HELP!

    Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.   DVD burning works fine with menu template.  Anyone know the problem with blu-ray?  HELP!

    For CS4 you must update the Roxio component, especially with Win8
    http://forums.adobe.com/thread/1309029 http://docs.roxio.com/patches/pxengine4_18_16a.zip
    http://corel.force.com/roxio/articles/en_US/Master_Article/000012592-PX-Engine-Description -and-Download

  • Problem with DBMS_JAVA, GRANT_PERMISSION

    I am having a problem running the GRANT PERMISSION procedure in the DBMS_JAVA package as user SYS on Oracle 8.1.6. on Windows 2000.
    I ran the INITJVM script and the package DBMS_JAVA exists, and contains many more procedures than I can access.
    i.e. I can see the following procs/functions:
    PROCEDURE register_ep;
    PROCEDURE delete_ep;
    PROCEDURE server_startup;
    etc. thru:
    -- debugging interface --
    procedure start_debugging(host varchar2, port number, timeout number);
    procedure stop_debugging;
    procedure restart_debugging(timeout number);
    However, I cannot access the rest of the procs/functions in the package header:
    procedure export_source(name varchar2, schema varchar2, blob BLOB)
    as language java name
    'oracle.aurora.rdbms.ExportSchemaObjects.exportSource(java.lang.String, java.lang.String, oracle.sql.BLOB)';
    procedure export_source(name varchar2, blob BLOB)
    as language java name
    'oracle.aurora.rdbms.ExportSchemaObjects.exportSource(java.lang.String, oracle.sql.BLOB)';
    procedure export_source(name varchar2, schema varchar2, clob CLOB)
    as language java name
    'oracle.aurora.rdbms.ExportSchemaObjects.exportSource(java.lang.String, java.lang.String, oracle.sql.CLOB)';
    etc. Thru.
    procedure grant_permission(
    grantee varchar2, permission_type varchar2,
    permission_name varchar2, permission_action varchar2,
    key OUT number)
    as language java name
    'oracle.aurora.rdbms.security.PolicyTableManager.grant(
    java.lang.String, java.lang.String, java.lang.String,
    java.lang.String, long[])';
    -- similar to grant except create a restrict row.
    procedure restrict_permission(
    grantee varchar2, permission_type varchar2,
    permission_name varchar2, permission_action varchar2,
    key OUT number)
    as language java name
    'oracle.aurora.rdbms.security.PolicyTableManager.restrict(
    java.lang.String, java.lang.String, java.lang.String,
    java.lang.String, long[])';
    ... etc. Thru the rest of the package header. These procedures and functions are defined "AS LANGUAGE JAVA NAME ..." and don't seem to work properly.
    Any assistance is greatly appreciated!!!!!
    Thanks,
    Jim
    null

    I have investigated the problem a little further. During generation of the dump file, the file is writable of course. It changes to read-only when the following function is called:
    dbms_datapump.detach(l_dp_handle);
    However the documentation on detach (http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_datpmp.htm#997383) says nothing about this behaviour. So I guess that my problem is just caused by a bug in the oracle server.
    Best regards
    Niels Dybdahl

  • The risks of not configuring the countries in their specific country group?

    Hi Experts,
    Please let me know the the risks of not configuring the countries in their specific country group /Molga, rather assigning them to international MOLGA 99.
    I have in my SAP HR box many countries assigned to their MOLGA, but some of them like say DENMARK is assigned to 99. So please let me know the risk of doing so (like issues with reports etc).
    Thanks & Regards, Swapnil Mishra

    Hi Swapnil,
    Suppose you are customizing the payroll international version for the country UAE. So along with the driver customization you may have to group certain functions for e.g the IF condition for checkeing the SPRN for special run off cycle payments.
    We may have to group this function for country UAE ( Molga AE). But during any patch upgrade, this standard function grouping will get reset. i.e the grouping for this function will get resumed to its original version. As a result your grouping for AE will not be there in the Function, which will give you an error while executing the schema. This was experienced to us while we are migrating to EHP 4.
    Since there is a standard SAP Product  available for country Denmark, you are recommened to proceed with the standard product, rather going for the international version. You may be able to directly use all the standard legal/statutory reports readily available with this product. Else it will cost you huge effort in developing or copying these reports.
    Hope this will clarify your query.
    Regards
    Raviiiiiiiiiii
    Edited by: ravishanker m on Feb 18, 2011 6:14 AM

  • How to know the tcode by using tdid , tdname , tdobject

    hi friends,
    I know the tdobject, tdname  and tdid how can I know on which tcode this text is maintained .
    points will be rewarded.
    Thanks with advance.
    prasad

    Hi
    There is no such rule to know the tcode with these parameters
    but by the values of the Object and Objectname we will know the tcode
    for example
    if the Object is EKKO and Objectname is a PO number then it becomes the PO header text which belongs to ME21N tcode
    similarly if the Object is EKPO  it is PO item text
    if the object is VBBK then it is the Sales order header text (va01 Tcode)
    see the table STXH for the Std texts with these parameters
    Regards
    Anji

  • In mail the box with arrow pointing down?

    I am trying to figure out what the box with a arrow over it does in mail on the new iPad. I know the folder with the arrow on it lets you select which folder to put the email into. But what does this other one do? I have no clue where it goes right now and I'm confused from the other discussions I have read.  Also are you able to customize those icons in the top right corner because I wish one of the icons was a delete icon would be much easier to delete things. Thanks for any advice.

    Start here in the section on mail:
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    Post back if that doesn't answer your questions.

  • Dbms_java.grant_permission fails during the subsequent executions

    Always first call succeeds for the following lines in a procedure.
    dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
    dbms_java.grant_permission('SCOTT,'SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
    Any subsequent call does not return error message. But the other parts of the code fails to recognize the file permission and results in error.
    Workaround is to run the grant_permission for a set for files separately, then the other parts of the code recognize the file permissions.
    Any ideas? Thanks.

    Thanks for your attention.
    1. Here is the code
    -- Import the image.
    PROCEDURE Import_Raster (pi_grant_schema varchar2, pi_utldirname varchar2, pi_filename varchar2, pi_georid number)
    IS
         -- PRAGMA AUTONOMOUS_TRANSACTION;
         geor SDO_GEORASTER;
         l_filepathname varchar2(255);
         l_privilege varchar2(50) := 'read';
    BEGIN
         l_filepathname:= pi_utldirname||'\'||pi_filename;
         dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
         dbms_java.grant_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
         delete from georaster_table where georid = pi_georid;
         insert into georaster_table (georid,georaster)
              values( pi_georid, sdo_geor.init('RDT_GEOR', pi_georid) );
         select georaster into geor from georaster_table where georid = pi_georid for update;
         sdo_geor.importFrom(geor, '', 'TIFF', 'file',l_filepathname);
         update georaster_table set georaster = geor where georid = pi_georid;
         dbms_java.revoke_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
         dbms_java.revoke_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
    END;
    2. I could reproduce the error if repeated call the procedure with different file name as below.
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_a.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_b.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26d_2.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26e_2.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26f_3.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26g_1.tif','read' );
    3. Workaround: I am exiting the session after each command.
    Thanks.

  • Will I need to purchase iWork for my iPad if I purchase an iPhone 5s? Everybody knows the iPhone 5s with IOS7 gives iWork for free. Then iWork would be listed as purchased app in my itunes store under my account. My iPad retina is in the same account...

    Will I need to purchase iWork for my iPad if I purchase an iPhone 5s? Everybody knows the iPhone 5s with IOS7 gives iWork for free. I assume that if I buy an iPhone 5s (or 5c) then iWork would be listed as a "purchased" app in my itunes store under my account. My iPad retina is in the same account... or are keynote, pages, and numbers completely seperate between ipad and iphone? I know they would be a seperate purchase for my Powerbook. Thanks so much for your help!

    Hi,
    I was able to load the Productivity Suite / Free !!  on both my iPad mini and my iPhone 5s with no problems and at no cost.

  • How do I change my icloud email when don't know the old password after I have changed my apple ID email address and the password? icloud is still online with my old email address!!!

    I got a new phone but backed it up through my itunes, and when I tried to use icloud it kept telling me I have forgotten my password, when I really really didn't. So I went to settings > itunes&appstore and changed my password, but also changed the email address too while I was at it, since I've always wanted to change it. But now here's the problem. My iphone's icloud is currently logged in with my old apple ID email address, which seems to not work with the new password, so I can't log it or even delete the account off my iphone. And ovbiously, I don't know the old password that I have "forgotten", as my phone tells me. There seems to be no way of changing the icloud account now.... What should I do?!

    So what was the solution. I have a similar problem on all of my devices now

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

  • I don't have a wireless printer, and want to print things off of my iPad.  I know that I can use the iPad Camera Connection kit to connect USB devices like keyboards and I am wondering if I could do the same with a USB printer.

    I don't have a wireless printer, and want to print things off of my iPad.  I know that I can use the iPad Camera Connection kit to connect USB devices like keyboards and I am wondering if I could do the same with a USB printer.

    I don't think you can connect a printer since you won't have the printer drivers. I use FingerPrint from collobos.com to print to my non-AirPrint printers.

  • Hi All.. i want to use my iphone 4 to play poker on facebook with the zynga..  idont know the apps name,, thank's for ur help, and how to upgrade ios 4.3.3, now i'm still using ios 4.1.1, thank's

    hi All.. i want to use my iphone 4 to play poker on facebook with the zynga..  idont know the apps name,, thank's for ur help, and how to upgrade ios 4.3.3, now i'm still using ios 4.1.1, thank's

    when you connect your phone with your computer and use itunes you can click on the phone
    and click on an update button
    about facebook games then think they are all flash based and iphones cant do flash so thats not possible

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

  • I am trying to log onto a Mac Mini I haven't used in awhile and I forgot the password. I am trying to reset the password with my apple ID but the computer keeps saying the Apple ID and the password are incorrect whenever I know they are.

    I am trying to log onto a Mac Mini I haven't used in awhile and I forgot the password. I am trying to reset the password with my apple ID but the computer keeps saying the Apple ID and the password are incorrect whenever I know they are, as I am using the exact same ID right now.
    I have switched my password in the past, so my theory is my mac mini thinks that my password has not changed and it will not update because The Wi-Fi password has also changed so it cannot connect to any servers...Does that sound like I am on the right track?
    Is there a way to update my Wi-Fi password  (saved into the computer) without logging on?

    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.

Maybe you are looking for