Oracle library for Python
Hi everyone,
I'm starting a little python program that requires oracle support.
Anyone can recommend a good python library?
Jared, I found the test suite in the source code for cx_Oracle and upon investigating a little bit I found that you can simply use the datetime class to pass parameters to an instruction.
I built this test case to work out of the box for you to test. Regarding the python script, just paste it in a file and run it from the command line. I know I could have written a smaller example (the biggest part of the code are comments, error handlers and input parameters checks) but I'm a passionate developer... :)
My locale date format is dd/mm/yyyy and as this script worked ok here I think issues regarding the date format are taken care. I still have to verify if there's some kind of performance penalty using the class (I will try with bulk inserts to check). From a developer view I find this method clearer to use and less code to write.
First the objects to be created in the database.
create sequence dat_test_seq;
create table dat_test_tab (c_id number, c_date date);
create or replace procedure dat_test_prc (p_date in dat_test_tab.c_date%type)
is
begin
insert into dat_test_tab (c_id, c_date) values (dat_test_seq.nextval, p_date);
commit;
end dat_test_prc;
/Now the Python script:
#! /usr/bin/env python
# -- coding: utf-8 --
import cx_Oracle as ora
from optparse import OptionParser
import locale
import datetime as dt
# check the local settings.-
locale.setlocale(locale.LC_ALL, '')
dateformat = locale.nl_langinfo(locale.D_FMT)
# a little cosmetic work to output the expected date format
dateformat = dateformat.replace('%', '')
dateformat = dateformat.replace('d', 'dd')
dateformat = dateformat.replace('m', 'mm')
dateformat = dateformat.replace('y', 'yyyy')
# these are the options the script accepts
parser = OptionParser(description="Testing dates as input parameters in oracle using cx_Oracle.")
parser.add_option("-u", "--ora-usr", dest="usr", help="User")
parser.add_option("-p", "--ora-pwd", dest="pwd", help="Password")
parser.add_option("-d", "--ora-dbn", dest="dbn", help="Database")
parser.add_option("-t", "--ex-date", dest="dat", help="Date to be imported, format model: "+dateformat)
(options, args) = parser.parse_args()
for option in vars(options):
if getattr(options, option)==None:
parser.error("Wrong number of parameters.")
# we work with the date input parameter to cast a date.-
lexp = dateformat.split('/')
lrea = options.dat.split('/')
try:
dia = int(lrea[lexp.index('dd')])
mes = int(lrea[lexp.index('mm')])
ano = int(lrea[lexp.index('yyyy')])
except IndexError, errmsg:
print "The format delimiter is wrong. Error message: ",errmsg
sys.exit(1)
# We initiate the class passing our values.
try:
dat = dt.date(ano,mes,dia)
except TypeError, errmsg:
print "Wrong Input parameters for date. Error message: ",errmsg
sys.exit(2)
# Let's try the database connection
try:
con = ora.connect(options.usr, options.pwd, options.dbn)
con.module = "%prog"
except ora.DatabaseError, errmsg:
print "Connection error. Error message: ",errmsg
sys.exit(3)
cur = con.cursor()
# we execute the procedure, we're passing the date parameter as a python datetime class
try:
cur.callproc("DAT_TEST_PRC", [dat])
except ora.DatabaseError, errmsg:
print "Execution error. Error message: ",errmsg
sys.exit(5)
# let's see what's in the table:
try:
cur.execute('SELECT * FROM DAT_TEST_TAB')
row = cur.fetchall()
print row
except ora.DatabaseError, errmsg:
print "Execution error. Error message: ",errmsg
sys.exit(6)
# We're done, let's go
con.close()
print "Database connection close."
print "Script ends"Suggestions, criticism and more tips to share are always welcome.
Similar Messages
-
Oracle workshop plugin for python?
I am currently using oracle workshop for weblogic 10.3. Is there a python plugin available for this IDE?
I tried pydev but it doesn't seem to be working in this IDE.Hello Shoaib,
Didu find plugin and were u able to configure and deploy your application from JbuilderX?
If you have then please let me know steps u have followed as I am facing few problems starting app server from jbuilder.
I m getting these errors.
04/10/20 13:47:54 Warning: Error reading transaction-log file (/C:/oracleas/j2ee/home/persistence/transaction.state) for recovery: premature end of file
04/10/20 13:47:54 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
04/10/20 13:47:54 Recovery completed, 0 connections committed and 0 rolled back...
If u did not find one, then you can find plugin for oracle 10g AS in borland web site.
Sartiha -
Data Access Library for Oracle like Microsoft Ent Library
Hi there
Is there a plan to create a data access library over the odp.net providers
like the Microsoft Enterprise Library.
For people who have been using Microsoft Enterprise Library for sometime.
The coding examples pasted here on the Oracle website looks newbie and lengthy.
Accessing the provider via a library would
- reduces the amount of code that developers must write
- reduces the need to write boilerplate code to perform standard tasks
- reduces difficulties in changing the database type
As the Microsoft Enterprise Library Team is not keen in implementing odp.net into
the data access code.
Is there anything you guys can do.
It would lot better to have the same library to access Sql Server and Oracle database that way
Thanks
Martin AYou will have to roll your own for ODP.NET
Looking through the source for the Microsoft Enterprlise Library, you use the System.Data.OracleClient as an example.
It can be found here: [EntLibSrc Location]\App Blocks\Src\Data\Oracle\
You can also look at the Enterprise Library Contrib (http://www.codeplex.com/entlibcontrib) which provides community contributions to MEL - there is an open issue for ODP.NET, found here:
http://www.codeplex.com/entlibcontrib/WorkItem/View.aspx?WorkItemId=3167 -
Translation library for Oracle 8.1.6 on IBM oS/390
Has anyoune an idea about the translation library for accessing through ODBC an Oracle 8.1.6 installed on IBM OS/390?
The same driver works fine on Oracle 8.1.7 on Sun Solaris, but when I access the OS/390 Oracle I find "strange" character, certainly due to the EBCDIC-ASCII translation.
What have I to give as "translation library" and "translation option" in the driver configuration?
TIA
Sergio BarbieriHi Gitesh,
I face exactly the same problems as you face....
no whatsoever difference...and i am completely stuck as i dont
know what to do...
i have heard from some people (on the oracle discussion groups)
that they have successfully installed oracle8.1.6
how i dont know... but very much eager if any of you all could
help me out.
if you do find a way out and solve the problem ...do plz. let me
know....
akshay. -
Instrumentation Library for Oracle 2.5
Could anyone point me at the latest version of ILO.
Version 2.5 is purported in various texts and books but I have been unable to find the source code to test myself.
Grateful if anyone could point me at or provide the ILO 2.5 code .
Many Thanks
TitanMorning Hoek,
Thankyou for your reply. I was looking to see if there was any updates as various discussions have alluded to another version:
As per the discussions on the link you posted
In chapter 13 - Profiling for Performance - of your book 'Expert PL/SQL Practices' your examples reference version 2.5 of ILO. Is ILO version 2.5 available? A working example of ILO was one of the reasons I purchased the book (it was the first chapter I read!).
AND
Instrumentation Library for Oracle (ILO)
"Hi Ian,
Someone else contacted me about locating ILO 2.5 code recently. I have the original code on a machine at home, and will post it somewhere this weekend, most likely at Apress.com. I'll need to check with Ron at Method-R about the latest and greatest version of ILO. He had some changes planned, and there are no guarantees that my code is compatible with any new code he's developed.
I'll update this thread with the location in case you're still looking for it.
cheers ... Robyn
Regards
Titan -
Are Oracle going to build a Webutil library for ADF ?
Hi,
We have a customer who has a forms app that uses Webutil to interact with many things such as the registry, DLL's etc.
One obstacle we have in trying to sell a rewrite in ADF to them is the lack of Webutil-type functionality in ADF. If Oracle developed a Webutil library for ADF we would be able to sell the product much easier.
Do any of you Oracle guys know if it is on the cards ?
cheers
Edited by: Dom Klein on Nov 2, 2009 11:29 AMHi,
Would you explain what "Forms is already on the page" mean? Thanks.
This means that if you want to integrate Forms with ADF and Forms is embedded as an Applet on an ADF page
BTW: There should be a mechanism that would allow ADF to have trusted access to client machines.
ADF has nothing to do with this. In general HTML based content cannot access the client desktop except for file uploads for security reasons. If browser vendors could agree on a standard that allows signed JavaScript to perform trusted client access then this could be solved. However, signed JavaScript is only supported by Netscape browsers and is not available anywhere else. In Java Applets, like Forms uses it, the Applet sources are signed - as there is a standard for this - allowing Java to access the client.
Webutil was a significant breakthrough for Forms.
Yes. It is a corner stone that bridged the functionality gap between client server and web based forms
I'm currently slogging through various ADF tutorials. the documentation is ALL OVER THE PLACE. I'm struggling with trying to find a way gain access to the current application instance that would give me access to active view objects. The ADF documentation is PAINFULLY opaque on this issue for this newbie.
Forms had 2 developer guides to the time we printed manuals (a basic introduction and an advanced manual). Adding the Graphics guide and the Reports guise, all in all the documentation was provided in 4 books. ADF and the related technologies are way more complex for a beginner, but once understood also more powerful than Forms. The main documentation - surprise surpise - is provided in 4 books. The ADF developer guide, the Web developer guide, the desktop integration guide and the mobile development guide. As a beginner, the first two guides is what you need - start with the ADF developer guide.
http://download.oracle.com/docs/cd/E12839_01/dev.htm
Related documentation, which is runtime specific, is then provided in the FMW documentation
Frank -
Could not load library for database connection LCA
Hi,
I am facing RFC connection prblem while connectiong to database. I have installed SCM5.1 and live cache in single server
Please find the logs.
Work process log:
B Mon Jul 20 11:19:13 2009
B create_con (con_name=LCA)
B Loading DB library 'E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll' ...
M *** ERROR => DlLoadLib: LoadLibrary(E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll) Error 126 [dlnt.c 241]
M Error 126 = "The specified module could not be found."
B *** ERROR => Couldn't load library 'E:\usr\sap\SC7\DVEBMGS03\exe\dbsdbslib.dll'
[dbcon.c 4731]
B ***LOG BYG=> could not load library for database connection LCA [dbds#1 @ 1035] [dbds 1035 ]
A
A Mon Jul 20 11:21:58 2009
A GENER starting remote generation: /SAPAPO/OM_SYNC_LC_DB (requested by W1).
B
SM21:
No shared library found for the database with ID LCA|
No shared library found for the database with ID LCA
/SAPAPO/OM17|/SAPAPO/OM_SYNC_LC_DB|K |SAP Web AS Problem|SBAC |
Documentation for system log message BY G :
As well as the standard connection, an attempt was made to set up
another database connection, under the specified ID. The Shared Library
for this second database could not be found.
The Shared Library is usually found in the the Executable
directory (profile parameter DIR_LIBRARY) under the name dbs
<dbs>slib<os_ext>. <dbs> stands for the database type and <os_ext>
stands for the operating system-specific extension of the Shared
Libraries.
The database type is determined from the entry that corresponds to the
specified DB ID in the table DBDCON. Check whether the data in this
entry is correct.
ST22
Runtime Errors DBIF_DSQL2_CONNECTERR
Exception CX_SY_NATIVE_SQL_ERROR
Date and Time 20.07.2009 11:22:21
Short text
Error setting up a secondary database connection
What happened?
Connection to database system not possible with identifier "LCA".
|----
System environment
SAP-Release 700
Application server... "
Network address...... "
Operating system..... "Windows NT"
Release.............. "5.2"
Hardware type........ "8x AMD64 Level"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 8
Shortdump setting.... "full"
Database server... "
Database type..... "ORACLE"
Database name..... "SC7"
Database user ID.. "SAPSC7"
Terminal................. " "
Char.set.... "C"
SAP kernel....... 701
created (date)... "Jul 6 2009 23:47:55"
create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
Database version. "OCI_10201_SHARE (10.2.0.2.0) "
Patch level. 50
Patch text.. " "
Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
SAP database version. 701
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
NT 6.0"
Information on where terminated
Termination occurred in the ABAP program "SAPLSLCAPPS" - in
"LCA_EXISTS_LCA_ROUTINE".
The main program was "/SAPAPO/TS_BATCH_RUN ".
In the source code you have the termination point in line 23
of the (Include) program "LSLCAPPSU05".
The program "SAPLSLCAPPS" was started as a background job.
Job Name....... "MACROS"
Job Initiator.. "SC7GEN"
Job Number..... 10222002
The termination is caused because exception "CX_SY_NATIVE_SQL_ERROR" occurred
in
procedure "LCA_EXISTS_LCA_ROUTINE" "(FUNCTION)", but it was neither handled
locally nor declared
in the RAISING clause of its signature.
The procedure is in program "SAPLSLCAPPS "; its source code begins in line
1 of the (Include program "LSLCAPPSU05 ".
Please help me to resolve the issue.
SurajHi Natalia Khlopina,
I have raised OSS message to SAP.
Below is the information
E:\usr\sap\SC7\SYS\exe\uc\Copy_ of_NTAMD64_15062009>sdbregview -l
Server Utilities e:/sapdb/programs 7.7.02.08 64 bit valid
DB Analyzer e:/sapdb/programs 7.7.02.08 64 bit valid
PCR 7301 e:/sapdb/programs 7.3.01.21 valid
PCR 7500 e:/sapdb/programs 7.5.00.42 64 bit valid
SAP Utilities e:/sapdb/programs 7.7.02.08 64 bit valid
APO LC APPS f:/sapdb/lcs/db/sap 6.00.004 64 bit valid
Redist Python e:/sapdb/programs 7.7.02.08 64 bit valid
Base e:/sapdb/programs 7.7.02.08 64 bit valid
JDBC e:/sapdb/programs 7.6.03.02 valid
Messages e:/sapdb/programs MSG 0.5010 valid
ODBC e:/sapdb/programs 7.7.02.08 64 bit valid
SQLDBC 77 e:/sapdb/programs 7.7.02.08 64 bit valid
Database Kernel f:/sapdb/lcs/db 7.7.02.08 64 bit valid
Loader e:/sapdb/programs 7.7.02.08 64 bit valid
SQLDBC e:/sapdb/programs 7.7.02.08 64 bit valid
SQLDBC 76 e:/sapdb/programs 7.6.01.15 64 bit valid
Fastload API e:/sapdb/programs 7.7.02.08 64 bit valid
C:\Documents and Settings\sc7adm>disp+work
disp+work information
kernel release 701
kernel make variant 701_REL
compiled on NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00
compiled for 64 BIT
compilation mode UNICODE
compile time Jul 6 2009 23:47:55
update level 0
patch number 50
source id 0.050
supported environment
database (SAP, table SVERS) 700
701
operating system
Windows NT 5.0
Windows NT 5.1
Windows NT 5.2
Windows NT 6.0
Thanks for quick responce.
Suraj -
BRCONNECT unable to find oracle library
Hi
After SAP upgrade to Netweaver 7.0 with Oracle 10.2 on HP-UX system, the BRCONNECT program unable to execute DBA jobs. It is ending with following error with user <sid>adm
Execute logical command BRCONNECT On host <wxyz>
Parameters: -u / -jid CHECK20080812023451 -c -f check
/usr/lib/pa20_64/dld.sl: Unable to find library 'libclntsh.sl.10.1'.
Process died due to signal 9
And if I run it using user ora<sid>, it ends with insufficient privileges.
BR0801I BRCONNECT 7.00 (32)
BR0301E SQL error -1031 at location BrLicCheck-14, SQL statement:
'SELECT COUNT(*) FROM SAP_SAPLIKEY'
ORA-01031: insufficient privileges
BR0804I BRCONNECT terminated with errors
The roles granted to users OPS$<SID>ADM and OPS$ORA<SID> are RESOURCE, CONNECT and SAPDBA.
please provide your inputs on these issues i.e. how to make the oracle library available when running brconnect using <sid>adm user and how to remove the "ORA-01031: insufficient privileges" when running brconnect using ora<sid> user.
Thanks
VinodHi All
I have tried executing it on <sid>adm commandline but it is giving same error.
>brconnect -u / -c -f check
/usr/lib/pa20_64/dld.sl: Unable to find library 'libclntsh.sl.10.1'.
Killed
The following are the env for <sid>adm
_=/usr/bin/env
THREAD=NOPS
SHLIB_PATH=/usr/sap/<SID>/SYS/exe/run:/oracle/client/10x_64/instantclient
ORACLE_PSRV=<SID>
PATH=/oracle/<SID>/102_64/bin:/home/<SID>adm:/usr/sap/<SID>/SYS/exe/run:/opt/sudo/bin:/opt/sudo/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/resmon/bin:/opt/perf/bin:/opt/prm/bin:/opt/mx/bin:/opt/ignite/bin:/opt/gnome/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/langtools/bin:/opt/imake/bin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/sudo/bin:/opt/networker/bin:/opt/hpnpl//bin:/opt/OV/bin/OpC:/opt/OV/bin:/opt/cfg2html:/opt/ssh/bin:/opt/java1.4/bin:.
NLS_LANG=AMERICAN_AMERICA.WE8DEC
COLUMNS=125
ORACLE_BASE=/oracle
EDITOR=vi
LOGNAME=<sid>adm
dbs_ora_tnsname=<SID>
ORACLE_SID=<SID>
ERASE=^H
PS1=
<sid>adm>
DB_SID=<SID>
DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
ORA_NLS10=/oracle/<SID>/102_64/nls/data
dbs_ora_schema=SAP<SID>
SHELL=/usr/bin/sh
JAVA_HOME=/opt/java1.4/bin
SAPDATA_HOME=/oracle/<SID>
HOME=/home/<SID>adm
TERM=xterm
ORACLE_HOME=/oracle/<SID>/102_64
PWD=/home/<SID>adm
TZ=CST6CDT
dbms_type=ORA
SAPSYSTEMNAME=<SID>
LINES=44
The following is command outputs as requested by Fidel
ls -lR /oracle/client
drwxr-xr-x 3 ora<sid> dba 1024 May 30 11:32 10x_64
drwxr-xr-x 8 ora<sid> dba 1024 Jan 10 2007 9207
drwxr-xr-x 4 ora<sid> dba 96 Mar 12 2004 92x_64
/oracle/client/10x_64:
total 87438
-rwxr-xr-x 1 ora<sid> dba 44765594 May 30 11:28 OCL10264.SAR.1
-rw-rr 1 ora<sid> dba 100 May 4 2006 dbclient.lst
lrwxr-xr-x 1 ora<sid> dba 19 May 30 11:32 instantclient -> instantclient_10202
drwxr-xr-x 2 ora<sid> dba 1024 May 4 2006 instantclient_10202
/oracle/client/10x_64/instantclient_10202:
total 231858
-rrr-- 1 ora<sid> dba 1594191 Apr 20 2006 classes12.jar
-rwxr-xr-x 1 ora<sid> dba 36684488 Apr 20 2006 libclntsh.so.10.1
-rwxr-xr-x 1 ora<sid> dba 5231200 Apr 20 2006 libnnz10.so
-rwxr-xr-x 1 ora<sid> dba 3322720 Apr 20 2006 libocci.so.10.1
-rwxr-xr-x 1 ora<sid> dba 70117848 Apr 20 2006 libociei.so
-rwxr-xr-x 1 ora<sid> dba 201112 Apr 20 2006 libocijdbc10.so
-rrr-- 1 ora<sid> dba 1540457 Apr 20 2006 ojdbc14.jar
/oracle/client/9207:
total 2
drwxr-xr-x 5 ora<sid> dba 96 Jan 10 2007 jdbc
drwxr-xr-x 2 ora<sid> dba 1024 Jan 10 2007 lib
drwxr-xr-x 3 ora<sid> dba 96 Jan 10 2007 network
drwxr-xr-x 3 ora<sid> dba 96 Jan 10 2007 ocommon
drwxr-xr-x 5 ora<sid> dba 96 Jan 10 2007 oracore
drwxr-xr-x 3 ora<sid> dba 96 Jan 10 2007 rdbms
/oracle/client/9207/jdbc:
total 62
-rwxr-xr-x 1 ora<sid> dba 30654 Jan 10 2007 Readme.txt
drwxr-xr-x 2 ora<sid> dba 96 Jan 10 2007 demo
drwxr-xr-x 2 ora<sid> dba 96 Jan 10 2007 doc
drwxr-xr-x 2 ora<sid> dba 1024 Jan 10 2007 lib
/oracle/client/9207/jdbc/demo:
total 880
-rwxr-xr-x 1 ora<sid> dba 450560 Jan 10 2007 demo.tar
/oracle/client/9207/jdbc/doc:
total 14140
-rwxr-xr-x 1 ora<sid> dba 3619840 Jan 10 2007 javadoc.tar
-rwxr-xr-x 1 ora<sid> dba 3619840 Jan 10 2007 jdbcdoc.tar
/oracle/client/9207/jdbc/lib:
total 34090
-rwxr-xr-x 1 ora<sid> dba 1413613 Jan 10 2007 classes111_g.jar
-rwxr-xr-x 1 ora<sid> dba 1423863 Jan 10 2007 classes111_g.zip
-rwxr-xr-x 1 ora<sid> dba 1234433 Jan 10 2007 classes12.jar
-rwxr-xr-x 1 ora<sid> dba 1245538 Jan 10 2007 classes12.zip
-rwxr-xr-x 1 ora<sid> dba 1476640 Jan 10 2007 classes12_g.jar
-rwxr-xr-x 1 ora<sid> dba 1487705 Jan 10 2007 classes12_g.zip
-rwxr-xr-x 1 ora<sid> dba 1240587 Jan 10 2007 classes12dms.jar
-rwxr-xr-x 1 ora<sid> dba 1483154 Jan 10 2007 classes12dms_g.jar
-rwxr-xr-x 1 ora<sid> dba 1848170 Jan 10 2007 nls_charset12.jar
-rwxr-xr-x 1 ora<sid> dba 1878202 Jan 10 2007 nls_charset12.zip
-rwxr-xr-x 1 ora<sid> dba 37761 Jan 10 2007 ocrs12.jar
-rwxr-xr-x 1 ora<sid> dba 37785 Jan 10 2007 ocrs12.zip
-rwxr-xr-x 1 ora<sid> dba 1212964 Jan 10 2007 ojdbc14.jar
-rwxr-xr-x 1 ora<sid> dba 1427311 Jan 10 2007 ojdbc14_g.jar
/oracle/client/9207/lib:
total 52960
lrwxr-xr-x 1 ora<sid> dba 16 May 27 08:31 libclntsh.so -> libclntsh.so.9.0
-rwxrwxrwx 1 ora<sid> dba 25754472 Jan 10 2007 libclntsh.so.9.0
-rwxr-xr-x 1 ora<sid> dba 406606 Jan 10 2007 libocijdbc9.a
-rwxr-xr-x 1 ora<sid> dba 226656 Jan 10 2007 libocijdbc9.so
-rwxr-xr-x 1 ora<sid> dba 284592 Jan 10 2007 libocijdbc9_g.so
-rwxr-xr-x 1 ora<sid> dba 421258 Jan 10 2007 libocijdbcst9.a
-rwxr-xr-x 1 ora<sid> dba 18664 Jan 10 2007 libwtc9.so
/oracle/client/9207/network:
total 2
drwxr-xr-x 2 ora<sid> dba 1024 May 30 13:46 admin
/oracle/client/9207/network/admin:
total 8
-rw-rr 1 ora<sid> dba 24 May 29 15:38 snmp_ro.ora
-rw-r-xr-x 1 ora<sid> dba 277 May 29 15:38 sqlnet.ora
-rw-r-xr-x 1 ora<sid> dba 1332 May 29 15:38 tnsnames.ora.old
/oracle/client/9207/ocommon:
total 0
drwxr-xr-x 3 ora<sid> dba 96 Jan 10 2007 nls
/oracle/client/9207/ocommon/nls:
total 0
drwxr-xr-x 3 ora<sid> dba 96 Jan 10 2007 admin
/oracle/client/9207/ocommon/nls/admin:
total 28
drwxr-xr-x 2 ora<sid> dba 14336 Jan 10 2007 data
/oracle/client/9207/ocommon/nls/admin/data:
total 41676
-rwxr-xr-x 1 ora<sid> dba 721 Jan 10 2007 lx00001.nlb
-rwxr-xr-x 1 ora<sid> dba 124146 Jan 10 2007 lx607d01.nlb
/oracle/client/9207/oracore:
total 2
drwxr-xr-x 2 ora<sid> dba 96 Jan 10 2007 lib
drwxr-xr-x 2 ora<sid> dba 1024 Jan 10 2007 mesg
drwxr-xr-x 2 ora<sid> dba 96 Jan 10 2007 zoneinfo
/oracle/client/9207/oracore/lib:
total 4210
-rwxr-xr-x 1 ora<sid> dba 2155296 Jan 10 2007 libcore9.so
/oracle/client/9207/oracore/mesg:
total 116
-rwxr-xr-x 1 ora<sid> dba 8704 Jan 10 2007 lfiesa.msb
-rwxr-xr-x 1 ora<sid> dba 7168 Jan 10 2007 lfius.msb
-rwxr-xr-x 1 ora<sid> dba 27588 Jan 10 2007 lfius.msg
-rwxr-xr-x 1 ora<sid> dba 4608 Jan 10 2007 lrmesa.msb
-rwxr-xr-x 1 ora<sid> dba 4608 Jan 10 2007 lrmus.msb
-rwxr-xr-x 1 ora<sid> dba 4441 Jan 10 2007 lrmus.msg
/oracle/client/9207/oracore/zoneinfo:
total 1022
-rwxr-xr-x 1 ora<sid> dba 2297 Jan 10 2007 readme.txt
-rwxr-xr-x 1 ora<sid> dba 370494 Jan 10 2007 timezlrg.dat
-rwxr-xr-x 1 ora<sid> dba 148797 Jan 10 2007 timezone.dat
/oracle/client/9207/rdbms:
total 2
drwxr-xr-x 2 ora<sid> dba 1024 Jan 10 2007 mesg
/oracle/client/9207/rdbms/mesg:
total 8854
-rwxr-xr-x 1 ora<sid> dba 8704 Jan 10 2007 bbedus.msb
-rwxr-xr-x 1 ora<sid> dba 124079 Jan 10 2007 ulus.msg
/oracle/client/92x_64:
total 0
drwxr-xr-x 2 ora<sid> dba 96 Mar 12 2004 ietc
lrwxr-xr-x 1 ora<sid> dba 23 Mar 12 2004 jdbc -> /oracle/<sid>/920_64/jdbc
lrwxr-xr-x 1 ora<sid> dba 22 Mar 12 2004 lib -> /oracle/<sid>/920_64/lib
drwxr-xr-x 3 ora<sid> dba 96 Mar 12 2004 ocommon
/oracle/client/92x_64/ietc:
total 40
-rwxr-xr-x 1 ora<sid> dba 19961 Mar 12 2004 CROCLLNK
/oracle/client/92x_64/ocommon:
total 0
drwxr-xr-x 3 ora<sid> dba 96 Mar 12 2004 nls
/oracle/client/92x_64/ocommon/nls:
total 0
drwxr-xr-x 2 ora<sid> dba 96 Mar 12 2004 admin
/oracle/client/92x_64/ocommon/nls/admin:
total 0
lrwxr-xr-x 1 ora<sid> dba 41 Mar 12 2004 data -> /oracle/<sid>/920_64/ocommon/nls/admin/data
<sid>adm> which brconnect
/usr/sap/<SID>/SYS/exe/run/brconnect
<sid>adm> pwd
/sapmnt/<sid>/exe
<sid>adm> ldd brconnect
libnsl.1 => /usr/lib/pa20_64/libnsl.1
libpthread.1 => /usr/lib/pa20_64/libpthread.1
libm.2 => /usr/lib/pa20_64/libm.2
Unable to find library 'libclntsh.sl.10.1'.
Also it is not working even after adding oracle instant client path in SHLIB_PATH
Regards,
Vinod -
Concurrent Manager encountered an error while running Oracle*Report for you
hi
our team is running a report.but encountered
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_DELV_ID='8022'
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.US7ASCII
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: '': Fatal PL/SQL error occurred.
Report Builder: Release 10.1.2.0.2 - Production on Mon Jun 21 11:26:16 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 451508.
Review your concurrent request log and/or report output file for more detailed information.
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PUBLISH -------------+
Beginning post-processing of request 451508 on node DEMO at 21-JUN-2010 11:26:17.
Post-processing of request 451508 failed at 21-JUN-2010 11:26:17 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 21-JUN-2010 11:26:17
+---------------------------------------------------------------------------+how to solve it?when i am searching in this error in cmctl log there is nothing for it.
i have lnched a SR on this they told to run it by appsrwrun.sh.how to run this report by appsrwrun.sh??
rgrds
Edited by: new2appsdba on Jun 21, 2010 4:19 AMHi,
how do you suspect its a OPP related issue??what is OPP?
Enter value for request_id: 451508
old 5: AND fcpp.concurrent_request_id = &&request_id
new 5: AND fcpp.concurrent_request_id = 451508
REQ_ID NODE_NAME
LOGFILE_NAME
451508 DEMO
/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
[demoap@demo ~]$ vi /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
[6/20/10 1:37:36 PM] [main] Starting GSF service with concurrent process id = 94508.
[6/20/10 1:37:36 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[6/20/10 1:37:37 PM] [Thread-16] Service thread starting up.
[6/20/10 1:37:37 PM] [Thread-15] Service thread starting up.
[6/21/10 11:12:00 AM] [OPPServiceThread0] Post-processing request 451495.
[6/21/10 11:12:00 AM] [94508:RT451495] Executing post-processing actions for request 451495.
[6/21/10 11:12:00 AM] [94508:RT451495] Starting XML Publisher post-processing action.
[6/21/10 11:12:00 AM] [94508:RT451495]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:12:00 AM] [UNEXPECTED] [94508:RT451495] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451495.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 11:12:00 AM] [94508:RT451495] Completed post-processing actions for request 451495.
[6/21/10 11:22:27 AM] [OPPServiceThread0] Post-processing request 451505.
[6/21/10 11:22:27 AM] [94508:RT451505] Executing post-processing actions for request 451505.
[6/21/10 11:22:27 AM] [94508:RT451505] Starting XML Publisher post-processing action.
[6/21/10 11:22:27 AM] [94508:RT451505]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:22:27 AM] [UNEXPECTED] [94508:RT451505] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451505.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 11:22:27 AM] [94508:RT451505] Completed post-processing actions for request 451505.
[6/21/10 11:26:17 AM] [OPPServiceThread1] Post-processing request 451508.
[6/21/10 11:26:17 AM] [94508:RT451508] Executing post-processing actions for request 451508.
[6/21/10 11:26:17 AM] [94508:RT451508] Starting XML Publisher post-processing action.
[6/21/10 11:26:17 AM] [94508:RT451508]
Template code: WILPACKSLIP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 11:26:17 AM] [UNEXPECTED] [94508:RT451508] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451508.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 12:00:59 PM] [94508:RT451533] Completed post-processing actions for request 451533.
[6/21/10 12:17:51 PM] [OPPServiceThread0] Post-processing request 451573.
[6/21/10 12:17:51 PM] [94508:RT451573] Executing post-processing actions for request 451573.
[6/21/10 12:17:51 PM] [94508:RT451573] Starting XML Publisher post-processing action.
[6/21/10 12:17:51 PM] [94508:RT451573]
Template code: XXWEBB_EXP_INV
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[6/21/10 12:17:51 PM] [UNEXPECTED] [94508:RT451573] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451573.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[6/21/10 12:17:51 PM] [94508:RT451573] Completed post-processing actions for request 451573.
[6/21/10 12:19:19 PM] [OPPServiceThread0] Post-processing request 451577.
[6/21/10 12:19:19 PM] [94508:RT451577] Executing post-processing actions for request 451577.
[6/21/10 12:19:19 PM] [94508:RT451577] Starting XML Publisher post-processing action.
[6/21/10 12:19:19 PM] [94508:RT451577]
Template code: WILEXINVREP
Template app: ONT
Language: en
Territory: 00
Output type: PDF
[062110_121919525][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[062110_121919526][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[US7ASCII]
[062110_121919526][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062110_121919526][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[062110_121919526][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[062110_121919526][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=demo.webbindia.com)(PORT=1527)))(CONNECT_DATA=(SID=DEMO)))]
[062110_121919527][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[062110_121919527][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[062110_121919527][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[062110_121919527][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[062110_121919527][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[062110_121919528][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[062110_121919528][][EXCEPTION] [DEBUG] [APPLTMP]:[/t01/demoap/inst/apps/DEMO_demo/appltmp]
[062110_121919528][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[062110_121919528][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_08-b03]
[062110_121919528][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[062110_121919528][][EXCEPTION] [DEBUG] [dbcfile]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[062110_121919528][][EXCEPTION] [DEBUG] [path.separator]:[:]
[062110_121919528][][EXCEPTION] [DEBUG] [APPLCSF]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc]
[062110_121919528][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[062110_121919528][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[062110_121919528][][EXCEPTION] [DEBUG] [user.country]:[US]
[062110_121919529][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
[062110_121919529][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[062110_121919529][][EXCEPTION] [DEBUG] [user.dir]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log]
[062110_121919529][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_08-b03]
[062110_121919529][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[30369]
[062110_121919529][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[062110_121919529][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
[062110_121919529][][EXCEPTION] [DEBUG] [os.arch]:[i386]
[062110_121919529][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
[062110_121919529][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[/tmp]
[062110_121919529][][EXCEPTION] [DEBUG] [line.separator]:[
[062110_121919529][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[062110_121919529][][EXCEPTION] [DEBUG] [os.name]:[Linux]
[062110_121919529][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062110_121919530][][EXCEPTION] [DEBUG] [cpid]:[94508]
[062110_121919530][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[UTF-8]
[062110_121919530][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
[062110_121919530][][EXCEPTION] [DEBUG] [java.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/t01/demoap/apps/tech_st/10.1.3/lib32:/t01/demoap/apps/tech_st/10.1.3/lib:/t01/demoap/apps/apps_st/appl/cz/12.0.0/bin:/t01/demoap/apps/apps_st/appl/iby/12.0.0/bin:/t01/demoap/apps/apps_st/appl/pon/12.0.0/bin:/t01/demoap/apps/apps_st/appl/sht/12.0.0/lib]
[062110_121919530][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[062110_121919530][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[062110_121919530][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Server Compiler]
[062110_121919530][][EXCEPTION] [DEBUG] [queue_appl_id]:[0]
[062110_121919530][][EXCEPTION] [DEBUG] [os.version]:[2.6.18-164.11.1.el5xen]
[062110_121919530][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[062110_121919530][][EXCEPTION] [DEBUG] [user.home]:[/t01/demoap]
[062110_121919530][][EXCEPTION] [DEBUG] [user.timezone]:[GMT+05:30]
[062110_121919530][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
--------------------------------------------------------------------------------lots of lines ----------------------------------------
[GC 17474K->10837K(24648K), 0.0037890 secs]
[GC 17685K->11057K(24648K), 0.0035530 secs]
[GC 17905K->11271K(24648K), 0.0029030 secs]
[GC 18119K->11488K(24648K), 0.0024650 secs]
[GC 18336K->11702K(24648K), 0.0023940 secs]
[GC 18550K->11919K(24648K), 0.0025010 secs]
[GC 18767K->12133K(24648K), 0.0024460 secs]
[GC 18981K->12344K(24648K), 0.0024020 secs]
[GC 19192K->12575K(24648K), 0.0024790 secs]
[GC 19423K->12781K(24648K), 0.0025650 secs]
[GC 19629K->12991K(24648K), 0.0024010 secs]
[GC 19839K->13212K(24648K), 0.0024430 secs]
[GC 20060K->13427K(24648K), 0.0024160 secs]
[GC 20275K->13641K(24648K), 0.0024440 secs]
[GC 20489K->13857K(24648K), 0.0024410 secs]
[GC 20705K->14073K(24648K), 0.0024570 secs]
[GC 20921K->14284K(24648K), 0.0024340 secs]
[GC 21132K->14504K(24648K), 0.0024580 secs]
[GC 21352K->14719K(24648K), 0.0024620 secs]
[GC 21567K->14935K(24648K), 0.0024600 secs]
[GC 21783K->15151K(24648K), 0.0024360 secs]
[GC 21999K->15365K(24648K), 0.0024180 secs]
[GC 22213K->15004K(24648K), 0.0204220 secs]rgrds
Edited by: new2appsdba on Jun 22, 2010 1:43 AM
Edited by: new2appsdba on Jun 22, 2010 2:12 AM
Edited by: new2appsdba on Jun 22, 2010 5:37 AM -
Opening a secure web page from oracle forms for credit card validation
Hi All,
I searched for the topic in the forms forum but couldn't find a solution.
Requirement: As per some compliance, our application cannot do a credit card validation from our forms application, instead we need to use a java code which a third party will provide ,it's an iframe (they say, i am layman when it comes to Java, don't know what is it), but they say that, within your forms application you call our iframe do the credit card validation over there get a token of response back from us and use this token as a confirmation in your application.
Problem: I could not find a solution anywhere wherein i can call a web page from forms. Now, this web page should be modal, i.e. unless i close this page i cannot access my forms application. Please guide me if anyone has done that.
Secondly if i could make it work, how will i communicate with this external web page, like getting back some token value and use it back in my forms application. I am completely clueless.
As we are using Oracle designer for generating forms, we cannot use a bean type thing as designer does not have the bean-item type defined!
Appreciate if anyone could provide me pointers for a solution to this problem statement.
We are on forms 9i -- Version 9.0.2.11.0
Edited by: the_wing_rider on Jul 8, 2011 5:10 AMThe simple way to do it is to use a PJC (java bean) + apache httpclient library..
If you have a webservice than you can use Axis library and wsdl2java to create java classes from wsdl.
also you can use httpclient library to simulate http protocol (request/response actions)..
(for example.. you have a credit card number.. you post this number to specified URL and then you parse the response from credit card validation server)..
Post here some documentation (specification) on how to call the credit card validation .. (maybe it's a secure webservice?)
Here you have a httpclient library documentation:
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html
Also you can implement bean area in designer.. If you need help I can post here how we do it in our project..
also look here: Call webservice from PJC over https protocol
regards
Peter
Edited by: Peterv6i on Jul 8, 2011 3:35 PM -
[XI 3.1] BEST PRACTICE method of Oracle connection for RPTs on Linux
Business Objects XI (3.1) - SP3.
Running on Red Hat Enterprise Linux OS.
7,000+ Crystal Reports 2008 *.rpt objects ONLY (No Universe / No WebI).
All reports connecting to Oracle 10g databases.
==================
In the past, all of this infrastructure was running on Windows Server OS and providing the database access via a Named ODBC connection (eg. "APP_DATA".)
This made it easy to manage as all the Report Developers had a standard System DSN called "APP_DATA" which was the same as the System DSN name on all of our DEV, TEST/UAT, and PROD servers for Business Objects.
When we wanted to move/promote a *.rpt file from DEV to PROD we did not have to change any "Database Connection" info as it was all taken care of by pointing the System DSN called "APP_DATA" a a different physical Oracle server at the ODBC level.
Now, that hardware is moving from Windows OS to Red Hat Linux and we are trying to determine the Best Practices (and Pros/Cons) of using one of the three methods below to access the Oracle database for our *.rpts....
1.) Oracle Native connection
2.) ODBC connection
3.) JDBC connection
Here's what we have determined so far -
1a.) Oracle Native connection should be the most efficient method of passing SQL-query to the DB with the fewest issues and best speed [PRO]
1b.) Oracle Native connection may not be supported on Linux - http://www.forumtopics.com/busobj/viewtopic.php?t=118770&view=previous&sid=9cca754b468fc67888ab2553c0fbe448 [CON]
1c.) Using Oracle Native would require special-handling on the *.rpts at either the source-file or the CMC level to change them from DEV -> TEST -> PROD connection. This would result in a lot more Developer / Admin overhead than they are currently used to. [CON]
2a.) A 3rd-Party Linux ODBC option may be available from EasySoft - http://www.easysoft.com/products/data_access/odbc_oracle_driver/index.html - which would allow us to use a similar Developer / Admin overhead to what we are used to. [PRO]
2b.) Adding a 3rd-Party Vendor into the mix may lead to support issues is we have problems with results or speeds of our queries. [CON]
3a.) JDBC appears to be the "defacto standard" when running Oracle SQL queries from Linux. [PRO]
3b.) There may be issues with results or speeds of our queries when using JDBC. [CON]
3c.) Using JDBC requires the explicit-IP of the Oracle server to be defined for each connection. This would require special-handling on the *.rpts at either the source-file (and NOT the CMC level) to change them from DEV -> TEST -> PROD connection. This would result in a lot more Developer / Admin overhead than they are currently used to. [CON]
==================
We would appreciate some advice from anyone who has been down this road before.
What were your Best Practices?
What can you add to the Pros and Cons listed above?
How do we find the "sweet spot" between quality/performance/speed of reports and easy-overhead for the Admins and Developers?
As always, thanks in advance for your comments.Hi,
I just saw this article and I would like to add some infos.
First you can quite easely reproduce the same way of working with the odbc entries by playing with the oracle name resolution on the server. By changing some files (sqlnet, tnsnames.ora,..) you can define a different oracle server for a specific name that will be the same accross all environments.
Database name will be resolved differently regarding to the environment and therefore will access a different database.
Second option is the possibility to change the connection in .rpt files by an automated way like the schedule manager. This tool is a additional web application to deploy that can change the connection settings of rpt reports on thousands of reports in a few clicks. you can find it here :
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80af7965-8bdf-2b10-fa94-bb21833f3db8
The last option is to do it with a small sdk script, for this purpose, a few lines of codes can change all the reports in a row.
After some implementations on linux to oracle database I would prefer also the native connection. ODBC and JDBC are deprecated ways to connect to database. You can use DATADIRECT connectors that are quite good but for volumes you will see the difference. -
Using an AIX archive file as a library for an external procedure.
I cannot use an archive file, created with the ar command, that contains a shared object that was created with the xlc and ld commands as a library for external procedures. I can use the shared object file created with the ld command as a library for an external procedure. Why would I encounter an invalid magic number and what is the resolution?
Example:
oracle:@husk21:/home/oracle> ksh -x ./Oracle_demo.ksh
+ rm shell.o shell.so shell.so.exp shell.so.imp
+ make -f /u01/oracle/product/11.1.0.7/db/rdbms/demo/demo_rdbms32.mk extproc_no_context SHARED_LIBNAME=shell.so OBJS=shell.o
/u01/oracle/product/11.1.0.7/db/bin/oraxlc -q32 -c -I/u01/oracle/product/11.1.0.7/db/rdbms/demo -I/u01/oracle/product/11.1.0.7/db/rdbms/public -I/u01/oracle/product/11.1.0.7/db/plsql/public -I/u01/oracle/product/11.1.0.7/db/network/public -I/u01/oracle/product/11.1.0.7/db/precomp/public shell.c
generate_export_list() { /bin/nm -X32_64 -B -h -g "$1" | grep -v ' U ' | awk '{print $3}' | egrep -v '^\.|^TOC' | sort | uniq ; }; generate_import_list() { LIB_NAME=$1; IMP_FILE=$2; cat /u01/oracle/product/11.1.0.7/db/rdbms/lib/xa.imp | head -1 | awk '{print $0, "." }' > ${IMP_FILE}; /bin/nm -X32_64 -C -B -h -g ${LIB_NAME} | grep ' U ' | grep -v "::" | grep -v "(" | grep -v "\.cc" | awk '{print $3}' | sed -e "s/\.//g" | grep -v "^_" >> ${IMP_FILE}; }; generate_import_list shell.o shell.so.imp; generate_export_list shell.o > shell.so.exp; /bin/ld -b32 -bnoentry -bM:SRE -bE:shell.so.exp -bI:shell.so.imp -o shell.so shell.o -L/u01/oracle/product/11.1.0.7/db/lib -lc_r -lm
ld: 0711-224 WARNING: Duplicate symbol: .system
ld: 0711-224 WARNING: Duplicate symbol: system
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
oracle:@husk21:/home/oracle> ar rv libshell.a shell.so
ar: Creating an archive file libshell.a.
a - shell.so
oracle:@husk21:/home/oracle> ar tv libshell.a
rwxr-xr-x 3514/3516 1263 Sep 08 10:00 2009 shell.so
oracle:@husk21:/home/oracle> file shell.so
shell.so: executable (RISC System/6000) or object module not stripped
oracle:@husk21:/home/oracle> file libshell.a
libshell.a: archive (big format)
SQL> CREATE OR REPLACE LIBRARY shell_lib is '/home/oracle/libshell.a';
/ 2
Library created.
SQL> CREATE OR REPLACE PROCEDURE shell(command IN char)
AS EXTERNAL
NAME "shell"
LIBRARY shell_lib
LANGUAGE C
PARAMETERS (command string);
/ 2 3 4 5 6 7
Procedure created.
SQL> exec shell('ls');
BEGIN shell('ls'); END;
ERROR at line 1:
ORA-06520: PL/SQL: Error loading external library
ORA-06522: 0509-022 Cannot load module /home/oracle/libshell.a.
0509-103 The module has an invalid magic number.
ORA-06512: at "V500.SHELL", line 1
ORA-06512: at line 1
SQL> CREATE OR REPLACE LIBRARY shell_lib is '/home/oracle/shell.so';
2 /
Library created.
SQL> exec shell('ls');
PL/SQL procedure successfully completedUsing an AIX archive file as a library for an external procedure.
-
Document library for 9.3.1
Hello,
Can anybody provide me the link to document library for hyperion 9.3.1 products.
i can find for ver 11 http://download.oracle.com/docs/cd/E12825_01/nav/portal_1.htm
Thanks!Hi,
The root for the software documentation is :- http://www.oracle.com/technology/documentation/epm.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Shared library for MyFaces Trinidad
Hello!
I'm having some trouble trying to create a shared library in OC4J 10.1.3.3.0. My goal is to deploy multiple applications that use MyFaces and Trinidad, but using a shared library that contains every JAR required.
This is what I've done so far:
1. I created the directory D:\workspace\oc4j_10.1.3\j2ee\home\shared-lib\sidi\1 and put there every JAR included in MyFaces Trinidad Demo.
2. Edited server.xml and added the following lines:
<shared-library name="sidi" version="1">
<code-source path="*"/>
</shared-library>
3.- Edited the orion-application.xml in each application that needs MyFaces Trinidad support and added the following lines:
<imported-shared-libraries>
<import-shared-library name="sidi" />
</imported-shared-libraries>
When I try to run any application that uses MyFaces Trinidad, I get this error message:
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
If I add that listener to web.xml, the error changes to this:
9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
9/08/2007 02:37:29 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/trinidad-impl-1.0.1.jar!/META-INF/faces-config.xml
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : myfaces-api not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : myfaces-impl not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : tomahawk-sandbox not found.
9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: MyFaces-package : tomahawk not found.
If I place the JARs inside each WEB-INF/lib the applications work, but I'm trying to avoid doing this to have smaller EARs when the applications are packaged for deployment in the production servers.
What am I doing wrong? Hope you can help me with this.Hi Aram,
The default behaviour of OC4J is to NOT run the listeners provided inside the taglibs. As for java server faces, tomahawk and trinidad use taglibs that rely on the listener configured in the tld file
You'd need not only to deploy the "shared library", but also, drop the jars in the $OC4J/j2ee/home/taglibs directory
And, make sure that in your "global-web-application.xml" you have:
<orion-web-app
[... whatever ...]
jsp-cache-tlds="on"
jsp-taglib-locations="../taglibs"
>
that means, the attribute "jsp-taligb-locations is defined for the orion-web-app tag. With that, the listener is going to be loaded, and you'd not need to configure it in the web.xml -
Hi , Trying to understand what are the features availabe in Oracle 10g for developers. Happy with links too.Thanks.
Go to Morgan's Library at www.psoug.org.
Click on any link.
Click on the link at page top named "Built-in Functions" for a warm up.
Maybe you are looking for
-
How to refresh photo gallery on N79?
Why photo gallery doesn't show new downloaded/received/captured screen shots,without turn off mobile? Is there anyway to get them on image gallery without turn off phone?
-
How to get the tag name of HTMLDocument?
I am now using JEditorPane to display and edit a html file. My code is like this: kit = new HTMLEditorKit(); doc = (HTMLDocument) (kit.createDefaultDocument()); editor.setEditorKit(kit); editor.setDocument(doc); editor.setContentType("text/html; char
-
Sync iphone photo rolls to ipad
TRYING TO SYNC my Iphone 5 photos to my Ipad 2
-
Hey everyone, So I was considering making the move from QWERTY to a keyboard layout that's a little more efficient, so I thought I'd take a poll to see who is using what kind of keyboard layout and why. I'm curious about Dvorak, programmer's Dvorak,
-
Trying to convert a TIFF file channels into layers, or convert into JPEG.
Hello, I am using an artwork with several different channels which im having difficulty turning into layers in Photoshop, when copying and pasting they will not copy. It is an 8bit RGB file. I am wanting to turn it into a jpeg so I can rework the fi