PDB Directory Structure with OMF

If one create a PDB using Oracle Managed Files (OMF) the directory structure for the files are using the GUID instead of the PDB Name. Is there any chance to change this? It's very difficult to find out which file belongs to which PDB if you have serveral PDBs up and running.

rp0428 wrote:
If one create a PDB using Oracle Managed Files (OMF) the directory structure for the files are using the GUID instead of the PDB Name. Is there any chance to change this? It's very difficult to find out which file belongs to which PDB if you have serveral PDBs up and running.
What value of DB_CREATE_FILE_DEST are you using? Just set it to where you want the files created for the PDB.
http://docs.oracle.com/cd/B28359_01/server.111/b28310/omf003.htm#i1006430
When creating a tablespace, either a permanent tablespace or an undo tablespace, the DATAFILE clause is optional. When you include the DATAFILE clause the filename is optional. If the DATAFILE clause or filename is not provided, then the following rules apply:
  If the DB_CREATE_FILE_DEST initialization parameter is specified, then an Oracle-managed datafile is created in the location specified by the parameter.
Here is a simple example:
SQL> alter system set db_create_file_dest=’/u01/app/oracle/oradata/myDir/myNewPDB′;
System altered.
SQL> create pluggable database myNewPDB from myOldPDB;
Pluggable database created.
You can't control the actual filenames when using OMF, only the destination folder.
Edited by: rp0428 to fix typo
Your comment about the optional parameter DATAFILE is only valid if you don't want to change any of the default values for size, extendsize and maxsize. As I don't like "UNLIMITED" for the maxsize I have to specify DATAFILE according to the documentation:
Oracle 12c Database Administrator's Guide 12c: "However, if in your DATAFILE clause you override these defaults by specifying a SIZE value (and no AUTOEXTEND clause), then the data file is not autoextensible."
Your example makes the directory structure even more complex: Oracle always adds the name of the database and the GUID to the directory. So for your example you end up with the following directory structure:
/u01/app/oracle/oradata/myDir/myNewPDB/<CDB_NAME>/<GUID>
Her's an example:
SQL> ALTER SYSTEM SET db_create_file_dest='/u02/oradata/JO3';
SQL> CREATE PLUGGABLE DATABASE JO3 ...
SQL> SELECT name FROM v$datafile WHERE CON_ID=7;
NAME
/u02/oradata/JO3/CJOHANN/F23385330E6F7CE2E043411E10ACD344/datafile/o1_mf_system_9hpk1l9f_.dbf
/u02/oradata/JO3/CJOHANN/F23385330E6F7CE2E043411E10ACD344/datafile/o1_mf_sysaux_9hpk1l9t_.dbf

