Oracle datafile moving soft links

hi,
i need to move my datafile from one location to other location. actually in database the data files are confiured with softlinks..
so how can i move my data file (physicl location )from one location to other physical location,
i thinking
1. put the tablespace offline .
2. move the datafile from one location to other.
my doublt is how i alter the link location to point to new location.
should i create new link to point this new location and
3.alter tablespace rename datafile <old link> to <new link >
put the tablespace online .
is any method i can alter the link to point to new location so that i can avoid step 3.
thanks
aditya

You need to do 1, 2 but not 3.
Instead you need to drop the old link and create a new link to point to the new location of the datafile.
The name is unchanged as far as the DB is concerned, but you need to make sure the tablespace is offline while making the change.

Similar Messages

  • IPhoto 9.1.1 ('11) messed up soft links

    I recently noticed that iPhoto is not following all of my aliases to find the original photos. I do not copy my photos to iPhoto, so when I import them, iPhoto creates an alias to the original file (which is on the same volume).
    It turns out that iPhoto has a problem with a whole bunch of Unix style soft links that I created within the iPhoto directory structure when I moved my photos from an external drive to my boot volume. When I did this, I had written a shell script to search for the original on its new location and replace the stale OS X Alias (which pointed to the old volume) with a soft link to the new file. It seemed to work fine way back then (1/31/08).
    At first, I thought that iPhoto was not following the soft links. However, when I examine the original files to which the soft links pointed, they have all been changed to Aliases!!!! It appears that the original photo data is still intact in each of the files, yet if you do a Get Info, it is an alias.
    I've tested a couple of ideas on solutions:
    a) cp -X of the original file to get rid of the extended attribute info. Still doesn't work. However, the new file (without the extended attributes) does open in Preview so that I can see the original jpg.
    b) replacing a soft link with a Finder Alias to the 'cp -X' file. Still doesn't work.
    What should I do now?
    Thanks!
    Henry Flurry

    Hmm ... that doesn't ring true. iPhoto only has problems with the photos that were soft links. Here's what I imagine happened:
    1) iPhoto recognizes that the original photo is a link
    2) It then decides to update the extended attributes and, assuming that the file is an Alias instead of a Unix Soft Link, opens the file directly to update the extended attributes
    3) Because the file is a soft link, the fopen (or whatever it uses) opens up the original file directly, and not the link
    4) When the extended attributes are updated, they end up getting added to the original data file.
    I'll admit that this is conjecture and I don't know why iPhoto would be updating the extended attributes. Does iPhoto store any data in this? Could this be something further I need to update?
    I'd like to poke around a bit more. For iPhoto 11, what is the directory structure of the iPhoto library? Perhaps I'm making wrong assumptions on which files to change.
    Thanks!
    Henry
    Message was edited by: Henry AZ to fix formatting

  • Use a soft link to move /Users to another volume

    I'd like to move /Users to another volume, so that I can have the OS and applications on an SSD, without having to get an SSD of several terabytes.
    Users log in to a Mac Pro using Active Directory accounts. Consequently, they do not have accounts on the Mac, and I cannot use Mac user properties to move their home directories. Also, the set of users who can log in is limited only by the AD user base, which has tens of thousands of entries. Of course, I cannot change the AD schema. So it has to be a solution that happens automatically. If a new user logs, her home directory must be automatically created on a volume which is not the startup.
    I made a soft link from the startup volume to the new volume where I want the homes to go. This seems to work. After a restart, all the applications I tried had no problem following the soft link.
    Is there any danger here? Or is there some better solution? I tried, following a suggestion which apparently worked in older versions of the OS, to make an entry in /etc/fstab to mount the new disk as /Users. This did not work in Mavericks (my test machine). The new disk appeared in Disk Utility, but could not be mounted. Perhaps it would work on Mountain Lion, which is the machine where this change ultimately needs to be implemented.
    I will be obliged for any suggestions or warnings.

    Reading through the article you referenced, I noticed they talked about downsides to moving home directory.
    The issue about non-boot drives not being as protected as the boot drive.
    Specifically related to permissions. I'm not exactly sure what they mean. If you ignore permissions on the non-boot drive that means that others can browse any of those files?
    I'm assuming they mean you would have to change the permissions on the non-boot drive? But does that mean that only the original owner can change those permissions? Or can any user change permissions on a non-boot drive?
    How is this different from user files on the boot drive? Can't you change permissions on your home directory?
    I'm interested in moving my directory to the non-boot drive, so I'd like to understand the downsides. Especially anything related to user security.
    Thanks.

  • Sharing album artwork with fast user switching and soft links

    We have 4 users, 4 iPods, 4 sets of playlists. Each has their own account. All the music lives on an external drive and each iTunes is set to store its music in the same shared folder. That all works fine.
    Now we're getting into album artwork, and I want to share that too. I found a posting somewhere that suggested a soft link from /Users/Me/Music/iTunes/Album Artwork -> /Volumes/BigDrive/iTunes Artwork. I did that with one user and it worked fine - copied Album Artwork folder and set soft link and voila, all the art. I also set all permissions to allow r/w from everyone.
    But when I set the soft link from 2nd user, iTunes shows no art. I can browse all the art files fine from that users Finder.
    Thanks for any help!
    mac mini   Mac OS X (10.4.9)   iTunes 7.1.1

    And just like that I may have found the solution! IT suddenly occured to me that one of the settings that got changed when we imported my wife's profile was a change to the sleep settings. Previously, I had had my iMac set to never go to sleep, since it shares our media with the rest of the house and runs eyeTV to record TV shows and such. For a little while after my wife's account was imported the settings to changes so that the computer would go to sleep after 15 minutes. I'm not totally sure why, but I think having that set up somehow meant that when we switched accounts my other account just "went to sleep" and therefore stopped sharing the iTunes library. After I noticed the change and switched the computer back to "never" for sleep the problem seems to have stopped.
    So perhaps check your sleep settings? That seems to be the only change I can think of that got things working correclty for me. I'll keep digging though and see if I can find any more helpful info. Good luck!

  • Soft links and xcode projects

    In other unix environments using soft links ("ln -s") is a handy way of "abstracting away" at the file system level what a file or directory actually contains, so that its contents can be easily changed without having to modify the original file or directory. In other words, if I have eg. three versions of the same file, and several projects share the usage of one of those files, I can easily change which version of the file those projects will use by simply making a softlink that points to the file I want, and make those projects depend on that softlink (they see it as a regular file). If I later want to change the file in question, I only need to change the softlink to point to another version of the file.
    This is especially useful when dealing with a third-party library that gets regular updates. I can install the third-party library somewhere, with the version number of the library in the directory name, and have a more generic directory name as a softlink (as a concrete example, I could have a softlink named "cocos2d" pointing to a directory named "cocos2d-iphone-0.99.5"). If I update the library, I can install it in a new directory (eg. "cocos2d-iphone-1.0.1") and simply change the softlink to point to the new directory, and then recompile the projects that depend on it.
    The problem is that Xcode doesn't like softlinks. I don't know if this is a feature of MacOS X in general, or a quirk in Xcode in particular. The problem is that Xcode doesn't want any softlinks in any of its paths, and instead always resolves where the softlink is really pointing to. Thus if I add, for example, the file "libraries/cocos2d/cocos2d-ios.xcodeproj" to the project, what ends up in the project is actually a reference to "libraries/cocos2d-iphone-0.99.5/cocos2d-ios.xcodeproj". Thus the whole softlink is circumvented, making it useless. If I update the library in question, I have to go through all the projects that use it and change the references to point to the new directory. This causes only needless extra work.
    This resolving of softlinks only happens when adding a new file to the xcode project. Xcode doesn't seem to change them afterwards, if they already exist in the project. In the past I could get around this problem by editing the project file directly with a text editor and forcing the path to refer to the softlink. However, all the paths in xcode 4 projects seem to be obfuscated, making this impossible. Another possibility is to rename the directory in question with the name of the softlink, then add it to the project, then restore its original name and then add the soft link.
    Is there any better way of doing this?

    Hello I have probably exact same problem with source files whereas a constant location (my softlink) points to different version of the sources in a repository. For example:
    ../MyProject/DependantProjetXyz could point to
    ../Repository/DependantProjectXyz/V1.0
    ../Repository/DependantProjectXyz/V1.1
    My xcode project is setup with ../MyProject/DependantProjetXyz which is pretty useful as I don't need to update all the include and lib path everytime I update the dependancies.
    The main problem I am facing is that if I have a compilation error in the dependancies, xcode isn't able to automatically bring me to the error. It simply open the file and position at the very first line in the file. No highlight.
    I am forced to use contextual menu on the error then reveal in the log to find the line number and manually navigate to that line. In other words, I am almost back to good old command line compilation with separate text editor...
    BTW, this was all working fine before upgrade to xcode 4.
    Was a bug filed on this issue?

  • Connecting Oracle 9i as a linked server of SQL Server 2000

    I have a problem inserting String values into Oracle 9i as a linked server or SQL Server 2000.
    When I run the following in SQL Analyzer:
    insert into ORACLEOLE..ADMIN.FM_SQL values('asdf','qwer');
    The result msg is:
    Server: Msg 7356, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' supplied inconsistent metadata for a column. Metadata information was changed at execution time.
    OLE DB error trace [Non-interface error:  Column 'FM_ID' (compile-time ordinal 1) of object '"ADMIN"."FM_SQL"' was reported to have a DBTYPE of 129 at compile time and 130 at run time].
    Is this a problem that the Charaterset of Oracle 9i being 'ALU32UTF8' ?
    I have tried changing the field's type to varchar2, char, nvarchar2 and nchar...and they didn't work.
    However, when the field type is a number(10) and I insert to the table integer values, the sql works fine.
    so..any data mapping need to be done explicitly?
    Thanks in advance.

    Based on my reading of the ANSI SQL-92 standards, table names are supposed to be in upper case.
    "of course, any lower case letters appearing in a <regular identifier> will have been converted to the corresponding upper case letter before the <identifier> is stored in any table of the Information Schema"
    http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
    Given that table names are supposed to be in upper case and they are in fact in upper case, why don't you just ask for them in upper case in the first place?

  • How do we connect two databases in Oracle other than Database Link?

    Good Morning,
    How do we connect two databases in Oracle other than Database Link?
    I am using Oracle 10g, I heard that we can connect two database in Oracle through ODBC. Is it possible? How?
    Thanks
    Nihar

    See if this helps.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358

  • JDK 1.3 Soft Links in CLASSPATH

    Hi,
    I found that the JDK1.3 javac compiler doesn't
    follow soft-links in unix filesystem. Whereas in
    JDK1.1.6 I was able to specify classpath through
    soft links also.
    Can anyone give more insight into this? Can this
    behavior be tailored - either via JDK or UNIX?
    Thanks,
    Hari

    This looks like Bug 4266026 in the Bug Database. It's fixed in JDK 1.4 and maybe 1.3.1.
    http://developer.java.sun.com/developer/bugParade/bugs/4266026.html

  • Change the default oracle datafile permission from 640 to 644 internally.

    Is there any method available to change the default datafile permission (640-(RW-R-----)) to (644-(RW-R--R--)).Please check the below example which I required.
    existing:
    rw-r----- 1 orasd dba 104865792 Mar 15 01:17 users01.dbf
    Required:
    -rw-r--r-- 1 orasd dba 104865792 Mar 15 01:17 users01.dbf
    we can bring the expected result by setting the value of UMASK to 022, only for OS level files not for oracle datafiles.
    So anyone can help me which method or which parameter we need to set to create datafiles in 644 permission from internally(create tablespace command).
    I know very well oracle software is creating the datafile,controlfile and logfile with 640 file permission, to maintain discretionary access to data (for security purpose).

    Is there a reason for posting duplicates ? Want to change the default datafile permission (640) to (644)

  • Oracle Reports Java API link Error

    The Oracle Reports Java API link on the Oracle Reports page produces an error.
    http://www.oracle.com/technology/products/reports/htdocs/getstart/docs/index.html

    1) In Oracle Reports *10g*, Reports services are exposed as a webservice. Though it does not contain all possible actions, you can use it to run report, get job info and some other operations . [ Other than this there is no exposed java API yet ]
    Please see chapter 14
    "Using the Oracle Reports Web Service"
    in http://download-west.oracle.com/docs/html/B10314_01/toc.htm
    Thanks
    The Oracle Reports Team

  • Oracle BAM without Enterprise Link?

    Is it possible to install Oracle BAM without Enterprise Link? Make it sense?
    Which cases are Enterprise Link necessary and which cases not?
    Thanks in advance
    Ana

    Yes definitely, you can very well install BAM without the enterprise link. The BAM installation asks you the components you want to install.
    Enterprise link is used to push data into ADC(for the corresponding data objects). You can utilise this component for feeding data to BAM from n number of sources. The only way to send data to BAM ADC w/o using enterprise link is through BPEL sensors. So, in case you are planning to use BAM only with BPEL sensors and nothing else. You can very well skip Enterprise Link installation.
    Regards,
    Varun R

  • Increase the Oracle datafile size or add another datafile

    Someone please explain,
    Is it better to increase the Oracle datafile size or add another datafile to increase the Oracle tablespace size?
    Thanks in advance

    The decision must also includes:
    - the max size of a file in your OS and/or file system
    - how you perform your backup and recovery (eg:do you need to change the file list)
    - how many disks are available and how they are presented to the OS (raw, LVM, striped, ASM, etc.)
    - how many IO channels are available and whether you can balance IO across them
    Personal default is to grow a file to the largest size permitted by OS unless there is a compelling reason otherwise. That fits nicely with the concept of BIGFILE tablespaces (which have their own issues, especially in backup/recovery)

  • Classloader & soft links & stat calls

    Solaris 7 - WLAS 4.5.1
    Our servlet class loader is loading classes that it resolves thru a soft
    link, we are having lots of stat calls. We cannot get the performance to a
    satisfactory level, does anyone have any idea about performance with respect
    to loading classes and the soft linked directory structure?
    Thanks,
    James

    We have a stable 4.5.1 that we are migrating to another server, given that
    we have a stable system we want to migrate as-is to the new server, then
    migrate from 4.5.1 to 5.1 ... then to 6.x. I cannot convince the client to
    go to a new server with a new application server all in one step.
    James
    "Mike Reiche" <[email protected]> wrote in message
    news:3b603e4e$[email protected]..
    >
    Same answer as to your other question. WLS 5.1.
    You can spend weeks or months trying to figure this out or got to 5.1 andget
    it over with.
    What's the point in solving the problem for 4.5.1 if
    1) going to 5.1 is painless
    2) you're going to go to 5.1 anyway
    Mike
    "James Carlson" <[email protected]> wrote:
    Solaris 7 - WLAS 4.5.1
    Our servlet class loader is loading classes that it resolves thru a soft
    link, we are having lots of stat calls. We cannot get the performance
    to a
    satisfactory level, does anyone have any idea about performance with
    respect
    to loading classes and the soft linked directory structure?
    Thanks,
    James

  • Soft links and endpoints

    Hello,
    I would be grateful if someone would confirm to me the following:
    A soft link always relates to an external endpoint.
    Is the above statement true?
    Julien.

    Soft, hard, and standard links always apply to internal endpoints (external and internal endpoints are defined by the spec in section 5.1.7). They are used to govern connections made by the NMR between service consumers and providers.
    External endpoints are used only for endpoint reference (EPR) generation. (External service providers are considered internal endpoints, since they are proxied by the binding components.)

  • Soft links and inodes

    It's my understanding that a unix file consists of three components: a filename, an inode, and the data. So if you create a text file called "original", you get something like this:
    original -------> inode ------> data
    Then if you create a soft link to the original file, the soft link has its own filename, inode, and data--where the data is the filename of the original file. So for instance, if you use the command:
    $ cat soft_link
    it traverses the chain:
    softlink-->softlink's inode-->data-->original-->original's inode-->original's data
    On the other hand, if you create a hard link to the original file, the hard link does not get its own inode; its filename points to the original file's inode. So for instance, if you use the command:
    $cat hard_link
    it traverses the chain:
    hard_link ---> original's inode ---> original's data
    and then the original's data is displayed.
    However, on mac os x when I do an ls -i on the soft link to display its inode, it displays the same inode number as the original file. Furthermore, if I rm(remove) the original file and recreate it using touch original, the new original gets a new inode number, and the soft_link's inode changes to the new inode. I don't understand that. I expected that the soft_link initially would have a different inode number than the original, and that the soft link's inode would not change when the original was recreated.

    You may want to read this page: http://linuxgazette.net/105/pitcher.html
    It contains a pretty good explanation of the difference between a soft link and a hard link but it doesn't directly answer your question about the inodes. However, it appears that there's a subtle difference in the way "ls" acts depending on whether you give it a filename or not and depending on whether you use the "-l" option in conjunction with "-i".
    Here, with filenames and without "-l" it appears that basic.file and softlink.file have the same inodes:
    <pre>
    iMacHerman:~/Desktop/temptest steve$ ls -i basic.file
    3723769 basic.file
    iMacHerman:~/Desktop/temptest steve$ ls -i softlink.file
    3723769 softlink.file
    </pre>
    Yet here, without filenames and using the "-l" option you can see that the softlink.file's inode is different (while hardlink.file is the same):
    <pre>
    iMacHerman:~/Desktop/temptest steve$ ls -li
    total 24
    3723769 -rw-r--r-- 2 steve steve 27 Feb 24 08:01 basic.file
    3723769 -rw-r--r-- 2 steve steve 27 Feb 24 08:01 hardlink.file
    3723768 lrwxr-xr-x 1 steve steve 10 Feb 24 07:59 softlink.file -> basic.file
    </pre>
    Here using both a filename and "-l" you again get softlink.file's actual inode:
    <pre>
    iMacHerman:~/Desktop/temptest steve$ ls -li softlink.file
    3723768 lrwxr-xr-x 1 steve steve 10 Feb 24 07:59 softlink.file -> basic.file
    </pre>
    And here leaving off filename gives you softlink's actual inode even though the "-l" option was not used:
    <pre>
    iMacHerman:~/Desktop/temptest steve$ ls -i
    3723769 basic.file 3723769 hardlink.file 3723768 softlink.file
    </pre>
    So it appears that if you do not use the "-l" option and you give "ls" a filename that it follows the softlink and reports the inode of the original file. Other variations (using "-l" or leaving off the soft link's filename list the soft link's actual inode. This seems a little confusing to me and possibly a bug in "ls"... but maybe there's a reason for it working this way???
    Steve
    PS - and if you do what you described, delete and then recreate the original "basic.file" it will get a new inode. And if you use the first variation of "ls" (without "-l" but with softlink's filename) then it will indeed appear that softlink's inode changed to match the new basic.file
    <pre>
    iMacHerman:~/Desktop/temptest steve$ rm basic.file
    iMacHerman:~/Desktop/temptest steve$ touch basic.file
    iMacHerman:~/Desktop/temptest steve$ ls -i basic.file
    3723912 basic.file
    iMacHerman:~/Desktop/temptest steve$ ls -i softlink.file
    3723912 softlink.file
    </pre>
    But using one of the other options shows that softlink's actual inode did not change:
    <pre>
    iMacHerman:~/Desktop/temptest steve$ ls -li
    total 16
    3723912 -rw-r--r-- 1 steve steve 0 Feb 24 08:29 basic.file
    3723769 -rw-r--r-- 1 steve steve 27 Feb 24 08:01 hardlink.file
    3723768 lrwxr-xr-x 1 steve steve 10 Feb 24 07:59 softlink.file -> basic.file
    </pre>

Maybe you are looking for

  • I can't get my Zen Xtra to work on my new comput

    Hello. For years now, my Creative Zen Xtra has been working perfectly on my old (and I do mean old, Windows 98 old) computer. However, I recently bought a new computer with Windows Vista, and I just can't get it to work on there. I've installed all t

  • Why error in "NIReport.llb"?

    Hi all! I´m using Labview 8.0 and I having problems when I close my program. Basically I created a sub VI to print some datas and always when I want quick the program this message appears: Print HTML Report using IE.vi has unsaved changes. Save - All

  • How to remove a song stuck on the iPhone?

    I purchased a song in the iPhone iTunes store then synced my iPhone with my computer, only to discover that someone had already purchased the same song there.. Since then that song has been stuck on my iPhone, no matter what I do it appears in the 'P

  • Having trouble passing form values to a data action in 10G

    I have a view object that queries the hr.departments table. In the app module, I created a custom method to bind a paramter to the query. I am able to make this work only if I manually enter a value for the paramsNames[0] value for the dataaction. Wh

  • Exception on keyfigure depending on 3 characteristics

    Hi Experts, I am facing a problem in exceptions of query designing.The scenario is there are 2 characteristics and one keyfigure. the keyfigure (KF) needs to be highlighted according to the 2 characterisctics Eg if employee    factory      sales(KF)