"read only" query

Hi folks
Trying to solve a problem with my cousin's eMac (which I am not particularly familiar with). I suggested he try starting up in Singe User Mode and running the repair command (sbin/fsck -f) but when he attempted this, he told me that his machine told him that it was "read only"
I therefore wondered if this was something specifically related to the eMac, or whether it's due to his particular set-up of the machine and whether there is something which needs adjusting to allow him to run this single user command
FYI as much as I've encouraged him to upgrade to OS X 10.4 , coming from the "if it ain't broke, don't fix it" school of thought, he's been afraid to do so and is therefore still running OS X 10.3.9 on his eMac
As always my utmost thanks in advance in the hope that you might be able to shed some light on my query
Warm regards
Bernard

Not sure if I understand your requirements but perhaps;
SQL> with t as (
   select 5 c1,5 c2,5 c3,5 c4 from dual union all
   select 5, 5, 5, null from dual union all
   select null, null, null, null from dual union all
   select null, null, 5, 5 from dual)
select
   nvl2(c1,1,0) +
   nvl2(c2,1,0) +
   nvl2(c3,1,0) +
   nvl2(c4,1,0) tot
from t
       TOT
         4
         3
         0
         2

Similar Messages

  • Read only query help

    Hello,
    I have read-only access to a database and I'm trying to perform a count on a decoded statement.
    I cannot update, merge, create views, or delete at all.
    example:
    vdh.vin as VIN,
    mcs.vehicle.veh_manuf_year@OCP5 as YEAR,
    mcs.veh_make.veh_make_desc@OCP5 as MAKE,
    vcbc.veh_model.veh_model_desc@OCP5 as MODEL,
    vdh.created_timestamp as "TIMESTAMP",
    max(to_char(decode(c.COMMAND_ID,'LT_FT_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) LF_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'RT_FT_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) RF_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'LT_RR_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) LR_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'RT_RR_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) RR_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'HIGH__PRESSURE_LIMIT',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) HI_LIMIT,
    max(to_char(decode(c.COMMAND_ID,'LOW__PRESSURE_LIMIT',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) LO_LIMIT,
    c.STATUS as STATUS,
    dh.DTC_CODE as DTC_CODE,
    dh.EXPLANATION_TEXT as DTC_EXPLANATION
    from vdu.c2pt_data_history c, veh_diag_history vdh,
    vdu.connected_veh_param cvp,
    module_history mh, dtc_history dh,
    mcs.vehicle@OCP5, mcs.veh_make@OCP5, vcbc.veh_model@OCP5,
    vcbc.veh_manufacturer@OCP5
    where ((c.VEH_DIAG_HISTORY_SAK = vdh.VEH_DIAG_HISTORY_SAK)
    and (vdh.CASE_SAK = cvp.CASE_SAK)
    and (dh.MODULE_HISTORY_SAK = mh.MODULE_HISTORY_SAK)
    and (vdh.VEH_DIAG_HISTORY_SAK = mh.MODULE_HISTORY_SAK)
    and (cvp.VEHICLE_SAK = vehicle.vehicle_sak@OCP5)
    and (veh_make.veh_manuf@OCP5 = veh_model.veh_manuf@OCP5)
    AND (veh_make.veh_make@OCP5 = veh_model.veh_make@OCP5)
    AND (veh_manufacturer.veh_manuf@OCP5 = veh_model.veh_manuf@OCP5)
    AND (veh_model.veh_manuf@OCP5 = vehicle.veh_manuf@OCP5)
    AND (veh_model.veh_make@OCP5 = vehicle.veh_make@OCP5)
    AND (veh_model.veh_model@OCP5 = vehicle.veh_model@OCP5)
    AND (veh_model.veh_manuf_year@OCP5 = vehicle.veh_manuf_year@OCP5))
    and c.CREATED_TIMESTAMP >= to_date ('10/20/2007 12:00:00 AM','MM/DD/YYYY
    HH:MI:SS AM')
    and c.CREATED_TIMESTAMP < to_date ('10/21/2007 12:00:00 AM','MM/DD/YYYY
    HH:MI:SS AM')
    group by vdh.vin, mcs.vehicle.veh_manuf_year@OCP5,
    mcs.veh_make.veh_make_desc@OCP5,
    vcbc.veh_model.veh_model_desc@OCP5, vdh.created_timestamp, c.STATUS,
    dh.DTC_CODE,
    dh.EXPLANATION_TEXT
    order by vdh.created_timestamp
    unfortunately it returns no data. I think there is a disconnect between table:dh and table:c
    but my main problem is how do I add another column called count which counts from 0 through 4 what the return is on:
    max(to_char(decode(c.COMMAND_ID,'LT_FT_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) LF_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'RT_FT_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) RF_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'LT_RR_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) LR_TIRE_PRESSURE,
    max(to_char(decode(c.COMMAND_ID,'RT_RR_TR_PR',TRIM (TO_CHAR
    (c.command_result, 'XXXXXXXXXXXXXXX')), ' '))) RR_TIRE_PRESSURE
    all I need to know is whether or not 1 through 4 are null or not, if not, then set the value to 1 and then if null then the value is zero and cound 1 through 4 in the column called count_pressure.
    the values may be anything from 1.23232 to 100000.00323.
    I hope this makes sense.

    Not sure if I understand your requirements but perhaps;
    SQL> with t as (
       select 5 c1,5 c2,5 c3,5 c4 from dual union all
       select 5, 5, 5, null from dual union all
       select null, null, null, null from dual union all
       select null, null, 5, 5 from dual)
    select
       nvl2(c1,1,0) +
       nvl2(c2,1,0) +
       nvl2(c3,1,0) +
       nvl2(c4,1,0) tot
    from t
           TOT
             4
             3
             0
             2

  • Authorization in BEx Query Designer: "read only" for definitions of variables

    Hello,
    I`m developing a concept of authorizations for key user who should be able to maintain certain
    objects in the query designer. For other objects they should have access “read only”.
    The users have authorizations  to  design new queries.  They should be able to use existing variables
    (SAP Business Content ( 0*) and customer variables (z*). On this point, I have a problem: in the selection window of the query designer there are only buttons to create, to delete and to edit a variable.
    The user must have authorizations for changing, although he just wants to look for the definition
    of a variable (if he wants to see their basic or global settings before using the variable).
    I can´t find a possibility to switch from “edit” to “read only”.
    The users should only see and apply variables from others (SAP, collegues), but he mustn´t be able to
    change them.
    The user needs the following authorization objects:  S_RS_COMP , activity =02 (change), also
    authorization object S_RS_COMP1. If I give the users only activity 03 (display),
    the user get the message: “display not allowed”.
    Is there any possibility to give a key user the authorization to display all variables with
    their definitions?
    Best regards
    Ricarda Seyb

    Hi raghukan,
    This is may be due to the authorization but still you can check the consistency check for these queries using RSRV.
    Regards,
    Amit

  • Querying up AR Customer OA page in read-only mode for a Single Customer

    We are building a Custom Form in which associated Customer <defined in AR> would be queried up.
    Now we want to give an option to the User to view the complete details of the Customer. We would be giving a menu option in Tools 'View Customer' thru which he would see the Full Customer Details. <AR Customer OA page>
    We have two requirements
    1> The Full Customer Details should show up in Standard OA Customer Page the moment page comes up. The user should not be required to query the details.
    2> It should be read-only and user should not be able to update any field.
    How can we achieve this requirement? I did some RnD but did not see any place in EBS where we display the Customer Page in read-only mode and that too quried up for one particular customer.
    Thanks
    Arun

    Hi Arun,
    Please let me know if find any solution for this. We have a similar scenario in which we need to call the customer Page with all the inforamtion populated, related to one customer.
    Thanks in advance,
    Mannuru

  • Read only rows in input-ready query ?

    Hi experts,
    I would appreciate your advice on the following issue: I have built an input ready querry with structures both in the rows and columns area. The aim is to make some of the rows read only.
    I have tried to set the elements that I only need for display to "Not Input-Ready (Not relevant for locking) in the Planning Tab, for the rows structure, but this doesn't work. It seems that the setting to "Inpou Ready" for the columns tkaes precedence...
    If you can think of any other way to solve this problem, please post a reply.
    thanks in advance!
    Andreea

    Hello Andreea,
    set a data slice on the values which you do nat want to be changed.
    Or exclude the values from the planning filter and include them into query with constant selection.
    Regards,
    Cornelia

  • Query faild against database that is opened in read only mode

    ORA-16000: database open for read-only access
    Hi ,
    I am quering against a database that been opened in read only mode (10g version)
    SQL> select controlfile_type,open_mode,database_role from v$database;
    CONTROLFILE_TYPE OPEN_MODE DATABASE_ROLE
    STANDBY READ ONLY PHYSICAL STANDBY
    Currently when selecting against this database
    i am getting the following error:
    SELECT PS_RF_PROVGRP_VW.SETID, PS_RF_PROVGRP_VW.PROVIDER_GRP_ID, PS_RF_PROVGRP_VW.NAME1,
    PS_RF_PROVGRP_VW.STATUS, PS_RF_PROVGRP_VW.SYNCID, PS_RF_PROVGRP_VW.SYNCDTTM
    FROM PS_RF_PROVGRP_VW
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access
    The owner of the object is PSSYS and i am running the queries as user INFORMIX.
    select owner,object_name,object_type from dba_objects where object_name ='PS_RF_PROVGRP_VW';
    OWNER OBJECT_NAME OBJECT_TYPE
    INFORMIX PS_RF_PROVGRP_VW SYNONYM
    PSSYS PS_RF_PROVGRP_VW VIEW
    User informix have "SELECT ANY TABLE" privilage
    In the source database (e.g: not the cloning one) the queries results are returning susseccfully ,
    and only in the clonning the database the problem exists.
    Does someone have an idea what the problem could be ?
    Thanks.

    Hi
    Object can become invalid, if the underlying objects are dropped/invalidated.
    So even if you create or validate the underlying objects these objects by themself do not become valid. You have to either make them valid or you should use it atleast one time as select/desc or any other query so that Oracle implicitly make it valid.
    Your source datatabase has valid synonym because after dropping/creating you must have selected that synonym atleast one, but this selection procedure would be after you copied your data to the target database.
    Regards

  • Read only vo query

    I have this query where i am getting the count of records, sum of amount in the where condition i am using status and group by statename
    select state_name,
    sum(cnt_active) cnt_active, sum(sum_active) sum_active,
    sum(cnt_inactive) cnt_inactive, sum(sum_inactive) sum_inactive,
    sum(cnt_expired) cnt_expired, sum(sum_expired) sum_expired
    from (
    select state_name,
    decode (status, 'ACTIVE',1,0) cnt_active,
    decode (status, 'ACTIVE',amount, 0) sum_active,
    decode (status, 'INACTIVE',1,0) cnt_inactive,
    decode (status, 'INACTIVE',amount, 0) sum_inactive,
    decode (status, 'EXPIRED',1,0) cnt_expired,
    decode (status, 'EXPIRED',amount, 0) sum_expired
    from voms_master
    ) group by state_name;
    I am able to execute it well in my sql developer and i am getting the correct output
    But when i use this query in read only vo it is giving me error
    Is there any restriction of which type of query to be written in read only VO.

    its working now
    semi colon was there in the end so it was saying invalid character and also some spaces were there because i copied it directly from sql plus
    Thanks for your reply

  • SQL Query (Updateable Report) conditionally set a column read-only with lov

    Hi
    I'm attempting to set a column that has a select list lov read-only if there is existing data in the column otherwise permit the end-user to enter a value using the select list.
    I've looked at Re: A better method of handling tabular forms with variable column type? and using this code as an example it almost works, except the select list lov button is still active and therefore the data can be changed. How does one conditionally disable the select list lov button in Javascript?
    TIA

    In the JS code where you make the field readonly, add another line to hide the lov opener link ( in jQuery it would be *$('<selector>').hide()* ).
    If you can provide the HTML code from your page for such a column (the JS code would depend on the template/theme), I can try helping.

  • Read Only Display of Radio group and Text area with counter not working

    Hello,
    I am using Apex 3.2, with 10g for the database
    I have this form, with fields that will set to read only when status = 'closed'
    All of the fields display as read only except for 2. I cannot figure out why this is not working correctly.
    1st field is Issues that is a text area with character counter, with a sql query behind it, that is set to null unless the query is pulling in the data.
    2nd field is Status which is a radio group that will not display as read only when status = 'closed'
    I have other fields on the form with the same format and they change to read only when the status = 'closed', I have even copied the pl/sql expression from one field to these fields and it still doesn't work correctly. I have also tried javascript for an on load event, which works, but once I click on the save button, it disables all of the page items, which works correctly, but I purposely forget to enter information, to make sure the validations are firing correctly, which it does, but the script disables everything, not allowing me to correct the errors. The javascript is firing on the on page load event.
    Any help on this is greatly appreciated.
    Mary

    Dung,
    That API seems to have a bug, it returns true/false/null, so you could use 'return not nvl(htmldb_util.current_user_in_group(p_group_name => 'APP Admin'),false)' to get a false value.
    Unfortunately there's another problem: using the read-only attributes for checkbox or radiogroup item makes them hidden. My suggestion would be to create another item that has disabled="disabled" in the HTML Form Element attribute in the item definition and display that item or the non-disabled item alternately, using conditions based on the current_user_in_group logic.
    Scott

  • Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0

    Hello,
    This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
    While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
    All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
    I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
    But these are not working for compnay code & sales area data.
    please let me know if anyone has faced this type of problem / found any solution on this.
    Best Regards,
    Shubhada

    SAP IMG  -> Cross Application Components -> Master Data Synchronization &#61664; Synchronization Control -> Synchronization Control -> Activate Synchronization options
    This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
    Suggested Values:
    Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
    Source Object: BP | Target Object: VENDOR | Active Indicator : X
    Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
    Source Object: VENDOR | Target Object: BP | Active Indicator : X
    Have you set all of the above settings??
    BHARATH

  • Define read-only authorization for specific field(s) on a form for 11.5.9

    Dear all,
    Can you pls let me know how is it possible to define read-only authorization access for specific field(s) per responsibility / user on a form in 11.5.9?
    For example I want to protect the item master file by assigning for example to users with responsibility buyer authorization to modify the buyer information but to have read-only only authorization on other sensitive fields such as make/buy flag, expense accounts, etc
    Through UI Modeller I have only managed to make specific fields on specific forms invisible, or whole tabs invisible, to specific responsibilities but this does not cover my needs as I want them to be able to view the data of the fields but to not be able to update them

    Arun,
    Almost but not quite.. The example you've given has the person VO at the top level which includes all the id's (City, State etc). My use case is slightly different.
    query 1
         select org_id, OrgName from x;
    query 2
         select emp_id, emp_name from y where org_id = x.org_id
    query 3
         multi-table join (approx 9 tables) to retrieve depts associated to employee
         where org_id = x.org_id
         and emp_id = y.emp_id
    Rather than using LOV's would it be better to create VO's and pass in the bind parameters at run time?

  • SQL Server 2005 replaced with SQL Server 2014 trying to connect front end Access as guest (read only ODBC)

    We have replaced a SQL Server 2005 with a SQL Server 2014 (new physical server.)  Have the new server set up to use SQL Server login OR Windows user login. Had old server connecting (for a particular DB) to front end Access (2010 or 2013) as guest for
    anyone logged into the Windows NT Network with a read only ODBC connection. Have the DB in the new server set to include guest as db_datareader (with only SELECT permission for the securables of each table and view being linked) but when any Windows user not
    specifically listed as a SQL DB user tries to use the front end they get an error of:
    Microsoft SQL Server Login
    Connection failed:
    SQL State: '28000'
    SQL Server Error: 18456
    [Microsoft][OCBC SQL Server Driver][SQL Server] Login failed for user {domain\user}.
    After closing that pop-up window a server login window appears. Of course, since the guest user is not specifically listed as a user in the DB that fails also. It seems like there should be a very simple solution to this, but I can't seem to find it. I want
    to allow anyone logged in on the Windows system (locally) to be able to open the MS Access file (on their work station machine) and run their own (read only; select) queries on the SQL Server database. Any suggestions?
    Thanks a billion in advance ----

    Thanks for the response Olaf. I have now spent weeks researching this. I realize that using the guest account in most situations is not advised. As mentioned, I have restricted the guest account to allow the db_datareader role only, and have explicitly denied
    all other roles, as well as allowing select only, and still have no access for the guest account.
    The suggested fix in the second link you provided, of using Windows groups is not plausible for my situation either. We are a scientific field research institution, with a few long term users and lots of users that may have Windows accounts for a few months,
    and then they are gone. It would be a nightmare for the network tech to try to keep a group account up to date, and we need to give access (read only, of course) to anyone logged into the system. Realize that the ONLY access of any kind to this database is
    thru MS Access ACCDB, using a (by default) read only OCDB connection.
    This type of access is used particularly because researchers need to be able to set up their own queries, and the MS Access query interface is particularly convenient for people who are not themselves SQL experts, yet are trying to get some very advanced
    levels of output. Putting the database online is not practical because then we are back to the need for a comprehensive query interface, and just picking up general subsets of the data online (from a basic web page search feature) would be out of the question,
    since the result set would involve hundreds of thousands if not millions of records.
    So - that said - what exactly would you suggest, assuming we don't have the funds to buy a whole new system, and have spent plenty of money with Microsoft's Enterprise level MS Office so that all work stations have MS Access, and Microsoft's SQL Server,
    as well as running our network on Microsoft's network software.

  • How to remove a oracle form from read only format

    I need to personalize an Oracle form for one responsibility. But when i open through that responsibility, it is opening in read only format. When i open the same form through super user responsibility, then it is opening up-datable format. I tried different options like 'System Profiles- HR Query only to 'NO'', 'Removing Query-Only'. but still i can open it only in read only format where i need to make some fields up-datable.
    Any suggestions please?

    Hi All,
    I have an Standard E-Business Suite screen.
    This is the Transaction Overview Screen, which is in Read-Only Mode.
    The Value of the unit price is rounded on 2 decimal.
    We tried to change this with Perzonilization, but the the error is coming up
    "FRM-40602: Cannot insert into or update data in a view"
    What are we doing wrong.
    Thanks for your support.
    Best regards Marcel Snoeck

  • Form personalization for a read only responsibility for a custom form

    Hi,
    I have a read only responsibility. My requirement is to make a custom form updatable through this responsibility but wth a condition that only the specific custom form should be updatable and rest all other form accessed through read only responsibility be read only. How can i achieve this using form personalization?
    Pls give me detailed steps if possible.
    Thanks

    I tried override Query Only values through Forms Personalization but it did not work for me. With a bit of determination I might have been able to work around it but no luck on that front.
    You can do it this way, although it's a bit cumbersome:
    1. Clone every function and menu in the Responsibility
    2. In all but your custom function set the Function parameter QUERY_ONLY=YES

  • Possible?Multi-Entity View Object with one Entity Object that is Read-only.

    I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
    I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
    The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
    oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
    Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
    Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
    Jeremy.

    Steve, thanks for your quick response to my question.
    To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
    Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
    Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks!

Maybe you are looking for

  • Installing 8.1.7 on RedHat Linux  7.3

    Dear All, I have been trying installing Oracle 8.1.7 on Linux 7.3, the OUI proceeds till the "Net 8 Configuration" and hangs. Both netasst and dbassist from command line hang-up. Can any one suggest way out to manually create a DATABASE and TNS Regar

  • Hexadecimal to decimal conversion help needed

    hi all i need to know if there exists a method to convert a hexadecimal number to a decimal number If so please let me know which class to refer As a sample to make it more clear i will be reading a hexadecimal number from a file and want to convert

  • Apple ID change on an iPhone 5

    my wife uses one of my i phone 5's. I want to change the apple id on the phone to hers and delete mine. however i want to keep the existing content on the phone as thats hers and it has not been sync to i cloud. any ideas

  • PC Suite doesn´t connect to N80 IE after upgrade

    I recently got the new N80 IE. Everything was fine using the version of PC Suite which comes with the phone. But after upgrading the the newest version, the USB cable connection doesn´t work anymore (using the phone as USB disk still works). There ar

  • How to enter values like SYSDATE in the Data Grid Editor

    I would need to insert sysdate in a field via the Data editor. When I do this, it replaces it by to_Date('sysdate', blabla...) Is there a way to tell sqldeveloper sysdate is a key value (like :sysdate in forms) ? Regards Gilles