Oracle 10g : XML* packages have become synonyms of DBMS_XML* paclages
Hello,
I noticed that old 9i XML* packages are now synonyms for DBMS_XML* packages.
Those package in Oracle 9i were different from the DBMS_ packages.
Now my application is not working anymore because we are now Is there a kit to install on 10g to get the old packages ?
David
The decsion to prevent access to the filesystem was taken as part of the general process of hardening the database for security reasons.
I use XSL with includes in the following form without any problems
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="http://www.w3.org/2001/XMLSchema" xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xfiles="http://xmlns.oracle.com/xfiles" xmlns:xr="http://xmlns.oracle.com/xdb/XDBResource.xsd">
<xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html" method="html"/>
<xsl:include href="/cabo/XSL/XFilesCommon.xsl"/>
<xsl:variable name="reverseSort">
Similar Messages
-
Pls send me oracle 10g xml desktop publisher ebook and software.
can any body send me oracle 10g xml desktop publisher ebook and software.
Thankin you in advance.Hi,
It looks like it is trying to create an account for SAP and getting error. It's permission problem. You may want to continue installation with administration previliges.
or try restart.
Thanks, -
I can't install oracle 10g because i have high specs pc
hi guys , i tried to install oracle 10g on my PC but it gave me error Message that my PC is higher than what's required for oracle 10g.
i have intel core i5 760 2.8 8m cache with 4G ram and windows 7 64-bit ultimate
is it necessary to have maximum requirements for oracle 10g to be installed?
please i need your support in this issue because i just started to take oracle 10g course and i can't install it on my PC.thank you so much for your support..i downloaded oracle from the link you gave me and installed it without any problems this time ..but how can i download
the patch 10.2.0.5 for Win 7
please try to descibe it as simple as you can because i'm a new oracle learner...thank you in advance -
Oracle 10g Lite Packaging Wizard
I need to publish an application with WTGPACK.exe packing applocation. The document that comes with Oracle 10g Lite is doesn't match the GUI. Does anyone have instructions on how to publish an application using Oracle 10g Lite?
You may have figured this out, but your connection string is invalid:
jdbc:oracle:thin@my_server:1521:my _DSN
The correct string would be jdbc:oracle:thin:@my_server:1521:<SID>
Hope this helps. -
Unable to access oracle 10g DB package from 8i using DB link
Hi,
We have two oracle 8174 database A and B. One of the package in A calls an package in B using db link. The database B was upgraded to 10g (10.2.0.4). After the upgrade, the package in A got invalid. When tried to compile system hangs. No error is encountered.
In UAT there was no issues. But only in production we face above problem. Can you please advise what went wrong. Is it due to incompatibiity?Can You logon that user an recompile?
I hope you will see error something...
Pacakages on B(10g) database.. invalid or not???
Anyway Can you recreate your packages? ... (create or replace...)
By the way, you might check something from Oracle Support
Good Luck -
WebRowSet properties for Oracle 10g XML
//I am writing data into a database
//Clob field then useing a WebRowSet writing
//it as XML to the clob
ResultSet rs = statement.executeQuery();
WebRowSet webRowSet = new WebRowSetImpl();
webRowSet.setCommand(sql);
webRowSet.populate(rs);
// First add the base entry to the database
ReportResultDao rrDao = new ReportResultDao();
ReportResultVo rrVo = new ReportResultVo();
rrVo.setProcessRequestId(processRequest.getRequestId());
rrVo.setDescription("Report_UserListByRealmSecurityCode");
int reportResultId = rrDao.addReportResult(rrVo);
// Next read that entry back so that the CLOB can be inserted
rrVo = rrDao.getReportResult(reportResultId);
Clob results = rrVo.getResult();
// write the clob value
Writer clobWriter = new BufferedWriter(results.setCharacterStream(0L));
webRowSet.writeXml(clobWriter);
clobWriter.close();
//I then read the XMl but get an error
Clob clob = reportResult.getResult();
clobCharacterStream = new BufferedReader(clob.getCharacterStream());
webRowSet = new WebRowSetImpl();
webRowSet.readXml(clobCharacterStream);
// This is the error
: XML-20220: (Fatal Error) Invalid InputSource.
// I validated the XML using an XML Validator tool
//and found the following flaws
<datasource><null /></datasource>
<table-name><null /></table-name>
<url><null /></url>
// I removed the <null /> string and re-validate
// and success with
<datasource></datasource>
<table-name></table-name>
<url></url>
//Now how do I do that so the row set produces the
//same thing???
//I tried the following
// before writing the xml I set the following
webRowSet.setDataSourceName(" "); // there was no setdataSource method
webRowSet.setTableName(" ");
webRowSet.setUrl(" ");
// and before reading I set
webRowSet.setDataSourceName(" "); // there was no setdataSource method
webRowSet.setTableName(" ");
webRowSet.setUrl(" ");
// Still I got error
: XML-20220: (Fatal Error) Invalid InputSource.
// But this time when I validated I just got an reported flaw on
<datasource><null /></datasource>
// The url and table-name both accepted " "
Can anyone help me with this issue?
Edited by: user1814985 on Oct 23, 2008 6:18 AMDavid
The decsion to prevent access to the filesystem was taken as part of the general process of hardening the database for security reasons.
I use XSL with includes in the following form without any problems
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="http://www.w3.org/2001/XMLSchema" xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xfiles="http://xmlns.oracle.com/xfiles" xmlns:xr="http://xmlns.oracle.com/xdb/XDBResource.xsd">
<xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html" method="html"/>
<xsl:include href="/cabo/XSL/XFilesCommon.xsl"/>
<xsl:variable name="reverseSort"> -
Deploying a J2EE web application in Oracle 10g
Hi friends,
<br>
I had worked with Oracle9i 9.0.3 . But it's my first experience with Oracle 10g . I have installed Oracle 10g Infrastructure , Metadata Repository and one Middle tier - Forms and i hope i have followed The Oracle 10g installation guide Properly. Anyway installation is successful.
The problem is a J2EE web application which is deployed properly on Oracle9i 9.0.3 doesn't get deployed in Oracle 10g. The following is the exception :
<br>
Deployment failed: Nested exception
Root Cause: deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application Spom_Apps: Error loading package at file:/C:/Oracle/Ora9iASForms/j2ee/home/applications/Spom_Apps/JmsSubscriberMdb.jar, Error deploying file:/C:/Oracle/Ora9iASForms/j2ee/home/applications/Spom_Apps/JmsSubscriberMdb.jar homes: No location set for Topic resource MessageDrivenBean JmsReceiverMdb
<br>
<br>
where JmsReceiverMdb is the deployment file containing the message driven beans.
<br>
Thanks in advance,
paskalHi,
Thanks for responding . I am sending the file contents of ejb-jar.xml, orion-ejb-jar.xml, jms.xml.
Could you also check whether dtds versions of 10g and 9i in these xmls are conflicting? If you can specify your email-id i can send these file as attachments.
Hope you could strike the right spot.
ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>spomPmConfigSSB</display-name>
<ejb-name>spomPmConfigSSB</ejb-name>
<home>jnipackage.spomPmConfigSSBHome</home>
<remote>jnipackage.spomPmConfigSSB</remote>
<ejb-class>jnipackage.impl.spomPmConfigSSBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<message-driven>
<description>Message Driven Bean</description>
<display-name>JmsReceiverMdb</display-name>
<ejb-name>JmsReceiverMdb</ejb-name>
<ejb-class>jnipackage.impl.JmsReceiverMdbBean</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<resource-ref>
<res-ref-name>jms/alarmTopicConnectionFactory</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/alarmTopic</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
</resource-env-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>JmsReceiverMdb</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>spomPmConfigSSB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
Orion-ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar>
<enterprise-beans>
<message-driven-deployment name="JmsReceiverMdb" max-instances="100" min-instances="0">
<resource-ref-mapping name="jms/alarmTopicConnectionFactory"/>
</message-driven-deployment>
<session-deployment name="spomPmConfigSSB"/>
</enterprise-beans>
<assembly-descriptor>
<default-method-access>
<security-role-mapping impliesAll="true" name="<default-ejb-caller-role>"/>
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar>
jms.xml
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE jms-server PUBLIC "OC4J JMS server" "http://xmlns.oracle.com/ias/dtds/jms-server-9_04.dtd">
<jms-server port="9127">
<!-- Queue bindings, these queues will be bound to their respective
JNDI path for later retrieval -->
<queue name="Demo Queue" location="jms/demoQueue">
<description>A dummy queue</description>
</queue>
<!-- Topic bindings, these topic will be bound to their respective
JNDI path for later retrieval -->
<topic name="Demo Topic" location="jms/demoTopic">
<description>A dummy topic</description>
</topic>
<!-- Topic bindings, these topic will be bound to their respective
JNDI path for later retrieval -->
<topic name="AlarmQueue" location="jms/alarmTopic">
<description>A topic</description>
</topic>
<topic name="FaultTextQueue" location="jms/faultTextTopic">
<description>A topic</description>
</topic>
<topic name="FaultTopologyQueue" location="jms/faultTopologyTopic">
<description>A topic</description>
</topic>
<!-- path to the log-file where JMS-events/errors are stored -->
<log>
<file path="../log/jms.log"/>
<!-- Uncomment this if you want to use ODL logging capabilities
<odl path="../log/jms/" max-file-size="1000" max-directory-size="10000"/>
-->
</log>
<queue name="jms/OracleSyndicateQueue" location="jms/OracleSyndicateQueue">
<description>Oracle Syndication Services Queue</description>
</queue>
<!--
<queue-connection-factory name="jms/OracleSyndicateQueueConnectionFactory"
location="jms/OracleSyndicateQueueConnectionFactory"/>
-->
<queue-connection-factory location="jms/OracleSyndicateQueueConnectionFactory"/>
<queue name="jms/OracleUddiReplicationQueue"
location="jms/OracleUddiReplicationQueue">
<description>Queue for replication scheduler</description>
</queue>
<!--
<queue-connection-factory
name="jms/OracleUddiReplicationQueueConnectionFactory"
location="jms/OracleUddiReplicationQueueConnectionFactory"/>
-->
<queue-connection-factory location="jms/OracleUddiReplicationQueueConnectionFactory"/>
<queue name="jms/OracleWebClippingQueue"
location="jms/OracleWebClippingQueue">
<description>Queue for Web Clipping</description>
</queue>
<!--
<queue-connection-factory
name="jms/OracleWebClippingQueueConnectionFactory"
location="jms/OracleWebClippingQueueConnectionFactory"/>
-->
<queue-connection-factory location="jms/OracleWebClippingQueueConnectionFactory"/>
</jms-server> -
Validation with DTD: Bug in Oracle 10g?
Hi
The following example works with Oracle 11g, but not with Oracle 10g.
I have a XML-document (familie.xml) and a DTD-Document (familie.dtd). The XML-document is not valide, because I changed the tag "Vater" into "Dad". Within
the DTD the "Vater"-element is described as follow: <!ELEMENT Familie (Vater, Mutter, Kind) >. If I validate the document, I get in Oracle 11g this exception:
Unexpected Error: ORA-31011: XML-Parsing not succesful
LPX-00104: Warning: Element "Dad" is not declared in the DTD.
Error at line 3 occured.
This Error is right!! But if I try the SAME example in Oracle 10g, I don't get a Exception!!!! But I should become one.
Have anyone tested DTD-Validation in Oracle 10g or is it a bug?
<?xml version='1.0' encoding='ISO-8859-15' ?>
<!-- Dokument beschreibt eine Familie -->
<Familie>
<Dad>
<Name>Meier</Name>
<Vorname>David</Vorname>
</Dad>
<Mutter>
<Name>Baumann</Name>
<Vorname>Charlotte</Vorname>
</Mutter>
<Kind>
<Name>Slota</Name>
<Vorname>Kaharina</Vorname>
</Kind>
</Familie>
<!ELEMENT Familie (Vater, Mutter, Kind) >
<!ELEMENT Vater (Name, Vorname)>
<!ELEMENT Mutter (Name, Vorname)>
<!ELEMENT Kind (Name, Vorname) >
<!ELEMENT Name (#PCDATA) >
<!ELEMENT Vorname (#PCDATA) >
set directory TEST_DIR as '....';
DECLARE
v_parser xmlparser.parser;
v_document xmldom.DOMDocument;
v_nodeList xmldom.DOMNodeList;
v_number NUMBER;
v_xmlDatei VARCHAR2(32);
v_dtdDatei varchar2(32);
parserError EXCEPTION;
PRAGMA EXCEPTION_INIT(parserError, -20100);
BEGIN
v_xmlDatei := 'familie.xml';
v_dtdDatei := 'familie.dtd';
v_parser := xmlparser.newParser();
DBMS_XMLPARSER.setBaseDir(v_parser, 'TEST_DIR');
xmlparser.setValidationMode(v_parser, TRUE);
xmlparser.parseDTD(v_parser, v_dtdDatei, 'Familie');
xmlparser.parse(v_parser, v_xmlDatei);
v_document:=xmlparser.getDocument(v_parser);
xmlparser.freeParser(v_parser);
xmldom.freeDocument(v_document);
EXCEPTION
WHEN parserError THEN
xmlparser.freeParser(v_parser);
dbms_output.put_line('Fehler beim Parsen: ' || SQLERRM);
WHEN OTHERS THEN
dbms_output.put_line('Unerwarteter Fehler: ' || ' ' || SQLERRM);
END;
null
Message was edited by:
user638576Do your sequence and column have the same name? In your code sample, it looks like they do:
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
Maybe that has confused the parser.
As Oracle moves forward, you can expect more object-oriented functionality. That could mean that columns could have their own attributes or methods. If so, how is the parser to know whether in this code the value KPIIDD.NEXTVAL refers to the (external) sequence or a column attribute?
As a suggestion, try renaming the sequence.
create sequence KPIIDD_SEQ start with ... ;
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD_SEQ.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
HTH,
- Doug -
How to avoid of application running on Oracle 10g to be copied?
I am a newbie to the security issues, so I need your help, please, where to start / what to read:
I have an application running across many customers on Oracle 10g. I have faced lately that our users
can use their daily backups to establish a totaly new database on a same / different server
and point our application to use it as well.
Is there any way to avoid it? F.e. I thought to use SELECT * FROM v$instance; to get the server instance details, and
in result with some other function to obtain, let say, local server's (WIN2003) details,
such as HD Serial Number, MAC number or so and then to check these values each time user runs the application.
Is it the correct way? What are the basics here at all?
Many thanks in advance to all!A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
CREATE TABLE licensed_content (
client_id NUMBER,
content_type VARCHAR2(30),
key RAW(128)
)In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
Justin -
Oracle 10g - Vista Business - Agent unreachable in EM
Hi,
I can't seem to get the agent to be seen from EM.
Here is my config:
Windows Vista Business - Oracle 10g R2
I have done the following:
- secured the dbconsole
- made sure that the OS user has admin rights & can log on as a batch job
- env. vars ORACLE_SID and EMHOSTNAME are set
The agent log shows no errors (start and shutdown successfully).
The emoms.log shows:
2009-11-24 09:32:54,545 [HttpRequestHandler-15512561] ERROR eml.OMSHandshake processFailure.619 -
OMSHandshake failed.(AGENT URL = https://DBServer:3938/emd/main)(ERROR = KEY_MISMATCH)
I have seen some threads where people advise to unsecure the dbconsole but I don't know how to do it.
Can anyone help ? I have done many changes, but nothing seems to make it work and I am a bit lost.
Thanks !
@lex
emctl upload does not work:
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
EMD.properties (extract):
perlBin=D:\oracle\product\10.2.0\db_2\perl\5.8.3\bin\MSWin32-x86-multi-thread
scriptsDir=D:\oracle\product\10.2.0\db_2/sysman/admin/scripts
emdRoot=D:\oracle\product\10.2.0\db_2
agentStateDir=D:/oracle/product/10.2.0/db_2/DBServer_MyDB
chronosRoot=D:/oracle/product/10.2.0/db_2/DBServer_MyDB/sysman/emd/chronos
REPOSITORY_URL=https://DBServer:1158/em/upload/
agentSeed=-908248752
agentVersion=10.1.0.4.0
UploadInterval=5
UploadFailBackoffDBServert= 20
UploadTimeout=1800
UploadFileSize=2048
EMD_URL=https://DBServer:3938/emd/main
AgentListenOnAllNICs=TRUE
NormalThreadStackSize=0
ouiLoc=D:\oracle\product\10.2.0\db_2/oui
TrcFileMaxSize=4096
TrcFileMaxRolls=4
dynamicPropsComputeTimeout=60
EMAGENT_PERL_TRACE_LEVEL=ERROR
tracelevel.fetchlets.emSDK=WARN
httpTimeoutPrimaryHeader=30
httpTimeoutSecondaryHeaders=30
httpTimeoutBody=60
omsRecvDir=D:\oracle\product\10.2.0\db_2\DBServer_MyDB\sysman\recv
agentTZRegion=Europe/Brussels
Emoms.properties:
#Mon Nov 23 16:04:55 GMT 2009
oracle.sysman.emSDK.svlt.ConsoleServerName=DBServer_Management_Service
oracle.sysman.eml.mntr.emdRepPwd=81dbf93fefe9e409
emdrep.ping.pingCommand=ping <hostname>
oracle.sysman.eml.mntr.emdRepPort=1521
oracle.sysman.eml.mntr.emdRepDBName=MyDB
oracle.sysman.eml.mntr.emdRepPwdSeed=6610522536789545842
oracle.sysman.emSDK.svlt.ConsoleMode=standalone
oracle.sysman.emRep.dbConn.statementCacheSize=30
oracle.sysman.db.isqlplusUrl=http\://DBServer\:5560/isqlplus/dynamic
oracle.sysman.emSDK.svlt.ConsoleServerPort=1158
oracle.sysman.eml.mntr.emdRepRAC=FALSE
oracle.sysman.emSDK.emd.rt.useMonitoringCred=true
oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE
oracle.sysman.db.isqlplusWebDBAUrl=http\://DBServer\:5560/isqlplus/dba/dynamic
oracle.sysman.emSDK.svlt.ConsoleServerHost=DBServer
oracle.sysman.eml.mntr.emdRepDBID=2250547128
oracle.sysman.emSDK.svlt.ConsoleServerHTTPSPort=1820
oracle.sysman.eml.mntr.emdRepSID=MyDB
oracle.sysman.eml.mntr.emdRepServer=DBServer
oracle.sysman.emSDK.sec.ReuseLogonPassword=true
oracle.sysman.eml.mntr.emdReDBServeronnectDescriptor=(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=DBServer)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=MyDB)))
oracle.sysman.eml.mntr.emdRepUser=SYSMAN
oracle.sysman.db.adm.conn.statementCacheSize=2
oracle.sysman.db.perf.conn.statementCacheSize=30
I ran emctl status agent:
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Agent Version : 10.1.0.4.1
OMS Version : 10.1.0.4.0
Protocol Version : 10.1.0.2.0
Agent Home : D:\oracle\product\10.2.0\db_2\DBServer_MyDB
Agent binaries : D:\oracle\product\10.2.0\db_2
Agent Process ID : 12148
Agent Process ID : 12148
Agent URL : https://DBServer:3938/emd/main
Started at : 2009-11-23 17:26:21
Started by user : SYSTEM
Last Reload : 2009-11-23 17:26:21
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 528
Size of XML files pending upload(MB) : 2.98
Available disk space on upload filesystem : 73.83%
Agent is Running and Ready
I ran emctl status dbconsole:
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
https://DBServer:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
Logs are generated in directory D:\oracle\product\10.2.0\db_2/DBServer_MyDB/sysman/log
----------------------------Hi,
PLease can anyone help me ?
Thanks,
@lex -
J2ee Web application exploded format in oracle 10g
Hi,
I am trying to develop a simple j2ee application in Exploded Format
in oracle 10g AS. i have created a new OC4J instance called
TestOC4j for this. A .war file works fine in this instance.
I have placed the application under applications directory of TestOC4j.
I have made entries in server.xml, oc4j_mod.conf,
default-web-site.xml,http-web-site.xml and application.xml in META-INF
of the application.
The application get deployed with no errors.gets created in
application-deployments too.
But the url http://server-ipaddress:7778/test_app is not working.
Please help.
The folder struture is as follows:
test_app
--META-INF
-----application.xml
--test_web
-----pages
-------welcome.jsp
-----WEB-INF
-------web.xml
-------lib
-------src
The entries in server.xml is as follows:
<application name="test_app" path="../applications/test_app" auto-start="true" />
<web-site path="./http-web-site.xml" />
The entries in application.xml is as follows :
<module>
<web>
<web-uri>test_web</web-uri>
<context-root>/test_app</context-root>
</web>
</module>
The entries in default-web-site.xml is as follows:
<web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
The entries in http-web-site.xml is as follows:
<web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
The entries in oc4j_mod.conf is as follows:
Oc4jMount /test_app TestOC4j
Oc4jMount /test_app/* TestOC4j
Regards,
RoopaRoopa, it looks like there is no problem with the deployment of your application in exploded format. Have you accessed http://server-ipaddress:7778/test_app/pages/welcome.jsp? Any problem access http://server-ipaddress:7778/j2ee/, the default home page of the default-web-app ?
When you say the url http://server-ipaddress:7778/test_app is not working, what is the error message if any on the browser, on server console, in the server.log and http-web-access.log of ORACLE_HOME/j2ee/home/log/, ORACLE_HOME/j2ee/home/application-deployments/test_app/application.log? -
Performance Problem between Oracle 9i to Oracle 10g using Crystal XI
We have a Crystal XI Report using ODBC Drivers, 14 tables, and one sub report. If we execute the report on an Oracle 9i database the report will complete in about 12 seconds. If we execute the report on an Oracle 10g database the report will complete in about 35 seconds.
Our technical Setup:
Application server: Windows Server 2003, Running Crystal XI SP2 Runtime dlls with Oracle Client 10.01.00.02, .Net Framework 1.1, C# for Crystal Integration, Unmanaged C++ for app server environment calling into C# through a dynamically loaded mixed-mode C++ DLL.
Database server is Oracle 10g
What we have concluded:
Reducing the number of tables to 1 will reduce the execution time of the report from 180s to 13s. With 1 table and the sub report we would get 30 seconds
We have done some database tracing and see that Crystal Reports Issues the following query when verifying the database and it takes longer in 10g vs 9i.
We have done some profiling in the application code. When we retarget the first table to the target database, it takes 20-30 times longer in 10g than in 9i. Retargeting the other tables takes about twice as long. The export to a PDF file takes about 4-5 times as long in 10g as in 9i.
Oracle 10g no longer supports the /*+ RULE */ hint.
Verify DB Query:
select /*+ RULE */ *
from
(select /*+ RULE */ null table_qualifier, o1.owner table_owner,
o1.object_name table_name, decode(o1.owner,'SYS', decode(o1.object_type,
'TABLE','SYSTEM TABLE','VIEW', 'SYSTEM VIEW', o1.object_type), 'SYSTEM',
decode(o1.object_type,'TABLE','SYSTEM TABLE','VIEW', 'SYSTEM VIEW',
o1.object_type), o1.object_type) table_type, null remarks from all_objects
o1 where o1.object_type in ('TABLE', 'VIEW') union select /*+ RULE */ null
table_qualifier, s.owner table_owner, s.synonym_name table_name, 'SYNONYM'
table_type, null remarks from all_objects o3, all_synonyms s where
o3.object_type in ('TABLE','VIEW') and s.table_owner= o3.owner and
s.table_name = o3.object_name union select /*+ RULE */ null table_qualifier,
s1.owner table_owner, s1.synonym_name table_name, 'SYNONYM' table_type,
null remarks from all_synonyms s1 where s1.db_link is not null ) tables
WHERE 1=1 AND TABLE_NAME='QCTRL_VESSEL' AND table_owner='QLM' ORDER BY 4,2,
3
SQL From Main Report:
SELECT "QCODE_PRODUCT"."PROD_DESCR", "QCTRL_CONTACT"."CONTACT_FIRST_NM", "QCTRL_CONTACT"."CONTACT_LAST_NM", "QCTRL_MEAS_PT"."MP_NM", "QCTRL_ORG"."ORG_NM", "QCTRL_TKT"."SYS_TKT_NO", "QCTRL_TRK_BOL"."START_DT", "QCTRL_TRK_BOL"."END_DT", "QCTRL_TRK_BOL"."DESTINATION", "QCTRL_TRK_BOL"."LOAD_TEMP", "QCTRL_TRK_BOL"."LOAD_PCT", "QCTRL_TRK_BOL"."WEIGHT_OUT", "QCTRL_TRK_BOL"."WEIGHT_IN", "QCTRL_TRK_BOL"."WEIGHT_OUT_UOM_CD", "QCTRL_TRK_BOL"."WEIGHT_IN_UOM_CD", "QCTRL_TRK_BOL"."VAPOR_PRES", "QCTRL_TRK_BOL"."SPECIFIC_GRAV", "QCTRL_TRK_BOL"."PMO_NO", "QCTRL_TRK_BOL"."ODORIZED_VOL", "QARCH_SEC_USER"."SEC_USER_NM", "QCTRL_TKT"."DEM_CTR_NO", "QCTRL_BA_ENTITY"."BA_NM1", "QCTRL_BA_ENTITY_VW"."BA_NM1", "QCTRL_BA_ENTITY"."BA_ID", "QCTRL_TRK_BOL"."VOLUME", "QCTRL_TRK_BOL"."UOM_CD", "QXREF_BOL_PROD"."MOVEMENT_TYPE_CD", "QXREF_BOL_PROD"."BOL_DESCR", "QCTRL_TKT"."VOL", "QCTRL_TKT"."UOM_CD", "QCTRL_PMO"."LINE_UP_BEFORE", "QCTRL_PMO"."LINE_UP_AFTER", "QCODE_UOM"."UOM_DESCR", "QCTRL_ORG_VW"."ORG_NM"
FROM (((((((((((("QLM"."QCTRL_TRK_BOL" "QCTRL_TRK_BOL" INNER JOIN "QLM"."QCTRL_PMO" "QCTRL_PMO" ON "QCTRL_TRK_BOL"."PMO_NO"="QCTRL_PMO"."PMO_NO") INNER JOIN "QLM"."QCTRL_MEAS_PT" "QCTRL_MEAS_PT" ON "QCTRL_TRK_BOL"."SUP_MP_ID"="QCTRL_MEAS_PT"."MP_ID") INNER JOIN "QLM"."QCTRL_TKT" "QCTRL_TKT" ON "QCTRL_TRK_BOL"."PMO_NO"="QCTRL_TKT"."PMO_NO") INNER JOIN "QLM"."QCTRL_CONTACT" "QCTRL_CONTACT" ON "QCTRL_TRK_BOL"."DRIVER_CONTACT_ID"="QCTRL_CONTACT"."CONTACT_ID") INNER JOIN "QFC_QLM"."QARCH_SEC_USER" "QARCH_SEC_USER" ON "QCTRL_TRK_BOL"."USER_ID"="QARCH_SEC_USER"."SEC_USER_ID") LEFT OUTER JOIN "QLM"."QCODE_UOM" "QCODE_UOM" ON "QCTRL_TRK_BOL"."ODORIZED_VOL_UOM_CD"="QCODE_UOM"."UOM_CD") INNER JOIN "QLM"."QCTRL_ORG_VW" "QCTRL_ORG_VW" ON "QCTRL_MEAS_PT"."ORG_ID"="QCTRL_ORG_VW"."ORG_ID") INNER JOIN "QLM"."QCTRL_BA_ENTITY" "QCTRL_BA_ENTITY" ON "QCTRL_TKT"."DEM_BA_ID"="QCTRL_BA_ENTITY"."BA_ID") INNER JOIN "QLM"."QCTRL_CTR_HDR" "QCTRL_CTR_HDR" ON "QCTRL_PMO"."DEM_CTR_NO"="QCTRL_CTR_HDR"."CTR_NO") INNER JOIN "QLM"."QCODE_PRODUCT" "QCODE_PRODUCT" ON "QCTRL_PMO"."PROD_CD"="QCODE_PRODUCT"."PROD_CD") INNER JOIN "QLM"."QCTRL_BA_ENTITY_VW" "QCTRL_BA_ENTITY_VW" ON "QCTRL_PMO"."VESSEL_BA_ID"="QCTRL_BA_ENTITY_VW"."BA_ID") LEFT OUTER JOIN "QLM"."QXREF_BOL_PROD" "QXREF_BOL_PROD" ON "QCTRL_PMO"."PROD_CD"="QXREF_BOL_PROD"."PURITY_PROD_CD") INNER JOIN "QLM"."QCTRL_ORG" "QCTRL_ORG" ON "QCTRL_CTR_HDR"."BUSINESS_UNIT_ORG_ID"="QCTRL_ORG"."ORG_ID"
WHERE "QCTRL_TRK_BOL"."PMO_NO"=12345 AND "QXREF_BOL_PROD"."MOVEMENT_TYPE_CD"='TRK'
SQL From Sub Report:
SELECT "QXREF_BOL_VESSEL"."PMO_NO", "QXREF_BOL_VESSEL"."VESSEL_NO"
FROM "QLM"."QXREF_BOL_VESSEL" "QXREF_BOL_VESSEL"
WHERE "QXREF_BOL_VESSEL"."PMO_NO"=12345
Does anyone have any suggestions on how we can improve the report performance with 10g?Hi Eric,
Thanks for your response. The optimizer mode in our 9i database is CHOOSE. We changed the optimizer mode from ALL_ROWS to CHOOSE in 10g but it didn't make a difference.
While researching Metalink I came across a couple of documents that indicated performance problems and issues with using certain data-dictionary views in 10g. Apparently, the definition of ALL_OBJECTS, ALL_ARGUMENTS and ALL_SYNONYMS have changed in 10g, resulting in degradation in performance, if quieried against these views. These are the same queries that crystal reports is queriying. We'll try the workaround suggested in these documents and see if it resolves the issue.
Here are the Doc Ids, if you are interested:
Note 377037.1
Note:364822.1
Thanks again for your response.
Venu Boddu. -
Dynamic rows to columns oracle 10g
Hi,
I'm using oracle 10g. I have a requiriement where I need to show rows to columns. I have read through many posts but I couldn't find what I wanted to solve. Lots of them are using decode, since they know the values in one column.
My table has name, value and date. I need to get values for each name at certain date (each distinct date needs to become column). I don't know the name beforehand.
Name, Value, Date
T1 100 06-27-2011 09:00:00
T2 100 06-27-2011 09:00:00
T1 200 06-27-2011 09:15:00
T2 150 06-27-2011 09:15:00
I would also need to use a date range. Someone can request date between 09:00:00 and 09:05:00 or 09:00:00 and 09:30:00 etc.
I need to print
Name, 06-27-2011 09:00:00, 06-27-2011 09:15:00
T1 100 200
T2 100 150
Appreciate any advice on this.
Edited by: user8801143 on 28-Jun-2011 08:23With 10g
see http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766825833740#2989343200346664698
search for post on February 11, 2011 and reply on February 14, 2011
with 11g see the pivot clause -
FRM-41211 Integration Error SSL - OracleAS 10g
Hi.
I have error Frm-41211 Integration Error SSL Failure Running Another Product error while calling a report from web form in oracleAS 10g.
I have problem with RUN_REPORT_OBJECT in web forms.
I have error: FRM-41211 SSL integration error .....
OracleAS server began on Windoes XP SP2.
Do you help me ?Hi,
I remember having seen this issue in teh apst. My best recommendation is to work with customer support (metalink.oracle.com)
Frank -
Oracle 10g - Date format in SELECT query for CFOUTPUT
Hello, everyone.
The project that I am working on in the dev environment is connected to an Oracle 11g database, but the production side is Oracle 10g.
I have a page that is erroring in production (but not development) when it gets to a date that it needs to display.
A co-worker mentioned that, in 10g, if a date/time is being SELECTed, you have to put it in to_char(), so I did that.
But it's still erroring, and I'm not getting an error message, so I'm assuming that I have an incorrect format for the date in the SELECT.
What is the proper format for SELECTing a date/time when using to_char()? Right now, I have SELECT to_char(create_date,'MM-DD-YYYY HH:MI') FROM tableA . Is this not correct for CF to output?
Thank you,
^_^Please see my original post ("I have a page erroring in production (but not in development) when it gets to a date that it needs to display.") Sorry if it came across as vague. It made sense, to me, when I typed it. But, then, I'm usually typing fast just to get the question out there, when I'm in a hurry.
Haven't done a CFDUMP, yet, as every time I make a change in development that needs to be tested in production, I have to notify my supervisor that there are files that need to be copied into production, which can sometimes take a while, so I try to do troubleshooting on dev side - it's a pain in the you-know-what, but that's the kind of environment I'm working in.
As it turns out, changing the format in the SELECT to_char() did the trick. If anyone else has this issue with Oracle 10g, I'm now using SELECT to_char(create_date,'YYYY/MM/DD HH:MI') FROM tableA, and now the CFOUTPUT is processing the whole page. I guess the MM-DD-YYYY threw CF into a tizzy, breaking the process?
Anyhoo, it's working, now. Thank you, Dan and Adam, for your thoughts on this.
^_^
Maybe you are looking for
-
OSX Mountain Lion installation without internet access/media installation
Hi. I had a problem with my hard disc and can't access my OSX anymore. I had to replace it, and now I want to install the system again, but to install trough internet it's impossible, almost 30 days to download, and I haven't any media with the syste
-
Field values erases when Add Row button is pressed in Master Detail Form
Hi, I am using APEX 4.0. There is a master-detail form in a page, this has 5 rows in it by default, has a Add row and a Delete button. I face two problems now: 1. When the values are entered in all the 5 rows, that are in default, and Add Row button
-
Where is the Help button? I've clicked every "Firefox" I see.
My automatic update is broken. I'm marooned in 2013. I want to manually update Firefox but can't even get started because I can't find the "Help" button.
-
WRT54G v5/6--- the answer to d/c!!
DD-WRT v23 sp2 I went from being d/c every 1-3minutes to going over one day w/no disconnects!! I am using a v6 router, and have absolute stability and TONS of control... the setup of DD-WRT was not simple, so this will not be a viable solution for no
-
Flash Video bitrate counter - How?
Evening all, As a purveyor of internet media, a lot of what I watch is somehow glued into a flash playing window jigger.Now, we all like a good buffer - but how fast is one buffer buffing? Is it possible to to make, and enforce the use of, a littler