Register xmltype column of a table in the schema using DBMS_registerschema

I try to do the following:
BEGIN
DBMS_XMLSCHEMA.registerSchema
(SCHEMAURL = > 'CCD.xsd',)
SCHEMADOC = > xdbURIType (select SANDBOX. XHOLDER. SYS_NC_ROWINFO$ sandbox. XHOLDER) .getClob)
);
END;

But he does not have a select statement where she is waiting for a. I can't find anything to do what I'm trying to do. Anyone with ideas?

Thanks TONS!
DECLARE
  XMLSCHEMA XMLTYPE;
BEGIN
  select OBJECT_VALUE
     into XMLSCHEMA
    from SANDBOX.XHOLDER ;

   DBMS_XMLSCHEMA.registerSchema(SCHEMAURL => 'CCD.xsd', SCHEMADOC => XMLSCHEMA);
END;

Published by: mdrake on 25 Sep, 2009 10:52

Published by: mdrake on 25 Sep, 2009 10:53

Tags: Database

Similar Questions

  • How to have more than 20 columns in a table in the form of adobe?

    I see that there is limitaion of not having more than 20 columns in my table in the form of adobe, is it possible that I can have more than 20 columns in a table in the form of adobe in landscape mode.

    Hello

    Which applies only to the Table Wizard. Once the table is placed on the page, you can add columns manually in the menu or by right-clicking a column.

    You can also use fields in a repeating subform (rather than the object of the table).

    Good luck

    Niall

  • Access DB & insert long distance column in a table in the current schema

    I have a new requirement as:
    I have to create a table in my current schema, selection of data in a table in different schema using the database link and the table contains a column LONG.
    I wrote code like:

    CREATE TABLE tmp as
    SELECT a.index_name, a.index_type, a.uniqueness and a.table_name,
    b.column_name, c.column_expression, b.column_position
    User_indexes@FRISKDEVI41B_ORCL a.,
    b user_ind_columns@FRISKDEVI41B_ORCL,
    c user_ind_expressions@FRISKDEVI41B_ORCL
    WHERE b.index_name = a.index_name
    AND a.table_name = b.table_name
    AND b.index_name = c.index_name (+)
    AND c.table_name (+) = b.table_name
    AND b.column_position = c.column_position (+)
    ORDER BY a.table_name;

    and when I try to run this am getting an error like "ora-00997 illegal of the long data type using", can any1 help me solve this

    Hello

    SQL> create or replace type tmp_type as object(
      2    index_name       varchar2(30),
      3    table_name       varchar2(30),
      4    column_expression clob,
      5    column_position   number(10)
      6  )
      7  /
    
    Type created.
    
    SQL> create type tmp_tab as table of tmp_type;
      2  /
    
    Type created.
    
      1  create or replace function user_ind_expr return tmp_tab pipelined as
      2    cl clob;
      3  begin
      4    for r in (select * from user_ind_expressions@FRISKDEVI41B_ORCL) loop
      5      cl := r.column_expression;
      6      pipe row (tmp_type(r.index_name, r.table_name, cl, r.column_position));
      7    end loop;
      8    return;
      9* end;
    SQL> /
    
    Function created.
    
    SQL> CREATE TABLE tmp as
      2  SELECT a.index_name,a.index_type,a.uniqueness,a.table_name,
      3  b.column_name,c.column_expression,b.column_position
      4  FROM user_indexes@FRISKDEVI41B_ORCL a,
      5  user_ind_columns@FRISKDEVI41B_ORCL b,
      6  table(user_ind_expr) c
      7  WHERE b.index_name = a.index_name
      8  AND b.table_name = a.table_name
      9  AND b.index_name = c.index_name (+)
     10  AND b.table_name = c.table_name (+)
     11  AND b.column_position = c.column_position (+)
     12  ORDER BY a.table_name
    SQL> /
    
    Table created.
    

    Bartek

  • avoid triggers on all tables in the schema

    I need to put a CREATION TIMESTAMP to the timestamp of the database server (not the timestamp of session) in all tables in a schema to create and update. Is to create a trigger on all the tables in the schema a less time consuming way to do?

    Similarly, I need to set up columns such as CREATE_USER, LAST_UPDATE_USER.

    Thank you in advance.

    You can easily generate the DDL for adding new columns.

    The extent of the filling of the columns, your choice is either to use insertion befire table and triggers to update to fill the columns or the application to provide the necessary information.

    Basic trigger logic would be pretty much the same for all tables, then write a little SQL or PL/SQL to generate the code of the trigger should be simple enough.

    Depending on your application, such as web based with only one Oracle user, you may need to get the real user through dbms_application_info by the logic of the server-based application.

    HTH - Mark D Powell.

    Edited by: Mark D Powell 5 May 2010 07:48

  • Size of the schema and the schema used provided actual spending

    Hello

    Can you please provide me with the query that is used to see the actual size of the schema and the schema used provided.

    I got the sqlquery to see the used size of the schema (select owner, sum (bytes) / 1024/1024 "MB" dba_segments group by owner;).

    Please give me the sqlquery to see the actual size of the schema

    Does

    SQL> select username,tablespace_name,bytes,max_bytes from dba_ts_quotas order by 1,2;
    

    Help?

  • Need help to build the query/pl-sql block to get the query result and the name of column from DB table in the form of key-value pairs.

    Hi Experts,

    I have a DB table has columns of more than 50.

    I question this table, it should only return one line at any time. as sqldeveloper below image.

    here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.

    Eg:     Key                         -  Value

    TASK_EVENT_ID - 1765

    EVENT_TYPE - ASR_UPDATE

    ... etc until all of the columns in my table.

    Experts please comment on that point, appreciate your help on this.

    Thank you

    -Vincent.

    Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)

    create or replace procedure (task_expired)

    v_store_id in full,

    v_task_action_id in full,

    v_job_id in full

    )

    as

    -[SNIP code...]

    v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123';  -Your SQL here!

    v_v_val VARCHAR2 (4000);

    v_n_val NUMBER;

    v_d_val DATE;

    v_ret NUMBER;

    c NUMBER;

    d NUMBER;

    col_cnt INTEGER.

    f BOOLEAN;

    rec_tab DBMS_SQL. DESC_TAB;

    col_num NUMBER;

    vAsString VARCHAR2 (4000);

    BEGIN

    -[SNIP code...]

    Message_properties. CORRELATION: = "EDF_EVENT";

    MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();

    Msg.set_string_property ('queueName', ' shipping/csi_cth');

    Msg.set_string_property ('MODE', 'CR8');

    c: = DBMS_SQL. OPEN_CURSOR;

    DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);

    d: = DBMS_SQL. Execute (c);

    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);

    1.col_cnt J

    LOOP

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val);      -Number

    WHEN 12 CAN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val);      -Date

    ON THE OTHER

    DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000);   -Else treat as varchar2

    END CASE;

    END LOOP;

    LOOP

    v_ret: = DBMS_SQL. FETCH_ROWS (c);

    WHEN OUTPUT v_ret = 0;

    1.col_cnt J

    LOOP

    -Fetch each column to the correct data type based on coltype

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);

    vAsString: = to_char (v_n_val);

    WHEN 12 CAN

    DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);

    vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');

    ON THE OTHER

    DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);

    vAsString: = v_v_val;

    END CASE;

    Msg.set_string_property (rec_tab (j) .col_name, vAsString);

    END LOOP;

    END LOOP;

    DBMS_SQL. CLOSE_CURSOR (c);

    DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',

    Enqueue_options => Enqueue_options,

    Message_properties => Message_properties,

    Payload-online msg,

    Msgid => Message_handle);

    dbms_output.put_line ('00 Msgid =' |) Message_handle);

    dbms_output.put_line('===Done=');

    -[SNIP code...]

    END;

    /

  • How to hide the column in a table in the adf.

    I created the table of the ADF and surround it in the collection of panels, the data in the table from the bean to support variable. Depending on the State, there are a few columns that must hide with the user. I used visible = "false", where the false value will come from backing bean. However the user to the table always have the ability to display the column. Is there any one to hide the column with the user at all times. Fixing the code example:

    < af:column sortable = "false" headerText = "column1" id = "c13" visible = "false" >

    "" < af:outputText value = "{row.columns1} ' id ="ot13"/ >

    < / af:column >

    Hello

    Use the rendered property?

    Concerning

  • How can I get number of columns for all tables in a schema?


    Hello

    Can someone help me with the code to retrieve any of the columns in each table of a master plan? I'm sorry if it sounds simple. I'm a newbie...

    Thank you

    Maybe:

    Select table_name

    count (*) col_count

    of user_tab_cols

    Table_name group

    order of table_name;

  • Select all the tables in the schema

    Hi, I'm looking for x, y of the tables in a schema, get the error "missing expression," working with oracle 11g.


    declare

    v_sql varchar2 (4000);
    number of v_x;
    number of v_y;
    number of V_n;

    Start

    for rec in loop (select table_name as table_name from all_tables where table_name like '% oumou %' ORDER BY 1)


    v_sql: = ' select a.idnumber, t.x, t.y, table (sdo_util.getvertices (a.geometry)) t OF ' | Rec.table_name | « a » ;
    V_sql EXECUTE IMMEDIATE v_n, v_x, v_y;
    dbms_output.put_line(V_n|| v_x || v_y);


    end loop;


    end;
    ...
      --only for fetching implizit CURSOR cur1
      CURSOR t2 IS SELECT CAST('' AS VARCHAR2(20))idnumber, CAST(0 AS NUMBER) x, CAST(0 AS NUMBER) y FROM dual;
      rec2   t2%ROWTYPE;
    ...
    

    To the implicit CURSOR cur1, you can set a variable-FETCH with CUR1% ROWTYPE.
    So, I defined an explicit CURSOR t2, bringing me the types for the columns of results:
    IDNUMBER (VARCHAR2 (20)), X (NUMBER) and Y (NUMBER)
    This T2 of cursor, I can set a % ROWTYPE VARIABLE t2 to fetch the results.

    Please give points for the solution.

  • What are the APIs used or tables of the interface used for the conversion of the Bank

    Hi all

    Please let me know if there is no table interface or api used to make the conversion of the Bank in r12.

    Thank you

    There is no interface for the Bank conversion table in r12, but you can use APIs such as: CE_BANK_PUB. CREATE_BANK, CE_BANK_PUB. CREATE_BANK_BRANCH, CE_BANK_PUB. CREATE_BANK_ACCT, ce_bank_pub.create_bank_acct_use etc...

  • DataPump - expdp.open creates tables in the schema

    Hello

    I use datapump in Oracle 10 g to archive old main schema to another schema partitions.

    I noticed that when dbms_datapump.open is called and a new table is created by dbms_datadpump for internal purposes. This is verified in the oracle documentation

    http://docs.Oracle.com/CD/B12037_01/AppDev.101/b10802/d_datpmp.htm#997383

    Notes on use

    • When the task is created, a master table is created for work under the scheme of the appellant in the default tablespace of the appellant. A handful referring to employment is returned that attaches to the current session to use. Once attached, the handle remains valid until that either explicit or implicit detach occurs. The handle is only valid in the session of the appellant. Other handles can be attached to the same task from another session using the ATTACH procedure.

    Does anyone know if this table can be removed by a call to dbms_datapump Oracle 'clean', or if it has to be cleaned manually.

    can confirm that this is what you do

    v_job_handle: = DBMS_DATAPUMP. OPEN('EXPORT', 'TABLE', NULL, v_job_name);

    -The parallelism 1 value and add the file

    DBMS_DATAPUMP. SET_PARALLEL (v_job_handle, 1);

    DBMS_DATAPUMP. ADD_FILE(v_job_handle, v_job_name |) '_' || v_partition. PARTITION_NAME | ".dmp", "PARTITION_DUMPS");

    -Apply filters to process only a partition in the table

    DBMS_DATAPUMP. METADATA_FILTER(v_job_handle, 'SCHEMA_EXPR', 'IN ("SIS_MAIN")');

    DBMS_DATAPUMP. METADATA_FILTER(v_job_handle, 'NAME_EXPR', ' AS "' | t_archive_list (i) |) '''');

    DBMS_DATAPUMP. DATA_FILTER(v_job_handle, 'PARTITION_EXPR', ' IN ("' | v_partition.partition_name |)) ')', t_archive_list (i), "SIS_MAIN");

    -Use statistics (rather than blocks) to estimate the time.

    DBMS_DATAPUMP. SET_PARAMETER(v_job_handle, 'ESTIMATE', 'STATISTICS');

    -Start the work. An exception is returned if something is not installed correctly.

    DBMS_DATAPUMP. START_JOB(v_job_handle);

    -The export job should work now. We loop until its finished

    v_percent: = 0;

    v_job_state: = "UNDEFINED";

    WHILE (v_job_state! = 'DONE') and (v_job_state! = "STOPPED") LOOP

    DBMS_DATAPUMP.get_Status (v_job_handle,DBMS_DATAPUMP.ku$_status_job_error + DBMS_DATAPUMP.ku$_status_job_status + DBMS_DATAPUMP.ku$_status_wip,-1, v_job_state, m);

    js: = sts.job_status;

    -As percentage-complete in this loop changes, displays the new value.

    IF js.percent_done! = v_percent THEN

    v_percent: = js.percent_done;

    END IF;

    END LOOP;

    -Once the work is finished, view the status before you loose work.

    PRC_LOG (f1, t_archive_list (i) |) ': Export complete with status: '. v_job_state);

    -DBMS_DATAPUMP. Detach (v_job_handle);

    -Use STOP_JOB instead of DETACHING otherwise 'master' table that is created when the OPEN is called is not removed.

    DBMS_DATAPUMP. STOP_JOB(v_job_handle, 0, 0);

  • get information from inside a trigger of the other tables in the schema even

    Addendum:

    ... Sorry I forgot: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64 bit

    *******************

    Hello

    I'm trying for a few hours to get information from inside a trigger to another table in the same pattern.

    My trigger is PSE_BKB. NUM_PHANTOM_BP

    I first tried a simple solution...


    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN

    ...
    Select count (*)
    in anz_num
    of pse_bkb.num_objekt o
    where o.obj_key in
    (select distinct (ov.obj_key)
    of pse_bkb.num_objekt_verb ov
    where ov.phantom_key =: old.phantom_key
    )
    and o.typ = "NUM";

    ...

    Explanation: my trigger table is PSE_BKB. NUM_PHANTOM_BP.

    On the pse_bkb.num_objekt_verb of the table, I have a relationship 1: n to one or several object-key (field named obj_key!) on my referenced key: old.phantom_key. With this obj_key, I want to watch the weather, I have one or more lines in the table type num_objekt "NUM". So the internal selection gives me all the num_objekt_verb obj_key with my: old.phantom_key and with whom I count the number of lines I have on num_objekt with type "NUM".

    The problem is that the trigger does not see the table.

    I tried many variations.

    The latest version I tried was with a cursor inside the trigger definition as in the block of code below.

    For debugging purposes, I inserted a RAISE_APPLICATION_ERROR in the inner loop - see below. The v_obj_key variable is never defined, as in all the other variations, I tried-, I still see the predefined "gugus" in the declare section.

    It seems that oracle can not read other tables at this point. La: old.phantom_key is defined (in this simple example there would come a return obj_key).

    Thanks in advance for your help - and excuse my English.

    Trigger code:

    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN


    Start
    declare

    cursor nums is

    Select obj_key
    of PSE_BKB.num_objekt_verb
    where phantom_key =: old.phantom_key;

    Start

    for the RC looping nums
    v_obj_key: = cr.obj_key;

    RAISE_APPLICATION_ERROR (-20099,' AGAIN 9 v_obj_key: ' | v_obj_key |) ': old.phantom_key ' | (: old.phantom_key);

    When the exit nums % NOTFOUND;

    Select count (*) in the pse_bkb.num_objekt anz_num_tmp where obj_key = v_obj_key and type = "NUM";
    anz_num: = anz_num + anz_num_tmp;
    end loop;

    end;
    end;

    Published by: user832075 on 14.01.2013 06:18

    The reason why you get count_n = 0 in tr_c is that there is no line in B with key_c = 17, to the moment you arrive at tr_c. The removal of B has already occurred, and since you're in a single transaction, the application for tr_c:

    select count(*)
      into   counter_n
      from   a aa
      where  aa.key_a in (select distinct(bb.key_a)
                          from   b bb
                          where  bb.key_c = v_ph_key
                         )
      and    aa.typ = 'n';
    

    'knows' that the row has been deleted then gets a number of 0.

    I added a set of instructions dbms_output to show the order in which triggers run, and that's what I get:

    SQL> delete from b_vw where key_a = 1 and key_c = 17 ;
    in trigger b_tr_vw
    In tr_b
    in tr_c
    delete from b_vw where key_a = 1 and key_c = 17
                *
    ERROR at line 1:
    ORA-20077: Remark: counter_n: 0 counter_s: 0 v_ph_key: 17 old.key_c: 17
    new.key_c:
    ORA-06512: at "OPS$ORACLE.TR_C", line 38
    ORA-04088: error during execution of trigger 'OPS$ORACLE.TR_C'
    ORA-06512: at "OPS$ORACLE.B_TR_VW", line 17
    ORA-04088: error during execution of trigger 'OPS$ORACLE.B_TR_VW'
    

    Thus b_tr_vw trigger is triggered first and deletes a B. trigger fires tr_b as part of this statement to remove and check against A, happening apparently so no error is triggered and succeeds the removal of B. Now tr_b_vw takes back control and deletes C. Since the B line which has key_c = 17 already deleted a control for counter_n > 0 and counter_s = 0 fails and raise you the-20002 error. Note that I'm assuming that the error of-20077 you lift is just to see the values and is not intended to be part of your actual code.

    Because I have really no idea what you're trying to accomplish here I can't offer a lot of advice that you might want to try entering two tr_c of the tr_b_vw trigger validation queries before deliver you the removal of b and put the counter_n > 0 and counter_s = 0 control under tr_b_vw to decide whether or not you want to remove.

    John

  • Creating table in the schema has with the user B and granting permissions to the user C

    Hello, I have a problem fun - we have a large table which requires a batch to make millions of updates, and he needs to finish more quickly. It takes several hours as an update, but a select create table did the same thing in about a minute. Yay! Then we just delete the old table and rename the new table to the former, rebuild all the index and grant select/insert/update/delete permissions to another user who needs access... and there is the problem, Oracle said insufficient privs.

    We have A figure, which is the owner of the table, userid B who done all the stuff of application batch and userid C which performs inserts for a process of middleware. None of them are actual users, of course. We want that user B to do the ETG, rename, rebuild and re-grant of the authorisation of the index. But user B apparently cannot grant permissions on objects in the schema A to user C, even if B has created the table and has the role DBA (not ideal, I know)!

    What's really crazy is that there is no sense unique user b can grant permissions to user C, which is to:

    grant select any table USER c;
    grant insert any table USER c;
    grant update any table USER c;
    Grant delete any table USER c;

    It seems really perverse can create tables in diagram A and even grant C privs "whole table" that user B, but may not grant privs specifically on this object in the schema A, even with DBA privs. I must be missing something... right?

    Yes. By default, the stored procedures are stored procedures from DEFINER rights. If A is the owner of a stored procedure, this stored procedure can do whatever A enjoys the privileges to directly. If A grants B privileges RUN this stored procedure, when B calls the stored procedure, the procedure runs with the privileges.

    I agree point stew, however, re-creating objects in Oracle is generally a bad idea and a TRUNCATE with one insert direct-path, possibly combined with the deactivation and the rebuilding of the index would be more appropriate than a DEC. If you're going to stick with this Assignment, however, that really do in a stored procedure owned by A while B has no need to CREATE ANY TABLE.

    Justin

  • Tables of export and import the schema using the system user

    Hello

    Can someone asssit me please:

    I want to export all the tables / or some tables of a schema (ETLUSER) on DB1 to ETLUSER on an other (DB2) database by using the user of the SYSTEM. The SYSTEM user has DBA privilege.
    How I do what I do not know the password of ETLUSER.

    Environment:
    Oracle 11 g 2, AIX5

    Thank you.

    no problem, shouldn't you password in the ETLUSER.
    Start your exp or imp of the user of the system

    below, scott table dept exported and imported in the HR schema.

    Oracle@oragg1 > exp tables = scott.dept file = a.dmp log = b.log

    Export: Release 10.2.0.4.0 - Production on Mon Mar 19 18:58:45 2012

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Username: System
    Password:

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options
    Export in US7ASCII and AL16UTF16 NCHAR character set
    Server uses WE8ISO8859P1 (possible character set conversion) character set

    About to export specified tables by conventional means...
    Current user has changed to SCOTT
    . . export the DEPT 10 exported table rows

    Oracle@oragg1 > imp leader = a.dmp log = bb.log fromuser = scott touser = hr

    Import: Release 10.2.0.4.0 - Production on Mon Mar 19 18:58:56 2012

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Username: System
    Password:

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options

    Export file created by EXPORT: V10.02.01 by conventional means
    import in US7ASCII and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 (possible character set conversion) character set
    *. import of SCOTT in HR objects *. .
    "DEPT" table import 10 lines imported
    Import completed successfully without warnings.

  • How to delete all TABLEs in the schema SYS that are created from 09:15?

    Unfortunately a script created a lot of tables in the diagram (= SYS) and bad Tablespace (= SYSTEM).

    How can I delete all TABLES that are created inTablespace = SYSTEM and SCHEMA = SYS (in a DDL command)
    respectively for the past 3 hours from 09:15 to 25 Sep 2011?

    Alternative: How can I move these tables in another schema (for example ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or Oracle Enterprise?

    Peter

    You can use ALTER TABLE... MOVE. It offers a TABLESPACE clause, which allows you to choose a different tablespace as target. Refer to the documentation for your version of the database.

Maybe you are looking for