create tablespace with existing data file

Dear Sir.
We can create tablespace with an existing data file so I can use the tables and objects already exist in the data file?

Kind regards

Read about "transportable tablespace" and see if this is what you need.

Tags: Database

Similar Questions

  • tablespace with multiple data files

    Hi all

    We have RHEL4 server with oracle 10 g 2 inside.

    can we create a tablespace with multiple data files? I mean while creating a tablespace itself, we should be able to create two or more data files (should not use ALTER tablespace command).

    If possible, please give me the SQL to do this (assume that I need to create a tablespace with two data files).

    Thanks in advance...

    Not so difficult isn't it?

    create tablespace datafile test
    '1.dbf' size 1 m REUSE AUTOEXTEND ON NEXT 32 M MAXSIZE 1500 M,
    '2.dbf' size 1 M REUSE AUTOEXTEND ON NEXT 32 M MAXSIZE 1500 M
    EXTENT MANAGEMENT SEGMENT LOCAL SPACE MANAGEMENT AUTO;

  • Tablespace with a data file name in double and the directory added

    Version Oracle 11.1.0.7
    AIX platform

    I have exactly the same directory for the tablespace even a tablespace with 2 files with exactly the same name.

    I don't think it was possible for Oracle create two data files in the same directory with exactly the same data file for a tablespace name.

    The difference between the two seems to be the sizes - one is 10G, the other is 10 m autoextend on but with maximum size is equal to the size of create.

    It is not possible to table either both are full.

    Please notify.

    Thank you.

    You have a character that is hidden in the name of the file. Use ls for your operating system which shows the special characters (ls - lb or something, man ls).

  • create tablespace with giving the relative path

    Can I create tablespace with the help of relative to the parameter "DATA file" path?

    I get error ORA: 01119 when I run with the relative path in the code example:
    CREATE TABLESPACE "INDX" 
    BLOCKSIZE 8192 
    DATAFILE  '\myrelativeFolder\indx01.dbf' 
    SIZE 2604M       
    AUTOEXTEND ON NEXT 10485760  MAXSIZE 32767M EXTENT MANAGEMENT LOCAL  AUTOALLOCATE  ONLINE PERMANENT;
    Version: Oracle 10g, PlSql Developer.

    --

    Maybe add environment variable operating system to the value of the DATA file somehow? I don't want to create the tablespace with full path, from the name of the drive and ending with file name.

    Edited by: CharlesRoos the 14.10.2010 18:16

    On Unix, use the korn shell, you could try something like this:

    #!/bin/ksh
    
    REL_PATH="\myrelativeFolder\indx01.dbf"
    
    sqlplus $ORA_USER/$ORA_PSWD@$ORACLE_SID << EOF > $LOGFILE
    declare
      v_Path varchar2(50) := '${REL_PATH}';
    
    begin
      execute immediate 'CREATE TABLESPACE "INDX" BLOCKSIZE 8192 DATAFILE ' || v_Path || ' SIZE 2604M
                         AUTOEXTEND ON NEXT 10485760  MAXSIZE 32767M EXTENT MANAGEMENT LOCAL
                         AUTOALLOCATE  ONLINE PERMANENT';
    
    end;
    /
    exit;
    EOF
    exit 0
    
  • Create tablespace with datafile

    Hello

    We have consistent backup of cold (managed by the user) of 10.2.0.1 on our usb drive. Now I want to create a new tablespace using this data file (there is only one file of data in the previous db tablespace) in my current 11.2.0.1 db running. Please tell me how to create the new tablespace using the saved data file. Operating system is windows xp for both the database.

    Thanking you.

    Hello

    This seems quite difficult... The easiest way is to start an instance of 10g, export data (using exp/expdb) and then import it into the running instance of 11 g...
    I found a similar thread here, it might give you some help import a Datafile (.dbf) in 11 g 10 g tablespace

    HtH

    Johan

  • I cannot select table jump extensions associated with lost data files?

    Hi ~.
    I need your help to recover my database.

    I use oracle 9.2.0.8 to Fedora 3 with mode-archive.
    and I have no backup.

    Last night, I have experienced hard drive failure.
    I tried the recovery at the level of the BONE, but I lost some data from the tablespace files.

    in any case, I wanted to recover my database without the data of lost data files.

    then, I published 'drop alter database datafile offline' and
    Start the oracle instance.

    But, data files were not eliminated from dba_data_files view and
    extensions associated with lost data files were not removed from dba_extents view!

    Query a selection table containing extensions associated with lost data files.
    I have "ORA-00376: file xxx cannot be interpreted at this time" message.

    So, my question is that...
    HOW CAN I SELECT TABLE WITHOUT EXTENSIONS RELATED TO THE LOSS OF DATA SCANNING FILES?

    Thank you.

    Hello
    Without being in archivelog and without backup, can't make any sort of recovery. This is why the backups and archivelog are so important.

    The offline data file command never actually drops the data file. It simply tells the control file now the tablespace of the said is also abandoned. It refreshes not any notice that the files are not supposed to be used or shown more than you.

    What documentation is the recovery of the database in the mode NoARch.
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/osrecov.htm#i1007937

    Do you need a backup in order to recover the tables being played. Oracle is not have all the features that can currently out / skip missing extensions for you and you can read the data without them.

    HTH
    Aman...

  • MS Money 2005 - I rebooted the software, but it does not automatically download the update needed to read my existing data files

    Due to a hard drive crash, I had to reformat my hard drive,
    therefore lost my copy previous update of MS Money.
    I reloaded the software from the CD, but it does not automatically download the update needed to read my existing data files.
    Can someone help me read my old data files?

    Microsoft or anyone have made available as a patch to download?

    Hi Derek,.

    Since the problem is related to Microsoft Money, I suggest you post your question on the Forums of money from Microsoft.

    Microsoft Money Forum

  • existing file of data created with the data file name

    Hi Experts

    We accidentally created a data file with the same name in the same place
    TABLESPACE_NAME           FILE_NAME                                                  FILE_ID STATUS    ONLINE_ size in MB AUT maxbytes in MB
    ------------------------- ------------------------------------------------------- ---------- --------- ------- ---------- --- --------------
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data01.dbf                             8 AVAILABLE ONLINE  32767.9844 YES     32767.9844
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data02.dbf                            12 AVAILABLE RECOVER
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data02.dbf                            11 AVAILABLE ONLINE        1000 NO               0
    on OS lavel
    -rw-r-----  1 oracle dba  1048584192 Oct 21 12:44 wp_data02.dbf
    -rw-r-----  1 oracle dba  1048584192 Oct 21 13:09 wp_data02.dbf
    -rw-r-----  1 oracle dba 34359730176 Oct 21 13:10 wp_data01.dbf
    Please suggest how we can solve the problem?

    Database: 10g
    OS: linux

    Concerning
    Rahul
    Rahul

    Published by: 825075 on October 21, 2011 05:25

    One of them is 2 characters at least other two. You have twice ascii code 32, it's space.
    What happens if you run now:

    select file_id,file_name from dba_data_files
    where file_name='/NEXWPLPR/dbase/wpdata/wp_data02.dbf  ';
    

    Notice the 2 spaces at the end.

    Nicolas.

  • How to get to 'leave the event' script to run again when the form with the data file is reopened?

    I've created an Adobe Dynamic XML using LiveCycle Designer form with many fields / subforms that are 'visible' or the 'hidden' according to the selected options of different menu drop-down lists. Also, the form has been activated to save. Users can successfully fill out the form and save a copy with the data that has been entered.

    The problem I have is that when the recorded file is opened again in the 'hidden' fields / subforms that were previously made visible by selecting the appropriate options in the drop-down list NOT displayed now. However if you make the same selections from each of the drop-down list shows still hidden ONCE the fields / subforms are displayed, and do not contain data that has been entered.

    The problem seems to be that the script that determines whether a field / subform is 'hidden' or 'visible' is a

    "<event activity="output" name="event__exit">" "

    that is followed by

    If (this.rawValue is '0')- (i.e. the value of the drop-down list)

    sfCompanyDetails.presence = "visible";

    sfRecruitmentAgency.presence = 'hidden ';

    etc, etc.

    and, therefore, it is not executed again when the file is reopened.

    Can someone advise please how do I do this?

    Hello

    Check if you enabled the "auto" option to keep the script changes in the properties of the form.

  • Use of a single tablespace or backup data file

    Hello

    I read the RMAN manual and I'm quite familiar with backup a tablespace or data file, but I can find very little uses for it. Backup upward a tablespace is useful for the TPITR, but since who needs another instance sound very little useful in most production environments. I think that you cannot restore an older version of tablespace in a normal database, except if the tablespace has been done long read-only, in which case RMAN optimizations will do the trick.
    Still less use that I can find for the backup of the data file. I have absolutely no idea of what you can do with a single data file.

    Can you please tell me about the uses of these RMAN features?

    Thank you.

    Hi again!

    OK, you're right. If you are using noarchivelog moden then a partial database backup is no useful. Only the archivelogmode can make a useful partial backup of DB.

    Best regards

    Florian W.

  • Restore rman 10g with different data file name.

    Hi all.

    I am successful restoration sauvegardΘ (Veritas Netbackup) one 10.2.0.5 database.

    The original database was a 2 node Rac 10.2.0.5 on asm without OMF.

    I'm trying to restore on another host with the same version 10.2.0.5 and even platform (Sparc Solaris), but single instance database.

    RMAN complete successfully, the restore, but the names of the data files are different from what is written in the controlfiles so

    the database can go up but not open.

    It is not only a question of path, the look of database for a file of data like this:

    System.261.622119076 (the right way of the asm source environment)

    but instead, rman restore this data as a file

    o1_mf_system_2ixfh90q_.dbf

    This seems a name OMF.

    I don't understand the reason.


    Can I use the command set newname for each data file?


    Thanks in advance.




    I restored the database successfully.

    In init.ora I don't use the setting as a CONVERT.

    I don't know why but I had to restore archived log first. something like

    DESTINATION ARCHIVELOG TO GAME ' / u01/app/oracle/oradata/PDM/arch;

    RESTORE ARCHIVELOG ALL;

    then:

    RMAN > RUN

    {

    SBT ALLOCATE CHANNEL t1 TYPE of AIRCRAFT;

    Restore controlfile;

    }

    After this:

    editing of database startup

    and I extracted the list of data files:

    + DATA /...

    + FLASH...

    then

    change the editing of the database;

    RUN {}

    SBT ALLOCATE CHANNEL t1 TYPE of AIRCRAFT;

    SBT ALLOCATE CHANNEL t2 TYPE of AIRCRAFT;

    SBT ALLOCATE CHANNEL t3 TYPE of AIRCRAFT;

    SBT ALLOCATE CHANNEL t4 TYPE of AIRCRAFT;

    the value of newname for datafile 1 to ' / u01/app/oracle/oradata/PDM/system.261.622119067';

    St newname for datafile 2 to ' / u01/app/oracle/oradata/PDM/undotbs1.262.783621567';

    the value of newname for datafile 3 to ' / u01/app/oracle/oradata/PDM/sysaux.263.622119149';

    the value of newname for datafile 4 to ' / u01/app/oracle/oradata/PDM/undotbs2.265.622119189';

    the value of newname for datafile 5 to ' / u01/app/oracle/oradata/PDM/users.266.622119281';

    the value of newname for datafile 6 to ' / u01/app/oracle/oradata/PDM/gcs_data.272.622547291';

    the value of newname for datafile 7 to ' / u01/app/oracle/oradata/PDM/gcs_indx.275.622548237';

    the value of newname for datafile 8 to ' / u01/app/oracle/oradata/PDM/gcs_lob.276.622548403';

    the value of newname for datafile 9 to ' / u01/app/oracle/oradata/PDM/pdm_data.273.622547535';

    the value of newname for datafile 10 to ' / u01/app/oracle/oradata/PDM/pdm_indx.274.622547861';

    the value of newname for datafile 11 to ' / u01/app/oracle/oradata/PDM/tbs_htmldb.277.623757195';

    the value of newname for datafile 12 to ' / u01/app/oracle/oradata/PDM/w3docdb_data.278.623757345';

    the value of newname for datafile 13 to ' / u01/app/oracle/oradata/PDM/w3docdb_index.279.623757371';

    the value of newname for datafile 14 for ' / u01/app/oracle/oradata/PDM/w3docdb_lob.280.623757407';

    the value of newname for datafile 15 to ' / u01/app/oracle/oradata/PDM/aspect_data.295.636897363';

    the value of newname for datafile 16 t to ' / u01/app/oracle/oradata/PDM/pdmct.319.650450905';

    the value of newname for datafile 17 to ' / u01/app/oracle/oradata/PDM/pdmct.320.650451825';

    the value of newname for datafile 18 to ' / u01/app/oracle/oradata/PDM/pdmpm.321.660676573';

    the value of newname for datafile 19 to ' / u01/app/oracle/oradata/PDM/undotbs3.327.783526691';

    the value of newname for datafile 20 to ' / u01/app/oracle/oradata/PDM/pdmed_data.330.787137071';

    the value of newname for datafile 21 to ' / u01/app/oracle/oradata/PDM/pdmed_idx.329.787137111';

    until ' to_date ('2015 - 12 - 02:13:00:00 ',' yyyy-mm - dd:hh24:mi:ss');

    RESTORE THE DATABASE;

    switch datafile;

    recover the database;

    }

    at database startup has tried to recreate the DATA + redolog in and + FLASH as well

    I've deleted all the possible redolog except the redolog that have been verified as CURRENT or ACTIVE

    (I don't understand why in montage mode I have active and current redolog).

    SELECT GROUP #, ARCHIVED, STATUS FROM V$ LOG;

    ALTER database drop logfile group x.

    For the rest of the redolog I used:

    change the database file rename '+ DATA/pdm/onlinelog/group_1.257.622119063' to ' / u01/app/oracle/oradata/PDM/group_1a ";

    change the database file rename '+ FLASH/pdm/onlinelog/group_1.257.622119065' to ' / u01/app/oracle/oradata/PDM/group_1b ";

    change the database file rename '+ DATA/pdm/onlinelog/group_5.259.622119065' to ' / u01/app/oracle/oradata/PDM/group_5a ";

    change the database file rename '+ FLASH/pdm/onlinelog/group_5.259.622119065' to ' / u01/app/oracle/oradata/PDM/group_5b ";

    change the database file rename '+ DATA/pdm/onlinelog/group_7.269.622123949' to ' / u01/app/oracle/oradata/PDM/group_7a ";

    change the database file rename '+ FLASH/pdm/onlinelog/group_7.263.622123951' to ' / u01/app/oracle/oradata/PDM/group_7b ";

    change the database file rename '+ DATA/pdm/onlinelog/group_8.270.622123951' to ' / u01/app/oracle/oradata/PDM/group_8a ";

    change the database file rename '+ FLASH/pdm/onlinelog/group_8.264.622123951' to ' / u01/app/oracle/oradata/PDM/group_8b ";

    alter database disable change tracking block;

    change the database open.

  • Difference between redo logfiles, Undo Tablespace, Archive log data file

    Can some please highlight the difference between Undo and Redo Logs
    Also why we need to separate the archive logs when the recovery log data can be written directly in data files...

    Help you will be highly appreciated...

    Hello

    Ed gave you a very good answer.

    Rememeber database files are online and they are written to by DBWR process. So we have the database files, redo log files and archive logs.
    In order to avoid all the crawl log when you perform a recovery, database performs control points that summarize the State of the database. This operation of control point provides a shortcut to the recovery. At the checkpoint, the database knows that all incorrect pages were written to disk (for example, database files). At the time of recovery, the log (which includes-finished and unfinished transactions) is used to bring the database to a consistent state. The system locates the time of the last checkpoint and returned to this position in the log file. Then he restores forward all completed transactions (read committed) that occurred after the last checkpoint and rolls back all transactions that were not committed, but that began before the last checkpoint. This is where online log files are used.

    Now imagine that you need to back up your database GB 100 + all 10 minutes. It would be a waste of space! So you take a backup of your database at time t and backups of archiver process redo logs periodically to check the newspapers so that redo log files can be replaced and RMAN will use the last backup and archive the log files to recover your database at the time.

    Now, I mentioned the checkpoint process. The Checkpoint process regularly launches a control point that uses DBWR to rewrite all the blocks Sales in the data files, so synchronize the database. Imagine one dam is running and have exhausted all the redo log files. At this point, Oracle will wait until all Sales already queued blocks have been written to the buffer on disk (database files) foremost him redo log files can be considered as superfluous and available for re-use (i.e. can be overwritten). This will result in the following message in the alert.log:

    Thread 1 advanced to log sequence 17973
      Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
      Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
    Thread 1 cannot allocate new log, sequence 17974
    Checkpoint not complete
      Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
      Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
    Thread 1 advanced to log sequence 17974
    

    I am sure you have done the following:

    alter database mount;
    
    Database altered.
    

    When you mount a database, Oracle combines the instance started the database. Oracle control files are opened and read. However, no checking such as the restore/recovery is performed

    alter database open;
    
    Database altered.
    

    An open command opens the data files, recovery logs, it performs automatic and consistency of database recovery. At this point, the database is now ready to be used by all valid users.

    HTH,

    Mich

    Published by: Mich Talebzadeh on November 19, 2011 16:57

  • Creating virtual machine with existing data

    Hi all

    I have virtualized my almost all servers except the one and only one file server.  I'm under vsphere 4 with 2 ESXi hosts and a 2000 Eternus model 100 SAN and using Veeam 6 B & R

    Current configuration

    Physical server with 2 network cards

    1 NETWORK LAN card

    1 SAN NETWORK card using MS iSCSI initiator

    Windows 2003

    There are 2 volumes on my SAN which is connected via the MS iSCSI initiator containing the data for the file server.  Server file sharing (NTFS) files stored on the San, and they have a lot of NTFS permissions on files and folders (approximately 1.5 TB of data).

    Ideal configuration

    1 virtual server

    1 vNIC to LAN

    2 volumes of SAN share via the server

    Windows 2008 r2

    My question

    Can I just add volumes to vsphere, create a virtual machine, add the two volumes of the virtual machine as 2 hard drives, the actions of installation and do with it?  I wonder where the permissions are checked and if these measures can be made without wiping the volumes.  I don't have another 1.5 TB of free space on the SAN.  I have a Netgear NAS I use as a target for backup if necessary but I prefer not to have to move the data if it is not needed.

    I hope that I have covered all my bases to make this easy to understand situation and we hope to meet .

    Thank you

    Welcome to the community - Yes, you would be able to present the NTFS on the computer virtual hosted on your server using a RDM (Raw Device Mapping). Permissions on NTFS volumes are stored in the NTFS file system-

  • Create exe with some vi files

    Hello

    I'm using LabVIEW 2010

    I'm trying to build a "Main.vi" in an exe file, this Main.vi to dynamically call two vi "1(vi)" and "2.vi". I put between "always included" before generating the exe file. But after you have created the exe "1(vi)" and "2.vi" do not work.

    Just to show what said Norbert.  You should get used to use relative paths.  They will save you a lot of headaches down the road, especially if you call dynamically screws inside exe files.

  • The UNDO tablespace and its data file cannot be removed

    I would like to delete an UNDO tablespace after you have created a new, but can't. I could follow a large number of instructions TOM and others, but tablepspace is still listed in the State to RECOVER. Please see what I've done below. Your help will be appreciated.
    SQL > drop tablespace UNDOTBS2;
    Drop tablespace UNDOTBS2
    *
    ERROR on line 1:
    ORA-01548: active rollback segment "_SYSSMU29_1272378969$" found, terminate
    drop the tablespace
    SQL > drop rollback segment "_SYSSMU29_1272378969$";
    Drop rollback segment "_SYSSMU29_1272378969$".
    *
    ERROR on line 1:
    ORA-30025: DROP segment ' _SYSSMU29_1272378969$ ' (in the undo tablespace) not
    permit

    Have you tried that
    http://arjudba.blogspot.com/2008/08/ora-01548-active-rollback-segment.html

Maybe you are looking for

  • search model error string

    Hello I encountered a problem using the model string search in labview. I use xbee modules pro digi to establish a network with 8 + knots (mode API). Each node has a microcontroller behind her who, when asked by the lv program, sends a package in the

  • W3-810 battery drains when it is off (full stop)

    I got a W3-810 a week ago. So far, it's great except for a problem with the battery; it loses about 1-2% per hour when arrested - most, but not all the time. See below. As far as I know, all drivers are up-to-date.As recommended in the manual, I disa

  • Cannot download new applications or install updates of old app

    This has happened since about 2 updates ago before the 1.4 update. I rebooted, WebOS doctor to do a reset and tried several apps from the app catalog... nothing works. Get the same message, "installation failed." Anyone has any other suggestions how

  • Out-of-control office

    I have a laptop Gateway where my nephew has had on this & tried to download some software site free movie & now my Office properties can be controlled via the properties. I can't control the properties of resolution screen & set it the way I want. I

  • printer cannot communicate wirelessly with my lap top

    I have a hp photoshop b209 printer all-in-one that wiil not print wirelessly from my laptop (it was).  It allows printing with a usb cable.  I uninstalled and reinstalled with the cd it came with and uninstalled my antivirus and still no luck.  is th