Renaming a Tablespace and Schema in Oracle 9i

hi,
i have the following scenario
1') Schema with name X attached with a default tablespace whos name also is X.
i want to now move to Schema with name Y attached with a default tablespace whos name is Y. but i want the data to be same as that of point 1)
Can anyone provide me help in doing that.
Vesion of Oracle being used is Oracle 9i Release 2 with Windows 2000
Thanks in Advance

Unfortunately, there is no facility for renaming schemas or tablespaces in Oracle 9i. There are such options in 10g, but that probably doesn't help you much.
Depending on the amount of data we're talking about, it may be easiest to do a schema-level export and import using the fromuser and touser commands.
Justin

Similar Messages

  • TABLESPACE AND SCHEMA

    I have list of customers but and have a databse.
    Each customer has same structure for dtaabase but different data.
    Soi want to know how to develop a dtabase
    for it
    Should i make a diffent tablespace for each customer
    or in one tablespace shud icreate a different schema for differnet users.....

    Unfortunately, there is no facility for renaming schemas or tablespaces in Oracle 9i. There are such options in 10g, but that probably doesn't help you much.
    Depending on the amount of data we're talking about, it may be easiest to do a schema-level export and import using the fromuser and touser commands.
    Justin

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • One db and user for multiple tablespaces or schemas per server?

    Hello again.
    I installed Oracle 11g on server_1 and created one database db_1.
    Using Enterprise Manager, I did the following:
    Created a tablespace myname_1.
    Created a user myname_1.
    Logged in as myname_1 and created a table into the default tablespace myname_1.
    When creating this table, the schema field defaulted to myname_1.
    Created another tablespace myname_2.
    My confusion about the relationship between tablespaces, users, and schemas starts here:
    When I try to create a new table for tablespace myname_2, I get an error:
    "user myname_2 does not exist"
    I am seeking some clarification on these levels of organization in Oracle.
    My goal is to setup my server with one database each and one user each per database.
    Then, I think I want to create multiple tablespaces and organize objects per tablespace.
    Or should it be per schema?
    Eventually each tablespace will be moved to a separate server.
    Any comments and suggestions are greatly appreciated.
    Thank you for helping.

    Hello,
    This error means user MYNAME_2 doesn't exists and you have to create one.
    Example 1:
    CREATE USER MYNAME_2
      IDENTIFIED BY "my_password"
      DEFAULT TABLESPACE MYNAME_1
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      -- 4 Roles for KLONDIKE
       GRANT RESOURCE TO MYNAME_2; ---> This privs give unlimited quota on all the tablespaces
      GRANT CONNECT TO MYNAME_2;
      ALTER USER MYNAME_2 DEFAULT ROLE NONE;
    Then create your table (you were missing "AS" )
    create table myname_2.mytable_1 as
    select * from source_table@dblink_2;Example 2: If you want to create table mytable_1 in tablespace myname_2 then you have to create tablespace myname_2 first. To create table in different tablespace than user default tablespace
    create table mytable_1 tablespace myname_2 as select * from source_table@dblink;Regards
    OrionNet

  • UNDOTBS1 and SYSAUX Tablespace Filename Mismatch in Oracle 11g XE

    Hi,
    We have installed Oracle 11g XE 32 bit on Windows and found that Tablespace name and filenames are mismatched for UNDOTBS1, SYSAUX.
    If you run following query:
    SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES; You will get below output:
    TABLESPACE_NAME                    FILE_NAME
    ============================================================================
    USERS                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\USERS.DBF
    UNDOTBS1           C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF
    SYSAUX                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF
    SYSTEM                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBFNotice the difference between UNDOTBS1 and SYSAUX.
    UNDOTBS1 tablespace has filename SYSAUX.DBF while
    SYSAUX tablespace has filename UNDOTBS1.DBF
    Is this a bug or just a wrong name mapping?
    Will this affects the internal behavior of tablespace as well for undo tablespace and APEX Installation?
    Regards,
    Sohil Bhavsar.

    Error: ORA-03297 ... related to this mismatch of UNDOTBS1 with SYSAUXActually its related to trying to resize a file smaller than the existing extents in use, so yes, restores aren't the only place that could cause confusion from the "incorrect" datafile names.
    Fixing it could be done in one pass if you don't mind adjusting filenames so they don't clash, i.e. shut down your database instance and move the files at the OS, startup mount and rename the files in the database.
    Don't use the services applet, the instance has to be shutdown with sqlplus, leave the database service running. If you try to open the database with OS files renamed but not corrected in the instance, the database won't open if there are troubles with the undo datafile.
    sqlplus /nolog
    conn /as sysdba;
      ... connected ...
    col name format a60
    col tsname format a10
    set lines 120
    select t.name tsname,  d.name, d.BYTES / 1024 / 1024 mb from v$tablespace t, v$datafile d where t.ts#  = d.ts#;
    system .../system.dbf  <n>
    shutdown immediate;
    ... database closed ...
    exit
    cd <datafile directory> 
    move sysaux.dbf undotbs01.dbf
    move UNDOTBS1.DBF sysaux.dbf
    # or use file explore GUI after shutdown
    sqlplus /nolog
    conn /as sysdba;
      ... connected to idle instance ...
    startup mount;
      ... SGA, instance size info ...
    alter database rename file 'C:\...<full path>\SYSAUX.DBF' to 'C:\...<full path>\UNDOTBS01.DBF';
    alter database rename file 'C:\...<full path>\UNDOTBS1.DBF' to 'C:\...<full path>\SYSAUX.DBF';
    select t.name tsname,  d.name, d.BYTES / 1024 / 1024 mb from v$tablespace t, v$datafile d where t.ts#  = d.ts#;
    ... make sure you get what was asked for ...
    TSNAME     NAME                                                       MB
    SYSTEM     C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF              360
    SYSAUX     C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF              660
    UNDOTBS1   C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS01.DBF            25
    USERS      C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF               100
    alter database open;
      ... database altered ... 

  • How Schema can be exported and imported in Oracle Apex?

    Hi,
    I am very new to oracle apex. I had installed Oracle XE database and apex successfully. I want to import an application to my apex. The application was created using workspace -Ver and Schema- Ves. I had imported the application and workspace into my apex. But, I am not able to run the application because, I had specified my default schema(HR) for the application. How can I import the schema 'Ves' ,in which the application is developed, into my apex?..so that I can run the application in the same schema..Please Help. Thanks

    hari wrote:
    Hi,
    I am very new to oracle apex. I had installed Oracle XE database and apex successfully. I want to import an application to my apex. The application was created using workspace -Ver and Schema- Ves. I had imported the application and workspace into my apex. But, I am not able to run the application because, I had specified my default schema(HR) for the application. How can I import the schema 'Ves' ,in which the application is developed, into my apex?..so that I can run the application in the same schema..Please Help. ThanksI am concerned that perhaps you and Jeffrey are working at cross purposes here. If you wouldn't mind confirming a few things first:
    1. You make references to "import[ing] the application and workspace into +my+ apex - how many instances of oracle/apex do you have?
    2. You say that you "specified [your] default schema (HR) for the application." I am assuming that you are referring to the "parsing schema"? If so, you can change this you know - it isn't 'set in stone' at the time you install.
    3. With the above in mind, does the schema "Ves" exist at all in the 'target' Oracle instance /apex installation? If so, it may not be necessary to re-create it.
    If you really do require to export/import the "Ves" schema, bear in mind that the DDL script will only create the schema objects - it won't load the data with it; you'll need to do that separately (or at least, code that element yourself into the script, if it's on the same DB instance). This might not be a problem for you but if your app relies on metadata from look-up tables and the like, it may not behave the way you expect, or even run at all...

  • HTTP 404 error after changed tablespace and password of schema FLOWS_FILES

    Hi I have a problem of having HTTP 404 not found error for file upload in my apex app by submiting a page. When it goes to http://xxx.xxx.xxx:8080/apex/wwv_flow.accept after unlocked , changed password and change tablespace for the account FLOWS_FILES.
    Is there anyone can help ?
    Thanks in advance.

    Hi Scott,
    Yes, I have modified the bug tracker application to support file upload by using a file browser object and created a "file_upload" table under the workspace schema to keep the linkage with the table WWV_FLOW_FILE_OBJECTS$. The application works fine before but after I realize that the FLOWS_FILES schema can be unlocked and the free space in default tablespace SYSAUX has almost been used up more than 99%, so I first unlock the account FLOWS_FILES, then changed the password and move the table WWV_FLOW_FILE_OBJECTS$ to tablespace FLOW_1 and changed the default tablespace and then rebuilt the index. I have moved the table back to SYSAUX tablespace now and have rebuilt the index also. However, upload a file and then press 'apply change' in the 'create issue log details' page, it gets the error HTTP 404 but if I do not attach any file. It goes without an error. The only thing I changed is on the database side of the FLOWS_FILES schema, so I think the problem resides on it but I don't know why even I moved the table WWV_FLOW_FILE_OBJECTS$ back to SYSAUX, rebuilt the index but still it doesn't work.
    Is that good even explanation ?
    btw, I am using IIS and how can I see the webserver error ?
    Regards,
    Edward

  • Generating traffic report of a tablespace or schema

    Hello together,
    at an Oracle 11gR2 (11.2.0.3.0) Enterprise Edition (fully licensed) with RHEL 6 as OS I'm trying to generate a statistic, that shows me a weekly or monthly report over the traffic on a tablespace or a schema.
    Until now, I've worked with the HIST_VIEW dba_hist_tbspc_space_usage (I mean there is also one nearly called so for schema), but that view show me only the grow of a tablespace in a timeline of 1 week. But that would not be the hole traffic. Because SELECT statements will nothing do on the grow of the tablespace but it generates traffic.
    In that case it wouldn't be so important, if it is more tablespace or schema sided because at this database each tablespace has it's own schema and timeline would be nice if it is weekly or monthly.
    Does somebody of you know a way to generate such a report? I know I could do with some tcp_dump, but i would also see if there is also any Oracle database way.
    Thanks and regards,
    David

    Thanks for your answer Justin!
    That is what i meant with fully licensed. Performance and tuning pack is on board.
    Directly, I can try the view tomorrow, I'm not at work right now.
    But it sounded not like that what I'm searching for. Normally traffic should be something in MB or GB I think.
    Better would be to describe, for whgat I need that: my company want's to "outsource" our dedicated server to an IAAS provider. To calculate the cost they need informatioin about:
    The complete size of DB
    Size of each schema / tablespace
    And the traffic, because traffic generate extra cost
    Traffic in this case doesn't mean only the shrink and grow of a schema or a tablespace (insert, update, delete) it also means the read out of data in the database by select or merge or something like that.
    So the shrink and grow I'm able to calculate them by dba_hist_tbspc_space_usage by getting the size of a tablespace each hour and make an addition of the changes of the size. But here I can't see the traffic that is generating by everything else? And you mean, that can I do with DBA_HIST_SEG_STAT?
    Regards,
    David

  • What are differences between the target tablespace and the source tablespac

    The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
    Why create so many errors?
    How to avoid these errors?
    What are differences between the target tablespace and the source tablespace?
    Is this datapump action really successfull?
    Thw following is the log output:
    [oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("Q_NAME" VARCHAR2(30), "MSGID" RAW(16), "CORRID" VARCHAR2(128), "PRIORITY" NUMBER, "STATE" NUMBER, "DELAY" TIMESTAMP (6), "EXPIRATION" NUMBER, "TIME_MANAGER_INFO" TIMESTAMP (6), "LOCAL_ORDER_NO" NUMBER, "CHAIN_NO" NUMBER, "CSCN" NUMBER, "DSCN" NUMBER, "ENQ_TIME" TIMESTAMP (6), "ENQ_UID" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
    . . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
    . . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
    . . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
    . . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
    . . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
    . . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
    . . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
    . . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
    . . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
    ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
    ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
    ORA-01403: no data found
    ORA-01403: no data found
    Failing sql is:
    BEGIN
    SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14

    Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
    Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
    Justin

  • How to reorganize applsys schema in oracle apps

    Dear Guru's,
    Can any one suggest how to Re-Organize Applsys schema in oracle application .
    The tablespace which is related to Applsys has nearly 15GB of free space. I need to resize it. Oracle has suggested to follow 303709.1. But it donsn't helped out.
    I am planning to 1) take an export of applsys schema 2) Drop applsys schema 3) Recreate new same tablespace with new appropriate storages & 4) import back the applsys scheam.
    Is it the appropriate method? I need the solution from some one who faced and resloved this issue. No theoritical solutions please.
    Naveen

    If you have the disk space you could create another tablespace and use the alter table move command to move the objects into it. See note 110246.1. I have used this method for other tablespaces (not applsys though). Depending on what version of the rdbms you are on there may be some limitations when it comes to lobs and nested datatypes/tables.

  • To capture all the objects from an tablespace and restore.

    Hi All,
    I have a situation in the  Schema  refresh process where i may have  to delete a tablespace  and its datafiles.
    Then I have to recreate it as it was before and restore all it objects .
    Is there any way that i can capture all the objects of that tablespace before it is deleted  and then later restore it back as it was .
    Any Expert sugggestion is highly apprciated .
    The Platform is as below ..
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks In Advance .

    There are 2 methods you could use with Data Pump.
    1. tablespace mode export.  expdp user/password tablespaces=<your list here> ...
    2. transportable tablespace mode.  expdp user/password transport_tablespaces=<your tablespace list here> ...
      NOTE:  for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
                    tablespaces need to be self contained.
    Hope this helps.
    Dean

  • Renaming a tablespace

    hi
    I have a tablespace and wanted to rename it:
    alter tablespace oldttbs rename TO newttbs;
    create user newttbs identified by newttbs default tablespace newttbs
    grant unlimited tablespace to newttbs
    However, I noticed that the owner is still the old one (named also oldttbs).
    So now I have this situation:
    select distinct owner,TABLESPACE_NAME from dba_segments where owner in ('oldttbs','newttbs');
    OWNER TABLESPACE_NAME
    newttbs newttbs
    oldttbs      newttbs
    the new tablespace (owner newttbs) has some empty tables.
    Can you please advise?

    You are mixing up owners and tablespaces.
    There is no tight relation between them.
    A database consist of multiple tablespaces.
    An owner can store objects in multiple tablespaces.
    There is no rule: owner=tablespace.
    So when you renamed the tablespace, the result is owner oldtbbs (very bad name) is now storing his objects in tablespace newtbbs.
    What you see right now is what you asked.
    You have an existing user 'oldtbbs' who stores his objects in tablespace newttbs.
    You have a newly created user 'newttbs' who also store his objects in tablespace newttbs.
    If you really want a separate tablespace for every user, you should have created a new tablespace apart from oldttbs,
    Also granting unlimited tablespace privilige is a very bad thing to do.
    This allows the user to create objects in any tablespace, including SYSTEM.
    You should have created the user thus
    create user newttbs identified by newttbs default tablespace newttbs quota unlimited on newttbs.
    Guess you are in dire need of reading the Concepts Manual.
    Sybrand Bakker
    Senior Oracle DBA

  • DEFAULT TABLESPACE and TEMPORARY TABLESPACE for eBusiness Suite database

    Hi:
    What is the
    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.
    Please help

    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.Create a new tablespace and temporary tablespace for your custom schema (you may use the existing temporary tablespace).
    Integrating Custom Applications with Oracle Applications Release 11i [ID 176852.1]
    Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]
    Thanks,
    Hussein

  • EXPDP tablespace and IMPDP tablespace - who owns the tablespace data?

    Hi Gurus
    Sorry - new to this. Thank you for replies in advance.
    10.2.0.3 - Windows 2003. Done some googling but not got the answer.
    Have been asked by developer to export multiple tablespaces (on one server) into a new database (on another server) but import into just one tablespace.
    Unable to use transportable tablespaces because software owner says it doesn't work.
    However, developer says can use data-pump in 10g to do this.
    Have created the same repository on both databases under the system account and same path name on both servers.
    Have used expdp system/password tablespace=(tablespace_name1, tablespace_name2, etc) to create the dmp file and copied it over to the new database server.
    Now about to import it into the new database into just one tablespace.
    If I export all the multiple tablespaces and then import them into the one tablespace - under the system account - how does Oracle work out who owns the tables in the tablespace?
    The tables, themselves, are owned by multiple owners (not all these users are created in the new database as the developer's ultimate idea is that it is only one new schema is created for the multiple tablespace data).
    Before doing it I wonder - even though I've specified no schema etc - seems to me that system owns this data and all the data in the tablespace if I do import it successfully using remap tablespace=source: new tablespace.
    I saw the system tablespace increase (thought it would but not what is desired, I'm guessing as I can't identify it clearly when looking - so it maybe there unnecessarily forever.
    Seems to me I've put stuff into my system tablespace that will be there forever (unless I do something about it) on database1.
    But if I impdp to database2 to new tablespace - under the system owner - then it will still be in the system tablespace and still owned by the system schema.
    Is this correct thinking?
    Should I create the old owners of the schemas in order for the impdp to succeed?
    And if correct - is it possible to then allocate those tables in that tablespace to a new schema owner - and is there a way to do it at the time of import or do I have to then do some clever magical guru stuff to change it?
    Thanks Gurus.
    Please ask questions if I've not made myself clear.
    Thanks again.

    Thank you Guru for your reply.
    No, I am not trying to create the same database elsewhere.
    I am definitely not trying to not create a clone.
    I would like to understand that, as I have a dmp file created for multiple tablespaces via expdp - under the system user - as I now want to dmp that file under one user - and can do via impdp - who owns the data - and if I have transferred via system user - is it the system user who owns the data in the tablespace now - or can I transfer it to a new named user?
    Thanks Gurus.

  • How do I move a table from one schema to another schema on Oracle XE?

    How do I move a table from one schema to another schema on Oracle XE?

    Hi,
    I tried to use the insert/select statement that you had given, it did not work.
    The error is ORA-00913: too many values.
    But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
    However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
    Thank you
    Skye

Maybe you are looking for

  • I am going to ****.

    Well I managed to break my roommates macbook pro screen. We're studying abroad in the netherlands currently, we live in a small room. I tripped over my chair and in an attempt not to fall attempted to grab onto something... I grabbed onto his macbook

  • Itunes 11.3 won't recognize ipod 5th generation

    Itunes will not respond to my ipod touch 5 generation after I installed the latest update for the itunes software/program (itunes 11.3). However, my computer (Windows 8 PC) is able to detect my ipod. I've been searching the forum like crazy and tryin

  • Performance of Anonymous PL/SQL Block..?

    Hi All, Assuming I have a table by name "Some_table" which is having some millions of records, I just like to know if there will be any difference in performance from the below 2 pieces of block. (Here to simplyfy the code I have taken only one table

  • Need to create Idoc using with BAPI in BP

    Hi Experts, Business Partners are created/changed in SAP either directly by using transaction BP or indirectly created from DTI or using the BAPIBUSISM007_CREATEFROMDATA BAPI for new customers and BAPIBUSISM007_CHANGE to change customers. When a busi

  • Will this transfer work

    I did not migrate over all my old settings from my iMac G4 (running iTunes 7.3.2) to my new MacBook Pro. I had a 40 G iPod on the old one, and an iPhone up and working on the new one. Lots of music, some purchased, mostly from CDs on the old one. I h