Perl on Oracle
Hallo,
For perl scripting over an Oracle Database , it is required to install DBI, usually shipped with perl, and DBD:Oracle, usually installed on an Oracle Client.
Is it safe to install DBD:Oracle on an Oracle Server with a live instance running? Does it imply a relinking of binaries?
TIA
There is a full version of Perl installed with the RDBMS, it has DBI built in already. You can use it, but it needs a little bit of config with shell vars to take full advantage of it. Obviously adding other modules is a not supported, but depends on how much you need to do with it.
Norbert Debes book Secrets of the Oracle Database, goes into how to take advantage of the Oracle supplied Perl kit.
http://apress.com/book/view/9781430219521
If you do decide to put DBI into the local Perl on your O/S, it will not damage a running instance. The O/S compiler simply needs access to the Oracle header and library files to link to.
You can also build Perl DBI against Oracle Instant Client, which we have done in my shop. It gives you a very lightweight Oracle client with which you can attach Perl to Oracle instances and saves having to install a huge RDBMS or full client kit.
Rgds
Similar Messages
-
Where do I start with Scripting in Perl with Oracle?
Apart from Installing Perl, do i need any extra libraries to connect to an Oracle Database using a Perl Script?both modules are separate installations. e.g. red hat provides a perl-dbi module for RHEL, AS, ... and the oracle dbd driver you can get here: http://search.cpan.org/~pythian/DBD-Oracle-1.19/Oracle.pm
http://www.orafaq.com/faqperl.htm#DBDORACLE -
Yasql and perl-DBD-Oracle for RH7
Hi
I have installed yasql-1.61-1.noarch.rpm on RH7 but am having problems locating an appropriate perl-DBD-Oracle compatable with perl 5.6.0 for RH7.
Any pointers (or alternatives) on getting this running for RH7 and perl 5.6.0 would be much appreciated.If you installed the base rdbms and PRO*C and Networking,
BDB-Oracle-0.5[56789] should build out of the box.
Follow the instructions in the READMEs and you should be fine.
There is a mailing list (referenced in the DBD-Oracle docs)
where you should be able to get help.
For your TNS problem. Check to make sure
that your listenr.ora and tnsnames.ora files are correct.
Also, you might check that your listener is running.
It looks like an install on a system not connected to
a network does not do that - this will cause all kinds of
TNS problems
Garth
Joao Pedro Gonalves (guest) wrote:
: Hi, i've been trying to install Oraperl with no success,
: firstly, i found out that there were missing header files
: (oratypes.h... ) and got them out of an NT 7.x CD.
: DBD::Oracle compiles finely but when i try to use it i get the
: following error:
: install_driver(Oracle) failed: Can't load
: '/usr/lib/perl5/site_perl/i586-linux/auto/DBD/Oracle/Oracle.so'
: for module DBD::Oracle: File not found at
: /usr/lib/perl5/i586-linux/5.00404/DynaLoader.pm line 166.
: Oracle.so was not created in any way by the DBD::Oracle so i
: don't know what could be wrong.
: I have set all the vars correctly (ORACLE_HOME, ORACLE_SID,
etc)
: BTW,
: how do i get oracle to resolve names and why do i get this
: message while trying to connect through the listener:
: ORA-12505: TNS:listener could not resolve SID given in connect
: descriptor
: sqlplus seems to be sending "SID=*" , how do i change this out?
: Thanks in advance,
: joao
null -
Java/JDBC slow compared to Perl/DBD-Oracle
Hopefully the subject is inflammatory enough to get some responses :-)
I'm thinking about converting a database-intensive Perl application to Java, but it's fairly database intensive. Things look pretty straightforward, but Oracle's OCI JDBC driver seems to run at about 2/3 the speed of Perl with the DBD-Oracle driver.
For comparison, here's the Java version:
=== SelectTest.java
import java.sql.*;
import oracle.jdbc.driver.*;
public class SelectTest {
public static void main(String args[]) throws Exception {
int count = Integer.parseInt(args[0]);
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection(
"jdbc:oracle:oci8:@orcl.world",
"scott", "tiger");
String statement = "select * from dual";
OraclePreparedStatement stmt =
(OraclePreparedStatement) conn.prepareStatement(statement);
stmt.defineColumnType(1, Types.VARCHAR);
stmt.setRowPrefetch(1);
for (int i = 0; i < count; i++) {
ResultSet rset = stmt.executeQuery();
rset.next();
String s = rset.getString(1);
rset.close();
stmt.close();
=== End of SelectTest.java
and here's the Perl version:
=== select_test.pl
#!/usr/bin/perl -w
use strict;
use DBI;
my $dbh = DBI->connect('dbi:Oracle:dev.cag', 'cag', 'gac');
my $sth = $dbh->prepare('select * from dual');
for (1 .. $ARGV[0]) {
$sth->execute;
my @data = $sth->fetchrow;
$sth->finish;
=== End of select_test.pl
On my Linux box at home, 'time java SelectTest 1' gives me:
1.120u 0.140s 0:01.35 93.3% 0+0k 0+0io 4334pf+0w
and 'time java SelectTest 1000' gives me:
2.290u 0.370s 0:03.87 68.7% 0+0k 0+0io 4334pf+0w
So the OCI driver can execute about 400 execute/next's per second.
In comparison, 'time select_test.pl 1' gives:
0.550u 0.070s 0:00.74 83.7% 0+0k 0+0io 1638pf+0w
and 'time select_test.pl 1000' gives:
1.210u 0.220s 0:02.41 59.3% 0+0k 0+0io 1638pf+0w
So the Perl/DBD-Oracle runs at about 600 execute/fetch's per second.
The results are similar on our Sun 3500.
I'm at a loss to explain this. I'm explicitly setting the prefetch, using the Oracle defineColumnType extension, and preparing the statement outside the loop. Amazingly, the Perl program beats it with practically no optimization.
This is actually a best-case scenario for the JDBC driver. In the worst-case scenario, the same program running against a table with 50 columns runs about 6 times faster with Perl/DBD than with Java/JDBC. (Large records seem to be a particularly bad case for the JDBC driver).
These tests are actually highly important for our application, which frequently issues single-row selects.
I'm desperate to increase the JDBC performance. Every other test I've run shows Java running several times faster than Perl. Once I can get this ironed out, we should be all set.
For the record, the tests were run using JDK1.2 against classes111.zip. The results were similar using classes12.zip.
Does anyone have any suggestions? I'm hoping there's something obvious I'm missing that will speed up my code to acceptable levels.ddankwerth,
Actually, we're using persistent connections with mod_perl, so I'm not anticipating a big speed boost there.
Do you have a code example where the thin driver outperforms the OCI driver? In my tests, it's at least 30% slower.
One thing I noticed after posting my question was that the total idle time for the JDBC code was about 50% higher than for the Perl code. This makes me think that the JDBC driver is making more calls to the DBMS than necessary.
Is Oracle actively tuning the JDBC drivers? I get the impression from the classes12 README that the development is focusing more on keeping up with the JDBC standard than with performance.
Does anyone know if there any plans to improve performance? -
Problems to compile Perl DBD::Oracle with InstantClient 11.1.0.7
machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# perl Makefile.PL
Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
Configuring DBD::Oracle for perl 5.010000 on linux (x86_64-linux-gnu-thread-multi)
Remember to actually READ the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/11.1/client64
DEFINE SQLPLUSRELEASE = "1101000700" (CHAR)
Oracle version 11.1.0.7 (11.1)
Found /usr/share/oracle/11.1/client64/demo.mk
Found /usr/share/oracle/11.1/client64/demo.mk
Using /usr/share/oracle/11.1/client64/demo.mk
Your LD_LIBRARY_PATH env var is set to '/usr/lib/oracle/11.1/client64/lib'
Reading /usr/share/oracle/11.1/client64/demo.mk
WARNING: Oracle /usr/share/oracle/11.1/client64/demo.mk doesn't define a 'build' rule.
WARNING: I will now try to guess how to build and link DBD::Oracle for you.
This kind of guess work is very error prone and Oracle-version sensitive.
It is possible that it won't be supported in future versions of DBD::Oracle.
PLEASE notify dbi-users about exactly why you had to build it this way.
Found header files in /usr/include/oracle/11.1/client64.
Checking for functioning wait.ph
System: perl5.010000 linux excelsior 2.6.26-1-vserver-amd64 #1 smp sat nov 8 20:24:14 utc 2008 x86_64 gnulinux
Compiler: cc -O2 -g -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/bin/ld
Sysliblist:
Oracle makefiles would have used these definitions but we override them:
CC: /usr/bin/g++
LDFLAGS: -g
[-g]
Linking with -L../../ -locci -lclntsh -lpthread [from $(CCLIB)]
Checking if your kit is complete...
Warning: the following files are missing in your kit:
META.yml
Please inform the author.
Warning: -L../../ changed to -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../../
LD_RUN_PATH=/usr/lib/oracle/11.1/client64/lib
Using DBD::Oracle 1.22.
Using DBD::Oracle 1.22.
Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)
Everything works fine right now ;-) but now:
machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# make
Skip blib/lib/DBD/Oracle.pm (unchanged)
Skip blib/lib/oraperl.ph (unchanged)
Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
Skip blib/lib/Oraperl.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" Oracle.c
Oracle.xsi: In function 'XS_DBD__Oracle__db_disconnect':
Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
Oracle.xsi: In function 'XS_DBD__Oracle__db_DESTROY':
Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
Oracle.xsi: In function 'XS_DBD__Oracle__st_finish':
Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
Oracle.xsi: In function 'XS_DBD__Oracle__st_DESTROY':
Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" dbdimp.c
dbdimp.c: In function 'ora_db_login6':
dbdimp.c:528: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
dbdimp.c:535: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
dbdimp.c:738: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
dbdimp.c:738: warning: format '%d' expects type 'int', but argument 9 has type 'long unsigned int'
dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
dbdimp.c: In function 'ora_st_cancel':
dbdimp.c:842: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
dbdimp.c: In function 'ora_db_disconnect':
dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
dbdimp.c: In function 'ora_db_STORE_attrib':
dbdimp.c:976: warning: value computed is not used
dbdimp.c: In function 'createxmlfromstring':
dbdimp.c:1058: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
dbdimp.c:1066: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
dbdimp.c:1077: warning: passing argument 4 of 'OCILobWriteAppend' from incompatible pointer type
dbdimp.c: In function 'dbd_preparse':
dbdimp.c:1243: warning: value computed is not used
dbdimp.c: In function 'dbd_rebind_ph_varchar2_table':
dbdimp.c:1546: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
dbdimp.c:1554: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
dbdimp.c: In function 'dbd_rebind_ph_number_table':
dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
dbdimp.c: In function 'dbd_rebind_ph_char':
dbdimp.c:2197: warning: format '%d' expects type 'int', but argument 5 has type 'IV'
dbdimp.c: In function 'pp_exec_rset':
dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
dbdimp.c: In function 'ora_bind_ph':
dbdimp.c:2743: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
dbdimp.c:2752: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
dbdimp.c:2786: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
dbdimp.c:2799: warning: unknown conversion type character '_' in format
dbdimp.c: In function 'ora_st_execute':
dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
dbdimp.c: In function 'ora_st_execute_array':
dbdimp.c:3328: warning: unused variable 'sv2'
dbdimp.c: In function 'ora_st_finish':
dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
dbdimp.c:3491: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
dbdimp.c: In function 'ora_st_destroy':
dbdimp.c:3587: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
dbdimp.c: In function 'ora_st_STORE_attrib':
dbdimp.c:3672: warning: value computed is not used
dbdimp.c: In function 'ora_st_FETCH_attrib':
dbdimp.c:3720: warning: value computed is not used
cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" oci8.c
oci8.c: In function 'fetch_cleanup_rset':
oci8.c:974: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
oci8.c:974: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
oci8.c: In function 'fetch_func_rset':
oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
oci8.c: In function 'dbd_rebind_ph_lob':
oci8.c:1095: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
oci8.c: In function 'get_attr_val':
oci8.c:1655: warning: unknown conversion type character 'O' in format
oci8.c:1655: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
oci8.c:1655: warning: too many arguments for format
oci8.c:1672: warning: unknown conversion type character 'O' in format
oci8.c:1672: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
oci8.c:1672: warning: too many arguments for format
oci8.c: In function 'get_object':
oci8.c:1911: warning: format '%d' expects type 'int', but argument 6 has type 'struct OCIIter **'
oci8.c: In function 'fetch_get_piece':
oci8.c:2024: warning: format '%d' expects type 'int', but argument 6 has type 'ub1 *'
oci8.c:2047: warning: format '%d' expects type 'int', but argument 7 has type 'ub4 *'
oci8.c:2056: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
oci8.c: In function 'ora_describe':
oci8.c:2823: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
oci8.c:2963: warning: format '%d' expects type 'int', but argument 6 has type 'void *'
oci8.c: In function 'ora_st_fetch':
oci8.c:3048: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
oci8.c:3063: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
oci8.c:3074: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
oci8.c: In function 'init_lob_refetch':
oci8.c:3474: warning: value computed is not used
oci8.c:3549: warning: value computed is not used
oci8.c:3556: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
oci8.c:3596: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/usr/lib/oracle/11.1/client64/lib" cc -shared -O2 -g -L/usr/local/lib Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/usr/lib/oracle/11.1/client64/lib -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../.. -locci -lclntsh -lpthread \
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
Extracted ora_explain from ora_explain.PL with variable substitutions.
cp ora_explain blib/script/ora_explain
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ora_explain
Manifying blib/man1/ora_explain.1p
Manifying blib/man3/DBD::Oracle.3pm
Manifying blib/man3/DBD::Oraperl.3pm
Some clues or just forget it!
Thanx, AlejandroI'm also a PostgreSQL man, so it should be easy to communicate.
I can reproduce your problem with DBD::Oracle, and I guess that your problem is that the database is on a different machine, while "make test" assumes that it is on the same machine (like when you unset PGHOST in PostgreSQL).
The error message means that for a local database Oracle expects a local "database name" in the environment variable ORACLE_SID, but the environment variable is unset (roughly equivalent to PGDATABASE).
When you encounter connection problems with DBI, it's always a good idea to try to connect in the same way with the command line utility "sqlplus".
In your case, I would say that the equivalent connection attempt with sqlplus would be:
sqlplus scott/tiger
which will probably give you the same error message, right?
With your tnsnames.ora, I would recommend that you set the environment variable TWO_TASK to "caw".
Then Oracle will look for the entry "caw" in tnsnames.ora (this is roughly comparable to setting PGSERVICE in PostgreSQL, where PGSYSCONFDIR corresponds to Oracle TNS_ADMIN).
If your test login is not "scott/tiger", set ORACLE_USERID as described in README.login.txt.
Yours,
Laurenz Albe -
Hi,
I have perl scripts to import csv data to an existing 9.2 oracle database 32bit. It is using DBI to connect. I am moving the database in question to 10gR2 windows X64. I want the scripts to follow and run on the new server.
I know there is an install of perl in the oracle home. Is it intended to be used by oracle internally only?
So my question is: should I install perl separately or could I use the one shipped with oracle?
Best wishes!Of course.
You are right if more modules are required, then adding them to the oracle perl would have potentially bad effects.
The only thing I need really is to read files, call sqlloader, connect to the DB and run some stored procedures... I will be ok then. I already tested connectivity and it all looks fine.
Thank you very much for the input! -
Query regarding perl in Oracle Home
Hi All,
One of my customers has asked the following question
There is Perl 5.6.1 present in OracleHome but I can't use it like Perl is meant to be, because there is no makemaker ... so I can't use modules provided by CPAN. I want to know if it is possible to use this Perl? What is the Oracle-Recommended-Way to use CPAN-Modules? That is I want to know how can I compile any perl module from CPAN with the perl present in Oracle Home
Thanks and Regards,
GeetaNot sure exactly what you mean,
in unix box,
type
which perlwill show you which perl program system will choose to run without absolute path
of course if there's any perl under current path setting
If you want to run perl version under ORACLE_HOME as default, put this line first in your path
$ORACLE_HOME/Apache/perl/bin
in C shell it's like this
set path = ($ORACLE_HOME/bin /usr/sbin $path) -
i am using unix env and i need per ver 3 inorder to upgrade oracle from 9.2.0.4 to 9.2.0.7. some how it's reading per ver 2 from my unix env. question is there also anywhere else in oracle home that i need to look in other word how i can tell that oracle looking the perl in the oracle home or out side the home.
ThanksNot sure exactly what you mean,
in unix box,
type
which perlwill show you which perl program system will choose to run without absolute path
of course if there's any perl under current path setting
If you want to run perl version under ORACLE_HOME as default, put this line first in your path
$ORACLE_HOME/Apache/perl/bin
in C shell it's like this
set path = ($ORACLE_HOME/bin /usr/sbin $path) -
Instant Client 11.1.0.1, Perl DBD::Oracle, and Kerberos
Hi all,
I'm trying to get an Instant Client working so I can connect to remote server and sync the data up with our own. It works, but there is a problem. Basically, if I connect via the Perl DBI and DBD::Oracle, Kerberos authentication bits get screwed up for the rest of the process. If I connect to the remote server, and then a local non-Oracle service via Kerberos, the latter fails. Note that, if done separately, they work fine.
Looking into it, it appears that it wants to open the file /krb5/krb.conf, which doesn't exist for me (/etc/krb5.conf is the Kerberos config file). I found something online (http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96573/asoappb.htm) that suggests that I should change some KERBEROS* parameters in $ORACLE_HOME/network/admin/sqlnet.ora. Either I'd like to have it try to open the right Kerberos config, or just ignore Kerberos altogether. Unfortunately, I have an old sqlnet.ora, that appears to have been generated by some external interface, and I'd like to maybe do this again, the "right way".
[koczan@ator] ~ $ cat /s/oracle-csl/network/admin/sqlnet.ora
# SQLNET.ORA Network Configuration File: /local.gazoo/oracle/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = cs.wisc.edu
NAMES.DIRECTORY_PATH= (TNSNAMES)
The other thing I'm wondering is why it's even looking at Kerberos. Doing ldd on the sqlplus binary, the libraries, and the DBD::Oracle shared library showed no reference to Kerberos.
[koczan@ator] ~ $ ldd /s/oracle-csl/perl5/lib/site_perl/5.8.6/i686-linux-64int/auto/DBD/Oracle/Oracle.so
linux-gate.so.1 => (0x0043d000)
libclntsh.so.11.1 => /s/oracle-csl-0/lib/libclntsh.so.11.1 (0x00783000)
libocci.so.11.1 => /s/oracle-csl-0/lib/libocci.so.11.1 (0x00110000)
libociei.so => /s/oracle-csl-0/lib/libociei.so (0x02cf2000)
libc.so.6 => /lib/libc.so.6 (0x00272000)
libnnz11.so => /s/oracle-csl-0/lib/libnnz11.so (0x004ea000)
libdl.so.2 => /lib/libdl.so.2 (0x003b2000)
libm.so.6 => /lib/libm.so.6 (0x003b6000)
libpthread.so.0 => /lib/libpthread.so.0 (0x003dd000)
libnsl.so.1 => /lib/libnsl.so.1 (0x003f4000)
libaio.so.1 => /usr/lib/libaio.so.1 (0x0040b000)
libstdc++.so.6 => /s/gcc-3.4.4/i386_cent40/lib/libstdc++.so.6 (0x0215a000)
libgcc_s.so.1 => /s/gcc-3.4.4/i386_cent40/lib/libgcc_s.so.1 (0x0040d000)
/lib/ld-linux.so.2 (0x004cf000)
So, is there something I'm missing? What would be a good way to make everything happy? I tried looking online for this, and asking the DBD::Oracle people, and I couldn't find anything.
I'm running Instant Client 11.1.0.1 on Red Hat Enterprise Linux 5.1, Perl 5.8.8, DBI 1.602, DBD::Oracle 1.19, Kerberos 1.6.2.
Thanks. I know this was a lot of info and questions for this, but any help would be appreciated.There's no SQLNET.AUTHENTICATION_SERVICES set in my sqlnet.ora. I assume it's using some sort of default or trying everything, is there a way to tell what it's doing even though nothing is set?
All I need to do is connect via password-based authentication to a remote server. What should SQLNET.AUTHENTICATION_SERVICES be set to for that?
I couldn't find any clear resource documenting SQLNET.AUTHENTICATION_SERVICES, if you could point me to one that would be excellent.
Thanks.
P.S. Here's the entirety of my sqlnet.ora file.
# SQLNET.ORA Network Configuration File
# Generated by Oracle configuration tools.
# Originally on gazoo - /local.gazoo/oracle/network/admin/sqlnet.ora
# Modified for use with Oracle InstantClient
NAMES.DEFAULT_DOMAIN = cs.wisc.edu
NAMES.DIRECTORY_PATH= (TNSNAMES)
SQLNET.KERBEROS5_CONF=/etc/krb5.conf -
Perl and Oracle Client Install
Hi,
When installing the Oracle Client on user machines, does it not install Perl as well? Something like $ORACLE_HOME/perl/.....
I am installing the client and I am not seeing this. Or this only for the non-client versions?
By the way I am installing Oracle 10gR1 (10.2.0.1)Ya I did the client install as well and noticed that I had it as well, but for the client install on 10gR1 it is not. This is weird. Basically I am trying to apply a patch using OPatch and it keeps saying that Perl is needed. When I downloaded the Perl manually, it still said that it could not reconize Perl. Any thoughts?
-
Oracles perl samples? where are they?
otn has a bunch of html pages w/ instructions for running perl->dbi->oracle samples (hotel res. , guest book, hello, ect).
these pages have links to get mod_perl, dbi, dbd , but nowhere can
I find the perl sample code itself. help please, oracle. MikedHi,
You can find the perl samples developed by otn at http://otn.oracle.com/sample_code/products/ias/content.html
Thanks,
Sujatha
OTN Team -
Error while install EBS 11.5.10 on RHEL5 oracle unbreakable linux
hello
i got this error while install EBS and here is the log file
0/appsutil/out/VIS_oracle/templbac/adrundb1.sh
setting permissions: 755
setting ownership: applmgr:oinstall
Step 0 of 5
Command: /u01/oracle/visdb/9.2.0/temp/VIS_oracle/adrun9i.sh
Step 1 of 5: Doing UNIX preprocessing
Processing Step 1 of 5
Executing: /u01/oracle/visdb/9.2.0/temp/VIS_oracle/adrun9i.sh APPS APPS
STARTED INSTALL PHASE : 9i RDBMS : Wed Mar 18 11:26:45 EET 2009
runProcess_5
Statusstring Executing Command: InstantiateFile -d addbtmpl.drv
Cannot execute configure of environment for database ORACLE_HOME
RW-50010: Error: - script has returned an error: 1
RW-50004: Error code received when running external process. Check log file for details.
Running Database Install Driver for VIS instance
plz helphere is the file after modification
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/Apache/perl/bin/perl -I /u01/oracle/visdb/9.2.0/Apache/perl/lib/5.00503:/u01/oracle/visdb/9.2.0/Apache/perl/lib/site_perl/5.005:/u01/oracle/visdb/9.2.0/appsutil/perl /u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_oracle/adchknls.pl
script returned:
Validating information needed for NLS........
DATABASE version : db920
No NLS specific checks required
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle/afmkinit.sh
script returned:
afmkinit.sh started at Wed Mar 18 10:38:41 EET 2009
The environment settings are as follows ...
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/Stage11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/applmgr/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
afmkinit.sh exiting with status 127
.end std out.
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
.end err out.
Skipping INSTE8_PRF
Skipping INSTE8_APPLY
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle
afmkinit.sh INSTE8_SETUP 127
AutoConfig is exiting with status 1
0/appsutil/out/VIS_oracle/03181056/adcctclean.sql
setting permissions: 600
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/Apache/perl/bin/perl -I /u01/oracle/visdb/9.2.0/Apache/perl/lib/5.00503:/u01/oracle/visdb/9.2.0/Apache/perl/lib/site_perl/5.005:/u01/oracle/visdb/9.2.0/appsutil/perl /u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_oracle/adchknls.pl
script returned:
Validating information needed for NLS........
DATABASE version : db920
No NLS specific checks required
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle/afmkinit.sh
script returned:
afmkinit.sh started at Wed Mar 18 10:56:15 EET 2009
The environment settings are as follows ...
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/Stage11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/applmgr/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
afmkinit.sh exiting with status 127
.end std out.
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
.end err out.
Skipping INSTE8_PRF
Skipping INSTE8_APPLY
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle
afmkinit.sh INSTE8_SETUP 127
AutoConfig is exiting with status 1
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/Apache/perl/bin/perl -I /u01/oracle/visdb/9.2.0/Apache/perl/lib/5.00503:/u01/oracle/visdb/9.2.0/Apache/perl/lib/site_perl/5.005:/u01/oracle/visdb/9.2.0/appsutil/perl /u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_oracle/adchknls.pl
script returned:
Validating information needed for NLS........
DATABASE version : db920
No NLS specific checks required
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle/afmkinit.sh
script returned:
afmkinit.sh started at Wed Mar 18 10:56:39 EET 2009
The environment settings are as follows ...
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/Stage11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/applmgr/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
afmkinit.sh exiting with status 127
.end std out.
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
.end err out.
Skipping INSTE8_PRF
Skipping INSTE8_APPLY
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle
afmkinit.sh INSTE8_SETUP 127
AutoConfig is exiting with status 1
instantiate file:
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/Apache/perl/bin/perl -I /u01/oracle/visdb/9.2.0/Apache/perl/lib/5.00503:/u01/oracle/visdb/9.2.0/Apache/perl/lib/site_perl/5.005:/u01/oracle/visdb/9.2.0/appsutil/perl /u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_oracle/adchknls.pl
script returned:
Validating information needed for NLS........
DATABASE version : db920
No NLS specific checks required
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle/afmkinit.sh
script returned:
afmkinit.sh started at Wed Mar 18 11:26:53 EET 2009
The environment settings are as follows ...
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/Stage11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/applmgr/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
afmkinit.sh exiting with status 127
.end std out.
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
.end err out.
Skipping INSTE8_PRF
Skipping INSTE8_APPLY
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle
afmkinit.sh INSTE8_SETUP 127
AutoConfig is exiting with status 1
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/Apache/perl/bin/perl -I /u01/oracle/visdb/9.2.0/Apache/perl/lib/5.00503:/u01/oracle/visdb/9.2.0/Apache/perl/lib/site_perl/5.005:/u01/oracle/visdb/9.2.0/appsutil/perl /u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_oracle/adchknls.pl
script returned:
Validating information needed for NLS........
DATABASE version : db920
No NLS specific checks required
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
Executing script in InstantiateFile:
/u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle/afmkinit.sh
script returned:
afmkinit.sh started at Wed Mar 18 12:25:33 EET 2009
The environment settings are as follows ...
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/Stage11i/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/applmgr/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
afmkinit.sh exiting with status 127
.end std out.
cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
.end err out.
Skipping INSTE8_PRF
Skipping INSTE8_APPLY
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/oracle/visdb/9.2.0/appsutil/install/VIS_oracle
afmkinit.sh INSTE8_SETUP 127
AutoConfig is exiting with status 1 -
Problem in applying the 6078836 OS Library Patch for Oracle HTTP Server
Hi ,
While installing Oracle ebusiness suite R12on a RHEL5 linux box (2.6.32-300.10.1.el5uek)
After running the installation, the post-installation System checks revealed that the HTTP, Virtual Directory, Login Page, Help Page & JSP services were failing. All the errors have the same error code RW-50015. ! Require Installing an OS Library patch for HTTP server according to Note ID
Oracle Applications Installation and Upgrade Notes Release 12 (12.0.4) for Linux (32-bit) [ID 402310.1]
I am unable to stop the Database after stopping the Apps tier services. while trying to login into sqlplus hitting up this Error ! Please Advise
sqlplus: error while loading shared libraries: /oracle/VIS/db/tech_st/11.1.0/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied
[Oracle@OracleLinuxServer 11.1.0]$ cd
sqlplus / as sysdba
sqlplus: error while loading shared libraries: /oracle/VIS/db/tech_st/11.1.0/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied
Following is the Output of some commands which may help in understanding the Issue !
*[Oracle@OracleLinuxServer ~]$ cd /oracle/VIS/db/tech_st/11.1.0*
*[Oracle@OracleLinuxServer 11.1.0]$ find / -name libclntsh\* -ls 2>/dev/null*
*142017047 13416 -rwxr-xr-x 1 applmgr oinstall 13712482 Dec 19 01:27 /oracle/VIS/apps/tech_st/10.1.3/lib/libclntsh.so.10.1*
*142016603 0 lrwxrwxrwx 1 applmgr oinstall 17 Dec 19 01:27 /oracle/VIS/apps/tech_st/10.1.3/lib/libclntsh.so -> libclntsh.so.10.1*
*142443526 13400 -rwxr-xr-x 1 applmgr oinstall 13696149 Dec 19 01:28 /oracle/VIS/apps/tech_st/10.1.2/lib/libclntsh.so.10.1*
*142443190 0 lrwxrwxrwx 1 applmgr oinstall 17 Dec 19 01:28 /oracle/VIS/apps/tech_st/10.1.2/lib/libclntsh.so -> libclntsh.so.10.1*
*89850399 36348 -rwxrwx--- 1 Oracle oinstall 37174788 Sep 12 2008 /oracle/VIS/db/tech_st/11.1.0/inventory/prereqs/bin/linux/libclntsh.so.11.1*
*89719502 0 lrwxrwxrwx 1 Oracle oinstall 17 Dec 18 23:33 /oracle/VIS/db/tech_st/11.1.0/lib/libclntsh.so -> libclntsh.so.11.1*
*89719501 36276 -rwxr-xr-x 1 Oracle oinstall 37100033 Dec 18 23:33 /oracle/VIS/db/tech_st/11.1.0/lib/libclntsh.so.11.1*
id
uid=2000(Oracle) gid=2000(oinstall) groups=2000(oinstall) context=root:system_r:unconfined_t:SystemLow-SystemHigh
*[Oracle@OracleLinuxServer 11.1.0]$ env|egrep 'ORA|PATH' | sort*
LD_LIBRARY_PATH=/oracle/VIS/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/oracle/VIS/db/tech_st/11.1.0/lib:/usr/dt/lib:/oracle/VIS/db/tech_st/11.1.0/ctx/lib
LIBPATH=/oracle/VIS/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/oracle/VIS/db/tech_st/11.1.0/lib:/usr/dt/lib:/oracle/VIS/db/tech_st/11.1.0/ctx/lib
ORACLE_HOME=/oracle/VIS/db/tech_st/11.1.0
ORACLE_SID=VIS
ORA_NLS10=/oracle/VIS/db/tech_st/11.1.0/nls/data/9idata
ORA_TZFILE=/oracle/VIS/db/tech_st/11.1.0/oracore/zoneinfo/timezlrg.dat
PATH=/oracle/VIS/db/tech_st/11.1.0/perl/bin:/oracle/VIS/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/oracle/VIS/db/tech_st/11.1.0/appsutil/jre/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/Oracle/bin:.
SHLIB_PATH=/oracle/VIS/db/tech_st/11.1.0/lib:/usr/lib:/oracle/VIS/db/tech_st/11.1.0/ctx/libAlso I 've checked the /oracle/VIS/db/tech_st/11.1.0/cfgtoollogs/opatch/ opatch_history.txt
Find that the Patch version is same for every Patch: Please suggest..... Thanks!
Following is the all contents of the file:
*[Oracle@OracleLinuxServer opatch]$ vi opatch_history.txt*
Command : apply -verbose -silent /nfs/bld/d26/PRDXBLD9/apps/apps_st/comn/autobuild/patch/patch/7639602/7639602
Log File : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2009-03-25_23-17-01PM.log
Date & Time : Wed Mar 25 23:18:41 PDT 2009
Oracle Home : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /nfs/bld/d22/AB/autobuild/passwd
Command : apply -verbose -silent /nfs/bld/d26/PRDXBLD9/apps/apps_st/comn/autobuild/patch/patch/7627743/7627743
Log File : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2009-03-25_23-18-41PM.log
Date & Time : Thu Mar 26 01:23:19 PDT 2009
Oracle Home : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0
Command : lsinventory
Log File : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2009-03-26_01-23-19AM.log
Date & Time : Tue Mar 31 03:13:12 PDT 2009
Oracle Home : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /nfs/bld/d22/AB/autobuild/passwd
Command : lsinventory -invPtrLoc /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/oraInst.loc
Log File : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2009-03-31_03-13-12AM.log
Date & Time : Tue Mar 31 03:13:18 PDT 2009
Oracle Home : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /nfs/bld/d22/AB/autobuild/passwd
Command : lsinventory -invPtrLoc /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/oraInst.loc
Log File : /nfs/bld/d26/PRDXBLD9/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2009-03-31_03-13-18AM.log
Date & Time : Wed Dec 19 19:59:52 GMT+05:30 2012
Oracle Home : /oracle/VIS/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /oracle/VIS/db/tech_st/11.1.0/OPatch
Command : lsinventory
Log File : /oracle/VIS/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2012-12-19_19-59-52PM.log
Date & Time : Thu Dec 20 00:03:59 GMT+05:30 2012
Oracle Home : /oracle/VIS/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /home/Oracle/6078836
Command : apply
Log File : /oracle/VIS/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2012-12-20_00-03-59AM.log
Date & Time : Thu Dec 20 01:28:42 GMT+05:30 2012
Oracle Home : /oracle/VIS/db/tech_st/11.1.0
OPatch Ver. : 11.1.0.6.2
Current Dir : /home/Oracle
Command : lsinventory -detail
Log File : /oracle/VIS/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2012-12-20_01-28-42AM.log -
Hi all,
I'm new with Oracle community so I hope you guys can help me and give me some suggestion with my case.
I got an error when upgrade Oracle client 9.2.0.5.0 to 9.2.0.5.3
I tried many times but can’t do upgrade successfully
This the error message I got when doing the job:
[ http://picasaweb.google.com/hoagao84/Oracle#5443442931867670386]
Appreciate your help.
Log files:
Command arguments are: apply
OPatch version is: 1.0.0.0.48
Using ORACLE_HOME/oui to look up oui libs...
Oracle Home = d:\oracle\ora92
Location of Oracle Inventory = D:\oracle\ora92\inventory
Oracle Universal Installer shared library = D:\oracle\ora92\oui\lib\win32\oraInstaller.dll
Path to Java = "D:\oracle\ora92\jdk\jre\bin\java.exe"
Location of Oracle Inventory Pointer = N/A
Location of Oracle Universal Installer components = D:\oracle\ora92\oui
Required Jar File under Oracle Universal Installer = jlib\OraInstaller.jar
Checking if this is a RAC system...
Accessing inventory... This may take up to 300 seconds.
(retry 10 times, delay 30 seconds each time)
System Command: ""D:\oracle\ora92\jdk\jre\bin\java.exe" -Dopatch.retry=10 -Dopatch.delay=30 -classpath "D:\oracle\ora92\oui\jlib\OraInstaller.jar;D:\oracle\ora92\oui\jlib\srvm.jar;D:\oracle\ora92\opatch\jlib\opatch.jar;D:\oracle\ora92\oui\jlib\xmlparserv2.jar;D:\oracle\ora92\oui\jlib\share.jar;.:D:\oracle\ora92\jlib\srvm.jar" opatch/O2O "d:\oracle\ora92" "D:\oracle\ora92\oui" opatch.pl 1.0.0.0.48"
Result:
output to OPatch:
IS_CLUSTER=0
CHECK_CLUSTER=1
NODE_LIST=NULL
NODE_COUNT=0
LOCAL_NODE=NULL
IS_CFS=0
RAC_CODE=0
HOME_INDEX=1
This is not a RAC system
Interim Patch ID: 3738339
Checking the patch inventory.
Component Name: oracle.rdbms
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.rdbms_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.oracore_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.xdk_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.dbjava_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.java.javavm.javatools
Component Version: 9.2.0.5.0
Component Name: oracle.cartridges.context
Component Version: 9.2.0.5.0
Component Name: oracle.cartridges.locator
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.net_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.ldap_rsf
Component Version: 9.2.0.5.0
Component Name: oracle.emprod.oemagent.base_oemagent
Component Version: 9.2.0.5.0
Component Name: oracle.isearch.is_common
Component Version: 9.2.0.5.0
Component Name: oracle.options.olap.cwmlite
Component Version: 9.2.0.5.0
Component Name: oracle.rsf.nlsrtl_rsf
Component Version: 9.2.0.5.0
Bugs fixed by this patch 3738339:
3741539 : LOGICAL STANDBY FAILS ORA-1422 MERGING PARTITIONS WITH LOB COLUMN
2800494 : KCBZIB XHINT FORCES SINGLE BLOCK READS INADVERTENTLY FOR SINGLE INSTANCE
3239873 : EXTREMELY HIGH PARSING TIMES WITH AND BETWEEN IN ORACLE 9.2.0
2918138 : ORA-600 (KOHDTF048) WHEN USING PIPELINED PL/SQL TABLE FUNCTIONS
3575743 : 2004-S144E
3554319 : APPSST; ORA-00600 [KQLUDP2] RUN DURING APPS UPGRADE
3666502 : ORA-00600 [1236] RANDOMLY OCCURING
3752406 : MERGE LABEL REQUEST ON TOP OF 9.2.0.5 FOR BUGS LISTED BELOW
3528282 : 2004S075E
3412818 : REPEATED MESSAGES IN LGWR TRACE
2690205 : 2003-S190E
3543125 : 2004-S089E
3571233 : 2004-S141E
3458446 : 2004S059E
2810394 : LNXN2PD RETURNS SCALE OF 42 WHEN COVERTING ORACLE NUMBER 0. TO PACKED
3323435 : 2003-S126E
3356103 : ORA-600 [OPIBND0; OACCSID] IN PARALLEL QUERY SERVER P001 EXECUTING OLAP QUERY
3668224 : CBO CALCULATE LOWER CMPTD CDN AND LEADS TO BAD EXECUTION PLAN.
3492040 : ORA-600 [KGHFRF1] SELECTING FROM V$LOGMNR_CONTENTS
3150750 : SM; (DBMS_STATS/AUTO_SAMPLE_SIZE) ESTIMATED NDV IS WRONG WITH HIGH SKEWS
3566469 : 2004-S138E
3320622 : 2003-S191E
3749394 : SCORE() FOR FUZZY TEXT OPERATOR DIFFERENT FOR FUNCTIONAL VERSUS INDEX ACCESS
3609791 : PSR 9.2.0.5.0 BREAKS CALL DB2 STORED PROCEDURE WITH DECIMAL PARM. SQLCODE -310
3698501 : CGS/IMR GENERATES SAME SEQ/INCARNATION NUMBER AFTER RECONFIG
3668572 : ORA-979 WHEN CURSOR_SHARING=FORCE OR SIMILAR
3179637 : UNABLE TO CREATE AN ORACLECONTEXT ON AD UNDER A CHILD DOMAIN
3571226 : 2004-S140E
3240280 : JOBS SUDDENLY STOP ALTHOUGH NEXT_DATE <= SYSDATE
2964252 : LPX-00252 WHEN PARSING VALID XML / DTD FILE
3617519 : TRANSFORMATION FAILING WITH ORA-932 INCONSISTENT DATATYPE
3172282 : ORACLE CORE DUMPS WHEN TRY TO LIST ALL ACES FOR A SPECIFIC ACL
3637624 : WRONG RESULTS WITH DISTINCT COUNT AND UNNESTED EXISTS SUBQUERY
3542588 : SAME EVENT 38041 USED FOR BUG FIXES 3444115 AND 3131551
3358490 : ORA-00600 [KQSCCCK;1],[],[],[],[],[],[],[]
3177513 : WRONG PLAN - JOIN NOT AVOIDED USING BITMAP JOIN INDEX IF UNIQUE INDEX TOO
3509265 : SHUTDOWN DID NOT COMPLETE WITH WAITING FOR INSTANCES TO LEAVE; 2
3516951 : BAD EXECUTION PLAN WITH MERGE JOIN CARTESIAN IN TEMP TABLE
2954891 : ORA-600 KJMXMPM;DIFFUS], [990307644], [990307644], [3304659678]
3388633 : LOGICAL STANDBY APPLY STOPPED WITH ORA-00600; [17090]
3371796 : EXPLAIN PLAN HANGS ON KKORMINL
3622875 : ORA-1499 AND ANALYZE TABLE VALIDATE STRUCTURE CASCADE ONLINE
3412136 : BAD EXECUTION WITH MERGE JOIN CARTESIAN IN ORACLE 9.2.0.4 AND MERGEFIX 3363655
3540576 : 2004-S083E
3575747 : 2004-S145E
3566813 : CTAS WITH UNION ALL AND ORDER BY RESULTS IN ORA-3113
3811906 : MERGE LABEL REQUEST ON TOP OF 9.2.0.5
2824035 : FXD; ORA-22921 CAUSING 4 DIFS IN LRGXG2.
3354470 : 2003-S195E
3518909 : UGA MEMORY NOT RELEASED AFTER USING XMLPARSER
3617042 : BAD PLAN FOR SCH-XMLTYPE BASED WITH COLLECTIONS MAPPED TO OCT
3583686 : MEMORY ALLOCATION ERROR DURING SPATIAL QUERY
3597640 : MERGE LABEL REQUEST ON TOP OF 9.2.0.5.0
3559212 : WRONG RESULTS RETURNED WITH 9.2.0.4 AND CBO
3625370 : CGS/IMR RECONFIGURATION GOT HUNG DURING A NEW MEMBER JOINING
3475932 : CROSS INSTANCE ARCHIVE LOG NOT GENERATED REMOTELY
3635177 : PSRC; ORA-7445 [KXCCUIN] POSSIBLE FROM DML
3430832 : ORA-600 [25012] AFTER CREATE OF INDEX ONLINE PARALLEL ON PART TABLE
2338704 : FXD; 1; QUERIES ON COLLECTIONS STORED IN OUT-OF-LINE TABLES ARE NOT VIEW MERGED
3253770 : 9I-GSI-CRITICAL PROGRAMS TIME OUT WAITING FOR LIBRARY CACHE PIN
Reading patch XML files and doing sanity checks.
Read the command to action file map.
Performing initial safety check.
Checking active processes:
Accessing inventory... This may take up to 300 seconds.
(retry 10 times, delay 30 seconds each time)
System Command: ""D:\oracle\ora92\jdk\jre\bin\java.exe" -Dopatch.retry=10 -Dopatch.delay=30 -classpath "D:\oracle\ora92\oui\jlib\OraInstaller.jar;D:\oracle\ora92\oui\jlib\srvm.jar;D:\oracle\ora92\opatch\jlib\opatch.jar;D:\oracle\ora92\oui\jlib\xmlparserv2.jar;D:\oracle\ora92\oui\jlib\share.jar;." opatch/CheckConflict "D:\oracle\ora92\oui" "d:\oracle\ora92" opatch.pl 1.0.0.0.48 3738339 "3253770 2338704 3430832 3635177 3475932 3625370 3559212 3597640 3583686 3617042 3518909 3354470 2824035 3811906 3566813 3575747 3540576 3412136 3622875 3371796 3388633 2954891 3516951 3509265 3177513 3358490 3542588 3637624 3172282 3617519 2964252 3240280 3571226 3179637 3668572 3698501 3609791 3749394 3320622 3566469 3150750 3492040 3668224 3356103 3323435 2810394 3458446 3571233 3543125 2690205 3412818 3528282 3752406 3666502 3554319 3575743 2918138 3239873 2800494 3741539 " C:\TEMP\patch92053\3738339\etc\config\actions"
Result:
d:\oracle\ora92\opatch\opatch.pl version: 1.0.0.0.48
Copyright (c) 2001,2002,2003 Oracle Corporation. All Rights Reserved.
Error in executing Java program to check conflict
ERROR: OPatch failed during pre-reqs check.This is all the message when I run command in CMD prompt.
C:\temp\patch92053\3738339\perl d:\oracle\ora92\opatch\opatch.pl apply
Opatch Version 1.0.0.0.48
Perl Version 5.008007
Oracle Home = d:\oracle\ora92
Location of Oracle Inventory = D:\oracle\ora92\inventory
Oracle Universal Installer shared library = D:\Oracle\ora92\oui\lib\win32\oraInstaller.dll
Path to Java = "D:\oracle\ora92\jdk\jre\bin\java.exe"
Location of oracle Inventory Pointer = N/A
Location of Oracle Universal Installer components = D:\Oracle\ora92\oui
Require Jar File under Oracle Universal Installer = jlib\OraInstaller.jar
The filename, directory name, or volume label syntax is incorrect.
D:\oracle\ora92\opatch\opatch.pl version 1.0.0.48
Copyright (c) 2001,2002,2003 Oracle Corporation. All Rights Reserved
Error in executing Java program to check conflict
Error: Opatch failed during pre-reqs check. -
I am cloning r12 10.2.0.4 database and running perl adcfgclone.pl dbTier
bash-3.00$ perl adcfgclone.pl dbTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications Rapid Clone
Version 12.0.0
adcfgclone Version 120.20.12000000.12
Enter the APPS password :
Running:
/u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/java:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_631.lst -stage /u01/oracle/db/tech_st/10.2.0/appsutil/clone 2> /tmp/adcfgclone_631.err; echo $? > /tmp/adcfgclone_631.res
Log file located at /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_0407143111.log
Provide the values required for creation of the new Database Context file.
Target System Hostname (virtual or normal) [ksctest] : ksctest
Target Instance is RAC (y/n) [n] : n
Target System Database SID : atest
Target System Base Directory : /u01/oracle
Oracle OS User [oracle] : oracle
Target System utl_file_dir Directory List : /usr/tmp
Number of DATA_TOP's on the Target System [2] : 1
Target System DATA_TOP Directory 1 : /u01/oracle/db/apps_st/data
Target System RDBMS ORACLE_HOME Directory [u01/oracle/db/tech_st/10.2.0] : /u01/oracle/db/tech_st/10.2.0
Do you want to preserve the Display [null] (y/n) ? : n
Target System Display [ksctest:0.0] : ksctest:1.0
Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n
Target System Port Pool [0-99] : 50
Checking the port pool 50
done: Port Pool 50 is free
Report file located at /u01/oracle/db/tech_st/10.2.0/appsutil/temp/portpool.lst
Complete port information available at /u01/oracle/db/tech_st/10.2.0/appsutil/temp/portpool.lst
Backing up /u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml to /u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml1.bak
Creating the new Database Context file from :
/u01/oracle/db/tech_st/10.2.0/appsutil/template/adxdbctx.tmp
The new database context file has been created :
/u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml
Log file located at /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_0407143111.log
Check Clone Context logfile /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_0407143111.log for details.
Running Rapid Clone with command:
perl /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/oracle/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml showProgress contextValidated=true
Running:
perl /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/oracle/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml showProgress contextValidated=true
APPS Password :
Beginning database tier Apply - Sun Apr 7 14:35:15 2013
/u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/oracle/db/tech_st/10.2.0/oui -classpath /u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/java:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/oui/share.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/oui/srvm.jar:/u01/oracle/db/tech_st/10.2.0/appsutil/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyDBTier -e /u01/oracle/db/tech_st/10.2.0/appsutil/atest_ksctest.xml -stage /u01/oracle/db/tech_st/10.2.0/appsutil/clone -rmanstage -rmantgtloc -srcdbname -showProgress
APPS Password : Log file located at /u01/oracle/db/tech_st/10.2.0/appsutil/log/atest_ksctest/ApplyDBTier_04071435.log
/ 4% completed RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
ERROR while running Apply...
Sun Apr 7 14:36:15 2013
ERROR: Failed to execute /u01/oracle/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl
Please check logfile.
=========================================================
Skipping Profile Phase
Skipping Apply Phase
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[INSTANTIATE PHASE]
AutoConfig could not successfully instantiate the following files:
Directory: /u01/oracle/db/tech_st/10.2.0/appsutil/install/atest_ksctest
adcrdb.sh INSTE8
AutoConfig is exiting with status 1
RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyDBTechStack
i am getting this error in logfileuser3714906 wrote:
please updatePlease see my previous reply -- Please search the log file for adcrdb.sh and you should find more details about the error
Thanks,
Hussein
Maybe you are looking for
-
Is there a better way to get rid of desktop icons?
My project has two things left: 1. get rid of desktop icons during the script 2. Ensure that windows don't open during the script. so for part one, I have the following: do shell script "defaults write com.apple.finder CreateDesktop -bool " & false t
-
I had to get a new hard drive, now illustrator says my license is expired and I have to get reactivated. When I used the phone support and entered in all the numbers, a recording comes up saying that my reactivation numbers are invalid. What can I
-
Use of chmod in sess_sh tool
Hi, While trying to use the chmod command in sess_sh tool, I could not see its effect. I had deployed my EJB using deployejb tool. The published Object in the Session Namespave under test Publishing Context is RentalEJBRemote (i.e /test/RentalEJBRemo
-
Dear All, Following is the case. Condition Type values are picked form condition record having access sequence based on sales organization. Now we want to pick the values based on Sales Organization and Material. So we added the required condition Ta
-
Method not found while running tests using MTM.
Test method SupportSoft.RequestAssist.TestScenarios.TestSecnario.ValidatingAttachingFileRequestByUser threw exception: System.MissingMethodException: Method not found: 'Void SupportSoft.CommonUtilities.GUIInteraction.ImplicitWaitForElement(OpenQA.Sel