Reserved keyword?
Hi,
I am porting a program to use Oracle 10g database. (previously mssql server).
I noted that some existing sql statements becomes errorneous after porting.
Examples below.
select '' as number from log;
select '' as level from log;
I get the sql error:
ORA-00923: FROM keyword not found where expected
These statements are parsed perfectly in MSSQL server.
Did i step onto something forbidden in oracle?
Please advice.
The column alias specification can't be used tougether with '*' symbol but
only with particular column:
SQL> desc t
Name Null? Type
ID NUMBER
SQL> select id as nm from t;
no rows selected
SQL> select * as nm from t;
select * as nm from t
ERROR at line 1:
ORA-00923: FROM keyword not found where expected As for the rest of Rod's post it is quite correct - number and level
are reserved keywords and can't be used as column aliases.
Rgds.
Similar Messages
-
Oracle 10G R2: Cannot access a table whose name is a reserved keyword
Hello,
Oracle 10G R2 database being accessed using Oracle 10G thin driver in Java.
There is a table named GROUP in the db - GROUP is a reserved keyword of course.
When I execute the statement (after getting the database metadata object from a java.sql.Connection to the DB):
oracle.jdbc.OracleDatabaseMetaData.getIndexInfo(null, "MYDB", "GROUP", false, true)
I get:
Exception in thread "main" java.sql.SQLException: ORA-00903: invalid table name
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1606)
at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1571)
at oracle.jdbc.OracleDatabaseMetaData.getIndexInfo(OracleDatabaseMetaData.java:3485)
When I execute the statement:
oracle.jdbc.OracleDatabaseMetaData.getIndexInfo(null, "MYDB", "\"GROUP\"", false, true)
the result set is empty
What is the correct way for me to get the index info from the table named GROUP?
Thanks,
Sundeepuser5486925 wrote:
oracle.jdbc.OracleDatabaseMetaData.getIndexInfo(null, "MYDB", "\"GROUP\"", false, true)
the result set is empty
Which would suggest you are using the correct name as a quoted identifier. Presumably the code you are using works for other tables. But you might try variations in case.
You can also query the database directly to get the index information rather than using the metadata.
What is the correct way for me to get the index info from the table named GROUP?The correct way is to not use reserved words. -
Oracle reserved and non-reserved keywords
Hello,
I'm looking for a list of reserved and non-reserved keywords for all Oracle versions starting from 9.
I think Oracle starts at R1, right? So the versions needed would be:
9.1, 9.2
10.1, 10.2 and
11.1
I found lists of keywords querying Oracle view V$RESERVED_WORDS
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2048.htm#REFRN30204
here:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/ap_keywd.htm
However, this is only for version 10.2 and it contains only reserved keywords.
I need a list for every maintenance/minor version. This list must contain all keywords in Oracle PL/SQL, not just the reserved ones, but also those which shouldn't be used in certain contexts described by the V$RESERVED_WORDS view (former link) -> probably reserved = 'N'.
Since I don't own a copy of Oracle and definitely not of every minor version, does anyone know where to obtain such lists?
You might want to do me a favor and query that view for me... ;-) (you can send the output to "k w u t z k e AT w e b DOT d e" ... don't forget to mention the version)
From what the view tells me, the SQL statements to query are:
For reserved words:
select keyword from v$reserved_words where reserved='Y' order by keyword;
For all other non-reserved words:
select keyword from v$reserved_words where reserved='N' order by keyword;
Are there any keywords/entities that are neither reserved='Y' nor reserved='N'?
Can anyone help on this issue please?
TIA,
KarstenNot sure about differences between specific versions but the easy way to get reserved words is in SQL*Plus...
SQL> help reserved words
RESERVED WORDS (PL/SQL)
PL/SQL Reserved Words have special meaning in PL/SQL, and may not be used
for identifier names (unless enclosed in "quotes").
An asterisk (*) indicates words are also SQL Reserved Words.
ALL* DESC* JAVA PACKAGE SUBTYPE
ALTER* DISTINCT* LEVEL* PARTITION SUCCESSFUL*
AND* DO LIKE* PCTFREE* SUM
ANY* DROP* LIMITED PLS_INTEGER SYNONYM*
ARRAY ELSE* LOCK* POSITIVE SYSDATE*
AS* ELSIF LONG* POSITIVEN TABLE*
ASC* END LOOP PRAGMA THEN*
AT EXCEPTION MAX PRIOR* TIME
AUTHID EXCLUSIVE* MIN PRIVATE TIMESTAMP
AVG EXECUTE MINUS* PROCEDURE TIMEZONE_ABBR
BEGIN EXISTS* MINUTE PUBLIC* TIMEZONE_HOUR
BETWEEN* EXIT MLSLABEL* RAISE TIMEZONE_MINUTE
BINARY_INTEGER EXTENDS MOD RANGE TIMEZONE_REGION
BODY EXTRACT MODE* RAW* TO*
BOOLEAN FALSE MONTH REAL TRIGGER*
BULK FETCH NATURAL RECORD TRUE
BY* FLOAT* NATURALN REF TYPE
CHAR* FOR* NEW RELEASE UI
CHAR_BASE FORALL NEXTVAL RETURN UNION*
CHECK* FROM* NOCOPY REVERSE UNIQUE*
CLOSE FUNCTION NOT* ROLLBACK UPDATE*
CLUSTER* GOTO NOWAIT* ROW* USE
COALESCE GROUP* NULL* ROWID* USER*
COLLECT HAVING* NULLIF ROWNUM* VALIDATE*
COMMENT* HEAP NUMBER* ROWTYPE VALUES*
COMMIT HOUR NUMBER_BASE SAVEPOINT VARCHAR*
COMPRESS* IF OCIROWID SECOND VARCHAR2*
CONNECT* IMMEDIATE* OF* SELECT* VARIANCE
CONSTANT IN* ON* SEPERATE VIEW*
CREATE* INDEX* OPAQUE SET* WHEN
CURRENT* INDICATOR OPEN SHARE* WHENEVER*
CURRVAL INSERT* OPERATOR SMALLINT* WHERE*
CURSOR INTEGER* OPTION* SPACE WHILE
DATE* INTERFACE OR* SQL WITH*
DAY INTERSECT* ORDER* SQLCODE WORK
DECIMAL* INTERVAL ORGANIZATION SQLERRM WRITE
DECLARE INTO* OTHERS START* YEAR
DEFAULT* IS* OUT STDDEV ZONE
DELETE* ISOLATION
RESERVED WORDS (SQL)
SQL Reserved Words have special meaning in SQL, and may not be used for
identifier names unless enclosed in "quotes".
An asterisk (*) indicates words are also ANSI Reserved Words.
Oracle prefixes implicitly generated schema object and subobject names
with "SYS_". To avoid name resolution conflict, Oracle discourages you
from prefixing your schema object and subobject names with "SYS_".
ACCESS DEFAULT* INTEGER* ONLINE START
ADD* DELETE* INTERSECT* OPTION* SUCCESSFUL
ALL* DESC* INTO* OR* SYNONYM
ALTER* DISTINCT* IS* ORDER* SYSDATE
AND* DROP* LEVEL* PCTFREE TABLE*
ANY* ELSE* LIKE* PRIOR* THEN*
AS* EXCLUSIVE LOCK PRIVILEGES* TO*
ASC* EXISTS LONG PUBLIC* TRIGGER
AUDIT FILE MAXEXTENTS RAW UID
BETWEEN* FLOAT* MINUS RENAME UNION*
BY* FOR* MLSLABEL RESOURCE UNIQUE*
CHAR* FROM* MODE REVOKE* UPDATE*
CHECK* GRANT* MODIFY ROW USER*
CLUSTER GROUP* NOAUDIT ROWID VALIDATE
COLUMN HAVING* NOCOMPRESS ROWNUM VALUES*
COMMENT IDENTIFIED NOT* ROWS* VARCHAR*
COMPRESS IMMEDIATE* NOWAIT SELECT* VARCHAR2
CONNECT* IN* NULL* SESSION* VIEW*
CREATE* INCREMENT NUMBER SET* WHENEVER*
CURRENT* INDEX OF* SHARE WHERE
DATE* INITIAL OFFLINE SIZE* WITH*
DECIMAL* INSERT* ON* SMALLINT*
SQL>If you haven't got oracle then I'm not sure where you're going to find out all the minor differences I'm afraid. -
CMP table name using reserved keyword
Hello,
I am migrating an existing application from JBoss to WebLogic.
One of the issues that came up is that there are three tables
named User, Transaction, Identity which in case of SQL Server
happen to be reserved keywords. In JBoss descriptors we used
to escape those names with square brackets and it worked fine.
I can not seem to find a way to make it work in WebLogic. If
I escape them as mentioned, the appc compilation fails. If I
don't - the application fails to deploy not being able to find
those tables.
There must be a way to specify that the app server should
escape those table names. Can You help?
KlausHello. Thx for response.
I have tried something like
exec 'INSERT INTO "tuser"."dam.test.db::tuser.procedures.search_result" SELECT '''||table_name||''' AS TABLE_NAME, '||column_name||' AS ID, SCORE() AS SCORE FROM '||table_name||' WHERE contains(*, '''||keyword||''', fuzzy(0.5))';
but here i have "tuser"."dam.test.db::tuser.procedures.search_result" created before the execution. What i really want is to make it as a local variable. Something like:
DECLARE schema_name NVARCHAR(300) := 'tuser';
indexed_tables = SELECT DISTINCT "TABLE_NAME" FROM "SYS"."FULLTEXT_INDEXES" WHERE "SCHEMA_NAME" = :schema_name ;
but i can not transform the top 'exec ...' statement into 'result = SELECT ...' because it always says that it can not pass the scalar value into the 'FROM ...' part. -
Timestamp keyword or reserved keyword
This is actualy a definition question...
consider a table having a timestamp column named timestamp and the v$reserved_words view in oracle 10.
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
CREATE TABLE TF
(timestamp timestamp);(timestamp is a keyword according to the v$reserved_words_view)
and a procedure to delete data from it
BEGIN
DELETE TF;
END;
/produces this output
delete tf;
ERROR at line 2:
ORA-06550: line 2, column 8:
PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-320: the declaration of the type of this expression is
incomplete or malformed
ORA-06550: line 2, column 1:
PL/SQL: SQL Statement ignoredThis fails to compile.... I would think timestamp is a reserved keyword instead of a normal keyword.Zpuit wrote:
Lukasz,
I think it should have replied this:
SQL> SELECT * FROM v$reserved_words WHERE keyword = 'TIMESTAMP';
KEYWORD LENGTH R R R R D
TIMESTAMP 9 Y N N N Nand i already know this falls into a hair-splitting category of things. The reservered words view contains both keywords and reserved keywords. According to the definition (as I interpret it) Reserved keywords cannot be used in table and columnnames. Keywords should not be used as identifiers and
keywords might be promoted to reserved keywords in a future release (which is the question I am asking but for this release). It only fails in PLSQL, I know it works fine in SQL.Bottom line: never user either reserved words or key words as identifiers. Regardless of how oracle handles it, it just makes for confusion when reading and debugging code. If shops had strong naming standards (an idea that seems to have gone the way of the buggy whip) this would not even be an issue. -
Is bg a reserved keyword in AS2 ?
Hi there!
I use Flash 8
In my ASPanel, colored coding marks my variable bg as a
keyword (like true or undefined or _visible, etc).
I didn't find any warning about the string "bg" in the Flash
Help.
Could somebody light my lantern?Since I noticed the problem, I have closed and reopen my file
almost ten times.
And it is still there.
My question is one of simple curiosity because I didn't
noticed any malfunction or error related to this "problem". And
when I output my .swf, the output panel doesn't show any error.
This is mystery for me...
Why the h... is this word colored?
:-) -
Parsing xml when a tag's attribute is having reserved keywords like &
I am having a jar that contain xml file and in one of tag i have attribute description containing special character &.
example :
<hotfix desc="testing for sun & java" update-version="105" >
Note: Am using DOM parser
While am getting exception :
{color:#FF0000}[Fatal Error] :8:28: The entity name must immediately follow the '&' in the entity reference.
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
{color}Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.
Moved back and forth to allow replies. The trailing ampersand in the title causes a server error. -
Illegal use of keyword "SELECT"...
Hi,
I am new to TimesTen and using version 11.2 with Hibernate.
I get the following error while running my application--
*01 Feb 2011 12:03:29,201 [WARN] org.hibernate.util.JDBCExceptionReporter: SQL Error: 7025, SQLState: 37000*
*01 Feb 2011 12:03:29,201 [ERROR] org.hibernate.util.JDBCExceptionReporter: [TimesTen][TimesTen 11.2.1.7.0 ODBC Driver][TimesTen]TT7025: Illegal use of reserved keyword "SELECT", character position: 459 -- file "ptSqlY.y", lineno 8158, procedure "reserved_word_or_syntax_error"*
Would really appreciate some help as tyo how to fix this problem.I've spoken to various folks today about this. I'm not a Hibernate / TT dialect expert by any means. However, this SQL is a (sort of) documented restriction in TimesTen. This usage of SELECT is a 'derived table' and, unlike Oracle and many other databases, TimesTen currently only supports these in the FROM clause but not in other places such as, here, a projection list.
So, it's not a bug but a limitation of our current SQL implementation.
With regards to where it's coming from, based on the info that is provided, we think that the source of this SQL error is not directly from Hibernate or from the Hibernate dialect class that the application uses. We think this scalar subquery in the select list is defined in a Hibernate mapping document as something called a derived property.
In Hibernate, Java object fields are usually mapped to table columns using a property element within the hibernate-mapping element like this:
<hibernate-mapping>
<class name="com.timesten.tptbmas.Tptbm" table="TPTBM">
<composite-id name="key" class="com.timesten.tptbmas.TptbmPKey">
<key-property name="vpn_id" column="vpn_id" />
<key-property name="vpn_nb" column="vpn_nb"/>
</composite-id>
<property name="directory_nb" column="directory_nb"/>
<property name="last_calling_party" column="last_calling_party"/>
<property name="descr" column="descr"/>
</class>
</hibernate-mapping>
This is the usual case, however, it is also possible to map Java object fields to 'derived' values from the database table. These 'derived' values are expressions in the select list instead of simple column references.
A 'derived' property is defined in the property element using the 'formula' attribute.
For example:
<property name="descr" formula="'VPN ' || TO_CHAR (VPN_ID) || ' extension ' || TO_CHAR (VPN_NB)"/>
The value of 'formula' is any valid SQL expression that can appear in the select list.
Our belief is that you are defining a scalar subquery for 'formula'. For example:
<property name="descr" formula="(SELECT COUNT (*) FROM DUAL)"/>
And this generates the error when executed against TimesTen.
The solution is to rewrite 'formula' using a select list expressions that TimesTen supports - or change things to avoid the need for a derived property in the select list.
If this doesn't solve it, it's probably best to log an SR so we can obtain various files from you that we would need to look into it further. -
Assert keyword reference in javafx
I've been looking for a javafx webpage that will get me
the list of keywords in javafx 1.2. However, this link:
http://openjfx.java.sun.com/current-build/doc/reference/JavaFXReference.html
doesn't seem to work anymore. I did find this one:
http://jarfiller.com/reference/javafxscript/
Which has a full page of examples on how to use the keyword assert.
So I tried this in netbeans:
package javafxapplication19;
assert(true);
But this will not compile either with Netbeans 6.8 or javafxc 1.2.3.
Question is where can I get a list of javafx keywords on the net?
And what am I doing wrong with my simple javafx program?
TomAh, openjfx is back up. The [language reference|http://openjfx.java.sun.com/current-build/doc/reference/apas01.html] has this list of reserved words:
{noformat}abstract after and as assert at attribute before bind bound break{noformat}
{noformat}catch class continue def delete else exclusive extends false finally{noformat}
{noformat}first for from function if import indexof in init insert instanceof into{noformat}
{noformat}inverse last lazy mixin mod new not null on or override package{noformat}
{noformat}postinit private protected public-init public public-read replace return{noformat}
{noformat}reverse sizeof static step super then this throw trigger true try tween{noformat}
{noformat}typeof var where while with{noformat}
Hm, seems somewhat out of date.
Good point about the difference between "reserved words" and keywords that are
not reserved. I didn't know about this. However, the file {color:#ff00ff}v4Parser.g{color} right
next to the file {color:#ff00ff}v4Lexer.g{color} I referenced above has a nice explanation of
the difference between reserved words and non-reserved keywords. As usual, the
source code seems to be the definitive documentation.
Note, you can still use the double angle bracket syntax to use even reserved words as identifiers,
for example, {color:#ff00ff}var <<typeof>> = 1{color}. Why anyone would want to do this, I'm not sure.
I still don't know what {color:#ff00ff}typeof{color} does. Yes, {color:#ff00ff}invalidate{color} was added after 1.2. I'm
not sure what its status is though. Not that I'm trying to keep secrets. If it's merely
experimental, though, I wouldn't want to encourage people to use it. Sufficiently motivated
individuals are welcome to look through the source code. :-)
Edited by: smarks on Apr 6, 2010 11:15 AM -
2.1 EA 1: ORA-00923: FROM keyword not found where expected
Hi,
there is a simple table which results in this error when opening the data tab. All other tabs are ok. In 1.5 the table can be opened with the data tab.
Columns:
ID NUMBER No 1
PARENT_ID NUMBER Yes 2
NODE_NAME VARCHAR2(50 BYTE) Yes 3
KREDFILIALE VARCHAR2(50 BYTE) Yes 4
VALID_FROM DATE Yes to_date('20081001','yyyymmdd') 5
VALID_TO DATE Yes to_date('20090930','yyyymmdd') 6
LEVEL NUMBER(2,0) Yes 7
LIEFERANTENNR VARCHAR2(50 BYTE) Yes 8
SCGROUP NUMBER Yes 9
Regards,
Juergenlogged Bug 9000729 - ea1: otnforum: datatab fails to open for a reserved keyword column name
-Raghu -
Need a procedure to check reserve words are in uppercase or not?
Hi All,
i am using oracle 11g,
my question is i wanted to create procudure and i am passing a sql query as input parameter and there i am using lots of oracle reserve keywords. but i need to check if those reserve keywords are not in uppercase
it should show error message and error line. suppose my query is like below and it should show which line error is?
SELECT FINDING_LEVEL_ID
,PROTOCOL_SETUP_ID
,FLV_LAST_MODIFIED_BY
,FLV_LAST_MODIFIED_ON
FROM empb
Where EXISTS (SELECT 1
FROM dept a
Where a.PROTOCOL_SETUP_ID = b.PROTOCOL_SETUP_ID
AND PROTOCOL_LAST_MODIFIED_ON >
to_date(ms_sra_get_max_date_fnc('N'
,'SGMGBI')
,'DD-MON-YYYY HH24:MI:SS'));
suppose error is there in where key word so it should show errorline and error message, but error message is common for every line.
please help me
Thanks
Damby913349 wrote:
Hello Ramin,
but i need as dyanamic,i cant write always select exist from dual or select 'select' where from dual .
anyway i need to pass as parameter.
Thanks
Damby
I don't read other posts , I gave you only example... If you have table with this words you should replace RS to your table name. And write pl/sql code for procedure.
with rs(a) as
select 'WHERE' FROM DUAL UNION ALL
select 'FROM' FROM DUAL UNION ALL
select 'EXISTS' FROM DUAL UNION ALL
select 'SELECT' FROM DUAL
select a.a,
substr(s,REGEXP_instr(upper(s),a,1,column_value),length(a)) error_word,
REGEXP_instr(upper(s),a,1,column_value) err_line
from(
select rownum n, q.*, rs.*, regexp_count(upper(q.s), rs.a) cnt from (
select
'SELECT FINDING_LEVEL_ID,
PROTOCOL_SETUP_ID,
FLV_LAST_MODIFIED_BY,
FLV_LAST_MODIFIED_ON
froM empb
Where exists (SELECT 1
FROM dept a
Where a.PROTOCOL_SETUP_ID = b.PROTOCOL_SETUP_ID
AND PROTOCOL_LAST_MODIFIED_ON > to_date(ms_sra_get_max_date_fnc(''N'', ''SGMGBI''),''DD-MON-YYYY HH24:MI:SS''));' s
from dual) q, RS) a, table(select collect(rownum) from dual connect by level <= a.cnt)
where a != substr(s,REGEXP_instr(upper(s),a,1,column_value),length(a))
A
ERROR_WORD
ERR_LINE
WHERE
Where
121
WHERE
Where
175
FROM
froM
111
EXISTS
exists
127
Ramin Hashimzade -
Table Filter Problem with Operators And ,Or
Hi ,
Version : Jdeveloper 11.1.1.5
I Created one view object based on query( Select Empno,Ename From Emp)
Based on View Object - I created adf table .
In Emp table data is as shown below
Empno Ename
1 Hari
2 Ramu and Hari
I made "Filterable" Property true and FilterFeature is CaseInsensitive
When i query 'Ramu a' it will retrive correctly,if i query 'Ramu and' it will show no data to display
Please suggest me how to solve
Note : What i noticed is and ,or are treating as operators
Thanks
SkHi,
tried the same with JDeveloper 11.1.1.6 and it works without problems. The only problem that will arise is if you search for e.g. "Mickey and" to find Mickey and Mouse. Here "and" is recognized as a reserved keyword. However, you work around this by using "Mickey an". Note that you can intercept the table query using a QueryListener to handle cases where key words are used within a string
Frank
Edited by: Frank Nimphius on Apr 27, 2012 7:55 AM -
Why is my flash content not working on my dreamweaver created html site?
This is a problem that's happening on my website I'm creating. I created a quick test website to show you the problem on the fourm. It's the same problem, and if you can provide the solution to this test website I can apply it to my main website.
Test website on server:
test331754952.net23.net
What I did:
-launched flash
-typed "test" and made it spin 360 degrees
-published swf
-launched dreamweaver
-created a site
-moved swf to site folder
-saved a html file to the site folder
-in dreamweaver, went to insert, media, swf, then selected the swf I made
-it inserted the swf, creating a gray placeholder for it
-re-saved the html document, at which point dreamweaver created a folder named script and 2 files, an swf, and a javascript file
Site Directory:
Scripts Sub-Directory:
What happens:
-when I launch the swf on my machine, it plays fine
-when I open the swf directly on the test website on the server, it plays fine
-when I open the html with the embended swf on the test website on the server, it shows a gray box, then goes white
-In dreamweaver, when I go to preview in browser and choose internet explorer, it tells me I don't have new flashplayer(I do: flashplayer 11)
Ie also pokes up a box at the bottom that says its not allowing content. When I click allow content, it creates a gray box
-In dreamweaver, when I go to preview in borwser and choose google chrome, it tells me flash player has stopped a potentionally unsafe operation. When I close this dialog box, it gives me a gray box where my swf should be embeded.
-I've tried changing global flash secuirty setting and it does nothing
-I've tried visiting the test website on multiple computers in my household to no avail
-I've tried having friends visit the site on their computer at their house to no avail
-I did't touch the code on this test website-the code is exactly what dreamweaver generated
Html Document Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="test">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
Javascript file code(the one dreamweaver made when I inserted swf):
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/>
Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
FLASH_MIME_TYPE = "application/x-shockwave-flash",
EXPRESS_INSTALL_ID = "SWFObjectExprInst",
win = window,
doc = document,
nav = navigator,
domLoadFnArr = [],
regObjArr = [],
timer = null,
storedAltContent = null,
storedAltContentId = null,
isDomLoaded = false,
isExpressInstallActive = false;
/* Centralized function for browser feature detection
- Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
- User agent string detection is only used when no alternative is possible
- Is executed directly for optimal performance
var ua = function() {
var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF && typeof doc.appendChild != UNDEF && typeof doc.replaceChild != UNDEF && typeof doc.removeChild != UNDEF && typeof doc.cloneNode != UNDEF,
playerVersion = [0,0,0],
d = null;
if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
d = nav.plugins[SHOCKWAVE_FLASH].description;
if (d) {
d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
else if (typeof win.ActiveXObject != UNDEF) {
var a = null, fp6Crash = false;
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
playerVersion = [6,0,21];
a.AllowScriptAccess = "always"; // Introduced in fp6.0.47
catch(e) {
if (playerVersion[0] == 6) {
fp6Crash = true;
if (!fp6Crash) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
catch(e) {}
if (!fp6Crash && a) { // a will return null when ActiveX is disabled
try {
d = a.GetVariable("$version"); // Will crash fp6.0.21/23/29
if (d) {
d = d.split(" ")[1].split(",");
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
catch(e) {}
var u = nav.userAgent.toLowerCase(),
p = nav.platform.toLowerCase(),
webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
ie = false,
windows = p ? /win/.test(p) : /win/.test(u),
mac = p ? /mac/.test(p) : /mac/.test(u);
/*@cc_on
ie = true;
@if (@_win32)
windows = true;
@elif (@_mac)
mac = true;
@end
return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
/* Cross-browser onDomLoad
- Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
- Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
var onDomLoad = function() {
if (!ua.w3cdom) {
return;
addDomLoadEvent(main);
if (ua.ie && ua.win) {
try { // Avoid a possible Operation Aborted error
doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors
var s = getElementById("__ie_ondomload");
if (s) {
s.onreadystatechange = function() {
if (this.readyState == "complete") {
this.parentNode.removeChild(this);
callDomLoadFunctions();
catch(e) {}
if (ua.webkit && typeof doc.readyState != UNDEF) {
timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
addLoadEvent(callDomLoadFunctions);
function callDomLoadFunctions() {
if (isDomLoaded) {
return;
if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
var s = createElement("span");
try { // Avoid a possible Operation Aborted error
var t = doc.getElementsByTagName("body")[0].appendChild(s);
t.parentNode.removeChild(t);
catch (e) {
return;
isDomLoaded = true;
if (timer) {
clearInterval(timer);
timer = null;
var dl = domLoadFnArr.length;
for (var i = 0; i < dl; i++) {
domLoadFnArr[i]();
function addDomLoadEvent(fn) {
if (isDomLoaded) {
fn();
else {
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
/* Cross-browser onload
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
- Will fire an event as soon as a web page including all of its assets are loaded
function addLoadEvent(fn) {
if (typeof win.addEventListener != UNDEF) {
win.addEventListener("load", fn, false);
else if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("load", fn, false);
else if (typeof win.attachEvent != UNDEF) {
win.attachEvent("onload", fn);
else if (typeof win.onload == "function") {
var fnOld = win.onload;
win.onload = function() {
fnOld();
fn();
else {
win.onload = fn;
/* Main function
- Will preferably execute onDomLoad, otherwise onload (as a fallback)
function main() { // Static publishing only
var rl = regObjArr.length;
for (var i = 0; i < rl; i++) { // For each registered object element
var id = regObjArr[i].id;
if (ua.pv[0] > 0) {
var obj = getElementById(id);
if (obj) {
regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
fixParams(obj);
setVisibility(id, true);
else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
showExpressInstall(regObjArr[i]);
else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
displayAltContent(obj);
else { // If no fp is installed, we let the object element do its job (show alternative content)
setVisibility(id, true);
/* Fix nested param elements, which are ignored by older webkit engines
- This includes Safari up to and including version 1.2.2 on Mac OS 10.3
- Fall back to the proprietary embed element
function fixParams(obj) {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var e = createElement("embed"), a = nestedObj.attributes;
if (a) {
var al = a.length;
for (var i = 0; i < al; i++) {
if (a[i].nodeName.toLowerCase() == "data") {
e.setAttribute("src", a[i].nodeValue);
else {
e.setAttribute(a[i].nodeName, a[i].nodeValue);
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var j = 0; j < cl; j++) {
if (c[j].nodeType == 1 && c[j].nodeName.toLowerCase() == "param") {
e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
obj.parentNode.replaceChild(e, obj);
/* Fix hanging audio/video threads and force open sockets and NetConnections to disconnect
- Occurs when unloading a web page in IE using fp8+ and innerHTML/outerHTML
- Dynamic publishing only
function fixObjectLeaks(id) {
if (ua.ie && ua.win && hasPlayerVersion("8.0.0")) {
win.attachEvent("onunload", function () {
var obj = getElementById(id);
if (obj) {
for (var i in obj) {
if (typeof obj[i] == "function") {
obj[i] = function() {};
obj.parentNode.removeChild(obj);
/* Show the Adobe Express Install dialog
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
function showExpressInstall(regObj) {
isExpressInstallActive = true;
var obj = getElementById(regObj.id);
if (obj) {
if (regObj.altContentId) {
var ac = getElementById(regObj.altContentId);
if (ac) {
storedAltContent = ac;
storedAltContentId = regObj.altContentId;
else {
storedAltContent = abstractAltContent(obj);
if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
regObj.width = "310";
if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
regObj.height = "137";
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
dt = doc.title,
fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
replaceId = regObj.id;
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
if (ua.ie && ua.win && obj.readyState != 4) {
var newObj = createElement("div");
replaceId += "SWFObjectNew";
newObj.setAttribute("id", replaceId);
obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
/* Functions to abstract and display alternative content
function displayAltContent(obj) {
if (ua.ie && ua.win && obj.readyState != 4) {
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
var el = createElement("div");
obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
el.parentNode.replaceChild(abstractAltContent(obj), el);
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
else {
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
function abstractAltContent(obj) {
var ac = createElement("div");
if (ua.win && ua.ie) {
ac.innerHTML = obj.innerHTML;
else {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (!(c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param") && !(c[i].nodeType == 8)) {
ac.appendChild(c[i].cloneNode(true));
return ac;
/* Cross-browser dynamic SWF creation
function createSWF(attObj, parObj, id) {
var r, el = getElementById(id);
if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
attObj.id = id;
if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
var att = "";
for (var i in attObj) {
if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
if (i == "data") {
parObj.movie = attObj[i];
else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
att += ' class=" + attObj[i] + "';
else if (i != "classid") {
att += ' ' + i + '="' + attObj[i] + '"';
var par = "";
for (var j in parObj) {
if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
par += '<param name="' + j + '" value="' + parObj[j] + '" />';
el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
fixObjectLeaks(attObj.id); // This bug affects dynamic publishing only
r = getElementById(attObj.id);
else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
var e = createElement("embed");
e.setAttribute("type", FLASH_MIME_TYPE);
for (var k in attObj) {
if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
if (k == "data") {
e.setAttribute("src", attObj[k]);
else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
e.setAttribute("class", attObj[k]);
else if (k != "classid") { // Filter out IE specific attribute
e.setAttribute(k, attObj[k]);
for (var l in parObj) {
if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
if (l != "movie") { // Filter out IE specific param element
e.setAttribute(l, parObj[l]);
el.parentNode.replaceChild(e, el);
r = e;
else { // Well-behaving browsers
var o = createElement(OBJECT);
o.setAttribute("type", FLASH_MIME_TYPE);
for (var m in attObj) {
if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
o.setAttribute("class", attObj[m]);
else if (m != "classid") { // Filter out IE specific attribute
o.setAttribute(m, attObj[m]);
for (var n in parObj) {
if (parObj[n] != Object.prototype[n] && n != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
createObjParam(o, n, parObj[n]);
el.parentNode.replaceChild(o, el);
r = o;
return r;
function createObjParam(el, pName, pValue) {
var p = createElement("param");
p.setAttribute("name", pName);
p.setAttribute("value", pValue);
el.appendChild(p);
function getElementById(id) {
return doc.getElementById(id);
function createElement(el) {
return doc.createElement(el);
function hasPlayerVersion(rv) {
var pv = ua.pv, v = rv.split(".");
v[0] = parseInt(v[0], 10);
v[1] = parseInt(v[1], 10);
v[2] = parseInt(v[2], 10);
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
/* Cross-browser dynamic CSS creation
- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
function createCSS(sel, decl) {
if (ua.ie && ua.mac) {
return;
var h = doc.getElementsByTagName("head")[0], s = createElement("style");
s.setAttribute("type", "text/css");
s.setAttribute("media", "screen");
if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
h.appendChild(s);
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
var ls = doc.styleSheets[doc.styleSheets.length - 1];
if (typeof ls.addRule == OBJECT) {
ls.addRule(sel, decl);
function setVisibility(id, isVisible) {
var v = isVisible ? "inherit" : "hidden";
if (isDomLoaded) {
getElementById(id).style.visibility = v;
else {
createCSS("#" + id, "visibility:" + v);
function getTargetVersion(obj) {
if (!obj)
return 0;
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "swfversion") {
return c[i].getAttribute("value");
return 0;
function getExpressInstall(obj) {
if (!obj)
return "";
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "expressinstall") {
return c[i].getAttribute("value");
return "";
return {
/* Public API
- Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
if (!ua.w3cdom || !objectIdStr) {
return;
var obj = document.getElementById(objectIdStr);
var xi = getExpressInstall(obj);
var regObj = {};
regObj.id = objectIdStr;
regObj.swfVersion = swfVersionStr ? swfVersionStr : getTargetVersion(obj);
regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : ((xi != "") ? xi : false);
regObjArr[regObjArr.length] = regObj;
setVisibility(objectIdStr, false);
getObjectById: function(objectIdStr) {
var r = null;
if (ua.w3cdom && isDomLoaded) {
var o = getElementById(objectIdStr);
if (o) {
var n = o.getElementsByTagName(OBJECT)[0];
if (!n || (n && typeof o.SetVariable != UNDEF)) {
r = o;
else if (typeof n.SetVariable != UNDEF) {
r = n;
return r;
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
return;
widthStr += ""; // Auto-convert to string to make it idiot proof
heightStr += "";
if (hasPlayerVersion(swfVersionStr)) {
setVisibility(replaceElemIdStr, false);
var att = (typeof attObj == OBJECT) ? attObj : {};
att.data = swfUrlStr;
att.width = widthStr;
att.height = heightStr;
var par = (typeof parObj == OBJECT) ? parObj : {};
if (typeof flashvarsObj == OBJECT) {
for (var i in flashvarsObj) {
if (flashvarsObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
if (typeof par.flashvars != UNDEF) {
par.flashvars += "&" + i + "=" + flashvarsObj[i];
else {
par.flashvars = i + "=" + flashvarsObj[i];
addDomLoadEvent(function() {
createSWF(att, par, replaceElemIdStr);
if (att.id == replaceElemIdStr) {
setVisibility(replaceElemIdStr, true);
else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
setVisibility(replaceElemIdStr, false);
addDomLoadEvent(function() {
var regObj = {};
regObj.id = regObj.altContentId = replaceElemIdStr;
regObj.width = widthStr;
regObj.height = heightStr;
regObj.expressInstall = xiSwfUrlStr;
showExpressInstall(regObj);
getFlashPlayerVersion: function() {
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
hasFlashPlayerVersion:hasPlayerVersion,
createSWF: function(attObj, parObj, replaceElemIdStr) {
if (ua.w3cdom && isDomLoaded) {
return createSWF(attObj, parObj, replaceElemIdStr);
else {
return undefined;
createCSS: function(sel, decl) {
if (ua.w3cdom) {
createCSS(sel, decl);
addDomLoadEvent:addDomLoadEvent,
addLoadEvent:addLoadEvent,
getQueryParamValue: function(param) {
var q = doc.location.search || doc.location.hash;
if (param == null) {
return q;
if(q) {
var pairs = q.substring(1).split("&");
for (var i = 0; i < pairs.length; i++) {
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
return pairs[i].substring((pairs[i].indexOf("=") + 1));
return "";
// For internal usage only
expressInstallCallback: function() {
if (isExpressInstallActive && storedAltContent) {
var obj = getElementById(EXPRESS_INSTALL_ID);
if (obj) {
obj.parentNode.replaceChild(storedAltContent, obj);
if (storedAltContentId) {
setVisibility(storedAltContentId, true);
if (ua.ie && ua.win) {
storedAltContent.style.display = "block";
storedAltContent = null;
storedAltContentId = null;
isExpressInstallActive = false;
Can someone please help! I've looked and tried prety much everything. If you can provide a solution I would GREATLY apreciate it!There is no Flash player version 15... as in your code:
<param name="swfversion" value="15.0.0.0" />
For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
Best wishes,
Adninjastrator -
Error in report "8.2 ORacle Essbase- Source Blending Page"
Hi,
I got an error in the report in "8.2 ORacle Essbase- Source Blending Page" after i deployed sample core and aslo configured with hyperion Essbase cubes related to this dashboard page.
The main issue i was struggling is i have 2 more working instances configure with same essbase cube, those are working fine and report is showing in other 2 instances, but the 3 rd instance is showing error.. I deployed sample app core perfectly and all reports are showing only this report is giving me error.
Even i tried by copying the xmls from the working instances also but no luck..Can any one suggest wat will be went wrong at my side.. 2 more instance are working fine with those cubes.
Please see the below error message i was getting for that report.
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 34500, message: ORA-34500: FROM is a reserved keyword that cannot be used in this context. measure olap_rev_gross_revenue from OLAP_REV_GROSS_REVENUE dimension olap_cust_segment_id from OLAP_CUST_SEGMENT with attribute olap_cust_segment_level from hierarchy ( 'CUST_SEGMENT') inhierarchy dimension olap_employee_id from OLAP_EMPLOYEE with hierarchy ( 'ORG') inhierarchy dimension olap_office_id from OLAP_OFFICE with attribute olap_office_level from hierarchy ( 'COMPANY_HIER') inhierarchy dimension at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12, s_13, s_14, s_15, s_16, s_17, s_18, s_19, s_20, s_21, s_22, s_23 FROM ( SELECT 0 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, 'Total Products' s_3, CAST(NULL AS VARCHAR(1)) s_4, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, CAST(NULL AS DOUBLE) s_9, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_10, CAST(NULL AS DOUBLE) s_11, CAST(NULL AS DOUBLE) s_12, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_13, CAST(NULL AS DOUBLE) s_14, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_15, CAST(NULL AS DOUBLE) s_16, CAST(NULL AS DOUBLE) s_17, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_18, CAST(NULL AS INTEGER) s_19, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_20, CAST(NULL AS INTEGER) s_21, CAST(NULL AS INTEGER) s_22, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_23 FROM "D - Sample Federated" UNION ALL SELECT 1 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, 'Total Products' s_3, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand") s_4, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, CAST(NULL AS DOUBLE) s_9, CAST(NULL AS DOUBLE) s_10, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_11, CAST(NULL AS DOUBLE) s_12, CAST(NULL AS DOUBLE) s_13, CAST(NULL AS DOUBLE) s_14, CAST(NULL AS DOUBLE) s_15, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_16, CAST(NULL AS DOUBLE) s_17, CAST(NULL AS DOUBLE) s_18, CAST(NULL AS INTEGER) s_19, CAST(NULL AS INTEGER) s_20, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_21, CAST(NULL AS INTEGER) s_22, CAST(NULL AS INTEGER) s_23 FROM "D - Sample Federated" WHERE (IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") IN (1)) AND (("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2008')) OR ("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2009')) OR ("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2010'))) UNION ALL SELECT 2 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, CAST(NULL AS VARCHAR(1)) s_3, CAST(NULL AS VARCHAR(1)) s_4, CAST(NULL AS INTEGER) s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_9, CAST(NULL AS DOUBLE) s_10, CAST(NULL AS DOUBLE) s_11, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY ) s_12, CAST(NULL AS DOUBLE) s_13, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_14, CAST(NULL AS DOUBLE) s_15, CAST(NULL AS DOUBLE) s_16, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY ) s_17, CAST(NULL AS DOUBLE) s_18, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_19, CAST(NULL AS INTEGER) s_20, CAST(NULL AS INTEGER) s_21, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY ) s_22, CAST(NULL AS INTEGER) s_23 FROM "D - Sample Federated" ) djm
Any help was greatly appreciable...Thanks in Advancne..
Regards
RushiHi,
I got an error in the report in "8.2 ORacle Essbase- Source Blending Page" after i deployed sample core and aslo configured with hyperion Essbase cubes related to this dashboard page.
The main issue i was struggling is i have 2 more working instances configure with same essbase cube, those are working fine and report is showing in other 2 instances, but the 3 rd instance is showing error.. I deployed sample app core perfectly and all reports are showing only this report is giving me error.
Even i tried by copying the xmls from the working instances also but no luck..Can any one suggest wat will be went wrong at my side.. 2 more instance are working fine with those cubes.
Please see the below error message i was getting for that report.
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 34500, message: ORA-34500: FROM is a reserved keyword that cannot be used in this context. measure olap_rev_gross_revenue from OLAP_REV_GROSS_REVENUE dimension olap_cust_segment_id from OLAP_CUST_SEGMENT with attribute olap_cust_segment_level from hierarchy ( 'CUST_SEGMENT') inhierarchy dimension olap_employee_id from OLAP_EMPLOYEE with hierarchy ( 'ORG') inhierarchy dimension olap_office_id from OLAP_OFFICE with attribute olap_office_level from hierarchy ( 'COMPANY_HIER') inhierarchy dimension at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12, s_13, s_14, s_15, s_16, s_17, s_18, s_19, s_20, s_21, s_22, s_23 FROM ( SELECT 0 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, 'Total Products' s_3, CAST(NULL AS VARCHAR(1)) s_4, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, CAST(NULL AS DOUBLE) s_9, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_10, CAST(NULL AS DOUBLE) s_11, CAST(NULL AS DOUBLE) s_12, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_13, CAST(NULL AS DOUBLE) s_14, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_15, CAST(NULL AS DOUBLE) s_16, CAST(NULL AS DOUBLE) s_17, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_18, CAST(NULL AS INTEGER) s_19, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_20, CAST(NULL AS INTEGER) s_21, CAST(NULL AS INTEGER) s_22, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products")) s_23 FROM "D - Sample Federated" UNION ALL SELECT 1 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, 'Total Products' s_3, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand") s_4, IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, CAST(NULL AS DOUBLE) s_9, CAST(NULL AS DOUBLE) s_10, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_11, CAST(NULL AS DOUBLE) s_12, CAST(NULL AS DOUBLE) s_13, CAST(NULL AS DOUBLE) s_14, CAST(NULL AS DOUBLE) s_15, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_16, CAST(NULL AS DOUBLE) s_17, CAST(NULL AS DOUBLE) s_18, CAST(NULL AS INTEGER) s_19, CAST(NULL AS INTEGER) s_20, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year",IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products"),IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Brand")) s_21, CAST(NULL AS INTEGER) s_22, CAST(NULL AS INTEGER) s_23 FROM "D - Sample Federated" WHERE (IDOF("D - Sample Federated"."Products"."Products Hierarchy"."Total Products") IN (1)) AND (("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2008')) OR ("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2009')) OR ("D - Sample Federated"."Time"."T05 Per Name Year" IN ('2010'))) UNION ALL SELECT 2 s_0, "D - Sample Federated"."Products"."P4 Brand" s_1, "D - Sample Federated"."Time"."T05 Per Name Year" s_2, CAST(NULL AS VARCHAR(1)) s_3, CAST(NULL AS VARCHAR(1)) s_4, CAST(NULL AS INTEGER) s_5, "D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" s_6, "D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" s_7, "D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" s_8, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_9, CAST(NULL AS DOUBLE) s_10, CAST(NULL AS DOUBLE) s_11, REPORT_AGGREGATE("D - Sample Federated"."Measures"."20d - Unit Price (Orcl Cube/Orcl Db)" BY ) s_12, CAST(NULL AS DOUBLE) s_13, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_14, CAST(NULL AS DOUBLE) s_15, CAST(NULL AS DOUBLE) s_16, REPORT_SUM("D - Sample Federated"."Measures"."1d- Revenue (Orcl Db Cube Only)" BY ) s_17, CAST(NULL AS DOUBLE) s_18, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY "D - Sample Federated"."Time"."T05 Per Name Year") s_19, CAST(NULL AS INTEGER) s_20, CAST(NULL AS INTEGER) s_21, REPORT_SUM("D - Sample Federated"."Measures"."2a- Qty (Orcl Db Tables Only)" BY ) s_22, CAST(NULL AS INTEGER) s_23 FROM "D - Sample Federated" ) djm
Any help was greatly appreciable...Thanks in Advancne..
Regards
Rushi -
Creation of tables using JDBC or SQLJ in webdynpro application
Hi,
I am trying to create tables in javadictionary(MaxDB)using my WebDynpro application.I tried creating tables using SQLJ and JDBC.But I was not able to do it.I can select and insert data into already created tables.
Whwn I tried creating a table using JDBC I encountered the following exception.
com.sap.sql.log.OpenSQLException: The SQL statement "CREATE TABLE TMP_DEPID (DEPID varchar(10) NOT NULL,DEPNAME VARCHAR(25))" contains the syntax error[s]: Open SQL syntax error: CREATE ... TABLE is not supported
SQL syntax error: "VARCHAR" is a reserved keyword and cannot be used as an unquoted identifier
Does this mean that creating tables is not supported?
Can anyone help me in this matter?
Thanks in advance,
regards
~Pradeep ShettyHi Pradeep,
Yes, OpenSQL does not support creation of tables. But why would you need to create tables at runtime?! The natural way is to create the model at design time of your application, i.e. with the Java DataDictionary.
However, if for any reason you really need to create database tables at runtime, you can achieve this by using a non-OpenSQL datasource, e.g. you could create a VendorSQL one and use it to obtain JDBC connections in your app. See also http://help.sap.com/saphelp_nw04/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm.
Hope that helps!
Vladimir
Maybe you are looking for
-
Why can't we delete albums or create new ones?
I really like the new iPhoto app for the iPhone 4s. Cool features and good layout, however, it would be helpful if we are able to create photo albums and/or delete ones that are already existing. Is there a tutorial page that can help me navigate thr
-
Order Entry - Line Items Unit_Selling_Price Updation
Dear All, When creating order in Order Entry form, Line Items TAB, I am unable to change the unit_selling_price, Presently this is populating from Order Management Price List form. We are struck here, Please help us how to manualy change the unit_sel
-
Unknown error [107]
JpHi, On cs3, I amtryoing tocreate a pattern brush with a symbol, or an after expanding the symbol. I can make the swatche. But when after creating an empty brush I try to refer to the swatche I ha a promt: unknown error [107] Thanks
-
Registry settings on 64-bit Windows 7
We are currently trying out TestStand 4.1 as well as 4.5 (the 2010 beta) on a 64-bit Windows 7. We have the following problem (not knowing whether this has to do with Windows 7 or with 64-bit, actually). We always set the TestStand configuration and
-
Getting a New Machine, Help Me Migrate
So, my new MacBook will be arriving at some point today. It's a 13", 2.0 Core2, 1 Gig/80 Gig HD, Combo Drive. Currently, I'm using a Mac Mini 1.25 G4 with an 80GB HD running 10.4.11 with a 160GB LaCie mini HD attached. I keep all of my media (iPhoto