Archiving in H264 while keeping folders/file creation date

*Hi, I just wanted to share with you a script that helps to convert the content of the FCP "capture scratch" folder into H264, to move the converted files into a Device, put the h264 files in the correct client folder.*
*Into this client folder, it creates folders with the original production name, while it keeps the original creation file date.*
*So it keeps the original folder hierarchy and date for my archives, because to browse with the final cut server client is great, but sometimes you just want navigate in your file system to work with your videos.*
*STEP 1* : Original Assets Cataloging (production scan)
I have a Scheduled Production scan of my "capture scratch",
(Capture scratch is on our SAN, so all Edit suites are capturing in the same "capture scratch" folder)
*STEP 2*: Detect to which client the asset belongs to (thanks to the location name) and set the proper [Owner ]metadata asset
NB: for that I ask all editors to put the name of the client at the beginning of the name of their FCP projects. ex CBS_snow in paris.fcp
I have Subscriptions that filters created assets location to see if the location "begins with" the client name, then give a "response" that set the correct [Owner] metadata, and also change the "statut" to "WAITINGFORENCODE" (you have to create it into Lookup/Status)
So I have as many Subscriptions/Reponse as actual Clients
*STEP 3 :* I have a subscription that filters Modified Assets that have a status of "WAITINGFORENCODE"
then gives 3 responses.
+Response 1:+ Set Asset Metadate Status to "ENCODING" ( yeah, Status are made for collaborating tags.. but here we are...)
+Response 2:+ Copy in H264 (that's where Matrox is great!) into a "transcode folder"
+Response 3+ (the tough one): Copy the transcoded asset to the right archive location and keep original creation date, create an asset and put it in the same production as the original, and set the original Asset Metatadata Status as "ENCODED"
Run Script
Command Path: //path to the script.
In the command parameters you'll need to enter: [File name] [Location] [Owner] [Asset ID]
So here is the Script. It's a LOT inspired from Andy Sykes http://fcsvoodoo.blogspot.com/2009/07/add-newly-created-asset-to-originating.htm l
A big thank to him for publishing it.
#!/bin/bash
FILENAME=$1
PLACE=$2
CLIENT=$3
IDFILE=$4
FILENAME_ESCAPED=$(echo -n "$FILENAME" | \
perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
LOCATION_ESCAPED=$(echo -n "$PLACE" | \
perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
# Set the location to the fcsvr_client binary
PATH_TO_BINARIES="/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/MacOS/fcsvr_client"
# Set the location of the Archives NAS Client Folder
PATH_TO_TARGET="//Volumes/NASARCHIVES/""$CLIENT""/Footages"
# Set the location of the Transcoding folder
PATH_TO_TRANSCODE="//Volumes/EditSAN/Transcode"
# Set the location of the Original File folder
PATH_TO_ORIGINAL="//Volumes/EditSAN/Capture Scratch/"
# Make a folder and move the file in it
mkdir "$PATH_TO_TARGET""$PLACE"
mv "$PATH_TO_TRANSCODE"/"$FILENAME" "$PATH_TO_TARGET""$PLACE"/
#Set Copied File and Folder Date from original
ORIGDATE=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE"/"$FILENAME")
ORIGDATEFOLDER=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE")
echo $ORIGDATE
echo $ORIGDATEFOLDER
Setfile -d "$ORIGDATE" "$PATH_TO_TARGET""$PLACE"/"$FILENAME"
Setfile -d "$ORIGDATEFOLDER" "$PATH_TO_TARGET""$PLACE"
# Determine original Production "address" by searching for the "location" (since this is the same as the Production name)
PROJECTNAME=$("$PATH_TO_BINARIES" search --crit "$PLACE" /project | grep -i -o -e "/project/[0-9]*")
echo $PROJECTNAME
# Create asset and associate it with the project
OUTPUT=$(sudo "$PATH_TO_BINARIES" createasset pa_asset_actua --projaddr $PROJECTNAME /dev/11/"$CLIENT""/Footages""$LOCATION_ESCAPED"/"$FILENAME_ESCAPED" CUST_ASSET_STATUS="INRAID6")
echo $OUTPUT
# Change Original metada asset status
SETMETA=$(sudo "$PATH_TO_BINARIES" setmd /asset/$IDFILE CUST_ASSET_STATUS="TRANSCODED")
echo $SETMETA
Weekness of the script is when you're converting non .MOV files (or different extension in the H264 copy than the original), I could not figure out how Andy Skypes managed with the extensions in his script, so I just pass it.
Now it's working like a charm after I had a lot of Issues due to the escape characters, but thanks the the perl command ,it's good now. But you will still need to ask editors to avoid / and & and () in file names...
Well, I just make it work yesterday, so now I breath cause I couldn't figure out if investing if FCS would be more a sufferance than a relieve because lot of people saying that you have to totally rethink the way you work with assets, and forget about your folder hierarchy...but this, I couldn't hear It, especially when I saw the mess that was about to happen with thousands of P2 clips.
My conclusion would be: Metadatata is great, but folder hierarchy can save you if you loose your DB or want to migrate ...
au revoir.

here we go
#!/bin/bash
FILENAME=$1
PLACE=$2
CLIENT=$3
IDFILE=$4
FILENAME_ESCAPED=$(echo -n "$FILENAME" |
perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
LOCATION_ESCAPED=$(echo -n "$PLACE" |
perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
# Set the location to the fcsvr_client binary
PATH_TO_BINARIES="/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/MacOS/fcsvr_client"
# Set the location of the Archives NAS Client Folder
PATH_TO_TARGET="//Volumes/ARCHIVES/""$CLIENT""/Footages"
# Set the location of the Transcoding folder
PATH_TO_TRANSCODE="//Volumes/EditSAN/Transcode"
# Set the location of the Original File folder
PATH_TO_ORIGINAL="//Volumes/EditSAN/Capture Scratch/"
# Make a folder and move the file in it
mkdir "$PATH_TO_TARGET""$PLACE"
mv "$PATH_TO_TRANSCODE"/"$FILENAME" "$PATH_TO_TARGET""$PLACE"/
#Set Copied File and Folder Date from original
ORIGDATE=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE"/"$FILENAME")
ORIGDATEFOLDER=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE")
echo $ORIGDATE
echo $ORIGDATEFOLDER
Setfile -d "$ORIGDATE" "$PATH_TO_TARGET""$PLACE"/"$FILENAME"
Setfile -d "$ORIGDATEFOLDER" "$PATH_TO_TARGET""$PLACE"
# Determine original Production "address" by searching for the "location" (since this is the same as the Production name)
PROJECTNAME=$("$PATH_TO_BINARIES" search --crit "$PLACE" /project | grep -i -o -e "/project/[0-9]*")
echo $PROJECTNAME
# Create asset and associate it with the project
OUTPUT=$(sudo "$PATH_TO_BINARIES" createasset pa_asset_actua --projaddr $PROJECTNAME /dev/11/"$CLIENT""/Footages""$LOCATION_ESCAPED"/"$FILENAME_ESCAPED" CUST_ASSET_STATUS="INRAID6")
echo $OUTPUT
# Change Original metada asset status
SETMETA=$(sudo "$PATH_TO_BINARIES" setmd /asset/$IDFILE CUST_ASSET_STATUS="TRANSCODED")
echo $SETMETA

Similar Messages

  • Creating folders based on file creation date

    Hi,
    I have a folder full of images and I am looking for an Automator workflow/app/script that can look at the files sequentially, read the creation date and then create folder name based on the file creation date (Year-Day-Month). Then move the file to the respective folder.
    Appreciate any input you can provide.
    Regards
    Tom Erik

    Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
    tell application "Finder"
    repeat with this_file in (get files of window 1)
    set the_date to creation date of this_file
    set folder_name to ((year of the_date as string) & "-" & day of the_date & "-" & month of the_date)
    try
    make new folder in window 1 with properties {name:folder_name}
    end try
    move this_file to folder folder_name
    end repeat
    end tell
    (75533)

  • Get the file creation date

    hi friends..
    i searched many forums to get file creation date
    i didnt get the solution but i found one program which execute
    dos command and gets the output of that.
    so using that program i developed a program to get the file creation Date & Time also
    //getCreationDate.java
    import java.io.*;
    import java.lang.*;
    public class getCreationDate {
    public static void main (String args[]){
      try {
         // get runtime environment and execute child process
         Runtime systemShell = Runtime.getRuntime();
          BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
          System.out.println("Enter filename: ");
          String fname=(String)br1.readLine();
         Process output = systemShell.exec("cmd /c dir "+fname);
           // open reader to get output from process
         BufferedReader br = new BufferedReader (new InputStreamReader(output.getInputStream()));
         String out="";
          String line = null;
          int step=1;
          while((line = br.readLine()) != null )
                if(step==6)
               out=line;
                step++;
                }          // display process output
          try{
          out=out.replaceAll(" ","");
          System.out.println("CreationDate: "+out.substring(0,10));
          System.out.println("CreationTime: "+out.substring(10,16)+"m");
          catch(StringIndexOutOfBoundsException se)
               System.out.println("File not found");
       catch (IOException ioe){ System.err.println(ioe); }
       catch (Throwable t) { t.printStackTrace();}
    }

    Following line should be modified to make it work on all platforms:
    Process output = systemShell.exec("cmd /c dir "+fname);

  • IPhoto file creation date inconsistencies during drag and drop

    I have noticed that if I drag and drop a photo from iPhoto to Finder, the file creation dates in Finder are inconsistent.
    (This question is related to drag and drop only and not File->Export, which always uses the export date and timestamp for the file creation date and thus does not suit my needs).
    TEST A -- If the EXIF DateTimeOriginated is 01/01/2013, and today's date is 03/03/2013, then:
    In some cases when I drag a file to Finder, the EXIF date is used as the file modification/creation date in Finder
    In some cases, today's date is used as the file modification/creation date in Finder
    In some cases, a date in between the EXIF date and today's date is used
    It appears that for case A1, these are files that do not have a modified copy.  That is, if you select the photo in iPhoto and then click "File" -> "Reveal In Finder", the "Modified File" choice will be greyed out.
    For cases A2 & A3, iPhoto has inexplicably decided to create modified versions of these files either today or sometime in the past.
    TEST B -- I have read that unexplained modifications are tied to the auto-rotate function in cameras, and it does seem to be the case when I performed the test below:
    Select a large group of landscape format photos (these would not have been auto-rotated), then drag and drop to Finder.  The file creation dates are set to the EXIF date
    Add some portrait photos to the group in (1).  Now the file creation date of ALL photos including the non auto-rotated photos are set to the current date
    The behaviour in B2 is clearly wrong, since the landscape photos should be the same as in B1.  This is bug #1.
    Furthermore, iPhoto appears to be inconsistent with when these modifications are made.  For example, I dragged & dropped an auto-rotated photo on 02/02/2013, then dragged & dropped it again today, then the file creation date in Finder (and also the date of the modified file in iPhoto, as shown in iPhoto File->Reveal In Finder->Modified File) can either the EXIF date (01/01/2013), the late of the last drag & drop (02/02/2013), or today's date (03/03/2013); there does not appear to be any rhyme or reason to this.  This is bug #2.
    In any case, saying "you should never use drag & drop in iPhoto" (as I have read in some other forum posts) isn't a solution, because Apple should either (a) support this function correctly or (b) remove it altogether.  Furthermore, I regularly burn photos to disk for others so having the file date and timestamps correctly set to the EXIF date helps keeping the photos sorted in the directory listings for multiple OS, so File->Export isn't a solution.

    File data is file data. Exif is photo data. A file is not a photo.  It's a container for a photo.
    When you export you're not exporting a file. You're exporting a Photo. The medium of export is a new file. That file is created at the time of export, so that's its creation date. The Photo within that file is dated by the Exif.
    There are apps that will modify the file date to match the Exif.
    The variation you're seeing is likely due to the changes in how the iPhoto library works over the past few versions. Drag and drop is handy, but is not a substitute for exporting, nor intended to be.

  • How can I change the file creation date?

    I recently downloaded more than 1,000 photos from my vacation. I'm preparing to burn DVDs for a friend, and I noticed that when I copy the photos to the desktop, they don't all have the same date. I have read a couple of discussions here about the difference between photo creation date and file creation date, and I understand the difference. But something seems odd to me.
    For purposes of illustration, let's take two photos: "A" was taken with the camera in the landscape position (how one normally holds a point-and-shoot); "B" was taken with the camera held in the portrait position (rotated 90 degrees). The photos were taken on April 24, about three minutes apart, but not imported into iPhoto until May 19.
    In iPhoto, both files show the actual creation date. Yay!
    The problem is with the files after having been copied to the desktop.
    When copied to the desktop, the info panel for photo "A" shows April 24 for both the "created" and "modified" dates. Photo "B," however, shows May 19 for the "created" and "modified" dates.
    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Is there any way to change this? I want the DVD to show the date the photo was created, not imported to iPhoto. Picky, I know … but I'm like that. 

    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Correct.  Your camera has an Auto-Rotate feature. However, the camera does not actually rotate any pixels in the file, but instead flags it with an instruction: "Display me this way". This is a tag in the Exif metadata. When you import a file with this tag iPhoto creates a modified version. It does this because most of the apps that integrate with it -  email clients, word processors etc - simply don't understand this Exif tag. So if you used the shot in a word processing doc, uploaded it to many Web site etc, the shot would come out sideways.
    iPhoto has nothing to say about File dates. There are various file utilities that will edit the dates on Files
    http://www.macupdate.com/app/mac/11143/a-better-finder-attributes
    for instance. But there are otheers, search on  MacUpdate
    Regards
    TD

  • How can you determine a file creation date and know if it's been altered since the creation date

    I need to know how to determine a file creation date on an ipad.  If someone creates a document/note on an ipad how can you tell when it was created and if it has been altered since?

    Unless you are using a third party app that provides that functionality, in iOS the only thing youcan access is the last edit/save date and time, which is fairly evident in the user interface for documents and notes. Some apps that handle MS Office files may provide that, but ican't say first hand.

  • How can I get the File Creation Date OR Last modification date of the incoming file in my message?

    I need the Last Modification Date and the File creation date of the consumed file in my message, is it possible to do that using a custom pipeline component in decode stage or any other way? The FILE namespace have File creation time that actually gives
    the time the file was dropped in receive location, not the actual creation time. Also this namespace doesn't have the Last Modification Date.

    Yes,
    As per MSDN, "File.FileCreationTime" - "Defines the time that the file was written to the folder that is monitored by the File receive
    adapter."
    So for File Modified DateTime, only option I can think of is create a custom file adapter (updating the File Adapter code from SDK ..\SDK\Samples\AdaptersDevelopment\File Adapter) and access the received file with the code something like the following, which
    you give you the Last Modified date
    string sLastModifiedDate = File.GetLastWriteTime(path).ToString();
    If there are any business requirements which drives you this, then this the only way I can think of. Because you can access the file properties only in adapter, when it passes through adapter file is handled as stream and you will only have context properties
    to access the file related properties.
    If you're looking for implement this for any audit purpose or for your any technical purpose, then you can suggest some alternate than using File updated datetime.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to import Filenames and File creation Date into Table..

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.
    You can also prepare dir command and then exeucte it by using XP_CMDSHELL. This gives you file name, modified date, creation date information.
    Please refer:
    https://sqljourney.wordpress.com/2010/06/08/get-list-of-files-from-a-windows-directory-to-sql-server/
    https://hernandezpaul.wordpress.com/2013/02/15/store-file-names-and-modified-dates-in-a-table-without-a-foreach-loop-task-sql-server-ssis/
    Cheers,
    Vaibhav Chaudhari
    [MCP],
    [MCTS], [MCSA-SQL2012]

  • Applescript for matching two files creation date

    Hello,
    I reopen here a question that I posted on another forum (macrumors):
    I have converted almost 1,000 video files from MPG1 to MOV in order importing them to Final Cut Pro (FCP can't import directly MPG1!).
    So I have TWO folders:
    Folder 1 with the original VideoXXXX.mpg1 files
    Folder 2 the converted VideoXXXX.mov files.
    The file names on both folders are the same. And the number of files in the two folders are the same.
    My problem is that the creation date of files in the Folder 2 is the "conversion" time (July 2012) instead the original creation time (from 2005 to 2010).
    When imported to FCP, I need the creation time. The name doesn't include the time, so I don't know the file date looking only at the file name.
    I need an Apple Script for changing the creation date to the files in Folder 2 files matching the creation date on the Folder 1 files.
    - For file n on Folder 1, take name and creation date
    - Look for the same file name on Folder 2
    - Set creation date of file on Folder 2 to Creation date of original file
    I have seen that it can be made with the "touch" command, but I'm new to applescripting and any help would be very appreciated!!
    Thanks

    Wooow...
    How many helping responses! Thanks to you all.
    I am trying the first sugested solution.
    I have tried adding "file" to theOriginalFile twtwtw script.
    (name of file theOriginalFile)
    But the error persists (I changed -5 to -4, as the extension is only MPG)
    tell application "System Events"
      get POSIX path of every file of folder "HD Mac:users:fhuet:Desktop:Vid1" whose name extension = "MPG"
      --> {"/Users/fhuet/Desktop/Vid1/MOV04859.MPG", "/Users/fhuet/Desktop/Vid1/MOV04860.MPG", "/Users/fhuet/Desktop/Vid1/MOV04882.MPG", "/Users/fhuet/Desktop/Vid1/MOV04905.MPG", "/Users/fhuet/Desktop/Vid1/MOV04906.MPG"}
      get creation date of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
      --> date "viernes, 31 de diciembre de 2004 23:39:00"
      get text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
      --> error number -1720 from text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
    Resultado:
    error "System Events ha detectado un error: Espectro no válido." number -1720 from text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
    If I do
    set strippedFileName to name of file theOriginalFile
    I got:
    tell application "System Events"
      get POSIX path of every file of folder "HD Mac:users:fhuet:Desktop:Vid1" whose name extension = "MPG"
      --> {"/Users/fhuet/Desktop/Vid1/MOV04859.MPG", "/Users/fhuet/Desktop/Vid1/MOV04860.MPG", "/Users/fhuet/Desktop/Vid1/MOV04882.MPG", "/Users/fhuet/Desktop/Vid1/MOV04905.MPG", "/Users/fhuet/Desktop/Vid1/MOV04906.MPG"}
      get creation date of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
      --> date "viernes, 31 de diciembre de 2004 23:39:00"
      get name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
      --> "MOV04859.MPG"
    So it's OK. After that, obviously, it gives another error.
    So, the problem is with the instruction
    set strippedFileName to text 1 thru -4 of (name of file theOriginalFile). There must be a sintaxis error on that. It says "ESPECTRO NO VALIDO" ERROR
    I keep trying and will try the other options.
    But I'd like to test all of them, as it's the best way to well understand and study the lenguage.
    Thanks again.

  • Get a files creation date with UTL_FILE or DBMS_BACKUP_RESTORE.SEARCHFILES

    Hello gurus!
    I have a number of files in the filesystem and i need to find out the names and creation dates of these files. Please do not suggest Java as that is not an option.
    So far i get the names of the files from the SYS side with a procedure that I can call from the user side. The procedure returns an XML string:
    create or replace procedure list_directory(directory varchar2, retResultSet OUT VARCHAR2) is
         ns          VARCHAR2(1024);
         v_directory VARCHAR2(1024);
    BEGIN
          v_directory := directory;
          SYS.DBMS_BACKUP_RESTORE.SEARCHFILES(v_directory, ns);
          retResultSet := '<list>';
          FOR each_file IN (SELECT fname_krbmsft AS name FROM x$krbmsft) LOOP
              --DBMS_OUTPUT.PUT_LINE(each_file.name);
              retResultSet := retResultSet  || '<file>' ||each_file.name|| '</file>';
          END LOOP;
          retResultSet := retResultSet || '</list>';
    end list_directory;Question 1:
    Something like each_file.creation_date would be perfect but it seems like the filename is the only attribute available here from x$krbmsft. Am i wrong? Any other way on the SYS side to get the date?
    Question 2:
    On the users side i could use UTL_FILE to get filesize but not much more valuable information. Can i get the creation date somehow with UTL_FILE or similar?
    Any help is appreciated!

    Anyone got any ideas?Maybe a method as described in Re: Read all file names from Directory. may help (Shows also FileCreationDate).

  • To get the file creation date

    Hi All,
            Can anyone tell me how to get the creation date of a file in SAP Directory.
      Is there any function module to do so.
    Thank You.

    I don't believe one exists. You may need to do a JNI call to get this.

  • How do you change file creation dates

    Is there a way to edit file creation and modification dates in a file?  Thanks.

    In the Terminal:
    man touch
    setfile

  • Converting a File to PDF and Keeping the Files Original Date

    I've got Acrobat Pro XI and I'm using the Action Wizard to covert a folder of TIF files to PDFs.  The action works but, I'm needing for the newly created PDF files to have the same date on them as the original files.  Can anyone help with this?

    You can set the date on the file (not with Acrobat but specialist tools may exist), but the creation date shown in Acrobat properties is stored in the file is defined to be when the PDF was created, not the original file.

  • How do I keep the original creation date showing? The date seems to change when I edit.

    I don't know if there is a setting somewhere to maintain the original creation date when a document is edited. What is happening is that when I edit a document, even if it was created months ago, the creation date is often changed (though strangely not always). I know most settings are document specific, so perhaps I have unwittingly unchecked a setting on the ones that changed. I should note that previous version are being maintained through my back up and do show up in the list when I select Revert to from the File menu. But the creation date shows the date of the most recent edit on those files.
    I use a MacBook Pro and an iPad to create and edit documents and am using the most recent version on both.
    Thanks, in advance.
    Shel

    "actual original creation date must have been changed. I don't believe there is anything to fix it"
    You can change the creation date using Terminal application:
    touch -t YYYYmmDDhhSS /path/to/file
    IE:
    touch -t 200001010101 ~/Untitled\ 2013-10-11\ at\ 8.15.04\ PM.png
    This produces (from the screenshot I just took):
    To change the modification date only, it would be touch -mt ....etc
    As to why this is occuring, what is the creation date showing....//1969?

  • Standby database not configure while keep database files in different place

    Dear Friends ,
    I have to successfully configured "PHYSICAL STANDBY DATABASE" within the TWO databases ("PRIM" and "STAN" Database) when I kept datafile, controlfile and redolog files in the same location (like, "/u01/app/oracle/oradata/prim" location .
    In this successful configuration , I have to add the below two lines into the initprim.ora and initstan.ora both server respectively ...
    initprim.ora:
    ========
    DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/stan','/u01/app/oracle/oradata/prim'
    LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/stan','/u01/app/oracle/flash_recovery_area/prim'
    initstan.ora:
    ========
    DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/prim','/u01/app/oracle/oradata/stan'
    LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/prim','/u01/app/oracle/flash_recovery_area/stan'Now , in second scenario , I have to change Primary database server's datafile, controlfile and redolog file in the below folder :
    controlfile --> "/u01/app/oracle/oradata/prim/ctrlfile"
    redologfile --> "/u01/app/oracle/oradata/prim/redofile"
    datafile --> "/u01/app/oracle/oradata/prim/datafile"
    Similarly I have to create same folder in my STAN database server accordingly . and also add the above lines in same way :
    initprim.ora:
    ========
    DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/stan','/u01/app/oracle/oradata/prim'
    LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/stan','/u01/app/oracle/flash_recovery_area/prim'
    initstan.ora:
    ========
    DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/prim','/u01/app/oracle/oradata/stan'
    LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/prim','/u01/app/oracle/flash_recovery_area/stan'Keeping the above situation when I run the below command in STAN database server :
    [oracle@test ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 15 23:15:43 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1220772 bytes
    Variable Size 163581788 bytes
    Database Buffers 427819008 bytes
    Redo Buffers 7163904 bytes
    Database mounted.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    The Command execute successfully but in the alert log of the STAN database server ,I get the below error :
    Completed: alter database recover managed standby database disconnect from session
    Mon Nov 15 22:46:52 2010
    Clearing online redo logfile 1 complete
    Mon Nov 15 22:46:52 2010
    Errors in file /u01/app/oracle/admin/stan/bdump/stan_mrp0_3695.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/prim/redofile/redo02.log'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Mon Nov 15 22:46:52 2010
    Errors in file /u01/app/oracle/admin/stan/bdump/stan_mrp0_3695.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/prim/redofile/redo02.log'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3But I already created the above mention folder "'/u01/app/oracle/oradata/prim/redofile" successfully and the redo log files are also created there successfully , but I cannot understand why this error is showed ? And also no archivelogs are shifted from PRIM database server to STAN database server .
    Would u plz suggest me , why I cannot configure Physical Standby Database when I keep my database fles in the separate location ?
    help me plz ... ...

    Hi,
    I'm missing the steps you took renaming/moving the files on the primary.
    Since the location of datafiles is stored in the control file the controlfile of the standby might not know the new location yet.
    I suggest you read this http://www.cs.bris.ac.uk/maintain/OracleDocs/server.816/a76995/standby.htm#23603 and see if that helps
    Success,
    FJFranken

Maybe you are looking for