Tables without locks
Hi
I understand that somehow I would have to create locks to avoid table collision when updating tables by several users. What happens if I don't do that, meaning while one user is writing and updating a table and another is do in the same to the same table? Will the program give a runtime error? Are all the users running the program will run into the runtime error?
Thanks,
RT
Hi Rob,
This is done to aviod any inconsistency while accessing the database.
Well locking the table ensures the basic ACID properties of the DB.
A--> Atomicity
C--> Consistency
I--> Isolation
D--> Durabilty
Trying to update the database table at the same time might result into inconsistency.
DB_SQL_ERROR runtime might be issued.
Never seen it personally though!
Also refer to
http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm
Hope that helps!
Regards,
Tanveer.
<b>Please mark helpful answers</b>
Similar Messages
-
How to modify a table without setting system to modifiable
Hi All
Is there a way to modify a table without setting the system to modifiable either in SCC4 or SE06.
We locked SCC4 in our system , however one tables are not able to modify.
table name YAUTM
Is there a way to bypass this?
Edited by: Shou Woon Wee on Jan 11, 2008 3:09 AMHi Shou......
if it gives you a message....."the client is not modifiable"/ ALIAS "table not modifiable" ...then from a security perspective....you cant, and you might not want to bypass it!
SCC4 settings are meant to be for that! Contact your Basis team for this.
The only way to bypass this is thru ....sending changes through a transport request.
Curiosity: what environment are you trying this out ? cant be sandbox or DEV!
Regards
Abhishek -
How can I protect formulae in a newly created spreadsheet without locking the whole sheet ?
How can I protect formulae from being overwritten on a newly created spreadsheet without locking the whole sheet ?
Olly,
I'll be picky here on nomenclature ;-)
Tables and other Obects can be locked, but Sheets can't be locked.
If you wish to shield some parts of your content from accidental modification, arrange your layout to put that sensitive content in tables separate from the tables that need to be accessed, and lock the sensitive ones. It's also possible, but rather clunky, to place shields over the sensitive area. A shield can be made by Inserting a Shape and positioning the shape over the sensitive area. With the shape selected, go to the Graphics Inpector and set the Opacity of the shape to zero. You will then be able to see through the shape but will no be able to Click through it to get at the cells below. This method is inconvenient because you have to worry about keeping the shape aligned with the table should the table need to change size or shape.
Jerry -
Displaying data in one row for for 2 tables without relaiton
I Have 2 tables without any relation and there is a common field and i want to display data like below
table refdet
1)
refdt----------refbr----refamt----refcat
10-aug-09---10-----34234-----101a
10-aug-009--11----23245-----102a
1-AUG-09----10----455.98----104A
19-aug-09-12-----10000-------103B
2) brdet
trdt---------brn-----brtot-----------brcat
11-aug09--10-----454000-------A
09-aug-09-12-----550000-------B
30-sep-09--10-----430000------A
09-aug-09-11-----550000-------B
i want to display data for each branch refdet.refbr = brdet.brn
refdet
Br10
refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
Br 11
10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
Br12
19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------B
i tried the following query but its not working
select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
from brdet a,refdet b
where a.refbr (+) = b.brn
union all
select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
from brdet a,refdet b
where a.refbr = b.brn (+)
its not giving the records on each row for both side its creating separte rows for each records in both table.
rgds
jytohi
-Hi jytohi,
Please lean back for a moment and study your question. Ask yourself, is this a reasonable way to ask a question?
Jopefully you'll reach the answer, "No it isn't, I need to.."
1. Turn these
1)
refdt----------refbr----refamt----refcat
2) brdet
trdt---------brn-----brtot-----------brcatinto CREATE TABLE statements.
2. Turn these
10-aug-09---10-----34234-----101a
10-aug-009--11----23245-----102a
1-AUG-09----10----455.98----104A
19-aug-09-12-----10000-------103B
11-aug09--10-----454000-------A
09-aug-09-12-----550000-------B
30-sep-09--10-----430000------A
09-aug-09-11-----550000-------Binto INSERT INTO statements
3. Turn this
refdet
Br10
refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
Br 11
10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
Br12
19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------Binto properly formatted expected output, along with a reasonable explanation of why
4. Turn this
select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
from brdet a,refdet b
where a.refbr (+) = b.brn
union all
select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
from brdet a,refdet b
where a.refbr = b.brn (+)into a properly formatted query
And last, put everything in into curly brackets {noformat}{noformat} to preserve formatting and blank space.
Best regards
Peter -
How do you hide one dimension from EPM context pane without locking it
Hi Experts,
Simple question: How can I programmatically (using vba) hide a particular dimension in the EPM context pane, without locking it?
Following API's could be used, but they all have have a mandatory parameter for the dimension member... which locks the dimension... but I need it to stay unlocked!
SetContextMember
SetContextOptions
SetContextOptionsForSeveralDimensions
And no, I do not want to use the User option to hide the full context pane.
Thanks for your advice.Hi,
You can use Hide option to just hide required dimensions with out locking.
EPM-->Options-->Context Options.
Thanks,
Raju -
How to create Table in a Table without a ViewLink for Master/Detail
Hi,
Can we create a Table within Table in OA Page without using a view link. Need a Master Detail records to be displayed but I can't use a ViewLink. Is it possible to
have a Table within Table without using a ViewLink. As I have DetailVO with multiple bind variables. I tried ViewLink but it didn't work so wondering if can achieve this
using table in table without ViewLink
ThanksHi,
I created a Table then in the table I created a detail in which I created another table I created a transient view attribute i.e. DetailFlag that I set to my outer table. When I run the page it does show me the Master records and showhide link but when I click on the show it throws an error saying:
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition of type Attribute not found
Even though all the items in Detail table are attached to VO attributes of DetailVO
As I have a different MasterVO query with some bind variables and the DetailsVO query is different with some bind variables. Now how do I capture when a user clicks on Show and at that time wants to get some values from a selected master row and pass them to my DetailVO Query so the detail data for that selected master row shows. How do I get handle to the selected Row Data so to get the some values that need to be passed to the DetailVO.
I tried following the guide but am not able to have it functioning.
Here is what I have in my controller's processRequest method
OAApplicationModule am = pageContext.getApplicationModule(webBean);
System.out.println("******* 1");
am.invokeMethod("initializeTables");
OATableBean table =
(OATableBean)webBean.findChildRecursive("OuterTable");
if (table == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "OuterTable") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
table.queryData(pageContext, true);
System.out.println("******* 2");Any help is appreciated.
Thanks -
Adding a single table without a logical join to another table (OBIEE 10g)
Sometimes I want to just display a single table without a logical join to another table in the repository. However, everytime I move it to the Business Model and Mapping layer and perform a Global Consistency Check, it tells me that it needs a logical join and I am forced to create another table to join to it. Thus creating a dimension-fact relationship. There are times I don't need this relationship and just want to display some data. Is there anyway to get around this?
Thanks in advance!Yes,You have to create a join.You cannot take single table to BMM layer.You can create an alias of the table.Join this alias and base table through any common column and take both tables to BMM and desired table to presentation layer.
Another way is to create a view in physcial layer.Write a select statement like
Select primary_key from Table
Where primary_key is primary key of base table.Join this view ith base table and repeat the steps defined for Alias.
Regards,
Sandeep -
Count the Records in an internal table without a loop.
How do i count the number of records in an internal table without using the loop statement.
The Describe statement give the total no. of records in the internal table.But i want the count of the key fields in the internal table
For eg
Row Field
1 A
2 A
3 A
4 B
5 B
6 C
Count of A = 3
Count of B = 2
Count of C = 1Dilip,
I think isn't posible. Only 3 ideas:
1ª, make other table "table2", similar to your actual table.
table2[] = yourtable[].
delete table2 where key <> 'A'.
describe table table2 lines contA.
But depending the amount of data, you may have problems in performance or memory consumption...
2ª, make other table, only with the keys fields and a count field,
data begin table2
key_field1,
cont type i.
end data.
when you append lines to yourdata, make a collect to this table:
table2-keys = yourtable-keys.
table2-cont = 1.
collect table2.
But only works if you can modify the program where data is appended, and you may be carefull when data is deleted :-(...
3ª if your data if filled in a select, you may fill the table2 of point 2ª, making a similar select but:
select keyfields count( * ) into table table2
from ...
where (the same you have to fill your original table...)
group by keys.
But you have the same problem is data is deleted later...
I hope that any of the three is useful for you...
Edited by: Diego Alvarez on Jan 5, 2010 5:09 PM -
Error: itab is a table without a header....
Hi everybody,
i get the following error after activation:
"ITAB" is a table without a header line and therefore has no component called "NUM"..
How can i solve this problem?
TYPES: BEGIN OF i_itab,
NUM TYPE I,
END OF i_itab.
DATA: itab TYPE TABLE OF i_tab.
LOOP AT myTable INTO ls_mytable.
itab-num = ls_mytable-nr.
APPEND itab.
ENDLOOP.
regards,
Sid
Edited by: Sid on Jul 7, 2009 7:39 PMSid wrote:>
> Hi everybody,
>
> i get the following error after activation:
>
> "ITAB" is a table without a header line and therefore has no component called "NUM"..
>
> How can i solve this problem?
>
>
> TYPES: BEGIN OF i_itab,
> NUM TYPE I,
> END OF i_itab.
>
> DATA: itab TYPE TABLE OF i_tab.
>
> LOOP AT myTable INTO ls_mytable.
>
> itab-num = ls_mytable-nr.
> APPEND itab.
>
> ENDLOOP.
>
Have a work area for the internal table itab. Code modified below :
TYPES: BEGIN OF i_itab,
NUM TYPE I,
END OF i_itab.
DATA: itab TYPE TABLE OF i_tab,
wa TYPE i_tab.
LOOP AT myTable INTO ls_mytable.
wa-num = ls_mytable-nr.
APPEND wa to itab.
ENDLOOP.
Hope this helps.
Regards,
Anand Patil -
Transaction data can be loaded into the Fact table without loading the
Transaction data can be loaded into the Fact table without loading the corresponding master data (Example : Sales analysis transaction data can be loaded without populating any of its dimensions master data)
a. True
b. FalseHi Kutti,
True - You need to select the option in the infopackage - alwyas load even if no master data exists.
Bye
Dinesh -
Creation of condition table without copy
During creation of Condition table ( without copying any condition from available tables), Is it possible to see all field catalouges available? and if possible then how can we see all fields available to add desired ones into our table?
Hi,
SPRO >Sales and Distribution->Basic Functions>Pricing>Pricing Control-->Define Condition Tables
In the above menu path you can find out the Field catalog what SAP has given if you want to add new field you can add provided
If you done the Enhancements
Regards,
Prasanna -
Create a new row in a table without using add new row button
I want to add a new row to the table without using the add new row button of the table. I'm not able to display default row in the table. Though if click on apply the record appears after saving in the database. Any thoughts how to implement this functionality.
Here is what you have to do.
1) You have to handle this in processRequest()
2) In the AM code , u need to check if there is already a row exisit or vo is blank
if (vo.getFetchedRowCount() == 0)
// first time
vo.setMaxFetchSize(0); // THIS IS REQUIRED.
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
else
//If already rows are there then you suppose to insert in the end
// i assume you would have execute your vo
YourVORowImpl row= (YourVORowImpl)vo.getRowAtRangeIndex(0);
vo2.insertRowAtRangeIndex();
It should work. -
I want to create an internal table without using header line and occurs 0?
hi experts,
Can anybody help me to declare an internal table without using headerline and occurs 0 options but still i have to use the functionalities that occurs 0 and header line options provide.Hi Saisri,
You can use the internal table without headerline and create a header for then internal table with the same structure. We need to use the header while manipulating with the data of the internal table.
example:
types: begin of ty_afpo,
kdauf type kdauf,
kdpos type kdpos,
ltrmp type ltrmp,
end of ty_afpo.
data : t_afpo type standard table of ty_afpo, " internal table declaration
wa_afpo type ty_afpo. " work area declaration
<after populating the data into the internal table>
loop at t_afpo into wa_afpo.
write:/ wa_afpo-kdauf, wa_afpo-kdpos, wa_afpo-ltrmp.
endloop.
This I think shall give you a basic understanding of how things work.
<b>Reward points if this helps,</b>
Kiran -
Hi,
My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country). Using Find My iPhone app on my device, I activated Lost Mode and Play Sound. However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
We recently returned home and purchased a new iPhone.
However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing. How is this possible without locking (Lost Mode Pending an internet connection)?
If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot. Is that true? If so, how do I do that?
Thank you for your time, and have a great day!
Sincerely,
- Mattjust giving this a wee bump as time is of the essence here and i need advice/ answers quick!
apologies if i've broke any rules!
alex -
Why won't my Mac Pro load things without locking up ?
Why won't my Mac Pro load things or let me do a "save as" without locking up ? I have tried to run the Apple Hardware Test and it locks up as well.
you have anitebook in forum for 65lbs towers
youneed to repair your disk directory or erase and restore
and use Recovery Mode in 10.7 and later
AHT does not lick up, not unless your laptop RAM or mobo has failed totally and died, more common for laptops that overheat, sufferwater damage, but still...
depends on how new what to do, might try macbookmpro forum.
Maybe you are looking for
-
I am getting this error when I launch HFM demo - Could not find a Hyperion Reporting and Analysis server running on demodrive.oracle.com at port 6800. Please verify your server connect string and confirm that the server is up. I have started all scri
-
Create pdf from html, how to adjust page size
I have a large html file that I need to convert to a pdf. I am able to open the html in acrobat and save as pdf, but I cannot find where to adjust the page size. When I save the html in acrobat, the saved file is still a single page, but when I open
-
Once Again, Problems with PDF Output in 3.0
Sorry that i write another thread to this topic. i think i ´ve read all other posts (and oracle documents from oracle) but i can´t find the answer to my problem there a two things i wondering about: first: What is the right port (and how can i prove
-
How do I lock my screen on Blackberry Bold 9900
I just got Blackberry Bold 9900 from Rogers can someone tell me how to lock touchscreen. Thanks Steve Day
-
After having run rman for 2 months, new tablespaces have been added today. I ran a full backup with rman, but the new tablespaces do not show with: list backup; Also RESTORE DATABASE VALIDATE; returns no errors. How can I ensure, the backup is up to