Tpforward tpabort causing rollback to oracle database ?
Hello all,
we have issue with xa transactions.
We obtained tpabort / rollback as you can see from the trace.
We are trying to send messges from queue using tpforward to databse using oci - through "ods" adapter.
This issue is obtained sometimes, after the restart of adapter to the database.
I do not know, if the error is because of DB rollback or because of tpabort as you can see from trace:
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpabort(0x0)
interesting is also xa_end = 104 after tpabort.
The queue is mostly 99% working well, what can be the origin of the problem please? Why is tmqforward behaving like this?
Queue contains just 64 messages which can't be commited. They were sent to db adapter (ods) and to Oracle DB and we obtained answer message from DB, but the rollback/tpabort puts the message back to the queue and this is repeating indefinitely...
tuxedo 9.1 rp 92, parsic 32b on itanium (emul)
ubb:
Q_ODS3 LMID=TuxC GRPNO=313 TMSCOUNT=5 TMSNAME=TMS_QM OPENINFO="TUXEDO/QM:/home/tux-st1/queues/QUEMSG_ODS:QSPACEMSG_ODS"
DEFAULT: MIN=1 MAX=8 SEQUENCE=133
TMQUEUE SRVID=10040 SRVGRP=Q_ODS3 CLOPT="-o logs/stdout -e logs/stderr -s QSPACEMSG_ODS:TMQUEUE -s QSPACEMSG_ODS3:TMQUEUE -- "
TMQFORWARD MIN=3 MAX=20 SRVID=10050 SRVGRP=Q_ODS3 CLOPT="-o logs/stdout -e logs/stderr -- -i 2 -q DISPATCHER_ODS"
TMQFORWARD MIN=2 MAX=10 SRVID=10070 SRVGRP=Q_ODS3 CLOPT="-o logs/stdout -e logs/stderr -- -i 10 -q CONFIRMATION"
script for creating queue:
qcreateMSG.sh 44 _ODS:
#!/bin/sh
# Version: $Id: qcreateMSG.sh 1398 2010-04-15 08:35:37Z vkoutny $
IPCKEY=$1`id -u`
echo IPCKEY = $IPCKEY
export QMCONFIG=$APPDIR/queues/QUEMSG$2
qmadmin $QMCONFIG << END1
echo
qspds -f -y QSPACEMSG$2
q
END1
rm $QMCONFIG
qmadmin $QMCONFIG << END
echo
crdl $QMCONFIG 0 60100
qspacecreate
QSPACEMSG$2
$IPCKEY
60000
10
400
400
30000
ERRORQ
y
16
qopen QSPACEMSG$2
qcreate
DISPATCHER$2
priority,time,fifo
msgid
0
0
33%
5%
sh $APPDIR/scripts/qfull.sh 24 QSPACEMSG$2 $QMCONFIG DISPATCHER$2
qcreate
CONFIRMATION
priority,time,fifo
msgid
0
0
33%
5%
sh $APPDIR/scripts/qfull.sh 24 QSPACEMSG$2 $QMCONFIG CONFIRMATION
qcreate
ERRORQ
priority,time,fifo
msgid
5
10
33%
5%
sh $APPDIR/scripts/qfull.sh 24 QSPACEMSG$2 $QMCONFIG ERRORQ
q
END
thank you for any advice,
Jan
tuxedo trace:
tux-st1@tuxcst:/home/tux-st1/logs$ grep "gtrid x20002 x4f6201d3 x10ab57e" ULOG.033012
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_start(0x40024d5c, 0, 0x0)
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_start = 0
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpbegin = 1
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpsprio(50, 0x40)
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpsprio = 1
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_end(0x40024d5c, 0, 0x2000000)
120446.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_end = 0
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpservice({"DISPATCHER_ODS", 0x10, 0x40104b70, 1828, 0, -2147483648, {0, -2, -1}})
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpgprio()
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpgprio = 50
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpalloc("STRING", "", 506)
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpalloc = 0x40093b40
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpalloc("STRING", "", 506)
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpalloc = 0x40093fb8
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpsprio(50, 0x40)
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpsprio = 1
120446.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpcall("ENTRYODS", 0x40093b40, 506, 0x7f7f1208, 0x7f7f1084, 0x3)
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_start(0x400356f4, 0, 0x0)
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_start = 0
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:tr: dye
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpservice({"ENTRYODS", 0x10, 0x4027ad70, 507, 0, -2147483648, {0, -2, -1}})
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpgetlev()
120446.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpgetlev = 1
120447.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpalloc("CARRAY", "", 236)
120447.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpalloc = 0x4006e348
120447.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpreturn(2, 0, 0x4006e348, 235, 0x0)
120447.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_end(0x400356f4, 0, 0x4000000)
120447.tuxc!ods.29438.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_end = 0
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpcall = 0
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpacall("FILEWRITER", 0x40104b70, 0, 0xe)
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpacall = 0 [CLIENTID {0, -2, -1}]
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpfree(0x40104b70)
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpfree
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpfree(0x40093b40)
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpfree
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpfree(0x400f69c8)
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: } tpfree
120447.tuxc!dispatcher.9870.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:at: { tpreturn(2, 0, 0x00000000, 0, 0x0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_start(0x40024d5c, 0, 0x8000000)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_start = 0
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpabort(0x0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_end(0x40024d5c, 0, 0x20000000)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_end = 104
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpalloc("rpcrqst", "", 0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpalloc = 0x4008d5e0
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpsprio(75, 0x40)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpsprio = 1
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpfree(0x4008d5e0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpfree
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpalloc("rpcrqst", "", 0)
120447.tuxc!TMS_QM.28617.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:tr: dye
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpalloc = 0x4008d5e0
120447.tuxc!TMS_QM.28617.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpservice({"..TMS", 0x14, 0x00000000, 0, 0, -2147483648, {0, -2, -1}})
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpsprio(75, 0x40)
120447.tuxc!TMS_QM.28617.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_rollback(0x4002539c, 0, 0x0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpsprio = 1
120447.tuxc!TMS_QM.28617.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_rollback = -4
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpfree(0x4008d5e0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpfree
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpalloc("rpcrqst", "", 0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpalloc = 0x4008d5e0
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpsprio(75, 0x40)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpsprio = 1
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpfree(0x4008d5e0)
120447.tuxc!TMQFORWARD.28638.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: } tpfree
120447.tuxc!TMS_ORACLE10g.29337.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:tr: dye
120447.tuxc!TMS_ORACLE10g.29337.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:ia: { tpservice({"..TMS", 0x14, 0x00000000, 0, 0, -2147483648, {0, -2, -1}})
120447.tuxc!TMS_ORACLE10g.29337.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: { xa_rollback(0x40025734, 0, 0x0)
120447.tuxc!TMS_ORACLE10g.29337.1.0: gtrid x20002 x4f6201d3 x10ab57e: TRACE:xa: } xa_rollback = 0
XA-log-trace:
120446.29438.0:
xaostart: xid=0x28-7475786300000000000000000000000000000000000000000000000000000000000ebf224f6201d3010ab57e-0000013900000081, rmid=0, flags=0x0
120446.29438.0:
OCITransStart: Attempting
120446.29438.0:
OCITransStart: Succeeded
120446.29438.0:
xaostart: return XA_OK
120447.29438.0:
xaoend: xid=0x28-7475786300000000000000000000000000000000000000000000000000000000000ebf224f6201d3010ab57e-0000013900000081, rmid=0, flags=0x4000000
120447.29438.0:
OCITransDetach: Attempting
120447.29438.0:
OCITransDetach: Succeeded
120447.29438.0:
xaoend: return 0
120447.29337.0:
xaorollback: xid=0x28-7475786300000000000000000000000000000000000000000000000000000000000ebf224f6201d3010ab57e-0000013900000081, rmid=0, flags=0x0
120447.29337.0:
OCITransRollback: Attempting
120447.29337.0:
OCITransRollback: Succeeded
120447.29337.0:
xaorollback: rtn 0
Hi Todd,
first of all - thank you for your answer.
I have found the reason.
I just defined non existing replyqueue in tpenqueue's TPQCTL structure.
stCtrl.flags |= TPQREPLYQ;
strcpy(stCtrl.replyqueue, pcReplyQueueName);
This behaviour was very hidden for me, because I did not receive any error message to logs.
If the reply queue which I defined in structure not exists in quespace, then the abort is called internally...
Now resolved.
Thank you,
Jan
Similar Messages
-
&, &&, and @s causing ORACLE Database Project issues And SLOW Run
Hello I am encountering an issue while "Run"ing functions/sp/packages from an ORACLE DATABASE PROJECT.
We are supporting a legacy application that utilizes HTP.PRINT. We decided that it would be nice to have it as an Oracle Database Project but when we save the file it is croaking at us.
We are using
ODTwithODAC1110720
Visual Studio 2008
Oracle 10g r2
The specific issue happens when an @ is the first line in the file and when utilizing && in javascript (all being emitted from HTP.Print). Now I know we can work around these limitations (escaping the &s and wrapping the line) but is there any way to get these to work in the IDE w/o the escaping and such?
For instance:
In visual Studio Create a Function1 as such
DROP FUNCTION FUNCTION1;
CREATE FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
htp.print('
<style>
@media printfooter; {
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;
/You will get this result:
Connected.
------ Running '***\Project1\Functions\Script1.sql' @**.** ------
Function dropped.
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled:
Operation canceled by user
-- this locks the file
If I go ahead and hit OK (in a new unlocked file)
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled: old 5: HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
new 5: HTP.PRINT (' if (popupStatus == 1 ==false) {');
**/You will notice that when the function is created it just skips the & and @s
FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 ==false) {');
htp.print('
<style>
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;and just a little insult to injury on this, each "run" takes upwards to 20-25 seconds from Visual studio (this is a deal breaker for us to use the tool -- when SQL Developer takes mere moments) -- is there a configuration setting awry?
So I guess the questions are these (sorry for the ramble)
1) How, in the VS 2008 IDE, can we accommdate & and && and @s without escaping/workarounds? (these work fine in developer)
a) I have noticed that the escape character work around is ONE way ... thus if I have the package body in the Oracle Database Project, add "set escape \ " then escape all of my & and && and @s it works. but... the code is saved in Oracle without the escape characters (understandable) but if it changes in Oracle then I push the changes down I lose all of my escape characters.
2) Why does each RUN take so long? working in developer & even the Server Explorer edited function are almost instantaneous.
-- I want to add, during my escape character tests EACH RUN took upwards to 30-45 seconds, so for 4 small simple test cases it was approaching 2 minutes of just save time...
so far these two shortcomings are barrier for our company to utilize these features (it's hard to try to sell the dept. on anything that doesn't handle escapes well AND -- the big AND -- takes entirely too long to save). any advise?
thnx
Edited by: tanging on Jul 1, 2010 4:47 AMwe can just set the escape character and it works fine,
set escape '~'
create or replace ....when/if we have to pull down from production level we'll have to be mindful to change & and @s to have a preceding escape character (and add the set escape to the top) --> which is a step back from SQL Developer which handles this flawlessly.
now the timing -- I believe it to be a timing issue on our network (therefore I've wasted your time). We have a default shared drive that is anything but speedy and our "default" homes in Visual Studio pointed to the shared drive. While the project/solution were on our local drives - the temp drive was the slow default. Changing that locally seems to have made the timing issue go away. (although on the first save of the body spec after the change and reboot it took 35 seconds but on subsequent runs it Ran in acceptable time limits). -
How do I get from Oracle Database 8.1.7.0.0 to 8.1.7.2? There is a patchset that fixes a bug in 8.1.7 for memory leaks that I need installed. I am currently running on a WindowsNT Server with a Oracle Database version of 8.1.7.0.0. Is going to 8.1.7.2 a complete release upgrade, or is there a smaller upgrade to get there, and how do I get the files required>
Thanks,Hi,
Sorry for my english
For Windows NT, the last big patchset is 8.1.7.4.x. I advice you to use the last patchset. A patchet is not a upgrade or a migrate. the installation is in two phase. Phase One:Patch the files in the oracle home with Oracle Universal Installer (Oui) and Phase Two: execute sql files on the dictionnary of each database. There is a readme with the patch.
you can get files on metalink if you have a account (metalink.oracle.com).
List bug for Memory Corruption
8174 1748759 Client memory corruption / dump (eg: in ttcfopr) using pre-fetch
8174 1859905 Intermittent dump / client memory corruption
8174 1964934 Memory corruption possible using INSERT /*+ APPEND */ over DBLINK
8174 2126096 Session heap corruption from LIKE :bind ESCAPE '/' if :bind ends in the escape character
8174 2152752 Memory corruption / OERI:17182 possible fetching CHAR from DB2 over HS
8174 2217159 13 byte PGA corruption possible using SQL over DBLINKS from PLSQL with MTS to V7 database
8174 2248904 Memory corrupt possible during optimization of distributed query
8173 1836101+ Memory Corruption from distributed query / query with binds (OERI:17114/17xxx/dump in kkecdn/kgh*/kke*)
8173 1542218 Heap corruption (OERI:17182/dump in kghfrf) using very large collections
8173 1661786 OERI:12261 / single byte memory corruption possible for CALL type triggers
8173 1711803 DBW & users may CRASH under heavy load on multi-CPU system with FAST_START_IO_TARGET set > 0
8173 1744786 Cursor work heap corruption from CONNECT BY PRIOR
8173 1752554 OERI:17182 selecting DB2 DATA TYPE of CHAR over HS
8173 1791258 CONNECT BY on IOT can cause SGA memory corruption
8173 1810829 Lightwieght sessions (via proxy connect) may dump / corrupt shadow memory if users have >1 ROLE
8173 1847583 Client memory corruption/dump using large value_sz for OCIDefineByPos with OCI_DYNAMIC_FETCH
8173 1968635 OERI:KCOAPL_BLKCHK / buffer cache corruption from CR rollback
8173 1987654 Compiling a PLSQL block with an INDICATOR clause can corrupt memory
8173 1995026 OERI:17112 / heap corruption from Oracle Trace with MTS & Large Pool
8173 2002799 Wrong results / heap corruption from PQ with aggregates in inline view
8173 2048336 OERI:150 / Memory corruption from interrupted STAR TRANSFORMATION
8173 2065386 Mem. Corruption / OERI:KGHFRE2 / OERI:17172 possible using bitmap indexes
8172 1365873 OERI:17182 / CGA corruption with CURSOR_SHARING=FORCE
8172 1373920 Memory corruption from PLSQL ORA-6502 errors
8172 1447610 DBMS_SQL.BIND_ARRAY may dump / report private memory corruption type errors
8172 1679690 Buffer cache in memory corruption (OERI:2032) can lead to permanent data/index mismatch (OERI:12700)
8172 1732885 oeri:[KDIBR2R2R BITMAP] / memory corruption possible from BITMAP AND
8172 1763408 RPC between 9i <-> 8i with CHAR data can corrupt memory
8171 1227384 SGA heap corruption using DBMS_SQL under heavy load (Rare)
8171 1364542 Buffer Cache corruption possible (rare)
8171 1394565 PROBE: Callheap corruption printing a RAW in PLSQL debugger
Bye !!!
Cordialement
XsTiaN -
I don't know what problem is.
I was planning to install Oracle Application Express into my server.
So, i made a fresh database installation with Oracle Database Enterprise Edition 9i release 2 (9.2.0.1) and setting up Oracle Application Express 3.2.0.00.27 to use it with it.
The installation was succesful.
But I am having problems to create workspaces using the Admin option: Manage Worspaces --> Create Worspace.
After open these option, the page ask me to enter Workspace Name and Workspace Description.Then appears the page where I need to enter re-use existing schema, schema name, schema password and space quota. When I press the next button, the CPU increase to 100% use and the server, even when it does not freeze, stays in the last page and not move to the next want for a long long time.... more thant 3 hours.
I read at the apache logs and didn't find something to show me the possible causes of these behaiviour.
Apache logs
access_log.txt -------> "POST /pls/apex/wwv_flow.accept HTTP/1.1" 302 163
ssl_engine_log -------> Failed to release global mutex lock
Init: (localhost:4443) RSA server certificate CommonName (CN) 'NOT SECURE!!!! does NOT match server name!?
error_log -------> OPM: EW: Process aemsglobalgroup:3645 (but number change several times) (pid:1720) died, restarting
[warn] mod_plsql: Stale Connection due to Oracle error: 3113
[error] mod_plsql: /pls/apex/wwv_flow.accept ORA-3113
ORA-3113: end-of-file on communication channel
I am really confuse because I thougth that Oracle application Express is certified with Oracle Database EE 9.2.0.1
My server spec are:
Windows XP with SP2
500Mb Ram Memory
7.2 Gb Free Disk Space
Please any idea about which can be the possible problem/solution for that.
Best Regards
Abdel Miranda
AEMS Global Group
PanamaWell I think it is kind of wasted of time to try to figure it out which caould be the possible cause, once you told me that Apex works with 9.2.0.3 or higher and has an issues with earlier versions.
I already download the last release for 10g, so I hope it solve the problem and let me install and setup properly oracle application server.
I know it is kind of hard work to do to install 10g rel 2 but, well, is the only solution, it seems.
thanks for everything.
Abdel Miranda
AEMS Global Group
Panama -
How many users/ schemas can we create in an oracle database?
How many users can we create in an oracle database? Or how many users can oracle handle?
Problem-
I have to store information of ontologies (I will use countries instead) in db.
I have to store information regarding countries.
I have 13 tables in all to maintain for each country.
Now there are two approaches:
1) keep only 13 tables. Have an extra column in each table to indicate that a particular
row stores information for which country.
2) create a new user/ schema for each country. So we can get rid of the extra column
needed in 1st approach.
I have used the second approach. This is because number of entries in each table for a
given country will be large.
So initially when the s/w is installed I create a central-user. Each time data for new
country has to be entered central-user creates a user/ schema, and creates tables for
this user/ schema. The central user can access the tables of all the countries by
country_name.table_name. By this approach I believe searching would be easy.
If there is any flaw in my approach kindly mention it.
Thank youThere is no (practical at least) limit to the number of users & schemas you can have in Oracle.
Your approach, however, is not going to scale nearly as well as the first option you outlined (adding a column). You are going to end up caching every possible variation of the various queries you're going to be executing because you will be referring to so many different tables, which is going to mean that you are doing a lot more work to parsing statements and generally churning through the shared pool. If you create enough users, you're liable to start hitting ORA-04030 errors because your shared pool is so fragmented.
Additionally, you're likely going to end up with a whole lot of dynamically generated SQL to accommodate new schemas getting added over time which is going to cause you even more pain. Figuring out dynamically what table to join in is a heck of a lot more difficult for the programmer to write and for the database to handle than simply passing in a different country code.
If you're concerned about having too much data, you can have your cake and eat it to by adding the country column and partitioning the tables based on country.
Justin
One other item I forgot to mention is maintainability. Having dozens or hundreds of "identical" schemas makes maintenance a huge pain because something like adding a new column now requires dozens or hundreds of separate DDL statements. You're almost guaranteed that some schema isn't going to be in sync-- it's going to miss a column or miss an index, etc.
Message was edited by:
Justin Cave -
Retrieve data from a synonym in oracle database through db connect
Hi Everyone,
I have created certain synonym for some tables in oracle. I want to retrieve data from it through db connect but where through source system and then selecting database tables, only tables and views are available.
Synonyms are not available to create data sources and retrieve the data from it. Why is it so. Is this a limitation of db connect.
Can anyone please let me know about it.
Thanks,
Joshua.Hi,
You want to import data from an external Oracle database into your BW 3.X. To do this, you can connect the external database to the BW 3.X release as a source system using the external database connect. BW 3.X here represents BW 3.0, BW 3.1 and BW 3.5 because in other (DB relevant) parts, all 3 versions are based on the same source code.
General information
The above function allows you to load data from an external Oracle database (not a BW database) into your BW 3.0 system.
There may also be constellations which cannot be used directly through the DB Connect access. However, it should be possible to find an adequate, customer-specific solution for most of these scenarios.
In such situations, the resulting work falls into the area of Consulting and cannot be handled via Support.
Successful implementation of a connection requires corresponding expertise and experience in the use of the source database in the areas:
- Tools
- SQL syntax
- DB-specific functions
Corresponding knowledge of the source application is also required to ensure that semantically relevant data arrives in the BW system.
Procedure
You should execute the following steps to connect the source system (Q) to the BW system (BW):
Installing the client software on an BW application server
Of course, you only need to install the client software if you are using BW with a non-Oracle database.
Use the Oracle setup program on the database CD (runInstaller on Unix) to start the OracleInstaller. Follow the program instructions and the DB installation instructions to install the Oracle Client software on BW.
Testing connection setup from BW to Q
After you install the client software on BW, try to set up a connection from BW to the server on Q. You may need to adjust the tnsnames.ora or sqlnet.ora files for this, to introduce the Oracle systems (to which contact should be made) to BW. You can test the connection by executing the command "tnsping QDB" on BW to check whether the client has established contact to the QDB database on the Q system.
Creating a separate U user in Q
We recommend that you create a separate U user in Q for connection to BW. This means that authorization and administration questions can be solved centrally.
Displaying data sources in Q for the U user
To provide U data for users other than U, you can create views on other user tables as user U:
CREATE OR REPLACE VIEW viewname AS
SELECT * FROM QDB.tablename
You may have to grant SELECT privileges to user U in the QDB schema:
GRANT select ON QDB.tablename TO U
Of course, you can also restrict or reformat data in the view arrangement (for example, change from internal date format into the SAP date format). JOIN operations using several tables are also available.
!!! Synonyms do not yet work!!!
Synonyms that you can create as described below are another option for providing a complete table for the user U:
CREATE SYNONYM synoname FOR QDB.tablename
!!! Synonyms do not (yet) work!!!
After you have displayed the require data for user U, you can simply use
SELECT * FROM <view or table>
on the Q system to check which data is returned.
You can now open a link to Q as user U in the BW system with SQLPLUS and check, using the same SELECT, whether this data is also seen in the Oracle client. If this is not the case, there is probably a connection problem.
Creating a connection from BW to Q in BW
Including data sources of user U user in Q in BW.
Solution
Supported BW, Basis and BW 3.0B database versions, Basis 6.20 Support Package 2 (or higher)
Oracle 8.1 (or higher, see below)
Possible problems
- Synonyms do not (yet) work!
Up to now, only tables and views have been used as data sources for the DB Connect from the R3 Basis. As soon as synonyms are also used in the Basis, you will be able to convert created views (or even replicated tables) to synonyms as a workaround.
With Basis 6.40 at the earliest, therefore as of BW 3.5, you will also be able to use synonyms. Until then, the following will help:
CREATE VIEW <view_on_synonym> AS SELECT * FROM <synonym>
- The source DB must have at least the release version of the BW DB.
Oracle only ensures the support of client-server links if the version of the client is not higher than that of the server. So if BW has Oracle version 8.1 and, as in the case of Dbconnect, is run as a client against the server of the source database, the source database must have at least release Oracle 8.1 or higher.
Of course, you have the option to install the Oracle client software of a lower version and then use this for the DB connect. This is also the procedure used to work with a DB connect on external databases of other vendors.
Furthermore, the implementation of the DBconnect function in BW uses SAP Basis functions. Specifications of Oracle 8.1 database catalogs are used here. The source database must therefore have at least Version 8.1.
- Oracle Client Software Version
If you want to connect from an Oracle BW DB to an Oracle source DB, for the DB connect you naturally use the client software that you already installed on each application server.
If you want to connect from a non-Oracle BW DB to an Oracle source DB, check item 3 of note 521230 to see which Oracle client software version is released with your BW R3 kernel and use this version.
- Date and time fields in Oracle and their conversion into SAP-compatible column formats
Example with a DATE field:
Since a SAP table does not have a DATE field (date values are NUMC(8) and time specifications are NUMC(6)), we will use the Oracle DBA_TABLES system table as an example.
SQL> desc dba_tables;
The Oracle DBA_TABLES system table has a LAST_ANALYZED field. This is a DATE type field and is recognized as a date field of 7 characters by DBA_CONNECT. However, the import does not work because the DATE is a 7-byte conglomerate of "...century, year, month, date, hour, minute and second." (extract from the Oracle documentation).
To make this DATE field legible for DB connect, you must use the TO_CHAR function in a VIEW. This should display the following examples:
SQL> select LAST_ANALYZED from dba_tables
where table_name like 'RS%' and rownum < 10 ;
The formatting used here is the default used implicitly by SQLPLUS.
SQL> select to_char(LAST_ANALYZED,'YYYYMMDD') as dat from dba_tables where table_name like 'RS%' and rownum < 10 ;
The result now has the SAP compatible format YYYYMMDD and should be loaded correctly by the DB connect as a date.
SQL> select to_char(LAST_ANALYZED,'HH24MISS') as tim from dba_tables where table_name like 'RS%' and rownum < 10 ;
The result now has the SAP compatible format HHMMSS and should be loaded correctly by the DB connect as a time.
You can use the following example for more detailed experiments:
SQL> select to_char(
TO_DATE('03-FEB-2001 04:05:06','DD-MON-YYYY HH24:MI:SS'),
'YY-MM-DD HH24-MI-SS') as datim from dual;
with the result:
DATIM
01-02-03 04-05-06
When you create a VIEW and use the TO_CHAR function (or other functions), you should easily be able to avoid problems with the interpretation of date/time specifications (and other reformatting).
Details about the functions and the formats are contained in the Oracle documentation.
- Special characters
A words that contain special characters can only be imported correctly if the code pages in BW and in the source system are identical. If the code pages are not the same, DB Connect can be used if the characters to be imported appear under the first 127 characters of the character set.
The use of multibyte code pages in the source system for saving data using character sets with more than 256 characters (Kanji, Katakana, Hiragana, Korean, Chinese, Tagalog, Khmer, Arabic, Cherokee, and so on) can cause the characters to become corrupt.
For questions concerning the code pages, also refer to the FAQ note 606359 and question/answer 19 that appears there. -
How to delete data before insert in oracle database
Hi friends,
I have one scenario.I want to send data from sap to Oracle database.Befor i am inserting data in database table,i want to clean/delete all the records in the table .This interface will run twice in a day.Can any body help me.
SAP-PI-JDBC
Thanks
RaviHi Puneet,
As per u r suggestions,i am using stored procedure.But i am getting following error.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. MASTERXXXXXX' (structure 'Statement'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'NAME' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)'
I have define below structure.Please check the structure and guide me.
<Statement
Action attribute required
Table
Access
Empname string
Empid string
date date
Type attribute required
EXECUTE----
>Action
Table----
>MASTERXXXXXX
Type----
>char
Please check the above structure andguide me to changes if any requires.
Thanks
Ravi -
Problem in connecting SQL developer to Oracle database
Hi,I don't know this is the correct forum for my problem
I Just installed Oracle Sql developer 3.2.I encountered a problem while creating a new connection with Oracle database 11g..
The error message says "Status : Failure -Test failed: The Network Adapter could not establish the connection"..
The command response as follows
lsnrctl stop
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:52
:56
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-01190: The user is not authorized to execute the requested listener command
lsnrctl start
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:55
:49
Copyright (c) 1991, 2010, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:57
:07
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 31-OCT-2013 20:57:07
Uptime 0 days 1 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\RIYAS\product\11.2.0\dbhome_1\network\admin\lis
tener.ora
Listener Log File c:\app\riyas\diag\tnslsnr\RIYAS-PC\listener\alert\log.
xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
lsnrctl service
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:58
:28
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:102 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: RIYAS-PC, pid: 1828>
(ADDRESS=(PROTOCOL=tcp)(HOST=RIYAS-PC)(PORT=49911))
The command completed successfully
set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\RIYAS\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=RIYAS-PC
ComSpec=C:\windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\RIYAS
LOCALAPPDATA=C:\Users\RIYAS\AppData\Local
LOGONSERVER=\\RIYAS-PC
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\app\RIYAS\product\11.2.0\dbhome_1\bin;C:\app\RIYAS\product\11.2.0\dbhome
_2\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsof
t Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\
Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\wi
ndows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPo
werShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program File
s (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\I
ntel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Open
CL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Progra
m Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P
rogram Files (x86)\Windows Live\Shared
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\RIYAS\AppData\Local\Temp
TMP=C:\Users\RIYAS\AppData\Local\Temp
USERDOMAIN=RIYAS-PC
USERNAME=RIYAS
USERPROFILE=C:\Users\RIYAS
windir=C:\windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
Pls help..You don't say what you have done to set up a connection.
This error is usually caused by something like using the wrong host name, or port number. -
Error while adding oracle database resource to the fail safe group
Hi,
we are installaing ERP 6.0 EHP4 , oracle10.2.04 in MSCS
During the step, Adding the oracle Database Resource to the fail safe
group , I am getting the error.
28 13:21:57 ** WARNING : FS-10288: Parameter file C:\oracle\BCP\102\database\init<SID>_OFS.ora is not located on a cluster disk
29 13:21:57 ** WARNING : FS-10404: The database uses a nonclustered disk in one of the system parameters. Value of parameter is C:\ORACLE\<SID>\102\RDBMS\AUDIT
30 13:21:58 ** ERROR : FS-10036: The resource uses disk SAP HDD, which is also used by cluster resource SAP VIP in another group
31 13:21:58 ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource <SID>.WORLD
32 13:21:58 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
33 13:21:58 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
34 13:21:58 FS-10488:<primary node name> : Starting rollback of operation
35 13:21:58 > FS-10090: Rolling back Oracle Net changes on node <primary node name>
I am having one local disk C: one shared disk Z: and quorum disk Q:
Shared disk Z: is already used for SAP<sid> group.
Regards,
JoelJoeldhanaraj wrote:>
> Hi,
>
> we are installaing ERP 6.0 EHP4 , oracle10.2.04 in MSCS
>
> During the step, Adding the oracle Database Resource to the fail safe
> group , I am getting the error.
>
> 28 13:21:57 ** WARNING : FS-10288: Parameter file C:\oracle\BCP\102\database\init<SID>_OFS.ora is not located on a cluster disk
> 29 13:21:57 ** WARNING : FS-10404: The database uses a nonclustered disk in one of the system parameters. Value of parameter is C:\ORACLE\<SID>\102\RDBMS\AUDIT
> 30 13:21:58 ** ERROR : FS-10036: The resource uses disk SAP HDD, which is also used by cluster resource SAP VIP in another group
> 31 13:21:58 ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource <SID>.WORLD
> 32 13:21:58 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
> 33 13:21:58 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
> 34 13:21:58 FS-10488:<primary node name> : Starting rollback of operation
> 35 13:21:58 > FS-10090: Rolling back Oracle Net changes on node <primary node name>
>
> I am having one local disk C: one shared disk Z: and quorum disk Q:
>
> Shared disk Z: is already used for SAP<sid> group.
Hi Joel,
how about following the advice given by the error message and moving the mentioned files/folder (init<sid>_OFS.ora, AUDIT folder) to a clustered resource disk?
just my 2 pence... -
I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
[OLE DB Source [47]] Error: 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-01858: a non-numeric character was found where a numeric was expected".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
error?Hi H.James,
According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
where C.ConfID in (select C.Sdate
from Conference_C C
where C.Sdate < '1-July-12')
Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Need Advice on Oracle database 10.2.0.4.0 on RedHat Linux AS 4
Hi,
I would like to know whether Oracle Database 10.2.0.4.0 is certified to run on the RedHat Linux AS 4 (Nahant Update 6) with HugeMem Kernel?
actually, we were running the Oracle 10g(10.2.0.4.0) database on RedHat Linux AS 4 (Nahant Update 6) with SMP kernel. We faced "out of memory" error so we are planning to change the kernel to HugeMem from SMP.
Any suggestions on this would be highly appreciated!!!
Thanks in advance!!!
SivaIf you were facing the out of memory errors, could you elaborate more on the circumstances these errors showed up? You could be facing the same situation after upgrading the OS if you don't properly diagnose the root cause.
~ Madrid
http://hrivera99.blogspot.com -
"Error while accessing porting layer for ORACLE database via getSessionId()
Hi,
My ejb3.0 Entity is created from Emp table in scott/tiger schema of an Oracle 10g database. I am guessing I made some mistake creating the datasource or uploading the driver, because when I run my application, I get a long exception stack trace. The bottom-most entry in the stack trace is:
Caused by: com.sap.sql.log.OpenSQLException: Error while accessing porting layer for ORACLE database via getSessionId().
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:148)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createPooledConnection(DirectConnectionFactory.java:527)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:158)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:118)
at com.sap.sql.connect.factory.PooledConnectionFactory.createPooledConnection(PooledConnectionFactory.java:119)
at com.sap.sql.connect.factory.DriverPooledConnectionFactory.getPooledConnection(DriverPooledConnectionFactory.java:38)
at com.sap.sql.connect.datasource.DBDataSourceImpl.createPooledConnection(DBDataSourceImpl.java:685)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPool(DBDataSourcePoolImpl.java:1081)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPooledConnection(DBDataSourcePoolImpl.java:919)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.getConnection(DBDataSourcePoolImpl.java:67)
at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.getConnection(DatabaseDataSourceImpl.java:36)
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
... 90 moreActually, now (after the GRANT described in my reply before) the Exception has changed to:
Caused by: com.sap.sql.log.OpenSQLException: Error while
accessing porting layer for ORACLE database via
<b>getDatabaseHost</b>().
at com.sap.sql.log.Syslog.createAndLogOpenSQLException
(Syslog.java:148)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createPooledConnection(DirectConnectionFactory.java:527)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createDirectPooledConnection(DirectConnectionFactory.java:158)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createDirectPooledConnection(DirectConnectionFactory.java:118)
at com.sap.sql.connect.factory.PooledConnectionFactory.
createPooledConnection(PooledConnectionFactory.java:119)
at com.sap.sql.connect.factory.DriverPooledConnectionFactory.
getPooledConnection(DriverPooledConnectionFactory.java:38)
at com.sap.sql.connect.datasource.DBDataSourceImpl.
createPooledConnection(DBDataSourceImpl.java:685)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
matchPool(DBDataSourcePoolImpl.java:1081)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
matchPooledConnection(DBDataSourcePoolImpl.java:919)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
getConnection(DBDataSourcePoolImpl.java:67)
at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.
getConnection(DatabaseDataSourceImpl.java:36)
at com.sap.engine.services.dbpool.spi.
ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
... 90 more -
Installing Oracle Database 11.2.0.3 on Centos 6.4 in AWS
We have been installing and configuring oracle database 11.2.0.3 with OIAM 11gR1 for a few years with great success.
RHEL 5.7
WLS 10.3.6
OracleDB 11.2.0.3
OIAM 11gR1
OHS 11.1.1.6
We have recently decided to move our VMs to Amazon's EC2 environment using CentOS 6.4. The OS our client currently has us using is a hardened version of RHEL5.7. We have installed on CentOS in the past but not in 6.4. All the prereqs are setup but we cannot seem to get the database to configure completely. Running in silent or interactive mode makes no difference.
When running in silent mode we received the following:
./runInstaller -silent -ignoreSysPreReqs -responseFile db_install_w_database.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 6463 MB Passed
Checking swap space: must be greater than 150 MB. Actual 24999 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-13_04-55-50PM. Please wait ...
You can find the log of this install session at:
/opt/oraInventory/logs/installActions2015-04-13_04-55-50PM.log
The installation of Oracle Database 11g was successful.
Please check '/opt/oraInventory/logs/silentInstall2015-04-13_04-55-50PM.log' for more details.
[WARNING] [INS-32091] Some of the configuration assistants failed.
CAUSE: Software installation was successful. But some configuration assistants failed, were cancelled or skipped.
ACTION: Refer to the logs or contact Oracle Support Services.
Checking the install log:
INFO: Oracle Net Listener Startup:
INFO: The information provided for this listener is currently in use by other software on this computer.
INFO: Listener start failed.
INFO: Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraDb11g_home1-1504134PM5854.log
INFO: Oracle Net Services configuration failed. The exit code is 1
Then checking the netca log
[main] [ 2015-04-13 16:58:55.132 UTC ] [CmdToolUtil.doexecute:473] nativeSystem.runRemoteExecCmd failed. Command = /opt/oracle/product/dbs/srvm/admin/getcrshome arguments = [] env = null error = null
[main] [ 2015-04-13 16:58:55.133 UTC ] [HAUtils.getHASHome:938] Failed to get HAS home.
PRCT-1011 : Failed to run "getcrshome". Detailed error: null
oracle.cluster.deployment.ClusterwareInfo.getConfiguredCRSHome(ClusterwareInfo.java:483)
oracle.sysman.assistants.util.hasi.HAUtils.getConfiguredGridHome(HAUtils.java:782)
oracle.sysman.assistants.util.hasi.HAUtils.getHASHome(HAUtils.java:934)
oracle.sysman.assistants.util.hasi.HAUtils.getHASHome(HAUtils.java:955)
oracle.sysman.assistants.util.hasi.HAUtils.isHASConfigured(HAUtils.java:529)
oracle.net.ca.ConfigureListener.isHASConfigured(ConfigureListener.java:1516)
oracle.net.ca.ConfigureListener.isHASRunning(ConfigureListener.java:1538)
oracle.net.ca.ConfigureListener.validateListenerName(ConfigureListener.java:1785)
oracle.net.ca.ConfigureListener.typicalConfigure(ConfigureListener.java:183)
oracle.net.ca.SilentConfigure.performSilentConfigure(SilentConfigure.java:185)
oracle.net.ca.InitialSetup.<init>(NetCA.java:4189)
oracle.net.ca.NetCA.main(NetCA.java:428)
[main] [ 2015-04-13 16:58:55.133 UTC ] [HAUtils.isHASConfigured:532] HA Home is null
[main] [ 2015-04-13 16:58:55.134 UTC ] [ConfigureListener.isHASConfigured:1524] Is Oracle Restart configured: false
[main] [ 2015-04-13 16:58:55.134 UTC ] [ConfigureListener.isHASRunning:1553] Is Oracle Restart running: false
[main] [ 2015-04-13 16:58:55.134 UTC ] [ConfigureListener.listenerExists:344] Is listener "LISTENER" already exists: false
[main] [ 2015-04-13 16:58:55.135 UTC ] [ConfigureListener.typicalConfigure:215] Checking for free port in range: 1521-1540
[main] [ 2015-04-13 16:58:55.135 UTC ] [ConfigureListener.isPortFree:1080] Checking if port 1521 is free on local machine...
[main] [ 2015-04-13 16:58:55.135 UTC ] [ConfigureListener.isPortFree:1095] InetAddress.getByName(127.0.0.1): /127.0.0.1
[main] [ 2015-04-13 16:58:55.136 UTC ] [ConfigureListener.isPortFree:1097] Local host IP address: awscentoschrome.amazonaws.com/52.4.205.244
[main] [ 2015-04-13 16:58:55.136 UTC ] [ConfigureListener.isPortFree:1099] Local host name: awscentoschrome.amazonaws.com
[main] [ 2015-04-13 16:58:55.136 UTC ] [ConfigureListener.isPortFree:1115] IP Address: awscentoschrome.amazonaws.com/52.4.205.244, Is IPv6 Address: false
[main] [ 2015-04-13 16:58:55.137 UTC ] [ConfigureListener.isPortFree:1118] IP Address: awscentoschrome.amazonaws.com/52.4.205.244, Is Link-Local Address: false
[main] [ 2015-04-13 16:58:55.137 UTC ] [ConfigureListener.isPortFree:1143] Creating ServerSocket on Port:1521, IP Address: awscentoschrome.amazonaws.com/52.4.205.244
[main] [ 2015-04-13 16:58:55.140 UTC ] [ConfigureListener.isPortFree:1178] java.net.PlainSocketImpl.socketBind(Native Method)
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:377)
java.net.ServerSocket.bind(ServerSocket.java:319)
java.net.ServerSocket.<init>(ServerSocket.java:185)
oracle.net.ca.ConfigureListener.isPortFree(ConfigureListener.java:1145)
oracle.net.ca.ConfigureListener.typicalConfigure(ConfigureListener.java:219)
oracle.net.ca.SilentConfigure.performSilentConfigure(SilentConfigure.java:185)
oracle.net.ca.InitialSetup.<init>(NetCA.java:4189)
oracle.net.ca.NetCA.main(NetCA.java:428)
[main] [ 2015-04-13 16:58:55.140 UTC ] [ConfigureListener.isPortFree:1191] Returning is Port 1521 free: false
2 things come to mind with the netca log:
1) We are NOT using HA... so it would seem we could ignore that.
2) Port 1521 is NOT in use. I ran netstat -anpl | grep 1521 in a 5 second delay loop while running the installation and it never appeared.
Does anyone know if there is something different with Centos6.4 or AWS installations that would cause this? Also, the log says that the installation went fine and the issues were with configuration. The spfile does not exist and when root.sh is run after the install, the oratab has no entry ($ORACLE_SID:$ORACLE_HOME:<N|Y> does not exist).
Ideas?Found the issue in the http://stackoverflow.com forums. We had searched them before but did not search on the correct error. I searched on "The information provided for this listener is currently in use by other software on this computer." and found a forum thread that we explained our issue.
We are using AWS as our server provider. AWS has 2 IPs it uses. The Public one which we use to putty into and access the server and the Private one that is on eth0. Evidently, the private IP needs to be in the /etc/hosts file not the public IP.
The database installed and is running. -
Biztalk error if "&" special character is used from Oracle Database
There is an error when system was received data form Oracle database. The data format is including "&"....etc special character. Becuase of the error appear between Oracle database and receive port. I can't do anything in Biztalk program to
encode the message. Does any way to do encoding when biztalk receive data?
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'ECT.TOSToEDB.orcWorkingTable(7e2c77ec-adb6-5790-29ad-835ec8374c1d)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 8eb4cb36-82b2-4d34-9b45-64b8aba23758
Shape name:
ShapeId: 09bc980e-3040-4238-a838-f3606294effe
Exception thrown from: segment 1, progress 84 Inner exception: An error occurred while parsing EntityName. Line 4, position 112.
Exception type: XmlException
Source: System.Xml
Target Site: Void Throw(System.Exception) The following is a stack trace that identifies the location where the exception occured
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at ECT.TOSToEDB.orcWokingTableCheck.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.There are 5 special characters which in xml & < > " ' if the Oracle fields contain any of those characters it will cause invaild xml.
This can be solved at the oracle side be replacing the special characters by it's html encode equivalent, so & becomes & , I think the best way to solve it
is to make a custom pipeline component and translate the special characters there.
There is my Send Port Properties. Do you mean the default biztalk pipeline component ("XML Receive") cannot translate any special characters? -
Oracle Database VM Template - too many issues
Just wanted to offer my experience with the Oracle VM Template, specifically for 64-bit Oracle Database 11g (11.1). We decided to try out Oracle VM and the templates on a new server, we thought the promise of the templates could drastically decrease our time spent installing and setting up new boxes.
Setting up the template and getting it running was a breeze, although Oracle could have better documented things. Some passwords and important steps were left out that I had to figure out after the fact.
The real nightmare is the Oracle database installation it comes with. I guess they call this an OEM installation - but it's complete crap. Nothing really works like it should, and I found it to be a lost-cause trying to get it to work after awhile. Enterprise Manager comes disabled - what kind of database installation is this without enterprise manager? I guess they think everyone is using Grid Control - although I'm not even convinced Grid Control would have worked with all the issues going on.
I spent a day trying configure the installation to get things working, then realized packages were missing, needed for anything other than the database engine to run, due to the stripped version of oracle linux the template uses.
None of this was documented or explained at all. There's nothing on metalink..pretty much nothing. If you want a simple database that you can connect to and run sql queries through sql plus, this might just work. But it's far from a typical production setup. I would steer clear of this.Hi there,
VPD (Virtual Private Database) is a feature of the Oracle Enterprise Edition:
http://www.oracle.com/technology/deploy/security/database-security/virtual-private-database/index.html
It's in the dbms_rls package.
HTH, Peter
Maybe you are looking for
-
Problem in Purchase Requisition Upload
Hi all, I am uploading Purchase Requisition through BAPI by BAPI_REQUISITION_CREATE. Then I am appending text both in items and header by fm CREATE TEXT. But when i am uploading the item text Line Comments are transfering with the extra characters. e
-
JMS like content conversion in Seeburger
Hi, Can you have JMS like content conversion in Seeburger? In Seeburger adapter if username/password is used, instead of public private keys, can you use JMS like content conversion in Seeburger. (the one which you specify as module parameters) Regar
-
How to deploy wsdl+xsd to database based MDS in SOA 11g
I am going to migrate our soa solution based on oracle soa suite version 10. We are using a file based repository in that solution and it is copied to the server and exposed to the application server as a virtual path. I wan't to use the MDS instead,
-
El-ignored / Tomcat 5.5.4
By default, my Tomcat 5.5.4 does not evaluate EL expressions in JSPs. So I've put the following into my web.xml: <jsp-property-group> <url-pattern>*.jsp</url-pattern> <el-ignored>false</el-ignored> </jsp-property-group>But Tomcat still does no
-
Officejet Pro 8600 error message on startup "Printer or ink system problem"
My networked HP Officejet 8600 ran out of black ink...changed cartridge, then error message that required the C,Y, & M cartridges also be replaced...done...now get a startup "problem printer or ink system" message. Have reseated the printhead and ca