User index not working as expected..
Hi all,
we have a ldap to which two instances running on two diff boxes are connected, there are approx 4000 users and all these users show up in instance one but for some strange reasons only 1000 odd users show up in instance two, ldap has been configured accordingly for maxhits....the ume index on the instance two was deleted and recreated but has not solved the prob...instance one is ep6 and instance two is ep7.0 ? can anyone who knows what might have gone wrong throw some light on this please ?
thanks in advance,
Anupama.
Thanks for the reply Scott, I have just had one of those Homer Simpson Doh! moments. I was copying the code into this post and then realised that I was actually using the value of the username item that has changed in the first parameter which attempts to get the userid:
htmldb_util.edit_user(
p_user_id => htmldb_util.get_user_id(UPPER(:P18_USER_NAME))
,p_user_name => UPPER(:P18_USER_NAME)
,p_web_password => x_default_pw
,p_new_password => x_default_pw
,p_developer_roles => x_developer_privs
,p_group_ids => x_group_ids);
and quickly realised that this would not work as it was a value that could have been modified. so I created a new hidden item to store the original and modified the call to:
htmldb_util.edit_user(
p_user_id => htmldb_util.get_user_id(UPPER(:P18_ORIG_USER_NAME))
,p_user_name => UPPER(:P18_USER_NAME)
,p_web_password => x_default_pw
,p_new_password => x_default_pw
,p_developer_roles => x_developer_privs
,p_group_ids => x_group_ids);
and it works as expected.
Thanks for your help.
Stuart
Similar Messages
-
Drag and relate from User query not working as expected
Hi All,
Could anyone shed some light on why using drag and relate from a user query is not working for me?
Drag and relate works well from all system generated queries, but not from my user queries.
For example:
- System query/report - running a system stock report and dragging the 'Item number' field result to a D&R Sales Order generates a report of all Sales Orders for the selected Item Number. As expected - success.
- User Query - running a item lookup report from a user generated query and then D&R to Sales order for the selected Item Number does not work. Error = 'No matching records found (ODBC -2028) [message 131-183]
Any ideas?
Best regards,
JohnHi John,
I believe Drag and relate only works for system form. The whole function is hard coded. It will not work for any queries including system queries.
Thanks,
Gordon -
Subtraction of two key figures normalized to result not working as expected
Hello SAP Community!
I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
In order to explain the problem I am facing please analyze below text:
1) Let's assume I have below data:
LOAD MONTH PLANT MATERIAL HORIZON MONTH FORECAST UNITS
200805 PLANT-A MAT-1 200805 510,235.00
200805 PLANT-B MAT-1 200805 74,240.00
200805 PLANT-A MAT-1 200806 438,721.00
200805 PLANT-B MAT-1 200806 74,240.00
200805 PLANT-A MAT-1 200807 356,981.00
200805 PLANT-B MAT-1 200807 74,240.00
200806 PLANT-A MAT-1 200805 0.00
200806 PLANT-B MAT-1 200805 0.00
200806 PLANT-A MAT-1 200806 510,235.00
200806 PLANT-B MAT-1 200806 74,240.00
200806 PLANT-A MAT-1 200807 438,721.00
200806 PLANT-B MAT-1 200807 74,240.00
2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Comparison Units (June 2008) 510,235.00 438,721.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Comparison Units (June 2008) 74,240.00 74,240.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
we normalize forecats to results an we get the below report:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
units, for both number of units and %. The report now look as below:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
Delta base vs. comp. units % 1.77% 2.74%
Delta base vs. comp. units 71,514.00 81,740.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
Delta base vs. comp. units % -1.77% -2.74%
Delta base vs. comp. units 0.00 0.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
5) PROBLEM:
In my report, the "Delta base vs. comp. units %" is not working as expected and
calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
So my report looks as follows:
Material Plant 2008/06 2008/07
===================================================================
MAT1 PLANT-A
Base Units (May 2008) 438,721.00 356,981.00
Base Units % (May 2008) 85.527% 85.527%
Comparison Units (June 2008) 510,235.00 438,721.00
Comparison Units %(Jun 2008) 87.298% 82.784%
Delta base vs. comp. units % 71,514.00 81,740.00 <<<WRONG!!
Delta base vs. comp. units 71,514.00 81,740.00
PLANT-B
Base Units (May 2008) 74,240.00 74,240.00
Base Units % (May 2008) 14.473% 15.702%
Comparison Units (June 2008) 74,240.00 74,240.00
Comparison Units %(Jun 2008) 12.702% 17.216%
Delta base vs. comp. units % 0.00 0.00
Delta base vs. comp. units 0.00 0.00
TOTALS Base Units 512,961.00 431,221.00
Comparison Units 584,475.00 512,961.00
The formulas are:
a) Delta base vs. comp. units %
Delta base vs. comp. units % = Comparison Units % - Base Units %
b) Delta base vs. comp. units
Delta base vs. comp. units = Comparison Units - Base Units
The KFs
- Comparison Units %
- Base Units %
Are RESTRICTED key figures (restricted to Base and comparison month variables) which
are setup as:
1) Calculate Result As: Summation of Rounded Values
2) Calculate Single Value as: Normalization of result
3) Calculate Along the Rows
The KFs
- Delta base vs. comp. units %
- Delta base vs. comp. units
are FORMULAS setup to:
1) Calculate Result As: Nothing defined
2) Calculate Single Value as: Nothing defined
3) Calculate Along the Rows: user default direction (grayed out)
Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
Any help is highly appreciated.
Thank you.
MarioHi,
The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
I hope this will solve your issue.
Regards,
S P. -
Why bitmap index not working?
I have a table containing 4.2M rows and 16 distinct fs_type_code. So I created a bitmap index ntr_fs_type_code_ind on the column. Then I run the query:
update /*+ INDEX_COMBINE(NTR_FS_TYPE_CODE_IND) */ ntr_CORPALL_20050801 d
set eqt_basket_id = NULL, index_weight = NULL
where
fs_type_code in ('EQGR','EQVG','EQDL')
and eqt_basket_id = equity_symbol
and index_weight = 0;
I clearly tell optimizer to use the bitmap index. But it turns out the optimizer ignore the index and still use full table scan.
When I created regular b-tree index, the same query (without hint) use index scan.
Can anybody tell me why the bitmap index not working here?
Thanks,<quote>I clearly tell optimizer to use the bitmap index</quote>
You are clearly not doing it right (see bellow). But anyway
1. For frequently modified tables (OLTP type application) you may want to rethink the applicability of bitmap indexes
low cardinality in itself is not enough justification for using bitmap indexes.
2. Your update statement may modify a minority, a majority, or anything in between of the total number of
rows in your table here is no one universal access method which is always better
(if there were one they wouldnt have bothered with coding the rest).
In short, index access is not always the better way.
3. Dont rush into hinting (because that optimizer is such a lousy piece of software)
and if you do, make sure you do it correctly and for the right reasons.
flip@FLOP> create table t as select * from all_objects;
Table created.
flip@FLOP> insert into t select * from t;
30043 rows created.
flip@FLOP> insert into t select * from t;
60086 rows created.
flip@FLOP> insert into t select * from t;
120172 rows created.
flip@FLOP> insert into t select * from t;
240344 rows created.
flip@FLOP> create bitmap index tx on t (object_type);
Index created.
flip@FLOP> exec dbms_stats.gather_table_stats(user,'T',method_opt=>'for all indexed columns',cascade=>true)
PL/SQL procedure successfully completed.
flip@FLOP> select object_type,count(*) from t group by rollup(object_type);
OBJECT_TYPE COUNT(*)
CONSUMER GROUP 32
DIRECTORY 32
EVALUATION CONTEXT 16
FUNCTION 1648
INDEX 23152
INDEX PARTITION 2048
INDEXTYPE 128
JAVA CLASS 163024
JAVA RESOURCE 3120
LIBRARY 224
LOB 16
MATERIALIZED VIEW 32
OPERATOR 464
PACKAGE 5488
PACKAGE BODY 32
PROCEDURE 640
SEQUENCE 144
SYNONYM 202512
TABLE 18816
TABLE PARTITION 880
TRIGGER 4768
TYPE 10640
TYPE BODY 16
VIEW 42816
480688
flip@FLOP> set autotrace on explain
update few rows CBO goes with the index no hinting
flip@FLOP> update t d set object_id=object_id-1 where object_type in ('INDEX','PACKAGE','PACKAGE BODY','TABLE');
47488 rows updated.
Elapsed: 00:00:09.02
Execution Plan
0 UPDATE STATEMENT Optimizer=CHOOSE (Cost=536 Card=47488 Bytes
=1044736)
1 0 UPDATE OF 'T'
2 1 INLIST ITERATOR
3 2 BITMAP CONVERSION (TO ROWIDS)
4 3 BITMAP INDEX (SINGLE VALUE) OF 'TX'
update lots of rows CBO goes with the ft no hinting
flip@FLOP> update t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
365536 rows updated.
Elapsed: 00:00:25.04
Execution Plan
0 UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
s=8041792)
1 0 UPDATE OF 'T'
2 1 TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
041792)
update lots of rows wrong hint syntax CBO goes with the ft
flip@FLOP> update /*+ index_combine(tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
365536 rows updated.
Elapsed: 00:00:21.00
Execution Plan
0 UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
s=8041792)
1 0 UPDATE OF 'T'
2 1 TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
041792)
update lots of rows correct hint syntax CBO goes with the index but was it better than the ft?
flip@FLOP> update /*+ index_combine(d tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM')
365536 rows updated.
Elapsed: 00:00:25.01
Execution Plan
0 UPDATE STATEMENT Optimizer=CHOOSE (Cost=1665 Card=365536 Byt
es=8041792)
1 0 UPDATE OF 'T'
2 1 INLIST ITERATOR
3 2 BITMAP CONVERSION (TO ROWIDS)
4 3 BITMAP INDEX (SINGLE VALUE) OF 'TX'
flip@FLOP> -
My problem is pretty easy to reproduce.
I created a project from scratch with a view model.
As you can see in the setter of "Age" property I have a simple logic.
public class MainViewModel : INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
private int age;
public int Age
get
return age;
set
/*Age has to be over 18* - a simple condition in the setter*/
age = value;
if(age <= 18)
age = 18;
OnPropertyChanged("Age");
public MainViewModel(int age)
this.Age = age;
private void OnPropertyChanged(string propertyName)
if (this.PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
In the MainPage.xaml
<Grid x:Name="LayoutRoot" Background="White">
<TextBox
Text="{Binding Path=Age, Mode=TwoWay}"
HorizontalAlignment="Left"
Width="100"
Height="25"/>
<TextBlock
Text="{Binding Path=Age, Mode=OneWay}"
HorizontalAlignment="Right"
Width="100"
Height="25"/>
</Grid>
And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
public partial class MainPage : UserControl
private MainViewModel mvm;
public MainPage()
InitializeComponent();
mvm = new MainViewModel(20);
this.DataContext = mvm;
I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
Case 1: Debugger is attached =>
TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
Case 2: Debugger is NOT attached =>
TextBox value will be "18" and TextBlock value will be "18" - CORRECT
It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
Has something changed in SL5 and logic in setters is not allowed anymore?
Configuration:
VisualStudio 2010 SP1
SL 5 Tools 5.1.30214.0
SL5 sdk 5.0.61118.0
IE 10
Thanks!Inputting the value and changing it straight away is relatively rare.
Very few people are now using Silverlight because it's kind of deprecated...
This is why nobody has reported this.
I certainly never noticed this problem and I have a number of live Silverlight systems out there.
Some of which are huge.
If you want a "fix":
private void OnPropertyChanged(string propertyName)
if (this.PropertyChanged != null)
//PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
Storyboard sb = new Storyboard();
sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
sb.Completed += delegate
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
sb.Begin();
The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
Please don't forget to upvote posts which you like and mark those which answer your question.
My latest Technet article - Dynamic XAML -
Events in SubVi not working as expected
Hi, I am reposting this question as my previous one didn't resulted in any satisfactory conclusion.
I have attached my Vi's which are not working as expected. If I remove ONE subVi and its associated 3 controls and two indicators, the other one works just fine, but when I add two SUB Vis, it goes messy. I am trying to learn this way, I am sure it can be done many other ways, but please help me finding out the problem doing it this way as in my final MainVi, I would like to use 8 such sub Vis. Thanks.
Solved!
Go to Solution.
Attachments:
Main.vi 11 KB
SubVi.vi 12 KB
SubVi_2.vi 15 KBYour main problem is DATA FLOW. A loop cannot iterate until EVERYTHING in it has completed. So, as you have it, you have to have both event structures execture before you can go back to look for the next event. So if you insist on having these subVIs, they need to be in seperate loops.
BTW, you can get away with a single subVI. Go into the VI properties and make it reentrant (preallocated clone). Then each call of your subVI will have its own memory space. A lot easier to maintain that way.
And I know you said you didn't want alternatives, but here's how you can do it all with a single event structure in your main loop.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Main_MODTR.vi 10 KB -
AFS ARUN Size Substitution Not Working As Expected
Hi All,
I need help with this. If any one of you have worked with AFS ARUN size substitution, kindly provide me with some details on how can I set it up. I am specially interested in setting up size substitution with two-dimensional grids.
I have setup some examples but it does not work as expected.
Here is a small example:
Say I have a size 28/30, 28/32 .........29/30....
What I want to achieve is that during ARUN if there is a shortage of stock in 28/30 then the remaining requirement qty should be confirmed from size 28/32.
with my setup after 28/30 it goes into looking for stock in 29/30, which is what I do not want.
Any inputs will be really appreciated.
Thanks!!srdfrn wrote:
Hi YOS,
I tried importing a PCX image into CVI 2010 and then sizing the image to the control and didn't see the behavior you have been describing. Would you mind posting an example (alongside an image file) that demonstrates this?
Also, one thing I noticed is that PCX images appear to be quite dated. Could upgrading them to a JPEG or PNG format be an option for you?
Thanks,
Stephanie R.
National Instruments
Stephanie, thanks for the reply.
I am very sorry to state that I made a mistake.
VAL_SIZE_TO_IMAGE indeed works.
What fails to work is VAL_SIZE_TO_PICTURE. (Second option in Fit Mode attribute in control editing panel)
I tried with JPEG and it's the same.
I am attaching an example.(Load_Image.c & ONEP_3Trow_POS1.JPG)
A panel with two picture rings.
- SW_1 remains at the intended size and the loaded picture is not clear.
- SW_2 will fit to picture size and looks OK.
Appreciate your support,
YOSsi Seter
Attachments:
Load_Image.c 2 KB
ONEP_3Trow_POS1.JPG 4 KB -
Notification "Launch the app and go to the library" not working as expected
Hello,
we are sending notification "Launch the app and go to the library" - but it's not working as expected, it's still just launching app with last open folio.
Whats wrong there? Do we need v30 app? We have V29, but this is not mentioned in documentation.
Thanks
MartinAh.
Ok, now it's clear.
Anyway i would appreciate possibility to force viewer to switch to library view after new issue is detected, even without notification. Quite often requested feature - "there is new cover in Newsstand, but customer don't know how to download new publication easily".
Martin -
DB Adapter polling as singleton process is not working as expected
Am using poller DB adapater to control the transaction per seconds to the downstream system and i want this poller process as singleton (One instance should be in running state at a time).
As suggested in oracle documents , below is the parameters configured in composite.xml file.
<service name="polling_Mange_Alert_Events"
ui:wsdlLocation="polling_Mange_Alert_Events.wsdl">
<interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/db/Application1/int_app_manageAlerts/polling_Mange_Alert_Events#wsdl.interface(polling_Mange_Alert_Events_ptt)"/>
<binding.jca config="polling_Mange_Alert_Events_db.jca">
<property name="singleton">true</property>
</binding.jca>
<property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
<property name="jca.retry.interval" type="xs:int" many="false"
override="may">1</property>
<property name="jca.retry.backoff" type="xs:int" many="false"
override="may">2</property>
<property name="jca.retry.maxInterval" type="xs:string" many="false"
override="may">120</property>
</service>
Below is the JCA file parameters configured :
<adapter-config name="polling_Mange_Alert_Events" adapter="Database Adapter" wsdlLocation="polling_Mange_Alert_Events.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/vff-int-fus" UIConnectionName="PT_APPINFRA" adapterRef=""/>
<endpoint-activation portType="polling_Mange_Alert_Events_ptt" operation="receive">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="polling_Mange_Alert_Events.ManageAlertEvents"/>
<property name="QueryName" value="polling_Mange_Alert_EventsSelect"/>
<property name="MappingsMetaDataURL" value="polling_Mange_Alert_Events-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="TRANSACTION_STATUS"/>
<property name="MarkReadValue" value="Processing"/>
<property name="PollingInterval" value="10"/>
<property name="MaxRaiseSize" value="5"/>
<property name="MaxTransactionSize" value="5"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
<property name="MarkUnreadValue" value="Pending"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
This poller process is running on clustered environment (2 soa nodes) and it is not working as expected as singleton process.
Please advise to solve this issue ?Hi,
1.Set Singleton property outside <binding.jca> like this:
<binding.jca config="polling_Mange_Alert_Events_db.jca"/>
<property name="singleton">true</property>
<property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
<property name="jca.retry.interval" type="xs:int" many="false"
2.Also you can try setting these values in jca file:
<property name="RowsPerPollingInterval" value="100"/>
<property name="MaxTransactionSize" value="100"/>
3. try to increase the polling interval time.
Regards,
Anshul -
TCP Window sizing not working as expected for Windows server 2008 R2 SP1
Hi ,
TCP window size is not working as expected. It is varying . Aplied the hotfix suggested by Microsoft and set the multipliccation factor as 1.The window size is not getting auto tuned based on the client machine. The data transfer rate is getting degraded.
Please help.
Thanks,
Pro1962Hi,
I think window auto-tuning is enabled.
You can disable it by running the following commend.
netsh interface tcp set global autotuninglevel=disabled
Hope this helps. -
Container-Managed Transaction Type Attributes not working as expected
I am having a problem with the container-managed transactions not working as expected. I have 2 methods that work as follows:
MethodA{
for(a lot)
call MethodB;
@Transaction Type = RequiresNew
MethodB{
EntityManager Persist to database
I want the code in MethodB to be committed to the database when methodB returns. The problem is that I am running out of memory and MethodA is failing. When methodA fails after numerous calls to MethodB nothing is persisted to the database.
It is my understanding that when using requires new transactions that a new transaction is started for each call to the method and ends when the method returns while the calling method transaction is suspended.
How am I misunderstanding the requiresNew transaction attribute. What can I do to make a batch insert into my database that will not run out of memory (commit when a methodB returns)?
Thanks in advance.The problem is that EJB invocation semantics for security, container-managed transactions, etc.
only apply when an invocation is made through an EJB reference. In your case, you are directly
invoking the implementation method from within the bean. The EJB container has no idea that's
happening. It's no different than invoking a utility method.
In order to get the behavior you'd like, you need to retrieve a reference to your own bean and invoke
through that. You can use SessionContext.getBusinessObject() to get the EJB reference for the
business interface through which the method in question is exposed.
--ken -
Namespaces not working as expected
Hi, I've got problems with namespaces not working as expected. When I isolate a process into a new network and mount namespace, a newly mounted file system will be visible to all processes.
Steps to reproduce:
$ sudo unshare -mn bash
bash# mount -t sysfs sysfs /sys
bash# exit
$ cat /proc/mounts
Result:
/proc/mounts will contain a new line for sysfs. This means the /sys/fs/cgroups directory will appear to be empty as the new sysfs is mounted over the old However you can undo it by
sudo umount /sys
Expected result:
The /sys directory will only be new inside the bash process started using unshare and not anymore once you exit bash.
Did I understand something wrong? Or might this be a bug in the kernel?
Note that when using
unshare -m bash
without isolating the network namespace it will refuse to mount sysfs as it is already mounted or busy. Strange.Hello, because sysfs is shared, see unshare(1) for more details.
-
UpsertDocumentAsync not working as expected
I'm using UpsertDocumentAsync to either insert or update a document, but it doesn't seem to work as expected. When I use it either inserts / creates or
replaces the document. I doubt I'm calling it wrong?
await client.UpsertDocumentAsync(documentsLink, this.document);
Working as expected (but with incorrect name) or not working as expected?
Regards,
Joakim
Joakim Rosendahl Consultant at OnTrax AB, Sweden.Found this one (doesn't contain the work PATCH though)
http://feedback.azure.com/forums/263030-documentdb/suggestions/7075256-provide-for-upsert
Voted for that one, but it doesn't seem like the developer community is interested in upsert/patch functionality =/.
Joakim Rosendahl Consultant at OnTrax AB, Sweden. -
The Notification Center Yosemite primary user does not work in my Macbook pro and the other users if it works. How can I fix it?
The Notification Center Yosemite primary user does not work in my Macbook pro and the other users if it works. How can I fix it?
-
Parallel hint as part of index not working
Hello,
I think that I am misusing the parallel hint on this one, and would appreciate some guidance. I have an insert statement as such:
INSERT INTO TABLE1
SELECT column1, column2
FROM table2;
I modified the query so that it has a parallel:
SELECT /*+ FULL(table2) PARALLEL(table2, 4) */
column1, column2
FROM table2;
This parallel helps with the query's speed. However, when I use it with the insert statement on the top, it does not insert any record, nor does it give an error message:
INSERT INTO TABLE1
SELECT /*+ FULL(table2) PARALLEL(table2, 4) */
column1, column2
FROM table2;
I put EXECUTE IMMEDIATE 'ALTER SESSION ENABLE PARALLEL DML'; at the beginning of the procedure, but that did not help.
I really need the parallel to be in the SELECT statement, that statement runs for about 3 hours without a parallel (due to large amounts of data - no problems with query itself), however it returns only about 10,000 records, and I don't need to insert those with a parallel hint.
Edited by: user577453 on Mar 17, 2009 12:25 PM -- Added last paragraph.user577453 wrote:
I think that I am misusing the parallel hint on this one, and would appreciate some guidance. I have an insert statement as such:
I put EXECUTE IMMEDIATE 'ALTER SESSION ENABLE PARALLEL DML'; at the beginning of the procedure, but that did not help.
I really need the parallel to be in the SELECT statement, that statement runs for about 3 hours without a parallel (due to large amounts of data - no problems with query itself), however it returns only about 10,000 records, and I don't need to insert those with a parallel hint.First of all, your subject is probably supposed to be "Parallel hint as part of *insert* not working" rather than "Parallel hint as part of *index* not working", am I right?
Can you show us the EXPLAIN PLAN output you get for your query and the one you get for your INSERT when using the parallel hints as posted?
Please mention your database version (4-digits, e.g. 10.2.0.3).
Please use DBMS_XPLAN.DISPLAY to format the EXPLAIN PLAN output if you're already on 9i or later, and please use the \ tag before and after the DISPLAY output to format it in fixed font for readability.
What seems to be odd that you say that the result of the query seems to be different when using it as part of the INSERT statement? Are you sure that running the query standalone returns data whereas using exactly the same query in the INSERT statement inserts no records? This would be buggy behaviour.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/
Maybe you are looking for
-
Micro SD Encrypted after Hard Reset on BlackBerry q5.
Good Morning. I Have a problem with my MicroSD card of my Blackberry Q5. For my error I typed more times an wrong password: So the phone automatically maked the Hard Reset. At the momenti i can see the name of the files(an file name of the photo)but
-
How to use ResponseWriter ?
Hello, I am a liitle confused after studying samples and the ResponseWriter API. There seem to be different ways to generate HTML markup... abstract void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String property) Write
-
I used BDLS many times but can any one explain what exactly BDLSS used for? I read that BDLSS can be used to change logical sys names remotly.(Can any one explain me on this) thank you
-
I´ve forgotten my passcode and my ipod won´t connect or appear in my PC - any ideas? Thanks.
-
Which setting do I need to capture at the highest resolution possible?...
...capturing from Digi Beta to Final Cut HD on a G5? Thanks for any help, Alex