Tablespaces in Oracle9

How do I
1. check what is my default tablespace?
2. create a table to the non-default tablespace with using 5K initial extent and 2K next extent and set pctincrease to zero for storage parameters?
pls reply soon if you have the solution...
Cheers,
Tommi

SQL> select default_tablespace from dba_users where username='VALEYARD';
DEFAULT_TABLESPACE
USERS
SQL>
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/tspaces.htm#636
William

Similar Messages

  • How to Generate DDL Statement for PSAPROLL Tablespace on Oracle9i-HP_UX

    Hi,
    I am having SAP R3 46C installed with Oracle 9i on HP_UX 11i system.
    I want to generate required DDL statements for PSAPROLL Tablespace/Rollback Segments as Backup/recovery purpose, before converting it into PSAPUNDO.
    Its easy to find & store required DDL statements using OEM. But, I am not able to locate oemapp  (under $ORACLE_HOME/bin directory) application in the installation.
    The current patch level of installed oracle is
    I want to start OEM in HP_UX system, if it is possible.
    otherwise,
    I want to know the other alternatives to generate the required DDL statements.
    Thanks in advance.
    Regards,
    Bhavik G. Shroff

    Hi Stefan,
    On windows Platform it is very easy to get DDL info for any object of database.
    But, I was not able to start OEM in HP_UX system.
    I have done my job complete using this good package of Oracle9i, in this way.
    SQL> SET heading off
    SQL> SET long 10000
    SQL> SET pages 100
    SQL> SELECT dbms_metadata.get_ddl(u2019TABLESPACEu2019,'PSAPROLLu2019)
    FROM DBA_TABLESPACES;
    O/P:
    CREATE TABLESPACE "PSAPROLL" DATAFILE
    '/oracle/RQ1/sapdata1/roll_1/roll.data1' SIZE 681574400 REUSE ,
    '/oracle/RQ1/sapdata1/roll_2/roll.data2' SIZE 3145719808 REUSE
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576 SEGMENT SPACE MANAGEMENT MANUAL
    SQL> SELECT dbms_metadata.get_ddl(u2019ROLLBACK_SEGMENTu2019,'PRS_0u2019)
    FROM DBA_SEGMENTS;
    CREATE ROLLBACK SEGMENT "PRS_0" TABLESPACE "PSAPROLL"
    STORAGE(INITIAL 10485760 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 32765
    Also follow this useful links:
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen2.shtml]
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen3.shtml]
    Good.
    Thanks a lot.

  • Tablespaces in Oracle9i

    Can anyone provide me with information about the tablespaces DRSYS,CWMLITE,XDB in Oracle9i
    Please tell me the purpose for creating these tablespaces.

    DRSYS is for Intermedia Text, CWMLITE for Olap and XDB for XML i believe...
    H�kon

  • Want to increase Tablespace of Oracle9i in AIX

    Dear Sir,
    I want to increase tablespace of Oracle 9i in AIX. What command i will write for this.
    With Regards,
    Debasis Mishra
    [email protected]

    thier r many ways of doing this .
    U can either add a new datafile or extend the size of the datafile present.
    It also depends on the way you have created the tablespace originally.
    So if u can give that details it will be helpful.

  • Spatial index creation fails in oracle9i but works in 8i

    Hi--
    i'm using oracle9.0.1.2.0 and arcSDE on solaris 8
    when i create a spatial feature table and index oracle gives me the foloowing error:
    Extended error code(29855): ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13236: internal error in R-tree processing: [failed to cluster in memory]
    ORA-13249: Internal error in Spatial index: [mdrcrclmem]
    ORA-13232: failed to allocate memory during R-tree creation
    ORA-13249: Error in Rtree: [mdrcrrdtbl, select /*+ PARALLEL 4 */ rid , min_d1, max_d1 , min_d2, max_d2  from (select rownum rnum, rid , m(MDSYS.SPATIAL_INDEX)
    this occurs whether i use cov2sde at the command line or Create Index in sqlplus:
    SQL> create index COUNTY_IDX on COUNTY_SDO(shape)
      2  indextype is mdsys.spatial_index
      3  parameters ('SDO_INDX_DIMS=2 tablespace=sde2_idx');
    create index COUNTY_IDX on COUNTY_SDO(shape)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Stmt-Execute Failure: SELECT count(*) from SDE.COUNTY_SDO
    ORA-29400: data cartridge error
    ORA-01116: error in opening database file 14
    ORA-01110: data file 14: '/u04/oradata/GIS2/sde3_idx01.dbf'
    ORA-27041: unable to open file
    SVR4 Error: 24: Too many open files
    Additional information: 3
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    the bizarre thing is that everything works tickety-boo in oracle 8i *8.1.7.3)
    has anyone run across this?
    cheers
    --kassim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    thanks for the suggestion, but that didnt work either
    i increased the file descriptor limit from 256 to 2048 (my sysadmin sez that could break lots of things in solaris and had another go:
    elvis{1}% ulimit -a
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) unlimited
    stack(kbytes) 8192
    coredump(blocks) unlimited
    nofiles(descriptors) 2048
    vmemory(kbytes) unlimited
    lvis{2}% cov2sde -o create -l plstrfill_sdo,shape -f $GISDATA/survey.ws/plstr_fill,poly -e a -R 1 -k spatial -a file=$GISDATA/survey.ws/plstr_fields.txt -g SPIDX_RTREE
    ArcSDE      8.2      Build 115 Wed Mar 6 09:48:27 PST 2002
    Coverage to Layer Loading      Administration Utility
    Reading column selection file "/data/jack02/in_put/survey.ws/plstr_fields.txt"
    Library /data/jack02/in_put/survey not found.
    Unable to open library "/data/jack02/in_put/survey"
    Loading feature class/subclass "poly"
    from Coverage "/data/jack02/in_put/survey.ws/plstr_fill"
    sde_layer_plstrfill_sdo: plstrfill_sdo is in LOADONLY mode
    Imported 158399 features into SDE plstrfill_sdo,shape from coverage /data/jack02/in_put/survey.ws/plstr_fill,poly
    SDE Error(-51) Underlying DBMS error
    Extended error code(29855): ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13230: failed to create temporary table [M2_8496$$] during R-tree creation
    ORA-13249: Error in stmt: CREATE TABLE M2_8496$$ NOLOGGING tablespace SDE_IDX STORAGE (initial 4096K next 4096K pctincrease 0 maxextents unlimited) as (select rid , min_d1, max_d1 , min_d2, max_d2 from M0_8496$$ a, (select (min_d2+max_d2) value fro(MDSYS.SPATIAL_INDEX)
    Not able to set layer into Normal-IO mode.
    Cov2SDE completed.
    No libraries currently set.
    SQL> create index plstrfill_idx on plstrfill_sdo(shape)
    2 indextype is mdsys.spatial_index
    3 parameters ('SDO_INDX_DIMS=2 tablespace=sde4_idx');
    create index plstrfill_idx on plstrfill_sdo(shape)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13230: failed to create temporary table [M2_84A5$$] during R-tree creation
    ORA-13249: Error in stmt: CREATE TABLE M2_84A5$$ NOLOGGING tablespace SDE4_IDX
    STORAGE (initial 4096K next 4096K pctincrease 0 maxextents unlimited) as
    (select rid , min_d1, max_d1 , min_d2, max_d2     from M0_84A5$$ a, (select
    (min_d2+max_d2) value from M0_84A5$$ where rowid='AAAISqAAPAAACCYABK') b where
    (((a.min_d2+a.max_d2) < b.value) or (((a.min_d2+a.max_d2) = b.value) and (a.rid
    <= 'AAAISeAAJAAAnvnAASZ'))))
    ORA-13230: failed to create temporary table [M2_84A5$$] during R-tree creation
    ORA-29400: data cartridge error
    ORA-00210: cannot open the specified controlfile
    ORA-00202: controlfile: '/u01/oradata/GIS2/control01.ctl'
    ORA-27041: unable to open file
    SVR4 Error: 24: Too many open files
    Additional information: 3
    ORA-06512: at "MDSYS.SDO_INDEX_METH
    this is really killing me
    my oracle is setup following the esri and oracle guidelines:
    all our tablespaces are with UNLIMITED extent and maxsize on
    any files. All the tablespaces follow Oracle9i best practices
    such as OFA, SAFE, and SAME including Temporary Tablespace.
    any suggestions would be realy helpful
    --kassim

  • Transportable tablespace accross different oracle versions

    Hi
    Do I need same oracle versions if I want to transport tablespaces ?
    i.e Can I transport tablespaces from oracle9i to oracle 11g ? or from oracle 10g to oracle 11g ?
    I read the documents however Im still confused.

    Thanks, I have read the document and notice that from oracle 10g and onwards I can transport tablespaces accross different oracle versions.
    I think we can change the endian format via rman hence no need to have same endian format
    "Beginning with the Oracle10g database, a tablespace can always be transported to a database with the same or higher compatibility setting, whether the target database is on the same or a different platform."

  • Undo tablspace file 삭제

    oracle 10g
    undo tablespace datafile 을 OS 상에서 삭제가 되었습니다.
    신규 undo tablespace 생성하여 변경은 해놓았으나 기존 OS 상에서 삭제된 undo tablspace
    가 drop 이 안되고 instance down 로 안됩니다.
    어떻게 해야하는지 고수분들 부탁드립니다.

    9i 방법이지만 동일합니다..
    No. 17058
    [ORACLE9I] UNDO TABLESPACE를 변경하는 방법
    ===================================
    PURPOSE
    Oracle9i에서 Undo tablespace를 auto mode로 사용할 때, UNDO Tablespace를
    변경하는 방법을 알아보자.
    Explanation
    종종 UNDO Tablespace를 변경해야 하는 경우가 있다. 예를 들어 Undo
    tablespace의 datafile size가 너무 커진 경우는 datafile의 size를 줄일
    수 없다. 그래서 새로운 undo tablespace를 만들어서 database에 지정된
    undo tablespace를 변경해야 한다.
    1. 새로운 undo tablespace를 다음과 같이 생성한다.
    CREATE UNDO TABLESPACE UNDOTBS2
    DATAFILE '/home/oradata/undotbs.dbf' SIZE 100M;
    2. undo tablespace의 이름을 변경하려면 다음과 같이 실행한다.
    ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTBS2;
    3. 기존에 사용하던 undo tablespace를 drop 한다.
    DROP TABLESPACE UNDOTBS1;
    4. spfile이 아니고 initSID.ora file을 사용하는 경우에는 initSID.ora
    file에 undo_tablespace parameter의 값을 새로운 undotbs2로 변경시킨다.
    Example
    예를 들어 기존에 사용하던 UNDO tablespace가 가진 datafile의 size가
    너무 크게 늘어나서 새로운 undo tablespace로 변경하는 방법을 알아보자.
    1. 우선 현재의 undo tablespace name을 확인한다.
    SQL> show parameter undo_tablespace
    NAME TYPE VALUE
    undo_tablespace string UNDOTBS
    2. UNDOTBS와 대체할 새로운 undo tablespace를 생성한다.
    그때 아래와 같이 자동으로 늘어나되, maximum size를 지정할 수 있다.
    SQL> create undo tablespace undotbs2
    2 datafile '/home/oradata/undotbs2.dbf' size 10m
    3 autoextend on maxsize 100m;
    3. 생성된 undo tablespace를 확인한다.
    SQL> select tablespace_name, contents, extent_management
    2 from dba_tablespaces
    3 where contents = 'UNDO';
    TABLESPACE_NAME CONTENTS EXTENT_MAN
    UNDOTBS UNDO LOCAL
    UNDOTBS2 UNDO LOCAL
    4. undo tablespace에 설정된 rollback segment를 확인한다.
    SQL> select segment_name, tablespace_name, status
    2 from dba_rollback_segs
    3 order by 2;
    SEGMENT_NAME TABLESPACE_NAME STATUS
    SYSTEM SYSTEM ONLINE
    _SYSSMU1$                      UNDOTBS                        ONLINE
    _SYSSMU2$                      UNDOTBS                        ONLINE
    _SYSSMU3$                      UNDOTBS                        ONLINE
    _SYSSMU4$                      UNDOTBS                        ONLINE
    _SYSSMU5$                      UNDOTBS                        ONLINE
    _SYSSMU6$                      UNDOTBS                        ONLINE
    _SYSSMU7$                      UNDOTBS                        ONLINE
    _SYSSMU8$                      UNDOTBS                        ONLINE
    _SYSSMU9$                      UNDOTBS                        ONLINE
    _SYSSMU10$                     UNDOTBS                        ONLINE
    _SYSSMU11$                     UNDOTBS2                       OFFLINE
    _SYSSMU12$                     UNDOTBS2                       OFFLINE
    _SYSSMU13$                     UNDOTBS2                       OFFLINE
    _SYSSMU14$                     UNDOTBS2                       OFFLINE
    _SYSSMU15$                     UNDOTBS2                       OFFLINE
    _SYSSMU16$                     UNDOTBS2                       OFFLINE
    _SYSSMU17$                     UNDOTBS2                       OFFLINE
    _SYSSMU18$                     UNDOTBS2                       OFFLINE
    _SYSSMU19$                     UNDOTBS2                       OFFLINE
    _SYSSMU20$                     UNDOTBS2                       OFFLINE
    위와 같이 한번에 하나의 UNDO tablespace만 설정할 수 있다.
    5. 새로운 undo tablespace를 지정한다.
    SQL> alter system set undo_tablespace = undotbs2;
    위와 같이 실행한 후에 4번의 sql을 다시 실행해 보면 이번에는
    undotbs 의 rollback segment들이 모두 offline되고 undotbs2 의
    rollback segment 들은 online된 것을 볼 수 있다.
    6. 기존의 undo tablespace를 drop한다.
    SQL> drop tablespace undotbs;
    7. spfile이 아닌 initSID.ora를 사용하는 경우는 initSID.ora file에
    undo_tablespace parameter의 값을 해당 tablespace, 여기서는
    undotbs2로 변경시켜 둔다.
    Reference Documents
    Oracle9i Server Reference

  • [b]Resizing/Altering Tablespaces Oracle9i[/b]

    1. I want to solve a performance problem by resizing the:
    temporary tablespace
    rollback tablespace
    undo tablespace
    using
    Alter tablespace, by doubling the storage parameters.
    Is this enough or should I resize the associated datafiles?
    2. Is it better performance wise: to resize the datafiles, i.e doubling
    capacity
    OR
    adding another datafile to the tablespace with the same capacity as
    the first one.

    Well U should add space in datafiles if datafiles are of smaller size and very soon they need to autoextend.
    Storage parameters must be decided before making tablespace.
    for ur second query i will suggest u to have different datafile on different disks

  • Error in creating tablespaces

    hi,
    I have installed oracle9i in HP-USserver.its installed successfully.
    I ahve created the instance too with datafiles.but the problem is that due to shortage of disk space,iam unable to store datas.so i have dropped the tablespaces and tried to create to a new file system (in the sense a new hard drive) in the same server.while creating the tablespaces alone in a different path its
    showing error as
    SQL*Plus: Release 9.2.0.2.0 - Production on Sat Jul 28 13:18:44 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: sys as sysdbas
    Enter password:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.2.0 - Production
    SQL> CREATE TABLESPACE DATAXML
    2 LOGGING DATAFILE
    3 '/server47/Bankareas/CFC/oracledatafiles/globusdataxml01.dbf' SIZE 2048M AUTOEXTEND ON MAXSIZE UNLIMITED,
    4 '/server47/Bankareas/CFC/oracledatafiles/globusdataxml02.dbf' SIZE 2048M AUTOEXTEND ON MAXSIZE UNLIMITED,
    5 '/server47/Bankareas/CFC/oracledatafiles/globusdataxml03.dbf' SIZE 2048M AUTOEXTEND ON MAXSIZE UNLIMITED
    6 EXTENT MANAGEMENT LOCAL
    7 SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE DATAXML
    ERROR at line 1:
    ORA-01119: error in creating database file
    '/server47/Bankareas/CFC/oracledatafiles/globusdataxml01.dbf'
    ORA-27086: skgfglk: unable to lock file - already in use
    HPUX-ia64 Error: 13: Permission denied
    Additional information: 8
    i want to know whether the tablespaces can be created in a seperate path apart from where oracle is installed?
    anything to be exported??
    can anybody please help me out in solving this problem.
    thanks in advance ,
    Ratheesh

    You state you have dropped the tablespace (which does not necessarily automatically drop the datafiles in version 9i); and
    You state you are trying to locate the tablespace's datafiles in a new file system where no files should exist.
    Please post response to
    ls -ld /server47/Bankareas/CFC/oracledatafiles
    ls -l /server47/Bankareas/CFC/oracledatafiles/globusdataxml01.dbf

  • Capture of synonyms from existing online oracle9i database

    Hello!
    I am a newbee in oracle designer .I need to Design capture the ERP application into designer repository.The story goes like this ::
    I am in a scenario where an ERP Application is running but without any documentation and configuration control.The Application is developed using Oracle10g Forms developer and reports,with backend oracle9i.The application and so database contains a lot of user schemas corresponding to the functional departments of organisation like finance , inventory.
    I have successfully Installed the repository (version control option enabled) on our online database('oratest') and created a repository owner 'desg',with DBA Priveleges.
    I have also created a database definition named 'oratest1' and a user named 'desg1' in the design editor's[b] System folder..
    I tried to capture the schemas in following sequence (using the option - Generate/Capture designof/servermodel). ::
    a. Login as Desg , Owner = sys-- Captured all tablespaces
    b. Login as Desg , Owner = desg-- Tried capturing designer objects but was not very successful
    c. Login as Desg , Owner = sys-- Tried capturing all sys objects , It took a lot of time with error and warnings and I was only able to capture some tables and views.I also tried with owner = 'System'.
    d Login as Desg , Owner = sys-- Captured all users from oratest to oratest1(errors displayed 'Invalid grants ')
    e. Login as Desg , Owner = sys-- Captured all roles from oratest to oratest1(errors displayed 'Invalid grants to user objects')
    f. Login as Desg , Owner = User schema1(say inventory) -- tried to capture relational tables,views,functions,procedures etc. A lot of errors saying that invalid references to objects i.e referenced objects not present in the repository.
    g. Noted down all dependencies using the DBA Views to user schema1 and captured corresponding objects from database into corresponding users in the repository.
    h. Login as Desg , Owner = User schema1(say inventory) -- Again tried to capture objects of this schema.It gives error that ' Cannot capture synonyms with same name as objects name, either recreate or make all of them public'.
    Following are my queries for which I need all your expert help::
    1. First of all ,is the sequence in procedure above alright ?.Is it necessary to capture 'SYS' , 'SYSTEM' Objects ..What if I have already done so,will it cause damage? If so is it is possible to remove them from repository automatically?.I captured since the user schemas refer to these objects at several places.
    2. Is it required to capture different User Schemas into different containers or just a single container ? If it is required to capture in different containers , how will tablespaces,users and roles already captured into system folder refer to objects in these containers.
    3.Regarding problem of grants : When are the 'grants' be captured,before the capturing the objects or after them or anytime.Is it required to capture grants via a DDL file . Will a text file generated by export grants option in 'Toad' tool will do the job?.
    4. Regarding Problem of capture of synonyms :: In most of user schemas , the private synonym has same name as the object which it refers.Hence designer is unable to capture the synonyms.If we make Synonyms public for a user schema than what about other schemas?. Secondly how to capture synonyms independently.Is it via a DDL File.Where in the design editor can we see the captured Synonyms?.How Shall we capture Public synonyms of our ERP application.
    5.In the server mode tab, under relational table definition,I can see all the mixture of user tables and sys tables.How can we isolate the tables as per user schemas and generate Server model Diagrams for individual schemas.
    Please help to resolve these Issues.
    Thanks
    With best regards

    Thanks For your reply.
    I am successful in capturing all other objects of the schema.
    Before Your reply and before capturing other objects, I tried to capture the private synonyms by first creating a ddl file and than modifying the SQL 's 'create synonym' statements to 'create public synonym', and than captured the public synonyms into the repository via design editor. In short I captured the private synonyms as public into the repository.It gave 0 error and 0 warnings.
    But where in the navigator pane can i see the captured synonyms. I cannot see any of them, so iam not sure whether they are captured or not.
    After this when I captured other objects , they were captured successfully without any errors.

  • Temporary Tablespace is Empty-Error Exporting

    Hi,
    Could any one help me in fixing the error in the following text. It is throwing the error when i tried to exp a user from the database using the system privilege.
    ==========================================================
    EXP SYSTEM/SYSTEM@TEMP1 OWNER=CONF GRANTS=Y CONSTRAINTS=Y INDEXES=Y
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in UTF8 character set and AL16UTF16 NCHAR character set
    server uses WE8MSWIN1252 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user CONF
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user CONF
    About to export CONF's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_LOB", line 424
    ORA-06512: at "SYS.DBMS_METADATA", line 1140
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    ==========================================================

    See, before attempting a sort, you must add a new tempfile datafile to
    the tablespace, for example: this migh work for you :-
    alter tablespace temp_ro add tempfile
    '/spare/sme81/oradata/jb/temp_ro.dbf' size 10m;
    hare krishna
    Alok

  • Oracle 9i TEMP tablespace backup problem using RMAN!

    Oracle8/8i whole backup is ok for our backup software(using RMAN without RC database), but for Oracle 9i, I get following error messages when backing up temp tablespace.
    1. RMAN-20202: tablespace not found in the recovery catalog
    2. RMAN-06019: could not translate tablespace name "TEMP"
    I check some views of Oracle9i, and know some changes happen for temp tablespace in 9i, but how to deal with this problem. Any idea, please!

    In 9i RMAN does not restore temporary datafiles. Instead, you should create them after your restore. I believe that Oracle is going to make a change to this in the next release of 9i and have RMAN create the temporary files. You can view the temporary datafiles @ v$tempfile.
    I believe RMAN doesn't restore temporary files because they are locally managed and not in the control files. RMAN reads the controlfile of the target database to obtain info about backups, datafiles, etc.
    Hope this helps.

  • Improving Oracle9i DB performance using IMPORT/EXPORT

    Hi,
    I'm experiencing wrong performance on Oracle9.2.0.6 DB for production system.
    I have one schema and two tablespaces: the first one for data (18 datafiles sized each 1GB), and the second one for indexes (15 datafiles sized each 1GB).
    I tryed to tune the db using statpack and noticed "Waits due to Row being locked by an active Transaction".i couldn't do very much for solving this issue.
    So, I'm wandering if using import/export utility against database would be a solution to obtain better performance. I can follow two methods for I/E:
    FIRST METHOD:
    1. Take a good export (with COMPRESS=n).
    2. drop the tablesapces.
    3. recreate the same tablespaces (data and index).
    4. make data as default and revoke RESOURCE role from user.
    5. grant quota unlimited on DATA TABLESPACE and INDEX tablespace to the user.
    6. Just import (single import would do). imp user/pass fromuser=x touser=y indexes=y constraints=y.
    Now since both data/index tablespaces already exist, the indexes will be created in their intended tablespaces.
    SECOND METHOD
    Instead of Imp or exp I can use move tablespace cmd to avoid fragmenation.
    1.create new tbs.
    2.move all objects to new tbs.
    - rebuild all indexes to new tbs.
    3.drop old tbs.
    4.rename new tbs name to old tbs names.
    Please, could you suggest If I'm following the right way to achieve better performance?
    Thanks in advance.
    Claudia

    "Waits due to Row being locked by an active Transaction" is an indicator that you have a blocking problem, not fragmentation. Do you have long transactions? In Oracle, only writers block writers so it appears you have multiple sessions trying to modify the same row(s).
    And, on the import/export - What type of disk is attached to the system? If it is a SAN it is likely that you already have a decent degree of data distribution between data and indexes.

  • Full database export hangs (Oracle9i rel2)

    I recently migrated successfully from oracle8i rel 8.0. to oracle9i release 2,But now am not able to do a full database export.has anyone experienced this and whats the remedy?.
    the text i get is listed below.
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\Documents and Settings\Administrator>exp system/manager@ORCL file=C:\orclbk\p
    oll.dmp full=y
    Export: Release 9.2.0.1.0 - Production on Tue Aug 9 18:36:13 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    EXP-00090: cannot pin type "OE"."CUSTOMER_TYP"
    EXP-00056: ORACLE error 22303 encountered
    OCI-22303: type "OE"."CUSTOMER_TYP" not found
    EXP-00056: ORACLE error 24323 encountered
    ORA-24323: value not allowed
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\Administrator>

    You have to run the export with the SYS user. This error may arise on any plattform ranging form 9.0.1 to 10.2.0.
    C:\>exp "'sys/oracle as sysdba'" full=y

  • Transportable Tablespace Issue

    Hi all,
    I dont know somebody else has posted this error here before, I am sorry If so..
    I am getting an error when I am transporting tablespace's metadata... can anyone help me about this issue ?
    My OS is RH 4
    ======================================================================
    [oracle@localhost export]$ exp parfile=/home/oracle/oracle9i/backup/export/prams.dat
    Export: Release 9.2.0.1.0 - Production on Mon Apr 28 13:33:23 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    EXP-00008: ORACLE error 1001 encountered
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 819
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 774
    ORA-01187: cannot read from file 201 because it failed verification tests
    ORA-01110: data file 201: '/home/oracle/oracle9i/oradata/db1/dbf/temp01.dbf'
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1093
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    ====================================================================
    My parameter file looks like below
    TRANSPORT_TABLESPACE=y
    TABLESPACES=users
    FILE=/home/oracle/oracle9i/backup/export/ts_users_28042008_10:04.dmp
    LOG=/home/oracle/oracle9i/backup/export/explog.log

    Check the similar sort of thread.
    Re: Transportable tablespace
    Regards,
    Sabdar Syed.

Maybe you are looking for

  • Help needed in creating File Directory if not exist

    hi, All I am thinking about wite files to directories based on year, month, day. if the directory for that year or month or day exists already, do not create the directory, but write the file to that directory. For example: 2003/02/22/file.txt --2003

  • Post Bankruptcy Charges with no proof  or reasons provided

    I recieved a charge on my bill called post Bankruptcy charges for 48.00 . I never recieved any notification of said charges , There is no break down of why theses charges have been applied , I then called and was told it was for payments being missed

  • Renaming a character

    Can I change the name of a character in a script and it will update all instances of the character throughout the entire script? Thanks

  • Issue with layout / repeat region part 2..

    Seems I haven't cracked this just yet - basically have a details page that is split into three - with a candidate's details at the top left, their work profile at the top right, with a long CV text appearing below both. All the fields are from the Ca

  • Can a Canadian have a US itunes account as well as a CDN one

    Hello, I have an itunes Canadian account but was wondering if there is a way to set up a second US account to buy some songs that are not on the Canadian Itunes store. I figure there must be some way to do it. Thanks in advance.