Moving database to different directory structure

HI folks,
I have a production DB on a production server and a copy of that as test DB on test server. In both DB all data files are in the same directory.
It was asked me to make a copy of production DB into test DB.
Both DBs are already created, but because of sotrage space problems, I will have to move data files to 2 distinct partitions on test server. What I wanna do is:
1 - stop production DB
2 - stop test DB
3 - copy production DB data files(that are all on the same directory) to test server. On this test server data files will be placed on two different partitions
4 - start production DB
5 - start test DB
The question is, what happens to files that are moved to different partitions? what should I do to make oracle starts without errors?
I do not want to use import/export because the DB is about 20GB and it would take too much time to use export/import.
Thank you in advance.
Alex

what happens to files that are moved to different partitions?After moving files to test machine, you can do the following (on test machine) :
1. SQL> startup mount
2. See original file paths by
SQL> select name from v$datafile;
3. for datafiles in different partitions :
SQL> alter database rename file '<original path>' to '<new path>';
4. SQL> alter database open;

Similar Messages

  • Standby database with different directory structure

    Hi,
    sorry to say that we are in desupported version due to some constraint.
    oracle version : 8.1.7.0.0.
    os:sun 5.9
    I need to create physical standby database with different directory structure:
    i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
    in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
    bash-2.05$ df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0       20G    14G   5.6G    72%    /
    /proc                    0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    fd                       0K     0K     0K     0%    /dev/fd
    swap                    11G    40K    11G     1%    /var/run
    dmpfs                   11G     0K    11G     0%    /dev/vx/dmp
    dmpfs                   11G     0K    11G     0%    /dev/vx/rdmp
    swap                    11G   656K    11G     1%    /tmp
    /dev/dsk/c1t0d0s3       25G    18G   6.8G    72%    /oracle
    /dev/vx/dsk/suportaldg/oracle1
                            12G    11G   1.1G    91%    /oracle1
    /dev/vx/dsk/suportaldg/oracle2
                            12G   8.1G   3.7G    69%    /oracle2
    /dev/vx/dsk/suportaldg/orapurge
                           200G   182G    17G    92%    /orapurge
    /dev/vx/dsk/suportaldg/oracle3
                            12G    10G   1.9G    85%    /oracle3
    /dev/vx/dsk/suportaldg/oracle4
                            12G    12G    58M   100%    /oracle4
    /dev/vx/dsk/suportaldg/oracle5
                           7.0G   5.9G   1.0G    86%    /oracle5
    /dev/vx/dsk/suportaldg/oracle6
                           7.0G   6.4G   564M    93%    /oracle6
    /dev/vx/dsk/suportaldg/oracle7
                            23G    23G   358M    99%    /oracle7
    /dev/vx/dsk/suportaldg/oracle8
                            13G    13G   165M    99%    /oracle8
    /dev/vx/dsk/suportaldg/oracle9
                            23G    22G   1.4G    94%    /oracle9
    /dev/vx/dsk/suportaldg/oracle10
                            12G  10.0G   1.9G    85%    /oracle10
    /dev/vx/dsk/suportaldg/oracle11
                            39G    36G   2.1G    95%    /oracle11
    /dev/vx/dsk/suportaldg/oracle12
                            39G    38G   1.1G    98%    /oracle12
    /dev/vx/dsk/suportaldg/oracle13
                            68G    65G   2.6G    97%    /oracle13
    /dev/vx/dsk/suportaldg/oracle14
                           200G   199G   1.3G   100%    /oracle14
    /dev/vx/dsk/suportaldg/oracle15
                           200G   196G   3.6G    99%    /oracle15
    /dev/vx/dsk/suportaldg/oracle16
                            70G    64G   5.5G    93%    /oracle16
    /dev/vx/dsk/suportaldg/oracle20
                           7.0G   6.4G   609M    92%    /oracle20
    /dev/vx/dsk/suportaldg/oracle50
                            28G    26G   2.0G    93%    /oracle50
    /dev/vx/dsk/suportaldg/oratranslog
                           185G   165G    19G    90%    /oratranslogso how i can create standby database with different directory structure, help is appreciated.
    Thanks
    Edited by: prakashdba on Mar 5, 2009 11:04 PM

    Looks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
    may be you can try something like this but i dont know whether it is supported or not
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5']

  • Restoring Rman backup on New Host with different directory structure

    Hi,
    I have a following scenario to clone the database.
    1. clone the database on new server
    2. source is non - ASM and target is ASM
    3. On source incremental level 0 backup taken on disk connecting to catalog, the backup is moved to target host to different directory structure
    4. source is running on 32-bit Linux two node Rac and Target is running on 64-bit Linux two node Rac
    I did the following steps and getting below error:
    1. I copied incremental Level 0 backup to target server(where we need to build new db) to different directory structure
    2. On target i created pfile and build the instance, as dbf file are in multiple locations in source i put following tow parameters in init.ora of target database
    *.db_file_name_convert =(/u02/oradata/app1p/,+QADATA2/udev/datafile),(/u03/oradata/app1p/,+QADATA1/udev/datafile),(/u12/oradata/app1p/,+QADATA1/udev/datafile,),(/u99/oradata/app1p/,+QADATA1/udev/datafile),(/u09/oradata/app1p/,+QADATA1/udev/datafile),(/u14/oradata/app1p/,+QADATA1/udev/datafile),(/u07/oradata/app1p/,+QADATA1/udev/datafile),(/u06/oradata/prod/,+QADATA1/udev/datafile'),(/u05/oradata/app1p/,+QADATA1/udev/datafile)
    *.log_file_name_convert =("/u99/oradata/app1p/","+QADATA2/udev/onlinelog/")
    3. connected to rman -->> started db in nomount -->> restored the controlfile --> cataloged the backup piece and then i am trying to restore
    All the above steps i did using the Doc id *How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]*
    script i am using is :
    RMAN> run {
    2> set until time "to_date('DEC/20/2010 05:30:00','Mon/DD/YYYY HH24:MI:SS')";
    3> allocate channel c1 device type disk;
    4> allocate channel c2 device type disk;
    5> allocate channel c3 device type disk;
    6> allocate channel c4 device type disk;
    7> set newname for datafile 1 to '+QADATA1/UDEV/DATAFILE';
    8> set newname for datafile 2 to '+QADATA1/UDEV/DATAFILE';
    9> set newname for datafile 3 to '+QADATA1/UDEV/DATAFILE';
    10> set newname for datafile 4 to '+QADATA1/UDEV/DATAFILE';
    11> set newname for datafile 5 to '+QADATA1/UDEV/DATAFILE';
    12> set newname for datafile 6 to '+QADATA1/UDEV/DATAFILE';
    13> set newname for datafile 54 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 63 to '+QADATA1/UDEV/DATAFILE';
    14> 15> set newname for datafile 67 to '+QADATA1/UDEV/DATAFILE';
    16> set newname for datafile 68 to '+QADATA1/UDEV/DATAFILE';
    17> set newname for datafile 50 to '+QADATA1/UDEV/DATAFILE';
    18> set newname for datafile 39 to '+QADATA1/UDEV/DATAFILE';
    19> set newname for datafile 38 to '+QADATA1/UDEV/DATAFILE';
    20> set newname for datafile 7 to '+QADATA1/UDEV/DATAFILE';
    21> set newname for datafile 9 to '+QADATA1/UDEV/DATAFILE';
    22> set newname for datafile 8 to '+QADATA1/UDEV/DATAFILE';
    23> set newname for datafile 11 to '+QADATA1/UDEV/DATAFILE';
    24> set newname for datafile 10 to '+QADATA1/UDEV/DATAFILE';
    25> set newname for datafile 66 to '+QADATA1/UDEV/DATAFILE';
    26> set newname for datafile 48 to '+QADATA1/UDEV/DATAFILE';
    27> set newname for datafile 47 to '+QADATA1/UDEV/DATAFILE';
    28> set newname for datafile 12 to '+QADATA1/UDEV/DATAFILE';
    29> set newname for datafile 13 to '+QADATA1/UDEV/DATAFILE';
    30> set newname for datafile 14 to '+QADATA1/UDEV/DATAFILE';
    31> set newname for datafile 15 to '+QADATA1/UDEV/DATAFILE';
    32> set newname for datafile 16 to '+QADATA1/UDEV/DATAFILE';
    33> set newname for datafile 18 to '+QADATA1/UDEV/DATAFILE';
    34> set newname for datafile 17 to '+QADATA1/UDEV/DATAFILE';
    35> set newname for datafile 19 to '+QADATA1/UDEV/DATAFILE';
    36> set newname for datafile 69 to '+QADATA1/UDEV/DATAFILE';
    37> set newname for datafile 60 to '+QADATA1/UDEV/DATAFILE';
    38> set newname for datafile 59 to '+QADATA1/UDEV/DATAFILE';
    39> set newname for datafile 55 to '+QADATA1/UDEV/DATAFILE';
    40> set newname for datafile 53 to '+QADATA1/UDEV/DATAFILE';
    41> set newname for datafile 44 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 22 to '+QADATA2/UDEV/DATAFILE';
    42> 43> set newname for datafile 21 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 20 to '+QADATA2/UDEV/DATAFILE';
    44> 45> set newname for datafile 72 to '+QADATA2/UDEV/DATAFILE';
    46> set newname for datafile 70 to '+QADATA2/UDEV/DATAFILE';
    47> set newname for datafile 65 to '+QADATA2/UDEV/DATAFILE';
    48> set newname for datafile 64 to '+QADATA2/UDEV/DATAFILE';
    49> set newname for datafile 57 to '+QADATA2/UDEV/DATAFILE';
    50> set newname for datafile 56 to '+QADATA2/UDEV/DATAFILE';
    51> set newname for datafile 49 to '+QADATA2/UDEV/DATAFILE';
    52> set newname for datafile 45 to '+QADATA2/UDEV/DATAFILE';
    53> set newname for datafile 26 to '+QADATA2/UDEV/DATAFILE';
    54> set newname for datafile 25 to '+QADATA2/UDEV/DATAFILE';
    55> set newname for datafile 24 to '+QADATA2/UDEV/DATAFILE';
    56> set newname for datafile 23 to '+QADATA2/UDEV/DATAFILE';
    57> set newname for datafile 27 to '+QADATA2/UDEV/DATAFILE';
    58> set newname for datafile 28 to '+QADATA2/UDEV/DATAFILE';
    59> set newname for datafile 29 to '+QADATA2/UDEV/DATAFILE';
    60> set newname for datafile 30 to '+QADATA2/UDEV/DATAFILE';
    61> set newname for datafile 73 to '+QADATA2/UDEV/DATAFILE';
    62> set newname for datafile 32 to '+QADATA2/UDEV/DATAFILE';
    63> set newname for datafile 31 to '+QADATA2/UDEV/DATAFILE';
    64> set newname for datafile 34 to '+QADATA2/UDEV/DATAFILE';
    65> set newname for datafile 33 to '+QADATA2/UDEV/DATAFILE';
    66> set newname for datafile 35 to '+QADATA2/UDEV/DATAFILE';
    67> set newname for datafile 36 to '+QADATA2/UDEV/DATAFILE';
    68> set newname for datafile 37 to '+QADATA2/UDEV/DATAFILE';
    69> set newname for datafile 51 to '+QADATA2/UDEV/DATAFILE';
    70> set newname for datafile 43 to '+QADATA2/UDEV/DATAFILE';
    71> set newname for datafile 40 to '+QADATA2/UDEV/DATAFILE';
    72> set newname for datafile 41 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 71 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 58 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 52 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 46 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 42 to '+QADATA2/UDEV/DATAFILE';
    73> 74> 75> 76> 77> 78> set newname for datafile 62 to '+QADATA2/UDEV/DATAFILE';
    79> set newname for datafile 61 to '+QADATA2/UDEV/DATAFILE';
    80> set newname for datafile 74 to '+QADATA2/UDEV/DATAFILE';
    81> restore database;
    82> switch datafile all;
    83> recover database;
    84> alter database open resetlogs;
    85>
    86> release channel c1;
    87> release channel c2;
    88> release channel c3;
    89> release channel c4;
    90> }
    Getting the following error, copied lines from the error i am getting.
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 27-DEC-10
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/27/2010 08:09:08
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 74
    RMAN-06100: no channel to restore a backup or copy of datafile 73
    Please advice...
    Thanks,
    Tanveer Mohammed

    If you would like, please refer the link:-
    http://gavinsoorma.com/2010/04/creating-an-asm-duplicate-database-from-a-non-asm-database/

  • How duplicate ora11 on windows to another host with different directory structure

    Hi,
    I need help.
    I want to duplicate db (11.2) running on windows from server A to Server B
    Directory structures on server A and Server B are different;
    my steps
    on server A
    1.backup database plus archivelog delete input;
    2.insert into table t values(1);
    3.commit;
    4.backup archive log all;
    On Server B
    5.copy backup and archive logs from server A to server B (c:\backup\temp)
    6.create folders C:\oracle\oradata\bamboo
    7.oradim –new –sid bamboo -- (verified service is running)
    8. created pfile.ora with param (db_name=bamboo)
    9.SET oracle_SID=bamboo
    10.sqlplus  /as sysdba
    11.startup nomount pfile='(c:\backup\temp\pfile.ora'
    12.C:\oracle\product\11.2.0\db_1\database>rman auxiliary /
    result
    ..connected to auxiliary database: SBDBT02W (DBID=186082786, not open)  --could it be the fact that I tried to execute code bellow?
    My understanding at this point I should be connected to 'bamboo' -- my new database, what steps did I miss?
    I expect
    ..connected to auxiliary database: bamboo ( not mounted)
    bellow is code that I was going to run on Server B
    RUN
      SET NEWNAME FOR DATAFILE 1 TO 'C:\oracle\oradata\bamboo\SYSTEM01.DBF';
      SET NEWNAME FOR DATAFILE 2 TO 'C:\oracle\oradata\bamboo\SYSAUX01.DBF';
      SET NEWNAME FOR DATAFILE 3 TO 'C:\oracle\oradata\bamboo\UNDOTBS01.DBF';
      SET NEWNAME FOR DATAFILE 4 TO 'C:\oracle\oradata\bamboo\USERS01.DBF';
      SET NEWNAME FOR DATAFILE 5 TO 'C:\oracle\oradata\bamboo\EXAMPLE01.DBF';
      DUPLICATE DATABASE TO bamboo
      UNTIL TIME "TO_DATE('11/24/2013 13:18:02', 'MM/DD/YYYY HH24:MI:SS')"
      BACKUP LOCATION 'C:\backup\temp'
      NOFILENAMECHECK;
    when I executed it on Server B ,I got following error
    Starting Duplicate Db at 25-NOV-13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/25/2013 11:27:36
    RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE
    command
    I looking for steps by step instruction for duplicating db to another windows host with different directory structure.
    Thank you
    Alex

    The topic, "Duplicating a Database on a Remote Host with a Different Directory Structure" can be found at http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006672
    This information should provide you the step by step process to follow including when on Windows.
    HTH -- Mark D Powell --

  • Database problem: corrupted directory structure

    I have just installed Lightroom 1.3.1 on a PowerBook G4 with MacOS 10.4.11 and 1 GB RAM.
    Then i import RAW pictures from cdrom and generate one directory for every cdrom.
    When i have imported around 2000 pictures in 12 or 13 directorys then i have something
    like a database crash:
    The pictures are still in the system, but some directorys disappeared and the pictures
    are relocate to the remaining directorys. This effect is repeatable.
    A restore of the database backup doesn't help.
    Is this problem known? Any solution?
    I have to import 10000 pictures ...
    B.t.w.: The database backup is not a database backup, i think. Only a catalog file is backupped.
    Is this right?

    Detlev-
    Yes, the "database" is the .lrcat file. A size of 30 Megs sounds o.k. for 2000 images.
    I don't know why you crash, but with such an import job, I'd be inclined to copy images from the CD to desktop, move the folder into the place you want, then run LR. You can do it sequentially, so you're copying to DT while LR is importing the previous.
    It is trying to build previews of the previous file while you're telling it to import more. Maybe give it more digestion time?

  • Creating a Standby Database with the Same Directory Structure

    Hello gurus,
    I am self-learning the feature Oracle Data Guard, so I am testing it on Oracle 10g R2.
    At Oracle documentation there is a section F.4.: Creating a Standby Database with the Same Directory Structure*, that explains how to create a standby database with RMAN but there is something that I don´t understand:
    In the standby server, I created a database with the SID equal to production database* with the objetive to have the same directory structure, but when I try to startup nomount the standby database with pfile appear this expected error:
    ORA-16187: LOG_ARCHIVE_CONFIG contains duplicate, conflicting or invalid attributes
    So my question is: Is possible have the Same Directory Structure on both: Production and StandBy server?
    Thanks in advanced.

    Uwe and mseberg: thanks for your quick answers
    I have a doubt: How can you have the same directory structure if you have differents SIDs?, for example if you follow the OFA suggestions you would must have:
    On Production server: */u01/app/oracle/oradata/PRIMARY/system.dbf*
    On StandBy server: */u01/app/oracle/oradata/STANDBY/system.dbf*
    Or you created the directory structure manually on StandBy server? For example replacing the string STANDBY* to PRIMARY* before create the database using dbca.
    Do you understand my doubt? Excuse me for my english.
    Thanks.

  • How to integrate different tables structures from different databases?

    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    Thanks

    Arun Rajesh wrote:
    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    ThanksWelcome to Forum!!!
    Please elaborate your question.
    Arun Rajesh wrote:
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.1. What are the ATTRIBUTES?
    Arun Rajesh wrote:
    The structure of tables in both the database are different but they carry same attributes in same relation.2. Post the Table Structures.
    Arun Rajesh wrote:
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?3. What is the end result that you desire? A sample output shall help in our understanding.
    PS:- Please go through this to understand SQL and PL/SQL FAQ.
    Regards,
    P.

  • Duplicating directory structures on different machines

    I'm trying to mirror directory structures on two different machines.
    Namely so that Premiere project files can be shared withotu having to relink the media paths.
    Machine A has 2 Volumes: /Volumes/System/ (startup disk) and /Volumes/Media/
    Machine B has 1 volume: /Volumes/Media/
    Maybe you see the problem already.
    On Machine A the true path to a file on Media would be: /Volumes/Media/filename
    On Machine B the true path to a file on Media would be : /filename
    I take it this is so, because Machine B's 'Media' is the startup disk, whereas Machine A's startup disk is 'System'.
    So on Machine B,  /Volumes/Media is a link to /. (ie: Media -> /)
    Therefore whenever an absoulte path is saved in the premiere file, they are different. Machine A will always be looking in /Volumes/Media/ and Machine B will also be looking in /Media/.
    Any ideas on how to make this work? Many thanks for any help.
    C

    Ok, I think I understand what you are saying. To be clear, I'm not dumping a ton on files in /, I was just being too brief in my example.
    I'm thinking the best quick solution for this would be to put the folder inside of /Users/Shared/FolderName/
    That way it is not username dependant, and should work no matter the number of drives installed or the names.
    Ideally I would like these files to live on the non-startup/system disk (for the machine that has it), but I think this will do for now.

  • PC - Moving catalog and directory structure to a new HD

    Having filled my internal HD with images, I went out and purchased a new and bigger external hard drive. I want to move my images to the new drive while preserving both my directory structure and catalog information. From what I can see of the "move" command in PS Elements, it moves selected images to a new directory, but that's not what I want to do. I probably have a hundred named folders and I would like to keep the images in folders of the same name on the new drive. I don't want to have to move one directory at a time. Copying through the file manager can obviously do this, but I don't know if it will preserve my tags, etc.
    Is there a straightforward way to move files from one drive to another that preserves both directory structure and catalog information?
    Thanks in advance.
    Artie

    Humm, this is strange-Version 4 is supposed to move entire folders; Version 3 did not do this.
    Okay, Plan B.
    Open Elements and do a Full Backup and point to your external hard drive.
    When this has finished running, do a Restore. You should get a pop up asking if you want to use the existing folder structure. Answer Yes and point to your External HardDrive (EHD). This should copy your photos and the Organizer file over to your (EHD).
    Now look in Preferences under Files (I think, don't have program open) and you will see one value for where to store photos and one for Organizer location. Change these to your EHD so future photos and tags/collections are written to the EHD.
    Verify all your tags and collections came over correctly.
    If you are satisfied the transfer went correctly, you can erase your photos from your hard drive to free up space. You can also delete the Organizer file if you want.
    Option 2-Use Windows Explorer and move all the files from your hard drive to your EHD. This will keep your folder structure, but will cause havoc with Organizer.
    Open Organizer and do File>Reconnect All Missing. It will be all of them. You should have an option to change the drive to your EHD. It may take quite a while to reconnect all of them, but since all the folders/files are the same name it should find them all.
    If you wish, you can change the drive location manually. However, I've found many users 1) do not have MS Access on their machine and 2) are not experienced in using the program. If you are comfortable with the program, let me know and we'll get some directions.
    Finally, I see a copy of the post in the Technical side. Since most forum users read both sides of this forum, I'm going to reference this thread in that post so anyone can see what we have tried so far.

  • Moving in directory structure through servlet

    Hi everyone,
    I am currently using this directory structure and have 2 web applications "myweb1" and "myweb2".
    /myweb1/jsp pages
    /myweb1/WEB-INF
    /myweb1/WEB-INF/classes
    /myweb1/WEB-INF/classes/myservlet
    /myweb1/WEB-INF/lib
    /myweb2/display.jsp
    /myweb2/WEB-INF
    /myweb2/WEB-INF/classes
    /myweb2/WEB-INF/lib
    I have a servlet named "myservlet" in WEB-INF/classes directory(myweb1 application) as shown above. I have following entries in my web.xml file of "myweb1" webapplication.
    <servlet>
    <servlet-name>myservlet</servlet-name>
    <display-name>myservlet</display-name>
    <servlet-class>com.abc.servlet.myservlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myservlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    This whole application is running fine. Now I need to forward user from "myservlet" to "display.jsp" page in myweb2 application.
    I am using this line in "myservlet" file.
    getServletConfig().getServletContext().getRequestDispatcher("../myweb2/display.jsp").forward(request, response);
    however this line is not working. Can anyone suggest me how to access display.jsp file from myservlet.
    Thanks.
    Rahul

    As long as everything is running within the same application server instance, you should be able to access both contexts. The key is using the getContext(String URI) method of the ServletContext. From the servlet in webapp1:RequestDispatchter dispatch =
        getServletContext().getContext("/webapp2").getRequestDispatcher("display.jsp");You may have to fiddle with the value in the getContext call (it should be the application context of webapp2) but you should be able to get this to work.

  • Directory structure mirroring

    I have my mp3:s neatly organized in a directory structure on
    my disk. There's where I'd like to add and remove albums,
    and would like the itunes music library to automatically
    update when I make changes.
    I.e. if I add albums on my disk, I'd like them to appear in itunes (and on the ipod when syncing).
    And if I remove albums from my disk I'd like them to
    automatically disappear form itunes and the ipod.
    Can I make Itunes work like this? I dont like to make all
    changes twice, i.e. deleting both from the disk and then in
    itunes. This gets especially irritating when moving many
    albums.
    Ideas? Cheers / Tom
    Dell XPS PC   Windows XP Pro  

    You need to create a form and assign it to the reconciliation process. In the form, you need waveset.organization set to where you want the user objects placed. By default, waveset.organization is set to just "Top". You can get the DN, parse it into a list and write the xml code to use the list to place each in a different virtual organization.
    Start off simple, say create a container called Top:newusers. Take a copy of Empty Form and save it as orgEmpty Form or something. Define a field waveset.organization and just set its value to "Top:newusers". Then in the resource, set the reconciliation form to your new form.
    Try this, once you see new ids show up in Top:newusers, you then can enhance the logic to be more sophisticated in placing objects. That is, parse the DN into a list and walk the list for a IDM waveset.organization value.
    BTW, a good question to ask prospective IDM so called experts. Of 8 or so, I only met one that new how to do this efficiently.

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Changing file name and directory structure for use outside of iPhoto

    Hi,
    I was wondering if its possible to get iPhoto to name the files from my library to reflect the names that I've given the files in iPhoto. I'm thinking along the lines of iTunes, where its possible to chose in the preferences how the files are named, and there is some logical directory structure, such as "Artist/Album/01 - Track 1.mp3". These file names are updated to reflect any changes made in iTunes.
    I've heard the argument that I shouldn't ever want to do anything with the files themselves because iPhoto can do everything I would ever want to do, but I want to organize the files so that not all of my organizational work is lost if I decide to stop using iPhoto and transition to a different system. Any suggestions would be appreciated.
    Thanks,
    Adrian

    Adrian
    No it's not possible.
    You can rename the files before bringing them into iPhoto, you can rename them with the titles on Export (Use the File -> Export command, it gives you the option to use the title and filename) but when it's inside iPhoto you cannot rename the files.
    However, all is not entirely lost. Using Film Rolls (View -> Film Rolls) you can move pics between rolls, name rolls, create rolls and so on, as long as you do this in the iPhoto Window, and these changes will be reflected in the iPhoto Library Folder.
    If at some point you decide to chuck iPhoto then (if the new app won't read iPhoto database files) you can simply export each album you've created to a Folder (using the File -> Export command as I suggest above), this, along with exporting slideshows will preserve your organisational efforts.
    The iTunes database has a rather simple job to do: track a file and it's assorted metadata. iPhoto, on the other hand, tracks a file and it's assorted metadata, plus a Modified version, plus a thumbnail. If you consider what happens when you edit a pic, for instance - Copy Original, perform edit, save modified version, remove Original Thumbnail and then create new one - you can see it's a rather more complex job.
    Finally, the standard warning: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss. Any changes you make must be made in the iPhoto Window.
    Need more info? by all means post again.
    Regards
    TD

  • Iphoto directory structure and multiple copies

    I want to manage the directory structure of my photos because I use them with applications and want to put them where I want to. Thus, I never cared for iPhoto 08 and how it organized the directory structure how it wanted to.
    Additionally, it seems iPhoto 08 kept at least 1, sometimes 2 copies of the files. I'd rather have it make a backup only when the original got modified so it doesn't chew up twice as much disk space as needed.
    Is there any change in iPhoto 09 for these issues?
    I'm currently using Picasa, which I was thrilled when they released the mac version, and it pretty much works the way I want to work. But I'd love to try iPhoto again if its changed.

    I want to manage the directory structure of my photos because I use them with applications and want to put them where I want to. Thus, I never cared for iPhoto 08 and how it organized the directory structure how it wanted to.
    Then iPhoto is not for you - it is a photo manager and you want a file manager - iPhoto's speed and power comes from being an SQL database and as such there are no user serviceable parts in its library - it depends on the content and structure of the library and if you modify it then it is lost and can no longer operate
    Additionally, it seems iPhoto 08 kept at least 1, sometimes 2 copies of the files. I'd rather have it make a backup only when the original got modified so it doesn't chew up twice as much disk space as needed.
    iPhoto always keeps the original photo as imported unchanged and make a very small display thumbnail of each photo - if you make any modifications of any sort to a photo then it creates a modified version - each of these is different and there are no backups of photos created by iPhoto - you must do that yourself
    Is there any change in iPhoto 09 for these issues?
    Issues? There is no change in the way iPhoto works - they are not issues but intentional design that work well and provide great poser to the user for managing and finding photos
    I'm currently using Picasa, which I was thrilled when they released the mac version, and it pretty much works the way I want to work.
    Glad you found a program that meets your needs - iPhoto does not
    LN

  • Apps Directory Structure

    Hi,
    With the help of many good posts on this forum I got 11.5.10.2 Apps running on Suse Linux 9.0. I installed Vision Demo database and the installation location is
    /opt/oracle
    under this directory following directories have been created by rapidinstall
    visappl
    viscomn
    visdata
    visdb
    visora
    Could someone please educate me about this directory structure.
    Also where should my environment variables like ORACLE_BASE and ORACLE_HOME point, which environment files should I put these env variables so that these get applied after reboot automatically.
    Thanks in advance.
    Ravi Singh
    Message was edited by:
    Ravi-2006

    Hi Ravi
    Let me answer to your query...
    What all i understand you want to know the file structure, as you have installed vission DB thus
    visappl - APPL_TOP
    viscomn - COMMON_TOP
    visdata - data_top (data top for appl utilies 806 home)
    visdb - database
    visora - ora_top
    There are 2 oracle home
    1) 9i oracle_home which I feel must be -- visdb
    and
    2) 806 oracle home which is visdata
    8.0.6 oracle home is ussed for apps utlities adpatch/adclone etc
    when you source different environment file you then see the difference
    FYI
    appl_top env file --> $APPL_TOP APPS<SID>_server.env
    let me know if you still have doubt
    [email protected]
    +9810285180

