Create tablespace issue

Hi;
I wanna learn one thing...
I have oracle ebs r11i wiht 10gr2 db, and its prod instance...
Issue is like this:
I have one tablespace lets us call it XXX and it has datafile like xx1.dbf,xx2.dbf..... I want to delete those dbf becouse their each size is 40 GB, and i want to create 2 new datafile which is each 10Gb.
Would you give me steps and command how i can do that?
Thanks

tablespace - XXX
datafile - xx1.dbf,xx2.dbf.....
you want to delete those dbf becouse their each size is 40 GB, and i want to create 2 new datafile which is each 10Gb.
1) If you want to delete 40 GB dbf's, you will loose data.
2) If you really do not want those data, you can go ahead by dropping and creating DBF with 10 GB.
steps and command how i can do that?
I have give below sample commands, go through it thoroughly and go ahead.
Best of Luck.
=================================================================
CREATING TABLESPACES
====================
CREATE TABLESPACE userdata DATAFILE '/u01/oradata/userdata01.dbf' SIZE 100M
AUTOEXTEND ON NEXT 5M MAXSIZE 200M;
Locally Managed Tablespaces
===========================
CREATE TABLESPACE userdata DATAFILE '/u01/oradata/userdata01.dbf' SIZE 500M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;
Dictionary Managed Tablespaces
==============================
CREATE TABLESPACE userdata DATAFILE '/u01/oradata/userdata01.dbf' SIZE 500M
EXTENT MANAGEMENT DICTIONARY DEFAULT STORAGE ( initial 1M NEXT 1M );
Undo Tablespace
===============
CREATE UNDO TABLESPACE undo1 DATAFILE '/u01/oradata/undo101.dbf' SIZE 40M;
Enabling Automatic Extension of Data Files
==========================================
ALTER DATABASE DATAFILE '/u01/oradata/userdata02.dbf' SIZE 200M AUTOEXTEND ON NEXT 10M MAXSIZE 500M;
SAMPLES
=======
SQL> CREATE TABLESPACE data01
2 DATAFILE '$HOME/ORADATA/u04/data01.dbf' SIZE 2M
3 EXTENT MANAGEMENT DICTIONARY;
Tablespace created.
SQL> CREATE TABLESPACE data02
2 DATAFILE '$HOME/ORADATA/u03/data02.dbf' SIZE 1M
3 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 100K;
Tablespace created.
SQL> CREATE TABLESPACE indx01
2 DATAFILE '$HOME/ORADATA/u02/indx01.dbf' SIZE 1M
3 AUTOEXTEND ON NEXT 500K MAXSIZE 2M
4 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4K;
Tablespace created.
SQL> CREATE TABLESPACE ronly
2 DATAFILE '$HOME/ORADATA/u01/ronly01.dbf' SIZE 1M;
Tablespace created.
TO QUERY ALL TABLESPACES
========================
SELECT * FROM v$tablespace;
ALTER TABLESPACE
================
ALTER DATABASE DATAFILE '$HOME/ORADATA/u03/data02.dbf' RESIZE 1500K;

