Access denied to a READ-ONLY data source
Post Author: covey9257
CA Forum: Data Connectivity and SQL
I'm using Crystal 10 sevice pack 6. My report is using an ODBC connection to a PSql 9.5 stored procedure. The stored procedure creates a temp table and inserts records from 3 different ticket tables. It has one parameter in it that selects which location to load the table with. My report works fine as long as I don't try to put any of the fields from the temp table on the report. If I do, then I get the following error.
Failed to open a rowset. Details: 42000:[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager][SPEng][Pervasive][ODBC Engine Interface]Access denied to a READ-ONLY data source.
I found that this was an issue in Crystal 9.0, but nothing with cr 10.
Does anyone know of a work around or fix for this scenario??
Thanks - Cathy
Thanks for the quick reply Don.
If you have the option that Pervasive uses to not use the exclusive lock on the DB try adding it to the SQLExpression function in CR.
I am not sure how to accomplish this. I've done some quick searching but cannot come up with SQL that indicates locking unless I am using some kind of language like VB or C#.
Here is my Command Object statement
INSERT INTO RASAPSign
(sVendNo, sChqNo, dtDateSigned)
VALUES
('{?VendNum}', '{?ChqNum}', CURDATE());
SELECT sVendNo, sChqNo, dtDateSigned
FROM RASAPSign
WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
Can you give me an idea of what to change? Or at least what terminology to search for?
I tried this option with BEGIN and END
BEGIN
INSERT INTO RASAPSign
(sVendNo, sChqNo, dtDateSigned)
VALUES
('{?VendNum}', '{?ChqNum}', CURDATE());
END
SELECT sVendNo, sChqNo, dtDateSigned
FROM RASAPSign
WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
But I get a syntax error.
Thanks, rasinc
Edited by: rasinc on Apr 14, 2011 3:28 PM
To show code with Begin and End
Similar Messages
-
Editable and Read-Only Date Picker have different display formats -- Bug?
Hi all,
This is a follow on to a previous posting about getting a Date Picker field to display read-only (Date Picker and Read-Only Condition works on LAST state of element
Now past that hurdle, I have noticed something about the date picker field when it is displays read-only. Namely, the date format is not the format selected, nor does the read-only date format comply with the format mask in the source section.
I've modified my small test app to work as intended in order to demonstrate this feature. I also opened it up so everyone can see it <blush>. You can find it here: http://htmldb.oracle.com/pls/otn/f?p=42513: Please navigate to the Update Project tab.
When a project in Program One through Four is selected (which has a Spec Committed date), the date is displayed DD-MON-YY format. When a project the other Programs (which do not have Spec Committed dates at the time of this writing) are selected, and a date value selected with the date picker, the date is displayed in the anticipated DD-MON-YYYY format.
Anyone else notice this, or have I just missed something obvious?
Thanks,
PetieI'm not sure why this happens but to work around it I added this before header process code to the page:
execute immediate 'alter session set nls_date_format = ''DD-MON-YYYY''';
Scott -
Using cache for read only data
In my application I have to display some read only data (in number of drop down present on several portlets)
this data might be driven from the database or from some XML/property file.Not decided yet.
for example : Country /state/City/Zip code etc..
Kindly let me know how can I implement the same in Weblogic Portal 10.0.
Do I have to use some third party caching mechanism like Hibernate cache for this
or
Weblogic portal do support caching ??
Please suggest the all possible soultions to implement this.Cache cache = CacheFactory.getCache("yourCache"); //any name can be passed, and you can create as many as you want , perhaps by functionality, perhaps by size etc. If you want to configure statically you must use this name in the xml file. If you define it in the xml file , you can administer the cache from Portal Admin
cache.put("key","value");
cache.get("key");
There are other advanced things you can do like Time To live / flushing / auto reload the cache which is all described in the javadoc
regards
deepak -
Accidently changed the "ownership & permissions" access admin setting to "read only"
In the "Get Info" window on my MacBook hard drive icon, I accidently changed the "ownership & permissions" access admin setting to "read only" & now it won't re-boot the operating system. Just displays the Apple logo & running wheel on a white screen . Any advice on how best to re-set/restore would be very much appreciated, thanks
This might help. Otherwise, it might be necessary to reinstall.
https://discussions.apple.com/docs/DOC-2240 -
Virt-install hangs at "Write protecting the kernel read-only data",
I am trying to Install Oracle Linux 5.4 as a Paravirtualized Machine on an Oracle VM Server (2.2.1).
Following are the steps that I followed:
I have the dvd iso file on /OVS/iso_pool
1. mkdir -p /el/EL5-x86
2. mount -t iso9660 -o ro,loop /OVS/iso_pool/Enterprise-R5-U4-Server-x86_64-dvd.iso /el/EL5-x86
3. service portmap start
4. service nfs start
5. exportfs *:/el/EL5-x86
6. mkdir /OVS/running_pool/vm01
7. virt-install
and gave the following details
Name of the virtual machine: vm01
RAM:7168
disk path: /OVS/running_pool/vm01/system.img
disk space: 80GB
graphics support: yes
install location- nfs:OVM server ipaddress:/el/EL5-x86
It starts the install, but hangs at
XENBUS: Device with no driver: device/vbd/51713
XENBUS: Device with no driver: device/vbd/51714
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Initalizing network drop monitor service
Write protecting the kernel read-only data: 483k
Can you please help
Thanks,
RadhikaYes I am able to connect to the guest vnc console, and proceed with the install.
I did, Choose a language, choose a keyboard, configure TCP/IP, Manual TCP/IP configuration, after this I am getting a message "That directory could not be mounted from the server"
I tried giving the IPAdress of the OVM Server where the directory was mounted, nothing is working. I cannot proceed any further. -
Tabular Form Read Only Date Picker
Hello,
I have two or three Items with date pickers and do not want to implement
this code because it will be too many buttons on my form. I need to clear one item
at a time when the datepicker is readonly but, in a tabular form.
function f_clear_items()
{$x('P1_ITEMA').value = ''};
{$x('P1_ITEMB').value = ''};
}Then once I create a url button and pass this function I can clear the datepicker's. But, I
was wondering is there a cleaner way to this.
I have other items on the page that are named the same but, in different tables. I only want
to clear each date picker item at a time. This code works fine for a regular form.
-Element Post Element Text for the Item to Clear
a href="javascript:setValue('P1_ITEMA','');">Clear Date</aThere is a thread named 'How to clear a read only page Item...?' that states how this code works but, does not
work for a tabular form in a Master Detail page. There is a link on side the Date Picker to clear item specified but, in a tabular form Item, there is no Element tab, any ideas on how to clear a readonly date picker item using a tabular form
and not using a button for each item, thanks in advance. I am using Application Express 3.2.0.00.27.Dan,
I totally understand your point of view. So, this tabular form aspect was not tested once the Clear Date link was discovered to clear a Read Only date field. Yes, using a button to clear a date is great but, I do not want to clear every date or specified item with the click of one button for this application. It is very useful but, not for my needs at the moment.
Basically, if a date is selected and it needs to be cleared out you can just delete the value. But, if the date is readonly you can not clear/delete the date value unless you have the Clearing functionality for a particular item using the datepicker. It may not be worth the trouble Dan like you state by adding this extra code to the calender. If an invalid date is entered an error will appear anyway.
Thanks alot Dan for expanding my mind and showing me some JQuery and providing me with this link to do some further research if needed, thanks again. -
Even with parameters, reports reading entire data source and then filtering
I'm working with an Oracle database (read-only access) and Crystal Reports 2008. I have created a report and added three parameters for which I have already done all necessary steps in the select expert. But when I do a Print preview of the report, and after selecting the parameter values, the report tries to read all of the data source records before the parameters are utilized by the report. In other words, if the data source has 100,000 records, the report will return (in the background) all 100,000 records and then filter among these returned records to present/display the data according to the provided parameter values. Instead, I would like it to use the parameters first so that only those records that meet the parameter value criteria are read into the report from the "get go"...Since I only have read only access to the Oracle database, I cannot write a stored procedure either...(company policy)...Can parameters be used to read in only pertaining records instead of filtering already read in records in a given report? Is there some syntax that can be entered into a Command type connection to do this?
I've tried that but I'm now getting an error on line 6...
Crystal Reports Error:
Failed to retrieve data from the database.
Details: HYooo:[Oracle][ODBC][Ora]ORA-00911: invalid character
ORA-06512: at line 6
[Database Vendor Code: 911 ]
for the following syntax: (Not sure why...any help would be extremely appreciated!)
DECLARE
varCCN CHAR(7);
varMASLOC char(3);
varWO char(10);
BEGIN
EXECUTE IMMEDIATE '
SELECT Trim(DB.D_WO.SERIAL) AS Serial,
Trim(DB.WO.WO_NUM) AS WO,
DB.WO.WO_LINE AS Line,
DB.WO_HDR.WO_DESCRIPTION,
DB.WO.ITEM,
DB.WO.REVISION,
CASE WHEN DB.WO.ITEM=' || '''\''' || 'THEN DB.WONSD.DESC_ ELSE DB.ITEM.DESCRIPTION END AS Item_Description,
DB.WO.ORD_QTY,
DB.WO.START_DATE,
DB.WO.DUE_DATE,
DB.WO_RTG.OPERATION,
DB.D_OPERNM.D_OPER_NUM_SEQ,
DB.WC.DESCRIPTION AS WC_Description,
DB.WO.CCN,
DB.WO.MAS_LOC,
DB.D_WKINST.D_WORK_INSTRUCTION,
DB.D_WORTG.NA_OPER,
DB.D_WORTG.D_OPER_GROUP,
DB.GLOVCLB.CONTENT,
DB.D_WOHDR.D_J_MACHINE,
DB.D_WOHDR.D_H_MACHINE,
DB.D_WOHDR.D_STD_ASSEMBLY,
DB.D_WOHDR.D_T_C_A_ASSEMBLY,
DB.D_WOHDR.D_T_C_B_ASSEMBLY,
DB.D_WOHDR.D_B_S_ASSEMBLY
FROM DB.WO_HDR
LEFT JOIN DB.WO
ON DB.WO_HDR.CCN = DB.WO.CCN
AND DB.WO_HDR.MAS_LOC = DB.WO.MAS_LOC
AND DB.WO_HDR.WO_NUM = DB.WO.WO_NUM
LEFT JOIN DB.D_WO
ON DB.WO.WO_LINE = DB.D_WO.WO_LINE
AND DB.WO.WO_NUM = DB.D_WO.WO_NUM
AND DB.WO.MAS_LOC = DB.D_WO.MAS_LOC
AND DB.WO.CCN = DB.D_WO.CCN
LEFT JOIN DB.WONSD
ON DB.WO.WO_LINE = DB.WONSD.WO_LINE
AND DB.WO.WO_NUM = DB.WONSD.WO_NUM
AND DB.WO.MAS_LOC = DB.WONSD.MAS_LOC
AND DB.WO.CCN = DB.WONSD.CCN
LEFT JOIN DB.ITEM
ON DB.WO.REVISION = DB.ITEM.REVISION
AND DB.WO.ITEM = DB.ITEM.ITEM
LEFT JOIN DB.WO_RTG
ON DB.WO.WO_LINE = DB.WO_RTG.WO_LINE
AND DB.WO.WO_NUM = DB.WO_RTG.WO_NUM
AND DB.WO.MAS_LOC = DB.WO_RTG.MAS_LOC
AND DB.WO.CCN = DB.WO_RTG.CCN
LEFT JOIN DB.D_WORTG
ON DB.WO_RTG.OPERATION = DB.D_WORTG.OPERATION
AND DB.WO_RTG.WO_LINE = DB.D_WORTG.WO_LINE
AND DB.WO_RTG.WO_NUM = DB.D_WORTG.WO_NUM
AND DB.WO_RTG.MAS_LOC = DB.D_WORTG.MAS_LOC
AND DB.WO_RTG.CCN = DB.D_WORTG.CCN
LEFT JOIN DB.WC
ON DB.WO_RTG.WC = DB.WC.WC
AND DB.WO_RTG.CCN = DB.WC.CCN
LEFT JOIN DB.D_OPERNM
ON DB.WO_RTG.OPERATION = DB.D_OPERNM.OPERATION
AND DB.WO_RTG.WO_LINE = DB.D_OPERNM.WO_LINE
AND DB.WO_RTG.WO_NUM = DB.D_OPERNM.WO_NUM
AND DB.WO_RTG.MAS_LOC = DB.D_OPERNM.MAS_LOC
AND DB.WO_RTG.CCN = DB.D_OPERNM.CCN
LEFT JOIN DB.D_WKINST
ON DB.D_WORTG.D_WORK_INSTRUCTION = DB.D_WKINST.D_WORK_INSTRUCTION
LEFT JOIN DB.WOLN_TXT
ON DB.WO.WO_LINE = DB.WOLN_TXT.WO_LINE
AND DB.WO.WO_NUM = DB.WOLN_TXT.WO_NUM
AND DB.WO.MAS_LOC = DB.WOLN_TXT.MAS_LOC
AND DB.WO.CCN = DB.WOLN_TXT.CCN
LEFT JOIN DB.GLOVCLB
ON DB.WOLN_TXT.OBJECT_ID = DB.GLOVCLB.OBJECT_ID
LEFT JOIN DB.D_WOHDR
ON DB.WO.CCN = DB.D_WOHDR.CCN
AND DB.WO.MAS_LOC = DB.D_WOHDR.MAS_LOC
AND DB.WO.WO_NUM = DB.D_WOHDR.WO_NUM
WHERE DB.WO_HDR.CCN=' || varCCN || ';
AND DB.WO_HDR.MAS_LOC=' || varMASLOC || ';
AND TRIM(DB.WO_HDR.WO_NUM)=' || varWO || ';';
END;
Edited by: lirizarry on Nov 6, 2009 4:37 PM -
Oracle Migration Tool giving Access denied error for Read operation
Hi;
Oracle Migration tool is giving access denied error when we are trying to Read a record for Access Profiles.
We are getting (SBL-ODS-50085) error.This is happening only for few records(Access Profiles).
Although the user role is administrator having full access and privilege (Manage User and Access checked).
Pl. help me resolve the issue.
Thanks!Hi,
Does it happen when you try to read "any" Access Profile?
If yes, please have a look at the
"Admin: Users and Access Controls - Manage Users and Access - Manage Users and establish User Quotas. Define Access Profiles, Roles and Groups to manage data access controls." privilege in the role of the user you use for migration.
In order to avoid any problem, I usually create a "Migration" role temporarily and assign this role ALL the privileges to avoid such failures at the time of export.
Hope this helps,
Best regards,
Charles DUBANT.
http://www.dubant.com/ -
ConnectionCacheName not read from data-sources.xml
I created a simple web application to test the use of the ConnectionCacheBean (from the jdbc 3.0 examples page). I read through the code and some other articles regarding data sources and noted that you "should" be able to set the connection cache name and caching enabled, as well as failover support, even in oc4j 9.0.4 and 10.1.2. I tried this (at least the first two), and it would NOT set the cache name.
The data-sources.xml entry was the same as in the one documented here:
http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
What gives?
Also, I tried to simulate the database going down - I killed all the sessions rather than doing a shutdown, but anyway... even with a connection cache property of validatelogin (i think that's the name) to true, and a refresh of invalid connections (they'd all be invalid if I killed them), it would only reactivate ONE SESSION. If I refreshed ALL Sessions, then it would do 9 of the 10 sessions (10 being my initial cache limit).
Any ideas?
I can post the code if that is an issue.A response I got back from Frances Zhao regarding the two issues that I experienced was:
Issue#1: Cannot set the connectionCacheName via data-sources.xml
1. This is very likely because of an OC4J bug that affects the actual order of
setting each <property> specified in data-sources.xml. The connection cache
in OracleDataSource requires the cache-name property be set after the cache
is enabled; but OC4J may not always follow this order, causing the name
to be null. If you really need the cache name, you have to do it in the code
for now.
Issue#2: Can't refresh the invalid connections
2. These are known issues in the Oracle JDBC driver in both 10.1.0.4 and
10.2.0.1. The fix for the REFRESH_INVALID case will be in the next
patch release for both 10.1.x and 10.2.x; the fix for the REFRESH_ALL
case will come later. -
OBIEE access denied for some users only
Hi All,
we are using OBIEE 10.1.3.4 version on windows envorinment .The users can access the OBIEE reports using 'PORTALPATH' session varible in RPD.For some of the users are got "access denied" while they are accessing for thir particular dashboard.Eariler these user got access this dashboard with out any errors.We dnt changed in our system anything from last three months.
We have no idea why we are getting these error for particular users only.Its Prod issue we need to reslove these error ASAP.
we are getting these error"acess denied for user to path/shared/shared/_test/testdashboard
Error Codes:09XNZMXB"
but last one year its working without any issues .From our side we dnt did any changes in production like RPD level,Catalog level and config file changes , we have no idea why suddenly we are getting these kind of error for some users only not for all users.
Could u please advice me how to reslove this PROD issueASAP.
Thanks,Well its Prod (you have a dashboard called testdashboard in Prod?) anyway - someone might have changed the presentation catalogue permissions on the dashboard. All it takes is for someone to remove 'Everyone' or change a Group permission and it could effect.
If they changed the Parent folder and cascaded the changes down this might cause this issue.
You have a folder called 'Shared' - check the groups that the people are in have 'Traverse' , 'Read' or higher. Also chek dashboard permissions themselves from Settings-Manage Interactive Dashboards - Check the Padlock icon.
Are you users getting allocated into the correct WEBGROUPS ? Is this assisngment done explicitly in the webcat or via an RPD Variable ? Have you checked NQQueryl.log to make sure any init blocks are completing successfully?
Either persmissions have changed or group memebership is not completing.
Good luck
Alastair -
Capture encountered a problem reading the data source tape .
FCP 4.5
SONY DSR-20 deck
dual 1.5GHZ
There are sound drop-outs on my source NTSC mini-dv tapes
the time-code looks pretty steady in the DSR-20 deck display
however i keep getting the following message when i try to digitize:
"Capture encountered a problem reading the data on your source tape.
This could be due to a problem with the tape. Capture has been aborted
and your clip has been saved"
I've tried setting Device Control to "Non-Controllable Device" and trying to capture video ONLY [the drop-out is mainly in the sound] which has generally solved this problem in the past but to no avail.
The same message comes up.
I realize my source tapes are messed up but how to work around it?
any advice please !
thank youThe most direct work-around is to play your DV tape through the analog outs on some device and to bring the signal into a a/dv converter and to capture using 'capture now/non-controllable device'
I'm doing this as I write. A student, who did not know any better, recorded on LP mode and the timecode (and recording in general) is nearly unusable. This is the only way I've been able to get it into the system. It ain't pretty but you will have the material.
You are correct when you inquire that there will be no time code and the material will take a 2 conversion hit.
Good luck.
x -
Read-Only data fields/parameters
Hi
How can I make a data-field (parameter) Read-Only?
For instance : let's say, someone (an Admin) has filled in data into a user form, and saved it. Someone else (who does not have similar Admin status) signs in, and views the form.
I want the second person to be able to view as well as Edit the form. But, not ALL the fields. Some fields should be uneditable (i.e., read only). He can see the data in those fields. But, he is not allowed to modify them.
How is this done?
Thanks.example how this field is non-editable on condition basis, you can use your condition
<Field>
<Display class='Text'>
<Property name='value' value='Solanki'/>
<Property name='title' value='Last Name'/>
<Property name='disabled'>
<cond>
<eq>
<i>10</i>
<i>10</i>
</eq>
<s>true</s>
<s>false</s>
</cond>
</Property>
</Display>
</Field> -
Access Database Opens in Read Only for Users
I just moved an Access Database to a new server (from Server 2003 to Server 2012). From the server, using Office 2010, I can open the database without issue but, if a user try's to open the same database from either a shortcut or mapped with Office 2010,
they get the message that the database is Read Only. Did I miss a step in moving the database to the new server? ThanksHi,
Did your user get the error message "You are trying to open a read-only database..."? If it was, please try the following method:
On the desktop, double-click My Computer.
Locate the Microsoft Access database that you moved.
Right-click the database name, and then click Properties.
In the Properties dialog box, clear the Read-only check box under
Attributes.
Click OK to apply the change.
Open your database in Access.
Resource:
http://support.microsoft.com/kb/324666/en-us (It also applies to Access 2010)
Hope it's helpful.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Is it possible to have access to PU12 in read only to avoid SOD issues?
Hi
We would like to provide PU12 to a small number of users for troubleshooting purposes with our payroll interface, however PU12 transaction is one that is a SOD issue, namely: 'Modify payroll master data and then process payroll. Potential for fraudulent activity'
Is there an equivalent read only transaction that SAP has to view the export history data possibly, or else a way to change the settings of PU12 to make it read only via a custom tcode?
Any advice would be very helpful.
Thanks
NicolaHi,
Make the variant of the screen and provide the separate Tcode using SE93.
Good Luck
Om -
What is the best way to ensure that data in the cache is not modified after it is placed in the cache? Is there a way to specify that objects are "read-only"?
My cache clients should have the capability to read and write from/to the cache, but should not be able to modify (or overwrite) exisiting entries. They should just be able to read exisiting entries or add unique new entries.
Thanks!Hello,
You should be able to extend WrapperNamedCacheto achieve the behavior you want.
An example close to what you want to do is ReadonlyNamedCache
Thanks,
-Dave
Edited by: dcarrano on Dec 1, 2009 4:05 PM
Maybe you are looking for
-
Macbook pro screen stuck on grey screen while system working
Hi everyone. I would like to share with you a very annoying problem I am experiencing with my macbook pro since yesterday. It's a 15" Intel Core 2 Duo 2.4 ghz (late 2007). I should start by saying that my macbook was already having, since months, a p
-
Error when setting the Temporary Storage settings of DTP
Hi all, I am trying to set the temporary storage settings for DTP.But the moment i click on the temporary storage settings, it gives an ABAP Short Dump with the following message Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED Except.
-
Change the order of last name and first name
I use my iPhone in English, however I have a few Japanese contacts and I add their names with kanji (Japanese characters). In Japanese, the last name comes before the first name, and in English, obviously, the first name comes first. I have my settin
-
I have purchase some applications from app store using my VISA DEBIT card.
Hi Sir, I have purchase some applications from app store using my VISA DEBIT card. Apps downloaded successfully. After download when I want change my payment method again to none, it says "enter a new VISA CARD to clear outstanding. I am entering my
-
MRU fails with no failure messages
Hi, I have a tabular form based on a table. When I make some changes on some data of the form and press submit button, I am redirected without any success or failure messages and see that no changes are saved. Table on which the form is based on has