Oracle Exchange partition feature not working as expected?
I used the Exchange Partition feature to swap segments between 2 tables- one Partitioned, and one Non-Partitioned. The exchange went well. However, all the data in the partitioned table has gone to the partition which stores the maxbound values.
Any ideas if this is the default behavior or have i missed out something?
/** actual table names changed due to client confidentiality issues */
-- Drop the 2 intermediate tables if they already exist
drop table ordered_inv_bkp cascade constraints ;
drop table ordered_inv_t cascade constraints ;
1st create a Non-Partitioned Table from ORDERED_INV and then add the primary key and unique index(s):
create table ordered_inv_bkp as select * from ordered_inv ;
alter table ordered_inv_bkp add constraint ordinvb_pk primary key (ordinv_id) ;
create unique index ordinv_scinv_uix on ordered_inv_bkp(
SCP_ID ASC,
INV_ID ASC,
ANATLOC_ID ASC,
SOI_ID ASC,
CANCEL_TS ASC );
-- Next, we have to create a partitioned table ORDERED_INV_T with a similar
-- structure as ORDERED_INV.
-- This is a bit tricky, and involves a pl/sql code
declare
l_dt_start DATE;
l_ptn VARCHAR2(50);
cnt PLS_INTEGER;
l_cnt_initial PLS_INTEGER;
ts_name VARCHAR2(50);
l_sql VARCHAR2(10000);
ts_indx VARCHAR2(100);
l_num_errors NUMBER ;
l_num_errors_ok NUMBER ;
l_user_name VARCHAR2(50) ;
l_sysdate VARCHAR2(50);
l_cnt_script PLS_INTEGER ;
BEGIN
SELECT COUNT(*) INTO cnt FROM user_TABLES
WHERE TABLE_NAME='ORDERED_INV_T';
IF cnt=0 THEN
l_sql:= 'CREATE TABLE ORDERED_INV_T
PARTITION BY RANGE (ORDINV_TIME)
( PARTITION TP_ORDINV_MAX VALUES LESS THAN (MAXVALUE)
TABLESPACE TEST_TPT_DATA
ENABLE ROW MOVEMENT
AS SELECT * FROM ORDERED_INV WHERE 1=0 ';
EXECUTE IMMEDIATE l_sql;
-- Add section to set default values for the intermediate table OL_ORDERED_INV_T
FOR crec_cols IN (
SELECT u.column_name ,u.nullable, u.data_default,u.table_name
FROM USER_TAB_COLUMNS u WHERE
u.table_name ='ORDERED_INV' AND
u.data_default IS NOT NULL )
LOOP
l_sql:= 'ALTER TABLE ORDERED_INV_T MODIFY '||crec_cols.column_name||' DEFAULT '||crec_cols.data_default;
-- dbms_output.put_line('chk data default => ' || l_sql) ;
EXECUTE IMMEDIATE l_sql;
END LOOP;
END IF;
-- Split partition to create more partitions
select TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') into l_sysdate from dual;
DBMS_OUTPUT.PUT_LINE ('Finding oldest value at ' || l_sysdate) ;
EXECUTE IMMEDIATE 'SELECT NVL(TRUNC(MIN(OL_ORDINV_TIME),''MONTH''),TRUNC(SYSDATE,''MONTH''))
FROM ORDERED_INV' INTO l_dt_start;
select TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') into l_sysdate from dual;
DBMS_OUTPUT.PUT_LINE ('Started creating partitions at ' || l_sysdate) ;
LOOP
EXIT WHEN l_dt_start > ADD_MONTHS(TRUNC(SYSDATE,'MONTH'),1);
l_ptn:='tp_ordinv_'|| TO_CHAR(l_dt_start,'YYYYMM');
l_sql:= 'ALTER TABLE ORDERED_INV_T
split partition TP_ORDINV_MAX at (TO_DATE('''|| TO_CHAR(ADD_MONTHS(l_dt_start,12),'YYYYMM') ||''',''YYYYMM''))
into ( partition '||l_ptn||' , partition TP_ORDINV_MAX)';
execute immediate l_sql;
l_dt_start:=add_months(l_dt_start,12);
END LOOP;
END;
-- Also, add indexes to this table
alter table ORDERED_INV_T add constraint ordinvt_pk primary key (ordinv_id) ;
create unique index ordinvt_uix on ordered_inv_t(
SCP_ID ASC,
INV_ID ASC,
ANATLOC_ID ASC,
SOI_ID ASC,
CANCEL_TS ASC );
-- Next, use exchange partition for actual swipe
-- Between ordered_inv_t and ordered_inv_bkp
-- Analyze both tables : ordered_inv_t and ordered_inv_bkp
BEGIN
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'HENRY220', TABNAME => 'ORDERED_INV_T');
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'HENRY220', TABNAME =>'ORDERED_INV_BKP');
END;
SET TIMING ON;
ALTER TABLE ordered_inv_t
EXCHANGE PARTITION TP_ORDINV_MAX
WITH TABLE ordered_inv_bkp
WITHOUT VALIDATION
UPDATE GLOBAL INDEXES;
-- Check query :
select partition_name, num_rows, high_value from user_tab_partitions where table_name = 'ORDERED_INV_T' ;
These are the results:
TP_ORDINV_199801 0 TO_DATE(' 1999-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_199901 0 TO_DATE(' 2000-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200001 0 TO_DATE(' 2001-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200101 0 TO_DATE(' 2002-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200201 0 TO_DATE(' 2003-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200301 0 TO_DATE(' 2004-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200401 0 TO_DATE(' 2005-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200501 0 TO_DATE(' 2006-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200601 0 TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200701 0 TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200801 0 TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200901 0 TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201001 0 TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201101 0 TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201201 0 TO_DATE(' 2013-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_MAX 24976 MAXVALUE
Pay attention to the last record
>
used the Exchange Partition feature to swap segments between 2 tables- one Partitioned, and one Non-Partitioned. The exchange went well. However, all the data in the partitioned table has gone to the partition which stores the maxbound values.
>
That isn't possible. The data in the partition before the exchange could only have gone to the non-partitioned table.
Please edit you post and add \ tags on the lines before and after your code to preserve formatting. See the FAQ for details.
Similar Messages
-
Oracle Drive specific features not working
I have set up Oracle Drive against two 10gR2 instances. Both of them fail with different messages.
There are no issues with MS Web Folders, also most of this functionality works in Oracle Drive.
When I try to use Drive specific functionality like "set properties", this fails with following messages.
1. One of them fails with HTTP-404 after using machine name in the URL as opposed to using Virtual Host name
2. Second one fails with similar error message but this is missing virtual host name or server name in the URL.
I can't find any Oracle Drive logs to debug. So, my questions are ..
1. how can I debug Oracle debug?
2. Does Oracle drive support virtual host?
3. If so, why is the above behaviour
Users are keen to use Oracle Drive. So, any help (ASAP) would be appreciated.
Regards,
Bala Avula
Kinetic Software LtdHi Christian,
Sorry I didn't get back to you so far. I just noticed that this account is using old email address and I didn't recieve any update when you replied.
Here are some answers to your questions.
0) Bye the way one of the servers works now after recent portal repository copy (ptlconfig was run as part of it)
1) I tested view page, access control and set properties options. All of these fail.
2) I was looking for log files in the wrong place. Found them now and from the logs, it looks like one of the sites is not getting proper values for OPTIONS query.
Here is the reply from server that works.
==== Request ===================================================================
OPTIONS /dav_portal/portal/ HTTP/1.1
Content-Type: text/xml
Content-Length: 133
Accept: */*
Host: devinfo.united-glass.co.uk:7779
Connection: Keep-Alive
User-Agent: Windows Client 4.3 (build 12)
Authorization: Basic ****************
<?xml version="1.0" ?>
<D:options xmlns:D="DAV:">
<Orcl:menulist xmlns:Orcl="http://xmlns.oracle.com/portal/oradav"/>
</D:options>
==== Reply ============================= reply time 1943 ms ====================
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Set-Cookie: portal=9.0.3+en-us+us+AMERICA+C50FA4B405C748BCA1DCBEA4AA945F2D+4F1321F3C7185B361FA993BDEF81AF9A5C7A3D52E417988AFBDAA4D2F94A1B0AE0F3E66338F66F278D85FED4B6E7F5DD8D2FF36DF7632769EA1309A302AE20163B4888CBB4D17A4A; domain=.united-glass.co.uk; path=/dav_portal/portal
Connection: Keep-Alive
Keep-Alive: timeout=5, max=999
Server: Oracle-Application-Server-10g OracleAS-Web-Cache-10g/10.1.2.0.0 (N;ecid=5824288353905,0)
Content-Length: 1953
Date: Thu, 18 Aug 2005 15:27:23 GMT
MS-Author-Via: DAV
Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK
DAV: 1,2
<orcl:OraclePortalMenu xmlns:orcl="http://www.oracle.com/oradav/xythos/"><orcl:Members><orcl:MenuItem orcl:DisplayName="Set Properties" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=property&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Change Access Control" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=access&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Preview Content" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=preview&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="View Versions" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=version&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /></orcl:Members><orcl:Collections><orcl:MenuItem orcl:DisplayName="Set Properties" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=property&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Change Access Control" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=access&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="View Page" xml:lang="en" orcl:url="http://devinfo.united-glass.co.uk:7779/pls/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=preview&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /></orcl:Collections></orcl:OraclePortalMenu>
Here is the reply from server that does NOT work.
==== Request ===================================================================
OPTIONS /dav_portal/portal/ HTTP/1.1
Content-Type: text/xml
Content-Length: 133
Accept: */*
Host: info.united-glass.co.uk:7777
Connection: Keep-Alive
User-Agent: Windows Client 4.3 (build 12)
Authorization: Basic ************************
<?xml version="1.0" ?>
<D:options xmlns:D="DAV:">
<Orcl:menulist xmlns:Orcl="http://xmlns.oracle.com/portal/oradav"/>
</D:options>
==== Reply ============================= reply time 1852 ms ====================
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Set-Cookie: portal=9.0.3+en-us+us+AMERICA+0CAD20EE8A924CC5BB8F6CE84A107D0C+B1812814BE667200A940FD2AF2C795BA3EE4B9659FB2D82DD4058EFCBB335EBB255CC9F2C71111F0A4C51632C9DFBE2FF0D80D97F97B6CBC1167A6B9DAA661210DB1DB5B5A05D22F; domain=.united-glass.co.uk; path=/dav_portal/portal
Connection: Keep-Alive
Keep-Alive: timeout=5, max=999
Server: Oracle-Application-Server-10g OracleAS-Web-Cache-10g/10.1.2.0.0 (N;ecid=8092027261765,0)
Content-Length: 1694
Date: Thu, 18 Aug 2005 14:25:09 GMT
MS-Author-Via: DAV
Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK
DAV: 1,2
<orcl:OraclePortalMenu xmlns:orcl="http://www.oracle.com/oradav/xythos/"><orcl:Members><orcl:MenuItem orcl:DisplayName="Set Properties" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=property&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Change Access Control" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=access&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Preview Content" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=preview&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="View Versions" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=version&p_is_member=true&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /></orcl:Members><orcl:Collections><orcl:MenuItem orcl:DisplayName="Set Properties" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=property&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="Change Access Control" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=access&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /><orcl:MenuItem orcl:DisplayName="View Page" xml:lang="en" orcl:url="http:/portal/PORTAL.wwsbr_menu.process_menu?p_menu_name=preview&p_is_member=false&p_dav_prefix=/dav_portal/portal&p_path=##PATH##" /></orcl:Collections></orcl:OraclePortalMenu>
You can seee from the logs that URLs constructed for 2nd one is in complete. Any ideas on fixing this?
Regards,
Bala -
Oracle BAM Switch Function Not working as Expected
I am using following code to create days bucket in VIEW. SCHEDULE_SHIP_DATE data type is datetime.
This code shows me 61 for every test case. Even values are present for other case also like -1, -10.
Please help me in this user case
Switch((Now()-{SCHEDULE_SHIP_DATE})/86400)
Case(-1):(15)
Case(-2):(15)
Case(-3):(15)
Case(-4):(15)
Case(-5):(15)
Case(-6):(15)
Case(-7):(15)
Case(-8):(15)
Case(-9):(15)
Case(-10):(15)
Case(-11):(15)
Case(-12):(15)
Case(-13):(15)
Case(-14):(15)
Case(-15):(15)
Case(-16):(30)
Case(-17):(30)
Case(-18):(30)
Case(-19):(30)
Case(-20):(30)
Case(-21):(30)
Case(-22):(30)
Case(-23):(30)
Case(-24):(30)
Case(-25):(30)
Case(-26):(30)
Case(-27):(30)
Case(-28):(30)
Case(-29):(30)
Case(-30):(30)
Case(-31):(60)
Case(-32):(60)
Case(-33):(60)
Case(-34):(60)
Case(-35):(60)
Case(-36):(60)
Case(-37):(60)
Case(-38):(60)
Case(-39):(60)
Case(-40):(60)
Case(-41):(60)
Case(-42):(60)
Case(-43):(60)
Case(-44):(60)
Case(-45):(60)
Case(-46):(60)
Case(-47):(60)
Case(-48):(60)
Case(-49):(60)
Case(-50):(60)
Case(-51):(60)
Case(-52):(60)
Case(-53):(60)
Case(-54):(60)
Case(-55):(60)
Case(-56):(60)
Case(-57):(60)
Case(-58):(60)
Case(-59):(60)
Case(-60):(60)
default(61)I am using following code to create days bucket in VIEW. SCHEDULE_SHIP_DATE data type is datetime.
This code shows me 61 for every test case. Even values are present for other case also like -1, -10.
Please help me in this user case
Switch((Now()-{SCHEDULE_SHIP_DATE})/86400)
Case(-1):(15)
Case(-2):(15)
Case(-3):(15)
Case(-4):(15)
Case(-5):(15)
Case(-6):(15)
Case(-7):(15)
Case(-8):(15)
Case(-9):(15)
Case(-10):(15)
Case(-11):(15)
Case(-12):(15)
Case(-13):(15)
Case(-14):(15)
Case(-15):(15)
Case(-16):(30)
Case(-17):(30)
Case(-18):(30)
Case(-19):(30)
Case(-20):(30)
Case(-21):(30)
Case(-22):(30)
Case(-23):(30)
Case(-24):(30)
Case(-25):(30)
Case(-26):(30)
Case(-27):(30)
Case(-28):(30)
Case(-29):(30)
Case(-30):(30)
Case(-31):(60)
Case(-32):(60)
Case(-33):(60)
Case(-34):(60)
Case(-35):(60)
Case(-36):(60)
Case(-37):(60)
Case(-38):(60)
Case(-39):(60)
Case(-40):(60)
Case(-41):(60)
Case(-42):(60)
Case(-43):(60)
Case(-44):(60)
Case(-45):(60)
Case(-46):(60)
Case(-47):(60)
Case(-48):(60)
Case(-49):(60)
Case(-50):(60)
Case(-51):(60)
Case(-52):(60)
Case(-53):(60)
Case(-54):(60)
Case(-55):(60)
Case(-56):(60)
Case(-57):(60)
Case(-58):(60)
Case(-59):(60)
Case(-60):(60)
default(61) -
Exchange Online Protection (standalone) permissions are not working as expected
Exchange Online Protection (standalone) permissions are not working as expected.
we provided access to Hygiene Management to some members and they not able to access EOP site.
This is standalone EOP.
ksrugiHi,
what roles did you have assigned to them and what error message do you get?
Greetings
Christian
Christian Groebner MVP Forefront -
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 -
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 -
Adobe Exchange Panel Update not working?
Hello:
My OS is Windows 7 64 bit and I have Ps and Ia installed on my laptop.
I downloaded and installed the Adobe Exchange roughly two months ago and everything worked great at first.
I installed a few things such as the Paper Textures and a game Level Up (can't recall the others at the moment).
The game worked three times but then it just stopped responding. I never had an issue with the other extensions.
Yesterday I went to try out the game again but when i opened the Exchange panel it said there was a new update and so i (sadly) opted to click 'Update'
After clicking the update button I received a message:
Also, Norton said the link or what have ya was NOT trusted and is Unknown. So, I clicked on the Norton message and got this info:
Heuristic virus? um, what?
http://www.pctools.com/security-news/heuristic-virus-definition/
I went ahead and Removed all the extensions I had downloaded/installed from the Exchange panel but I would very much like to be able to use them again.
Any ideas as to the issue? Is there a solution?
I have shut off Norton to see if that would work but I still get the above message "... valid signature ... "
Sure would appreciate some input.
Thank you in advance
ps. could the Heuristic virus detection be a False Positive?Hello:
You are totally misunderstanding me. I have Windows 7 64 bit and I did have the Exchange Panel already installed. When I went to use the Exchange PanelIT had an update. I didNOT update to Windows 8.
I clicked on the UPDATE IN the Exchange Panel which is what would NOT install because NORTON said it IS MALWARE.
I tried to update the Exchange Panel and NOT my operating system.
The attempt to Update the Exchange Panel caused the older version of the Exchange Panel to not work. So, I had to Uninstall the Exchange Panel and then when I went to Reinstall the Exchange Panel it would NOT install. And now I cannot use it at all.
Again, I DO have Windows 7 and NOT Windows 8.
Please, I would very much like to be able to use the Exchange Panel again because I would like to install some extensions, let me know when this issue is resolved.
Thank You,
Kara A. Rowe
[email protected] -
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. -
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 -
Pick color feature not working properly -- how do I reset?
Pick color feature not working properly -- how do I reset?
You need to contact Adobe for you billing problem this is a user four not adobe customer support.
For your Photoshop Problems this user community may be helpful.
Supply pertinent information for quicker answers
The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
Adobe product and version number
Operating system and version number
The full text of any error message(s)
What you were doing when the problem occurred
Screenshots of the problem
Computer hardware, such as CPU; GPU; amount of RAM; etc. -
Oracle 10g database homepage not working?
Oracle 10g database homepage not working?
Hi just i installed oracle database 10g express edition but after the restart the oracle database homepage wont open http://127.0.0.1:8080/apex that link always telling cannot display...
here i have posted lsnrctl status
pls help
thanks in advance
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY…
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 25-SEP-2010 17:52:11
Uptime 0 days 1 hr. 28 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\se…
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\se…
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIP…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOS…
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyI had a problem of accessing Oracle 10g database homepage. After a couple of days of research and discussions with coworker we found a solution.
Here is the solution:
1. Find out your default browser.
2. Configure your default web browser to connect to the Oracle Database XE Database Home Page as stated
here:
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#CIHHJEHF
If this does not help de-install Oracle XE and reinstall following the instruction. During re-installation find out your default browser and configure it as instructed.
I suspect when the default web browser changes the Oracle 10g XE Database Home Page stops working.
Good luck -
Oracle date parameter query not working?
http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
Delete
from CONCURRENCYTESTITEMS
where ITEMID = :xItemId
and ROWVERSION = :xRowVersion_prev
The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
The same code & query works in Sql Server, but not Oracle.
Public Function CreateConnection() As IDbConnection
Dim sl As New SettingsLoader
Dim cs As String = sl.ObtainConnectionString
Dim cn As OracleConnection = New OracleConnection(cs)
cn.Open()
Return cn
End Function
Public Function CreateCommand(connection As IDbConnection) As IDbCommand
Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
cmd.BindByName = True
Return cmd
End Function
<TestMethod()>
<TestCategory("Oracle")> _
Public Sub Test_POC_Delete()
Dim connection As IDbConnection = CreateConnection()
Dim rowver As DateTime = DateTime.Now
Dim id As Decimal
Using cmd As IDbCommand = CreateCommand(connection)
cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.ReturnValue
p.DbType = DbType.Decimal
p.ParameterName = "myOutputParameter"
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion"
v.Value = rowver
cmd.Parameters.Add(v)
cmd.ExecuteNonQuery()
id = CType(p.Value, Decimal)
End Using
Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.Input
p.DbType = DbType.Decimal
p.ParameterName = "xItemId"
p.Value = id
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion_prev"
v.Value = rowver
v.Precision = 6 '????
cmd.Parameters.Add(v)
Dim cnt As Integer = cmd.ExecuteNonQuery()
If cnt = 0 Then Assert.Fail() 'should delete
End Using
connection.Close()
End Sub
Schema:
-- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
CREATE TABLE "CONCURRENCYTESTITEMS" (
"ITEMID" NUMBER(19,0) NOT NULL,
"NOTES" NCHAR(200) NOT NULL,
"ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
STORAGE (
NEXT 1048576 )
Sequence:
-- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
START WITH 1
CACHE 20
MAXVALUE 9999999999999999999999999999still not comming...
i have one table each entry is having only one fromdata and one todate only
i am running below in sql it is showing two rows. ok.
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between '830' and '850' and t1.U_frmdate ='20160801' and t1.u_todate='20160830'
in commond promt
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between {?FromEmid} and {?ToEmid} and t1.U_frmdate ={?FDate} and t1.u_todate={?TDate}
still not showing any results.. -
Oracle 10gr2 locally is not working after installing Oracle 11g
hi ,
Does anyone has any idea after installing oracle 11g in system, Oracle 10g locally is not working. I am getting below error.
Forms session <2> failed during startup: no response from runtime processGenerally this is because the software you install last updates the system environment variables with its information, thereby break products that use files with similar names. Specifically, look at PATH and ORACLE_HOME. Likely you will see that entries for your 11g installation will be displayed first. In order to use v10, you would need to change this or use script files to start executibles. For Forms runtime, be sure to properly set default.env to point to the desired PATH
Maybe you are looking for
-
Planned Orders -Order level & Order path fields
Dear all, In Planned Orders , in the components tab , the following fields are assigned/populated with some values by the system. Order level Order path Assy Order Level Assy Order path Please clarify , on what basis or what is the logic behind this
-
Iwl4965 / kernel 2.6.30 - intermittent failure to scan for APs
Not quite sure how to explain this issue, as I'm still in the process of trying to figure out what exactly is going on, but the problem is something like this. I have a Dell XPS M1330 with Intel 4965 abgn wireless card. No parameters for the device
-
How to point to a url when clicking on an image in Designer ES4?
Hi, I'd like to place a Facebook logo on my form and by clicking on the image it will open the browser and reach my Facebook page. So I placed an image field and fetch the url of the Facebook logo; The image of the logo displays fine. However, I have
-
Report 3.0 & E-Mail !!! URGENT !!!
Iam working with FORMS 5.0 and REPORT 3.0. When i intend to send an inform from the preview to the e-mail, i obtain then following error message : REP-4201 and REP-4220 I have OUTLOOK EXPRESS 5 and INTERNET EXPLORER 5 installed. How may i send e.mail
-
Tip when using Retina Display on iPad3
Thought someone else on here may find this handy and not sure how common knowledge this is (new to me!) I'm currently porting across an app specifically for the iPad3. So I wish to update to the retina display dimensions 2048/1536. As I'm using Flas