create a tablespace without specifying the path to the data file and the name

Hello

Is it possible to create a tablespace without specifying the name and the path of the data file.

For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

user13364377 wrote:
Hello

Is it possible to create a tablespace without specifying the name and the path of the data file.

For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

The use of the files managed by Oracle
Internally, Oracle uses standard file system interfaces to create and delete files if necessary for the following data structures:

* Tablespaces
* Online redo logs
* Control of files

Through initialization parameters, you specify the directory of file system to use for a particular file type.
EXAMPLE:
The following parameters are included in the initialization parameter file:

DB_CREATE_FILE_DEST = ' / u01/oradata/sample.
DB_CREATE_ONLINE_LOG_DEST_1 = "/ u02/oradata/sample.
DB_CREATE_ONLINE_LOG_DEST_2 = ' / u03/oradata/sample.

The following statement is issued at the SQL prompt:

SQL > CREATE a DATABASE sample.
SQL > CREATE TABLESPACE tbs_2 DATAFILE SIZE 400 M;
SQL > CREATE UNDO TABLESPACE undotbs_1;

check the link for more information:
http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/OMF.htm

Tags: Database

Similar Questions

  • How to read a file .xls to a situation identical to the sequence of the file without specifying the path?

    Hello

    I am trying to open a file .xls existing from the same location as the test sequence file. Can you TestStand search in the location of the sequence input file test file and then select the if present? Also, can we store the output file in the same place without specifying the path to the code?

    Example:

    Input.xls-> input file to the test sequence that must be read.

    Output.xls-> output file created by the test sequence.

    Test.SEQ-> the test sequence that reads Input.xls and creates Output.xls.

    If Test.seq and Input.xls are present instead of D:\Test\, the Test.seq code can be modified to pick up the Input.xls automatically without specifying the path? In addition, can Output.xls be created to D:\Test\ without specifying the path?

    Thank you

    Corinne

    Hi Isabelle,.

    Yes, this can be done. You can get the path to the current sequence file using RunState.SequenceFile.Path. Then find and remove the last '-' using the string functions to get just the path. You can then use this path to manage your files Input.xls and Output.xls.

    -Jack

  • Can I create a package without specifying body?

    Can I create a package without specifying body?

    SQL > create the package body no_specification as start null; end no_specification;

    2.

    WARNING: The body of a Package created with compilation errors.

    SQL > show errors

    PACKAGE BODY NO_SPECIFICATION errors:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    0/0 PL/SQL: analysis of completed Compilation unit

    1/14 PLS-00201: identifier 'NO_SPECIFICATION' must be declared

    1/14 PLS-00304: impossible to compile a body of 'NO_SPECIFICATION' without sound

    specification of the

  • I got an attachment, I have modified and saved the modified version, but without specifying the folder. How to recover this modified version?

    I received an attachment. I opened, modified and saved, but without specifying the folder, thinking it was the version that I already had in my computer. I can't find this version changed in my computer. I can get it back or it is lost...
    Thank you

    Nobody here knows where you specified to save the file on YOUR computer. Thunderbird does not control that.
    You can open the file again, and then select Save. It will more than likely try to save in the same place. Pay attention to the place this time to see where it was saved. If this location is not to your taste, specify a different location, and then delete the first record attempt.

  • Create group email without disclosing the addresses of recipients

    How can I create an email group that simply shows a group without disclosing the e-mail addresses or the names of those who are included in the Group? As a PTA group, co-op, etc.?

    This is for Outlook Express, but is the same for WinMail. The names of some references may be different. (i.e. of AddressBook = Windows Contacts, etc..).

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

    Bruce Hagen ~ MS - MVP [Mail]

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • Is there a way to change the names of folders in waiting lists without changing the name of the original file?

    Hello

    I was curious to know if there was a way I could change the name of a folder on my list of added items leaving the name of the original file untouched. I work in an accounting firm that shares all of our records on a single server, and we can't rename an any of them like all the world has its own shortcuts and what not on their individual computers. For example, some of our files are separated into folders by file type, exercises and billing periods, like this:

    Billing applications

    EXERCISE 14-15

    Period 1

    Digitized invoice copies

    EXERCISE 14-15

    Period 1

    If I have two folders period 1 has performed the fallen on my desk, they are both the same labeled, but I would like to I know not what specific folder, I work in rename them. Is there a way I can rename the folder on my list of items added on my desktop without changing the name of the file in its original location? I know that I can hover over the name of the folder to get the exact location of the file, but when I work quickly, it becomes a bit cumbersome to do this for every file, especially when I need to have several folders (at least 10) pinned.

    Thank you!

    Hello

    You can create the path of the shortcut for them and name it as you want.

  • Create these special characters in the name of the file as test.? docx or test? PDF in the OS window

    Hello

    Is there a possible way to create these special characters in the name of the file as test.? docx or test? PDF to test the goal?

    I do programming to detect this type of special characters in the file name. This modified script will this type of invalid char file appropriate name, so I need to have the sample to check if my script works.

    I have OSX or Linux. Is there no workaround solution I created in the window itself?

    or can someone create for me so I can go and download instead?

    Thank you and best regards,
    back4more

    Hi Backformore,

    Thanks for posting your question in the Microsoft answers Forum. For any question concerning the development of programs, visit the MSDN hereforums.

  • Is it possible to send several emails without all the names come in?:

    Is it possible to send multiple mails without all the names come in?:

    Thank you

    These forums are for MS programs, and your Hotmail should ask here for the best help.
     
    Windows Live Solution Center Hotmail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=1
  • How to specify the names of the icons on the desktop?

    How can I specify the names of desktop applications and shortcuts icons so that they appear in alphabetical order when I sort by name?

    Here is a partial list of the order of the icons on my desktop windows 7:

    The Quicken Premier

    WinFF

    AbiWord

    Command prompt

    Cygwin Terminal

    Thank you

    Paul.

    Paul

    The situation is there are two files that make up the office.

    One is your office users, and the other is Office public users.

    When you sort by name, they are classified as two lists.

    Some software during installation, installs for all users and put the shortcut in the Public Office.

    The best way to accomplish what you want is to ensure that all the shortcuts are in one of the two folders.

    Your office is located in C:\Users\*your username user name * \Desktop

    The other is in the C:\Users\Public\Public Office, which is a hidden folder

    Paul

  • How to run a job Disqualification with the ability to specify the name of the file to process

    Hello

    We want to start a task from the Disqualification by command line where I can specify the name of the input in the command line file?

    I tried to use the Externalize in drive and renamed the 'enable' file name and try to use the command below.

    > java-jar jmxtools.jar runopsjob-ProcessFileToLoad of the job-project DataLoad u weblogic Pei welcome123 - runlabel Jul24 d FileName = abc.dat - nowait localhost:8090

    I expect this command will take the entrance as abc.dat instead which is specified as a reader in the work process. But it does not have the file specified as input and still treat the work with the original staging data.

    Please help how I can use several files get handled by using the unique task.

    Thank you
    Ravi

    Hi Ravi,

    The syntax for the outsourced options is the same as in execution profiles, would be if:

    D - phase.*.snapshot. *. FileName = abc.dat

    Assuming you outsourced or not ownership of file name as "filename."

    Kind regards

    Nick

  • Clip name without changing the name of the original clip

    Hello

    I am looking for a way to name a clip without changing the name of the original clip.

    For example:

    I have a clip called D066_140825_001_AA1663, I need to keep. But I would add one more name in a different area.

    Ideally it should look like this:

    Name Description
    Erica D066_140825_001_AA1663 moves the couch
    Erica D066_140825_001_AA1664 is conducted

    Erica D066_140825_001_AA1665 and John encounter

    etc.

    I see that in the draft of the first window there is a line named Description. Is there a way for me to add a description of the clip of prelude, or appoint the clips in any other way?

    Hi SMOlsen,

    Please see the link below and check if it helps.

    http://helpx.Adobe.com/prelude/using/prelude-logging-video.html#id_52195

    Kind regards

    Vinay

  • Navigate XML without knowing the names of nodes

    I want to save a HTTPService call XML data in an ArrayCollection collection without knowing the name of the node.
    Normally I would have:
    httpServiceId.lastResult.RootNode.ChildNames

    I want to save the ArrayCollection collection without knowing what the names are. Is it possible to do?

    I was able to understand. I downloaded the component to Exchange:
    http://www.Adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_US&EXTID=1414 018

  • Get the former locations of the data files and Redo logs

    Version: 11.2
    Platform: Solaris 10

    When we manage hundreds of DBs, we do not know the locations of all DB files these allows DBs. say a DB goes down and you have all the required RMAN backups.

    When you restore the DB in a new location in the path of the new server, you must run the commands for the data files and ORLs below. But how do we know

    The former location of the data files.

    B. the old location of redo online stores that I can run

    run
    alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs' ;  --- Without this command , the restored control file will still reflect the old control file location
    run {
    set newname for datafile 1 to '/u04/oradata/lmnprod/lmnprod_system01.dbf' ;
    set newname for datafile 2 to '/u04/oradata/lmnprod/lmnprod_sysaux01.dbf' ;
    set newname for datafile 3 to '/u04/oradata/lmnprod/lmnprod_undotbs101.dbf' ;
    set newname for datafile 4 to '/u04/oradata/lmnprod/lmnprod_audit_ts01.dbf' ;
    set newname for datafile 5 to '/u04/oradata/lmnprod/lmnprod_quest_ts01.dbf' ;
    set newname for datafile 6 to '/u04/oradata/lmnprod/lmnprod_yelxr_ts01.dbf' ;
    .
    .
    .
    .
    .
    }

    Hello

    With the help of Oracle 11.2, you can use feature 'set newname for database' using OMF.

    SET NEWNAME FOR DATABASE TO '/oradata/%U';
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    SWITCH TEMPFILE ALL;
    RECOVER DATABASE;
    

    After the restore and recover databases (i.e. before resetlog open) you can do to rename redolog. Just a query column member from v$ logfile and deliver ' alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs ';

    When we use the DSO is much easier to use OMF because Oracle automatically creates the directory structure.
    But when we use the file system that the OMF does not serve due DBA dislikes system generated on file system names.

    If you don't like OMF file system, you can use the script on thread below to help restore you using readable for datafile names, tempfile, and redo.

    {message: id = 9866752}

    Kind regards
    Levi Pereira

  • CAN I RECOVER DELETED DATA FILE AND ITS TABLESPACE BY USING FLASHBACK DATABASE

    Hello!

    I CREATED THE TABLESPACE WITH ITS DATA FILE.

    SQL > create tablespace usmantbs datafile 'E:\oracle\product\10.2.0\oradata\orcl\usman.dbf' recording petit_fichier the size of 10 M extent management local segment space management auto;

    THEN, I CREATED A USER AND HIM ENTRUST THIS TABLESPACE.

    SQL > create default profil_utilisateur identified by Neil Leal Microsoft account unlock default tablespace usmantbs;
    SQL > grant connect, resources for Neil;

    I CONNECTED WITH Neil as USER AND CREATED a TABLE.

    SQL > conn Leal/Leal
    SQL > create table baseball (id number (9));

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    ---------------------
    545863

    Then I deleted the tablespace including contents and data files...

    SQL > drop tablespace usmantbs including content and data files;

    I have no backup of this data file, but my database is in archive log...

    So I can... .flashback database to the SNA 545863 as it was before the fall... to get back my along its tablespace data file
    Wil I get my datafile back or not? Help, please...

    You can test it by yourself easily :) You will not be able to open your database
    After getting the error, just rename this data file and flashback again. Then open your database

    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 1 14:20:34 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create tablespace tb datafile 'c:\tb.df' size 1m;
    
    Tablespace created.
    
    SQL> create user tb identified by tb;
    
    User created.
    
    SQL> grant dba to tb;
    
    Grant succeeded.
    
    SQL> alter user tb default tablespace tb;
    
    User altered.
    
    SQL> create table tb (id number);
    
    Table created.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
         547292
    
    SQL> drop tablespace tb including contents and datafiles;
    
    Tablespace dropped.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> flashback database to scn 547292;
    flashback database to scn 547292
    *
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005
    
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005' as 'c:\tb.dbf';
    
    Database altered.
    
    SQL> flashback database to scn 547292;
    
    Flashback complete.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
    SQL> select * from tb;
    
    no rows selected
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\TB.DBF
    
    SQL> select name from v$tablespace;
    
    NAME
    ------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    TEMP
    TB
    
    6 rows selected.
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com
    [Step by step installation Oracle Linux and automate the installation by using Shell Script | http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

    Published by: Kamran Agayev, a., July 27, 2009 14:38

Maybe you are looking for