Aqui pide el password:
SQL> Exec DBMS_XDB.SETHTTPPORT(999);
SQL> Exec DBMS_XDB.SETHTTPPORT(999);
SELECT col1, LISTAGG(col2, ', ') WITHIN GROUP (ORDER BY col2) "names" FROM table_x GROUP BY col1
SELECT 'ALTER TABLE '|| TABLE_NAME || ' DROP CONSTRAINT ' || CONSTRAINT_NAME || ' ;' FROM dba_constraints where constraint_type = 'R' and status = 'ENABLED' and owner='nombreEsquema';
select 'drop table '
||table_name||' cascade constraints;'
from user_tables;
BEGIN FOR cur_rec IN (SELECT object_name, object_type FROM user_objects WHERE object_type IN ('TABLE', 'VIEW', 'PACKAGE', 'PROCEDURE', 'FUNCTION', 'SEQUENCE' )) LOOP BEGIN IF cur_rec.object_type = 'TABLE' THEN EXECUTE IMMEDIATE 'DROP ' || cur_rec.object_type || ' "' || cur_rec.object_name || '" CASCADE CONSTRAINTS'; ELSE EXECUTE IMMEDIATE 'DROP ' || cur_rec.object_type || ' "' || cur_rec.object_name || '"'; END IF; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line ( 'FAILED: DROP ' || cur_rec.object_type || ' "' || cur_rec.object_name || '"' ); END; END LOOP; END; /
SQL> -- estable el puerto http y ftp
SQL> begin
2 dbms_xdb.sethttpport('9999');
3 dbms_xdb.setftpport('2100');
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> select dbms_xdb.gethttpport as "HTTP-Port"
, dbms_xdb.getftpport as "FTP-Port" from dual;
HTTP-Port FTP-Port
---------- ----------
80 2100
SQL> -- Deshabilitar el accesos
SQL> begin
2 dbms_xdb.sethttpport('0');
3 dbms_xdb.setftpport('0');
4 end;
5 /