Storing an "indicator" to control behaviour during submit()

Hello,
I'm developing a JSF page in which I need to access some data from a database and use the data to control the GUI (components) behaviour as well as behaviour during submit().
I have a backing bean for my JSF page and bound a number of GUI components to properties on the backing bean. I also have getters and setters for those properties.
In the getter for one of the properties (bound to a GUI component -- in fact, an HtmlOutputLabel), I did the following:
-- read data from the database (this is successful)
-- got the HttpSession object from the FacesContext: session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
-- set an attribute in the session object: session.setAttribute("firstReviewDone", new Boolean(firstReviewComplete));

I don't see anything obviously wrong in what you posted; however I would make a couple of suggestions.
First, don't do work in getters. The getters will be invoked a number of times as JSF works through the lifecycle. If you need to initialize something it is generally better to use a @PostConstruct method.
Second, rather than using the session directly, the JSF approach would be to use a session scoped bean. Make a simple bean that holds your attribute (I'm sure you will add others later) and configure it as a session bean. Then inject it into your original bean. (You might find that in this approach it makes more sense to do the @PostConstruct in the new bean.)
Incorporate the above or not, but if at the end of that (potentially null) process it still isn't working I would suggest posting the code here and not just snippets and descriptions.

Similar Messages

  • Arrays as both Indicator and Control

    Is there anyway I can use an array (either a constant array or an array control) as both an indicator and control. I need this to enter and replace numeric values in an array.

    > Pretty much yes, but I want to use the same array (control or
    > constant) as both an indicator and a control. This way I can replace
    > the array contents (which would be in a loop) and don't worry about my
    > initial array and my final array being two different arrays. Can I use
    > the local variable only for this?
    As the earlier post stated, try using the local variable to update a
    control from the diagram. You probably shouldn't place it inside the
    loop, but use a shift register. Thus, take the value from the terminal,
    into the left shift register. Inside the loop, take the left shift
    register value, modify, and write to the right shift register. Outside
    the loop again, wire from the right shift register to the local.
    If you do no
    t want to allow for user modification of the array control
    during this, you can disable and reenable the array using a property node.
    If you are not really doing this for UI, but to try and reuse memory,
    then this is really the wrong approach. LV wires are really the most
    efficient way of dealing with data, and you don't need to worry about
    putting things back into an array unless it is for the UI. If it is to
    pass out of a subVI, you will put them into a new array indicator in
    fact, and when called as a subVI, this can often take no additional
    memory, using the caller's array input throughout the diagram. If you
    start using the local, this is no longer true, and you now have both
    memory and runtime overhead. So use locals, and property nodes, only
    for UI tasks, and your VIs will be much more efficient. For everything
    else, use wires and shift registers.
    Greg McKaskle

  • How to add Stored Procedures to Version Control

    My system mainly relies on stored procedures and I recently noticed I don’t have the version control for my database.
    So, my question is: How can I add stored procedures to version control?

    Once you have a database in a SQL Server Database Project, integrating to Source control is the same as any Visual Studio project. First you configure Visual Studio to use TFS for Version Control:
    Then you can configure a workspace connected to a TFS server and add your projects to source control.
    See, eg
    Walkthrough: Exploring Team Foundation Version Control
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Getting result set from stored procedures in database controls in weblogic

    I am calling a stored procedure from database control which actually returns a result set
    when i call the stored procedure like
    * @jc:sql statement="call PROC4()"
    ResultSet sampleProc() throws SQLException;
    it gives me exception saying
    "weblogic.jws.control.ControlException: Method sampleProc is DML but does not return void or int"
    I would appreciate any help
    Thanks,
    Uma

    Thanks for you reply!
    1) The stored procedure has head
    CREATE OR REPLACE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    cv_1 IN OUT SYS_REFCURSOR
    AS
    err_msg VARCHAR2(100);
    BEGIN
    --Adaptive Server has expanded all '*' elements in the following statement
    OPEN cv_1 FOR
    Select ...
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    err_msg := SQLERRM;
    dbms_output.put_line (err_msg);
    ROLLBACK;
    END;
    If I only run select .. in DBArtisan, it display all 2030,000 rows in 3:44 minutes
    2) But when call stored procedure, it will take 80-100 minutes .
    3) The stored procedure is translated from sybase using migration tools, it's very simple, in sybase it just
    CREATE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    AS
    BEGIN
    select ..
    The select part is exact same.
    4) The perl code is almost exact same, except the query sql:
    sybase verson: my $sql ="exec DISPLAY_ADDRESS";
    and no need bind the cursor parameter.
    This is batch job, we create a file with all information, and ftp to clients everynight.
    Thanks!
    Rulin

  • Pre-populate adapters behaviour during role based provisioning

    Hi all,
    I have a question about pre-populate adapters behaviour during role based provisioning.
    I'll sortly describe our architecture: we have OIM 11.1.1.3, Active Direcotry connector and obviously Active Directory as target system.
    Our scenario is: assigning a role to a user , OIM should provision two account for this user to the same target system but in two different organizational unit (Active Directory).
    Here some sample information to better understand our request:
    - OIM User userID: userid1
    - Active Directory IT Resource: ADServer1
    - Active Directory Organizational Units: OU1 and OU2
    - Role: Example Role
    - UserID of the account provisioned in OU1: admin.userid1 (in this organizational unit the UserID is composted by a prefix "admin." and the OIM User UserID "user1")
    - UserID of the account provisioned in OU2: user.userid1 (in this organizational unit the UserID is composted by a prefix "user." and the OIM User UserID "user1")
    To achieve this goal, we have created two access policies AP1 and AP2. The first access policy provision the user account in OU1; while the second one in OU2.
    Here some access policies form details:
    ### AP1 ###
    - AD Server: ADServer1
    - Organization Name: OU1
    (other fields are empty)
    ### AP2 ###
    - AD Server: ADServer1
    - Organization Name: OU2
    (other fields are empty)
    Our idea was to develope two pre-populate adapter: one to compose the userID with "admin." prefix and the other one to compose userID with "user." prefix. However this solution cannot work because obviously you can link only one pre-populate adapter to a resource form field.
    Any suggestion to avoid to create a second resource form?
    Thank in advise,
    Daniele

    Hi,
    probably your confusion is caused by my english....anyway....
    I'm trying to generate two userids and in our scenario it's simple map the organizational units. For example userids in organizational units OU1 have "admin." prefix; while organizational units OU2 have "user." prefix.
    Do you suggest to create a pre-populate adapter that use a lookup to set the correct prefix based on organizational unit name?
    Thank you
    Daniele

  • How to dinamically convert an indicator to control?

    Hello all,
    I need to write an application that:
    1) Reads an array of strings from a file, and show it on a indicator (and this is correctly done)
    2) Edit the array, as it was a control
    3) Elaborate the strings (My array is a list of SPI commands, that are sent to an external device)
    4) Optionally, save the modified array back to a file
    How can this be done? It's not possible to think of a property node that converts the indicator to control, because the indicator is connected to a source of data, and the control should be connected to a destination... (an SPI driver in my case)
    I somehow need an item with two connections, one entering and one exiting.
    Thanks
    Solved!
    Go to Solution.

    Hello all,
    and thanks for your replies!
    I think I've adopted a solution similar to the one you suggested, obtaining this front panel (see "frontpanel1.jpg" attachment)
    The frontpanel I'd like to obtain is the one depicted on "frontpanel2.jpg": one structure (control or indicator?) used both to edit and to view what I load from file.
    Maybe the only solution is to overlap a control and an indicator, and to toggle the "visible" property...
    Attachments:
    frontpanel1.JPG ‏30 KB
    frontpanel2.JPG ‏22 KB

  • SWF control behaviour

    I would really appreciate if someone takes his time trying to
    solve my problem. I want to use the SWF CONTROL behaviour that
    comes with dreamweaver, it's a built-in extension. I have swf
    inside my page and i try to attach the on click control sfw
    behaviour gotoframe (90 - for an instance), so once i click the
    link not only that it brings me to another page but it roots to the
    swf file inside the same page, going to the frame number with that
    section (they share the same swf).
    Anyone knows some real-time examples and good tutorials on
    this one, integrating all with javascript ect ect, i did everything
    as should but it didn't work, i also put labels on swf, nothing
    happens, i can only control html from swf, not the oposite.
    Please help me if you can, provide some links or stuff ect
    ect
    Agaim my main goal is establishing swf control via html links
    (on click gotoframe, i know which frame number is my section)
    [email protected]
    Text
    Text
    Text
    Text

    You might wish to close the function test() first and then
    declare another function onCl:
    >>>
    public function test()
    var loader:Loader = new Loader;
    addChild(loader);
    var request:URLRequest = new URLRequest("wheel.swf");
    loader.load(request);
    loader.addEventListener(MouseEvent.CLICK, onCl);
    } // *** CLOSE method here
    function onCl():void
    this.gotoAndStop(1);
    <<<
    Additionally, please examine, which property is undefined and
    post its namen here.

  • Indicator and Control in one

    I am trying to construct an numeric control which will specify the width of the image a camera has to obtain.
    However, when I read out the current settings, I want the current number to also appear in the same numeric control, so it needs to act like an Indicator.
    How can I do this in Labview?
    I've tried with a local variable, but that didn't work. (maybe I did it wrong?)
    I use matlab 7.1

    Arend,
    I couldn't find any local variable or Property value node in your main VI block diagram.
    Did you create a copy of your controls in a subVI and used a local variable in the subVI? If I'm right, it won't work. The controls in the main VI and in the subVI are not the same.
    You can "return" the value from the subVI and use a local variable in the main VI with this value or, if you need to update the values during the subVI execution, you can pass a  reference of this control to the subVI and use a property node in the subVI.
    Rasputin
    LV7.1 <> W2K
    Attachments:
    Main.vi ‏21 KB
    subVI.vi ‏11 KB

  • How to control volume during call when hard buttons don't work?

    I was wondering if there is another way to increase the volume during a call when the hard + volume button does not work. Only the - volume button works. Is there possibly an on screen volume button or another screen I can go to for in call volume control. While on a call using the speaker, the volume is so low I can barely hear the person I'm talking to but I can't increase the volume anywhere. Please help! It's so frustrating  when you're using  the speaker phone and you can't hear anything. What's the point??  I also decreased the volume on a regular call while testing the buttons and now that's so low I can't hear that way either. Help!

    Double-click the Home button, swipe the icons at the bottom of the screen to the right twice and it should show a volume slider.  Adjust the volume then press the Home button.

  • Using a control as both an indicator and control

    Hello,
    I have been search and reading for a few hours now and have finally decided to post. I fear I am not using the correct terms because I am fairly new at LabView.
    I currently trying to build a user interface that uses 9 different tabs [I am using the same tab structure as in the labview example code]. There is a set of variables that will need to be on 3 of these tabs in similar form. These variables include:
    2 boolean controls
    1 boolean indicator
    1 string indicator
    12 numeric indicators
    I would like to have all of these values be the same on the separate tabs at the same time.
    For example if I press one of the boolean controls, that same boolean control should now be activated on the other tabs as well.
    If it would be possible, please do point me in the right direction of how to go about doing this. (Also the proper terminology)
    Many Thanks,
    Buffalo960 

    tbob wrote:
    I don't think you can have the same instance of controls and indicators on separate tabs.  Two options:
    1.  Create separate controls on each tab.  Put code such that if any control or indicator in the list is changed on any tab, the other similar ones get changed programatically.  You can do this with an event structure and local variables or property nodes.  Lots of programming.
    I don't think that it will be a lot of programming. For example: if he has 5 controls and want to keep all of them synchronized, with only one Case of the Event Structure he can do the job, setting the 5 controls to trigger that Case when "Value Change" and use the Event Node "NewVal" to write the same value for all controls (including the control that triggered the event, but with a code this size it will not be a big deal to write the information a again to the same control).
    Thanks
    Dan07
    Attachments:
    Multiple Controls.vi ‏39 KB

  • Using stored parameter from data control class with stacked bar-graph

    Hi folks,
    I'm relatively new to ADF & EJB so I want to apologise in advance if this question seems rudimentary to many of you.
    Edit:  I should have mentioned that I'm using JDeveloper 11.1.1.5
    I'm having a hard time determining how to retrieve the value from a variable to be assigned to a property of the bar graph I'm trying to display on my JSF page.
    I have tried to briefly summarise the logic below for reference.
    I have a data control class (ActivityChart) that includes a method "getActivityDetail" returns a List of custom Objects (ActivityDTO) that are the underlying data for my bar graph.
    public class ActivityChart {
        private Double axisScale;
        public ActivityChart() {
            super();
            axisScale = 0.0;
        public List<ActivityDTO> getActivityDetail(List<String> businessUnits) {
            List<ActivityDTO> returnNewList = new ArrayList<ActivityDTO>();
            List<TransactionDTO> dataList = new ArrayList<TransactionDTO>();
            TransactionSessionBean transBean = lookupTransactionSessionBean();
            if (businessUnits != null && !businessUnits.isEmpty()){
                dataList = transBean.getActivityData(SystemUtil.getCurrentUser(), businessUnits);           
                returnNewList = processTransactions(dataList);
                axisScale = calcAxisScale(returnNewList);
            return returnNewList;
    ...The TransactionDTO object is basically a mirror of the entity object to store the fields from the queried db transactions.
    The ActivityDTO object contains a String value (x-axis label) and 3 Double values for the values required for the bar graph.
    What I'm trying to do is dynamically set the scale for the 2 y-axes (I'm using a dual-axis stacked bar graph) because the auto calculated values are not aligned.
    Right now I've got the two relevant elements of the bar graph hard-coded with a specific axis value:
    <dvt:y1Axis axisMaxAutoScaled="false" axisMaxValue="100.0"/>
    <dvt:y2Axis axisMaxAutoScaled="false" axisMaxValue="100.0"/>.
    The value I want to use for the Y-axis is calculated and stored in the "axisScale" variable in the above class.
    Really at a loss of how to move forward from here.
    Would very much appreciate any guidance/direction offered.
    Thanks,
    Karim
    Edited by: 973742 on Nov 28, 2012 8:12 AM

    Looks like I may have found the answer!
    I had to set up the variable in the bindings for the page and then reference the variable from the binding and add the property inputValue.
    ie. value="#{bindings.axisScale.inputValue}"

  • Error in identifying control file during 11g Upgrade..

    Oracle10gR2 OEL4 64bit non-RAC with ASM
    Hi All,
    I am trying to upgrade our database to 11g and I am getting the following error when I try to start the database with the STARTUP UPGRADE command. I am doing a manual upgrade and following the Upgrade guide:
    SQL> startup upgrade pfile='/opt/app/oracle/product/11.1.0/db_1/dbs/initFPRCTEMP.ora';
    ORACLE instance started.
    Total System Global Area 4275781632 bytes
    Fixed Size 2151248 bytes
    Variable Size 2617248944 bytes
    Database Buffers 1644167168 bytes
    Redo Buffers 12214272 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    When I checked the alertlog I found the following:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '+FLASH1/fprctemp/controlfile/ctrl02_fprctemp.ctl'
    *ORA-17503: ksfdopn:2 Failed to open file +FLASH1/fprctemp/controlfile/ctrl02_fprctemp.ctl*
    ORA-15001: diskgroup "FLASH1" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-29701: unable to connect to Cluster Manager
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '+DATA1/fprctemp/controlfile/ctrl01_fprctemp.ctl'
    *ORA-17503: ksfdopn:2 Failed to open file +DATA1/fprctemp/controlfile/ctrl01_fprctemp.ctl*
    ORA-15001: diskgroup "DATA1" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-29701: unable to connect to Cluster Manager
    Thu Aug 28 14:54:49 2008
    Checker run found 2 new persistent data failures
    ORA-205 signalled during: ALTER DATABASE   MOUNT...
    What's weird is that I checked and the ASM instance is up and running. I checked all the environment variables ( set PATH and ORACLE_HOME to new 11g home) and I also set the oratab entry to point to the new Oracle Home as the documentation says. Below are my entries from the .bash_profile file and the oratab file.
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    stty erase ^H
    ORACLE_BASE=/opt/app/oracle
    ORA_HTTP_HOME=/opt/app/oracle/product/10.2.0/http_1
    ORACLE_HOME=/opt/app/oracle/product/11.1.0/db_1
    ORACLE_ASM_HOME=/opt/app/oracle/product/10.2.0/asm_1
    ORACLE_SID=FPRCTEMP
    ORA_NLS10=$ORACLE_BASE/product/10.2.0/db_1/nls/data
    TNS_ADMIN=$ORACLE_BASE/product/10.2.0/db_1/network/admin
    LD_LIBRARY_PATH=$ORACLE_BASE/product/11.1.0/db_1/lib:$ORACLE_BASE/product/10.2.0/http_1/lib
    TEMP=/tmp
    export ORA_HTTP_HOME
    export ORACLE_SID
    export ORACLE_BASE
    export ORACLE_HOME
    export ORACLE_ASM_HOME
    export ORA_NLS10
    export TNS_ADMIN
    export LD_LIBRARY_PATH
    export TMP
    export TEMP
    unset USERNAME
    PATH=$PATH:$HOME/BIN:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORA_HTTP_HOME/opmn/bin:$LD_LIBRARY_PATH
    export PATH
    umask 022
    unset USERNAME
    oratab file entry:
    *:/opt/app/oracle/product/10.2.0/http_1:N
    +ASM:/opt/app/oracle/product/10.2.0/asm_1:Y
    FPRCTEMP:/opt/app/oracle/product/11.1.0/db_1:Y
    Thank you all.

    Hm ... please have a look into ML-Note:337737.1 (I'm just mentioning the combinations with an 11g database) - I noticed that you don't have a RAC installation but nevertheless you'll have CSS running for your ASM instance.
    CRS........ASM............DB......Certified
    11.1_____11.1_____11.1_____Y
    11.1.____10.2______11.1_____Y
    11.1_____10.1.0.3__11.1_____Y
    So upgrading the ASM instance first should solve this issue. Upgrading ASM means: you'll shutdown your database running in ASM and upgrade the ASM instance with the DBUA. It'll take just a few minutes because there's no data dictionary in ASM.
    Kind regards
    Mike
    Edited by: Mike Dietrich on Aug 29, 2008 5:26 PM

  • Using Graph as an Indicator or Control

    Hi all
    I have a simple question. How can i use the single GRAPH  as an Indicator type or a Control type by means of a boolean switch?
    Such that
    1) if i use it as an indicator then the Cursor automatically go to the calculated x and y coordinates
    2) If i use it as a control then the cursor should go wherever i want to drag it.
    Thanks

    Basically the item si simple: use SetCtrlAttribute (panelHandle, controlID, ATTR_CTRL_MODE, VAL_INDICATOR) to turn the graph as indicator, use VAL_HOT to use it as a control.
    If in indicator mode, you can set cursor position by menas of SetGraphCursor command.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Using stored proc with database control

    I have a beta copy of sp2 for wl8.1 and I see that you have added the ability to
    call stored procedures that return output variables from a database control.
    I am trying to figure out whether there is any way to return a ref cursor as an
    output variable.
    Thanks,
    Robin

    sorry, I mean for the ID field.

  • Error in identifying control file; during startup, SOLVED

    Virag_Sh: Thanks for your valuable inputs.
    Oracle is not able to identify the control files on startup.
    [oracle@localhost ~]$ sqlplus sys/change_on_install as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jun 2 11:36:25 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 88080384 bytes
    Fixed Size 1217836 bytes
    Variable Size 79694548 bytes
    Database Buffers 4194304 bytes
    Redo Buffers 2973696 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    initTSH1.ora file contents:
    CONTROL_FILES = ("/boot/u01/app/oracle/oradata/orcl/control1.ctl","/boot/u01/app/oracle/oradata/orcl/control2.ctl","/boot/u01/app/oracle/oradata/orcl/control3.ctl"
    And here are the control files:
    [oracle@localhost orcl]$ pwd
    /boot/u01/app/oracle/oradata/orcl
    [oracle@localhost orcl]$ ls -l | grep ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control01.ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control02.ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control03.ctl
    Message was edited by:
    user545563

    The new value is ((4MB * the number of cpus)/db_block_size)
    Sat Jun 2 16:10:53 2007
    Starting ORACLE instance (normal)
    Sat Jun 2 16:10:53 2007
    System parameter db_block_buffers enabled without VLM on.
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    Unable to find dynamic library libocr10.so in search paths
    RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
    LD_LIBRARY_PATH is not set!
    The default library directories are /lib and /usr/lib
    Unable to find dynamic library libocrb10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as /boot/u01/app/oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned off.
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    processes = 50
    shared_pool_size = 54525952
    control_files = /boot/u01/app/oracle/oradata/orcl/control01.ctl, /boot/u01/app/oracle/product/10.2.0/db_1/dbs/;
    db_block_buffers = 512
    log_buffer = 2927616
    log_checkpoint_interval = 10000
    db_files = 80
    db_file_multiblock_read_count= 8
    global_names = TRUE
    parallel_max_servers = 5
    max_dump_file_size = 10240
    db_name = DEFAULT
    MMAN started with pid=4, OS id=7709
    PMON started with pid=2, OS id=7705
    PSP0 started with pid=3, OS id=7707
    LGWR started with pid=6, OS id=7713
    DBW0 started with pid=5, OS id=7711
    RECO started with pid=9, OS id=7719
    MMON started with pid=10, OS id=7721
    MMNL started with pid=11, OS id=7723
    SMON started with pid=8, OS id=7717
    CKPT started with pid=7, OS id=7715
    Sat Jun 2 16:11:01 2007
    ALTER DATABASE MOUNT
    Sat Jun 2 16:11:01 2007
    ORA-00202: control file: '/boot/u01/app/oracle/product/10.2.0/db_1/dbs/;'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Sat Jun 2 16:11:01 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    The error is here:
    ORA-00202: control file: '/boot/u01/app/oracle/product/10.2.0/db_1/dbs/;'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Don't know how is /boot/u01/app/oracle/product/10.2.0/db_1/dbs/ directory getting added to while searching for the control file.
    control files are located in directory: /boot/u01/app/oracle/oradata/orcl/control01.ctl
    init.ora,initTSH1.ora and spfileTSH1.ora all have control file location as
    /boot/u01/app/oracle/oradata/orcl/control01.ctl
    [oracle@localhost dbs]$ cat spfileTSH1.ora
    *.CONTROL_FILES='/boot/u01/app/oracle/oradata/orcl/control01.ctl',';'
    *.db_block_buffers=100# SMALL
    *.db_file_multiblock_read_count=8# SMALL
    *.db_files=80# SMALL
    *.db_name='DEFAULT'
    *.global_names=TRUE
    *.log_buffer=32768# SMALL
    *.log_checkpoint_interval=10000
    *.max_dump_file_size='10240'# limit trace file size to 5 Meg each
    *.parallel_max_servers=5# SMALL
    *.processes=50# SMALL
    *.shared_pool_size=52132659
    [oracle@localhost dbs]$
    In init.ora
    CONTROL_FILES = ("/boot/u01/app/oracle/oradata/orcl/control01.ctl","/boot/u01/app/oracle/oradata/orcl/control02.ctl","/boot/u01/app/oracle/oradata/orcl/control03.ctl");
    In initTSH1.ora
    # define two control files by default
    CONTROL_FILES = ("/boot/u01/app/oracle/oradata/orcl/control01.ctl","/boot/u01/app/oracle/oradata/orcl/control02.ctl","/boot/u01/app/oracle/oradata/orcl/control03.ctl");
    [oracle@localhost orcl]$ pwd
    /boot/u01/app/oracle/oradata/orcl
    [oracle@localhost orcl]$ ls -l | grep ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control01.ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control02.ctl
    -rw-r----- 1 oracle oinstall 7061504 May 31 15:19 control03.ctl

Maybe you are looking for

  • How to reference v$database in a package

    How do you reference the view v$database in a package? CREATE OR REPLACE package body temp as dbname varchar2(10); procedure temp_proc is begin select name into dbname from v$database; end; end; Says table or view does not exist when I try to compile

  • Question On 16x9 Aspect Ratio

    I set Easy Setup to DV-NTSC Anamorphic and captured my 10 hours of underwater video from Mini-DV that was shot in 16x9 (not HD). I then created my video, including stills, title text etc. When I watch my project, my titles and still pictures take up

  • How to convert pdf , psd files to jpg or png

    Hi All, how to  convert PDF, Ai, EPS, CDR, PSD,BMP, GIF, TIF, TIFF to jpg or png image format

  • 199 GB backup file on Mac OSX HD

    So I have a 199 GB file on my Mac OSX HD that's classified as "BackUp." I also have Time Machine on and I'm backing up to an external hard drive. How do I delete the backups on my Mac? Can I? Because they're taking up too much space now...

  • Slow iD CC

    im having big problem with new CC version. Works compere to CS6 really slow, when try to highlight text takes sec or two. and moving around project is quite annoying. anyone have similar problem?   I even reinstall OS and all Adobe applications. than