Surviving without Oracle HTTP Server

download Surviving without Oracle HTTP Server

If you can't read please download the document

description

Surviving without Oracle HTTP Server. Конфигуриране на Oracle Embedded PLSQL Gateway. Стоян Иванов Семантек България ООД. Проблем. Oracle Express Edition се предлага без Oracle HTTP Server powered by Apache Има много приложения, разработени с MOD_PLSQL - PowerPoint PPT Presentation

Transcript of Surviving without Oracle HTTP Server

  • Surviving without Oracle HTTP Server Oracle Embedded PLSQL Gateway

  • Oracle Express Edition Oracle HTTP Server powered by Apache , MOD_PLSQL APEX , MOD_PLSQL / APEX

  • Oracle EPG XMLDB Oracle Net Listener DAD- OracleXE, Standard Enterprise

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • ANONYMOUS (, cascading stylesheets, javascript, )

  • Oracle EPG WebDAV Oracle EPG FTP

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • XMLDB DBCA, , XDBADMIN DBMS_XDB DBMS_EPG

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • XDBselect * from xdb.xdb$config

    SYS_NC_ROWINFO$--------------------------------------------------------------------------------

    900 32 , true 300

  • HTTP SQL> update xdb.xdb$config e Set xmldata."sysconfig"."protocolconfig"."httpconfig"."http-port" = '8080';1 row updated.SQL> commit;Commit complete.SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startupORACLE instance started....Database mounted.Database opened.

  • HTTP lsnrctl statusListening Endpoints Summary...DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ivanov.semantec.bg)(PORT=8080))(Presentation=HTTP)(Session=RAW))

    Services Summary...Service "SPIXDB" has 1 instance(s). Instance "spi", status READY, has 1 handler(s) for this service...Service "SPI_XPT" has 1 instance(s). Instance "spi", status READY, has 1 handler(s) for this service...The command completed successfully

  • HTTP EXEC DBMS_XDB.SETHTTPPORT(8080);

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • remote accessupdate xdb.xdb$config eSet e.xmldata."sysconfig"."protocolconfig"."httpconfig"."http-host" = NULL/

    update xdb.xdb$config eset e.xmldata."sysconfig"."protocolconfig"."httpconfig"."http-host" = localhost/

  • remote accessEXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);

    Oracle Standard Edition Oracle Enterprise Edition LISTENER.ORA HOST=localhostHOST=127.0.0.1

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • , security- BASIC authentication DAD custom authentication ANONYMOUS request-validation-function DAD

  • , security-CREATE FUNCTION epg_access_validation ( PROCEDURE_NAME IN VARCHAR2) RETURN BOOLEAN IS BEGIN IF UPPER(procedure_name) IN () THEN RETURN TRUE; ELSE RETURN FALSE; END IF; END epg_access_validation/

  • XMLDB HTTP remote access , security- DAD (Data Access Descriptor)

  • DADexec dbms_epg.create_dad( 'DADNAME','/dadvirtualpath/*');

    exec dbms_epg.set_dad_attribute( 'DADNAME', 'default-page','mypackage.myhome');

    exec dbms_epg.set_dad_attribute( 'DADNAME', 'request-validation-function', 'epg_access_validation');

  • ANONYMOUS (, cascading stylesheets, javascript, )

  • DBMS_EPG.map_dad (dad_name => DADNAME',path => '/newvirtualpath/*); DBMS_EPG.unmap_dad (dad_name => DADNAME',path => '/newvirtualpath/*);

  • ANONYMOUS (, cascading stylesheets, javascript, )

  • ANONYMOUSexec dbms_epg.set_dad_attribute( 'DADNAME', 'database-username', 'ANONYMOUS);

  • ANONYMOUS (, cascading stylesheets, javascript, )

  • DBMS_XDB , APEX_EPG_CONFIG.sql, Oracle Application Express

  • dbms_xdb.createfolder(directory_path);

    dbms_xdb.createresource(resource_path,content_bfile,nls_charset_id);

  • Oracle EPG WebDAV

  • Oracle EPG FTP EXEC DBMS_XDB.SETFTPPORT(21);

    SQL> update xdb.xdb$config e Set xmldata."sysconfig"."protocolconfig".ftpconfig".ftp-port" = 21';

  • Oracle EPG FTP e:\>ftp ivanovConnected to ivanov.semantec.bg.220- ivanov220 ivanov FTP Server (Oracle XML DB/Oracle Database) ready.User (ivanov.semantec.bg:(none)): system331 pass required for SYSTEMPassword:230 SYSTEM logged inftp> dir200 PORT Command successful150 ASCII Data Connectiondrw-r--r-- 2 SYS oracle 0 . 19 11:07 publicdrw-r--r-- 2 SYS oracle 0 . 19 11:07 sys-rw-r--r-- 1 SYS oracle 0 . 19 20:50 xdbconfig.xml226 ASCII Transfer Completeftp: 196 bytes received in 0,01Seconds 19,60Kbytes/sec.ftp>

  • ( )