export the schema, but for two tables, export only 20 rows

11.2.0.2/RHEL 5.4

Using expdp, I want to export an entire schema. But for the 2 large tables (say the EMP and DEPT tables) in this diagram, I want to export only 20 records (at random) for them. Is it possible for expdp and impdp?

If this is not possible then, is there any option to have no any line for these 2 tables?

Christian Christmas Pal Singh says:
possible, but you must create two files dmp means export of run 2 times.
1. for complete schema to exclude these 2 tables by the exclusion clause.
2. use the query clause to filter the data in the second export for these 2 tables.

Really? is not something that similar work? instead of rownum, if you want truly random, then use example of clause, but it should be based on the amount of sample would make 20 lines for you, then a bit of work there.

schemas=my_schema
QUERY=my_schema.table1:"where rownum < 21"
QUERY=my_schema.table3:"where rownum < 21"

Published by: rjamya on Sep 19, 2012 08:32

Tags: Database

Similar Questions

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • Is it possible to use the same password for two computers through quickbooks?

    We have two computers that are connected to each other through quickbooks and we must be able to get our e-mails from computers. Is this possible? We need to send invoices to the customers of a computer and the other is used for accounting and payroll.

    Original title: you can use the same password for two computers if they are already linked through quickbooks?

    Hi JayneB,

     

    (1) are you referring to the password of the user account?
    (2) who is the operating system installed on the computer?

     

    Method-

    I would like you to contact the Quickbooks support for assistance.

    Check out the link-

     

    QuickBooks support

     

    Hope this helps!

     

  • My one year contract is about to expire. Can I extend the same price for two months and cancel the contract without redoing the accession of another full year?

    My one year contract is about to expire. Can I extend the same price for two months and cancel the contract without redoing the accession of another full year?

    Hello

    The plan of photography is an annual plan therefore would renew for another 12 months.

    Under the terms of subscription, an early termination fee would be applied if you have decided to cancel two months in the new contract - Adobe - General conditions of subscription

    Fill the cloud creative and plans unique app are available on a monthly basis, which can be another option - https://creative.adobe.com/plans

    Kind regards

    Bev

  • monitor the DML operation for a table, that is, monitor the type time and DML operation

    Hello expert,

    I want to follow the DML operation for a table, i.e. monitor the time to type and the DML operation. you tell please how do I get that?

    Thank you very much

    See if this can help you:

    http://Oracle-Apps-DBA.blogspot.com/2007/07/monitoring-DML-operations.html

    Kind regards

  • Master table shows only 5 rows

    Hello

    I use Oracle JDeveloper 11 g Release 2 (11.1.2.3.0).

    I have a picture of master ADF and a detailed in my application form but the main Table shows only 5 rows, I don't understand what is happening, in my database I have more than 5 lines (exactly 7) but table doesn't show him everything.

    Can someone help me with this?

    Thanks in advance!

    Check the size of the extraction of the iterator (pagedef) connections and check that your relay of query returns more than 5 lines.

    What is the code to display the master detail do you use?

    Timo

  • How the sum of these two tables?

    Hello

    I have two tables

    DESC ACTIVITE_EXCEP_FAITE

    NUMBER OF FICHE_ID

    NUMBER OF SERVICES_ID

    NUMBER OF ACTIVITES_EXCEPTIONNELLES_ID

    NUMBER OF TIME

    NUMBER OF ACTIVITE_EXCEP_FAITE_ID

    DESC ACTIVITE_FAITE

    NUMBER OF FICHE_ID

    NUMBER OF ACTIVITES_ID

    NUMBER OF SECTEURS_ID

    LENGTH NUMBER (8.2)

    NUMBER OF ACTIVITE_FAITE_ID

    NUMBER OF TYPE_ACTIVITE_ID

    I want to add the column to the DURATION of the two tables when they get the same FICHE_ID. FICHE_ID is not a join field.

    I've tried this application, but it gives result when two recordings of the two table share the same number FICHE_ID.

    SELECT AF. FICHE_ID, SUM (NVL (AF. LENGTH, 0)) + SUM (NVL (AEF. LENGTH, 0))

    OF AF, ACTIVITE_EXCEP_FAITE AEF ACTIVITE_FAITE

    WHERE AF. FICHE_ID = AEF. FICHE_ID

    GROUP BY AF. FICHE_ID;

    Can you help me write this selection?

    Thank you very much for your help!

    Like this?

    select nvl(af.fiche_id, aef.fiche_id) fiche_id
         , sum(nvl(af.duree,0)) + sum(nvl(aef.duree,0)) duree
      from activite_faite af
      full join
           activite_excep_faite aef
        on af.fiche_id = aef.fiche_id
     group by nvl(af.fiche_id, aef.fiche_id);
    
  • Export only select rows in a table in excel sheet

    Hello


    I have a listener to export a table. Is there a way to export only the selected lines in the table rather than all the lines?

    for the exportCollectionListener the exportedRows the value = "selected".

    
                    
                
    

    check
    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_exportCollectionActionListener.html

  • URL variable for two tables...

    I am a beginner and assume the task to convert a MS access database to a Web site. Im having an issue trying to do what I want to do and hope that someone can give me advice.

    I have 2 tables, 1 this customer information host and one that has customer notes as a relationship 1:M. I want to create a master/detail page, where the details of the page has information on customers AND all notes associated with the client. The question that I have is little matter how to create the type of PHP document I can't display the correct information and absoultely have no idea how to phrase the question looking for him.

    I thought I could try to use the master page and link the two URLS and load simultaneously into the details of the page, but I did not go to him. Any direction would be MOST appreciated.

    I'll take a shot at this, maybe from a slightly different angle. First of all, in your notes table, you need a record ID, unique to each note. Then you must key anforeign that connects the user to the note. It seems that you have this way of drawing, but I can't say for sure. On the master page, you see the list of users in the region of repetition as expected? If you, you also need a field to create you link to the details page. You may have already done this, but I'll go through the steps. Enter text in this field such as "view details.". Select the text and using the fielder icon search and select the detail page. Do not close the window and click the settings button. Enter a name for the setting, and remember, as username. For the value, click the lightning to make appear the dynamic elements. The Recordset, select the field that corresponds to the FK in the secondary table, I think you are using the single recordID parameter for the client. Say ok in all windows to close. On the detail page, all you need is a simple recordset. In simple mode, select the table, filter it on the URL parameter' ' equals, select the FK column and enter the name of the variable exactly the same thing as what you named him for the link (UserID). This will create a reforest notes only for this customer. Where you place notes, add a rep to the region to display them all. If you also want to display the data in the customer table, you can create a select query with a JOIN, or to make it really simple, just create another set of records using the same setting but use the customer rather than the notes table table.

  • How to remove the extra space between two Table HTML

    Hello

    I wrote a code for printing costs. But there is more space between two Table Html, how I can remove it.

    Please run that Code

    Start

    HTP.p (')
    < html >
    (< body > ');

    HTP.p (')
    < TABLE align = "left" width = "500" cellspacing = "0" cellpadding = "0" border = "1" >
    < tr > < td align = 'right' white-space: nowrap; > Ph-2201751 < table >
    < td > < table >
    < /tr >
    < tr > < td align = "center" white-space: nowrap; > < B > < table > < /B > SATYAM MODERN PUBLIC SCHOOL
    < td > < table >
    < /tr >
    < b >
    < td align = "center" white-space: nowrap; > < i > < H3 > (AFFILIATED to THE CBSC, NEW DELHI CODE No. 53544) < / H3 > < /I > < table >
    < td > < table >
    < /tr >
    < tr > < td align = "center" white-space: nowrap; > new colony Braham, - 131001 (h) < table >
    < td > < table >
    < /tr >
    < tr > < td align = "center" white-space: nowrap; > RECEPTION COSTS < table >
    < td > < table >
    < /tr >
    < /table >
    < TABLE width = "500" cellspacing = "0" cellpadding = "0" border = "1" >
    < b >
    < td width = "100" white-space: nowrap; > receipt no.: < table >
    < td width = "100" white-space: nowrap; > Date received: < table >
    < /tr >
    < b >
    < td width = "100" white-space: nowrap; > name: < table >
    < td width = "100" white-space: nowrap; > father name: < table >
    < /tr >
    < b >
    < td width = "100" white-space: nowrap; > class & s: < table >
    < td width = "100" white-space: nowrap; > A/C No. : < table >
    < /tr >
    < b >
    < td width = "100" white-space: nowrap; > from: < table >
    < td width = "100" white-space: nowrap; > to: < table >
    < /tr >

    (< /table > ');
    HTP.p (')
    < / body >
    (< / html > ');
    end;


    Thank you

    Ed

    Hello

    HTML is valid, that your code print?

    
    

    Wouldn't be as below?

    
    

    BR, Jari

    Published by: jarola on December 18, 2009 15:22
    I test your code
    http://Apex.Oracle.com/pls/OTN/f?p=40323:25
    I can't see any extra space between the tables

  • variable sharing, missing data, the timestamp even for two consecutively given

    Hello

    I have a problem with missing data when I read a published network shared variable.

    Host VI:

    In a host of VI on my laptop (HP with Windows XP Prof.) I write data to the shared Variable 'data '. Between two consecutively write operations is a minimum milliseconds of wait time. I use it because I want to make sure that the time stamp of each new value of data is different then a preview (variables shared the resolution is 1 ms)

    VI target:

    the VI target cRIO-9012 bed only of new data in the way that it compares the timestamp of a new value with the time stamp of the last value on a device in real time.

    Problem:

    rarely, I'm missing a data point (sometimes everything works fine for several hours, transfer thousands of data correctly above all of a sudden failure occurs). With a workaround, I'm able to catch the missing data. I discovered that the missing data have the timestamp exactly the same, then the last point of data read, is so ignored in my data 'legal '.

    To summarize, the missed value is written to the variable shared host, but ignores the target because its timestamp is wrong, respectively the same as the last value, despite the host waits for a minimum of 10 milliseconds each time before writing a new value.

    Note:

    The shared Variable is hosted on the laptop and configured using buffering.

    The example is simple only to display the function of principle, in real time, I also use a handshake and I guarantee that there is no sub - positive and negative.

    Simplified example:

    Question:

    Anyone has an idea why two consecutively data can have the same timestamp?

    Where timestamping (evil) Finally comes (System?)?

    What would be a possible solution (for the moment with shared Variables)?

    -> I tried to work around the problem with the clusters where each data gets a unique ID. It works but it is slower that comparing the timestamps and I could get performance problems.

    It would change anything when I animate the shared on the RT System Variable?

    Thanks for your help

    Concerning

    Reto

    This problem has been resolved in LabVIEW 2010.  You can see other bugs corrections in theReadme of LabVIEW 2010.

  • Transformation to define the schema and user on Tables in relational and physical

    I imported my Designer SDDM 4.0.1.836 deposit.  Now, I want to APP_SYS of subviews allows to define the schema on the tables in the relational model and the user on the physical model.  Our application in designer systems are 90% based scheme.  Here's what I have so far based on the example of OE and HR plans that I imported, built logical, then back to relational.  At this point, I have the tables by subview...  Line 24 is obviously incorrect.  Can someone give me a step by step approach to understand what I need to set the schema of the table and the user?  I looked through the read me file, xml files, the index and searched the known universe and am still confused.

    importPackage(javax.swing);
    // variable to keep a status message for later
    
    var message="";
    var schema="";
    
    // Get all subviews for Relational
        subviews = model.getListOfSubviews().toArray();
    for (var isub = 0; isub<subviews.length;isub++){
        subview = subviews[isub];
        message = message + '\n'+isub+" "+ subviews[isub];
        if(subviews[isub]!=null){
              if(subview == "HR_ERD"){
                 shema = "HR";
                }else if(subview == "OE_ERD"){
                 schema = "OE";
                }
             tables = model.getTableSet().toArray();
             for (var t = 0; t<tables.length;t++){
                 table = tables[t];
                 //check for presentation in subview
                 tv = table.getFirstViewForDPV(subviews[isub]);
                 if(tv!=null){
                     table.setSchemaObject(schema);  
                      message = message + '\n    '+ t +" " +shema+"."+ tables[t] ;
                }
            }
        }
    }  
    
    JOptionPane.showMessageDialog(null, message);
    //Packages.oracle.dbtools.crest.swingui.ApplicationView.log(message);
    

    Hi Marcus,

    First of all, you must make sure that the schema already exists in your relational model.

    You can use the method

    public void setSchema (String schemaName)

    to associate your Table with this scheme.

    (This method is defined on ObjetConteneur, so it can also be used to make and index).

    If you already have a user of your physical model that implements your schema, it is not normally necessary to create a user on the TableProxyOracle in the physical model.

    However if you do not want to set, then the method to use is

    public void setUser (user UserOracle)

    David

  • Get all the current statements for a table

    Hi all

    I would like to know if its possible to retrieve all select, insert, delete, instructions update for a table at a given time or for a period of approximately 10 seconds.

    as something like that

    Select username, ORDER MACHINE, SQL_ID, SQL_EXEC_START session $ v where sql_id in)
    Select sql_id in v$ sql where sql_text like '% MYTABLENAME %');

    I know there are several requests for this table, but with this query, I see only my own queries!
    Why?

    Perhaps the best way is using audit or FGA. If you are looking for in the library cache, older statements do not exist. Depends or you install Grid Control/DB Console can help too but if you have the default values you have only one month.

    HTH
    Antonio NAVARRO

  • Plan of the hash value for two queries!

    Hello
    DB: Oracle 11g (11.2.0.3.0)
    OS: RHEL 5

    I have two question:

    1. can two queries have the same hash value of the plan? I mean I have here are two queries:

    SELECT /+ NO_MERGE * / MIN (payor.next_review_date). *
    * Payer from *.
    * WHERE payor.review_complete = 0 *.
    * AND payor.closing_date IS NULL *.
    * AND payor.patient_key = 10; *

    and

    SELECT MIN (payor.next_review_date)
    * Payer from *.
    * WHERE payor.review_complete = 0 *.
    * AND payor.closing_date IS NULL *.
    * AND payor.patient_key = 10; *

    When I tried to examine the execution plan for the two motions, the hash value of the plan remains the same. This means that implementation plan for both queries are same? If so, then how Oracle includes or changes to the execution plan based on hint. If not, then what hash value of the plan represents?

    2. If the plan with suspicion, and without suspicion is identical except for a given query except the number of lines and bytes. Do you mean this query with fewer lines and scanned bytes is better?

    Thanks in advance
    -Onkar

    >
    1. can two queries have the same hash value of the plan?
    >
    Yes - as already said - but it's not just because of tips.

    Here is the example code that I use to show that Oracle does NOT simply use a text version of the query that you propose and compute a hash of it.
    These two queries are radically different but have the same hash value; Oracle are not different at all.

    set serveroutput on
    set autotrace traceonly
    select * from DEPT A, EMP B
    where A.DEPTNO=B.DEPTNO
    
    SQL> select * from DEPT A, EMP B
      2  where A.DEPTNO=B.DEPTNO
      3  / 
    
    14 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 844388907
    
    select * from
    (select * from DEPT) A, (select * from EMP) B
    WHERE A.DEPTNO = B.DEPTNO
    
    SQL> select * from
      2  (select * from DEPT) A, (select * from EMP) B
      3  WHERE A.DEPTNO = B.DEPTNO
      4  / 
    
    14 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 844388907
    
  • How to make the Apache configuration for two different areas

    Hello

    I was trying just a few clustering on weblogic workshop. I was facing a problem... Here's the scenario:

    I have two clusters:

    CLUSTER1: 3 managed servers (server1, server2, serveur3)
    Cluster2: 2managed servers (server4, Server5)

    I have two examples of applications I have made on these two clusters i.e on cluster1 app1 and app2 on cluster2.

    These two applications are deployed all as I am able to open these browser applications by calling the individual run as server port: http://localhost:7003 / app1.

    Now, I have installed an apache server on my laptop and configured the http.conf file.


    Question: I am not able to call the application of apache. If there is only a single cluster then it works very well and for an application two that a single cluster (application) only works too which port is set in the last.

    Here are the contents of my httpd.conf file:

    #
    # This is the main Apache HTTP server configuration file. It contains the
    configuration directives # that give the server its instructions.
    # See < URL: http://httpd.apache.org/docs/2.2 > for more information.
    # See especially
    # < URL: http://httpd.apache.org/docs/2.2/mod/directives.html >
    # for an analysis of each configuration directive.
    #
    # Do NOT simply read the instructions here without understanding
    # what they do. They are there only as advice or reminders. If you do not know
    # consult the online documentation. You have been warned.
    #
    # Configuration and logfile names: If the file names that you specify for a lot
    number of files in server control begin by "/" (or "drive: / 'for Win32 '), the
    # server uses this explicit path. If the file names do not start
    # with "/", the value of ServerRoot directive is preceded by - so "logs/foo.log.
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2. 2' will be interpreted by the
    # Server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
    #
    # NOTE: Where file names are specified, you must use forward slashes
    # instead of backslashes (e.g. "c:/apache" instead of "c:\apache").
    # If a drive letter is omitted, the drive on which httpd.exe is located
    # will be used by default. It is recommended that you always provide
    # an explicit drive letter in absolute paths to avoid confusion.

    #
    # ServerRoot: The top of the directory under which the server tree
    # configuration, error and the log files are kept.
    #
    # Do not add a bar slash at the end of the directory path. If you point
    # ServerRoot to non-local disk, remember to point the LockFile directive
    # to a local disk. If you want to share the same multiple ServerRoot
    demons of # httpd, you will need to change at least the LockFile and PidFile.
    #
    ServerRoot "C:/Program Files/Apache Software Foundation/Apache2. 2. "

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    ports #, instead of the default value. See also the < VirtualHost >
    directive #.
    #
    # Change this to listen on specific IP addresses below for
    # prevent Apache glomming on all related IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the features of a module that was built as a DSO you
    # duty place corresponding 'LoadModule' lines at this location until the
    # the directives that it contained are actually available before their use.
    # Modules statically compiled (those listed by "httpd-l") is not necessary
    # to be responsible here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    LoadModule modules/mod_actions.so actions_module
    LoadModule alias_module modules/mod_alias.so
    LoadModule modules/mod_asis.so asis_module
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_alias_module modules/mod_authn_alias.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule modules/mod_authn_default.so authn_default_module
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule modules/mod_authz_default.so authz_default_module
    LoadModule modules/mod_authz_groupfile.so authz_groupfile_module
    LoadModule modules/mod_authz_host.so authz_host_module
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule modules/mod_authz_user.so authz_user_module
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule modules/mod_cgi.so cgi_module
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule dav_module modules/mod_dav.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule dbd_module modules/mod_dbd.so
    Modules/mod_deflate.so deflate_module #LoadModule
    LoadModule modules/mod_dir.so dir_module
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule modules/mod_expires.so expires_module
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule filter_module modules/mod_filter.so
    #LoadModule modules/mod_headers.so headers_module
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule modules/mod_include.so include_module
    #LoadModule info_module modules/mod_info.so
    LoadModule modules/mod_isapi.so isapi_module
    #LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    #LoadModule modules/mod_proxy.so proxy_module
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    Proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule
    Modules/mod_proxy_connect.so proxy_connect_module #LoadModule
    Proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule
    Modules/mod_proxy_http.so proxy_http_module #LoadModule
    #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    Modules/mod_speling.so speling_module #LoadModule
    Modules/mod_ssl.so ssl_module #LoadModule
    #LoadModule modules/mod_status.so status_module
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule modules/mod_wl.so weblogic_module



    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *

    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *


    < IfModule! mpm_netware_module >
    < IfModule! mpm_winnt_module >
    #
    # If you want httpd to run as a different user or group, you must run
    # httpd as root initially and it will pass.
    #
    # Group / user: the name (or #number) of the user/group to run httpd as.
    # It is generally advisable to create a dedicated and aggregatable for user
    # httpd, as with most system services are running.
    #
    Demon of the user
    Daemon group

    < / IfModule >
    < / IfModule >

    Server configuration # 'hand '.
    #
    # The directives in this section implement the values used by the 'hand '.
    # Server, which meets all demands that are not managed by a
    definition of # < VirtualHost >. These values also provide defaults for
    # all < VirtualHost > containers you can set later in the file.
    #
    # All these directives may appear inside containers < VirtualHost >,.
    # in which case the value default parameters will be substituted for the
    virtual host of # being defined.
    #

    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mail. This address appears on some generated by the page server, such
    # as error documents. for example [email protected]
    #
    ServerAdmin < adminurl >
    #
    # ServerName gives the name and the port used by the server to identify itself.
    # This can often be determined automatically, but we recommend that you specify
    # explicitly to avoid problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName < servername >
    # DocumentRoot: The directory you are going to use your
    documents #. By default, all requests are taken from this directory, but
    aliases and symlinks # can be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs".

    #
    # Each directory that Apache has access can be configured in respect
    # to which services and features are allowed and/or disabled in this
    # Directory (and its subdirectories).
    #
    # Everything first, we configure the 'default' to be a very restrictive of game
    features #.
    #
    < directory / >
    Options FollowSymLinks
    AllowOverride None
    Order deny, allow
    Refuse to all the
    < / Book >

    #
    # Note that, from this point forward you must precisely enable
    features special # to be enabled - so if something doesn't work not as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # This should be replaced by what you set DocumentRoot.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" >
    #
    # Possible values for the Options directive are "None", "All."
    # or any combination of:
    # Indexes includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named explicitly -'all Options '.
    # is not give it to you.
    #
    # The Options directive is complex and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # For more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be 'All', 'None', or any combination of key words:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow, deny
    Allow all the

    < / Book >

    #
    # DirectoryIndex: sets the file Apache will serve if a directory
    # is requested.
    #
    < IfModule dir_module >
    DirectoryIndex index.html
    < / IfModule >

    #
    # The following lines prevent the .htaccess and .htpasswd files to be
    # seen by customers of the Web.
    #
    < FilesMatch "^ \.ht" > "".
    Order allow, deny
    Refuse to all the
    Meet all
    < / FilesMatch >

    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive in a < VirtualHost >
    # container, error messages related to this virtual host will be
    # logged here. If you do define a for a < VirtualHost > error log
    container of #, that host errors will be logged there and not here.
    #
    ErrorLog logs / 'error.log '.

    #
    # LogLevel: Control the number of messages in the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,.
    # emerg, alert.
    #
    LogLevel warn

    < IfModule log_config_module >
    #
    # The following directives define some nicknames format for use with
    # a directive CustomLog (see below).
    #
    "LogFormat '%%u %t \"%r\ hour' % > s \"%{Referer}i\ %b" \"%{User-Agent}i\" "handset"
    "LogFormat '%%u %t \"%r\ hour' % > s %b "commune

    < IfModule logio_module >
    # You must enable mod_logio.c use %I and frequency
    "" LogFormat '%%u %t \"%r\ hour' % > s %b \"%{Referer}i\ "\"%{User-Agent}i\ "%I %o "combinedio
    < / IfModule >

    #
    # The location and format of the access (Common Log Format) log file.
    # If you do not have any logfiles access set in a < VirtualHost >
    container of #, they will be saved here. On the other hand, if you the do
    # define per - < VirtualHost > access logfiles, transactions will be
    # logged there and not in this file.
    #
    Common CustomLog "logs/access.log.

    #
    # If you prefer a log file of access, agent, and referer information
    # (Combined logfile format) you can use the following directive.
    #
    #CustomLog "logs/access.log' combined
    < / IfModule >

    < IfModule alias_module >
    #
    # Redirect: Allows to tell clients the documents used for
    # exist in your server's namespace, but no more. The customer
    # make a new request for the document at its new location.
    # Example:
    # Redirect permanent/foo http:// < url >/bar

    #
    # Alias: Maps web paths into paths of file system and is used to
    # access content that don't live under the DocumentRoot directive.
    # Example:
    # Alias /webpath/full/filesystem/path
    #
    # If you include a trailing / on /webpath, then the server will be
    # require that he be present in the URL. It is also likely that
    # duty provide a < Directory > section to allow access to
    # the path to the file system.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as assumed names, except that
    # documents in the target directory are treated as applications and
    # executed by the server on demand, rather than as documents sent to the
    client of #. The same regulation on flight "/" applies to the ScriptAlias
    # as for the Alias directives.
    #
    ScriptAlias/cgi-bin / "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/".

    < / IfModule >

    < IfModule cgid_module >
    #
    # ScriptSock: On threaded servers, refers to the access path to the UNIX
    decision # used to communicate with the CGI mod_cgid daemon.
    #
    Newspapers/cgisock #Scriptsock
    < / IfModule >

    #
    # "C:/Program Files / Apache Software Foundation/Apache2.2/cgi-bin" should be replaced by everything that your ScriptAlias
    # CGI directory exists, if you have set up.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" >
    AllowOverride None
    None of the options
    Order allow, deny
    Allow all the
    < / Book >

    #
    # DefaultType: Server default MIME type used for a document
    # If it cannot establish also as file name extensions.
    # If your server contains mainly text or HTML documents, it is "text/plain".
    # a good value. If your content is binary, such as applications
    # or images, you can use "application/octet-stream" instead of
    # Keep browsers try to view binary files, as if they were
    # text.
    #
    DefaultType text/plain

    < IfModule mime_module >
    #
    # TypesConfig points to the file containing the list of mappings from
    # MIME file extension - type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add or replace the MIME configuration
    # the file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress. Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented out, then you
    # should probably define these extensions to indicate media types:
    #
    AddType application/x-compress. Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain "manipulators": file extensions
    # No actions associated with the file type. It can be either integrated into the server
    # or added to the directive of the Action (see below)
    #
    # To use CGI outside of ScriptAlias directories scripts:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For maps of type (negotiated resources):
    #AddHandler type-plan of the var

    #
    # Filters allow you to process content before sending it to the client.
    #
    # To parse .shtml for server-side includes (SSI) files:
    # (You will also need to add "Includes" the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    < / IfModule >

    #
    # The mod_mime_magic module allows the server to use various boards of the
    content of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the definitions of suspicion.
    #
    #MIMEMagicFile conf/magic

    #
    # Customizable error responses come in three flavors:
    ((# 1) text 2) local redirects 3) external redirects
    #
    # Examples:
    #Error Document 500 "The server made a boo boo".
    #Error Document 404 Missing.html
    #Error Document 404 "/cgi-bin/missing_handler.pl"
    #Error Document 402 subscription_info.html < url >
    #

    #
    # EnableMMAP and EnableSendfile: on systems that support.
    projection in memory # or the sendfile syscall is used to deliver
    # files. Usually, this improves the performance of the server, but must
    # turn off when mounted network is served
    # file systems or if support for these functions is also
    # broken on your system.
    #
    #EnableMMAP off
    #EnableSendfile off

    # Additional configuration
    #
    # The configuration files in the conf/extra/directory can be
    # included to add additional features or change the default configuration
    # the server, or you can simply copy their content here and change as
    # necessary.

    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf

    # Multilingual error messages
    #Include conf/extra/httpd-multilang-errordoc.conf

    # Entries to the fancy directory
    #Include conf/extra/httpd-autoindex.conf

    # Language settings
    #Include conf/extra/httpd-languages.conf

    # User directories
    #Include conf/extra/httpd-userdir.conf

    # Info in real time on the applications and configuration
    #Include conf/extra/httpd-info.conf

    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf

    # Local access to the manual for the Apache HTTP Server
    #Include conf/extra/httpd-manual.conf

    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf

    # Various default settings
    #Include conf/extra/httpd-default.conf

    # Secure connections (SSL/TLS)
    #Include conf/extra/httpd-ssl.conf
    #
    # Note: The following text should be present to support
    # start without SSL on platforms without equivalent/dev/random
    but # a statically compiled in mod_ssl.
    #
    < IfModule ssl_module >
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    < / IfModule >

    This is so for the app2 only configuration above, I am able to call and app1 his adage "404 page not found".

    Can soomebody help me cofiguring apache so that I can call the two applications.


    Thank you
    Ankit

    >

    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104

    DebugConfigInfo WE
    PathTrim /weblogic


    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic

    >

    This configuration is a little weird. He has /app1 MatchExpression and MatchExpression /app2 and at the same time two sections . Are you sure you understand what means that the configuration?

    Try something like this...


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE

    where /app1 and /app2 are your weblogic applications contexts.

    http://download.Oracle.com/docs/CD/E11035_01/WLS100/plugins/Apache.html
    http://httpd.Apache.org/docs/2.0/mod/core.html#location

Maybe you are looking for