Oracle client query !
Hi Everyone,
Whether we can find out the version of oracle client software used on the host.
/oracle/client/92x_32
client 9207 or client 9208 ..etc etc
Normally when we download client software from service market place, the version is specified their, but I want to know whether we can find out by checking some file or some command ?
It will be great if anyone has this info to share .
Thanks !
Kind Regards
Neenad
Hi Satish,
I'm sorry, but you are not correct.
The options you mention do not display the currently being used oracle client but the oracle client and mode the SAP dboraslib file was compiled with.
Only from 10g it is possible to find out from inside SAP in an easy way the current oracle client library being used by the SAP kernel.
Similar Messages
-
Query works in Oracle Client but not JDBC
The query is as follows:
SELECT COUNT(*) THE_COUNT FROM sentorders WHERE ordersentdate BETWEEN '15-JAN-01' and '15-JAN-03';When I run this query in the Oracle client (SQL+) it tells me that THE_COUNT is 4 which is correct but when I use the following JDBC code I get THE_COUNT is 0 which is incorrect.
public ResultSet viewTotalSentOrdersByDate()
throws SQLException, Exception {
String beginDate = "15-JAN-01";
String endDate = "15-JAN-03";
ResultSet rs = null;
try {
String queryString = ("SELECT COUNT(*) THE_COUNT FROM sentorders WHERE ordersentdate BETWEEN '" + beginDate + "' and '" + endDate + "'");
System.out.println(queryString);
Statement stmt = con.createStatement();
rs = stmt.executeQuery(queryString);
while(rs.next()) {
System.out.println(rs.getString("THE_COUNT"))
} catch (SQLException sqle) {
error = "SQLException: Could not execute the query.";
throw new SQLException(error);
} catch (Exception e) {
error = "An exception occured.";
throw new Exception(error);
return rs;
}Thanks for the help
ZacThe query is as follows:
SELECT COUNT(*) THE_COUNT FROM sentorders WHERE ordersentdate BETWEEN '15-JAN-01' and '15-JAN-03';When I run this query in the Oracle client (SQL+) it tells me that THE_COUNT is 4 which is correct but when I use the following JDBC code I get THE_COUNT is 0 which is incorrect.
public ResultSet viewTotalSentOrdersByDate()
throws SQLException, Exception {
String beginDate = "15-JAN-01";
String endDate = "15-JAN-03";
ResultSet rs = null;
try {
String queryString = ("SELECT COUNT(*) THE_COUNT FROM sentorders WHERE ordersentdate BETWEEN '" + beginDate + "' and '" + endDate + "'");
System.out.println(queryString);
Statement stmt = con.createStatement();
rs = stmt.executeQuery(queryString);
while(rs.next()) {
System.out.println(rs.getString("THE_COUNT"))
} catch (SQLException sqle) {
error = "SQLException: Could not execute the query.";
throw new SQLException(error);
} catch (Exception e) {
error = "An exception occured.";
throw new Exception(error);
return rs;
}Thanks for the help
Zac -
Is there a way to tell the Oracle client version (9i or 10g) that is being used by SQL Developer from within SQL Developer? Our Citirx admin installed 10g client on the server and I am trying to verify that the 10g client is indeed being used by the SQL Developer.
In Toad there is a "Support Bundle" menu option to list the environment information (including the SQL client version) used by Toad. Is there something similar within SQL Developer?I am trying to verify that the 10g client is indeed being used by the SQL DeveloperSQL Developer uses whatever client you're connected to.
You don't believe your admin really installed 10g? C'mon!
Is there something similar within SQL Developer?Reports - Data Dictionary Reports - About your Database - Version Banner
Have fun with 10g,
K. -
Error while executing SSIS Package after upgrading the Oracle Client
Hello,
I am running to the below error after we upgraded the Oracle client to 11g from 10g. The source of the Data is Oracle database . Looked online but each error is pointing towards different route, Confused here any help is very much appreciated. Have to say
I am not a pro with SSIS.
SSIS package "Bentek_ISO_Package (2).dtsx" starting.
Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available. To resolve, run this package as an administrator,
or on the system's console.
Information: 0x40043006 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Error: 0xC0202009 at Temp_tbl Injection Data Flow Task, OLE DB Source [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E14 Description: "ORA-12801: error signaled in parallel query server P183, instance *****:qrmgmt2 (2)
ORA-01861: literal does not match format string".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-12801: error signaled in parallel query server P183, instance ****:qrmgmt2 (2)
ORA-01861: literal does not match format string".
Error: 0xC004701A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.
Information: 0x4004300B at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (52)" wrote 0 rows.
Information: 0x40043009 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Temp_tbl Injection Data Flow Task
Warning: 0x80019002 at *******: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "****** (2).dtsx" finished: Failure.Do you have any Date conversion functions in your Oracle datetime fields? I did run into a similar issue when we upgraded the oracle client and the provider started to decipher the metadata of the date columns. The SSIS metadata conversion for the date
columns yielded dates that were not valid. I had to update my queries to use the TO_CHAR conversion to bring it out as a string and then save it to the date field.
TO_CHAR (DATE, 'MM/DD/YYYY HH24:MI:SS')
Regards, Dinesh -
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. -
Display php page ok vs ko because of oracle client or cache or buffer size?
Hello everybody,
Excuse me for my english,
I searched every where but ...
linux ubuntu
php 4.4.6
apache 2.2.4
oracle client XE
VS
win xp
php 4.4.6
apache 2.2.4
oracle client 9i
same database 9i
a sql query :
- select statement cost 25
- execution time : 0,2 sec
- rows number : 4238
My problem : When I want display in an array all the résults in a web page with php, I always manage to display my page via win box
BUT on linux box the display depends :
1 - firsts times : on IE (impossible d'afficher la page) on ff (white page)
I tried to change my directive in php.ini and httpd.conf and try to display this page nothing better
2 - the more I tried to display the page, the more the query is execute (I log my php code, and it executs until the last line). After several tried, I manage to display my page. But if I execute other queries and come back to my page -> etape 1.
in my php code, I use successively :
OCIPLogon,OCIParse,ocisetprefetch(5000),OCIExecute
Is someone had the same problem?
Edited by: crazykangourou on Oct 24, 2008 1:08 AM : Indications on php codeMake sure to check the return code from each OCI call. If an error occurs, try to
resolve the problem.
The version of the OCI8 extension with PHP 4.4 is unstable. If possible, upgrade
at least OCI8. See the section "Installing PHP 4 on Linux" on the bottom of page 81
of the current version (1.4) The Underground PHP and Oracle Manual -
Dear all;
We have only one Database server with some IIS's as web servers on front . Each web server has own oracle client software in order connect to central database..
The same following query used in C# code returns different results on each IIS server.(3 row, or not data found )
why?
select * from aTable where to_char( adate , 'dd.mm.yyyy' ) = :search_date
regards
Siya1006237 wrote:
If adate is of DATE datatype, it will most likely has the time component. Therefore your SQL below is unlikely to return any data.
select * from aTable where adate = to_date(:search_date, 'dd.mm.yyyy')
Perhaps.....
select * from aTable where TRUNC(adate) = to_date(:search_date, 'dd.mm.yyyy')
Hi,
not having any sample data from you I could not understand that you wanted to select the range 00:00:00 - 23:59:59 on search_date.
Your method might not be efficient if you have an index on adate.
Maybe something like this will be more efficient
select * from aTable
where adate >= to_date(:search_date, 'dd.mm.yyyy')
and adate < to_date(:search_date, 'dd.mm.yyyy') + 1;
If you search_date is 30-Aug-2013 it will get records where adate >= 30-Aug-2013 00:00:00 and adate < 31-Aug-2013 00:00:00, so any time of date 30-Aug-2013.
Try like this and let us know if you still have 2 different results.
Regards.
Alberto -
We have a set of oracle clients running on T5220 zones that need some help
Greetings all -
We have a set of oracle clients running on T5220 zones that need some help.
If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
Running "uname -a" from the client gives:
(SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
Running "uname -a" from the dataserver gives:
(2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
The RDBMS is 10.2.0.4
Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
tia -
Jim
Edited by: jim1768 on Mar 31, 2010 1:47 PM
Edited by: jim1768 on Mar 31, 2010 2:12 PM
Edited by: jim1768 on Mar 31, 2010 2:13 PMHello,
We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
http://blogs.sun.com/glennf/tags/throughput
http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware -
Comms between a database and an oracle client is slow
I have a Win2000 server machine (Running MicroStrategy) with Oracle client (9.2.0.1.0) querying an Oracle DB (9.2.0.6.0) on AIX 5.2 (They are connected via Gbit ethernet, ping times are 1ms and no hops enroute). After a lot of testing I have simulated the problem I see in MicroStrategy by running a simple select * from A_TABLE which returns 30,000 rows to the client. When I run this it takes about 2 minutes to complete.
When I run the same query against a copy of the database on Solaris it takes 5 seconds.
When I run the same query from a different PC (same Oracle client) it takes 2 seconds.
I seem to have a problem with this specific Oracle client machine talking to a specific Oracle DB. It happens with Oracle Net connections, ODBC and Oracle Wire Protocol connections.
Anyone have any ideas?
Thanks
MarcI can't see how tuning the Oracle Networking would help as both ends of this problem work OK when talking to other nodes. The DB server certainly performs well with any other client, so tuning at that end would seem pointless. The Win2000 server first display the issue using Oracle Wire Protocoal drivers which don't require Oracle client anyway - there doesn't seem to be much to tune. (AND it works OK against other DBs)
-
Low Performance with Oracle Client 11g R2
Hi Experts
I installed Crystal Report Server 2008 on Windows Server 2003. We use Oracle Client 11R2 to create an ODBC to link with an Oracle Database which installed on another Redhat Linux Server.
I found the performance of generating report by Crystal is really bad, it's a really simple SQL query.
Before the Oracle, we used the SQL Server 2005 as the database, the time to open the same report only took 1-3 seconds, but on Oracle it took more than 20 seconds.
Please help~~ thank you.Hi Don
Thank you for your reply, I built a report by myself, it's really fast, so I think it's not the problem of ODBC.
I double checked the 'Query SQL' of the old report, it only took 3 tables and generate a SQL like hereafter,
then I checked this SQL on "SQL Developer", it's working fine, very fast.
I don't know why Crystal Report Server take so long time to generate this report.
ODBC
SELECT
a.CR01_NATURAL_PER_FLAG taxpayer_category,
CASE WHEN a.CR01_NATURAL_PER_FLAG='Y' THEN to_char(to_number(a.cr04_natural_per_id)) else to_char(to_number(a.cr10_legal_per_id)) END per_id,
to_char( to_number(a.cr01_internal_id)) cr01_internal_id,
nvl(a.CR01_TIN_ID,'') cr01_tin_id,
a.CSTD_TAXPAYER_STATUS,
a.CSTD_SECURITY_LEVEL_ID,
a.CSTD_CERTIFICATE_STATUS,
a.CR01_MISS_INFO,
a.CR01_ACT_START_DATE,
B.CSTD_TAXPAYER_TYPE,
d.CS04_ID,
f.CSTD_ACTIVITY_CODE
FROM tr01_taxpayer A,TR14_TAXPAYER_ACTIVE_TYPE B, TR16_TAXPAYER_OFFICE d,TR06_BRANCH_BUSINESS_ACTIVITY f
WHERE a.cr01_internal_id = d.cr01_internal_id
AND nvl(d.cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
and nvl(d.cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>= sysdate
AND A.cr01_internal_id = B.cr01_internal_id
and nvl(B.cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
and nvl(B.cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
and a.cr01_internal_id = f.cr01_internal_id
and f.CR03_BRANCH_CODE = '000'
and nvl(f.cr06_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
and nvl(f.cr06_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
and f.CR06_PRIMARY_FLAG='Y'
EXTERNAL JOIN TAXPAYER.TAXPAYER_CATEGORY={?ODBC: NAME.TAXPAYER_CATEGORY} AND TAXPAYER.PER_ID={?ODBC: NAME.PER_ID} AND TAXPAYER.CR01_INTERNAL_ID={?ODBC: INTERNALID.CR01_INTERNAL_ID}
ODBC
select 'Y' taxpayer_category,to_char(to_number(a.cr04_natural_per_id)) per_id,
cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name NAME
FROM
tr01_taxpayer A, TR11_NATURAL_PER_NAME B
WHERE cr01_natural_per_flag = 'Y'
and A.cr04_natural_per_id=B.cr04_natural_per_id
and nvl(b.cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
and nvl(b.cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
union
select 'N' taxpayer_category,to_char(to_number(a.cr10_legal_per_id)) per_id,
cr13_name NAME
FROM
tr01_taxpayer A, TR13_LEGAL_PER_NAME C
WHERE cr01_natural_per_flag = 'N' and A.cr10_legal_per_id = C.cr10_legal_per_id
and nvl(c.cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
and nvl(c.cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
EXTERNAL JOIN NAME.TAXPAYER_CATEGORY={?ODBC: TAXPAYER.TAXPAYER_CATEGORY} AND NAME.PER_ID={?ODBC: TAXPAYER.PER_ID}
ODBC
select distinct x.cr01_internal_id from
(select to_char(to_number(cr01_internal_id)) cr01_internal_id from TR16_TAXPAYER_OFFICE where
(nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr16_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr16_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
AND to_char(cs04_id) = case when '{?p_taxoffice}' is null then to_char(cs04_id) else '{?p_taxoffice}' END
) x,
(select to_char(to_number(cr01_internal_id)) cr01_internal_id from TR14_TAXPAYER_ACTIVE_TYPE where
(nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr14_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr14_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or(
nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
and cstd_taxpayer_type = case when '{?p_taxpayerType}' is null THEN cstd_taxpayer_type else '{?p_taxpayerType}' END
) y,
(select cr01_internal_id from(
select to_char(to_number(cr01_internal_id)) cr01_internal_id,'Y' taxpayer_category
FROM
tr01_taxpayer A, TR11_NATURAL_PER_NAME B
WHERE cr01_natural_per_flag = 'Y'
and A.cr04_natural_per_id=B.cr04_natural_per_id
and
(nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr11_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr11_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or(
nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
and cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name like
case when '{?p_taxpayerName}' is null then cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name else '%{?p_taxpayerName}%' end
union
select to_char(to_number(cr01_internal_id)) cr01_internal_id,'N' taxpayer_category
FROM
tr01_taxpayer d, TR13_LEGAL_PER_NAME C
WHERE cr01_natural_per_flag = 'N' and d.cr10_legal_per_id = C.cr10_legal_per_id
and
(nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr13_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or
(nvl(cr13_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
or(
nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
and cr13_name like
case when '{?p_taxpayerName}' is null then cr13_name else '%{?p_taxpayerName}%' end
where taxpayer_category =
case when '{?p_taxpayerCategory}' is null then taxpayer_category else '{?p_taxpayerCategory}' END
) z
where x.cr01_internal_id=y.cr01_internal_id
and x.cr01_internal_id=z.cr01_internal_id
EXTERNAL JOIN INTERNALID.CR01_INTERNAL_ID={?ODBC: TAXPAYER.CR01_INTERNAL_ID}
Edited by: WangGang0411 on Jul 3, 2011 12:27 PM -
Oracle Client 11g 32bit on Windows 7 64Bit, does not show Norwgian Chars?
our company develop a program that communicate with Oracle Database though Oracle Client.
to use the program the user needs to install oracle client in as a runtime.
now some of our clients has some problem with the Norwegian chars! it shows as a question mark (?)
all the Norwegian chars (ø,æ and å) in the program that comes from the database replaces by (?)
I did many research but yet no luck! and ideas (I would love to welcome few so I can test them all)
cheers
Edited by: SJari on Jun 15, 2011 2:32 AMWhich tool are you using to query the data?
What is the NLS setting at the client side?
I would recommend a read through the Globalization support guide.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/toc.htm -
Run TKPROF from oracle client machine
Hello,
I have install on my PC (windows xp sp2), Oracle Client, and I need TKPROF to speed up some query; Can I install TKPROF on my PC or it is necessary to run TKPROF from the server? What rights should I ask on my DBA?
Thank you!
XaMThanks for your answer Graham,
but i want to run
something like this (from oracle documentations)
tkprof filename1 filename2 [waits=yes|no] [sort=option] [print=n]
[aggregate=yes|no] [insert=filename3] [sys=yes|no] [table=schema.table]
[explain=user/password] [record=filename4] [width=n]
Can i do that only with Oracle Client install? tkprof.exe isn't on my machine :( .
XaM -
Now that Snow Leopard is out and in fact in my hands, are there any known compatibility issues relative to the Oracle client software that is available from:
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204macsoft.html
Thanks.
BTW, it might be worthwhile to know about the following web site:
http://snowleopard.wikidot.com/
and for someone from Oracle to post an appropriate listing there as that site is becoming known as a central resource for such queries.
MarcGuys,
I appreciate all of your replies, but:
1. Just to be clear, I am talking about running the CLIENT (SQL*Plus) on Snow Leopard, which will connect to Oracle 11g, which is running on RHEL 5. I don't care in the least as to whether or not Oracle 11g will run on Snow Leopard. Today, I run the CLIENT on Leopard from the CLI and can connect to 11g on RHEL 5 just fine. I use the Actual Technologies ODBC driver (http://www.actualtechnologies.com/product_oracle.php) for queries in other applications and I have a similar query regarding Snow Leopard compatibility into them.
2. @damorgan: Are you telling me that the client software that I can download from Oracle here:
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204macsoft.html
was written by Oracle and certified by Apple to run on Leopard (10.5)? I am curious, because today, it was Microsoft and not Apple that put forth the statement that Office 2008 is fine on Snow Leopard:
http://www.officeformac.com/blog/Ready-for-Snow-Leopard
Are you suggesting, as a parallel, that Apple did the certification of Office 2008 for Snow Leopard, not Microsoft? Or that Apple and not Cisco, will certify that Cisco's VPN client will work on Snow Leopard?
Thanks,
Marc -
Hi,
Information:
-- Oracle Client version = 10.2.0.1.0
-- Oracle Database Version = 10.2.0.5.0
My query is that can we upgrade Oracle Client from 10.2.0.1.0 to 10.2.0.5.0 version?
And if possible then where from could we get upgradation patch for Oracle Client?
RegardsGursimran Singh wrote:
Hi,
Information:
-- Oracle Client version = 10.2.0.1.0
-- Oracle Database Version = 10.2.0.5.0
My query is that can we upgrade Oracle Client from 10.2.0.1.0 to 10.2.0.5.0 version?
And if possible then where from could we get upgradation patch for Oracle Client?
RegardsWhich begs the question . . . do you need to upgrade the client? There is nothing fundamentally wrong with using a 10.2.0.1 client against a 10.2.0.5 database. -
Changing culture of Oracle client
Hi,
We recently had to re-install our production oracle-client (due to harddrive failure). We installed a new Oracle client (10g) and everything went right back up quite fast.
but...
I belive the new client was installed with a diffrent culture/globalization-settings than the orignal one. Can I some how change this setting? For instance; a query used to result in a value like (in sweden we use commas, not periods for decimal values) :
7,2%
now comes out
7,2.0%
Using that perticular query on the machine where the oracle server is installed still result in the correct(first) result.
Can anyone help me with this?
/DHi,
Try this
Environment level This way will effect only client that uses this environment
Terminal session
(Multi-user environment such as telnet)
In UNIX environment, set the environment variable as follows:
In born, korn shell
$NLS_LANG=THAI_THAILAND.TH8TISASCII; export NLS_LANG
Win95/NT/2000 client
1. Run regedit, Registry window will appears
2. Select HKEY_LOCAL_MACHINE
3. Select SOFTWARE
4. Select ORACLE
5. Select NLS_LANG
Type the NLS_LANG and then enter the value THAI_THAILAND.TH8TISASCII
Use your appropriate "NLS_LANG" the above one for example.
- Pavan Kumar N
Maybe you are looking for
-
I wrote a cls that extends JTree....I have defined the root node in this class. Public class a extends JTree{ /// global variable nd constructor public void JTReader() DefaultMutableTreeNode root = new DefaultMutableTreeNode("root"); m_mod
-
Modified Workflow Stuck on In-Progress
I have a modified Approval Workflow where I send emails out to notify the end user when the due date is approaching etc. nothing really fancy about it. I also email when a document has been approved and is rejected. For the Task form I modified it so
-
Hi, I have unexpected problem with RMI. I wrote an application with several server modules and client modules. Two server modules use RMI to expose their methods for client and reciprocal exchange. These servers are in the same directory and use the
-
MVP List #136 January 31, 2015 – February 6, 2015
The Verizon Community Forums Most Valuable Posting List is where we recognize the great work that you all, our community, continue to do each week in these forums. Even if you're not listed below, a huge THANK YOU to all of your contributions. If you
-
My PowerBook g4 says it's connected to the Internet and the Ethernet cable's plugged in, but every time I open Safari it says I'm not connected. What can I do to get Safari to get online? Also I'm having problems with my PowerBook G4 on recognizing m