Oracle Classgenerator error..help!
Hi !
I am using classgen version 1.0.1.0.0
and xmlparser version 2.0.0.1.0....
everythings in the CLASSPATH...
I could compile the SampleMain.java in the classgen/samples directory .
But when i run it with any dtd or the provided widl.dtd i get the following error
XML Class Generator: Error Attribute Value should start with quote
Attribute Value should start with quote
at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:191)
at oracle.xml.parser.v2.XMLError.error(XMLError.java:97)
at oracle.xml.parser.v2.XMLError.error(XMLError.java:135)
at oracle.xml.parser.v2.NonValidatingParser.parseAttrValue(Compiled Code
at oracle.xml.parser.v2.ValidatingParser.parseAttr(ValidatingParser.java
:418)
at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(Compiled Cod
e)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(Compiled Code)
at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
er.java:89)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
arser.java:181)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:142)
at SampleMain.main(SampleMain.java:45)
please help !
thanks
amit
null
I met this problem before. Checking your DTD file, especially the element's attribute list, don't forget to put a default value or "#required" after the attribute list, I mean put it before the end bracket.
I have another problem after fixing this one. My program did generate many classes according to the elements in XML file, but it also generated a class which is used in every class, but don't have definition at all, supposely, the definition class should be generated by the program too. Is there any body can help me? I posted this problem a few days ago, but no answer yet. Thank you in advance. Following is a auto-generated class:
/* DO NOT EDIT THIS FILE - it is machine-generated */
/* File: FirstName.java - generated by XML Class Generator version 1.0.0 at Mon Feb 21 08:43:58 EST 2000 */
import java.io.*;
import java.net.*;
import oracle.xml.classgen.CGNode;
import oracle.xml.classgen.CGDocument;
import oracle.xml.classgen.InvalidContentException;
import oracle.xml.parser.v2.*;
* The Node Class (for the root element FirstName)
public class FirstName extends CGNode
* Default Constructor
public FirstName()
super("FirstName");
isValidating = true;
* Constructor taking <code>#PCDATA</code>
* @param theData text for the Element
* @exception InvalidContentException <code>theData</code> is invalid
public FirstName(String theData) throws InvalidContentException
this();
super.addData(theData);
isValidating = true;
* Add a text node to <code>FirstName</code>
* @param theData value of the text node
* @exception InvalidContentException if the value of the text node is invalid
public void addData(String theData) throws InvalidContentException
super.addData(theData);
* Returns the EmployeeXML_xml DTD.
* @return the DTD
* @see oracle.xml.parser.v2.DTD
public DTD getDTDNode()
return EmployeeXML_xml.globalDTD;
* Validate contents of element <code>FirstName</code>
* @return true if valid contents, else false
* @exception InvalidContentException if the document is not valid
public void validateContent() throws InvalidContentException
super.validateContent();
* Get Document Class <code>EmployeeXML_xml</code>
* @return <code>EmployeeXML_xml</code> class
public EmployeeXML_xml getDocument()
return (EmployeeXML_xml)super.getCGDocument();
EmployeeXML_xml is not defined anywhere in the package. (My xml file's name is employeeXML.xml, and dtd file's name is employeeDTD.dtd)
Similar Messages
-
Obiee oracle gateway error while updating row count
Hi ,
OBIEE server 11.1.1.5 ,oracle server11g installed in linux 64bit,
while updating row count in Admin tool i am getting the following error
[NQODBC][SQL_STATE:HY000][nQSError:10058] A general error has occured.
[nQSError: 43113]Message returned from OBIS.
[nQSError:43093]An error occured while processing the EXECUTE PHYSICAL statement.
[nQSError:17003]Oracle gateway error: OCIEnvNIsCreate or OCIEnvInit failed to initialize environment.Please check your Oracle Client installation and make sure the correct version of OCI libraries are in the library path.
i am able to check the database from sqlplus it is working fine.
Any suggestion highly appreciated plzzzMake sure your connection pool is valid and able to import or execute reports.
If everything good as above said, in Physical layer database properties-> general tab choose the database version and try it once.
If not
Check the doc id 1271486.1
Or
To resolve the issue create a softlink (ln -s) in the <OracleBI>/server/Bin folder to link to the 32-bit Oracle Client Driver file.
The example below shows how to perform a softlink from the 64 bit directory:
cd /u10/app/orcladmin/oracle/OracleBI/server/Bin
ln -s $ORACLE_HOME/lib32/libclntsh.so.10.1 libclntsh.so.10.1
If helps mark -
Oracle SSO error while trying to access a report
Hi All,
I am using Oracle 11g reports and forms.My adf application(using JDeveloper 11.1.1.4) will use oracle reports through url.
From adf application we form a url for the reports like https://<server>:<port>/reports/rwservlet?server=devstage11g&destype=cache&desformat=pdf&report=spore001…
we send the userid parameter as a hidden parameter in the request as we do not want the userid information to be visible in the URL. It works fine in one environment. But in another environment when we hit the url it always give a page with a single line saying "Oracle SSO". When we hit the same url with userid parameter appended to it directly, it works fine.
Checked the configuration difference, but not able to find any difference in the configuration. Please help me to find why it always gives "Oracle SSO" error.
Thanks,
Priya.Hi ;
pelase check below which could be similar error like yours
Troubleshooting of Runtime Errors of Customer Intelligence Reports [ID 284829.1]
Regard
Helios -
5213: Bad Oracle login error in OCISessionBegin() while running ttcacheuidp
Hi,
I am working on Oracle TimesTen Client: Oracle TimesTen 11.2.1.8.0
I am following this step: http://download.oracle.com/otn_hosted_doc/timesten/1121/quickstart/html/admin/cache_grid_create.html
I am in the step 4: 4. Associate the Oracle Cache Administration user with the Cache Database
And I got this error:
Command> connect "dsn=cachedsh_schema;uid=cacheadm;pwd=cacheadm;oraclepwd=oracle";
Connection successful: DSN=cachedsh_schema;UID=cacheadm;DataStore=/u03/TimesTenCache/datastore/cachedsh_schema;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/u01/app/oracle/product/TimesTen/ttscofield/TimesTen/ttscofield/lib/libtten.so;PermSize=768;TempSize=256;TypeMode=0;OracleNetServiceName=SCOFIELD;
(Default setting AutoCommit=1)
Command> call ttcacheuidpwdset ('cacheadm','cacheadm');
5213: Bad Oracle login error in OCISessionBegin(): ORA-01017: invalid username/password; logon denied rc = -1
5935: Could not validate Oracle login: uid = CACHEADM, pwd = HIDDEN, OracleNetServiceName = SCOFIELD, TNS_ADMIN = "", ORACLE_HOME= "/u01/app/oracle/product/11.2/db_1"
The command failed.
What seems to be the issue?
I referenced this link: http://download.oracle.com/otn_hosted_doc/timesten/1121/doc/timesten.1121/e13069/proced.htm#TTREF237
And on the notes it says:
Notes
This procedure cannot be called from a Client/Server connection.
This procedure is available only for IMDB Cache.
The cache administration user ID and password cannot be set while either the cache agent or the replication agent are running.
The cache administration user ID cannot be reset while there are ASYNCHRONOUS WRITETHROUGH cache groups or AUTOREFRESH cache groups (with a state that is not equal to OFF) on the database.
What does: This procedure cannot be called from a Client/Server connection mean?
Is this the root cause of the problem or I am missing a step?
Thanks!I still get the same error. But I have figured out what is wrong. Just in case other users encounter the same errors, here's what I did:
I created a tnsnames.ora file in my TIMESTEN_HOME/network/admin that has the connection info to testenv Oracle instance. +(i dont know if this is necessary)+. Then:
[oracle@testenv ~]$ ttmodinstall -tns_admin option
TNS_ADMIN for the instance 'testenv' is currently not set.
Would you like to change TNS_ADMIN for this instance? [ yes ]
Please enter a value for TNS_ADMIN (q=quit)? [ option ] /u01/app/oracle/product/TimesTen/testenv/TimesTen/testenv/network/admin
Do you want to restart the daemon using the new configuration? [ yes ]
Restarting the daemon ...
TimesTen Daemon stopped.
TimesTen Daemon startup OK.
Instance testenv is now configured with TNS_ADMIN=/u01/app/oracle/product/TimesTen/testenv/TimesTen/testenv/network/admin
[oracle@testenv ~]$ ttversion
TimesTen Release 11.2.1.8.0 (64 bit Linux/x86_64) (testenv:53388) 2011-02-02T02:20:46Z
Instance admin: oracle
Instance home directory: /u01/app/oracle/product/TimesTen/testenv/TimesTen/testenv
Group owner: oinstall
Daemon home directory: /u01/app/oracle/product/TimesTen/testenv/TimesTen/testenv/info
PL/SQL enabled.
[oracle@testenv ~]$ ttisql "dsn=cachedsh_schema;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm"
Copyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "dsn=cachedsh_schema;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm";
Connection successful: DSN=cachedsh_schema;UID=cacheadm;DataStore=/u03/TimesTenCache/datastore/cachedsh_schema;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/u01/app/oracle/product/TimesTen/testenv/TimesTen/testenv/lib/libtten.so;PermSize=768;TempSize=256;TypeMode=0;OracleNetServiceName=SCOFIELD;
(Default setting AutoCommit=1)
Command> call ttgridcreate ('cachedshgrid');
Command> call ttgridinfo;
< CACHEDSHGRID, CACHEADM, Linux x86-64, 64-bit, 11, 2, 1 >
1 row found.
Command> call ttgridnameset ('cachedshgrid');
Command>
Thanks! -
Oracle 9i Error in invoking target ntcontab.o of makefile
Does anybody know what this means / how to get the install to continue (I am using Mandrake 8.1) I am new both to Oracle and Linux, help to finally get this installed would be much appreciated.
user2040322 wrote:
n/sh: /usr/bin/gcc: No such file or directory
mv: cannot stat `ntcontab.o': No such file or directoryWhat is OS and do You installed all needed packages?
For example from this error we can see that gcc probably is missing.
Check install guide and install required packages. -
[Microsoft][ODBC driver for Oracle]Syntax error or access violation
Hi,
When I am trying to connect to Oracle 8.1.6 database using Microsoft ODBC driver for Oracle. The connection is established.
But while creating CallableStatement, I am getting error "[Microsoft][ODBC driver for Oracle]Syntax error or access violation".
What I need to do to resolve this problem.
RajHi Satish
It could be an issue with the driver.
You can try with the OLEDB n Oracle native connection to test if the issue persists.
Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
Hope this helps!!
Regards
Sourashree -
Bug in oracle.toplink.internal.helper.JDK14Platform?
It looks like JDK14Platform tries to compile the text we are searching as regular expressions...
Yet the descriptions we are searching can contain special characters like "{" or "+"...
Caused by: java.util.regex.PatternSyntaxException: Illegal repetition near index 15
ceci est un test{{Text1}}
^
at java.util.regex.Pattern.error(Pattern.java:1528)
at java.util.regex.Pattern.closure(Pattern.java:2545)
at java.util.regex.Pattern.sequence(Pattern.java:1656)
at java.util.regex.Pattern.expr(Pattern.java:1545)
at java.util.regex.Pattern.compile(Pattern.java:1279)
at java.util.regex.Pattern.<init>(Pattern.java:1035)
at java.util.regex.Pattern.compile(Pattern.java:779)
at java.util.regex.Pattern.matches(Pattern.java:865)
at oracle.toplink.internal.helper.JDK14Platform.conformLike(JDK14Platform.java:54)
at oracle.toplink.internal.helper.JavaPlatform.conformLike(JavaPlatform.java:57)
at oracle.toplink.expressions.ExpressionOperator.doesRelationConform(ExpressionOperator.java:750)
at oracle.toplink.internal.expressions.RelationExpression.doesConform(RelationExpression.java:126)
at oracle.toplink.internal.identitymaps.IdentityMapManager.getAllFromIdentityMap(IdentityMapManager.java:209)
at oracle.toplink.publicinterface.Session.getAllFromIdentityMap(Session.java:1251)
at oracle.toplink.queryframework.ReadAllQuery.conformResult(ReadAllQuery.java:314)
at oracle.toplink.queryframework.ReadAllQuery.registerObjectInUnitOfWork(ReadAllQuery.java:684)
at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2217)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
at oracle.toplink.publicinterface.Session.readAllObjects(Session.java:2423)This is a known issue and will be fixed in the next 9.0.4 patch release.
-
Oracle text error when generating random rows
Hello
firing
SELECT *
FROM
SELECT NAME,EMAIL,ADDRESS1,ADDRESS2,CONTACT_NAME,MOBILE,TELEPHONE FROM MV_CAT_SEG_REG_PROD
WHERE CATSEARCH(CAT_TYPES,'security services*' ,NULL)>0 AND
PLAN_ID=1 AND ACT_STATUS='N'
ORDER BY DBMS_RANDOM.VALUE
where rownum < 4;
returns
ORA-20000: Oracle Text error:
DRG-10849: catsearch does not support functional invocation
DRG-10599: column is not indexed
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
using oracle 10gr2 on windows server 2003
i have tried 1)dropping the index and creating it again, the index type is "CTXSYS"."CTXCAT"
2) deleting the stats -checking
3)recreating the stats- checking
the table here is a materialized view
i need to tell you people that
there are two indexes cat_types_ind and cat_ids_idx on cat_types and cat_ids columns respectively
the inner query uses cat_types_idx index when executed and seen in sqladvisor
1)removing the order by clause will make the query work but i really want that order by clause
2)the inner-query-only works fine
3) i have seen the forums and they have helped regarding the things i tried above but it does not work
please tell me if i need to further elaborate on anything
thanks in advanceI have same problem, my query is:
SELECT *
FROM
(SELECT
/*+ FIRST_ROWS(50) */
NTQ.*,
ROWNUM RNUM1
FROM
(SELECT
/*+ INDEX(DL_TSD_DEFTR_CI) */
FROM ima_ol.DL_TSD_SITUATION s
WHERE (CATSEARCH(DEF_TRANS,'milano ',NULL)>0)
AND (s.FORECAST = 0)
AND (s.STATE IN (1,0,4))
AND (s.ARCH_STATE = 0)
ORDER BY s.VET_TS DESC
) NTQ
WHERE ROWNUM <=50
WHERE RNUM1 >=1
my oracle and system version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
I have suggested that to solve the problem I should alter the statistics of the offending table to force to use this index .. how do I do? thanks in advance -
Where is the oracle portal error page stored? Can we override the default error page?
Please advise, thanks.
The error page shows when object is not found
Home Help
Error
Error
Object not found. (WWC-50003)
Back
Copyright© 2005, Oracle. All Rights Reserved
The error page shows when user has no permission
Home Help
Error
Error
You do not have permission to perform this operation (WWC-41415)
Logout
Copyright© 2005, Oracle. All Rights Reserved
Regards,
EricActually the two error page shown occurs when the page is not found in the portal builder(Object not found) or the user is not allowed to access the page(do not have permission to perform..). These error page are shown automatically by oracle portal. I like to know where these error page is shown in oracle portal so that i can edit the page to suit my needs like change the header etc.
I went to the sample error page to edit but the change was not reflected in the two error pages above so these two error pages might be stored in some location such that when either object not found or no permission, the error pages are reflected in the webpage. -
b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b
Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
import java.sql.*;
import java.sql.DriverManager;
import java.sql.Connection;
public class SqlConnection {
public static void main(String[] args) {
Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
Connection con = DriverManager.getConnection
("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
Statement stmt = con.createStatement ();// Sending a query to the database
ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
while (rs.next()) {
String man = rs.getString("1");
String jean = rs.getString("2");
String test = rs.getString("3");
String kok = rs.getString("4");
System.out.println( man, jean, test,kok );//here where my the
//compiler gives me errors
stmt.close();
con.close();
}<b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p
-
What are oracle trace errors?
hi i need to understand what are oracle trace errors? pls help me out.
Hi,
Oracle Trace is a general-purpose event-driven data collection product, which the Oracle server uses to collect performance and resource utilization data, such as SQL parse, execute, and fetch statistics, and wait statistics.
one more thing this is oracle specific information, this forum is for SAP installation related so it is better for you that ask such question on oracle specific forum
regards,
kaushal -
What is meant by oracle trace errors?
hi i need to understand what are oracle trace eoors pls help me out.
what are oracle trace errors?
Markus -
ERROR: ORACLE prepare error: ORA-00936: missing expression
Hello,
I am required to run "pass-through" Oracle SQL, to extract data from tables into SAS for processing and manipulation. My code (attached) reads and writes (executes) but with zero records to test first. I cannot get past the Prepare Error.
The query is very much like other queries that seem to work, but I cannot get past this prepare error. I have no other access to individauls with adequate knowledge of PL SQL, and as a last stop hoped others in the forum could quickly spot the source of errror.
Thanks very much in advance for any assistance.
Jeff
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL=%NRBQUOTE(rx_biplr_v3_2);
4 %LET _EGTASKLABEL=%NRBQUOTE(rx_biplr_v3_2);
5 %LET _CLIENTPROJECTNAME=%NRBQUOTE();
6 %LET _SASPROGRAMFILE=;
7
8 ODS _ALL_ CLOSE;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices. Graph defaults for these
drivers may be different from other SAS/GRAPH device drivers. For further information, please contact Technical Support.
9 OPTIONS DEV=ACTIVEX;
10 FILENAME EGHTML TEMP;
NOTE: Writing HTML(EGHTML) Body file: EGHTML
11 ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault
11 ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")
11 ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation
11 ! ;
12
13 %gaccessible;
14 /********************************************************/
15 * RX_BIPLR_V3.SAS ;
16 /********************************************************/
17
18 dm 'log;clear;out;clear';
19 options linesize =120;
20 Option obs=0 NoReplace;
21
22 ****************************************************************************************;
23 *Date Programmer Reviewed By WHAT WAS DONE;
24 *----- -------------- ------------ -----------------------------------------;
25 *2005 David Boyd Program creation for test population;
26 *;
27 *02/06/2006 Ivon Jones Modified to include total population;
28 *;
29 *07/20/2006 Ivon Jones Identified data elements for exclusion;
30 * or inclusion for consolidation with ;
31 * Robin's report;
32 *;
33 *08/18/2006 Ivon Jones Updated the Specific Therapeutic Classes;
34 * 10-2009 J Shaf - modified to extract actual or potential Bipolar Dx from UBH and Medical Claims;
35 ****************************************************************************************;
36
37
38
39 *%let allclmorgn = ('M','A') ; /* all claims origin code */
40 %let begdate='01SEP2009'd;
41 %let enddate='30SEP2009'd;
42 %let q = %str(%') ;
43
44
45 data _null_ ;
46 call symput('fdos',put(intnx('month',"&begdate"d,-27,'beginning'), date9.) ) ;
47 call symput('ldos',put(intnx('month',"&enddate"d,-0,'ending'), date9.) ) ;
48 run ;
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
2 The SAS System 11:44 Friday, October 30, 2009
cpu time 0.01 seconds
49
50
51
52 **************************************************************;
53 * ??Use the data _null_ step to create a macro variable for the ;
54 * year and month based on the ldos macro variable in the data ;
55 * step above?? ;
56 **************************************************************;
57
58
59 data _null_ ;
60 if month("&ldos"d) < 10
61 then call symput('yr_mo',compress(year("&ldos"d) || '0' || month("&ldos"d) ) ) ;
62 else call symput('yr_mo',compress(year("&ldos"d) || month("&ldos"d) ) ) ;
63 run ;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
61:39 61:64 62:39 62:57
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
64
65 *%put &biplr_dx;
66 %put &begdate ;
'01SEP2009'd
67 %put &enddate ;
'30SEP2009'd
68 %put &fdos ;
01JUN2007
69 %put &ldos ;
30SEP2009
70 %put &q ;
71
72
73 libname biplr'/home/jshafi01/projects/adhoc/biplr_dprsn/data';
NOTE: Libref BIPLR was successfully assigned as follows:
Engine: V9
Physical Name: /home/jshafi01/projects/adhoc/biplr_dprsn/data
74 libname rosdwp oracle user="&oracle_user." pass="&oracle_pass." buffsize=32767 path='rosdwp';
NOTE: Libref ROSDWP was successfully assigned as follows:
Engine: ORACLE
Physical Name: rosdwp
75
76 data work.biplr_up_v1;
77 attrib mbr_id length=$26;
78 set biplr.biplr_ubh_med_v1;
79 run;
NOTE: There were 0 observations read from the data set BIPLR.BIPLR_UBH_MED_V1.
NOTE: The data set WORK.BIPLR_UP_V1 has 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
3 The SAS System 11:44 Friday, October 30, 2009
cpu time 0.00 seconds
80
81 proc contents;
82 run;
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
83
84 proc datasets
85 library = rosdwp nolist;
86 delete biplr_up_v1;
87 quit;
NOTE: Deleting ROSDWP.BIPLR_UP_V1 (memtype=DATA).
NOTE: PROCEDURE DATASETS used (Total process time):
real time 3.74 seconds
cpu time 0.03 seconds
88
89 proc datasets
90 library=work nolist;
91 copy out = rosdwp move;
92 select biplr_up_v1 ;
93 quit;
NOTE: Moving WORK.BIPLR_UP_V1 to ROSDWP.BIPLR_UP_V1 (memtype=DATA).
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
NOTE: There were 0 observations read from the data set WORK.BIPLR_UP_V1.
NOTE: The data set ROSDWP.BIPLR_UP_V1 has 0 observations and 1 variables.
NOTE: PROCEDURE DATASETS used (Total process time):
real time 0.32 seconds
cpu time 0.04 seconds
94
95
96
97 *****************************************************************************;
98
99 *execute(commit) by rosdwp
100 ******************************************************************************;
101
102
103 proc SQL noprint ;
104 connect to oracle as rosdwp (user="&oracle_user." password="&oracle_pass" buffsize=32767 path='rosdwp'
104 ! preserve_comments);
105 execute(alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
106 CREATE table biplr_rx as
107 SELECT
108 mrb_id,
109 pcp_spc,
110 rx_date,
4 The SAS System 11:44 Friday, October 30, 2009
111 brand,
112 generic,
113 ahfs_cd,
114 ahfs_dsc,
115 lbl,
116 strngth,
117 unt,
118 spc_tx_cls_cd,
119 spc_tx_cls_dsc,
120 gcn,
121 rx_num,
122 rx_ingrd,
123 rx_paid,
124 rx_cnt,
125 rx_qty,
126 rx_day
127 FROM connection to rosdwp
128 (SELECT
129 mid.UNIQ_MBR_ID as mrb_id,
130 pd.PRVDR_SPCLTY_DESC as pcp_spc,
131 pcf.LAST_SRVC_DT as rx_date,
132 dd.BRAND_NAME as brand,
133 dd.GNRC_NAME as generic,
134 dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
135 dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc,
136 dd.LABEL_NAME as lbl,
137 dd.STRNGTH_NUM as strngth,
138 dd.STRNGTH_UNIT_DESC as unt,
139 dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
140 dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
141 dd.GCN_NUM as gcn,
142 pcf.PRSCRPTN_NUM as rx_num,
143 SUM(pcf.INGRDNT_AMT) as rx_ingrd,
144 SUM(pcf.PD_AMT) as rx_paid,
145 SUM(pcf.UNIT_SRVC_CNT) as rx_cnt,
146 SUM(pcf.DSPNSD_QTY) as rx_qty,
147 SUM(pcf.DAY_SUPLY_CNT) as rx_day
148 FROM
149 PHRMCY_CLM_FACT pcf,
150 MBR_ID_DMNSN mid,
151 DRUG_DMNSN dd,
152 PRVDR_DMNSN pd,
153 biplr_up_v1
154 WHERE
155 (
156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN.UNIQ_MBR_ID) And
157 (PHRMCY_CLM_FACT.FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN.FINL_CLM_KEY) AND
158 (PHRMCY_CLM_FACT.MBR_KEY = MBR_ID_DMNSN.MBR_KEY) And
159 (PHRMCY_CLM_FACT.BNFT_KEY = MBR_BNFT_DMNSN.BNFT_KEY) And
160 (PHRMCY_CLM_FACT.DRUG_KEY = DRUG_DMNSN.DRUG_KEY) And
161 (PHRMCY_FINL_CLM_DMNSN.CLM_ORGN_CD IN ('M','A')) AND
162 (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN between &q.&fdos.&q and &q.&ldos.&q)
163 )
164 Group By
165 mid.UNIQ_MBR_ID ,
166 pd.PRVDR_SPCLTY_DESC ,
167 pcf.LAST_SRVC_DT ,
168 dd.BRAND_NAME ,
5 The SAS System 11:44 Friday, October 30, 2009
169 dd.GNRC_NAME ,
170 dd.AHFS_THRPTC_CLS_CD ,
171 dd.AHFS_THRPTC_CLS_DESC ,
172 dd.LABEL_NAME ,
173 dd.STRNGTH_NUM ,
174 dd.STRNGTH_UNIT_DESC ,
175 dd.SPECF_THRPTC_CLS_CD ,
176 dd.SPECF_THRPTC_CLS_DESC ,
177 dd.GCN_NUM ,
178 pcf.PRSCRPTN_NUM
179 );
ERROR: ORACLE prepare error: ORA-00936: missing expression. SQL statement: SELECT mid.UNIQ_MBR_ID as mrb_id,
pd.PRVDR_SPCLTY_DESC as pcp_spc, pcf.LAST_SRVC_DT as rx_date, dd.BRAND_NAME as brand, dd.GNRC_NAME as generic,
dd.AHFS_THRPTC_CLS_CD as ahfs_cd, dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc, dd.LABEL_NAME as lbl, dd.STRNGTH_NUM as
strngth, dd.STRNGTH_UNIT_DESC as unt, dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, dd.SPECF_THRPTC_CLS_DESC as
spc_tx_cls_dsc, dd.GCN_NUM as gcn, pcf.PRSCRPTN_NUM as rx_num, SUM(pcf.INGRDNT_AMT) as rx_ingrd, SUM(pcf.PD_AMT)
as rx_paid, SUM(pcf.UNIT_SRVC_CNT) as rx_cnt, SUM(pcf.DSPNSD_QTY) as rx_qty, SUM(pcf.DAY_SUPLY_CNT) as rx_day
FROM PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mid, DRUG_DMNSN dd, PRVDR_DMNSN pd, biplr_up_v1 WHERE (
(biplr_up_v1.mbr_id = MBR_ID_DMNSN.UNIQ_MBR_ID) And (PHRMCY_CLM_FACT.FINL_CLM_KEY =
PHRMCY_FINL_CLM_DMNSN.FINL_CLM_KEY) AND (PHRMCY_CLM_FACT.MBR_KEY = MBR_ID_DMNSN.MBR_KEY) And
(PHRMCY_CLM_FACT.BNFT_KEY = MBR_BNFT_DMNSN.BNFT_KEY) And (PHRMCY_CLM_FACT.DRUG_KEY = DRUG_DMNSN.DRUG_KEY) And
(PHRMCY_FINL_CLM_DMNSN.CLM_ORGN_CD IN ('M','A')) AND (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN between '01JUN2007'
and '30SEP2009') ) Group By mid.UNIQ_MBR_ID , pd.PRVDR_SPCLTY_DESC , pcf.LAST_SRVC_DT , dd.BRAND_NAME ,
dd.GNRC_NAME , dd.AHFS_THRPTC_CLS_CD , dd.AHFS_THRPTC_CLS_DESC , dd.LABEL_NAME , dd.STRNGTH_NUM ,
dd.STRNGTH_UNIT_DESC , dd.SPECF_THRPTC_CLS_CD , dd.SPECF_THRPTC_CLS_DESC , dd.GCN_NUM , pcf.PRSCRPTN_NUM.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
180 execute (drop table biplr_up_v1) by rosdwp;
NOTE: Statement not executed due to NOEXEC option.
181 disconnect from rosdwp;
NOTE: Statement not executed due to NOEXEC option.
182 quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.14 seconds
cpu time 0.03 seconds
183
184Hello Again ,
Wish Oracle was a bit more informative. Am using a SAS Institute Product called Enterprise Guide. A "hot fix" was installed to address an issue that the product appears unable to save the latest version of edited code changes (hence " BETWEEN between" remaining even after a prior edit). In any case, with the change, am now receiving this error:
" ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT"."LAST_SRVC_DT": invalid identifier". (Log file appears below)
-The error remains, regardless of whether one uses "pass through" code to pass the date range to Oracle (which looks ok from the log output below I believe), or if I hard code the date range into the PL SQL query itself.
-The Prepare error always appears at end of the inner SELECT.
-The Prepare error remains, with or without the GROUP BY clause.
Is there anything else here I am missing? Someone suggested a reserve word - but from other ANSI SQL versions, I do not see that is the case. I have consulted SAS Tech Support and SAS List Serve at University of GA. but nothing definitive from these sources. Have requested facility to be able to run Oracle directly, outside this SAS Institute product - in process.
Any suggestions are greatly appreciated. Thanks to everyone very much.
Jeff
14 /********************************************************/
15 * RX_BIPLR_V3.SAS ;
16 /********************************************************/
17
18 dm 'log;clear;out;clear';
19 options linesize =120;
20 Option obs=0 NoReplace;
21
22 ****************************************************************************************;
23 *Date Programmer Reviewed By WHAT WAS DONE;
24 *----- -------------- ------------ -----------------------------------------;
25 *2005 D. Boyd Program creation for test population;
26 *;
27 *02/06/2006 I. Jones Modified to include total population;
28 *;
29 *07/20/2006 I. Jones Identified data elements for exclusion;
30 * or inclusion for consolidation with ;
31 * Robin's report;
32 *;
33 *08/18/2006 I Jones Updated the Specific Therapeutic Classes;
34 * 10-2009 J Shaf - modified to extract actual or potential Bipolar Dx from UBH and Medical Claims;
35 ****************************************************************************************;
36
37
38
39 *%let allclmorgn = ('M','A') ; /* all claims origin code */
40 %let begdate='01SEP2009'd;
41 %let enddate='30SEP2009'd;
42 %let q = %str(%') ;
43
44
45 data null ;
46 call symput('fdos',put(intnx('month',"&begdate"d,-27,'beginning'), date9.) ) ;
47 call symput('ldos',put(intnx('month',"&enddate"d,-0,'ending'), date9.) ) ;
48 run ;
2 The SAS System 12:46 Monday, November 2, 2009
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
49
50
51
52 **************************************************************;
53 * ??Use the data null step to create a macro variable for the ;
54 * year and month based on the ldos macro variable in the data ;
55 * step above?? ;
56 **************************************************************;
57
58
59 data null ;
60 if month("&ldos"d) < 10
61 then call symput('yr_mo',compress(year("&ldos"d) || '0' || month("&ldos"d) ) ) ;
62 else call symput('yr_mo',compress(year("&ldos"d) || month("&ldos"d) ) ) ;
63 run ;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
61:39 61:64 62:39 62:57
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
64
65 *%put &biplr_dx;
66 %put &begdate ;
'01SEP2009'd
67 %put &enddate ;
'30SEP2009'd
68 %put &fdos ;
01JUN2007
69 %put &ldos ;
30SEP2009
70 %put &q ;
71
72
73 libname biplr'/home/jshafi01/projects/adhoc/biplr_dprsn/data';
NOTE: Libref BIPLR was successfully assigned as follows:
Engine: V9
Physical Name: /home/jshafi01/projects/adhoc/biplr_dprsn/data
74 libname rosdwp oracle user="&oracle_user." pass="&oracle_pass." buffsize=32767 path='rosdwp';
NOTE: Libref ROSDWP was successfully assigned as follows:
Engine: ORACLE
Physical Name: rosdwp
75
76 data work.biplr_up_v1;
77 attrib mbr_id length=$26;
78 set biplr.biplr_ubh_med_v1;
79 run;
NOTE: There were 0 observations read from the data set BIPLR.BIPLR_UBH_MED_V1.
NOTE: The data set WORK.BIPLR_UP_V1 has 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
80
81 proc contents;
82 run;
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.02 seconds
cpu time 0.02 seconds
83
84 proc datasets
85 library = rosdwp nolist;
86 delete biplr_up_v1;
87 quit;
NOTE: Deleting ROSDWP.BIPLR_UP_V1 (memtype=DATA).
NOTE: PROCEDURE DATASETS used (Total process time):
real time 0.61 seconds
cpu time 0.01 seconds
88
89 proc datasets
90 library=work nolist;
91 copy out = rosdwp move;
92 select biplr_up_v1 ;
93 quit;
NOTE: Moving WORK.BIPLR_UP_V1 to ROSDWP.BIPLR_UP_V1 (memtype=DATA).
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
NOTE: There were 0 observations read from the data set WORK.BIPLR_UP_V1.
NOTE: The data set ROSDWP.BIPLR_UP_V1 has 0 observations and 1 variables.
NOTE: PROCEDURE DATASETS used (Total process time):
real time 0.15 seconds
cpu time 0.04 seconds
94
95
96
97 *****************************************************************************;
98
99 *execute(commit) by rosdwp
100 ******************************************************************************;
101
102
103 proc SQL noprint ;
104 connect to oracle as rosdwp (user="&oracle_user." password="&oracle_pass" buffsize=32767 path='rosdwp'
104 ! preserve_comments);
105 execute(alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
106 CREATE table biplr_rx as
107 SELECT
108 mrb_id,
109 uniq_mbr_id,
110 pcp_spc,
111 rx_date,
112 brand,
113 generic,
114 ahfs_cd,
115 ahfs_dsc,
116 lbl,
117 strngth,
118 unt,
119 spc_tx_cls_cd,
120 spc_tx_cls_dsc,
121 gcn,
122 rx_num,
123 rx_ingrd,
124 rx_paid,
125 rx_cnt,
126 rx_qty,
127 rx_day
128 FROM connection to rosdwp
129 (SELECT
130 mid.UNIQ_MBR_ID as uniq_mrb_id,
131 blpr.mrb_id.mbr_id,
132 pd.PRVDR_SPCLTY_DESC as pcp_spc,
133 pcf.LAST_SRVC_DT as rx_date,
134 dd.BRAND_NAME as brand,
135 dd.GNRC_NAME as generic,
136 dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
137 dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc,
138 dd.LABEL_NAME as lbl,
139 dd.STRNGTH_NUM as strngth,
140 dd.STRNGTH_UNIT_DESC as unt,
141 dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
142 dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
143 dd.GCN_NUM as gcn,
144 pcf.PRSCRPTN_NUM as rx_num,
145 SUM(pcf.INGRDNT_AMT) as rx_ingrd,
146 SUM(pcf.PD_AMT) as rx_paid,
147 SUM(pcf.UNIT_SRVC_CNT) as rx_cnt,
148 SUM(pcf.DSPNSD_QTY) as rx_qty,
149 SUM(pcf.DAY_SUPLY_CNT) as rx_day
150 FROM
151 PHRMCY_CLM_FACT pcf,
152 MBR_ID_DMNSN mid,
153 DRUG_DMNSN dd,
154 PRVDR_DMNSN pd,
155 BIPLR_UP_V1 blpr
156 WHERE
157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN.UNIQ_MBR_ID) And
158 (PHRMCY_CLM_FACT.FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN.FINL_CLM_KEY) AND
159 (PHRMCY_CLM_FACT.MBR_KEY = MBR_ID_DMNSN.MBR_KEY) And
160 (PHRMCY_CLM_FACT.BNFT_KEY = MBR_BNFT_DMNSN.BNFT_KEY) And
161 (PHRMCY_CLM_FACT.DRUG_KEY = DRUG_DMNSN.DRUG_KEY) And
162 (PHRMCY_FINL_CLM_DMNSN.CLM_ORGN_CD IN ('M','A')) AND
163 (PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN &q.&fdos.&q and &q.&ldos.&q)
164 );
ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT"."LAST_SRVC_DT": invalid identifier. SQL statement: SELECT
mid.UNIQ_MBR_ID as uniq_mrb_id, blpr.mrb_id.mbr_id, pd.PRVDR_SPCLTY_DESC as pcp_spc, pcf.LAST_SRVC_DT as
rx_date, dd.BRAND_NAME as brand, dd.GNRC_NAME as generic, dd.AHFS_THRPTC_CLS_CD as ahfs_cd,
dd.AHFS_THRPTC_CLS_DESC as ahfs_dsc, dd.LABEL_NAME as lbl, dd.STRNGTH_NUM as strngth, dd.STRNGTH_UNIT_DESC as
unt, dd.SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, dd.SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc, dd.GCN_NUM as gcn,
pcf.PRSCRPTN_NUM as rx_num, SUM(pcf.INGRDNT_AMT) as rx_ingrd, SUM(pcf.PD_AMT) as rx_paid, SUM(pcf.UNIT_SRVC_CNT)
as rx_cnt, SUM(pcf.DSPNSD_QTY) as rx_qty, SUM(pcf.DAY_SUPLY_CNT) as rx_day FROM PHRMCY_CLM_FACT pcf,
MBR_ID_DMNSN mid, DRUG_DMNSN dd, PRVDR_DMNSN pd, BIPLR_UP_V1 blpr WHERE (BIPLR_UP_V1.mbr_id =
MBR_ID_DMNSN.UNIQ_MBR_ID) And (PHRMCY_CLM_FACT.FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN.FINL_CLM_KEY) AND
(PHRMCY_CLM_FACT.MBR_KEY = MBR_ID_DMNSN.MBR_KEY) And (PHRMCY_CLM_FACT.BNFT_KEY = MBR_BNFT_DMNSN.BNFT_KEY) And
(PHRMCY_CLM_FACT.DRUG_KEY = DRUG_DMNSN.DRUG_KEY) And (PHRMCY_FINL_CLM_DMNSN.CLM_ORGN_CD IN ('M','A')) AND
(PHRMCY_CLM_FACT.LAST_SRVC_DT BETWEEN '01JUN2007' and '30SEP2009').
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
165 execute (drop table biplr_up_v1) by rosdwp;
NOTE: Statement not executed due to NOEXEC option.
166 disconnect from rosdwp;
NOTE: Statement not executed due to NOEXEC option.
167 quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.24 seconds
cpu time 0.02 seconds
168
Edited by: user12142482 on Nov 2, 2009 4:02 PM -
Oracle bi error codes u9kp7q94 OBIEE 10g
Hi All,
I have created new user in RPD(Online Mode).
Then i have loged into Answer.It throws error
"oracle bi error codes u9kp7q94 OBIEE 10g"
How to fix.
Thanks
GramRaj wrote:
Hi All,
I have created new user in RPD(Online Mode).
Then i have loged into Answer.It throws error
"oracle bi error codes u9kp7q94 OBIEE 10g"
How to fix.
Thanks
GramAre you getting this error on the login screen? or when you are opening a report? -
Oracle Internal error while executing sys objects
Hi,
I recently restored an oracle 9i database from datafiles I received from client.
I am consistently getting the following error whenever I try to open a new sqlplus session.
bash-2.03$ sqlplus $IQ_DBLOGON
SQL*Plus: Release 9.2.0.6.0 - Production on Thu Mar 27 20:30:09 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-06553: PLS-801: internal error [56319]
ERROR:
ORA-06553: PLS-801: internal error [56319]
Error accessing package DBMS_APPLICATION_INFO
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL>
After search I found some references to recreate the sys objects by running standard sqls like CATALOG.SQL, CATPPROC.SQL etc. While running these SQLs as well I am getting oracle "Internal Errors".
I tries re-creating many sys packages and am consistently getting these errors. It looks to me I have problem while accessing procedures in all sys packages. I checked, all the packages are valid and have EXECUTE priviledge to PUBLIC.
See an example of the error below.
bash-2.03$ sqlplus /nolog
SQL*Plus: Release 9.2.0.6.0 - Production on Thu Mar 27 20:37:13 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL>
SQL>
SQL> execute dbms_stats.delete_database_stats;
BEGIN dbms_stats.delete_database_stats; END;
ERROR at line 1:
ORA-06553: PLS-801: internal error [56319]
SQL>
Kindly let me know the solution for the problem. Please let me know in case you need any more details.
Regards,
UllhasORA-06553: PLS-801: internal error [56319] usually occurs,when there was a switch between bit sizes (source is 32 bit,target 64 bit and vice versa) . In such a case script utlirp.sql has to be run ($ORACLE_HOME/rdbms/admin).
Werner
Maybe you are looking for
-
Deleting the latest request from info cube.
Hi All, In our project, we have data from May 2012 to till date. Data is freezed and there is no change of data till May 2014. And there is change in data for current month only ie) June 2014. So i have pulled the full load from May 2012 to May 2014
-
Urgent help regarding iPhone 4 required
Urgent help needed Hey guys, i just bought my new iPhone 4 16gb, factory unlocked. I just gave it to my uncle for a day as he wanted to use it,Bt I realized, Dat he is a super rough handler. He presses the touchscreen very very hard,he actually bangs
-
How to: export 4:2:0 MPEG2 for Visual Circuits Firefly MC
I am trying to make a series of videos for a multi-channel media player called FireFly MC by Visual Circuits. It plays on 3 monitors and I am trying to make a multi screen presentation to give the illusion that it spans all 3 at times and the goes ba
-
How do I jump to the top/bottom of a List view?
Hello, I am a recent Windows convert. I have done my best to search forums and website to understand keystrokes, but so far have been unable to find the answer to this question. Acually, I am fairly certain I must have seen the answer, but did not
-
Common problems but i need some clarifications
I am using MSI P45 NEO FR P4 3ghz CPU 500W 80+ powersupply 4g ram HD 4850 PCS+ graphics card Same as others DCC problem. Alarms goes off. It shows SYSTEM 2 at 957 RPM, red and blinking. WhAT'S A SYSTEM 2 means? Fan? FSB red, but not blinking, i think