Root.sh and override ORACLE_HOME, ORACLE_OWNER

Hi
I'd like to override the ORACLE_HOME and ORACLE_OWNER value used by the root.sh script.
Oracle (in this file) say that it's possible by setting the ORACLE_HOME and ORACLE_OWNER variable. (# (1) ORACLE_HOME and ORACLE_OWNER can be defined in user's environment to override default values defined in this script.)
if we do this, is it necessary to delete the lines below...
# Default values set by Installer
ORACLE_HOME=/oracle/product/10.1.3
ORACLE_OWNER=fantomas
and is it necessary to do something else ?
Thanks in advance
Regards
A.G.

Hi
I'd like to override the ORACLE_HOME and ORACLE_OWNER value used by the root.sh script.
Oracle (in this file) say that it's possible by setting the ORACLE_HOME and ORACLE_OWNER variable. (# (1) ORACLE_HOME and ORACLE_OWNER can be defined in user's environment to override default values defined in this script.)
if we do this, is it necessary to delete the lines below...
# Default values set by Installer
ORACLE_HOME=/oracle/product/10.1.3
ORACLE_OWNER=fantomas
and is it necessary to do something else ?
Thanks in advance
Regards
A.G.

Similar Messages

  • What is the Porcess behind root.sh and orainstRoot.sh scripts run by root

    What is the Porcess behind root.sh and orainstRoot.sh scripts run by root, please replay the details wts behinds.

    http://sites.google.com/site/catchdba/Home/what-orainstroot-sh-and-root-sh-scripts-will-do
    $ sudo /local/mnt/oraInventory/orainstRoot.sh
    AFS Password:
    Changing permissions of /local/mnt/oraInventory to 770.
    Changing groupname of /local/mnt/oraInventory to dba.
    The execution of the script is complete
    $ sudo /local/mnt/oracle/product/11.1.0.6/root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
       ORACLE_OWNER= oracle
       ORACLE_HOME= /local/mnt/oracle/product/11.1.0.6
    Enter the full pathname of the local bin directory: [usr/local/bin]:
       Copying dbhome to /usr/local/bin ...
       Copying oraenv to /usr/local/bin ...
       Copying coraenv to /usr/local/bin ...
    Creating /etc/oratab file...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    Finished product-specific root actions.

  • How can i get also the files in the root directory and how can i for testing add items of IEnumerable FTPListDetail to List string ?

    What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
    get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
    You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
    This is the method i'm using to get the directory listing:
    public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
    var CurrentRemoteDirectory = rootUri;
    var result = new StringBuilder();
    var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
    using (var response = request.GetResponse())
    using (var reader = new StreamReader(response.GetResponseStream()))
    string line = reader.ReadLine();
    while (line != null)
    result.Append(line);
    result.Append("\n");
    line = reader.ReadLine();
    if (string.IsNullOrEmpty(result.ToString()))
    return new List<FTPListDetail>();
    result.Remove(result.ToString().LastIndexOf("\n"), 1);
    var results = result.ToString().Split('\n');
    string regex =
    @"^" + //# Start of line
    @"(?<dir>[\-ld])" + //# File size
    @"(?<permission>[\-rwx]{9})" + //# Whitespace \n
    @"\s+" + //# Whitespace \n
    @"(?<filecode>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<owner>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<group>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<size>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<month>\w{3})" + //# Month (3 letters) \n
    @"\s+" + //# Whitespace \n
    @"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
    @"\s+" + //# Whitespace \n
    @"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
    @"\s+" + //# Whitespace \n
    @"(?<filename>(.*))" + //# Filename \n
    @"$"; //# End of line
    var myresult = new List<FTPListDetail>();
    foreach (var parsed in results)
    var split = new Regex(regex)
    .Match(parsed);
    var dir = split.Groups["dir"].ToString();
    var permission = split.Groups["permission"].ToString();
    var filecode = split.Groups["filecode"].ToString();
    var owner = split.Groups["owner"].ToString();
    var group = split.Groups["group"].ToString();
    var filename = split.Groups["filename"].ToString();
    var size = split.Groups["size"].Length;
    myresult.Add(new FTPListDetail()
    Dir = dir,
    Filecode = filecode,
    Group = group,
    FullPath = CurrentRemoteDirectory + "/" + filename,
    Name = filename,
    Owner = owner,
    Permission = permission,
    return myresult;
    And then this method to loop over and listing :
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file" ;
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    Then updating the treeView:
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And inside a backgroundworker do work how i'm using it:
    var root = Convert.ToString(e.Argument);
    var dirNode = CreateDirectoryNode(root, "root", 1);
    e.Result = dirNode;
    And last the FTPListDetail class:
    public class FTPListDetail
    public bool IsDirectory
    get
    return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
    internal string Dir { get; set; }
    public string Permission { get; set; }
    public string Filecode { get; set; }
    public string Owner { get; set; }
    public string Group { get; set; }
    public string Name { get; set; }
    public string FullPath { get; set; }
    Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
    the files in the root directory. Only in the sub nodes.
    I will see the files inside hello and stats but i need also to see the files in the root directory.
    1. How can i get and list/display the files of the root directory ?
    2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
       This is what i tried in the CreateDirectoryNode before it i added:
    private List<string> testfiles = new List<string>();
    Then after var files i did:
    testfiles.Add(files.ToList()
    But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
    Both var files and directoryListing are IEnumerable<FTPListDetail> type.
    The most important is to make the number 1 i mentioned and then to do number 2.

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

  • How to Create Instances in the Transient Root Node and Sub Nodes from Root Node Query Method ?

    Hi All,
    I am Creating a BOPF BO with 3 Nodes,
    Node 1) ROOT -- > contains a query,
    using Root Node I have created Search UIBB Configuration in FBI.
    In testing -- > when i enter Data in the Search Criteria Fields am able to get the details in to the query method
    from Imporing parameter : 'IT_SELECTION_PARAMETERS'.
    HERE I am fetching data from a standard table and trying to fill the data in the Node : 'MNR_SEARCH_RESULT'.
    How to Append data to the Sub node 'MNR_SEARCH_RESULT' when there is no Node instance created in the ROOT Node ?
    For This  I have created an instance in the ROOT Node and Using that I tried to create Instance in the Sub Node 'MNR_SEARCH_RESULT'.
    Below is my code which i have placed in the Query method ..
    DATA : LR_DATA TYPE REF TO ZBO_S_ROOT1.
    DATA : LR_SEARCH_RES TYPE REF TO ZBO_S_MNR_SEARCH_RESULT.
    DATA : LO_CI_SERVICE_MANAGER TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER,
            LO_TRANSACTION_MANAGER TYPE REF TO /BOBF/IF_TRA_TRANSACTION_MGR.
       LO_CI_SERVICE_MANAGER = /BOBF/CL_TRA_SERV_MGR_FACTORY=>GET_SERVICE_MANAGER( IV_BO_KEY = ZIF_BO_TEST_PO_C=>SC_BO_KEY ).
       LO_TRANSACTION_MANAGER = /BOBF/CL_TRA_TRANS_MGR_FACTORY=>GET_TRANSACTION_MANAGER( ).
    CREATE DATA LR_DATA.
    LR_DATA->KEY = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( ).
    LR_DATA->ROOT_KEY   = IS_CTX-ROOT_NODE_KEY.
    LR_DATA->PIPO_MAT_ID = '100100'.
    LR_DATA->PIPO_MAT_DESC = 'MATERIAL'.
    LR_DATA->PIPO_SPRAS = 'E'.
    LR_DATA->PIPO_MATL_TYPE = 'ZPMI'.
    LR_DATA->PIPO_MATL_GROUP = 'ZKK'.
         DATA lt_mod      TYPE /bobf/t_frw_modification.
         DATA lo_change   TYPE REF TO /bobf/if_tra_change.
         DATA lo_message  TYPE REF TO /bobf/if_frw_message.
         FIELD-SYMBOLS: <ls_mod> LIKE LINE OF lt_mod.
        APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod> .
        <ls_mod>-node        =   ZIF_BO_TEST_PO_C=>sc_node-ROOT.
        <ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.
        <ls_mod>-key         = LR_DATA->KEY.
        <ls_mod>-data        = LR_DATA.
    DATA : LT_CHG_FIELDS TYPE /BOBF/T_FRW_NAME.
    DATA : LS_CHG_FIELDS LIKE LINE OF LT_CHG_FIELDS.
    DATA : LV_KEY TYPE /BOBF/CONF_KEY.
    CALL METHOD IO_MODIFY->CREATE
       EXPORTING
         IV_NODE            = ZIF_BO_TEST_PO_C=>sc_node-ROOT
         IV_KEY             = LR_DATA->KEY
         IS_DATA            = LR_DATA
         IV_ROOT_KEY        = IS_CTX-ROOT_NODE_KEY
       IMPORTING
         EV_KEY             = LV_KEY .
    CREATE DATA LR_SEARCH_RES.
    LR_SEARCH_RES->KEY           = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( )..
    LR_SEARCH_RES->PARENT_KEY    = LV_KEY.
    LR_SEARCH_RES->ROOT_KEY    = LV_KEY.
    LR_SEARCH_RES->MATNR    = '123'.
    LR_SEARCH_RES->ERSDA    = SY-DATUM.
    LR_SEARCH_RES->ERNAM    = SY-UNAME.
    **LR_SEARCH_RES->LAEDA    = .
    **LR_SEARCH_RES->AENAM    = .
    **LR_SEARCH_RES->VPSTA    = .
    *LR_SEARCH_RES->LVORM    = .
    LR_SEARCH_RES->MTART    = 'ZPI'.
    LR_SEARCH_RES->MBRSH    = 'ZTP' .
    LR_SEARCH_RES->MATKL    = 'MAT'.
    **LR_SEARCH_RES->BISMT    = ''
    **LR_SEARCH_RES->MEINS    =
    CALL METHOD io_modify->create
               EXPORTING
                 iv_node            = ZIF_BO_TEST_PO_C=>sc_node-MNR_SEARCH_RESULT
                 is_data            = LR_SEARCH_RES
                 iv_assoc_key       = ZIF_BO_TEST_PO_C=>sc_association-root-MNR_SEARCH_RESULT
                 iv_source_node_key = ZIF_BO_TEST_PO_C=>sc_node-root
                 iv_source_key      = LV_KEY
                 iv_root_key        = LV_KEY.
    I am Unable to set data to the Node . I did not get any error message or Dump while executing . when i tried to retrive data I got the details from the node but am unable to view those details in the FBI UI and BOBT UI while testing .
    Please provide your valuable Suggestions.
    Thanks in Adv.
    Thanks ,
    Kranthi Kumar M.

    Hi Kranthi,
    For your requirement you need only two nodes. Root Node and Result node. Use the same structure for both.
    To create Instance while search.
    Create Query method with input type which has the required fields for selection criteria.
    Fetch the data and create instance in the root node.
    Pass the new instance key as exporting parameter form Query Method.
    To Move data from ROOT to Result.
    Create a action at root node.
    Write a code to create new entries in Result node.
    Then configure the Search UIBB and display result in List UIBB. Add button and assign the action MOVE_MAT_2_RESULT.
    Create another List uibb to display data from Result node.
    Connect the UIBBs using wire schema. SEARCH -> LIST(ROOT) ---> LIST(RESULT).
    Give src node association for ROOT to RESULT Configuration.
    Regards,
    Sunil

  • What's the difference between "overloading" and "overriding" in Java

    What's the difference between "overloading" and "overriding" in Java

    hashdata wrote:
    What is the real-time usage of these concepts...?Overriding is used when two classes react differently to the same method call. A good example is toString(). For Object it just returns the class name and the identityHashCode, for String it returns the String itself and for a List it (usually) returns a String representation of the content of the list.
    Overloading is used when similar functionality is provided for different arguments. A good example is [Arrays.sort()|http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#sort(byte%5B%5D)]: all the sort() methods do the same thing (they sort arrays), but one sorts byte-arrays, another one sorts int-arrays, yet another one sorts Object-arrays.
    By the way, you almost certainly mean "real-world" usage. "real-time" (and thus "real-time usage) means something entirely unrelated to your question.

  • Trying to understand Root CA and Basic EFS certificates

    We recently migrated our Root CA from a Win2k3 to Win2k8R2.  The migration seems successfully, but we are still attempting to test it out.  My colleagues and I have very little knowledge of the Root CA and certificate use on the network in general.
     One of the basic tests we are trying is to make sure the new Root CA is issuing certs properly.  As part of this, we examined the "Issued Certificates" folder of the Certificate Authority.  Many of the certs listed there are issued
    to recognizable employees as the "Requester Name" and the certificate template is "Basic EFS (EFS)".  We originally assumed this was the certificate issue by our wireless when connecting.  However, our attempts to replicate and
    generate new certs has not proven that to be true.
    We have seen new certs requested and issue since the migration was complete, all from standard employees and using the "Basic EFS (EFS)" template.  However, we cannot determine what service they are using to request and be issues the cert.
     Through research and testing, I have seen that local file encryption would use and request a cert, but that is not a common service used in our company and would not account for all of the certificate requests.
    Can anyone point me in the right direction as to what standard services we could be running where almost every employees has been issued and a (Basic EFS) cert?  Wirelss, VPN, ?  None of our testing, outside of testing the local file encryption,
    has given us any results.

    Hard to say for sure what caused it initially. There are some 3rd party USB protection software suites that have been known to cause superfluous enrollments. Here is a trick to see what caused the enrollment to occur. Find one your suspect EFS certs in the
    CA database and note the request ID.
    After executing this command:
    certutil -view -Restrict RequestId=nnnn > rownnnn.txt
    You can use the following to dump the request:
    certutil rownnnn.txt > rownnnnRequest.txt
    Then look for the following attribute in rownnnnRequest.txt:
    Attribute[1]: 1.3.6.1.4.1.311.21.20 (Client Information)
      Value[1][0], Length = 4d
      Unknown Attribute type
      Client Id: = 5
      ClientIdDefaultRequest -- 5
      User: TESTDOM\User1
      Machine: test2.contoso.com
      Process:
    xxxx.exe
    Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years.

  • Setting up the class root directory and choosing class files.

    I made a simple test application as it is proposed at the J2EE 1.4 Tutorial and all worked.
    (Chapter 24 Getting started with Enterprise Beans)
    Than I deleted the ear file to try out the deploy mechanism again.
    And after generating the new application with File-> New application which worked well I also
    tried to use the EJB Wizard feature of the J2EE deployment tool. After I had selected the appropriate EJB classes to add to my jar, I clicked NEXT and I got the following message:
    The class (converter.Converter) could not be loaded:
    Please consult online help for assistance in setting up the class root directory and choosing class files.
    The online helps isnt very usefull for this type of problem.
    Do you have a hint what to do ?

    Hi san-deepu,
    I couldn't reproduce the error you are having when I followed Ch. 24 tutorial in packaging the ear. Is there anymore information in deploytool's logfile? This is in <user_home>/.deploytool/logfile, or you can run in verbose mode: <as_install>/bin/deploytool -v
    When you say you deleted the ear file, did you also close the ear file in deploytool first? You may also want to exit deploytool () , and try deleting the temporary files. Deploytool usually cleans up the temp files automatically upon exit - maybe there are some left behind that it couldn't delete. On windows the temporary files are located by default in C:\Documents and Settings\Administrator\Local Settings\Temp\sun-dt-Administrator. In deploytool go to Edit --> Preferences --> General to find what the temporary directory is set to.
    Which version of the appserver are you using? jdk version? operating system?
    J

  • I've bought my 1st Mac, since than I've replaced my old disk to a new one - and at the lab they created my new admin's name as admin.. I've changed it after 'root'ing - and now I can't find my photos either at iPhoto/photo booth,what can I do to restore ?

    I've bought my 1st Mac, since than I've replaced my old disk to a new one - and at the lab they created my new admin's name as admin.. I've changed it after 'root'ing - and now I can't find my photos either at iPhoto/photo booth, what can I do to restore restore them, they are very importent to me !!!
    Please I'll be thankfull.

    I stated that I did try to do all of this when I first set up the new computer...I did do the Setup Assistant numerous times but my old computer kept freezing half way through.  Even if I did it when I first got the new computer back in Septemeber, I would have had the same issue b/c my old computer has been 'broken' for a while.  My old computer can't handle doing too much at once and I think the setup and then migration functions I tried were too much.  That's why I was hoping I could use the migration function piecemeal.  I wish I could just check off the exact files and folders I want vs. having to choose it at the 'user' level...that's too much for my old computer to have to transfer.

  • 1300 Root-Bridge and Non-Root Bridge setup

    I have two 1300s that I am trying to set up as Root Bridge and Non-Root Bridge, however, everytime i specify one of them as a Non-Root bridge, the radio0 interface becomes disabled. The only option that i am able to pick that enables the radio0 interface is "Access Point", which is what am trying to avoid it being.
    Can anybody help me figure out how to go about this

    A non-root's radio will show as disabled if it cannot find the root AP to associate to. Make sure you have "infrastructure-ssid" configured under the SSID on both the root and non-root bridges. Also depending on code versions you may have to configure the distance command under the radio interface on the root.

  • Lining up root node and child nodes in JTree

    I have a JTree that has a root node and n child nodes. There are no sub-levels - it is structured just like AOL instant messenger. What I want to do is have the child node icons line up directly under the root nodes text. For example (if you can read this), where "-" denotes the icon:
    - root
    - child
    - child
    Currently it is something like this:
    - root
    - child
    - child
    I have been messing with the setLeftChildIndent( int ) and setRightChildIndent( int ), but they are not doing much...they seem to not want to only move the leaf nodes but all of the nodes, so its not doing exactly what I want.
    Any ideas? In the meantime I'll be looking more into how exactly those indent mutators work.
    Thanks!

    What you want is to do a setRootVisible(false) on the JTree.
    All your child nodes are then your "root level" folders.
    tree.setRootVisible(true):
    +root
    +--child1
    +--child2
    +--child3
    +----child3a
    +----child3btree.setRootVisible(false):
    +child1
    +child2
    +child3
    +--child3a
    +--child3b

  • Whole root or sparse root zones and patching

    Hi all,
    A while back, I did some cluster patching tests on a system with only sparse root zones, and one with whole root zones...and I seem to recall that the patch time was about equal which surprised me. I had thought the sparse root model mainly is patching the global zone, and even though patchadd may need to run through the sparse NGZ's...that it isn't doing much other than updating /var/sadm info in the NGZ's.
    Has anyone seen this to be true or if there are major patching improvements using a "sparse" root NGZ model over a "whole" root model?
    thanks much.

    My testing showed the same results and I was a bit surprised as well. As I dug into it further my understanding was that the majority of the patch application time goes into figuring out what to patch, not actually copying files around. That work must be done for the sparse zones in the same way as for the full root zones, we just save the few milliseconds of actually backing up and replacing the file.
    I suspect there is a large amount of slack that could be optimized in the patching process (both with and without zones), but I don't understand it nearly well enough to say that with any authority.

  • Add a root node and namespace declaration

    According to the requirement,I have a large appended .txt file.
    This .txt file is created by appending various xml files (without the namespace and root node).
    I need to add a root node and namespace declaration to the large appended .txt file so that it can be read as .xml.
    Please provide the pointers for the same.
    Thanks & Regards,
    Rashi

    My appended file looks like following.
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>56</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>123</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>B</Item>
                <ItemPrice>8</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    Now according to the requirement, I need to add namespace and root node and make it like follows:
    <ns0:output xmlns:ns0="http://xxx">
       <input>
       <Store>
          <StoreHeader>
             <StoreNbr>56</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>123</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>B</Item>
                <ItemPrice>8</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    </ns0:output>

  • Extending classes and overriding methods

    If I have a class which extends another, and overrides some methods, if I from a third class casts the extending class as the super class and calls one of the methods which gets overrided, is it the overrided method or the method of the superclass which get executed?
    Stig.

    Explicit cast can't enable the object to invoke super-class's method. Because dynamic binding is decided by the instance. The cast can just prevent you from using methods only defined in sub-class, but it does not let the object to use super-class's method, if the method's been overrided. Otherwise, the polymophism, which is one of the most beautiful feature of Object-Oriented thing, can't be achieved. As far as I know, the only way to use super-class's method is the super keyword in the sub-class, and seems no way for an object to do the same thing (I may wrong, since I haven't read the language spec).
    here's a small test:
    public class Test {
    public static void main(String[] args){
    A a = new B();
    a.method();
    ((A)a).method();
    class A{
    public void method(){
    System.out.println("A's method");
    class B extends A{
    public void method(){
    System.out.println("B's method");
    The output is:
    B's method
    B's method

  • When I run root.sh and I get OCR errors

    Hi all,
    When I run root.sh and I get following errors. There are two nodes configured on Solaris 10 for Oracle Database 10g RAC Release 10.2.0.1. I am using openfiler 2.3. and ISCSI for data storage. I have create file system OCR & VOT as Raw device and formatted these devices in Solaris skipping ocr voting disk for the first 1MB to avoid overwriting the disk VTOC. Network configuration and disk permissions are set correctly. I have installed the RAC on the same machines a few months ago for training purpose and everything was working very well. Last week, my openfiler hard disk has died. I have cleared the CRS and database on the same machines and wanted to reinstall oracle RAC on Solaris but now have following problems when I run root.sh from first node I get following errors. Please help me to fix this problem.
    This is the error I get:
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2009-12-26 17:03:38.158: [ OCRCONF][1]ocrconfig starts...
    2009-12-26 17:03:38.158: [ OCRCONF][1]Upgrading OCR data
    2009-12-26 17:03:38.173: [ OCRCONF][1]OCR already in current version.
    2009-12-26 17:03:38.192: [ OCRCONF][1]Failed to call clsssinit (21)
    2009-12-26 17:03:38.192: [ OCRCONF][1]Failed to make a backup copy of OCR
    2009-12-26 17:03:38.192: [ OCRCONF][1]Exiting [status=failed]...
    This is ifconfig –a output:
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    nfo0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 192.168.123.110 netmask ffffff00 broadcast 192.168.123.255
    ether 0:22:15:19:8:d7
    vfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
    inet 192.168.0.110 netmask ffffff00 broadcast 192.168.0.255
    ether 0:1c:f0:c8:36:3a
    this is hosts output:
    127.0.0.1 localhost
    # public network nfo0
    192.168.123.110 solaris1
    192.168.123.112 solaris2
    # privarte interconnect - (vfe0)
    192.168.0.110 solaris1-priv
    192.168.0.112 solaris2-priv
    # Public vertual ip vip on nfo0
    192.168.123.120 solaris1-vip
    192.168.123.122 solaris2-vip
    # private sotartge network for Openfiler - eth0
    192.168.0.195 openfiler1
    This is the Format output:
    AVAILABLE DISK SELECTIONS:
    0. c0d0 <DEFAULT cyl 5098 alt 2 hd 255 sec 63>
    /pci@0,0/pci-ide@8/ide@0/cmdk@0,0
    1. c2t44d0 <DEFAULT cyl 156 alt 2 hd 64 sec 32>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,0
    2. c2t45d0 <DEFAULT cyl 60 alt 2 hd 64 sec 32>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,1
    3. c2t46d0 <DEFAULT cyl 157 alt 2 hd 64 sec 32>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,2
    4. c2t47d0 <DEFAULT cyl 1148 alt 2 hd 255 sec 63>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,3
    5. c2t48d0 <DEFAULT cyl 1148 alt 2 hd 255 sec 63>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,4
    6. c2t49d0 <DEFAULT cyl 1352 alt 2 hd 255 sec 63>
    /iscsi/[email protected]%3Atsn.61af7f03092f0001,5
    Specify disk (enter its number):
    Thank you

    I made a clean installation from scratch. I have prepared the servers step by step and used Metalink Note:367715.1. and I still get following errors. Do you have any recommendation or what to do?
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2010-01-02 18:19:38.860: [ OCRCONF][1]ocrconfig starts...
    2010-01-02 18:19:38.861: [ OCRCONF][1]Upgrading OCR data
    2010-01-02 18:19:38.870: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2010-01-02 18:19:38.871: [  OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
    2010-01-02 18:19:38.871: [  OCRRAW][1]proprinit:problem reading the bootblock or superbloc 22
    2010-01-02 18:19:38.872: [ default][1]a_init:7!: Backend init unsuccessful : [22]
    2010-01-02 18:19:38.872: [ OCRCONF][1]Exporting OCR data to [OCRUPGRADEFILE]
    2010-01-02 18:19:38.872: [  OCRAPI][1]a_init:7!: Backend init unsuccessful : [33]
    2010-01-02 18:19:38.872: [ OCRCONF][1]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
    2010-01-02 18:19:38.878: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2010-01-02 18:19:38.879: [  OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
    2010-01-02 18:19:38.879: [  OCRRAW][1]proprinit:problem reading the bootblock or superbloc 22
    2010-01-02 18:19:38.879: [ default][1]a_init:7!: Backend init unsuccessful : [22]
    2010-01-02 18:19:38.885: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2010-01-02 18:19:38.887: [  OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
    2010-01-02 18:19:38.887: [  OCRRAW][1]proprinit:problem reading the bootblock or superbloc 22
    2010-01-02 18:19:38.892: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2010-01-02 18:19:38.902: [  OCRRAW][1]propriowv: Vote information on disk 0 [dev/rdsk/c2t1d0s2] is adjusted from [0/0] to [2/2]
    2010-01-02 18:19:38.934: [  OCRRAW][1]propriniconfig:No 92 configuration
    2010-01-02 18:19:38.934: [  OCRAPI][1]a_init:6a: Backend init successful
    2010-01-02 18:19:39.123: [ OCRCONF][1]Initialized DATABASE keys in OCR
    2010-01-02 18:19:39.163: [ OCRCONF][1]csetskgfrblock0: clsfmt returned with error [4].
    2010-01-02 18:19:39.163: [ OCRCONF][1]Failure in setting block0 [-1]
    2010-01-02 18:19:39.163: [ OCRCONF][1]OCR block 0 is not set !
    2010-01-02 18:19:39.163: [ OCRCONF][1]Exiting [status=failed]...

  • Error in extends root organization and roles!!

    Hi all,
    I set up multimaster LDAP, and config merging for organizations and roles. After running about 2 moths stably, all the sub orgs and users cannot extend access list of root org, and all users cannot get the access list from role.
    Logically, one user can get access list from org and role, and merge them. But now probably some configuration are changed, the root org and all role can not work correctly.
    Please help!!!
    Thank you very much.
    Best Regards,
    Peter

    Hello,
    Please help me.... Urgent!!!
    I have set merging to ldap.
    After the ldap run about one month, the root org cannot support extension, and all the roles under sub org also cannot support extension.
    I add new user under sub org, it cannot extend the access list of root org. And I add new role, the user also cannot get the access list of role.
    Please help!!!
    Thanks!
    Peter

Maybe you are looking for