REGEXP_LIKE query's working differently.
Hi,
Version :Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
i didn't understand why below query's working differently.
First one:
select 'TRUE' from dual where REGEXP_LIKE( 'a', '[:alnum:]');
'TRUE'
TRUE
Second one:
select 'TRUE' from dual where REGEXP_LIKE( 't', '[:alnum:]');
no rows selected
Please clarify.
Check this...
WITH xx AS (
SELECT 'a' AS lvl FROM DUAL union all
SELECT 'l' AS lvl FROM DUAL union all
SELECT 'n' AS lvl FROM DUAL union all
SELECT 'u' AS lvl FROM DUAL union all
SELECT 'm' AS lvl FROM DUAL union all
SELECT 'r' AS lvl FROM DUAL union all
SELECT 's' AS lvl FROM DUAL union all
SELECT 't' AS lvl FROM DUAL union all
SELECT 'w' AS lvl FROM DUAL
select 'TRUE',x.lvl from xx x where REGEXP_LIKE(x.lvl, '[:alnum:]');Any other character than {a,l,n,u,m}, will return FALSE.
HTH
Ranit B.
Similar Messages
-
Select query is working on oracle 10.1.0 but its not working in 10.2.0
select query is working and retrieving some data from oracle database server 10.1.0.2.0, but same query is not working in 10.2.0.1.0 database server, its throws(ORA-00942: table or view does not exist)
But schema related tables and relevant details are same in 10.2.0.1.0 database server, so don't think that table is missing on that schema.
Note: Query length is upto 480 line
I have validate all the things, everything is fine, i don't why that query is not executing in different version.
I am in helpless in this situation?, anybody faced this issue?
Thanks in advanceValidated means all the tables and and columns are verified, i just running in sqlprompt,
Say for example:
sql> select * from table1;
One thing i observed while executing the query its showed error in one location of select sql. i mean particular word in select sql.
After that i combined some three lines of huge select sql into single then i am getting error in different location i mean different word...
My question is how same query executing in Oracle 10g Release 1, same dump (its exported from Release1) imported into oracle 10g release 2 is not executing. its shows Table or view doesn't exit. -
Hi
db version is 9.2.0.8.0
in dev the query is working fine.But in qa the query is not working fine(hanging).I had checked the explain plans.
Both are different.This is due to difference in volume of data.
I am pasting the explain plans of both the queries in qa and dev
qa explain plan
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
| 0 | SELECT STATEMENT | | 606M| 118G| | 107M (1)|
| 1 | SORT GROUP BY | | 606M| 118G| 524G| 107M (1)|
| 2 | HASH JOIN | | 1869M| 363G| | 50748 (1)|
| 3 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 9066 | 318K| | 331 (1)|
| 4 | HASH JOIN | | 2474K| 408M| 2232K| 50400 (1)|
| 5 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 54396 | 1593K| | 330 (1)|
| 6 | HASH JOIN | | 2474K| 337M| | 31791 (1)|
| 7 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 206 | 3296 | | 25 (4)|
| 8 | HASH JOIN | | 3162K| 382M| | 31745 (1)|
| 9 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 3087 | 27783 | | 25 (4)|
| 10 | HASH JOIN | | 3162K| 355M| 2952K| 31699 (1)|
| 11 | MERGE JOIN CARTESIAN | | 62930 | 2212K| | 14627 (1)|
| 12 | INDEX FAST FULL SCAN | SYS_C0013071 | 2923 | | | 4 (25)|
| 13 | BUFFER SORT | | 22 | 792 | | 14623 (1)|
| 14 | TABLE ACCESS BY INDEX ROWID| CURCY_CONVERT_RATE | 22 | 792 | | 6 (17)|
| 15 | INDEX RANGE SCAN | XPKCURRATE | 22 | | | 5 (20)|
| 16 | TABLE ACCESS FULL | SHIPPABLE_BACKLOG_FACT | 321K| 25M| | 15494 (1)|
dev explain plan
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
| 0 | SELECT STATEMENT | | 17M| 2978M| | 927K (1)|
| 1 | SORT GROUP BY | | 17M| 2978M| 6504M| 927K (1)|
|* 2 | HASH JOIN | | 17M| 2978M| | 2726 (1)|
|* 3 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 4992 | 180K| | 416 (1)|
|* 4 | HASH JOIN | | 41051 | 5852K| 2872K| 2309 (1)|
| 5 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 69888 | 2047K| | 415 (1)|
|* 6 | HASH JOIN | | 41051 | 4650K| | 1504 (1)|
|* 7 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 206 | 3296 | | 37 (3)|
|* 8 | HASH JOIN | | 52460 | 5123K| | 1467 (1)|
| 9 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 3087 | 27783 | | 37 (3)|
|* 10 | HASH JOIN | | 52460 | 4661K| | 1430 (1)|
|* 11 | TABLE ACCESS FULL | SHIPPABLE_BACKLOG_FACT | 7718 | 414K| | 513 (1)|
| 12 | MERGE JOIN CARTESIAN | | 48941 | 1720K| | 915 (0)|
| 13 | INDEX FULL SCAN | SYS_C0060330 | 1827 | | | 7 (15)|
| 14 | BUFFER SORT | | 27 | 972 | | 913 (0)|
| 15 | TABLE ACCESS BY INDEX ROWID| CURCY_CONVERT_RATE | 27 | 972 | | 2 (50)|
|* 16 | INDEX RANGE SCAN | XPKCURRATE | 27 | | | 4 (25)|
Here is the query
SELECT 'BACKLOG' AS SUBJECT_AREA, 'CURRENT' AS TIME_RANGE
,GEO_ROLLUP.GEOGRAPHY_HIER_KEY
,PRODUCT_ROLLUP.PRODUCT_HIER_KEY
, backlog_FACT.DISTRIBUTION_CH_ID
, backlog_FACT.SALES_DISTRICT_ID
, SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0) - NVL(backlog_FACT.GC_biilled_AMT,0)) AS billing_backlog_AMT
, SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0)- NVL(backlog_FACT.GC_DELIVERED_AMT,0)) AS delivery_backlog_AMT
, SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0) - NVL(backlog_FACT.GC_REV_REC_AMT,0)) AS rev_rec_backlog_AMT
, CURCY.VALID_FROM
FROM fact.shippable_backlog_FACT backlog_FACT
, DIM.DIM_PRODUCT_HIER PRODUCT
, DIM.DIM_GEOGRAPHY_HIER GEO
, DIM.DIM_DATE DT
, DIM.DIM_PRODUCT_HIER PRODUCT_ROLLUP
, DIM.DIM_GEOGRAPHY_HIER GEO_ROLLUP
, DIM.CURCY_CONVERT_RATE CURCY
WHERE
PRODUCT.PRODUCT_HIER_KEY = backlog_FACT.GEF_PRODUCT_HIER_KEY
AND GEO.GEOGRAPHY_HIER_KEY = backlog_FACT.GEF_SHIP_TO_GEO_HIER_KEY
AND ( backlog_FACT.DELIVERY_COMPLETE_DATE IS NULL
OR backlog_FACT.BILLING_COMPLETE_DATE IS NULL
OR backlog_FACT.REV_REC_COMPLETE_DATE IS NULL
AND PRODUCT.PRODUCT_TYPE = PRODUCT_ROLLUP.PRODUCT_TYPE
AND PRODUCT_ROLLUP.HIER_LEVEL_NUM = 4
AND PRODUCT_ROLLUP.CURRENT_RECORD_IND = 'Y'
AND GEO_ROLLUP.SUB_POLE = GEO.SUB_POLE
AND GEO_ROLLUP.HIER_LEVEL_NUM = 3
AND GEO_ROLLUP.CURRENT_RECORD_IND = 'Y'
AND CURCY.VALID_FROM <= BACKLOG_FACT.ORDER_LINE_CREATE_DATE
AND CURCY.VALID_TO > BACKLOG_FACT.ORDER_LINE_CREATE_DATE
AND CURCY.EXCHANGE_TYPE_ID = 'M'
AND CURCY.TO_CURRENCY_ID = 'USD'
AND CURCY.FROM_CURRENCY_ID = BACKLOG_FACT.DOCUMENT_CURRENCY_ID
GROUP BY
PRODUCT_ROLLUP.PRODUCT_HIER_KEY,
GEO_ROLLUP.GEOGRAPHY_HIER_KEY,
backlog_FACT.DISTRIBUTION_CH_ID,
backlog_FACT.SALES_DISTRICT_ID,
CURCY.VALID_FROM;
I analyzed all the tables involved in it.
can anybody give me suggestion in crating indexes or anything else?
Thanks
VeerVeer,
Modify your post and enclose your code and output between \ tags for formatting
\Your code or output goes here
\Now, are table stats are upto date on all the table on QA machine? If not, analyze your table and indexes and re-run your query
Regards
Edited by: OrionNet on May 7, 2009 3:35 PM -
Aggregate works different by filling with pc or manually activate
Hello Expert,
In one of the cube, which was updated by 2 delta and 1 full IP, an aggregate works different.
The first time the aggregate was manually activated, query ran well with reading it.
After a successfully pc ran, which contains 2 delta and 1 full IP, the query with same parameter caused a jump because of exceed the time limit.
To check the aggregate, it was successfully updated by the new IP.
After deactivate and re-activate the agg, the query works fine again.
Do you know why this happen?
Thanks
XYHello Ajeet,
I checked the aggregate. It contains one master data will is in change run object list.
However, this info object has not changed any thing since it was initialized.
And the roll up for the aggregate is a successor of attribute change run.
To make the things clear, the full upload to infocube was deleted daily by overlapping request before to fill it.
I ran RSDDS_CHANGERUN_MONITOR which contains log:
No Change Run active
N/A
Characteristics to be activated:
0PLANT (which was used in aggregate)
Hierarchies to be activated:
N/A
Affected aggregates and InfoCubes:
Cube 1000##
Aggregates Will Be Adjusted by:Reconstruction
What did this log stand for (I mean: Aggregates Will Be Adjusted by:Reconstruction) ? I have manually activated the aggregate today.
Thanks
XY
Edited by: xy chen on Nov 28, 2008 7:18 AM -
Best practice for a same query against 2 different tables
Hello all,
I want to extract info about tablespaces storage, both permanent and temporary. For that I use 2 different cursors that do exactly the same query but against a different table (dba_data_files and dba_temp_files).
CURSOR permanentTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_data_files
WHERE tablespace_name = tablespaceName;
CURSOR temporaryTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_temp_files
WHERE tablespace_name = tablespaceName;
First I'm bothered that I have to use 2 cursors to execute the same query against 2 different tables. Is there no another way around?
Then I fetch the results of this cursors in 2 different loops because I didn't find a way to dynamically call the cursors. I am looking for best practice here, knowing that I will do the same parsing against the results of the 2 cursors.
Thank you,Hi
Check whether the below query is helpful or not
select fs.tablespace_name "Tablespace",
fs.tempspace "Temp MB",
df.totalspace "Total MB"
from
(select
tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df,
(select
tablespace_name,
round(sum(bytes) / 1048576) tempSpace
from
dba_temp_files
group by
tablespace_name
) fs
where
df.tablespace_name = fs.tablespace_name;
Thanks -
BI server generating query in a different way between two instances
Hi All,
We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
For a report below are the queries
DEV(AIX)
WITH
SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
T329697.DIVISION_DESC as c2,
T329697.AREA_DESC as c3,
T329697.TERRITORY_DESC as c4,
case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
T150993.X_CONS_MAJOR_GROUP as c6,
T66755.PER_NAME_ENT_YEAR as c7
from
W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
OBIEE_SECURITY_LOCATION_SALES T339204,
W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
select distinct SAWITH0.c2 as c1,
SAWITH0.c3 as c2,
SAWITH0.c4 as c3,
SAWITH0.c5 as c4,
SAWITH0.c5 as c5,
SAWITH0.c6 as c6,
SAWITH0.c7 as c7,
SAWITH0.c1 as c8
from
SAWITH0
order by c1, c6
Test(Windows)
select distinct D1.c2 as c1,
D1.c3 as c2,
D1.c4 as c3,
D1.c5 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7,
D1.c1 as c8
from
(select sum(T316025.SALES_QUOTA) as c1,
T329697.DIVISION_DESC as c2,
T329697.AREA_DESC as c3,
T329697.TERRITORY_DESC as c4,
case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
T150993.X_CONS_MAJOR_GROUP as c6,
T66755.PER_NAME_ENT_YEAR as c7
from
W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
OBIEE_SECURITY_LOCATION_SALES T339204,
W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
) D1
order by c1, c6
If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
Is there in any configuration to change to generate query like Test(with out SAWWITH0).
NOTE:Any how results are same in both instances.
Please help me to resolve this issue.
Thank You,
Anil Kumar.Anil,
Are your database settings the same in both of the rpds dev and test?
Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
Adil -
Update query not working in the JDBC sender Communication channel
Hi,
We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
Please advise.Hi Rumi,
See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
8. Transaction Handling (Sender)
Q: If I have the following configured in a JDBC Sender:
Select Query:
SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
Update Query:
UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
How do I know that the JDBC adapter will not update newly added rows (rows that were
added between the time that the SELECT and UPDATE queries were executed) that were
not read in the initial SELECT query?
A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
have the same view on the database.
Make sure that both statements use the same WHERE clause. An additional
requirement for the correct operation of this scenario is the configuration of
an appropriate transaction isolation level on the database
(i.e., repeatable_read or serializable). You might also consider using a
"SELECT FOR UPDATE" statement instead of a plain SELECT statement to
ensure proper locking on the database. "SELECT FOR UPDATE"
is not supported in MS SQL database. In this case please make use of an
appropriate transaction isolation level on the database. For more details
please contact your DB vendors.
After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
Best Regards.
Pedro Baroni -
Can't get query to work. table alias in subquery in FROM clause
How can I rearrange this query to work?
SELECT
TO_CHAR(dt.date_time, 'YYYY-MM-DD') start_date,
(SELECT COUNT(*) FROM
(SELECT DISTINCT a.non_asp, a.start_time, a.end_time
FROM appointments a
WHERE a.start_time >= dt.date_time AND a.start_time < dt.date_time + 1
) num_overlap
FROM
table(times_pkg.between_times(TO_DATE('2010-05-30'),
TO_DATE('2010-07-03'), 60*24, 'Y')) dtbetween_times is a table function that returns times at given intervals.
I am trying to get a count of distinct (non_asp, start_time, end_time) sets that fall on each day.
However, it doesn't recognize dt.date_time in the FROM clause.Hi,
A sub-query can be correlated only to its immediate parent. You're trying the correlate the SELECT DISTINCT sub-query to its grandparent.
You can re-write the sub-query as a join, like this:
SELECT TO_CHAR(dt.date_time, 'YYYY-MM-DD') start_date,
a.num_overlap
FROM table ( times_pkg.between_times ( TO_DATE('2010-05-30'),
TO_DATE('2010-07-03'),
60*24,
'Y'
) dt
JOIN (
SELECT start_time,
end_time,
COUNT (DISTINCT non_asp) AS num_overlap
FROM appointments
) a ON a.start_time >= dt.date_time
AND a.start_time < dt.date_time + 1
;You could also eliminate the extra level between the SELECT DISTINCT sub-query and the main query by using SELECT (DISTINCT ...). -
Embed + compiler define works different with air 3.7+ comparing to 3.5
Hello.
I've noticed that new compiler works differently when using construct Embed with conditional compilation (comoiler define option).
It looks like new compiler always embeds files in output swf even if Embed construct is used in dead code. Here is full example:
package {
import flash.display.MovieClip;
public class Main extends MovieClip {
CONFIG::FOO {
[Embed(source="foo.mp3")]
public static var MusicTrack: Class;
CONFIG::BAR {
[Embed(source="bar.mp3")]
public static var MusicTrack: Class;
I have 2 files: foo.mp3 (~2MB) and bar.mp3 (~2.3MB). I want to embed only one of them defining CONFIG::FOO as true and CONFIG::BAR as false.
When I compile it using AIR 3.5 with following command I get (as expected) file with size ~2.0MB:
/opt/adobe_sdks/flex_sdk_4.6_AIR_3.5/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
/private/tmp/bug/Main.swf (2030814 bytes)
But when I use newer AIR sdk (I tried with 3.7, 3.8 and 4.0 beta) I'm getting file with size ~4.3MB.
/opt/adobe_sdks/AIR_4.0/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
4328386 bytes written to /private/tmp/bug/Main.swf in 9,634 seconds
Is it expected behaviour? Is there any chance that new compiler will work in this case the same as older one?Another difference I encountered is that using compiler definition directly in Embed construction doesn't work. Here is example:
public class Assets {
[Embed(source=CONFIG::MUSIC_MP3_PATH)]
public static var MusicTrack: Class;
Then I pass option to the compiler:
-define=CONFIG::MUSIC_MP3_PATH,"'sfx/music.mp3'"
With AIR 3.5 SDK it works fine. With AIR 3.7, 3.8 and 4.0 beta I'm getting file which is smaller in size (by mp3 file size) and when running I get error: TypeError: Error #1007: Instantiation attempted on a non-constructor. (when it tries to create new instance of MusicTrack). -
Two days ago, I lost a bunch of my contacts, appointments on my calendar, and my mail is working differently on iPhone! What happened? I didn't change anything! This has happened to other people I know too. How do I get my stuff back?! Did Apple change/update something? Is it an iCloud issue? HELP!
We are itunes users just like you.
You should transfer all purchases to your computer. File>Devices>Transfer Purchases
You can redownload some purchases in some countries:
Download previous purchases from the iTunes Store - Support - Apple -
Problem Summary
Cancel Query not working on 11.5.10
Problem Description
While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.jemar98 wrote:
Problem Summary
Cancel Query not working on 11.5.10
Problem Description
While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.Please post the details of the application release, database version and OS.
Was this working before? If yes, any changes been done recently?
Please review (Canceling Long Running Queries in Oracle Applications 11i [ID 138159.1]) and make sure you complete all the steps.
Thanks,
Hussein -
Bex Query is working fine in Bex Analyzer but in Webi 4.0 its not.
Hi guys,
I am using Bex Query as a datasrouce for a Interactive Analysis 4.o. but its giving me the following error below:
Note: i can use other Bex Queries just fine in interactive analysis, and this problomatic query is working fine in Bex Analyzer.
" The DSL Service returned an error: com.businessobjects.mds.services.helpers.OlapUniverseHelper$DimensionsFromCubeFailedException: Cannot retrieve dimensions from cube Commercial Margin
at com.businessobjects.mds.services.helpers.OlapUniverseHelper.createSapBusinessLayer(OlapUniverseHelper.java:428)
at com.businessobjects.mds.services.helpers.OlapUniverseHelper.createBusinessLayer(OlapUniverseHelper.java:246)
at com.businessobjects.dsl.services.datasource.impl.AbstractOlapUniverseProvider.createOlapUniverse(AbstractOlapUniverseProvider.java:62)
at com.businessobjects.dsl.services.datasource.impl.DirectOlapAccessUniverseProvider.createOlapUniverse(DirectOlapAccessUniverseProvider.java:94)
at com.businessobjects.dsl.services.datasource.impl.DirectOlapAccessUniverseProvider.provideUniverseFromInlineResource(DirectOlapAccessUniverseProvider.java:82)
at com.businessobjects.dsl.services.datasource.impl.AbstractUniverseProvider.provideUniverse(AbstractUniverseProvider.java:48)
at com.businessobjects.dsl.services.universe.impl.AbstractUniverseService.provideUniverse(AbstractUniverseService.java:82)"
Sheikh Hassan AyubHi,
There has been some escalation with regards to similar problem with the early version of BI 4.x.
I would advise you to download the latest version and latest patch in your QA environment and do some testing with the same query.
Regards
Steph -
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.. -
Query rewrite don't work wor aggregate query but work for join query
Dear experts,
Let me know what's wrong for
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
I have two MATERIALIZED VIEW:
A) -- Only join
CREATE MATERIALIZED VIEW "SCOTT"."TST_MV"
ENABLE QUERY REWRITE AS
SELECT "T57410"."MEMBER_KEY" "MEMBER_KEY",
"T57410"."ANCESTOR_KEY" "ANCESTOR_KEY",
"T57410"."DISTANCE" "DISTANCE",
"T57410"."IS_LEAF" "IS_LEAF",
"T57460"."DEPARTMENTID" "DEPARTMENTID",
"T57460"."NAME" "NAME","T57460"."PARENT"
"PARENT","T57460"."SHORTNAME" "SHORTNAME",
"T57460"."SKIMOID" "SKIMOID"
FROM "BI_OIV_HIER" "T57410",
"BI_DEPARTMENTS" "T57460"
WHERE "T57410"."ANCESTOR_KEY"="T57460"."DEPARTMENTID";
B) -- Join with aggregation
CREATE MATERIALIZED VIEW "SCOTT"."TST_MV2"
("C41", "C42", "C43",
"C44", "C45", "C46",
"C47", "C48", "C49",
"C50", "C51", "C52",
"C53", "C54", "C55",
"C56", "C57", "C58",
"C59", "C60", "C61",
"INCIDENTTYPE")
ENABLE QUERY REWRITE
AS SELECT COUNT(T56454.TOTAL) AS c41,
T56840.CATEGORYID AS c42,
T56840.PARENT AS c43,
T56908.DOCSTATEID AS c44,
T56908.PARENT AS c45,
T56947.EXPIREDID AS c46,
T56947.PARENT AS c47,
T56986.ISSUESTATEID AS c48,
T56986.PARENT AS c49,
T57025.LOCATIONID AS c50,
T57025.PARENT AS c51,
T57064.NEWID AS c52,
T57064.PARENT AS c53,
T57103.PARENT AS c54,
T57103.RESOLUTIONID AS c55,
T57142.PARENT AS c56,
T57142.RESPONSIBLEID AS c57,
T57181.PARENT AS c58,
T57181.SOURCEID AS c59,
T57460.DEPARTMENTID AS c60,
T57460.PARENT AS c61,
T56454.INCIDENTTYPE
FROM BI_OIV_HIER T57410
BI_DEPARTMENTS T57460
BI_SOURCE_HIER T57176
SOURCE T57181
BI_RESPONSIBLE_HIER T57137
RESPONSIBLE T57142
BI_RESOLUTIONS_HIER T57098
RESOLUTIONS T57103
BI_NEW_HIER T57059
NEW T57064
BI_LOCATIONS_HIER T57020
LOCATIONS T57025
BI_ISSUESTATES_HIER T56981
ISSUESTATES T56986
BI_EXPIRED_HIER T56942
EXPIRED T56947
BI_DOCSTATES_HIER T56903
DOCSTATES T56908
BI_CATEGORY_HIER T56835
CATEGORY T56840
INCIDENTS T56454
WHERE ( T56454.RESOLUTION = T57098.MEMBER_KEY
AND T56454.CATEGORY = T56835.MEMBER_KEY
AND T56454.DOCSTATE = T56903.MEMBER_KEY
AND T56454.EXPIRED = T56942.MEMBER_KEY
AND T56454.ISSUESTATE = T56981.MEMBER_KEY
AND T56454.LOCATION = T57020.MEMBER_KEY
AND T56454.NEW = T57059.MEMBER_KEY
AND T56454.RESPONSIBLE = T57137.MEMBER_KEY
AND T56454.SOURCE = T57176.MEMBER_KEY
AND T56454.DEPARTMENTID = T57410.MEMBER_KEY
AND T56835.ANCESTOR_KEY = T56840.CATEGORYID
AND T56903.ANCESTOR_KEY = T56908.DOCSTATEID
AND T56942.ANCESTOR_KEY = T56947.EXPIREDID
AND T56981.ANCESTOR_KEY = T56986.ISSUESTATEID
AND T57020.ANCESTOR_KEY = T57025.LOCATIONID
AND T57059.ANCESTOR_KEY = T57064.NEWID
AND T57098.ANCESTOR_KEY = T57103.RESOLUTIONID
AND T57137.ANCESTOR_KEY = T57142.RESPONSIBLEID
AND T57176.ANCESTOR_KEY = T57181.SOURCEID
AND T57410.ANCESTOR_KEY = T57460.DEPARTMENTID
GROUP BY T56840.CATEGORYID,
T56840.PARENT,
T56908.DOCSTATEID,
T56908.PARENT,
T56947.EXPIREDID,
T56947.PARENT,
T56986.ISSUESTATEID,
T56986.PARENT,
T57025.LOCATIONID,
T57025.PARENT,
T57064.NEWID,
T57064.PARENT,
T57103.PARENT,
T57103.RESOLUTIONID,
T57142.PARENT,
T57142.RESPONSIBLEID,
T57181.PARENT,
T57181.SOURCEID,
T57460.DEPARTMENTID,
T57460.PARENT,
T56454.INCIDENTTYPE;
So, optimizer uses query rewrite in
select * from TST_MV
and don't use query rewrite in
select * from TST_MV2
within one session.
select * from TST_MV should be read as underlying select for TST_MV:
SELECT "T57410"."MEMBER_KEY" "MEMBER_KEY",
"T57410"."ANCESTOR_KEY" "ANCESTOR_KEY",
"T57410"."DISTANCE" "DISTANCE",
"T57410"."IS_LEAF" "IS_LEAF",
"T57460"."DEPARTMENTID" "DEPARTMENTID",
"T57460"."NAME" "NAME","T57460"."PARENT"
"PARENT","T57460"."SHORTNAME" "SHORTNAME",
"T57460"."SKIMOID" "SKIMOID"
FROM "BI_OIV_HIER" "T57410",
"BI_DEPARTMENTS" "T57460"
WHERE "T57410"."ANCESTOR_KEY"="T57460"."DEPARTMENTID";
So, select * from TST_MV2 should be read by similar way as underlying select to TST_MV2
DBMS_STATS.GATHER_TABLE_STAT is done for each table and MV.
Please help to investigate the issue.
Why TST_MV2 don't used for query rewrite ?
Kind regards.Hi Carlos
It looks like you have more than one question in your posting. Would I be right in saying that you have an issue with how long Discoverer takes when compared with SQL, and a second issue with regards to MVs not being used? I will add some comments on both. If one of these is not an issue please inform.
Issue 1:
Have you compared the explain plan from Discoverer with SQL? You may need to use a tool like TOAD to see it.
Also, is Discoverer doing anything complicated with the data after it comes back? By complicated I mean do you have a large number of Page Items and / or Group Sorted items? SQL wouldn't have this overhead you see.
Because SQL would create a table, have you tried creating a table in Discoverer and seeing how long it takes?
Finally, what version of the database are you using?
Issue 2:
Your initial statement was that query rewrite works with several MV but not with others, yet in the body of the report you only show explain plans that do use the MV. Could you therefore go into some more detail regarding this situation.
Best wishes
Michael -
Newbie's ctx_cd query not working
I've been trying to get a ctx_cd concatenated datastore query to work, but I keep getting weird error messages.
the code to create the index:
exec ctx_cd.drop_cdstore('imglib_cd');
exec ctx_cd.Create_CDstore(cdstore_name =>'imglib_cd', table_name=>'imglib')
exec ctx_cd.Add_Column('imglib_cd','format','format')
exec ctx_cd.Add_Column('imglib_cd','keywords','keywords')
exec ctx_cd.Add_Column('imglib_cd','submitted_by','submitted_by')
exec ctx_cd.Add_Column('imglib_cd','county','county')
exec ctx_cd.Add_Column('imglib_cd','facility','facility')
exec ctx_cd.Add_Column('imglib_cd','project','project')
exec ctx_cd.Add_Column('imglib_cd','year','year')
exec ctx_cd.Add_Column('imglib_cd','print_web', 'PRINT_WEB')
exec ctx_cd.Add_Update_Trigger('imglib_cd','format')
exec ctx_cd.Add_Update_Trigger('imglib_cd','keywords')
exec ctx_cd.Add_Update_Trigger('imglib_cd','submitted_by')
exec ctx_cd.Add_Update_Trigger('imglib_cd','county')
exec ctx_cd.Add_Update_Trigger('imglib_cd','facility')
exec ctx_cd.Add_Update_Trigger('imglib_cd','project')
exec ctx_cd.Add_Update_Trigger('imglib_cd','year')
exec ctx_cd.Add_Update_Trigger('imglib_cd','print_web')
exec ctx_ddl.drop_preference(preference_name => 'img_lexer');
exec ctx_ddl.create_preference(preference_name =>'img_lexer',object_name=>'basic_lexer');
exec ctx_ddl.set_attribute(preference_name =>'img_lexer',attribute_name=>'index_text',attribute_value=>'true');
exec ctx_ddl.set_attribute(preference_name=>'img_lexer',attribute_name=>'index_themes',attribute_value =>'false');
drop index imglibindex;
select err_text from ctx_user.errors;
create index imglibindex ON imglib(concat) INDEXTYPE IS ctxsys.context
PARAMETERS('datastore imglib_cd lexer img_lexer section group imglib_cd');
the table structure:
SQL> desc imglib;
Name Null? Type
ID NOT NULL NUMBER
FORMAT VARCHAR2(50)
DATE_UPLOADED DATE
PRINT_WEB VARCHAR2(10)
DPI NUMBER
MEASUREMENT VARCHAR2(10)
WIDTH NUMBER
HEIGHT NUMBER
KEYWORDS VARCHAR2(1000)
FILE_SIZE NUMBER
SUBMITTED_BY VARCHAR2(80)
URL VARCHAR2(80)
COUNTY VARCHAR2(50)
FACILITY VARCHAR2(50)
PROJECT VARCHAR2(50)
YEAR VARCHAR2(10)
CONCAT CHAR(1)
checking to see if PRINT_WEB exists in User Sections:
SQL> select sec_name from ctx_user_sections;
SEC_NAME
SUBMITTED_BY
COUNTY
FACILITY
PROJECT
YEAR
PRINT_WEB
FORMAT
KEYWORDS
8 rows selected.
the query and the error:
SQL> SELECT ID, URL, COUNTY, FACILITY, PROJECT, YEAR FROM IMGLIB WHERE CONTAINS(PRINT_WEB,'web withi
n PRINT_WEB')>0;
SELECT ID, URL, COUNTY, FACILITY, PROJECT, YEAR FROM IMGLIB WHERE CONTAINS(PRINT_WEB,'web within PRI
ERROR at line 1:
ORA-20000: interMedia Text error:
DRG-10837: section PRINT_WEB does not existI just discovered the problem.
here's the successful query:
SELECT ID, URL, COUNTY, FACILITY, PROJECT, YEAR FROM IMGLIB WHERE CONTAINS(CONCAT,'web within PRINT_WEB')>0
Maybe you are looking for
-
Error 50. Please help.
Back on my old laptop I was able to download apps & movies with no problem. I just bought a new laptop & transferred my iTunes account to my new laptop. Apparently I need to re-download all my movies. Every time I attempt to do so, or download a new
-
My ipod classic 160gb has frozen. Any ideas how to un-freeze
My ipod classic 160gb has frozen. Can anyone help me to un-freeze it?
-
SAP 4.6 C Windows 2003 R2 SP2, MS SQL 2005 SP2 (64 bits) RAM 8GB Hi, We made a homegeous copy (detach/attach) from PRD to QAS everything ok The problem is when we use sccl to copy a client (500) to 400 the following message appear (st22). TSV_TNEW_PA
-
How to stop the browser redirect me to Chinese version websites?
For example, when I typed in nba.com, it goes to http://china.nba.com/index.html?gr=www. Similarly to bing.com. In addition, when I shop in any website, the currency shows in CNY other than USD. I'm using the newest version of Firefox (English versio
-
UDF question - how detect a non existing sender element
Hi all, i have a question according UDF. I have a sender message that contains a field, that sometimes has a content ans some time not. If no content then als the element doesn't exists (occurrence 0...1). The target element of this one has the occur