Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\ja\sec_network_services.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Oracle Database 11g????????????????????????</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:31Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Enabling Network Services in Oracle Database 11g" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-01" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface.htm" title="Home" type="text/html" /> <link rel="up" href="sec.htm" title="Managing Application Security" type="text/html" /> <link rel="up" href="sec_admin.htm" title="Understanding Administrator..." type="text/html" /> <link rel="up" href="sec_network_services.htm" title="Enabling Network Services i..." type="text/html" /> <link rel="prev" href="sec_session_timeout.htm" title="Previous" type="text/html" /> <link rel="next" href="sec_dev.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="?????">?????</a> > <a href="sec.htm" title="???????????????????????????">???????????????????????????</a> > <a href="sec_admin.htm" title="?????????????????????????????????????????">?????????????????????????????????????????</a> > Oracle Database 11g????????????????????????</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="sec_session_timeout.htm"><img src="dcommon/gifs/leftnav.gif" alt="???" /><br /><span class="icon">???</span></a> </td> <td align="center"><a href="sec_dev.htm"><img src="dcommon/gifs/rightnav.gif" alt="?°?" /><br /><span class="icon">?°?</span></a></td> </tr> </table> <p><a id="BGEJJIHE" name="BGEJJIHE"></a></p> <div class="sect2"> <h1><a name="HTMDB12006|grant connect privilege to host for FLOWS_020200 database user"></a>Oracle Database 11<span class="italic">g</span><a id="sthref1935" name="sthref1935"></a><a id="sthref1936" name="sthref1936"></a><a id="sthref1937" name="sthref1937"></a><a id="sthref1938" name="sthref1938"></a><a id="sthref1939" name="sthref1939"></a><a id="sthref1940" name="sthref1940"></a><a id="sthref1941" name="sthref1941"></a>????????????????????????</h1> <p>Oracle Database 11<span class="italic">g</span> ??????1??11.1?????????????????????????????????????????????????????????? ????????racle Database 11<span class="italic">g</span> ??????1??11.1???Oracle Application Express?????????????????????<code>DBMS_NETWORK_ACL_ADMIN</code>?????????????????<code>APEX_030200</code>???????????????????????????????????????????????????????????????????????????????????????????????????????</p> <ul> <li> <p>Oracle Application Express???????????????????????</p> <p>????????<code>APEX_MAIL</code>????????????????????????????????????????°?????????????????????????????</p> </li> <li> <p>Oracle Application Express???Web???????????</p> </li> <li> <p>PDF/???????????</p> </li> <li> <p>?????????????????????????????????????????????????</p> </li> </ul> <a id="sthref1942" name="sthref1942"></a> <p class="subhead2">??????:</p> <ul> <li> <p><a href="#BHADHHFH">??????????????????</a></p> </li> <li> <p><a href="#CHDDHJFD">?????????????????????????????</a></p> </li> <li> <p><a href="#BHAGIHIB">?????CL???????????????????????</a></p> </li> </ul> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">?????:</p> ???????????????????????????????????????????????compatible?????????????????????11.1.0.0.0????????????????????11<span class="italic">g</span> ?????????????????????????°????????????????????????????????????11<span class="italic">g</span> ?????????????????????????????????????????????????????????????????????????????????????????????<span class="italic"><a href="http://www.oracle.com/pls/db112/lookup?id=ADMIN002">Oracle Database?????????</a></span>??racle Database????????????????????????????????</td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> <a id="BHADHHFH" name="BHADHHFH"></a> <div class="sect3"> <h2><a name="HTMDB25751" id="HTMDB25751"></a>?????????????????????</h2> <p>?°????????<code>APEX_030200</code>???????????????????????????????????????????????????????????</p> <pre xml:space="preserve" class="oac_no_warn"> DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to '*' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, make sure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to '*'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*'); END; / COMMIT; </pre></div> <!-- class="sect3" --> <a id="CHDDHJFD" name="CHDDHJFD"></a> <div class="sect3"> <h2><a name="HTMDB25752" id="HTMDB25752"></a>?????????????????????????????</h2> <p>?°????????????????????????????????????????????????????????????????????????????????????????????racle Application Express???????????????????????????????????????????DF??????????????????????????????????????????????????????????</p> <pre xml:space="preserve" class="oac_no_warn"> DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to 'localhost' and give APEX_030200 -- the "connect" privilege if APEX_030200 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = 'localhost' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, make sure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'APEX_030200', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to 'localhost'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('local-access-users.xml', 'ACL that lets power users to connect to everywhere', 'APEX_030200', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('local-access-users.xml','localhost'); END; / COMMIT; </pre></div> <!-- class="sect3" --> <a id="BHAGIHIB" name="BHAGIHIB"></a> <div class="sect3"> <h2><a name="HTMDB25753" id="HTMDB25753"></a>?????CL???????????????????????</h2> <p>????????????????????<code>??RA-44416: ?????CL??</code>???????????????????????????????????ACL???????????</p> <pre xml:space="preserve" class="oac_no_warn"> REM Show the dangling references to dropped users in the ACL that is assigned REM to '*'. SELECT ACL, PRINCIPAL FROM DBA_NETWORK_ACLS NACL, XDS_ACE ACE WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL AND NACL.ACLID = ACE.ACLID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); </pre> <p>?°??????????????????CL???????????</p> <pre xml:space="preserve" class="oac_no_warn"> DECLARE ACL_ID RAW(16); CNT NUMBER; BEGIN -- Look for the object ID of the ACL currently assigned to '*' SELECT ACLID INTO ACL_ID FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- If just some users referenced in the ACL are invalid, remove just those -- users in the ACL. Otherwise, drop the ACL completely. SELECT COUNT(PRINCIPAL) INTO CNT FROM XDS_ACE WHERE ACLID = ACL_ID AND EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); IF (CNT > 0) THEN FOR R IN (SELECT PRINCIPAL FROM XDS_ACE WHERE ACLID = ACL_ID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL)) LOOP UPDATE XDB.XDB$ACL SET OBJECT_VALUE = DELETEXML(OBJECT_VALUE, '/ACL/ACE[PRINCIPAL="'||R.PRINCIPAL||'"]') WHERE OBJECT_ID = ACL_ID; END LOOP; ELSE DELETE FROM XDB.XDB$ACL WHERE OBJECT_ID = ACL_ID; END IF; END; / REM commit the changes. COMMIT; </pre> <p>ACL???????????????????????????????????????????????<code>APEX_030200</code>????????CL????????????????????<a href="#BHADHHFH">?????????????????????????</a>????????????????</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright (C) 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="dcommon/html/cpyr.htm"> <span class="copyrightlogo">???????????</span></a></td> <td align="center"><a href="sec_session_timeout.htm"><img src="dcommon/gifs/leftnav.gif" alt="???" /><br /><span class="icon">???</span></a> </td> <td align="center"><a href="sec_dev.htm"><img src="dcommon/gifs/rightnav.gif" alt="?°?" /><br /><span class="icon">?°?</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de