Similar Messages

  • Create tablespace using RAW device

    Hi,
    When you create the tablespace using RAW device, you no need to specify the size parameter in the sql. It works in Solaris but not in Linux.
    I dont know why, can anyone experience this issue before? please let me know
    Thanks
    Veera

    My advice for you would be to always include SIZE parameter when you create tablespace, redo log file on raw device.
    Best Regards
    Krystian Zieja / mob

  • Creating tablespace and databasefiles

    I am creating a tablespace with sets of database files within it with the following option
    I get the following error:
    CREATE SMALLFILE TABLESPACE "CLAIMS_NEW"
    DATAFILE
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW1.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW2.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW3.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW4.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW5.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW6.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW7.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW8.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW9.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW10.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW11.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW12.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW13.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW14.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M,
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\QAIDM2\CLAIMS_NEW15.DBF' SIZE 4096M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE 4096M
    NOLOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
    Error:
    Error at Command Line:1 Column:0
    Error report:
    SQL Error: ORA-00059: maximum number of DB_FILES exceeded
    00059. 00000 - "maximum number of DB_FILES exceeded"
    *Cause:    The value of the DB_FILES initialization parameter was exceeded.
    *Action:   Increase the value of the DB_FILES parameter and warm start.
    I am not sure how to rectify this error ? Do I have to reduce number of database files ?
    Please advise
    Thanks
    Jay

    Cause of The Problem
    You have reached the limit of DB_FILES parameter. Before entering into solution part let's have an idea about DB_FILES and MAXDATAFILES parameter.
    The DB_FILES parameter limits the maximum number of datafile can exist in oracle database. We can't change this parameter dynamically. We have to change it spfile by using ALTER SYSTEM .... SCOPE=SPFILE or in the pfile.
    And the MAXDATAFILES parameter you can find with the CREATE DATABASE command or in CREATE CONTROLFILE command. It is also a limitation of maximum number of datafiles can be in the datafile. But starting from oracle 8 this hard limit parameter can be easily expanded up to DB_FILES parameter. So, if you attempt to add a new file whose number is greater than MAXDATAFILES, but less than or equal to DB_FILES, the MAXDATAFILES parameter of the control file will expand automatically to accommodate more files.
    So, if you are after oracle 8i then we should just forget about MAXDATAFILES parameter. We should rather think about DB_FILES parameter.
    Solution of The Problem
    If you use pfile to startup the database then edit pfile and add/modify the DB_FILES parameter to a greater value so that it can accommodate higher number of datafiles. Then start the database using that pfile.
    If you use spfile to startup the database then issue,
    SQL> alter system set db_files=300 scope=spfile;
    System altered.
    Then start your database and either create tablespace or add datafile to an existing tablespace. Hopefully it will work.source:-
    http://arjudba.blogspot.com/2008/08/maxdatafiles-dbfiles-parameters-and-ora.html
    also refer,
    http://laurentschneider.com/wordpress/2006/01/change-maxdatafiles-malogfiles-maxinstances-maxlogmembers-without-downtime.html

  • MCOD installation fails during Database instance phase  "CREATE TABLESPACES

    We are installing solution manager 3.2 using MCOD option on windows 2003/oracle.  Installation fails during Database instance phase  "CREATE TABLESPACES" step without any error.  Interesting thing is no error message in installation log or oracle alert log.
    Installation Details
    First instance: SMD / Instance number: 00 / schema: sapsmd / Database SID: SMD
    Second instance; SMQ / Instance number: 01 / schema: sapsmq / Database SID: SMD
    Did any one come across this issue?  Any help is greatly appreciated.
    Thanks

    Hi,
    Did u checked for the Space utilization on the drives.Normally when installation fails there will be some intimation of the cause in the log files written in the sapinst directory.IF it is failing in the tablespace creation phase the that means that the data files cannot be created.
    It depends on the database you use: Data files(Oracle), Containers (DB2).
    Do check in the sapdata directories whethere the data file have created.
    If its not giving you any error then the installation might got stuck bcoz of some memory problems during the "create tablespace phase"
    Regards
    Ashly.

  • CREATING TABLESPACES

    hi,
    while creating tablespaces is it possible to give create tablespace <tablespace_name>.i dont want to add any datafiles while creating tablespaces...
    could anybody tell the syntax.
    Thanks in advance,
    R.Ratheesh

    Use Oracle Managed Files (OMF), OMF simplifies the creation of databases as Oracle does all OS operations and file naming. It has several advantages including:
    Automatic cleanup of the filesystem when database objects are dropped.
    Standardized naming of database files.
    Increased portability since file specifications are not needed.
    Simplified creation of test systems on differing operating systems.
    No unused files wasting disk space.
    The location of database files is defined using the DB_CREATE_FILE_DEST parameter. If it is defined on its own all files are placed in the same location. If the DB_CREATE_ONLINE_LOG_DEST_n parameter is defined alternate locations and levels of multiplexing can be defined for Logfiles. These parameters are dymanic and can be changed using the ALTER SYSTEM statement:
    ALTER SYSTEM SET DB_CREATE_FILE_DEST='C:\Oracle\Oradata\TSH1';
    Files typically have a default size of 100M and are named using the following formats where u% is a unique 8 digit code, g% is the logfile group number, and %t is the tablespace name:
    File Type Format
    Controlfiles ora_%u.ctl
    Redo Log Files ora_%g_%u.log
    Datafiles ora_%t_%u.dbf
    Temporary Datafiles ora_%t_%u.tmp
    Managing Controlfiles Using OMF
    Managing Redo Log Files Using OMF
    Managing Tablespaces Using OMF
    Default Temporary Tablespace
    Managing Controlfiles Using OMF
    During database creation the controlfile names are not specified. Instead, a controlfile is created for each DB_CREATE_ONLINE_LOG_DEST_n specified in the init.ora file. Once the database creation is complete the CONTROL_FILES parameter can be set in the init.ora file using the generated names shown in the V$CONTROLFILE view.
    Managing Redo Log Files Using OMF
    When using OMF for redo logs the DB_CREAT_ONLINE_LOG_DEST_n parameters in the init.ora file decide on the locations and numbers of logfile members. For exmple:
    DB_CREATE_ONLINE_LOG_DEST_1 = c:\Oracle\Oradata\TSH1
    DB_CREATE_ONLINE_LOG_DEST_2 = d:\Oracle\Oradata\TSH1
    The above parameters mean two members will be created for the logfile group in the specified locations when the ALTER DATABASE ADD LOGFILE; statement is issued. Oracle will name the file and increment the group number if they are not specified.
    The ALTER DATABASE DROP LOGFILE GROUP 3; statement will remove the group and it members from the database and delete the files at operating system level.
    Managing Tablespaces Using OMF
    As shown previously the DB_CREATE_FILE_DEST parameter in the init.ora file specifies the location of the datafiles for OMF tablespaces. Since the file location is specified and Oracle will name the file, new tablespaces can be created using the following statement:
    CREATE TABLESPACE tsh_data;
    The resultant datafiles will have a default size of 100M and AUTOEXTEND UNLIMITED. For a specific size file use:
    CREATE TABLESPACE tsh_data DATAFILE SIZE 150M;
    To add a datafile to a tablespace use:
    ALTER TABLESPACE tsh_data ADD DATAFILE;
    If a tablespace is dropped, Oracle will remove the OS files also. For tablespaces not using the OMF feature this cleanup can be performed by issuing the statement:
    DROP TABLESPACE tsh_data INCLUDING CONTENTS AND DATAFILES;

  • 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

  • Error in creating tablespace

    Machine has the following configuration,
    Oracle 10g 10.2.0
    Solaris 10
    Sparc v9-64 bit
    I have mounted NAS(Network attached Storage) device on solaris using NFS file system. The device has been mounted using sharity software.
    The problem is that when i execute the following command in sqlplus,
    create tablespace test datafile '/storage/test.dbf' size 1m autoextend on
    (/storage is the mount point for NAS device)
    then i get the following error message
    ORA-01119: error in creating database file '/storage/test.dbf'
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options.
    Additional Information:2

    this is the document
    http://download-uk.oracle.com/docs/cd/B19306_01/install.102/b15660/app_nas.htm#BCFEAHIC
    and this will help either
    10gR2 "database backup" to nfs mounted dir results in ORA-27054 NFS error

  • Error while creating media issue in msd using jpmg0

    Dear all,
    kindly help me to solve the following issue. when i am creating media issue using tcode jpmg0, in the  process lo,g system shows the following error message.
    "Required parameters missing when calling up module " ACCOUNTING_KEYS_READ_FOR_BWKEY". It is very helpfull to me, give a reply by anybody as early as possible. kindly help me.

    Hi,
    Request you to check media product and media issue master data setup.
    Items for which neither financial accounting nor price calculation is permitted,you might this error.
    Best Regards,
    Chandra

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • Not able to Create TABLESPACE PSAPROLL|PSAPUNDO    with 728 MB

    Hi Experts,
                   When i an trying to upgrade PI 7.0 to pi 7.1 with EHP1 in checks roadmap in abap it throws error like
    ERROR> Insufficient free space in the database as follows:
    Create TABLESPACE PSAPROLL|PSAPUNDO    with 728 MB
    INFO> To adjust the size of your tablespaces, you may use the commands
          in file '/oracle/stage/upg/abap/log/ORATBSXT.LST' using the 'brspace' utility.
          Please copy the file before making changes, as it may be
          overwritten in subsequent upgrade phases.
    In the location
    '/oracle/stage/upg/abap/log/ORATBSXT.LST
    These are examples for brspace commands to extend/create the required
    tablespaces. You can adapt them according to your own needs.
    Add option '-c force' to call the commands in batch mode.
    Change option '-autoextend' to 'yes' and set '-maxsize' and '-incrsize'
    to create autoextensible segments.
    brspace -function tscreate -tablespace PSAPROLL|PSAPUNDO -owner SAPSR3 -size 728 -autoe
    xtend no
    info while creating : PSAPUNDO: Command not found.
    with the help of this above command i am not able to create the tablespace.
    My Existing tabelspaces are
    PSAPSR3
    PSAPSR3700
    PSAPSR3DB
    PSAPSR3USR
    PSAPTEMP
    PSAPUNDO1
    SYSAUX
    SYSTEM
    Plz help me on this ASAP.
    Thanks,
    Hari

    Your real problem is that PSAPUNDO does not exist. For an unknown reason you are using PSAPUNDO1. so, you must fix this:
    shutdown your DB.
    rename tablespace PSAPUNDO1 to PSAPUNDO. this can be done with:
    brspace -c force -f tsalter -a rename -t PSAPUNDO1 -n PSAPUNDO
    you will also need to change parameter undo_tablespace to PSAPUNDO
    if using initSID.ora, change this manually. or else, do this:
    alter system set undo_tablespace=PSAPUNDO scope=both;
    you might need to restart your database.
    good luck.

  • Any way to create tablespace with name greater than 30 characters ?

    Is there any way to create tablespace greater than 30 characters on solaris 10 and Oracle 10g. Any way ? because i have no other option.

    desc dba_tablespaces
    So clearly the answer is NO.
    Tablespace names are invisible and irrelevant. Why the question?

  • Createtablespace.sql is creating tablespaces in wrong sid

    Hi,
    We are in the process of performing system copy of EHP4 for TDMS shell creation using standard system copy process as suggested by sap.
    During export while SAPInst asked for Import Migration Directory we provided the export dump of target system ( modified as per TDMS shell creation)
    During system copy we are getting the error during create table space phase. SAPinst is creating the tablespace with source system SID. .i.e instead of T02 it is taking P02.
    create tablespace P02#USER1D
      in nodegroup SAPNODEGRP_T02 pagesize 16k  extentsize 8 prefetchsize automatic
      no file system caching
    Because of that we are getting following error during import phase.
    ERROR      2009-08-10 07:24:33.154 [iaxxinscbk.cpp:260]
    MDB-01999  Error occured, first error is: <SQL0204N  "P02#DDICD" is an undefined name.  SQLSTATE=42704>
    Please suggest.
    Sanjay

    Hi,
    I have recently expierienced a very simialr sort of error doing a EHP5 upgrade.
    (it's similar because I did a standard system copy (export/import) and got the same error )
    It's not realy a solution but guidance:
    If you check this table DDSTORAGE and search for the incorrect sid:
    eg (assuming P02 is the incorrect SID):
    select * from <your_schema>.ddstorage where text like '%P02%
    you'll probrably find the erronous entries.
    Since this a rare occurance, the best advice would be to open a message to SAP.
    They would probrably want to remotely connected to the system and have a look.
    I don't think there is a gerneral fix and each occurance would have to be handle at an individual level.
    Since I use DB2 I used this component when creating my OSS:
    BC-DB-DB6-UPG
    I know this thread is old but
    I've answered here as hopefully it may benifit anyone else that finds this thread.
    Kind Regards,
    chris

  • Create tablespace in Oracle 10g Express

    Hi,
    I've been playing around over the last few days with Oracle 10g Express and I need to create my own tablespace and therefore create user associated with my custom table space.
    I tried with the command create tablespace, but I am not successful with configuring the parameters such as the datafile location and such. I did go through the Oracle Concepts Guide which was very helpful, but I must be missing something.
    Also assuming that my db scheme will be part of my application and therefore released to my client as script so they can re-create my database how would the table space integration work on their end.
    I would I have to place my first line of the script to create the table space and ask them for database file location?
    Any advice will be appreciated.
    Thank you in advance.

    user12359577 wrote:
    The reason why I think I should create my own tablespace is because I am creating a database scheme and thus I think it is appropriate to place my db scheme in its own tablespace instead of simply using the Users tablespace default.
    This is my command:
    create tablespace MYTBLSPACE;
    Error:
    Error starting at line 1 in command:
    create tablespace MYTBLSPACE
    Error at Command Line:1 Column:32
    Error report:
    SQL Error: ORA-02199: missing DATAFILE/TEMPFILE clause
    02199. 00000 - "missing DATAFILE/TEMPFILE clause"
    *Cause:    A CREATE TABLESPACE statement has no DATAFILE/TEMPFILE clause.
    *Action:   Specify a DATAFILE/TEMPFILE clause.
    I am also not sure how to specify the datafile.
    Thank you.How about checking with the fine SQL Reference manual for the syntax of the CREATE TABLESPACE command?
    Learning where to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com. Drill down to your product and version.
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are reference manuals. Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    Edited by: EdStevens on Mar 3, 2010 10:13 AM
    Edited by: EdStevens on Mar 3, 2010 10:15 AM

  • Import database from Linux to Windows fails with creating tablespaces

    Using (Oracle10g/Linux) user/schema (i think)"Sys" i exported succesfully full database and produced a log file which looks like this:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in UTF8 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    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
    exporting system procedural objects and actions
    exporting pre-schema procedural objects and actions
    exporting cluster definitions
    about to export SYSTEM's tables via Conventional Path ...
    exporting table                    DEF$_AQCALL
    exporting table                   DEF$_AQERROR
    exporting table                  DEF$_CALLDEST
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.Now (in Oracle10 Express/ Windows) i'm importing the dmp-file using user/schema System, following errors occur:
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    Warning: the objects were exported by SYS, not by you
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    export client uses UTF8 character set (possible charset conversion)
    . importing SYSTEM's objects into SYSTEM
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE UNDO TABLESPACE "UNDOTBS1" BLOCKSIZE 8192 DATAFILE  '/u01/app/oracle"
    "/oradata/live/undotbs01.dbf' SIZE 251658240       AUTOEXTEND ON NEXT 524288"
    "0  MAXSIZE 32765M EXTENT MANAGEMENT LOCAL "
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file '/u01/app/oracle/oradata/live/undotbs01.dbf'
    ORA-27040: file create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified.
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLESPACE "SYSAUX" BLOCKSIZE 8192 DATAFILE  '/u01/app/oracle/oradat"
    "a/live/sysaux01.dbf' SIZE 346030080       AUTOEXTEND ON NEXT 10485760  MAXS"
    "IZE 32765M EXTENT MANAGEMENT LOCAL  AUTOALLOCATE  ONLINE PERMANENT  SEGMENT"
    " SPACE MANAGEMENT AUTO"
    IMP-00000: Import terminated unsuccessfullyWhy i get those errors when importing? Seems like the main problem is that the export was done in Linux which have it's own directories like '/u01/app/oracle/oradat' and others but in my Windows OS those folders don't exist? The whole import fails because tablespaces couldn't be created, later Schemas couldn't be created and tables also. Can i get the import work somehow?
    I runned the import as following:
    C:\Users\charlesr>imp userid=system/a FULL=Y FILE=exp_ddl.dmp log=imp.logMy Oracle 10 XE is installed into folder:
    D:\oraclexe\app\oracle\product\10.2.0Maybe i should run the import command in drive D where my Oracle lives, not in drive C as i did?
    And now when i tried to run the import on drive C, seems like my database user "system/a" is corrupted or password corrupted:
    C:\Users\charlesr>d:
    D:\>imp userid=system/a FULL=Y FILE=exp_ddl.dmp log=imp.log
    Import: Release 10.2.0.1.0 - Production on R Sept 10 17:32:25 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    IMP-00058: ORACLE error 1017 encountered
    ORA-01017: invalid username/password; logon deniedUsername:I think i don't have on OS level rights to write to C-drive, that's why i got errors. But now i can't log in with system/a, why so?
    Edited by: CharlesRoos on Sep 10, 2010 7:38 AM

    CharlesRoos wrote:
    Why i get those errors when importing? Seems like the main problem is that the export was done in Linux which have it's own directories like '/u01/app/oracle/oradat' and others but in my Windows OS those folders don't exist? The whole import fails because tablespaces couldn't be created, later Schemas couldn't be created and tables also. Can i get the import work somehow?Precreate tablespaces. You could use import option show=y to capture import run statements and find CREATE TABLESPACE statements. Keep in mind your target database already has undo, temp system, etc. tablespaces so you do not need to precreate them. Then rerun import.
    SY.

  • How to create tablespaces in Windows

    using Oracle 10g XE on Windows
    how do I create tablespaces on Windows?

    Hello,
    YOu can login as system or sys usign sqlplus and run following offcourse modify with ts name and location
    create tablespace my_new_ts datafile 'C:/my_path_to_data_file/my_new_ts_dat01.dbf' size 300M autoextend on next 100M maxsize 8192M;regards

Maybe you are looking for

  • I cant seem to get my contacts from ipad onto icloud

    I have tried turning device on and off,checked id is the same on all devices,icloud is turned on, on all devices, restarted all devices...please help!! The calendar wont sync either though notes does!

  • Alv report using templates........urgent

    Hi all, Can anyone tell me what is meant by ALV report using template. I have worked on ALV reports. Can you throw some light on USING TEMPLATE. If anybody have some document. please send it to me.

  • Urgent :- Issue with OC4J component startup - Please help.

    Hello Oracle Gurus, We are facing a very strange problem with the startup of OC4J home and the component is not starting up. The application server we are using is Oracle 10G 9.0.4. Please could you guide me as to what could be wrong so that we could

  • Missing parameter in abap proxy implementing class

    we have a XI 3.0 (DR0) and a XI 7.0 (DR8) systems. We have exported a message interface from system DR0 and imported in DR8, then we have generated the abap proxy. The problem is in differences between abap proxy generated in XI 3.0 and the one gener

  • Zen DLU vs AD Domain

    I'm working on a situation which maybe common these days, but I'm looking for clarification. We're using Zen 6.5, users with DLU policies logging into XP clients and Nwclient 4.9.1 We have used DLU to manage local workstation accounts and it works we