Similar Messages

  • Making a Directory Structure with JTree.

    Hello,
    Can anyone boss here help me to code to make a
    File System Directory structure through JTree?
    The outlook should be like the Windows Explorer...
    From : [email protected]

    * HarishTree.java
    * Created on September 7, 2004, 2:56 PM
    * @author 120002314
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.io.File;
    import java.awt.event.ActionListener;
    import javax.swing.JToolBar;
    import java.lang.System;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import javax.swing.filechooser.FileSystemView;
    public class HarishTree {
    public static void createAndShowGUI() {
    //creating a tree with drives in the toolbar
    TreeBar bar = new TreeBar();
    JScrollPane scrollpane = new JScrollPane(bar.tree);
    JToolBar toolbar = bar.CreatingTreeBar();
    JPanel panel = new JPanel(new BorderLayout());
    panel.add(toolbar);
    // Display it all in a window and make the window appear
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("FileExplorer");
    frame.getContentPane().add(scrollpane, "Center");
    frame.getContentPane().add(panel,BorderLayout.NORTH);
    frame.setSize(400,600);
    frame.setVisible(true);
    frame.setResizable(false);
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    java.lang.System.gc();
    * The methods in this class allow the JTree component to traverse
    * the file system tree and display the files and directories.
    class FileTreeModel implements TreeModel {
    // We specify the root directory when we create the model.
    protected JFile root;
    public FileTreeModel(){}
    public FileTreeModel(JFile root) { this.root = root; }
    // The model knows how to return the root object of the tree
    public Object getRoot() { return root; }
    // Tell JTree whether an object in the tree is a leaf
    public boolean isLeaf(Object node) {  return ((JFile)node).isFile(); }
    // Tell JTree how many children a node has
    public int getChildCount(Object parent) {
    String[] children = ((JFile)parent).list();
    if (children == null) return 0;
    return children.length;
    // Fetch any numbered child of a node for the JTree.
    // Our model returns File objects for all nodes in the tree. The
    // JTree displays these by calling the File.toString() method.
    public Object getChild(Object parent, int index) {
    String[] children = ((JFile)parent).list();
    if ((children == null) || (index >= children.length)) return null;
    return new JFile((JFile)parent,children[index]);
    // Figure out a child's position in its parent node.
    public int getIndexOfChild(Object parent, Object child) {
    String[] children = ((File)parent).list();
    if (children == null) return -1;
    String childname = ((File)child).getName();
    for(int i = 0; i < children.length; i++) {
    if (childname.equals(children)) return i;
    return -1;
    // This method is invoked by the JTree only for editable trees.
    // This TreeModel does not allow editing, so we do not implement
    // this method. The JTree editable property is false by default.
    public void valueForPathChanged(TreePath path, Object newvalue) {}
    // Since this is not an editable tree model, we never fire any events,
    // so we don't actually have to keep track of interested listeners
    public void addTreeModelListener(TreeModelListener l) {}
    public void removeTreeModelListener(TreeModelListener l) {}
    class TreeBar implements ActionListener{
    public JTree tree = new JTree();
    public File[] roots = File.listRoots();
    JToolBar toolbar = new JToolBar();
    public TreeBar(){
    FileTreeModel model = new FileTreeModel(new JFile(System.getProperty("user.home")));
    tree.setModel(model);
    tree.setCellRenderer(new MyRenderer());
    public JToolBar CreatingTreeBar(){
    for(int i=0;i<roots.length;i++){
    JButton button = new JButton(roots[i].getPath(),new MyRenderer().inicon);
    button.addActionListener(this);
    button.setActionCommand(roots[i].getPath());
    toolbar.add(button);
    toolbar.setFloatable(false);
    toolbar.setRollover(true);
    return(toolbar);
    public void actionPerformed(java.awt.event.ActionEvent e) {
    FileTreeModel model = new FileTreeModel(new JFile(e.getActionCommand()));
    tree.setModel(model);
    class MyRenderer extends DefaultTreeCellRenderer {
    ImageIcon inicon = createImageIcon("1.gif");
    ImageIcon exicon = createImageIcon("2.gif");
    ImageIcon leaficon = createImageIcon("3.gif");
    public ImageIcon createImageIcon(String path) {
    java.net.URL imgURL = TreeIconDemo2.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    public Component getTreeCellRendererComponent(
    JTree tree,
    Object value,
    boolean sel,
    boolean expanded,
    boolean leaf,
    int row,
    boolean hasFocus) {
    super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
    if (leaf){
    setIcon(leaficon);
    }else
    if(expanded)
    setIcon(exicon);
    else
    setIcon(inicon);
    return this;
    class JFile extends File{
    public JFile(String path){
    super(path);
    public JFile(File parent,String child){
    super(parent,child);
    public String toString(){
    FileSystem fs = new FileSystem();
    if(fs.isFileSystemRoot(this))
    return(this.getPath());
    else
    return(fs.getSystemDisplayName(this));
    class FileSystem extends FileSystemView{
    public File createNewFolder(File containingDir) throws java.io.IOException {
    return(this.createFileObject(containingDir,"harish"));

  • Keeping directory structure with Catalog backup.

    So I have all my pictures in seperate directories on my computer. When using my catalog backup it just copies every file into a root directory, is there a way to preserve the directory structure that its making the backup from?

    Which verson of Photoshop Elementa are you running?
    In general, the way that the Photoshop Elements Catalog
    b Backup
    command works is that it renames the files during the backup process and it creates a Control File. Then when you use the Elements
    b Restore
    command, it can rebuild the folder structure as it was and place the photo (or video, audio) files in the same folder as it was at the time of the backup.

  • Weblogic directory structure with explanation.

    Hi,
    I am looking for weblogic 11 directory structure and their working. Can someone guide me

    Here is my favorite:
    http://www.slideshare.net/mobile/jambay/oracle-weblogic-server-basic-concepts-presentation
    Jon petter

  • Directory structure for  ABAP+JAVA Dialog Instance

    Hello,
    Can any one clarify how will be the directory structure in a case where we have ABAP+Java System?
    For Central Instance,DVEBMGS<instance no>
    Central Services,SCS<instance no+1>
    Ex:DVEBMGS20
    SCS21
    If I have another dialog instance,can I have only ABAP or only Java in that?What will be the directory structure?But I read that they will be in 1:1 ratio
    Will it be D22(Only ABAP) or J22(Java only).
    As a dialog instance,can ABAP exist with out JAVA.
    or can JAVA exist without ABAP
    Please explain the directory structure with an example.
    Thanks,
    Sudheer.

    Sudheer,
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4200.pdf page No 24 should help you...

  • Directory Structure ?s for an Exploded Web Application

    We have an application that consists only of JSPs and Servlets, no
    EJBs. I am researching whether or not it's worthwhile to start using
    EJBs. We're also migrating from Weblogic 5 to 6.1. I've managed to
    migrate our application fine and have it up and running on WLS 6.1.
    I'm confused about the exploded directory structure, the
    application.xml file, where to put the EJBs and whether or not I have
    to jar them. Here's our current directory structure:
    DefaultWebApp/               JSPs here
    DefaultWebApp/WEB-INF          web.xml and weblogic.xml here
    DefaultWebApp/WEB-INF/classes     Servlets and other classes here
    DefaultWebApp/WEB-INF/lib     do my un-jar-ed EJBs go here?
    I've been reading a lot of BEA's documentation, particularly
    ‘Deploying an Exploded J2EE Application' and a ‘Web Application PDF',
    and looking for relevant threads on the weblogic.developer.interest
    groups. It looks like the application.xml should go in a new
    DefaultWebApp/META-INF directory. But where do the EJBs go?
    I also see some directory structures with another /web directory
    that's confusing me.
    Oh, I've also managed to compile and jar up a trial Stateless Session
    EJB. Then I think I ‘auto-deployed' it into the /applications
    directory, and Weblogic seems to recognize it. But when I tried to
    reference it in a JSP, I got an error message ‘class x is public,
    should be declared in a file named x.java'. I'm assuming this is
    related to the application.xml, where I need to define the ejb
    directory.
    Thanks.

    To deploy your web app together with your EJBs, you need to create
    an "EAR" structure. Both your webapp and your EJB jars will be within
    this new structure, at the same level. You may jar up your EJBs, or you
    may explode their structure, it's up to you.
    The resulting structure should look something like below:
    EnterpriseApp/ <-- new top level
    EnterpriseApp/META-INF/
    EnterpriseApp/META-INF/application.xml
    EnterpriseApp/lib/ <-- shared libraries (if any)
    EnterpriseApp/EJB/ <-- ejbs go here
    EnterpriseApp/EJB/META-INF/ejb-jar.xml
    EnterpriseApp/EJB/META-INF/weblogic-ejb-jar.xml
    EnterpriseApp/EJB/com/your/ejb/classes/here
    EnterpriseApp/WebApp/ <-- move your current app here
    EnterpriseApp/WebApp/index.jsp <-- JSPs goes here
    EnterpriseApp/WebApp/other.jsp
    EnterpriseApp/WebApp/WEB-INF/web.xml
    EnterpriseApp/WebApp/WEB-INF/weblogic.xml
    EnterpriseApp/WebApp/WEB-INF/lib <-- ui libraries go here
    EnterpriseApp/WebApp/WEB-INF/classes <-- servlets go here
    The above structure is identical to the structure to an EAR file, only "exploded"
    as actual files and directories instead of being "jarred" into a single EAR file.
    Your application.xml in this case would specify something like:
    <application>
    <display-name>EnterpriseApp</display-name>
    <description>My Enterprise Application</display-name>
    <module>
    <ejb>EJB</ejb>
    </module>
    <module>
    <web>
    <web-uri>WebApp</web-uri>
    <context-root>/yourAppRoot</context-root>
    </web>
    </module>
    </application>
    And in config.xml you would have an entry similar to:
    <Application Deployed="true" Name="EnterpriseApp"
    Path=".\config\mydomain\applications\EnterpriseApp">
    <WebAppComponent Name="ui" Targets="myserver" URI="WebApp"/>
    <EJBComponent Name="ejb" Targets="myserver" URI="EJB"/>
    </Application>
    regards,
    -Ade

  • Ant Directory structure.

    Hi,
    We are developing J2EE application that would contain number of components. Each component would be a ear file that would contain EJB jars and war which can be deployed in any J2EE compliant application server.
    We are currently using Bedrock framework for applications deployed in Weblogic. It provides a very robust directory structure with most of the ant targets. However it is very custom for Weblogic.
    Is there a similar framework that provides a robust directory structure (with built ant targets) which can be delopyed into Orion/Oracle Application Server.
    If not, is there any standard directory structure for building J2EE applications? Any recommended source directory structure and why?
    Any help is greatly appreciated.
    Thanks
    Sumanth

    ATProject
    |
    |-->Business
    |
    |-->Common
    |
    |-->Ear
    |
    |-->Ejb
    |
    |---- . so on
    like this the folderers are created for modularizing and also separation of code for
    easier maintainance.
    the Build.xml for ant i am posting here
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="MainDeploy" default="development_build">
         <target name="development_build">
              <antcall target="ear">
                   <param name="directive" value="development"/>
              </antcall>
         </target>
         <target name="integration_build">
              <antcall target="ear">
                   <param name="directive" value="development"/>
              </antcall>
         </target>
         <target name="qa_build">
              <antcall target="ear">
                   <param name="directive" value="qa"/>
              </antcall>
         </target>
         <target name="production_build">
              <antcall target="ear">
                   <param name="directive" value="production"/>
              </antcall>
         </target>
    <!-- ################################ Build Calls ################################# -->
    <!-- ********************** Build the ats_ear.ear ******************** -->          
         <target name="ear" depends="web">
              <echo>Entering the EAR process</echo>
              <ant antfile="ear.xml" target="${directive}"/>
         </target>
    <!-- ********************* Build the ats.war ******************* -->          
         <target name="web" depends="business">
              <echo>Entering the Web process</echo>
              <ant antfile="web.xml" target="${directive}"/>
         </target>
    <!-- ********************* Build the ats_business.jar ******************* -->     
         <target name="business" depends="ats_ejb">
              <echo>Entering the Business process</echo>
              <ant antfile="business.xml" target="${directive}"/>
         </target>
    <!-- ********************** Build the ats_ejb.jar ******************** -->     
         <target name="ats_ejb" depends="integration">
              <echo>Entering the Prototype EJB process</echo>
              <ant antfile="ejb.xml" target="${directive}"/>
         </target>
    <!-- ******************** Build the prototype_integration.jar ************** -->
         <target name="integration" depends="common">
              <echo>Entering the Integration process</echo>
              <ant antfile="integration.xml" target="${directive}" />
         </target>     
    <!-- ********************** Build the ats_common.jar ******************** -->     
         <target name="common" depends="vo">
              <echo>Entering the Common process</echo>
         <ant antfile="common.xml" target="${directive}"/>
         </target>
    <!-- ********************** Build the ats_vo.jar ******************** -->          
         <target name="vo">
              <echo>Entering the VO process</echo>
              <ant antfile="vo.xml" target="${directive}"/>
         </target>
    </project>
    /// End of Build.xml
    Start of modular xml.. for examlpe Business.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="business" default="development">
         <!-- set global properties -->
         <property file="global.properties"/>
         <path id="library.path">
              <fileset dir="${localdir}/lib">
                   <include name="**/*.jar"/>
                   <include name="**/*.zip"/>
              </fileset>
         </path>
         <property name="build" location="${localdir}/business/build"/>
         <!-- set properties based on build type -->
         <target name="development">
              <antcall target="create_jar"/>
         </target>
         <target name="integration">
              <antcall target="create_jar"/>
         </target>
         <target name="qa">
              <echo>Creating the business archive for qa</echo>
              <param name="promo" value="qa"/>
              <antcall target="create_jar"/>
         </target>
         <target name="production">
              <echo>Creating the business archive for production</echo>
              <param name="promo" value="production"/>
              <antcall target="create_jar"/>
         </target>
         <!-- Run during every execution -->
         <target name="copy_files">
         <mkdir dir="${localdir}/business/build"/>
         <copy overwrite="yes" todir="${build}">
         <fileset dir="${localdir}/business/src">
              <exclude name="**/*.java"/>
              <exclude name="**/*.class"/>
              <exclude name="**/*.jpx"/>
              <exclude name="**/*.dep2"/>
         </fileset>
         </copy>
         </target>
         <!-- Compile the java source into the deploy directory with optimization -->
         <target name="compile_source" depends="copy_files">
              <echo>Compiling source</echo>
              <javac srcdir="${localdir}/business/src" destdir="${build}" >
                   <classpath refid="library.path"/>
              </javac>
         </target>
         <!-- Create the JAR file to be deployed -->
         <target name="create_jar" depends="compile_source">
              <echo>Creating JAR file from compiled source</echo>
              <jar jarfile="${localdir}/lib/ats_business.jar"
                   basedir="${build}"/>
         </target>
    </project>
    Hope you could get me
    Alll The BEst

  • Trying to copy a directory structure without all of the files.

    Hi,
    Is there a way to copy a directory structure with a number of subdirectories without all of the directory files coming along with it. I thought the cpio command would do that but I can't figure out how to use it.

    CPIO needs a list of files, normally you generate them with 'find', so that would work.
    There's an old thread about this on comp.unix.solaris. Personally, I like my 'rsync' solution. :-) But reading the entire thread may be a good idea.
    http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/e84b458b3ce4b3b8/
    Darren

  • Directory Structures

    Hi,
    This is about the directory structures to use for development and
    deployment under weblogic. By default, as you all know, weblogic comes with
    a server called "myserver" whose directory strcuture has within it the
    public_html, serverclasses, servletclasses and clientclasses directories,
    with the jar files for the examples all residing in the myserver directory.
    The general tendency for developers is to use simply use that very structure
    as is. I think that may prove to be unwieldy during deployment (especially
    when there will be multiple servers running on multiple machines, etc.) as
    well as during development (integrating with source code control, etc.)
    Here are my questions:
    1) How have people weblogic developers organized their directory structures
    for deployment? It seems to me that it would make sense to have a directory
    structure that has at least a "lib" directory under which the jar files were
    put, a "log" directory for log files, a "cert" directory for certificates,
    etc.
    2) In addition, is there an absloute need for the myserver directory to sit
    under the weblogic tree? I would think it would make sense to not have the
    deployment directory structures not tied to the weblogic installation's
    location.
    3) If there are multiple servers that will be deployed (each instantiating
    its own set of services that are implemented as session and entity EJBs),
    does one introduce an entire directory structure for each server or have a
    common directory structure with each server having its own properties file ?
    Currently, I have it setup so that each server that is introduced, e.g.,
    pricing servers, fulfillment servers, etc. has its own properties file and
    that the entire directory tree sits separate from the weblogic installation,
    to facilitate tight integration with source code control. Having resolved
    the regular issues that arise with the CLASSPATH, ClassCastExceptions, etc.,
    we're up and running, but I have had a tough time convincing my developers
    about the merits of deviating from the standard development tree stcucture.
    Do people have any opinions about this, and are there any experiences they
    can share with me? I'd be more than willing to to change course based on
    others' experiences.
    Sorry for the long-winded message.
    TIA,
    Prashanth

    Prashanth Nandavanam wrote:
    >
    Hi,
    This is about the directory structures to use for development and
    deployment under weblogic. By default, as you all know, weblogic comes with
    a server called "myserver" whose directory strcuture has within it the
    public_html, serverclasses, servletclasses and clientclasses directories,
    with the jar files for the examples all residing in the myserver directory.
    The general tendency for developers is to use simply use that very structure
    as is. I think that may prove to be unwieldy during deployment (especially
    when there will be multiple servers running on multiple machines, etc.) as
    well as during development (integrating with source code control, etc.)
    Here are my questions:
    1) How have people weblogic developers organized their directory structures
    for deployment? It seems to me that it would make sense to have a directory
    structure that has at least a "lib" directory under which the jar files were
    put, a "log" directory for log files, a "cert" directory for certificates,
    etc.That's how I'd do it. I think that the locations of all the
    resources you need are configurable. If they're not, let us know.
    2) In addition, is there an absloute need for the myserver directory to sit
    under the weblogic tree? I would think it would make sense to not have the
    deployment directory structures not tied to the weblogic installation's
    location.No, it can be anywhere you like. Make sure you adjust the security
    policy
    file so Java 2 will let the server access your classes.
    3) If there are multiple servers that will be deployed (each instantiating
    its own set of services that are implemented as session and entity EJBs),
    does one introduce an entire directory structure for each server or have a
    common directory structure with each server having its own properties file ?
    Currently, I have it setup so that each server that is introduced, e.g.,
    pricing servers, fulfillment servers, etc. has its own properties file and
    that the entire directory tree sits separate from the weblogic installation,
    to facilitate tight integration with source code control. Having resolved
    the regular issues that arise with the CLASSPATH, ClassCastExceptions, etc.,
    we're up and running, but I have had a tough time convincing my developers
    about the merits of deviating from the standard development tree stcucture.The "standard" directory tree exists only for the purpose of running
    the examples that are shipped with WLS. The WebLogic development
    team does exactly what you propose to do, and for the reasons you
    state: to keep our deployment configuration under source control in a
    location that keeps it separate from the examples support in myserver
    and to make it easy to re-install the server without disturbing our
    configuration files. We routinely run WebLogic Server from a
    configuration
    that completely ignores the WEBLOGICHOME/myserver directory.
    Do people have any opinions about this, and are there any experiences they
    can share with me? I'd be more than willing to to change course based on
    others' experiences.
    Sorry for the long-winded message.
    TIA,
    Prashanth--
    Chuck Karish BEA Systems
    (415) 402-7692 http://www.bea.com/

  • Directory Migration with changing schema

    Hi,
    We are planning a directory migration as part of an implementation of Sun Identity Manager.
    The directory migration is from one set of servers to another and comprises an upgrade from Directory 5.2 to 6.3, and a schema change.
    We'd like to have a rollback plan that involves copying changes from the new directory to our legacy servers. A delay is acceptable.
    We're doing two things to our schema which increases the complexity:
    - Users are being segregated, e.g.:
    OLD: uid=123456,ou=People,ou=UK,dc=root
    NEW: uid=123456,ou=Internal,ou=Users,dc=root OR uid=567890,ou=External,ou=Users,dc=root
    - Replacing an ou hierarchy containing Groups (groupofuniquenames) to nsRoleDN attributes on users.
    We'd like to avoid writing some kind of custom script to retrieve changes, modify them and insert them into the old directory.
    Directory Proxy doesn't seem to be the right tool for this job.
    Could anyone suggest an alternative?

    So I have done this migration before - The directory information is not so bad to get migrated in fact the Novell IDM could do that piece for you.
    Migrating the files, and security over will be an exercise in icacls
    Logon scripts/Group policy preferences will need to be done to convert the existing drive mapping scripts over, Look at DFS for this so you only have to migrate once.
    If everything is planned out it will keep the migration smooth, but truly understanding the role of Novell IDM in the environment, analyzing the shared files and data (Good time to cleanup, hint hint), validating the groups and security are set up correctly
    will aid immensely.
    I would also do in batches based on shared data and not try to move everyone at one big move, that way as departments move you can get the kinks out of the process.
    From a workstation that has the novell client you can script the data copy with robocopy over to the new home
    once the data is copied over, robocopy can keep the data sync'd until users are migrated over.
    Novell has the ability of exporting directory structures with permissions on them, scripting icacls will get the permissions repopulated on the MS side. Groups and users of course would need to be there already.
    Thanks,
    Brad Held
    Windorks.wordpress.com
    View
    Brad Held's profile

  • Data guard: OMF and directory structure

    hi everybody,
    i guess this problem is not too complicated, but maybe i´m missing something.
    assumption:
    - 10.2.0.4
    - data guard with physical standby (primary: node_a, standby: node_b)
    - primary db_unique_name=primary, standby db_unique_name=standby
    - using OMF, primary db_create_file_dest=<myDir>/oradata
    - standby_file_management is set to AUTO
    - want to use same directory structure for data files on both nodes (<myDir>/oradata/PRIMARY/)
    data guard is working as expected so far, data files on both nodes are created in <myDir>/oradata/PRIMARY/datafile/
    next assumption:
    - failover is initiated
    - physical standby is recreated on former primary node (node_a)
    from now on, data files are created in <myDir>/oradata/STANDBY/datafile/, old data files remain in <myDir>/oradata/PRIMARY/datafile/.
    is there a way to avoid a second directory (and still use the benefits of OMF)? at least at the current standby node it´s possible to avoid this by setting db_file_name_convert, but what about the new primary?
    thanks for your input,
    peter
    Edited by: priffert on Sep 14, 2009 3:07 AM

    I have a similar setup with the exception that I'm using ASM for datafiles. The issue I'm having with OMF is that if I create a datafile within a disk group that is not in the location specified by db_create_file_dest then on the standby it's created in the db_create_file_dest. Apparently this will not give me the ability to maintain the exact configuration on both primary and standby without requiring modification after role changes.

  • I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder

    I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder but my new photo's are all in iPhoto.  I want to use directories for storing and iPhoto for viewing.  Is this possible or do I need to have all my photo's in iPhoto??
    Mitch

    iPhoto is not a Photo Viewer. It's a Photo Manager and designed for looking after the files while you organise the Photos. It really works much better if you let it manage those files. If you use iPhoto you never go near those files because iPhoto is your start point for anything you want to do with your Photos - the point of the pplication.
    You can run iPhoto in Referenced mode, where it does not copy the files to the Library, but I caution you that you are making life a lot more difficult for yourself by doing that.
    How to, and some comments on why you shouldn't, are in this thread
    https://discussions.apple.com/thread/3062728?tstart=0
    Regards
    TD

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

  • Problem with package and directory structure

    Please... I need help with a directory/package structure that I don't understand
    why it is not working...
    I want to create a custom login SWF which several other SWF movies will use in case they need some kind of login logic (in this case it is a login logic... but the problem doesn't have anything to do with that logic...)
    I have created a FLA movie (LOGIN.FLA) and two helper classes (MAINLOGIN.AS and MAINLOGINEVENT.AS)... they are all under the same directory, for example:
    c:\
         abc\
              def\
                   ghi\
                        login
    In LOGIN.FLA, I have included the source path, c:\abc (for example).
    MAINLOGIN.AS and MAINLOGINEVENT.AS, have both a package like:
         package def.ghi.login
    MainLogin class uses MainLoginEvent (it dispatches events of that type)... but I don't have to import anything as all 3files are in the same directory...
    LOGIN.FLA has its class defined as def.ghi.login.MainLogin
    And that's all... now comes the problem:
    1. If I leave everything as described and try to publis LOGIN.FLA, it throws error 5001 ("The name of the package def.ghi.login.MainLoginEvent doesn't reflect....) for class MainLoginEvent... don't understand why... it is placed exactly as MainLogin and has the same package definition!
    2. I have tried several other options, but when I get the SWF to get published, then, the problem comes when trying to use this SWF from another movie:
    The way to publish LOGIN.FLA with no errors is: MAINLOGIN.AS and MAINLOGINEVENT.AS with empty package definition ("package" alone...) and LOGIN.FLA with class MainLogin (not def.ghi.login.MainLogin)... LOGIN.FLA doesn't have to include source path to c;\abc in this case. This way, I can publish LOGIN and get LOGIN.SWF.
    The problem now is how to use this information from another Movieclip... I want to be able to use and receive events of type MainLoginEvent but can't (it gives error 5001 again, on MainLoginEvent, saying that the name of the package '' doesnt' reflect....)... If I include the path to c:\abc\def\ghi\login on the FLA, then it gives errors in MainLogin when trying to use a class of its library...
    Basically, the problem here is that, the movie which wants to use the LOGIN.SWF, is in c:\abc\def, and it is including the source path c:\abc, so if I import def.ghi.login.*
    it is when it throws error 5001 (I understand why, but I dont know how to fix it...), but if I dont import def.ghi.login.* then I can't use MainLogin nor MainLoginEvent...
    What is the good way of doing this kind of structure... mainly it is creating a SWF, which can be used from other SWF's and which can dispatch events, which the container SWF will capture...
    If anyone can please give me a hint... THANK YOU!

    Hi kglad , I don't understand the first point... "don't use absolute paths"... I'm not using them (or I don't understand what you mean).
    For the second one... the structure is like:
    c:\
         abc\
              def\
                   LOGINCONTAINER.FLA
                   ghi\
                        login\
                             LOGIN.FLA
                             MAINLOGIN.AS
                             MAINLOGINEVENT.AS
    In LOGIN.FLA, I include the source path c:\abc, so MAINLOGIN.AS and MAINLOGINEVENT.AS have a package of "def.ghi.login", and the class for LOGIN.FLA is "def.ghi.login.MainLogin"... when trying to publish LOGIN.FLA, Flash throws error 5001 for MAINLOGINEVENT...¿?
    What I want to get is a SWF (LOGIN.SWF), which can be loaded from any other SWF (in this example, LOGINCONTAINER.SWF). LOGINCONTAINER.FLA, has a class path "c:\abc" (the same as the other LOGIN.FLA, because of the directory structure), and it has to be able to receive events of type MAINLOGINEVENT... that is why it has to do an import of "import def.ghi.login.*" (for example)
    Any idea of why it is not working (or how to organize it correctly)?
    Thank you

  • Populating MX:Tree with Directory Structure using PHP

    Hello,
    I have written the following php function to return the directory structure :
         public function get_dir_iterative()
              $dir = 'data';
              $exclude = array( 'cgi-bin', '.', '..' );
              $folders = '<?xml version="1.0"?>';
              $folders .= "<node label='Root' path=\"data\">";
              //$folders .= $this->getFolderRecuring("data");
              $exclude = array_flip($exclude);
              $dh = opendir($dir);
              //$stack = array($dh);
              //$level = 0;
                        //closedir(array_shift($stack));
              while(count($stack))
                   if(false !== ( $file = readdir( $stack[0] ) ) )
                        if(!isset($exclude[$file]))
                             if(is_dir($dir . '/' . $file))
                                  $dh = opendir($dir . '/' . $file);
                                  if($dh)
                                       $folders .= "<node label=\"$file\" path=\"$dir/\" isBranch=\"true\" />";
                                       array_unshift($stack, $dh);
                                       ++$level;
                             else
                                  $folders .= "<node label=\"$file\" path=\"$dir/\">";
                   else
                        closedir(array_shift($stack));
                        --$level;
              $folders .= "</node>";
              return $folders;
    When I test this function manually it returns the proper structure.
    But when I call it with help of ZendAMF there is nothing returned and the sandclock is spinning infinite ?!
    here is the flex part:
    private var fms:RemoteObject = new RemoteObject();
    protected function initFileManagerService():void
         fms.destination ='zend';
         fms.source='FileManagerService';
         fms.showBusyCursor=true;
         fms.addEventListener( FaultEvent.FAULT, faultListener);         
         fms.get_dir_iterative.addEventListener( ResultEvent.RESULT, load_result );              
         trace('FileManagerService initialized');
    public function load():void
         fms.get_dir_iterative();
         trace('Service / load');
         private function load_result( e:ResultEvent ):void
              trace('result:'+e.result)                   
    My zend setup is working, any idea what could be wrong ?

    >if you comment out the php and just return "hello" do you get it back in flex?
    Jip, thats working
    >is this line right?>fms.get_dir_iterative.addEventListener( ResultEvent.RESULT, load_result );
    Yes it is correct, thats the way you listen for a result of a specific function when using the zend framework.
    I have other projects running very good like this.
     

Maybe you are looking for

  • Freenx: how to access a server

    hi guys, i am currently trying to access a freenx server via the nxclient. obviously everything works, because in the nx session administrator the session appears (pls see screenshot). both machines are running current arch and i installed freenx ser

  • How to do a SAVE AS in Numbers in the new iworks version 2.1

    I just upgraded to the new iworks 09 version 2.1. The Save AS option has disappeard. THis is confusing. How do I do a Save As and give the sheet a new name.

  • Problem with transaction MD4C?

    Hello everybody, I have developed an interactive report which has a field on clicking which the control should transfer to a transaction (MD4C) which consists of SIX tabs. I have written a small BDC for the same and when i try to run it behaves in di

  • The search has timed out.

    Hello forum. When I use the search api, the error message is displayed when I search: "The search has timed out. More specific search criteria may be required." If I use the same search terms at search portlet the result is ok. This is my code: porta

  • Ever since I downloaded the Safari update, I can't open it anymore

    I'm using a Powerbook G4, OS 10.4.11 As the title says, I downloaded the latest Safari security update, and since then, Safari won't work for me at all. Every time I try to open it, the icon will bounce in the dock for awhile, then I get the error me