Maybe you are looking for

  • Error while generating Work Order

    I have a problem while generating Work orders in SNC. I set the configuration as belows. <General setting for Work Order generation> 1.Granularity -> Work Order per Purchase Order Item 2.Create WOs with Report -> Check 3.Publish Work Order Upon Creat

  • How to use a CTE in a CASE statement?

    Hi everyone, I'm trying to use a CTE in a CASE statement and getting error. In fact, I'm not sure how to use a CTE in this case and this is the first time I'm using a CTE. I managed to build a CTE successfully but, failed to incorporate it in the CAS

  • Please help!!!! dataload problems for G/L

    Hi everyone I could really need your help with this. I have to get a Greek General Ledger dataload into SAP. Unfortunately it contains Greek chracters in the excel file and I copy and paste the entries into notepad and save it as Unicode. When I try

  • How can I combine my albums?

    I have a good amount of albums that are by one artist, but many songs have guest artists and iTunes separates those songs into a seperate album. Is there any way to prevent this without having to change the songs with the guest artists to just have t

  • ESS Configuration with ECC 5.0

    Hi I am trying to configure ESS with ECC 5.0 as the HR server My J2EE system is WAS 7.0 with EP 7.0 and patch level 12. I am getting the following error when I am trying to get the ESS pages in EP com.sap.tc.webdynpro.progmodel.context.ContextConfigu