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;

Tags: Database

Similar Questions

  • 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 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.

  • 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...

  • tablespace with multiple files, how is the space consumed?

    I have a tspace1 tablespace that has 2 data files, and there are 2 physical disks /data1 /data2 each of these mount points are a partition on a separate disk

    disks1 /data1
    /data2 disk2

    /Data1 is 80% used (two data files are on /data1)
    /Data2 is not yet used


    I'm corect I say ave shouldh created a data /data2 rom files a day? to improve performance?

    now the data files im in need of a 3rd and fourth creation... can I create these new in /data2 and leave it as it is?

    or I'll offer one of the largest in /data2 so that the data is distributed across two discs? and then create datafile3 in /data1 and datafile4 in /data2?

    Thank you

    EdStevens wrote:

    Several years ago, I ran a few tests which showed files written in a responsive way. (In fact, it was the extents allocated in round robin. A segment is only designed for in previously allocated extensions). When I first posted on this forum a few years ago, someone responded with their own test results showing a file being completed before the other is used. If the answer is, as almost always... "it depends".

    And at the moment I don't remember what was decisive.

    One of the factors would have been version, of course.

    Robin is the basic strategy for extensions to a segment, but automatic extended allocation allocation (which start with 64 KB extents before moving on to 1 MB and so on) presented a special case where Oracle would stick with a single file for the first megabyte of the segment.

    Until quite recently, however, the first measure of a segment is always put in the first file of the table space, so if you have a lot of object that need to have a degree awarded then you could end up with more space to the first file in use and very little space allocated from the rest. I don't remember when that changed, but I remember seeing a note on MOS describing this anomaly and explaining how the imbalance had been fixed by follow-up which file should be used then when a new segment was to be created.

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    Author: core Oracle

  • Can system table space cause multiple data files in several places?

    Hi experts,

    Our current system has a partition to keep the system tablespace data files, but I assumed that the partition is wrongly estimated and the size was maintained only 2 GB. Now the partition's got full and it seems no way to increase the partition from the OS. The only option I have is to create the new data for system tablespace file in another free partition. Is this possible? I have to consider all things important before doing this? Also can I create new data with the regular create command file or need to do something special for system tablespace?

    Thanks in advance

    Yes, you can create two data files for system tablespace into two partitions.

    To reduce the space in the system tablespace - you should check what are segments that occupy the space in the system tablespace.

    To get the examples if you have the Audit DB - then you can move the table to tablespace someother depending on availability.

  • 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.

  • 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.

  • 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

  • FMS4.5 live stream with multiple video files as a single source?

    I use Flash Media server 4.5 and I read the tutorial if I want to play the live stream, I may need to use the Live Media Encoder.

    But what I found in media encode is I manually set up everything and it only supported cameras.

    But in my case, I have several video files keep the receipt of another program and place it on the filesystem (server).

    My goal is use the Flash Media server to perform a live boardcasting with these video files one by one.

    This means when customer watch a live streaming, they won't notice the server plays mov1, then mov2, then mov3, then mov4... and so on.

    You can imagine I try boardcast say a sequences live during 60 s,.

    the video file will be not recorded entirely after 60 seconds, but not for every 10 seconds, I will deliver a video file,

    so that when watching the live of HLS customer (for example http://xxxx.com/live123( )

    When time reach 10 seconds, a video file available mov1 and FMS should boardcast this video on live123.

    When the time achieve 20 seconds, a video file available mov2 and FMS must immediately follow the boardcast mov1 on live123.

    and so on...

    FMS can dynamically create a new session of streaming (call by code),

    so that when the customer a download of some video files to the server, the FMS log new stream streaming only cilent video files?

    boardcasting as configuring the size of the screen, bitrate, etc. must be predefined on the server.

    (e.g. customer boardcast on http://xxxx.com/live123, CustomerB boardcast on http://xxxx.com/live124...)

    so the fact that possible to use FMS perform these ideas? or y at - it approaches?

    I am very new to FMS, if I have any misconcept FMS or media encoder (live), please do not hesitate to correct me.

    Thank you!

    Hello

    To have OUT load videos from sources of files, to be released at this stage, you need third party software like ManyCam.

    Otherwise, FMS can use source files and a playlist-like, side Publisher.

    Thus, you must request script on the server, server to play files and publish (publish side Server) to be subscribed by customers. Essentially, we ask the server to replace GFFE/encode streams published by sources to have the publishing server-read the file stream.

    http://help.Adobe.com/en_US/flashmediaserver/ssaslr/index.html should give more information on how to do it.

    Thank you!

  • Development to share with multiple users files

    Hello

    We are a team of web developer with dreamweaver to develop our websites. Sometimes we have to work together on major projects. So I wonder if there is a way to share and synchronize files between several programmers Web site, so we can work on the same file at the same time.

    Thanks in advance for the help

    Hello

    For now, Dreamweaver has very little support from team and management projects. Although the Dw team on git integration in Dreamweaver there is no real date to make it available to users.

    For the moment, I use visual studio with services team MS and git, which offers a complete project support and pull requests for many of the projects and teams-

    https://www.VisualStudio.com/en-us/docs/git/overview

    For teams who work on projects, the main problem is that Dreamweaver is the site for individual users or very small teams. If you want Dreamweaver to provide better support of projects with larger teams, then I would suggest that you join the Beta of Dreamweaver pre-release, (free and open to all) and open a debate on what you need, you need this way, you would have more chance to integrate the features of Dreamweaver-

    https://forums.Adobe.com/thread/2170438

  • problem with multiple trace files

    Hey!

    I saved a text file with four columns and I want to replot two of all the required columns.

    I tried the logic below, but there seems to be a problem. The graph shows very few samples.

    Check if my logic is correct.

    Thank you

    My inner Malcolm Gladwell tells me seem to convert your 2D chart.

  • progressive download with multiple video files, noob user.

    I have here a question of "minor".

    I need to make a swf file and load external video files to it, which will be online, and along the clip key to have the ability to load more video clips in the player, the clip currently playing.

    I had a little experience with flash, I can read/change actionscript a little. how hard it would be to do?

    Pointers where I can get the examples/tips on how to do it?

    Thanks in advance,

    Manual zeeman

    Design & illustration

    Yes, it is possible, but you'll need to preload the clips so the seek point is already downloaded when you want to make the transition.

Maybe you are looking for