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

Tags: Database

Similar Questions

  • Is CFFILE read uses only the absolute path or the relative path too?

    I use cffile read access to my file to json. I would like to know if the cffile uses only absolute or relative path too? If I tried to use the relative path, it kept send me errors on non-existent file.

    Read what I posted on the documentation. CFFILE read must be an absolute path. If you use a path relative to its parent to the CF temp folder:

    If not an absolute path (starting with a drive letter and a colon or a slash to advance or back), it is relative to the ColdFusion temporary directory, which is returned by the GetTempDirectory function.

    There is no relative path from your web files. IF you just put a relative path, it will attempt in the CWS for the file temp folder.

  • How to set the relative path for referrals?

    Hello

    I use FDK.

    I'm trying to work with cross references and I have the problem with the path name < XRefSrcFile >. Every time when I started using F_ApiSetString, it 's defined as an absolute path and I need to put it in the relative path.

    Someone has an idea how solve it?

    Kate

    Kate,

    I can't reproduce this behavior. When I have defined XRefFile as an absolute path, then save under MIFID, I see a path relative to the MIFID. The exception is if I specify an invalid path, FrameMaker retains the absolute path. I don't know what to say beyond that. Are you sure you set a valid path to a file?

    Russ

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

  • How to read the .txt adfLib pot file to the model layer by using the relative path

    Hello

    In my application, I use the ExtendedDynamicFldTbl (extends weblogic.wtc.jatmi.DynamicFldTbl), which the manufacturer requires the field file path table as a parameter.

    In the API, it is said that this name of path can be an absolute path, a relative path to the directory where Java has started, or a relative path that can be found as a resource on the classpath.

    I have created this ExtendedDynamicFldTbl to the model layer project, placed the fild_tbl.txt in a separate package and pass the path relative to the DynamicFldTbl constructor.

    Given my code below to get the instance of ExtendedDynamicFldTbl
    package model.tuxedo;
    
    public class ExtendedFldTbl  extends DynamicFldTbl
    {
    
        private static ExtendedFldTbl extendedFldTblinstance = null;
        
        public ExtendedFldTbl(String tablePath, boolean flag)
        {
            super(tablePath, flag);
        }
        
        public static ExtendedFldTbl getInstance()
        {
            if (extendedFldTblInstance == null)
            {
                URL url = extendedFldTblInstance.class.getResource("resource/fldtbl.txt");
                if (url == null)
                {
                    throw new RuntimeException("Tuxedo Service : fldtbl.txt is not found in the path 'model.tuxedo.resource' ");
                }
                extendedFldTblInstance = new ExtendedFldTbl (url.getPath(), true);
                String[] list = extendedFldTblInstance .getFldNames();
                System.err.println("fldtbl loaded. Total FML entries loaded = " + list.length);
            }
            return extendedFldTblInstance ;
        }
    }
    I just added the output of the build of the layer model to view the project of the layer and tested. It works fine and I am able to get the ExtendedFldTbl instance with all loaded fields. But rather than add dependencies, if I create an adfLibJar for the layer model project and you add to view the project of the layer, it does not work. It is not ablt to read the file of adf lib jar file.

    Issues related to the:

    1. How can I solve this?
    2. Although I have kept the field text file table in the source of the project itself, when I read the url, it is
    "C:/Documents and Settings/raguramanv/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/SampleWtc/3gkmt9/war/WEB-INF/lib/SampleWtc_Model_adflibSampleWtc1.jar!/model/tuxedo/resource/fldtbl.txt"
    Instead of the physical directory, how can I use application in model layer context?


    Thanks in advance

    Rambeau

    Hello

    Try /adf/ or /afr/ in the URL. Then includes the ADF resource loader which is used to get the contents of a lib of the ADF. Take a look at the structure of ADF library where the file is located in. It should be in a directory with /adf in the folder structure

    Frank

  • the frame in the frameset is not the relative path correctly

    http://www.autogamma.com/FastSP/catindex.html

    Click on 'PUMP LAVACRISTALLI' > "Quick Codice" > "PL100.
    images do not work
    In IE and Chrome images work fine

    The frame with PL100,... link to "pompe\PL100.html",...
    Target is the frame named "MAIN".
    In this context, the relative address is lost: the frame does not take the correct relative path, with a new subdirectory "pump".
    Path of the images remain.

    These links have the backslashes instead of slahes forward:

    <body><center><font size=2>CODICI FAST</font><br>
    <a href='pompe\PL100.html' target='MAIN'><font size=2>PL 100</font></a><br>
    <a href='pompe\PL101.html' target='MAIN'><font size=2>PL 101</font></a><br>
    <a href='pompe\PL102.html' target='MAIN'><font size=2>PL 102</font></a><br>
    <a href='pompe\PL103.html' target='MAIN'><font size=2>PL 103</font></a><br>
    <a href='pompe\PL104.html' target='MAIN'><font size=2>PL 104</font></a><br>
    <a href='pompe\PL105.html' target='MAIN'><font size=2>PL 105</font></a><br>
  • TestStand API: Define the relative path

    Dear community NOR!

    Could someone, please, with the following - is there an option to set the path to code modules, within the test sequence, to have a relative path, but not absolute? I add programmatically in code modules to the steps of the sequence, but currently, they have an absolute path. Is it possible to change it to relative with TestStand API?

    Thanks in advance.

    I was wrong. It is possible to manually cut path to the file (TestStand directories search function). Then, will add the modules of code with relative paths. But be careful - path should be cut properly.

    For example, I have the full path

    E:\Development\source code\supplementary\TestVIs\ Code Modules\Service\Print.vi

    My search directory is

    E:\Development\source code\supplementary\TestVIs\

    So, I need to cut like this:

    Code Modules\Service\Print.vi

    and without a bar slash at the beginning!

    Then it will be OK.

  • Link to files via the relative path?

    It seems that Captivate is only able to connect to external files via absolute links. In other words, when I create a click box that opens a file and select a file that is located on my development machine, the project will always look this file on my hard drive, even once it is posted on the Web. It's extremely frustrating, and I have not found a work around.

    Please help me identify a way to bind using a relative path. In other words, the project will solve it is the current residence and search for content in the directory, it lies in or specified directories under this location. It is the only way that you can create a project that can run successfully during the validation. Captivate already done this, when you create a click box that opens another project, so there MUST be a way to do when opening project files!

    Help, please!

    Thank you
    Dan Roberts

    You, Mr President, is a scholar and a gentleman!

    According to the agreements that you have described, I was able to create workable links. This should be widely published, I'm sure that many other authors is on the same problem.

    Note to Adobe: the ability to create relative links should be inside the product option, as in most of the other products I've used.

  • link with the relative path includes the root folder

    I hope someone can help me. When I convert a Word to PDF file with a path relative to another document, a reason any Acrobat includes the directory root with the path if the link does not work. Even when I try and change the link using Acrobat Pro and save the document, the system adds the default root directory. What is happening with this?

    example:

    Directory with the file/subdirectory with file/sup under directory with the file / / my document.pfs

    site to register:

    C: / / my documents /.

    Directory with the file/subdirectory with file/sup under directory with the file / / my document.pfs

    solved my problem. I removed the links in the word document and then created in Acrobat. It worked.

  • FM8 create the relative path

    Here is the read write rule I use:

    ' Widget '.
    {
    is the graphic element of fm;
    attribute "entity" drop;
    'boardno' attribute is the property of fm file;

    }

    It is the output:

    < chart
    boardno = "file:///H:/My%20Documents/IMS/IMS%20CURRENT%20DEVELOPMENT/Frame%20Docs/graphics/ims_system .jpg" > < / graphic designer>

    The output I want is

    < graphic boardno = "graphics/ims_system.jpg" > < / graphic designer>

    Any Suggestions?

    It is a matter of rule of read/write, nor a matter of book/document.

    FM uses a path relative to a chart when the XML document is being registered the same drive as the graph. It uses an absolute path if not.

  • Creating a link to a relative path

    I hope someone can help me here.

    I use Robohelp 6.0 and output in a CHM (Robohtml) file. I have a file .htm separated with 3 associated files (.flv (flash video), .js and .swf (Controller) or .xml (settings) file). This is our library of training in video format which is embedded in the .htm file. It was made using Camtasia. What I want to do is one of the following:

    1. create a relative link in the file .chm for the .htm file that is outside of the project.

    2. everything in the baggage files and run it from inside the .chm file.

    My results were as follows:

    1. no matter what I try, I can't seem to access the .htm since the release of Robohelp file using a relative link. I made sure that all the files are in one directory where the chm file, so I don't know the paths are correct. It's as if Robohelp can only create links to absolute paths? Is this really the case? In addition, I don't have the files to include in the project. I just need to access the .htm file relatively. The coding is in the .htm file to play movies.

    2. any investment in the baggage files lets me run the htm file, but the .flv and .swf files are not displayed in the html window. No matter how I cut it, I can't get these video files to load. As a side note, I can integrate files .swf in Robohelp without a hitch, but this training library has several videos and a table of contents and others and is 250 MB as a .swf file. But as a .flv file, it is only 25 MB. So of course, I prefer to use the .flv file.

    Thanks in advance for your help.

    Rob

    Hi, Rob.

    > Create a relative link of the file .chm to the .htm file that is outside of the project.

    Microsoft's HTML Help documentation includes a script for exactly that. See:

    http://msdn.Microsoft.com/en-us/library/ms644690 (vs.85) .aspx

    And see also:

    http://helpware.NET/far/far_faq.htm#externalfile

    Pete

  • Folders created automatically with $ in the title

    Suite much clean files and removing the 'old' with a remote hard drive connected, when I rebooted my laptop I found three records were created automatically in the C drive and I don't know what they are, or why they were introduced.  They're called $RECYCLE. BIN, $INPLACE. ~ TR and %WINDOWS.~Q

    That means these and what can I to their topic please?

    Thank you

    $INPLACE. ~ TR and %WINDOWS.~Q - it is for Vista (I couldn't find the version of W7 if its there somewhere?) http://support.Microsoft.com/kb/930890/en-US , see the sections of 'more information' and 'workaround '. More info here - http://www.howtogeek.com/howto/6685/what-are-the-inplace.tr-and-windows.q-folders-and-can-i-delete-them/

    $RECYCLE. BIN - is the bin for this drive. You're probably showing "protected system files.

    Open Solution Explorer, select the drive, click on [organize], click on 'folder and search options' click on the [view] tab, and see if "Hide protected files operating system (recommended)" is checked.

    See also - http://windows.microsoft.com/en-us/windows/change-recycle-bin-settings#1TC=windows-7

  • 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

  • Urgent: how to create a shortcut with a relative path?

    I put a set of files and folders nested on a server on a network location.  (Use of office machines Vista; I don't know that the server is running.  The files are a text file and two Office 2007 files).  Users will copy this set-up files on their computer (there is a program of VBA macro in a Word document, they need).  They need tomorrow (Friday) and the shortcut path gives me fits!

    The hierarchy looks like:

    MainDir
    File.txt
    SubDir1
    Shortcut to the Word file
    SubDir2
    Word file
    Excel file

    I don't think even the paths associated with the shortcut until I looked a little deeper.  Because I put all the files and folders together on my computer, when I did a drag - move in the folder on the server, the target properties and start in the shortcut always pointed at my computer!  So now, I'm afraid that a user copy this on their machine will have a shortcut that points to ~ my ~ computer, instead of the file on their computer.

    I deleted the shortcut located on the server and creates a new one from the Word file in the directory on the server.  Better - I think - but it still points to the location of the server.  And it is even more likely that, when the user opens the shortcut, it will try to open the file on the server, vice the file on their computer.

    How can I create a shortcut to this Word file that will pick up the relative path from around where to reside?  I can just click > properties and change the target and start in paths?  Or do I need a VBScript or VBA?

    I have to get this done fast!  A kick - in the right direction is greatly appreciated.

    Ed

    Hi Ed,

    It is not possible to create a shortcut with a relative path.

    You can try the following allows to bypass and check if it helps:

    Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the

    The shortcut properties.

    a. make a new shortcut to: cmd.exe /c start.

    b. now right-click on it and get the properties of the shortcut (shortcut tab).

    c. the shortened full path must have been set to this:

    %windir%\system32\CMD.exe /c start.

    d. set the directory of "start in" (i.e. DLG) to be a relative path:

    (Example for a shortcut on the desktop)

    ...\SendTo

    e. click on "change icon...". "and set" look for icons in this file: "to: %SystemRoot%\system32\SHELL32.dll and press ENTER.

    Standard folder icon will probably be in the lower right.

    f. now you can copy this file and simply change the "start in:" to make new related shortcuts directory.

    NOTE: The above steps are just an example, so try this at your own risk. And check if it works.

    You can also read the following article and check:

    Folder redirection fails when you specify the mapped network drive or the Environment Variable

    http://support.Microsoft.com/kb/321805

    You can check out the following link and also post your request in the Technet forum for further assistance:

    http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads

    Hope this information is useful.

  • Creating a shortcut with relative paths

    I'm trying to set up a folder so that I can copy a group of files from USB drives, and I want to place a shortcut to open the Powerpoint Viewer into a subfolder of this folder to copy.   When I put in place a regular shortcut, it creates the full path: 'C:\Users\xx\Documents\Thumb Drive Files\With CAD Drawings\Product présentation Files\pptview.exe training', and when they are copied on a USB key, it will not work because it seeks the path 'C:', rather than the relative path in the folder, \With CAD Drawings\Product Training Presentation Files\pptview .exe.  I don't remember how to set this up with relative paths.

    You can't go with shortcut, you use a batch file on the root of the drive that has an order of relative path for the first command in it.

Maybe you are looking for

  • Can a huge quantity of slow iphone photos

    Hello A simple question. My wife and I have both an iphone 6 (128 for me, 64 for her). My phone is slower and slower over time and we the speed difference can be seen when comparing the two. His phone is as fast as the first day. The difference, I ha

  • Challenge Questions

    Currently I have an XT that and considering the upgrade to a Defy. Seems to have good reviews. I know that some people here have used both phones, so a little comparrison help. How does the sound quality compare to make a call? How about you, ring vo

  • Windows Media does not work

    I was told while he was trying to use Windows media I had no cd driver. Well, I use.d to Mine are internal and you downloaded the programs successfully in the past. Now I can not use any disk in computer. I'm not techno-savy. Should I go to a compute

  • Mini password locked

    I have a HP mini sn # cnu0053f10 which is locked by Word. Can you help me?

  • Where can I find the download of Windows Vista Home Premium Service Pack 1?

    I did a full restore in Win Vista Home Premium from recovery disks.  When you set the computer, I enabled Windows Update before remembered me that I had to also download Vista Service Pack 1 and Service Pack 2.  Windows Update had already downloaded